@revolugo/booking-api-client 7.24.0 → 7.25.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,65 +1,58 @@
1
- (function(o,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(o=typeof globalThis<"u"?globalThis:o||self,Ee(o["@revolugo/booking-api-client"]={}))})(this,function(o){Object.defineProperty(o,Symbol.toStringTag,{value:"Module"});var Ee=Object.create,Rn=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,nu=Object.getOwnPropertyNames,ru=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty,re=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),iu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=nu(t),a=0,s=i.length,u;a<s;a++)u=i[a],!Nn.call(e,u)&&u!==n&&Rn(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=tu(t,u))||r.enumerable});return e},oe=(e,t,n)=>(n=e!=null?Ee(ru(e)):{},iu(t||!e||!e.__esModule||!Nn.call(e,"default")?Rn(n,"default",{value:e,enumerable:!0}):n,e)),Pn=(function(e){return e.V1="v1",e})({}),Re=(function(e){return e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e})({}),ou={"CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001",LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com"},Cn=(function(e){return e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e})({}),au=re(((e,t)=>{var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,r=(function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a})();(function(a){(function(s){var u=typeof a<"u"&&a||typeof self<"u"&&self||typeof global<"u"&&global||{},d={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function l(c){return c&&DataView.prototype.isPrototypeOf(c)}if(d.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(c){return c&&m.indexOf(Object.prototype.toString.call(c))>-1};function p(c){if(typeof c!="string"&&(c=String(c)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(c)||c==="")throw new TypeError('Invalid character in header field name: "'+c+'"');return c.toLowerCase()}function A(c){return typeof c!="string"&&(c=String(c)),c}function k(c){var f={next:function(){var _=c.shift();return{done:_===void 0,value:_}}};return d.iterable&&(f[Symbol.iterator]=function(){return f}),f}function y(c){this.map={},c instanceof y?c.forEach(function(f,_){this.append(_,f)},this):Array.isArray(c)?c.forEach(function(f){if(f.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+f.length);this.append(f[0],f[1])},this):c&&Object.getOwnPropertyNames(c).forEach(function(f){this.append(f,c[f])},this)}y.prototype.append=function(c,f){c=p(c),f=A(f);var _=this.map[c];this.map[c]=_?_+", "+f:f},y.prototype.delete=function(c){delete this.map[p(c)]},y.prototype.get=function(c){return c=p(c),this.has(c)?this.map[c]:null},y.prototype.has=function(c){return this.map.hasOwnProperty(p(c))},y.prototype.set=function(c,f){this.map[p(c)]=A(f)},y.prototype.forEach=function(c,f){for(var _ in this.map)this.map.hasOwnProperty(_)&&c.call(f,this.map[_],_,this)},y.prototype.keys=function(){var c=[];return this.forEach(function(f,_){c.push(_)}),k(c)},y.prototype.values=function(){var c=[];return this.forEach(function(f){c.push(f)}),k(c)},y.prototype.entries=function(){var c=[];return this.forEach(function(f,_){c.push([_,f])}),k(c)},d.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(c){if(!c._noBody){if(c.bodyUsed)return Promise.reject(new TypeError("Already read"));c.bodyUsed=!0}}function R(c){return new Promise(function(f,_){c.onload=function(){f(c.result)},c.onerror=function(){_(c.error)}})}function M(c){var f=new FileReader,_=R(f);return f.readAsArrayBuffer(c),_}function v(c){var f=new FileReader,_=R(f),O=/charset=([A-Za-z0-9_-]+)/.exec(c.type),w=O?O[1]:"utf-8";return f.readAsText(c,w),_}function N(c){for(var f=new Uint8Array(c),_=new Array(f.length),O=0;O<f.length;O++)_[O]=String.fromCharCode(f[O]);return _.join("")}function P(c){if(c.slice)return c.slice(0);var f=new Uint8Array(c.byteLength);return f.set(new Uint8Array(c)),f.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(c){this.bodyUsed=this.bodyUsed,this._bodyInit=c,c?typeof c=="string"?this._bodyText=c:d.blob&&Blob.prototype.isPrototypeOf(c)?this._bodyBlob=c:d.formData&&FormData.prototype.isPrototypeOf(c)?this._bodyFormData=c:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)?this._bodyText=c.toString():d.arrayBuffer&&d.blob&&l(c)?(this._bodyArrayBuffer=P(c.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(c)||g(c))?this._bodyArrayBuffer=P(c):this._bodyText=c=Object.prototype.toString.call(c):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof c=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var c=S(this);if(c)return c;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var c=S(this);return c||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(d.blob)return this.blob().then(M);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var c=S(this);if(c)return c;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(H)}),this.json=function(){return this.text().then(JSON.parse)},this}var G=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Z(c){var f=c.toUpperCase();return G.indexOf(f)>-1?f:c}function L(c,f){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');f=f||{};var _=f.body;if(c instanceof L){if(c.bodyUsed)throw new TypeError("Already read");this.url=c.url,this.credentials=c.credentials,f.headers||(this.headers=new y(c.headers)),this.method=c.method,this.mode=c.mode,this.signal=c.signal,!_&&c._bodyInit!=null&&(_=c._bodyInit,c.bodyUsed=!0)}else this.url=String(c);if(this.credentials=f.credentials||this.credentials||"same-origin",(f.headers||!this.headers)&&(this.headers=new y(f.headers)),this.method=Z(f.method||this.method||"GET"),this.mode=f.mode||this.mode||null,this.signal=f.signal||this.signal||(function(){if("AbortController"in u)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(f.cache==="no-store"||f.cache==="no-cache")){var O=/([?&])_=[^&]*/;if(O.test(this.url))this.url=this.url.replace(O,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}L.prototype.clone=function(){return new L(this,{body:this._bodyInit})};function H(c){var f=new FormData;return c.trim().split("&").forEach(function(_){if(_){var O=_.split("="),w=O.shift().replace(/\+/g," "),T=O.join("=").replace(/\+/g," ");f.append(decodeURIComponent(w),decodeURIComponent(T))}}),f}function J(c){var f=new y;return c.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(_){return _.indexOf(`
2
- `)===0?_.substr(1,_.length):_}).forEach(function(_){var O=_.split(":"),w=O.shift().trim();if(w){var T=O.join(":").trim();try{f.append(w,T)}catch(D){console.warn("Response "+D.message)}}}),f}z.call(L.prototype);function $(c,f){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(f||(f={}),this.type="default",this.status=f.status===void 0?200:f.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=f.statusText===void 0?"":""+f.statusText,this.headers=new y(f.headers),this.url=f.url||"",this._initBody(c)}z.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},$.error=function(){var c=new $(null,{status:200,statusText:""});return c.ok=!1,c.status=0,c.type="error",c};var j=[301,302,303,307,308];$.redirect=function(c,f){if(j.indexOf(f)===-1)throw new RangeError("Invalid status code");return new $(null,{status:f,headers:{location:c}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(f,_){this.message=f,this.name=_;var O=Error(f);this.stack=O.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function C(c,f){return new Promise(function(_,O){var w=new L(c,f);if(w.signal&&w.signal.aborted)return O(new s.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function D(){T.abort()}T.onload=function(){var F={statusText:T.statusText,headers:J(T.getAllResponseHeaders()||"")};w.url.indexOf("file://")===0&&(T.status<200||T.status>599)?F.status=200:F.status=T.status,F.url="responseURL"in T?T.responseURL:F.headers.get("X-Request-URL");var X="response"in T?T.response:T.responseText;setTimeout(function(){_(new $(X,F))},0)},T.onerror=function(){setTimeout(function(){O(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){O(new TypeError("Network request timed out"))},0)},T.onabort=function(){setTimeout(function(){O(new s.DOMException("Aborted","AbortError"))},0)};function Y(F){try{return F===""&&u.location.href?u.location.href:F}catch{return F}}if(T.open(w.method,Y(w.url),!0),w.credentials==="include"?T.withCredentials=!0:w.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(d.blob?T.responseType="blob":d.arrayBuffer&&(T.responseType="arraybuffer")),f&&typeof f.headers=="object"&&!(f.headers instanceof y||u.Headers&&f.headers instanceof u.Headers)){var K=[];Object.getOwnPropertyNames(f.headers).forEach(function(F){K.push(p(F)),T.setRequestHeader(F,A(f.headers[F]))}),w.headers.forEach(function(F,X){K.indexOf(X)===-1&&T.setRequestHeader(X,F)})}else w.headers.forEach(function(F,X){T.setRequestHeader(X,F)});w.signal&&(w.signal.addEventListener("abort",D),T.onreadystatechange=function(){T.readyState===4&&w.signal.removeEventListener("abort",D)}),T.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return C.polyfill=!0,u.fetch||(u.fetch=C,u.Headers=y,u.Request=L,u.Response=$),s.Headers=y,s.Request=L,s.Response=$,s.fetch=C,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),su=oe(au(),1),uu=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),cu=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),du=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),fu=/[^\p{L}\d]+/giu,bn="$1\0$2",Mn="";function In(e){let t=e.trim();t=t.replace(uu,bn).replace(cu,bn),t=t.replace(fu,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function lu(e){const t=In(e);for(let n=0;n<t.length;n++){const r=t[n],i=du.exec(r);if(i){const a=i.index+(i[1]??i[2]).length;t.splice(n,1,r.slice(0,a),r.slice(a))}}return t}function Jn(e,t){const[n,r,i]=Ue(e,t);return n+r.map(Ze(t?.locale)).join(t?.delimiter??" ")+i}function mu(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=At(t?.locale),u=t?.mergeAmbiguousCharacters?St(a,s):En(a,s);return n+r.map((d,l)=>l===0?a(d):u(d,l)).join(t?.delimiter??"")+i}function pu(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=At(t?.locale),u=t?.mergeAmbiguousCharacters?St(a,s):En(a,s);return n+r.map(u).join(t?.delimiter??"")+i}function hu(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=At(t?.locale);return n+r.map(St(a,s)).join(t?.delimiter??" ")+i}function Dn(e,t){return Jn(e,{delimiter:"-",...t})}function yu(e,t){return Jn(e,{delimiter:"_",...t})}function Ze(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function At(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function St(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function En(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function Ue(e,t={}){const n=t.split??(t.separateNumbers?lu:In),r=t.prefixCharacters??Mn,i=t.suffixCharacters??Mn;let a=0,s=e.length;for(;a<e.length;){const u=e.charAt(a);if(!r.includes(u))break;a++}for(;s>a;){const u=s-1,d=e.charAt(u);if(!i.includes(d))break;s=u}return[e.slice(0,a),n(e.slice(a,s)),e.slice(s)]}var gu=re(((e,t)=>{(function(n,r,i){typeof e=="object"?(t.exports=i(),t.exports.default=i()):typeof define=="function"&&define.amd?define(i):r[n]=i()})("slugify",e,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(a,s){if(typeof a!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var u=r[s.locale]||{},d=s.replacement===void 0?"-":s.replacement,l=s.trim===void 0?!0:s.trim,m=a.normalize().split("").reduce(function(g,p){var A=u[p];return A===void 0&&(A=n[p]),A===void 0&&(A=p),A===d&&(A=" "),g+A.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(m=m.replace(/[^A-Za-z0-9\s]/g,"")),l&&(m=m.trim()),m=m.replace(/\s+/g,d),s.lower&&(m=m.toLowerCase()),m}return i.extend=function(a){Object.assign(n,a)},i})})),_u=oe(gu(),1);function Ou(e){return(0,_u.default)(Dn(e),{lower:!0,strict:!0})}var I={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},Fn={[I.Camel]:mu,[I.Capital]:hu,[I.Param]:Dn,[I.Pascal]:pu,[I.Slug]:Ou,[I.Snake]:yu};function Au(e,t){return Array.isArray(e)?e.map(n=>Fn[t](n)):Fn[t](e)}function Su(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function Tu(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Tt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Tt(i,t,n)):Su(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,a)=>{const s=n.exclude&&Tu(n.exclude,a)?a:Au(a,t);return i[s]=r?Tt(e[a],t,{...n,deep:!0}):e[a],i},{}):e}function E(e,t,n={}){return Tt(e,t,{deep:n.deep??!0,exclude:n.exclude})}var zn=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",u="minute",d="hour",l="day",m="week",g="month",p="quarter",A="year",k="date",y="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var c=["th","st","nd","rd"],f=C%100;return"["+C+(c[(f-20)%10]||c[f]||c[0])+"]"}},v=function(C,c,f){var _=String(C);return!_||_.length>=c?C:""+Array(c+1-_.length).join(f)+C},N={s:v,z:function(C){var c=-C.utcOffset(),f=Math.abs(c),_=Math.floor(f/60),O=f%60;return(c<=0?"+":"-")+v(_,2,"0")+":"+v(O,2,"0")},m:function C(c,f){if(c.date()<f.date())return-C(f,c);var _=12*(f.year()-c.year())+(f.month()-c.month()),O=c.clone().add(_,g),w=f-O<0,T=c.clone().add(_+(w?-1:1),g);return+(-(_+(f-O)/(w?O-T:T-O))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:g,y:A,w:m,d:l,D:k,h:d,m:u,s,ms:a,Q:p}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},P="en",z={};z[P]=M;var G="$isDayjsObject",Z=function(C){return C instanceof $||!(!C||!C[G])},L=function C(c,f,_){var O;if(!c)return P;if(typeof c=="string"){var w=c.toLowerCase();z[w]&&(O=w),f&&(z[w]=f,O=w);var T=c.split("-");if(!O&&T.length>1)return C(T[0])}else{var D=c.name;z[D]=c,O=D}return!_&&O&&(P=O),O||!_&&P},H=function(C,c){if(Z(C))return C.clone();var f=typeof c=="object"?c:{};return f.date=C,f.args=arguments,new $(f)},J=N;J.l=L,J.i=Z,J.w=function(C,c){return H(C,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var $=(function(){function C(f){this.$L=L(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[G]=!0}var c=C.prototype;return c.parse=function(f){this.$d=(function(_){var O=_.date,w=_.utc;if(O===null)return new Date(NaN);if(J.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var T=O.match(S);if(T){var D=T[2]-1||0,Y=(T[7]||"0").substring(0,3);return w?new Date(Date.UTC(T[1],D,T[3]||1,T[4]||0,T[5]||0,T[6]||0,Y)):new Date(T[1],D,T[3]||1,T[4]||0,T[5]||0,T[6]||0,Y)}}return new Date(O)})(f),this.init()},c.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},c.$utils=function(){return J},c.isValid=function(){return this.$d.toString()!==y},c.isSame=function(f,_){var O=H(f);return this.startOf(_)<=O&&O<=this.endOf(_)},c.isAfter=function(f,_){return H(f)<this.startOf(_)},c.isBefore=function(f,_){return this.endOf(_)<H(f)},c.$g=function(f,_,O){return J.u(f)?this[_]:this.set(O,f)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(f,_){var O=this,w=!!J.u(_)||_,T=J.p(f),D=function(me,ne){var ce=J.w(O.$u?Date.UTC(O.$y,ne,me):new Date(O.$y,ne,me),O);return w?ce:ce.endOf(l)},Y=function(me,ne){return J.w(O.toDate()[me].apply(O.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(ne)),O)},K=this.$W,F=this.$M,X=this.$D,Oe="set"+(this.$u?"UTC":"");switch(T){case A:return w?D(1,0):D(31,11);case g:return w?D(1,F):D(0,F+1);case m:var pe=this.$locale().weekStart||0,ve=(K<pe?K+7:K)-pe;return D(w?X-ve:X+(6-ve),F);case l:case k:return Y(Oe+"Hours",0);case d:return Y(Oe+"Minutes",1);case u:return Y(Oe+"Seconds",2);case s:return Y(Oe+"Milliseconds",3);default:return this.clone()}},c.endOf=function(f){return this.startOf(f,!1)},c.$set=function(f,_){var O,w=J.p(f),T="set"+(this.$u?"UTC":""),D=(O={},O[l]=T+"Date",O[k]=T+"Date",O[g]=T+"Month",O[A]=T+"FullYear",O[d]=T+"Hours",O[u]=T+"Minutes",O[s]=T+"Seconds",O[a]=T+"Milliseconds",O)[w],Y=w===l?this.$D+(_-this.$W):_;if(w===g||w===A){var K=this.clone().set(k,1);K.$d[D](Y),K.init(),this.$d=K.set(k,Math.min(this.$D,K.daysInMonth())).$d}else D&&this.$d[D](Y);return this.init(),this},c.set=function(f,_){return this.clone().$set(f,_)},c.get=function(f){return this[J.p(f)]()},c.add=function(f,_){var O,w=this;f=Number(f);var T=J.p(_),D=function(F){var X=H(w);return J.w(X.date(X.date()+Math.round(F*f)),w)};if(T===g)return this.set(g,this.$M+f);if(T===A)return this.set(A,this.$y+f);if(T===l)return D(1);if(T===m)return D(7);var Y=(O={},O[u]=r,O[d]=i,O[s]=n,O)[T]||1,K=this.$d.getTime()+f*Y;return J.w(K,this)},c.subtract=function(f,_){return this.add(-1*f,_)},c.format=function(f){var _=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var w=f||"YYYY-MM-DDTHH:mm:ssZ",T=J.z(this),D=this.$H,Y=this.$m,K=this.$M,F=O.weekdays,X=O.months,Oe=O.meridiem,pe=function(ne,ce,he,Ae){return ne&&(ne[ce]||ne(_,w))||he[ce].slice(0,Ae)},ve=function(ne){return J.s(D%12||12,ne,"0")},me=Oe||function(ne,ce,he){var Ae=ne<12?"AM":"PM";return he?Ae.toLowerCase():Ae};return w.replace(R,(function(ne,ce){return ce||(function(he){switch(he){case"YY":return String(_.$y).slice(-2);case"YYYY":return J.s(_.$y,4,"0");case"M":return K+1;case"MM":return J.s(K+1,2,"0");case"MMM":return pe(O.monthsShort,K,X,3);case"MMMM":return pe(X,K);case"D":return _.$D;case"DD":return J.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return pe(O.weekdaysMin,_.$W,F,2);case"ddd":return pe(O.weekdaysShort,_.$W,F,3);case"dddd":return F[_.$W];case"H":return String(D);case"HH":return J.s(D,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return me(D,Y,!0);case"A":return me(D,Y,!1);case"m":return String(Y);case"mm":return J.s(Y,2,"0");case"s":return String(_.$s);case"ss":return J.s(_.$s,2,"0");case"SSS":return J.s(_.$ms,3,"0");case"Z":return T}return null})(ne)||T.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(f,_,O){var w,T=this,D=J.p(_),Y=H(f),K=(Y.utcOffset()-this.utcOffset())*r,F=this-Y,X=function(){return J.m(T,Y)};switch(D){case A:w=X()/12;break;case g:w=X();break;case p:w=X()/3;break;case m:w=(F-K)/6048e5;break;case l:w=(F-K)/864e5;break;case d:w=F/i;break;case u:w=F/r;break;case s:w=F/n;break;default:w=F}return O?w:J.a(w)},c.daysInMonth=function(){return this.endOf(g).$D},c.$locale=function(){return z[this.$L]},c.locale=function(f,_){if(!f)return this.$L;var O=this.clone(),w=L(f,_,!0);return w&&(O.$L=w),O},c.clone=function(){return J.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},C})(),j=$.prototype;return H.prototype=j,[["$ms",a],["$s",s],["$m",u],["$H",d],["$W",l],["$M",g],["$y",A],["$D",k]].forEach((function(C){j[C[1]]=function(c){return this.$g(c,C[0],C[1])}})),H.extend=function(C,c){return C.$i||(C(c,$,H),C.$i=!0),H},H.locale=L,H.isDayjs=Z,H.unix=function(C){return H(1e3*C)},H.en=z[P],H.Ls=z,H.p={},H}))})),wu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(n,r){var i=r.prototype,a=i.format;i.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return a.bind(this)(s);var l=this.$utils(),m=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return l.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return l.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return l.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}}));return a.bind(this)(m)}}}))})),ku=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,d={},l=function(S){return(S=+S)+(S>68?1900:2e3)},m=function(S){return function(R){this[S]=+R}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(R){if(!R||R==="Z")return 0;var M=R.match(/([+-]|\d\d)/g),v=60*M[1]+(+M[2]||0);return v===0?0:M[0]==="+"?-v:v})(S)}],p=function(S){var R=d[S];return R&&(R.indexOf?R:R.s.concat(R.f))},A=function(S,R){var M,v=d.meridiem;if(v){for(var N=1;N<=24;N+=1)if(S.indexOf(v(N,0,R))>-1){M=N>12;break}}else M=S===(R?"pm":"PM");return M},k={A:[u,function(S){this.afternoon=A(S,!1)}],a:[u,function(S){this.afternoon=A(S,!0)}],Q:[i,function(S){this.month=3*(S-1)+1}],S:[i,function(S){this.milliseconds=100*+S}],SS:[a,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[a,m("day")],Do:[u,function(S){var R=d.ordinal,M=S.match(/\d+/);if(this.day=M[0],R)for(var v=1;v<=31;v+=1)R(v).replace(/\[|\]/g,"")===S&&(this.day=v)}],w:[s,m("week")],ww:[a,m("week")],M:[s,m("month")],MM:[a,m("month")],MMM:[u,function(S){var R=p("months"),M=(p("monthsShort")||R.map((function(v){return v.slice(0,3)}))).indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[u,function(S){var R=p("months").indexOf(S)+1;if(R<1)throw new Error;this.month=R%12||R}],Y:[/[+-]?\d+/,m("year")],YY:[a,function(S){this.year=l(S)}],YYYY:[/\d{4}/,m("year")],Z:g,ZZ:g};function y(S){for(var R=S,M=d&&d.formats,v=(S=R.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(H,J,$){var j=$&&$.toUpperCase();return J||M[$]||n[$]||M[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,c,f){return c||f.slice(1)}))}))).match(r),N=v.length,P=0;P<N;P+=1){var z=v[P],G=k[z],Z=G&&G[0],L=G&&G[1];v[P]=L?{regex:Z,parser:L}:z.replace(/^\[|\]$/g,"")}return function(H){for(var J={},$=0,j=0;$<N;$+=1){var C=v[$];if(typeof C=="string")j+=C.length;else{var c=C.regex,f=C.parser,_=H.slice(j),O=c.exec(_)[0];f.call(J,O),H=H.replace(O,"")}}return(function(w){var T=w.afternoon;if(T!==void 0){var D=w.hours;T?D<12&&(w.hours+=12):D===12&&(w.hours=0),delete w.afternoon}})(J),J}}return function(S,R,M){M.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(l=S.parseTwoDigitYear);var v=R.prototype,N=v.parse;v.parse=function(P){var z=P.date,G=P.utc,Z=P.args;this.$u=G;var L=Z[1];if(typeof L=="string"){var H=Z[2]===!0,J=Z[3]===!0,$=H||J,j=Z[2];J&&(j=Z[2]),d=this.$locale(),!H&&j&&(d=M.Ls[j]),this.$d=(function(_,O,w,T){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*_);var D=y(O)(_),Y=D.year,K=D.month,F=D.day,X=D.hours,Oe=D.minutes,pe=D.seconds,ve=D.milliseconds,me=D.zone,ne=D.week,ce=new Date,he=F||(Y||K?1:ce.getDate()),Ae=Y||ce.getFullYear(),_t=0;Y&&!K||(_t=K>0?K-1:ce.getMonth());var Ot,Tn=X||0,wn=Oe||0,kn=pe||0,vn=ve||0;return me?new Date(Date.UTC(Ae,_t,he,Tn,wn,kn,vn+60*me.offset*1e3)):w?new Date(Date.UTC(Ae,_t,he,Tn,wn,kn,vn)):(Ot=new Date(Ae,_t,he,Tn,wn,kn,vn),ne&&(Ot=T(Ot).week(ne).toDate()),Ot)}catch{return new Date("")}})(z,L,G,M),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),$&&z!=this.format(L)&&(this.$d=new Date("")),d={}}else if(L instanceof Array)for(var C=L.length,c=1;c<=C;c+=1){Z[1]=L[c-1];var f=M.apply(this,Z);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}c===C&&(this.$d=new Date(""))}else N.call(this,P)}}}))})),vu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(n,r,i){r.prototype.isBetween=function(a,s,u,d){var l=i(a),m=i(s),g=(d=d||"()")[0]==="(",p=d[1]===")";return(g?this.isAfter(l,u):!this.isBefore(l,u))&&(p?this.isBefore(m,u):!this.isAfter(m,u))||(g?this.isBefore(l,u):!this.isAfter(l,u))&&(p?this.isAfter(m,u):!this.isBefore(m,u))}}}))})),Ru=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrAfter=function(i,a){return this.isSame(i,a)||this.isAfter(i,a)}}}))})),Nu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrBefore=function(i,a){return this.isSame(i,a)||this.isBefore(i,a)}}}))})),Pu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var a=r.prototype,s=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,A,k,y){var S=g.name?g:g.$locale(),R=s(S[p]),M=s(S[A]),v=R||M.map((function(P){return P.slice(0,k)}));if(!y)return v;var N=S.weekStart;return v.map((function(P,z){return v[(z+(N||0))%7]}))},d=function(){return i.Ls[i.locale()]},l=function(g,p){return g.formats[p]||(function(A){return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,y,S){return y||S.slice(1)}))})(g.formats[p.toUpperCase()])},m=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return l(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return m.bind(this)()},i.localeData=function(){var g=d();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(p){return l(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},i.months=function(){return u(d(),"months")},i.monthsShort=function(){return u(d(),"monthsShort","months",3)},i.weekdays=function(g){return u(d(),"weekdays",null,null,g)},i.weekdaysShort=function(g){return u(d(),"weekdaysShort","weekdays",3,g)},i.weekdaysMin=function(g){return u(d(),"weekdaysMin","weekdays",2,g)}}}))})),Cu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,u=s.format;a.en.formats=n,s.format=function(d){d===void 0&&(d="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,m=(function(g,p){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,k,y){var S=y&&y.toUpperCase();return k||p[y]||n[y]||p[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(R,M,v){return M||v.slice(1)}))}))})(d,l===void 0?{}:l);return u.call(this,m)}}}))})),bu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_minMax=r()})(e,(function(){"use strict";return function(n,r,i){var a=function(s,u){if(!u||!u.length||u.length===1&&!u[0]||u.length===1&&Array.isArray(u[0])&&!u[0].length)return null;var d;u.length===1&&u[0].length>0&&(u=u[0]),d=(u=u.filter((function(m){return m})))[0];for(var l=1;l<u.length;l+=1)u[l].isValid()&&!u[l][s](d)||(d=u[l]);return d};i.max=function(){return a("isAfter",[].slice.call(arguments,0))},i.min=function(){return a("isBefore",[].slice.call(arguments,0))}}}))})),Mu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){"use strict";return function(n,r,i){n=n||{};var a=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(l,m,g,p){return a.fromToBase(l,m,g,p)}i.en.relativeTime=s,a.fromToBase=function(l,m,g,p,A){for(var k,y,S,R=g.$locale().relativeTime||s,M=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],v=M.length,N=0;N<v;N+=1){var P=M[N];P.d&&(k=p?i(l).diff(g,P.d,!0):g.diff(l,P.d,!0));var z=(n.rounding||Math.round)(Math.abs(k));if(S=k>0,z<=P.r||!P.r){z<=1&&N>0&&(P=M[N-1]);var G=R[P.l];A&&(z=A(""+z)),y=typeof G=="string"?G.replace("%d",z):G(z,m,P.l,S);break}}if(m)return y;var Z=S?R.future:R.past;return typeof Z=="function"?Z(y):Z.replace("%s",y)},a.to=function(l,m){return u(l,m,this,!0)},a.from=function(l,m){return u(l,m,this)};var d=function(l){return l.$u?i.utc():i()};a.toNow=function(l){return this.to(d(this),l)},a.fromNow=function(l){return this.from(d(this),l)}}}))})),Iu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,s){var u,d=function(p,A,k){k===void 0&&(k={});var y=new Date(p);return(function(S,R){R===void 0&&(R={});var M=R.timeZoneName||"short",v=S+"|"+M,N=r[v];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),r[v]=N),N})(A,k).formatToParts(y)},l=function(p,A){for(var k=d(p,A),y=[],S=0;S<k.length;S+=1){var R=k[S],M=R.type,v=R.value,N=n[M];N>=0&&(y[N]=parseInt(v,10))}var P=y[3],z=P===24?0:P,G=y[0]+"-"+y[1]+"-"+y[2]+" "+z+":"+y[4]+":"+y[5]+":000",Z=+p;return(s.utc(G).valueOf()-(Z-=Z%1e3))/6e4},m=a.prototype;m.tz=function(p,A){if(p===void 0&&(p=u),!this.isValid())return this;var k,y=this.utcOffset(),S=this.toDate(),R=S.toLocaleString("en-US",{timeZone:p}),M=l(+S,p);if(!Number(M))k=this.utcOffset(0,A);else if(k=s(R,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),A){var v=k.utcOffset();k=k.add(y-v,"minute")}return k.$x.$timezone=p,k},m.offsetName=function(p){var A=this.$x.$timezone||s.tz.guess(),k=d(this.valueOf(),A,{timeZoneName:p}).find((function(y){return y.type.toLowerCase()==="timezonename"}));return k&&k.value};var g=m.startOf;m.startOf=function(p,A){if(!this.$x||!this.$x.$timezone)return g.call(this,p,A);var k=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(k,p,A).tz(this.$x.$timezone,!0)},s.tz=function(p,A,k){var y=k&&A,S=k||A||u,R=l(+s(),S);if(typeof p!="string")return s(p).tz(S);var M=s.utc(p,y).valueOf();if(Number.isNaN(M)){var v=s(NaN);return v.$x.$timezone=S,v}var N=(function(Z,L,H){var J=Z-60*L*1e3,$=l(J,H);if(L===$)return[J,L];var j=l(J-=60*($-L)*1e3,H);return $===j?[J,$]:[Z-60*Math.min($,j)*1e3,Math.max($,j)]})(M,R,S),P=N[0],z=N[1],G=s(P).utcOffset(z);return G.$x.$timezone=S,G},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){u=p}}}))})),Ju=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,u){var d=s.prototype;u.utc=function(y){return new s({date:y,utc:!0,args:arguments})},d.utc=function(y){var S=u(this.toDate(),{locale:this.$L,utc:!0});return y?S.add(this.utcOffset(),n):S},d.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=d.parse;d.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),l.call(this,y)};var m=d.init;d.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else m.call(this)};var g=d.utcOffset;d.utcOffset=function(y,S){var R=this.$utils().u;if(R(y))return this.$u?0:R(this.$offset)?g.call(this):this.$offset;if(typeof y=="string"&&(y=(function(P){P===void 0&&(P="");var z=P.match(r);if(!z)return null;var G=(""+z[0]).match(i)||["-",0,0],Z=G[0],L=60*+G[1]+ +G[2];return L===0?0:Z==="+"?L:-L})(y),y===null))return this;var M=Math.abs(y)<=16?60*y:y;if(M===0)return this.utc(S);var v=this.clone();if(S)return v.$offset=M,v.$u=!1,v;var N=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(M+N,n)).$offset=M,v.$x.$localOffset=N,v};var p=d.format;d.format=function(y){var S=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,S)},d.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var A=d.toDate;d.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():A.call(this)};var k=d.diff;d.diff=function(y,S,R){if(y&&this.$u===y.$u)return k.call(this,y,S,R);var M=this.local(),v=u(y).local();return k.call(M,v,S,R)}}}))})),Du=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(zn()):typeof define=="function"&&define.amd?define(["dayjs"],r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(n){"use strict";function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return i.default.locale(a,null,!0),a}))})),Eu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})),de=oe(zn(),1),Fu=oe(wu(),1),zu=oe(ku(),1),$u=oe(vu(),1),Lu=oe(Ru(),1),Hu=oe(Nu(),1),Bu=oe(Pu(),1),Zu=oe(Cu(),1),Uu=oe(bu(),1),Gu=oe(Mu(),1),qu=oe(Iu(),1),Yu=oe(Ju(),1),Xy=Du(),Qy=Eu();de.default.extend(Fu.default),de.default.extend(zu.default),de.default.extend($u.default),de.default.extend(Lu.default),de.default.extend(Hu.default),de.default.extend(Zu.default),de.default.extend(Bu.default),de.default.extend(Uu.default),de.default.extend(Gu.default),de.default.extend(qu.default),de.default.extend(Yu.default);function ye(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ge(e,t=new WeakSet){if(e==null||typeof e!="object"||t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map(n=>Ge(n,t));if(ye(e)){const n={};for(const r in e)Object.hasOwn(e,r)&&(n[r]=Ge(e[r],t));return n}return e}function wt(e,t,n=new WeakSet){if(!(!ye(t)||!ye(e))&&!(t===e||n.has(t))){n.add(t);for(const r in t)if(Object.hasOwn(t,r)){const i=t[r],a=e[r];ye(i)&&ye(a)?wt(a,i,n):Array.isArray(i)&&Array.isArray(a)?e[r]=$n(a,i,n):e[r]=Ge(i,n)}}}function $n(e,t,n){const r=e.slice();for(let i=0;i<t.length;i++){const a=t[i],s=r[i];if(ye(a)&&ye(s)){const u={...s};wt(u,a,n),r[i]=u}else Array.isArray(a)&&Array.isArray(s)?r[i]=$n(s,a,n):r[i]=Ge(a,n)}return r}function Ln(e,...t){if(!ye(e))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const r of t)r!=null&&wt(e,r,n);return e}function Ku(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var ee=[];for(let e=0;e<256;++e)ee.push((e+256).toString(16).slice(1));function Vu(e,t=0){return(ee[e[t+0]]+ee[e[t+1]]+ee[e[t+2]]+ee[e[t+3]]+"-"+ee[e[t+4]]+ee[e[t+5]]+"-"+ee[e[t+6]]+ee[e[t+7]]+"-"+ee[e[t+8]]+ee[e[t+9]]+"-"+ee[e[t+10]]+ee[e[t+11]]+ee[e[t+12]]+ee[e[t+13]]+ee[e[t+14]]+ee[e[t+15]]).toLowerCase()}var Wu=new Uint8Array(16);function Xu(){return crypto.getRandomValues(Wu)}function Qu(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():xu(e,t,n)}function xu(e,t,n){e=e||{};const r=e.random??e.rng?.()??Xu();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Vu(r)}var ju=1500,Se={},ec=class{defaultOptions={callCount:1,interval:ju,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};on(e,t){this.events[e]=t}poll(e,t){const n=this.buildPollerOptions(t);return this.storeCurrentPolling(n),this.isActivePoller(n)&&e().then(r=>this.onRequest(r,e,n)).catch(r=>{const i=r instanceof Error?r:new Error(String(r));this.dispatch("error",i)}),this}stop(e){e&&Se[e]&&delete Se[e]}buildPollerOptions(e){return{...this.defaultOptions,...Ku(e)}}dispatch(e,t){this.events[e](t)}isActivePoller(e){return e.type?!!Se[e.type]&&Se[e.type]===e.uuid:!0}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}onComplete(e,t){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(t)}async onRequest(e,t,n){const r=E(e,I.Camel);this.isActivePoller(n)&&(this.isInProgress(r)&&n.callCount&&n.maxCallCount&&n.callCount<n.maxCallCount||!this.isInProgress(r)&&n.callCount&&n.minCallCount&&n.callCount<n.minCallCount?(this.isInProgress(r)||(r.meta={...r.meta,status:"IN_PROGRESS"}),n.callCount+=1,this.dispatch("data",r),n.interval&&await this.pause(n),this.poll(t,n)):this.isInProgress(r)?(r.meta={...r.meta,status:"COMPLETE"},this.onComplete(r,n)):this.onComplete(r,n))}pause(e){return new Promise(t=>{setTimeout(t,e.interval)})}removeCurrentPolling(e){e.type&&Se[e.type]&&delete Se[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Qu(),Se[e.type]=e.uuid)}};function tc(){return new ec}function qe(e,t,n){const r=tc();return r.poll(e,t),n&&typeof n=="function"?(r.on("data",i=>{i instanceof Error?n(i,void 0,r):n(null,i,r)}),r.on("error",i=>{i instanceof Error?n(i):n(null,i)}),r):new Promise((i,a)=>{r.on("error",a),r.on("complete",s=>{s instanceof Error?a(s):i(s)})})}var Hn;function h(e,t,n){function r(u,d){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,d);const l=s.prototype,m=Object.keys(l);for(let g=0;g<m.length;g++){const p=m[g];p in u||(u[p]=l[p].bind(u))}}const i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function s(u){var d;const l=n?.Parent?new a:this;r(l,u),(d=l._zod).deferred??(d.deferred=[]);for(const m of l._zod.deferred)m();return l}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Ne=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Bn=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Hn=globalThis).__zod_globalConfig??(Hn.__zod_globalConfig={});var Ye=globalThis.__zod_globalConfig;function Te(e){return e&&Object.assign(Ye,e),Ye}function Zn(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function kt(e,t){return typeof t=="bigint"?t.toString():t}function vt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Rt(e){return e==null}function Nt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function nc(e,t){const n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var Un=Symbol("evaluating");function U(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Un)return r===void 0&&(r=Un,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function we(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ge(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Gn(e){return JSON.stringify(e)}function rc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var qn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ke(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ic=vt(()=>{if(Ye.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function Fe(e){if(Ke(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ke(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Yn(e){return Fe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var oc=new Set(["string","number","symbol"]);function Ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ac(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var sc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function uc(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return _e(e,ge(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return we(this,"shape",i),i},checks:[]}))}function cc(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");return _e(e,ge(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return we(this,"shape",i),i},checks:[]}))}function dc(e,t){if(!Fe(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return _e(e,ge(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return we(this,"shape",r),r}}))}function fc(e,t){if(!Fe(t))throw new Error("Invalid input to safeExtend: expected a plain object");return _e(e,ge(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return we(this,"shape",n),n}}))}function lc(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");return _e(e,ge(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return we(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function mc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");return _e(t,ge(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=e?new e({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)a[s]=e?new e({type:"optional",innerType:i[s]}):i[s];return we(this,"shape",a),a},checks:[]}))}function pc(e,t,n){return _e(t,ge(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return we(this,"shape",i),i}}))}function Pe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function hc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Kn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function We(e){return typeof e=="string"?e:e?.message}function ke(e,t,n){const r=e.message?e.message:We(e.inst?._zod.def?.error?.(e))??We(t?.error?.(e))??We(n.customError?.(e))??We(n.localeError?.(e))??"Invalid input",{inst:i,continue:a,input:s,...u}=e;return u.path??(u.path=[]),u.message=r,t?.reportInput&&(u.input=s),u}function Pt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ze(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}var Vn=(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,kt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wn=h("$ZodError",Vn),Xn=h("$ZodError",Vn,{Parent:Error});function yc(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function gc(e,t=n=>n.message){const n={_errors:[]},r=(i,a=[])=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>r({issues:u},[...a,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...a,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...a,...s.path]);else{const u=[...a,...s.path];if(u.length===0)n._errors.push(t(s));else{let d=n,l=0;for(;l<u.length;){const m=u[l];l!==u.length-1?d[m]=d[m]||{_errors:[]}:(d[m]=d[m]||{_errors:[]},d[m]._errors.push(t(s))),d=d[m],l++}}}};return r(e),n}var Ct=e=>(t,n,r,i)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Ne;if(s.issues.length){const u=new(i?.Err??e)(s.issues.map(d=>ke(d,a,Te())));throw qn(u,i?.callee),u}return s.value},bt=e=>async(t,n,r,i)=>{const a=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const u=new(i?.Err??e)(s.issues.map(d=>ke(d,a,Te())));throw qn(u,i?.callee),u}return s.value},Xe=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ne;return a.issues.length?{success:!1,error:new(e??Wn)(a.issues.map(s=>ke(s,i,Te())))}:{success:!0,data:a.value}},_c=Xe(Xn),Qe=e=>async(t,n,r)=>{const i=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>ke(s,i,Te())))}:{success:!0,data:a.value}},Oc=Qe(Xn),Ac=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Ct(e)(t,n,i)},Sc=e=>(t,n,r)=>Ct(e)(t,n,r),Tc=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return bt(e)(t,n,i)},wc=e=>async(t,n,r)=>bt(e)(t,n,r),kc=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Xe(e)(t,n,i)},vc=e=>(t,n,r)=>Xe(e)(t,n,r),Rc=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Qe(e)(t,n,i)},Nc=e=>async(t,n,r)=>Qe(e)(t,n,r),Pc=/^[cC][0-9a-z]{6,}$/,Cc=/^[0-9a-z]+$/,bc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Mc=/^[0-9a-vA-V]{20}$/,Ic=/^[A-Za-z0-9]{27}$/,Jc=/^[a-zA-Z0-9_-]{21}$/,Dc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ec=/^([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})$/,Qn=e=>e?new 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)$/,Fc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function $c(){return new RegExp(zc,"u")}var Lc=/^(?:(?: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])$/,Hc=/^(([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}|:))$/,Bc=/^((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])$/,Zc=/^(([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])$/,Uc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xn=/^[A-Za-z0-9_-]*$/,Gc=/^https?$/,qc=/^\+[1-9]\d{6,14}$/,jn="(?:(?:\\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])))",Yc=new RegExp(`^${jn}$`);function er(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Kc(e){return new RegExp(`^${er(e)}$`)}function Vc(e){const t=er({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${jn}T(?:${r})$`)}var Wc=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Xc=/^-?\d+$/,Qc=/^-?\d+(?:\.\d+)?$/,xc=/^[^A-Z]*$/,jc=/^[^a-z]*$/,ae=h("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tr={number:"number",bigint:"bigint",object:"date"},nr=h("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=tr[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rr=h("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=tr[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ed=h("$ZodCheckMultipleOf",(e,t)=>{ae.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):nc(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),td=h("$ZodCheckNumberFormat",(e,t)=>{ae.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,a]=sc[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=i,u.maximum=a,n&&(u.pattern=Xc)}),e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<i&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nd=h("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Rt(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const a=Pt(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),rd=h("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Rt(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const a=Pt(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),id=h("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Rt(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,a=i.length;if(a===t.length)return;const s=Pt(i),u=a>t.length;r.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),xe=h("$ZodCheckStringFormat",(e,t)=>{var n,r;ae.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),od=h("$ZodCheckRegex",(e,t)=>{xe.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})}}),ad=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=xc),xe.init(e,t)}),sd=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=jc),xe.init(e,t)}),ud=h("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=Ve(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),cd=h("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${Ve(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),dd=h("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${Ve(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),fd=h("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),ld=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
3
- `).filter(i=>i),n=Math.min(...t.map(i=>i.length-i.trimStart().length)),r=t.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const e=Function,t=this?.args,n=[...(this?.content??[""]).map(r=>` ${r}`)];return new e(...t,n.join(`
4
- `))}},md={major:4,minor:4,patch:3},Q=h("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=md;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(s,u,d)=>{let l=Pe(s),m;for(const g of u){if(g._zod.def.when){if(hc(s)||!g._zod.def.when(s))continue}else if(l)continue;const p=s.issues.length,A=g._zod.check(s);if(A instanceof Promise&&d?.async===!1)throw new Ne;if(m||A instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await A,s.issues.length!==p&&(l||(l=Pe(s,p)))});else{if(s.issues.length===p)continue;l||(l=Pe(s,p))}}return m?m.then(()=>s):s},a=(s,u,d)=>{if(Pe(s))return s.aborted=!0,s;const l=i(u,r,d);if(l instanceof Promise){if(d.async===!1)throw new Ne;return l.then(m=>e._zod.parse(m,d))}return e._zod.parse(l,d)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){const l=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(m=>a(m,s,u)):a(l,s,u)}const d=e._zod.parse(s,u);if(d instanceof Promise){if(u.async===!1)throw new Ne;return d.then(l=>i(l,r,u))}return i(d,r,u)}}U(e,"~standard",()=>({validate:i=>{try{const a=_c(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Oc(e,i).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Mt=h("$ZodString",(e,t)=>{Q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Wc(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),V=h("$ZodStringFormat",(e,t)=>{xe.init(e,t),Mt.init(e,t)}),pd=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ec),V.init(e,t)}),hd=h("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qn(n))}else t.pattern??(t.pattern=Qn());V.init(e,t)}),yd=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Fc),V.init(e,t)}),gd=h("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Gc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),_d=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=$c()),V.init(e,t)}),Od=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Jc),V.init(e,t)}),Ad=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Pc),V.init(e,t)}),Sd=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Cc),V.init(e,t)}),Td=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=bc),V.init(e,t)}),wd=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Mc),V.init(e,t)}),kd=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ic),V.init(e,t)}),vd=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Vc(t)),V.init(e,t)}),Rd=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Yc),V.init(e,t)}),Nd=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Kc(t)),V.init(e,t)}),Pd=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Dc),V.init(e,t)}),Cd=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Lc),V.init(e,t),e._zod.bag.format="ipv4"}),bd=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Hc),V.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})}}}),Md=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Bc),V.init(e,t)}),Id=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zc),V.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,a]=r;if(!a)throw new Error;const s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ir(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Jd=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Uc),V.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ir(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Dd(e){if(!xn.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return ir(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Ed=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=xn),V.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Dd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Fd=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=qc),V.init(e,t)});function zd(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var $d=h("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{zd(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),or=h("$ZodNumber",(e,t)=>{Q.init(e,t),e._zod.pattern=e._zod.bag.pattern??Qc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),Ld=h("$ZodNumberFormat",(e,t)=>{td.init(e,t),or.init(e,t)}),Hd=h("$ZodSymbol",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Bd=h("$ZodUnknown",(e,t)=>{Q.init(e,t),e._zod.parse=n=>n}),Zd=h("$ZodNever",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function ar(e,t,n){e.issues.length&&t.issues.push(...Kn(n,e.issues)),t.value[n]=e.value}var Ud=h("$ZodArray",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>{const 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);const a=[];for(let s=0;s<i.length;s++){const u=i[s],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?a.push(d.then(l=>ar(l,n,s))):ar(d,n,s)}return a.length?Promise.all(a).then(()=>n):n}});function je(e,t,n,r,i,a){const s=n in r;if(e.issues.length){if(i&&a&&!s)return;t.issues.push(...Kn(n,e.issues))}if(!s&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(t.value[n]=void 0):t.value[n]=e.value}function sr(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=ac(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ur(e,t,n,r,i,a){const s=[],u=i.keySet,d=i.catchall._zod,l=d.def.type,m=d.optin==="optional",g=d.optout==="optional";for(const p in t){if(p==="__proto__"||u.has(p))continue;if(l==="never"){s.push(p);continue}const A=d.run({value:t[p],issues:[]},r);A instanceof Promise?e.push(A.then(k=>je(k,n,p,t,m,g))):je(A,n,p,t,m,g)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Gd=h("$ZodObject",(e,t)=>{if(Q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}const n=vt(()=>sr(t));U(e._zod,"propValues",()=>{const s=t.shape,u={};for(const d in s){const l=s[d]._zod;if(l.values){u[d]??(u[d]=new Set);for(const m of l.values)u[d].add(m)}}return u});const r=Ke,i=t.catchall;let a;e._zod.parse=(s,u)=>{a??(a=n.value);const d=s.value;if(!r(d))return s.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),s;s.value={};const l=[],m=a.shape;for(const g of a.keys){const p=m[g],A=p._zod.optin==="optional",k=p._zod.optout==="optional",y=p._zod.run({value:d[g],issues:[]},u);y instanceof Promise?l.push(y.then(S=>je(S,s,g,d,A,k))):je(y,s,g,d,A,k)}return i?ur(l,d,s,u,n.value,e):l.length?Promise.all(l).then(()=>s):s}}),qd=h("$ZodObjectJIT",(e,t)=>{Gd.init(e,t);const n=e._zod.parse,r=vt(()=>sr(t)),i=p=>{const A=new ld(["shape","payload","ctx"]),k=r.value,y=v=>{const N=Gn(v);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};A.write("const input = payload.value;");const S=Object.create(null);let R=0;for(const v of k.keys)S[v]=`key_${R++}`;A.write("const newResult = {};");for(const v of k.keys){const N=S[v],P=Gn(v),z=p[v],G=z?._zod?.optin==="optional",Z=z?._zod?.optout==="optional";A.write(`const ${N} = ${y(v)};`),G&&Z?A.write(`
5
- if (${N}.issues.length) {
6
- if (${P} in input) {
7
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
8
- ...iss,
9
- path: iss.path ? [${P}, ...iss.path] : [${P}]
10
- })));
1
+ (function(a,Ge){typeof exports=="object"&&typeof module<"u"?Ge(exports):typeof define=="function"&&define.amd?define(["exports"],Ge):(a=typeof globalThis<"u"?globalThis:a||self,Ge(a["@revolugo/booking-api-client"]={}))})(this,function(a){Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});var Ge=Object.create,ir=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,fc=Object.getOwnPropertyNames,lc=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty,re=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),mc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=fc(t),o=0,s=i.length,u;o<s;o++)u=i[o],!or.call(e,u)&&u!==n&&ir(e,u,{get:(c=>t[c]).bind(null,u),enumerable:!(r=dc(t,u))||r.enumerable});return e},oe=(e,t,n)=>(n=e!=null?Ge(lc(e)):{},mc(t||!e||!e.__esModule||!or.call(e,"default")?ir(n,"default",{value:e,enumerable:!0}):n,e)),ar=(function(e){return e.V1="v1",e})({}),Je=(function(e){return e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e})({}),pc={"CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001",LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com"},sr="https://revolugo.s3.eu-west-3.amazonaws.com",Y_=`${sr}/images`,Lt=`${sr}/legal`,V_=`${Lt}/2026_05_06_CGV_indiv_Revolugo_EN_FR.docx.pdf`,W_=`${Lt}/EN_privacy_policy_2024_revolugo.pdf`,X_=`${Lt}/FR_privacy_policy_2024_revolugo.pdf`,ur=(function(e){return e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e})({}),hc=re(((e,t)=>{var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,r=(function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o})();(function(o){(function(s){var u=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function d(f){return f&&DataView.prototype.isPrototypeOf(f)}if(c.arrayBuffer)var p=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(f){return f&&p.indexOf(Object.prototype.toString.call(f))>-1};function h(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function _(f){return typeof f!="string"&&(f=String(f)),f}function A(f){var l={next:function(){var S=f.shift();return{done:S===void 0,value:S}}};return c.iterable&&(l[Symbol.iterator]=function(){return l}),l}function y(f){this.map={},f instanceof y?f.forEach(function(l,S){this.append(S,l)},this):Array.isArray(f)?f.forEach(function(l){if(l.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+l.length);this.append(l[0],l[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(l){this.append(l,f[l])},this)}y.prototype.append=function(f,l){f=h(f),l=_(l);var S=this.map[f];this.map[f]=S?S+", "+l:l},y.prototype.delete=function(f){delete this.map[h(f)]},y.prototype.get=function(f){return f=h(f),this.has(f)?this.map[f]:null},y.prototype.has=function(f){return this.map.hasOwnProperty(h(f))},y.prototype.set=function(f,l){this.map[h(f)]=_(l)},y.prototype.forEach=function(f,l){for(var S in this.map)this.map.hasOwnProperty(S)&&f.call(l,this.map[S],S,this)},y.prototype.keys=function(){var f=[];return this.forEach(function(l,S){f.push(S)}),A(f)},y.prototype.values=function(){var f=[];return this.forEach(function(l){f.push(l)}),A(f)},y.prototype.entries=function(){var f=[];return this.forEach(function(l,S){f.push([S,l])}),A(f)},c.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(f){if(!f._noBody){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}}function v(f){return new Promise(function(l,S){f.onload=function(){l(f.result)},f.onerror=function(){S(f.error)}})}function R(f){var l=new FileReader,S=v(l);return l.readAsArrayBuffer(f),S}function N(f){var l=new FileReader,S=v(l),T=/charset=([A-Za-z0-9_-]+)/.exec(f.type),k=T?T[1]:"utf-8";return l.readAsText(f,k),S}function E(f){for(var l=new Uint8Array(f),S=new Array(l.length),T=0;T<l.length;T++)S[T]=String.fromCharCode(l[T]);return S.join("")}function P(f){if(f.slice)return f.slice(0);var l=new Uint8Array(f.byteLength);return l.set(new Uint8Array(f)),l.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:c.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:c.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():c.arrayBuffer&&c.blob&&d(f)?(this._bodyArrayBuffer=P(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||m(f))?this._bodyArrayBuffer=P(f):this._bodyText=f=Object.prototype.toString.call(f):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var f=g(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=g(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(c.blob)return this.blob().then(R);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var f=g(this);if(f)return f;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(E(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(f){var l=f.toUpperCase();return $.indexOf(l)>-1?l:f}function H(f,l){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l=l||{};var S=l.body;if(f instanceof H){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,l.headers||(this.headers=new y(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!S&&f._bodyInit!=null&&(S=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=l.credentials||this.credentials||"same-origin",(l.headers||!this.headers)&&(this.headers=new y(l.headers)),this.method=U(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal||(function(){if("AbortController"in u)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&S)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(S),(this.method==="GET"||this.method==="HEAD")&&(l.cache==="no-store"||l.cache==="no-cache")){var T=/([?&])_=[^&]*/;if(T.test(this.url))this.url=this.url.replace(T,"$1_="+new Date().getTime());else{var k=/\?/;this.url+=(k.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function B(f){var l=new FormData;return f.trim().split("&").forEach(function(S){if(S){var T=S.split("="),k=T.shift().replace(/\+/g," "),w=T.join("=").replace(/\+/g," ");l.append(decodeURIComponent(k),decodeURIComponent(w))}}),l}function I(f){var l=new y;return f.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(S){return S.indexOf(`
2
+ `)===0?S.substr(1,S.length):S}).forEach(function(S){var T=S.split(":"),k=T.shift().trim();if(k){var w=T.join(":").trim();try{l.append(k,w)}catch(J){console.warn("Response "+J.message)}}}),l}b.call(H.prototype);function L(f,l){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new y(l.headers),this.url=l.url||"",this._initBody(f)}b.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},L.error=function(){var f=new L(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var X=[301,302,303,307,308];L.redirect=function(f,l){if(X.indexOf(l)===-1)throw new RangeError("Invalid status code");return new L(null,{status:l,headers:{location:f}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(l,S){this.message=l,this.name=S;var T=Error(l);this.stack=T.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function C(f,l){return new Promise(function(S,T){var k=new H(f,l);if(k.signal&&k.signal.aborted)return T(new s.DOMException("Aborted","AbortError"));var w=new XMLHttpRequest;function J(){w.abort()}w.onload=function(){var z={statusText:w.statusText,headers:I(w.getAllResponseHeaders()||"")};k.url.indexOf("file://")===0&&(w.status<200||w.status>599)?z.status=200:z.status=w.status,z.url="responseURL"in w?w.responseURL:z.headers.get("X-Request-URL");var Q="response"in w?w.response:w.responseText;setTimeout(function(){S(new L(Q,z))},0)},w.onerror=function(){setTimeout(function(){T(new TypeError("Network request failed"))},0)},w.ontimeout=function(){setTimeout(function(){T(new TypeError("Network request timed out"))},0)},w.onabort=function(){setTimeout(function(){T(new s.DOMException("Aborted","AbortError"))},0)};function K(z){try{return z===""&&u.location.href?u.location.href:z}catch{return z}}if(w.open(k.method,K(k.url),!0),k.credentials==="include"?w.withCredentials=!0:k.credentials==="omit"&&(w.withCredentials=!1),"responseType"in w&&(c.blob?w.responseType="blob":c.arrayBuffer&&(w.responseType="arraybuffer")),l&&typeof l.headers=="object"&&!(l.headers instanceof y||u.Headers&&l.headers instanceof u.Headers)){var Y=[];Object.getOwnPropertyNames(l.headers).forEach(function(z){Y.push(h(z)),w.setRequestHeader(z,_(l.headers[z]))}),k.headers.forEach(function(z,Q){Y.indexOf(Q)===-1&&w.setRequestHeader(Q,z)})}else k.headers.forEach(function(z,Q){w.setRequestHeader(Q,z)});k.signal&&(k.signal.addEventListener("abort",J),w.onreadystatechange=function(){w.readyState===4&&k.signal.removeEventListener("abort",J)}),w.send(typeof k._bodyInit>"u"?null:k._bodyInit)})}return C.polyfill=!0,u.fetch||(u.fetch=C,u.Headers=y,u.Request=H,u.Response=L),s.Headers=y,s.Request=H,s.Response=L,s.fetch=C,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),yc=oe(hc(),1),gc=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),_c=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Oc=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Ac=/[^\p{L}\d]+/giu,cr="$1\0$2",dr="";function fr(e){let t=e.trim();t=t.replace(gc,cr).replace(_c,cr),t=t.replace(Ac,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function Sc(e){const t=fr(e);for(let n=0;n<t.length;n++){const r=t[n],i=Oc.exec(r);if(i){const o=i.index+(i[1]??i[2]).length;t.splice(n,1,r.slice(0,o),r.slice(o))}}return t}function lr(e,t){const[n,r,i]=tt(e,t);return n+r.map(et(t?.locale)).join(t?.delimiter??" ")+i}function Tc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale),u=t?.mergeAmbiguousCharacters?Ht(o,s):pr(o,s);return n+r.map((c,d)=>d===0?o(c):u(c,d)).join(t?.delimiter??"")+i}function vc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale),u=t?.mergeAmbiguousCharacters?Ht(o,s):pr(o,s);return n+r.map(u).join(t?.delimiter??"")+i}function wc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale);return n+r.map(Ht(o,s)).join(t?.delimiter??" ")+i}function mr(e,t){return lr(e,{delimiter:"-",...t})}function kc(e,t){return lr(e,{delimiter:"_",...t})}function et(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function zt(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Ht(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function pr(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function tt(e,t={}){const n=t.split??(t.separateNumbers?Sc:fr),r=t.prefixCharacters??dr,i=t.suffixCharacters??dr;let o=0,s=e.length;for(;o<e.length;){const u=e.charAt(o);if(!r.includes(u))break;o++}for(;s>o;){const u=s-1,c=e.charAt(u);if(!i.includes(c))break;s=u}return[e.slice(0,o),n(e.slice(o,s)),e.slice(s)]}var Rc=re(((e,t)=>{(function(n,r,i){typeof e=="object"?(t.exports=i(),t.exports.default=i()):typeof define=="function"&&define.amd?define(i):r[n]=i()})("slugify",e,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var u=r[s.locale]||{},c=s.replacement===void 0?"-":s.replacement,d=s.trim===void 0?!0:s.trim,p=o.normalize().split("").reduce(function(m,h){var _=u[h];return _===void 0&&(_=n[h]),_===void 0&&(_=h),_===c&&(_=" "),m+_.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(p=p.replace(/[^A-Za-z0-9\s]/g,"")),d&&(p=p.trim()),p=p.replace(/\s+/g,c),s.lower&&(p=p.toLowerCase()),p}return i.extend=function(o){Object.assign(n,o)},i})})),Nc=oe(Rc(),1);function Pc(e){return(0,Nc.default)(mr(e),{lower:!0,strict:!0})}var D={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},hr={[D.Camel]:Tc,[D.Capital]:wc,[D.Param]:mr,[D.Pascal]:vc,[D.Slug]:Pc,[D.Snake]:kc};function bc(e,t){return Array.isArray(e)?e.map(n=>hr[t](n)):hr[t](e)}function Cc(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function Mc(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Bt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Bt(i,t,n)):Cc(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,o)=>{const s=n.exclude&&Mc(n.exclude,o)?o:bc(o,t);return i[s]=r?Bt(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function F(e,t,n={}){return Bt(e,t,{deep:n.deep??!0,exclude:n.exclude})}var yr=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",u="minute",c="hour",d="day",p="week",m="month",h="quarter",_="year",A="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var f=["th","st","nd","rd"],l=C%100;return"["+C+(f[(l-20)%10]||f[l]||f[0])+"]"}},N=function(C,f,l){var S=String(C);return!S||S.length>=f?C:""+Array(f+1-S.length).join(l)+C},E={s:N,z:function(C){var f=-C.utcOffset(),l=Math.abs(f),S=Math.floor(l/60),T=l%60;return(f<=0?"+":"-")+N(S,2,"0")+":"+N(T,2,"0")},m:function C(f,l){if(f.date()<l.date())return-C(l,f);var S=12*(l.year()-f.year())+(l.month()-f.month()),T=f.clone().add(S,m),k=l-T<0,w=f.clone().add(S+(k?-1:1),m);return+(-(S+(l-T)/(k?T-w:w-T))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:m,y:_,w:p,d,D:A,h:c,m:u,s,ms:o,Q:h}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},P="en",b={};b[P]=R;var $="$isDayjsObject",U=function(C){return C instanceof L||!(!C||!C[$])},H=function C(f,l,S){var T;if(!f)return P;if(typeof f=="string"){var k=f.toLowerCase();b[k]&&(T=k),l&&(b[k]=l,T=k);var w=f.split("-");if(!T&&w.length>1)return C(w[0])}else{var J=f.name;b[J]=f,T=J}return!S&&T&&(P=T),T||!S&&P},B=function(C,f){if(U(C))return C.clone();var l=typeof f=="object"?f:{};return l.date=C,l.args=arguments,new L(l)},I=E;I.l=H,I.i=U,I.w=function(C,f){return B(C,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var L=(function(){function C(l){this.$L=H(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[$]=!0}var f=C.prototype;return f.parse=function(l){this.$d=(function(S){var T=S.date,k=S.utc;if(T===null)return new Date(NaN);if(I.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var w=T.match(g);if(w){var J=w[2]-1||0,K=(w[7]||"0").substring(0,3);return k?new Date(Date.UTC(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)):new Date(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)}}return new Date(T)})(l),this.init()},f.init=function(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()},f.$utils=function(){return I},f.isValid=function(){return this.$d.toString()!==y},f.isSame=function(l,S){var T=B(l);return this.startOf(S)<=T&&T<=this.endOf(S)},f.isAfter=function(l,S){return B(l)<this.startOf(S)},f.isBefore=function(l,S){return this.endOf(S)<B(l)},f.$g=function(l,S,T){return I.u(l)?this[S]:this.set(T,l)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(l,S){var T=this,k=!!I.u(S)||S,w=I.p(l),J=function(ye,ne){var de=I.w(T.$u?Date.UTC(T.$y,ne,ye):new Date(T.$y,ne,ye),T);return k?de:de.endOf(d)},K=function(ye,ne){return I.w(T.toDate()[ye].apply(T.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(ne)),T)},Y=this.$W,z=this.$M,Q=this.$D,Re="set"+(this.$u?"UTC":"");switch(w){case _:return k?J(1,0):J(31,11);case m:return k?J(1,z):J(0,z+1);case p:var Oe=this.$locale().weekStart||0,De=(Y<Oe?Y+7:Y)-Oe;return J(k?Q-De:Q+(6-De),z);case d:case A:return K(Re+"Hours",0);case c:return K(Re+"Minutes",1);case u:return K(Re+"Seconds",2);case s:return K(Re+"Milliseconds",3);default:return this.clone()}},f.endOf=function(l){return this.startOf(l,!1)},f.$set=function(l,S){var T,k=I.p(l),w="set"+(this.$u?"UTC":""),J=(T={},T[d]=w+"Date",T[A]=w+"Date",T[m]=w+"Month",T[_]=w+"FullYear",T[c]=w+"Hours",T[u]=w+"Minutes",T[s]=w+"Seconds",T[o]=w+"Milliseconds",T)[k],K=k===d?this.$D+(S-this.$W):S;if(k===m||k===_){var Y=this.clone().set(A,1);Y.$d[J](K),Y.init(),this.$d=Y.set(A,Math.min(this.$D,Y.daysInMonth())).$d}else J&&this.$d[J](K);return this.init(),this},f.set=function(l,S){return this.clone().$set(l,S)},f.get=function(l){return this[I.p(l)]()},f.add=function(l,S){var T,k=this;l=Number(l);var w=I.p(S),J=function(z){var Q=B(k);return I.w(Q.date(Q.date()+Math.round(z*l)),k)};if(w===m)return this.set(m,this.$M+l);if(w===_)return this.set(_,this.$y+l);if(w===d)return J(1);if(w===p)return J(7);var K=(T={},T[u]=r,T[c]=i,T[s]=n,T)[w]||1,Y=this.$d.getTime()+l*K;return I.w(Y,this)},f.subtract=function(l,S){return this.add(-1*l,S)},f.format=function(l){var S=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var k=l||"YYYY-MM-DDTHH:mm:ssZ",w=I.z(this),J=this.$H,K=this.$m,Y=this.$M,z=T.weekdays,Q=T.months,Re=T.meridiem,Oe=function(ne,de,Ae,Ne){return ne&&(ne[de]||ne(S,k))||Ae[de].slice(0,Ne)},De=function(ne){return I.s(J%12||12,ne,"0")},ye=Re||function(ne,de,Ae){var Ne=ne<12?"AM":"PM";return Ae?Ne.toLowerCase():Ne};return k.replace(v,(function(ne,de){return de||(function(Ae){switch(Ae){case"YY":return String(S.$y).slice(-2);case"YYYY":return I.s(S.$y,4,"0");case"M":return Y+1;case"MM":return I.s(Y+1,2,"0");case"MMM":return Oe(T.monthsShort,Y,Q,3);case"MMMM":return Oe(Q,Y);case"D":return S.$D;case"DD":return I.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return Oe(T.weekdaysMin,S.$W,z,2);case"ddd":return Oe(T.weekdaysShort,S.$W,z,3);case"dddd":return z[S.$W];case"H":return String(J);case"HH":return I.s(J,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return ye(J,K,!0);case"A":return ye(J,K,!1);case"m":return String(K);case"mm":return I.s(K,2,"0");case"s":return String(S.$s);case"ss":return I.s(S.$s,2,"0");case"SSS":return I.s(S.$ms,3,"0");case"Z":return w}return null})(ne)||w.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(l,S,T){var k,w=this,J=I.p(S),K=B(l),Y=(K.utcOffset()-this.utcOffset())*r,z=this-K,Q=function(){return I.m(w,K)};switch(J){case _:k=Q()/12;break;case m:k=Q();break;case h:k=Q()/3;break;case p:k=(z-Y)/6048e5;break;case d:k=(z-Y)/864e5;break;case c:k=z/i;break;case u:k=z/r;break;case s:k=z/n;break;default:k=z}return T?k:I.a(k)},f.daysInMonth=function(){return this.endOf(m).$D},f.$locale=function(){return b[this.$L]},f.locale=function(l,S){if(!l)return this.$L;var T=this.clone(),k=H(l,S,!0);return k&&(T.$L=k),T},f.clone=function(){return I.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},C})(),X=L.prototype;return B.prototype=X,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",d],["$M",m],["$y",_],["$D",A]].forEach((function(C){X[C[1]]=function(f){return this.$g(f,C[0],C[1])}})),B.extend=function(C,f){return C.$i||(C(f,L,B),C.$i=!0),B},B.locale=H,B.isDayjs=U,B.unix=function(C){return B(1e3*C)},B.en=b[P],B.Ls=b,B.p={},B}))})),Ic=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return o.bind(this)(s);var d=this.$utils(),p=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),m==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return m}}));return o.bind(this)(p)}}}))})),Dc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,c={},d=function(g){return(g=+g)+(g>68?1900:2e3)},p=function(g){return function(v){this[g]=+v}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var R=v.match(/([+-]|\d\d)/g),N=60*R[1]+(+R[2]||0);return N===0?0:R[0]==="+"?-N:N})(g)}],h=function(g){var v=c[g];return v&&(v.indexOf?v:v.s.concat(v.f))},_=function(g,v){var R,N=c.meridiem;if(N){for(var E=1;E<=24;E+=1)if(g.indexOf(N(E,0,v))>-1){R=E>12;break}}else R=g===(v?"pm":"PM");return R},A={A:[u,function(g){this.afternoon=_(g,!1)}],a:[u,function(g){this.afternoon=_(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[o,p("day")],Do:[u,function(g){var v=c.ordinal,R=g.match(/\d+/);if(this.day=R[0],v)for(var N=1;N<=31;N+=1)v(N).replace(/\[|\]/g,"")===g&&(this.day=N)}],w:[s,p("week")],ww:[o,p("week")],M:[s,p("month")],MM:[o,p("month")],MMM:[u,function(g){var v=h("months"),R=(h("monthsShort")||v.map((function(N){return N.slice(0,3)}))).indexOf(g)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[u,function(g){var v=h("months").indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,p("year")],YY:[o,function(g){this.year=d(g)}],YYYY:[/\d{4}/,p("year")],Z:m,ZZ:m};function y(g){for(var v=g,R=c&&c.formats,N=(g=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,I,L){var X=L&&L.toUpperCase();return I||R[L]||n[L]||R[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,f,l){return f||l.slice(1)}))}))).match(r),E=N.length,P=0;P<E;P+=1){var b=N[P],$=A[b],U=$&&$[0],H=$&&$[1];N[P]=H?{regex:U,parser:H}:b.replace(/^\[|\]$/g,"")}return function(B){for(var I={},L=0,X=0;L<E;L+=1){var C=N[L];if(typeof C=="string")X+=C.length;else{var f=C.regex,l=C.parser,S=B.slice(X),T=f.exec(S)[0];l.call(I,T),B=B.replace(T,"")}}return(function(k){var w=k.afternoon;if(w!==void 0){var J=k.hours;w?J<12&&(k.hours+=12):J===12&&(k.hours=0),delete k.afternoon}})(I),I}}return function(g,v,R){R.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(d=g.parseTwoDigitYear);var N=v.prototype,E=N.parse;N.parse=function(P){var b=P.date,$=P.utc,U=P.args;this.$u=$;var H=U[1];if(typeof H=="string"){var B=U[2]===!0,I=U[3]===!0,L=B||I,X=U[2];I&&(X=U[2]),c=this.$locale(),!B&&X&&(c=R.Ls[X]),this.$d=(function(S,T,k,w){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*S);var J=y(T)(S),K=J.year,Y=J.month,z=J.day,Q=J.hours,Re=J.minutes,Oe=J.seconds,De=J.milliseconds,ye=J.zone,ne=J.week,de=new Date,Ae=z||(K||Y?1:de.getDate()),Ne=K||de.getFullYear(),Ft=0;K&&!Y||(Ft=Y>0?Y-1:de.getMonth());var $t,er=Q||0,tr=Re||0,nr=Oe||0,rr=De||0;return ye?new Date(Date.UTC(Ne,Ft,Ae,er,tr,nr,rr+60*ye.offset*1e3)):k?new Date(Date.UTC(Ne,Ft,Ae,er,tr,nr,rr)):($t=new Date(Ne,Ft,Ae,er,tr,nr,rr),ne&&($t=w($t).week(ne).toDate()),$t)}catch{return new Date("")}})(b,H,$,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),L&&b!=this.format(H)&&(this.$d=new Date("")),c={}}else if(H instanceof Array)for(var C=H.length,f=1;f<=C;f+=1){U[1]=H[f-1];var l=R.apply(this,U);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}f===C&&(this.$d=new Date(""))}else E.call(this,P)}}}))})),Jc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(n,r,i){r.prototype.isBetween=function(o,s,u,c){var d=i(o),p=i(s),m=(c=c||"()")[0]==="(",h=c[1]===")";return(m?this.isAfter(d,u):!this.isBefore(d,u))&&(h?this.isBefore(p,u):!this.isAfter(p,u))||(m?this.isBefore(d,u):!this.isAfter(d,u))&&(h?this.isAfter(p,u):!this.isBefore(p,u))}}}))})),Ec=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrAfter=function(i,o){return this.isSame(i,o)||this.isAfter(i,o)}}}))})),Fc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrBefore=function(i,o){return this.isSame(i,o)||this.isBefore(i,o)}}}))})),$c=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var o=r.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,h,_,A,y){var g=m.name?m:m.$locale(),v=s(g[h]),R=s(g[_]),N=v||R.map((function(P){return P.slice(0,A)}));if(!y)return N;var E=g.weekStart;return N.map((function(P,b){return N[(b+(E||0))%7]}))},c=function(){return i.Ls[i.locale()]},d=function(m,h){return m.formats[h]||(function(_){return _.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,y,g){return y||g.slice(1)}))})(m.formats[h.toUpperCase()])},p=function(){var m=this;return{months:function(h){return h?h.format("MMMM"):u(m,"months")},monthsShort:function(h){return h?h.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):u(m,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(m.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return p.bind(this)()},i.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(h){return d(m,h)},meridiem:m.meridiem,ordinal:m.ordinal}},i.months=function(){return u(c(),"months")},i.monthsShort=function(){return u(c(),"monthsShort","months",3)},i.weekdays=function(m){return u(c(),"weekdays",null,null,m)},i.weekdaysShort=function(m){return u(c(),"weekdaysShort","weekdays",3,m)},i.weekdaysMin=function(m){return u(c(),"weekdaysMin","weekdays",2,m)}}}))})),Lc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,u=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,p=(function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,A,y){var g=y&&y.toUpperCase();return A||h[y]||n[y]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,R,N){return R||N.slice(1)}))}))})(c,d===void 0?{}:d);return u.call(this,p)}}}))})),zc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_minMax=r()})(e,(function(){"use strict";return function(n,r,i){var o=function(s,u){if(!u||!u.length||u.length===1&&!u[0]||u.length===1&&Array.isArray(u[0])&&!u[0].length)return null;var c;u.length===1&&u[0].length>0&&(u=u[0]),c=(u=u.filter((function(p){return p})))[0];for(var d=1;d<u.length;d+=1)u[d].isValid()&&!u[d][s](c)||(c=u[d]);return c};i.max=function(){return o("isAfter",[].slice.call(arguments,0))},i.min=function(){return o("isBefore",[].slice.call(arguments,0))}}}))})),Hc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){"use strict";return function(n,r,i){n=n||{};var o=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(d,p,m,h){return o.fromToBase(d,p,m,h)}i.en.relativeTime=s,o.fromToBase=function(d,p,m,h,_){for(var A,y,g,v=m.$locale().relativeTime||s,R=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],N=R.length,E=0;E<N;E+=1){var P=R[E];P.d&&(A=h?i(d).diff(m,P.d,!0):m.diff(d,P.d,!0));var b=(n.rounding||Math.round)(Math.abs(A));if(g=A>0,b<=P.r||!P.r){b<=1&&E>0&&(P=R[E-1]);var $=v[P.l];_&&(b=_(""+b)),y=typeof $=="string"?$.replace("%d",b):$(b,p,P.l,g);break}}if(p)return y;var U=g?v.future:v.past;return typeof U=="function"?U(y):U.replace("%s",y)},o.to=function(d,p){return u(d,p,this,!0)},o.from=function(d,p){return u(d,p,this)};var c=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(c(this),d)},o.fromNow=function(d){return this.from(c(this),d)}}}))})),Bc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,o,s){var u,c=function(h,_,A){A===void 0&&(A={});var y=new Date(h);return(function(g,v){v===void 0&&(v={});var R=v.timeZoneName||"short",N=g+"|"+R,E=r[N];return E||(E=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:R}),r[N]=E),E})(_,A).formatToParts(y)},d=function(h,_){for(var A=c(h,_),y=[],g=0;g<A.length;g+=1){var v=A[g],R=v.type,N=v.value,E=n[R];E>=0&&(y[E]=parseInt(N,10))}var P=y[3],b=P===24?0:P,$=y[0]+"-"+y[1]+"-"+y[2]+" "+b+":"+y[4]+":"+y[5]+":000",U=+h;return(s.utc($).valueOf()-(U-=U%1e3))/6e4},p=o.prototype;p.tz=function(h,_){if(h===void 0&&(h=u),!this.isValid())return this;var A,y=this.utcOffset(),g=this.toDate(),v=g.toLocaleString("en-US",{timeZone:h}),R=d(+g,h);if(!Number(R))A=this.utcOffset(0,_);else if(A=s(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(R,!0),_){var N=A.utcOffset();A=A.add(y-N,"minute")}return A.$x.$timezone=h,A},p.offsetName=function(h){var _=this.$x.$timezone||s.tz.guess(),A=c(this.valueOf(),_,{timeZoneName:h}).find((function(y){return y.type.toLowerCase()==="timezonename"}));return A&&A.value};var m=p.startOf;p.startOf=function(h,_){if(!this.$x||!this.$x.$timezone)return m.call(this,h,_);var A=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(A,h,_).tz(this.$x.$timezone,!0)},s.tz=function(h,_,A){var y=A&&_,g=A||_||u,v=d(+s(),g);if(typeof h!="string")return s(h).tz(g);var R=s.utc(h,y).valueOf();if(Number.isNaN(R)){var N=s(NaN);return N.$x.$timezone=g,N}var E=(function(U,H,B){var I=U-60*H*1e3,L=d(I,B);if(H===L)return[I,H];var X=d(I-=60*(L-H)*1e3,B);return L===X?[I,L]:[U-60*Math.min(L,X)*1e3,Math.max(L,X)]})(R,v,g),P=E[0],b=E[1],$=s(P).utcOffset(b);return $.$x.$timezone=g,$},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(h){u=h}}}))})),Uc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,u){var c=s.prototype;u.utc=function(y){return new s({date:y,utc:!0,args:arguments})},c.utc=function(y){var g=u(this.toDate(),{locale:this.$L,utc:!0});return y?g.add(this.utcOffset(),n):g},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var d=c.parse;c.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),d.call(this,y)};var p=c.init;c.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else p.call(this)};var m=c.utcOffset;c.utcOffset=function(y,g){var v=this.$utils().u;if(v(y))return this.$u?0:v(this.$offset)?m.call(this):this.$offset;if(typeof y=="string"&&(y=(function(P){P===void 0&&(P="");var b=P.match(r);if(!b)return null;var $=(""+b[0]).match(i)||["-",0,0],U=$[0],H=60*+$[1]+ +$[2];return H===0?0:U==="+"?H:-H})(y),y===null))return this;var R=Math.abs(y)<=16?60*y:y;if(R===0)return this.utc(g);var N=this.clone();if(g)return N.$offset=R,N.$u=!1,N;var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(R+E,n)).$offset=R,N.$x.$localOffset=E,N};var h=c.format;c.format=function(y){var g=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},c.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var _=c.toDate;c.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():_.call(this)};var A=c.diff;c.diff=function(y,g,v){if(y&&this.$u===y.$u)return A.call(this,y,g,v);var R=this.local(),N=u(y).local();return A.call(R,N,g,v)}}}))})),Zc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(yr()):typeof define=="function"&&define.amd?define(["dayjs"],r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(n){"use strict";function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),o={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return i.default.locale(o,null,!0),o}))})),Gc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})),fe=oe(yr(),1),qc=oe(Ic(),1),Kc=oe(Dc(),1),Yc=oe(Jc(),1),Vc=oe(Ec(),1),Wc=oe(Fc(),1),Xc=oe($c(),1),Qc=oe(Lc(),1),xc=oe(zc(),1),jc=oe(Hc(),1),ed=oe(Bc(),1),td=oe(Uc(),1),Q_=Zc(),x_=Gc();fe.default.extend(qc.default),fe.default.extend(Kc.default),fe.default.extend(Yc.default),fe.default.extend(Vc.default),fe.default.extend(Wc.default),fe.default.extend(Qc.default),fe.default.extend(Xc.default),fe.default.extend(xc.default),fe.default.extend(jc.default),fe.default.extend(ed.default),fe.default.extend(td.default);function Se(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function nt(e,t=new WeakSet){if(e==null||typeof e!="object"||t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map(n=>nt(n,t));if(Se(e)){const n={};for(const r in e)Object.hasOwn(e,r)&&(n[r]=nt(e[r],t));return n}return e}function Ut(e,t,n=new WeakSet){if(!(!Se(t)||!Se(e))&&!(t===e||n.has(t))){n.add(t);for(const r in t)if(Object.hasOwn(t,r)){const i=t[r],o=e[r];Se(i)&&Se(o)?Ut(o,i,n):Array.isArray(i)&&Array.isArray(o)?e[r]=gr(o,i,n):e[r]=nt(i,n)}}}function gr(e,t,n){const r=e.slice();for(let i=0;i<t.length;i++){const o=t[i],s=r[i];if(Se(o)&&Se(s)){const u={...s};Ut(u,o,n),r[i]=u}else Array.isArray(o)&&Array.isArray(s)?r[i]=gr(s,o,n):r[i]=nt(o,n)}return r}function _r(e,...t){if(!Se(e))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const r of t)r!=null&&Ut(e,r,n);return e}function nd(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var ee=[];for(let e=0;e<256;++e)ee.push((e+256).toString(16).slice(1));function rd(e,t=0){return(ee[e[t+0]]+ee[e[t+1]]+ee[e[t+2]]+ee[e[t+3]]+"-"+ee[e[t+4]]+ee[e[t+5]]+"-"+ee[e[t+6]]+ee[e[t+7]]+"-"+ee[e[t+8]]+ee[e[t+9]]+"-"+ee[e[t+10]]+ee[e[t+11]]+ee[e[t+12]]+ee[e[t+13]]+ee[e[t+14]]+ee[e[t+15]]).toLowerCase()}var id=new Uint8Array(16);function od(){return crypto.getRandomValues(id)}function ad(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():sd(e,t,n)}function sd(e,t,n){e=e||{};const r=e.random??e.rng?.()??od();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return rd(r)}var ud=1500,Pe={},cd=class{defaultOptions={callCount:1,interval:ud,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};on(e,t){this.events[e]=t}poll(e,t){const n=this.buildPollerOptions(t);return this.storeCurrentPolling(n),this.isActivePoller(n)&&e().then(r=>this.onRequest(r,e,n)).catch(r=>{const i=r instanceof Error?r:new Error(String(r));this.dispatch("error",i)}),this}stop(e){e&&Pe[e]&&delete Pe[e]}buildPollerOptions(e){return{...this.defaultOptions,...nd(e)}}dispatch(e,t){this.events[e](t)}isActivePoller(e){return e.type?!!Pe[e.type]&&Pe[e.type]===e.uuid:!0}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}onComplete(e,t){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(t)}async onRequest(e,t,n){const r=F(e,D.Camel);this.isActivePoller(n)&&(this.isInProgress(r)&&n.callCount&&n.maxCallCount&&n.callCount<n.maxCallCount||!this.isInProgress(r)&&n.callCount&&n.minCallCount&&n.callCount<n.minCallCount?(this.isInProgress(r)||(r.meta={...r.meta,status:"IN_PROGRESS"}),n.callCount+=1,this.dispatch("data",r),n.interval&&await this.pause(n),this.poll(t,n)):this.isInProgress(r)?(r.meta={...r.meta,status:"COMPLETE"},this.onComplete(r,n)):this.onComplete(r,n))}pause(e){return new Promise(t=>{setTimeout(t,e.interval)})}removeCurrentPolling(e){e.type&&Pe[e.type]&&delete Pe[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=ad(),Pe[e.type]=e.uuid)}};function dd(){return new cd}function rt(e,t,n){const r=dd();return r.poll(e,t),n&&typeof n=="function"?(r.on("data",i=>{i instanceof Error?n(i,void 0,r):n(null,i,r)}),r.on("error",i=>{i instanceof Error?n(i):n(null,i)}),r):new Promise((i,o)=>{r.on("error",o),r.on("complete",s=>{s instanceof Error?o(s):i(s)})})}function Zt(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function Or(e,t="|"){return e.map(n=>kr(n)).join(t)}function Gt(e,t){return typeof t=="bigint"?t.toString():t}var fd=class{constructor(e){this._getter=e,this._value=void 0}get value(){const e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function qt(e){return new fd(e)}function ld(e){return e==null}function Kt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function md(e,t){const n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function be(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ar(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function ge(e){return Ar(e._zod.def)??e._zod.def.shape}function Sr(e,t,n){Object.defineProperty(e,t,{get(){const r=n();return be(this,t,r),r},enumerable:!0,configurable:!0})}function Tr(e,t,n){t in e?be(e,t,n):e[t]=n}function Ce(e,t,n,r){const i=ge(t);for(const o of n){const s=Object.getOwnPropertyDescriptor(i,o);s.enumerable&&(s.get?Sr(e,o,()=>{const u=t._zod.def.shape[o];return r?r(u,o):u}):Tr(e,o,r?r(s.value,o):s.value))}}function pd(e,t){for(const n of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Sr(e,n,()=>t[n]):Tr(e,n,r.value))}}function se(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function hd(e){return JSON.stringify(e)}function yd(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var vr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function it(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gd=qt(()=>{if(me.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function qe(e){if(it(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(it(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function wr(e){return qe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var _d=new Set(["string","number","symbol"]);function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Te(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function kr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Od(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Rr={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ad={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Sd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i={};return Ce(i,e,at(e,t)),Te(e,se(n,{shape:i,checks:[]}))}function at(e,t){const n=ge(e),r=[];for(const i of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,i)?.enumerable)throw new Error(`Unrecognized key: "${String(i)}"`);t[i]&&r.push(i)}return r}function Td(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=new Set(at(e,t)),o={};return Ce(o,e,Reflect.ownKeys(ge(e)).filter(s=>!i.has(s))),Te(e,se(n,{shape:o,checks:[]}))}function vd(e,t){if(!qe(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=ge(e);for(const i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Te(e,se(e._zod.def,{shape:Nr(e,t)}))}function Nr(e,t){const n={};return Ce(n,e,Reflect.ownKeys(ge(e))),pd(n,t),n}function wd(e,t){if(!qe(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Te(e,se(e._zod.def,{shape:Nr(e,t)}))}function kd(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};return Ce(n,e,Reflect.ownKeys(ge(e))),Ce(n,t,Reflect.ownKeys(ge(t))),Te(e,se(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Pr(e,t,n,r="partial"){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const o=n?new Set(at(t,n)):void 0,s={};return Ce(s,t,Reflect.ownKeys(ge(t)),e&&((u,c)=>o&&!o.has(c)?u:new e({type:"optional",innerType:u}))),Te(t,se(t._zod.def,{shape:s,checks:[]}))}function Rd(e,t,n){const r=n?new Set(at(t,n)):void 0,i={};return Ce(i,t,Reflect.ownKeys(ge(t)),(o,s)=>r&&!r.has(s)?o:new e({type:"nonoptional",innerType:o})),Te(t,se(t._zod.def,{shape:i}))}function _e(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Nd(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function br(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ke(e){return typeof e=="string"?e:e?.message}function Cr(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Ee(e,t,n){var r;const i=e.inst?._zod?.traits;i?.has("$ZodType")&&(i.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Ke(e.inst?._zod.def?.error?.(e))??Ke(o?.(e))??Ke(t?.error?.(e))??Ke(n.customError?.(e))??Ke(n.localeError?.(e))??"Invalid input",u={};for(const c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(u[c]=e[c]);return u.path??(u.path=[]),u.message=s,t?.reportInput&&(u.input=e.input),u}var Pd=/[\uD800-\uDBFF]/;function Yt(e){const t=e.length;if(!Pd.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Vt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bd(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Ye(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function Cd(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Md(e,n,r.value)}}function ve(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Mr(e,t,n){return ve(e,t,n,!1)}function Ir(e,t){for(const n in e){const r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return ve(this,n,r(this))},set(i){ve(this,n,i)}})}return t}function Md(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:ve(this,t,n.bind(this))},set(r){ve(this,t,r)}})}function Id(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}var Wt,we=!1,Dd={configurable:!0,get(){we=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Wt!==e._zod){Wt=void 0;return}Wt=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Dd);const i=we;we=!1;try{const o=n(this);return we?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),we=we||i,o}catch(o){throw delete this[t],we=we||i,o}},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i})}})}function Jd(e,t,n,r){const i=Id(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){const o={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,o),o.value=n(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:o})}})}var Ed="~constantCatch";function Fd(e){const t=()=>e;return t[Ed]=!0,t}var Dr,Xt={value:void 0,enumerable:!1},Jr="captureStackTrace"in Error?Error:null;function $d(e){const t=Jr;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return Jr=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function O(e,t,n,r){const i={};function o(h){this.def=h,this.constr=m,this.traits=new Set}o.prototype=i;const s=n,u=s&&new WeakSet;function c(h,_){if(h._zod){if(h._zod.traits.has(e))return}else{Xt.value=new o(_);try{Object.defineProperty(h,"_zod",Xt)}finally{Xt.value=void 0}}if(h._zod.traits.add(e),t(h,_),u){const y=Object.getPrototypeOf(h),g=h._zod.constr.prototype;let v=y;for(;v&&v!==g;)v=Object.getPrototypeOf(v);const R=v??y;u.has(R)||(u.add(R),Cd(R,s))}const A=m.prototype;for(const y in A)Object.prototype.hasOwnProperty.call(A,y)&&(y in h||(h[y]=A[y].bind(h)))}const d=r?.Parent??Object;class p extends d{}Object.defineProperty(p,"name",{value:e});function m(h){const _=r?.Parent?$d(p):this;c(_,h);const A=_._zod.deferred;if(A){for(const g of A)g();_._zod.deferred=void 0}const y=globalThis.__zod_globalConfig?.postProcessor;return y&&y(_),_}return Object.defineProperty(m,"init",{value:c}),Object.defineProperty(m,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Er=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Dr=globalThis).__zod_globalConfig??(Dr.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function ke(e){return e&&Object.assign(me,e),me}function Ld(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Gt,2)),e.message}function zd(e){this._zod.message=e}var Hd={get:Ld,set:zd,enumerable:!0,configurable:!0},Qt={value:void 0,enumerable:!1},Fr=new WeakSet([Object.prototype,Error.prototype]),$r=(e,t)=>{e.name="$ZodError",Qt.value=t,Object.defineProperty(e,"issues",Qt),Qt.value=void 0,Object.defineProperty(e,"message",Hd);const n=Object.getPrototypeOf(e);Fr.has(n)||(Fr.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Bd=O("$ZodError",$r),j_=O("$ZodError",$r,void 0,{Parent:Error});function Ud(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Zd(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?Ud(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Gd(e,t=n=>n.message){const n={_errors:[]},r=(i,o=[])=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>r({issues:u},[...o,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...o,...s.path]);else{const u=[...o,...s.path];if(u.length===0)n._errors.push(t(s));else{let c=n,d=0;for(;d<u.length;){const p=u[d],m=d===u.length-1;if(p==="_errors"){m&&c._errors.push(t(s)),d++;continue}Object.prototype.hasOwnProperty.call(c,p)||Object.defineProperty(c,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const h=c[p];m&&h._errors.push(t(s)),c=h,d++}}}};return r(e),n}function st(e,t){return{callee:t?.callee??e,Err:t?.Err}}var xt=e=>{const t=(n,r,i,o)=>{const s=i?{...i,async:!1}:{async:!1},u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise)throw new Me;if(u.issues.length){const c=new(o?.Err??e)(u.issues.map(d=>Ee(d,s,ke())));throw vr(c,o?.callee??t),c}return u.value};return t},jt=e=>{const t=async(n,r,i,o)=>{const s=i?{...i,async:!0}:{async:!0};let u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){const c=new(o?.Err??e)(u.issues.map(d=>Ee(d,s,ke())));throw vr(c,o?.callee??t),c}return u.value};return t},en=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Me;return o.issues.length?Lr(e,o.issues,i):{success:!0,data:o.value}};function Lr(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(i=>Ee(i,n,ke()))),t=void 0,n=void 0),r},set error(i){r=i,t=void 0,n=void 0}}}var tn=e=>async(t,n,r)=>{const i=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?Lr(e,o.issues,i):{success:!0,data:o.value}},qd=Symbol.for("zod.compile.invalid"),Kd=Symbol.for("zod.compile.fallback"),Yd=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==qd)return!0;if(r.definite===!0&&n===void 0)return!1}return Vd(e,t,n)});function Vd(e,t,n){const r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun;let o;if(i?(r[Kd]=!0,o=i({value:t,issues:[]},r)):o=e._zod.run({value:t,issues:[]},r),o instanceof Promise)throw new Me;return o.issues.length===0}var Wd=async(e,t,n)=>{const r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},Xd=e=>{const t=xt(e),n=(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return t(r,i,u,st(n,s))};return n},Qd=e=>{const t=xt(e),n=(r,i,o,s)=>t(r,i,o,st(n,s));return n},xd=e=>{const t=jt(e),n=async(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return await t(r,i,u,st(n,s))};return n},jd=e=>{const t=jt(e),n=async(r,i,o,s)=>await t(r,i,o,st(n,s));return n},ef=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return en(e)(t,n,i)},tf=e=>(t,n,r)=>en(e)(t,n,r),nf=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return tn(e)(t,n,i)},rf=e=>async(t,n,r)=>tn(e)(t,n,r),of=/^[cC][0-9a-z]{6,}$/,af=/^[0-9a-z]+$/,sf=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,uf=/^[0-9a-vA-V]{20}$/,cf=/^[A-Za-z0-9]{27}$/,df=/^[a-zA-Z0-9_-]{21}$/;function ff(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var lf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,mf=/^([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})$/,zr=e=>e?new 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)$/,pf=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,hf="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function yf(){return new RegExp(hf,"u")}var gf=/^(?:(?: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])$/,_f=/^(([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}|:))$/,Of=/^((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])$/,Af=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Sf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tf=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,vf=/^https?$/,wf=/^\+[1-9]\d{6,14}$/,Hr="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function kf(e){return new RegExp(`^${e}$`)}var Rf=kf(Hr);function nn(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Nf(e){return new RegExp(`^${nn(e)}$`)}function Pf(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${nn({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${nn({precision:e.precision})}`:n;return new RegExp(`^${Hr}T(?:${r})$`)}var bf=/^[\s\S]{0,}$/,Cf=/^-?\d+(?:\.\d+)?$/,Mf=/^[^A-Z]*$/,If=/^[^a-z]*$/,ae=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),rn=e=>{const t=e.value;return!ld(t)&&t.length!==void 0},ut={number:"number",bigint:"bigint",object:"date"},Br=O("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=ut[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:ut[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ur=O("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=ut[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ut[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Df=O("$ZodCheckMultipleOf",(e,t)=>{ae.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):md(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Jf=O("$ZodCheckNumberFormat",(e,t)=>{ae.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Rr[t.format];e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<i&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),u>o&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Ef=O("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>t.maximum?Yt(i):o)<=t.maximum)return;const s=Vt(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ff=O("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?Yt(i):o)>=t.minimum)return;const s=Vt(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),$f=O("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?Yt(i):o;if(s===t.length)return;const u=Vt(i),c=s>t.length;r.issues.push({origin:u,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ct=O("$ZodCheckStringFormat",(e,t)=>{var n,r;ae.init(e,t),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Lf=O("$ZodCheckRegex",(e,t)=>{ct.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})}}),zf=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Mf),ct.init(e,t)}),Hf=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=If),ct.init(e,t)}),Bf=O("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=ot(t.includes);t.pattern=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Uf=O("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${ot(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Zf=O("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${ot(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Gf=O("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),qf=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
3
+ `).filter(i=>i),n=Math.min(...t.map(i=>i.length-i.trimStart().length)),r=t.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
4
+ ${t.join(`
5
+ `)}
6
+ };`)(...Object.values(this.closed))}},Kf={major:4,minor:6,patch:4},x=O("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Kf;const r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,c,d)=>{if(u.memo)return u;let p=_e(u),m;for(const h of c){if(h._zod.def.when){if(Nd(u)||!h._zod.def.when(u))continue}else if(p)continue;const _=u.issues.length,A=h._zod.check(u);if(A instanceof Promise&&d?.async===!1)throw new Me;if(m||A instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await A,u.issues.length!==_&&(Cr(u.issues,_,e),p||(p=_e(u,_)))});else{if(u.issues.length===_)continue;Cr(u.issues,_,e),p||(p=_e(u,_))}}return m?m.then(()=>u):u},s=(u,c,d)=>{if(_e(u))return u.aborted=!0,u;const p=o(c,i,d);if(p instanceof Promise){if(d.async===!1)throw new Me;return p.then(m=>e._zod.parse(m,d))}return e._zod.parse(p,d)};e._zod.run=(u,c)=>{if(c.skipChecks)return e._zod.parse(u,c);if(c.direction==="backward"){const p=e._zod.parse({value:u.value,issues:[]},{...c,skipChecks:!0});return p instanceof Promise?p.then(m=>s(m,u,c)):s(p,u,c)}const d=e._zod.parse(u,c);if(d instanceof Promise){if(c.async===!1)throw new Me;return d.then(p=>o(p,i,c))}return o(d,i,c)}}},{get"~standard"(){return Mr(this,"~standard",Gr(this))},set"~standard"(e){ve(this,"~standard",e)}}),Zr=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Ee(n,t,ke()))}:{value:e.value};async function Yf(e,t){const n={async:!0};return Zr(await e._zod.run({value:t,issues:[]},n),n)}function Gr(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Zr(r,n)}catch{}return Yf(e,t)},vendor:"zod",version:1}}var on=O("$ZodString",(e,t)=>{x.init(e,t),e._zod.pattern=t.pattern??bf,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),V=O("$ZodStringFormat",(e,t)=>{ct.init(e,t),on.init(e,t)}),Vf=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=mf),V.init(e,t)}),Wf=O("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=zr(n))}else t.pattern??(t.pattern=zr());V.init(e,t)}),Xf=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=pf),V.init(e,t)}),eO=1,tO=2;function qr(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Qf(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?qr(e)||2:xf(e,t)}function xf(e,t){if(!t.normalize&&t.protocol?.source===vf.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<"u"){const n=URL;if(typeof n.parse=="function")return n.parse(e)??2}return new URL(e)}catch{return 2}}var jf=/[\t\n\r]/g;function Kr(e){return e.replace(jf,"")}function el(e,t){return t.lastIndex=0,t.test(e.hostname)}function tl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var nl=O("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=Qf(r,t);if(i===1){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=Kr(r);return}t.hostname&&!el(i,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!tl(i,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Kr(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),rl=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yf()),V.init(e,t)}),il=O("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?df:ff(t.length)),V.init(e,t)}),ol=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=of),V.init(e,t)}),al=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=af),V.init(e,t)}),sl=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=sf),V.init(e,t)}),ul=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=uf),V.init(e,t)}),cl=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=cf),V.init(e,t)}),dl=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Pf(t)),V.init(e,t)}),fl=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Rf),V.init(e,t)}),ll=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Nf(t)),V.init(e,t)}),ml=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=lf),V.init(e,t)}),pl=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=gf),V.init(e,t)}),hl=/^[0-9a-fA-F:.]+$/;function Yr(e){return hl.test(e)?qr(`http://[${e}]`):!1}var yl=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_f),V.init(e,t),e._zod.check=n=>{Yr(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),gl=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Of),V.init(e,t)});function _l(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const i=Number(r);return`${i}`!==r||i<0||i>128?!1:Yr(n)}var Ol=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Af),V.init(e,t),e._zod.check=n=>{_l(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Vr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Wr=/^[0-9a-zA-Z+/]*={0,2}$/,Al=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Wr),V.init(e,t),e._zod.check=n=>{Vr(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),an=/^[A-Za-z0-9_-]*$/;function Sl(e){if(!an.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return Vr(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Tl=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=an),V.init(e,t),e._zod.check=n=>{Sl(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),vl=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wf),V.init(e,t)});function wl(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var kl=O("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{wl(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Xr=O("$ZodNumber",(e,t)=>{x.init(e,t),e._zod.pattern=Cf,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Rl=O("$ZodNumberFormat",(e,t)=>{Jf.init(e,t),Xr.init(e,t)}),Nl=O("$ZodSymbol",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Pl=O("$ZodUnknown",(e,t)=>{x.init(e,t),e._zod.parse=n=>n}),bl=O("$ZodNever",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Qr(e,t,n){e.issues.length&&t.issues.push(...br(n,e.issues)),t.value[n]=e.value}var Cl=O("$ZodArray",(e,t)=>{x.init(e,t);const n=me.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);const s=[],u=i?.abortEarly;for(let c=0;c<o.length;c++){const d=o[c],p=t.element._zod.run({value:d,issues:[]},i);if(p instanceof Promise)s.push(p.then(m=>Qr(m,r,c)));else if(Qr(p,r,c),u&&p.issues.length!==0&&_e(p))break}return s.length?Promise.all(s).then(()=>r):r}});function dt(e,t,n,r,i,o){const s=n in r,u=o==="optional";if(!(!s&&u&&i==="optional")){if(e.issues.length){if(i!==void 0&&u&&!s)return;t.issues.push(...br(n,e.issues))}if(!s&&i===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||i==="defaulted"&&!u)&&(t.value[n]=void 0):t.value[n]=e.value}}var Ml=[];function xr(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Ml,i=r.length?[...t,...r]:t;for(const s of i)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);const o=Od(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function jr(e,t,n,r,i,o,s){const u=[],c=i.keySet,d=i.catchall._zod,p=d.def.type,m=d.optin,h=d.optout;let _=0;for(const A in t){if(s&&n.issues.length!==_){if(_e(n,_))break;_=n.issues.length}if(c.has(A))continue;if(A==="__proto__"){p==="never"&&u.push(A);continue}if(p==="never"){u.push(A);continue}const y=d.run({value:t[A],issues:[]},r);y instanceof Promise?e.push(y.then(g=>dt(g,n,A,t,m,h))):dt(y,n,A,t,m,h)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Il=O("$ZodObject",(e,t)=>{x.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){const d=()=>{const p={...r};return Object.defineProperty(t,"shape",{value:p}),d.raw=p,p};d.raw=r,Object.defineProperty(t,"shape",{get:d})}const i=qt(()=>xr(t));G(e,"propValues",d=>{const p=d.def.shape,m={};for(const h in p){const _=p[h]._zod;if(_.values){Object.prototype.hasOwnProperty.call(m,h)||be(m,h,new Set);for(const A of _.values)m[h].add(A);_.optin!==void 0&&m[h].add(void 0)}}return m});const o=it,s=t.catchall;let u;const c=me.memoizer;c?.attach(e),e._zod.parse=(d,p)=>{u??(u=i.value);const m=d.value;if(!o(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value=c?c.alloc(e,d,{},p):{};const h=[],_=u.shape,A=p?.abortEarly;let y=d.issues.length;for(const g of u.allKeys){if(A&&d.issues.length!==y){if(_e(d,y))break;y=d.issues.length}if(g==="__proto__")continue;const v=_[g],R=v._zod.optin,N=v._zod.optout,E=v._zod.run({value:m[g],issues:[]},p);E instanceof Promise?h.push(E.then(P=>dt(P,d,g,m,R,N))):dt(E,d,g,m,R,N)}return s?jr(h,m,d,p,i.value,e,A===!0):h.length?Promise.all(h).then(()=>d):d}}),Dl=O("$ZodObjectJIT",(e,t)=>{Il.init(e,t);const n=e._zod.parse,r=qt(()=>xr(t)),i=me.memoizer,o=_=>{const A=r.value,y=A.symbolKeys,g=new qf(["payload","ctx"],{shape:_,inst:e,memo:i,syms:y}),v=P=>`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`,R=(P,b)=>`
7
+ let ${P}_ab = false;
8
+ for (let i = 0; i < ${P}.issues.length; i++) {
9
+ const iss = ${P}.issues[i];
10
+ iss.path = iss.path ? [${b}, ...iss.path] : [${b}];
11
+ payload.issues.push(iss);
12
+ if (iss.continue !== true) ${P}_ab = true;
11
13
  }
12
- }
13
-
14
- if (${N}.value === undefined) {
15
- if (${P} in input) {
16
- newResult[${P}] = undefined;
14
+ if (${P}_ab && ctx && ctx.abortEarly) {
15
+ payload.value = newResult;
16
+ return payload;
17
+ }`;g.write("const input = payload.value;");const N=Object.create(null);let E=0;for(const P of A.allKeys)N[P]=`key_${E++}`;g.write(i?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const P of A.allKeys){if(P==="__proto__")continue;const b=N[P],$=typeof P=="symbol"?`syms[${y.indexOf(P)}]`:hd(P),U=`${$} in input`,H=_[P],B=H?._zod?.optin,I=B!==void 0,L=H?._zod?.optout==="optional";if(g.write(`const ${b} = ${v($)};`),I&&L){const X=B==="optional"?`${b}_present`:`${b}.value !== undefined || ${b}_present`;g.write(`
18
+ const ${b}_present = ${U};
19
+ if (!${b}.issues.length || ${b}_present) {
20
+ if (${b}.issues.length) {${R(b,$)}
21
+ }
22
+
23
+ if (${X}) {
24
+ newResult[${$}] = ${b}.value;
17
25
  }
18
- } else {
19
- newResult[${P}] = ${N}.value;
20
26
  }
21
-
22
- `):G?A.write(`
23
- if (${N}.issues.length) {
24
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
25
- ...iss,
26
- path: iss.path ? [${P}, ...iss.path] : [${P}]
27
- })));
27
+
28
+ `)}else I?(g.write(`
29
+ if (${b}.issues.length) {${R(b,$)}
28
30
  }
29
-
30
- if (${N}.value === undefined) {
31
- if (${P} in input) {
32
- newResult[${P}] = undefined;
33
- }
34
- } else {
35
- newResult[${P}] = ${N}.value;
31
+ `),B==="defaulted"?g.write(`newResult[${$}] = ${b}.value;`):g.write(`
32
+ if (${b}.value !== undefined || ${U}) {
33
+ newResult[${$}] = ${b}.value;
36
34
  }
37
-
38
- `):A.write(`
39
- const ${N}_present = ${P} in input;
40
- if (${N}.issues.length) {
41
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
42
- ...iss,
43
- path: iss.path ? [${P}, ...iss.path] : [${P}]
44
- })));
35
+ `)):g.write(`
36
+ const ${b}_present = ${U};
37
+ if (${b}.issues.length) {${R(b,$)}
45
38
  }
46
- if (!${N}_present && !${N}.issues.length) {
39
+ if (!${b}_present && !${b}.issues.length) {
47
40
  payload.issues.push({
48
41
  code: "invalid_type",
49
42
  expected: "nonoptional",
50
43
  input: undefined,
51
- path: [${P}]
44
+ path: [${$}]
52
45
  });
46
+ if (ctx && ctx.abortEarly) {
47
+ payload.value = newResult;
48
+ return payload;
49
+ }
53
50
  }
54
51
 
55
- if (${N}_present) {
56
- if (${N}.value === undefined) {
57
- newResult[${P}] = undefined;
58
- } else {
59
- newResult[${P}] = ${N}.value;
60
- }
52
+ if (${b}_present) {
53
+ newResult[${$}] = ${b}.value;
61
54
  }
62
55
 
63
- `)}A.write("payload.value = newResult;"),A.write("return payload;");const M=A.compile();return(v,N)=>M(p,v,N)};let a;const s=Ke,u=!Ye.jitless,l=u&&ic.value,m=t.catchall;let g;e._zod.parse=(p,A)=>{g??(g=r.value);const k=p.value;return s(k)?u&&l&&A?.async===!1&&A.jitless!==!0?(a||(a=i(t.shape)),p=a(p,A),m?ur([],k,p,A,g,e):p):n(p,A):(p.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),p)}});function cr(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!Pe(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(s=>ke(s,r,Te())))}),t)}var Yd=h("$ZodUnion",(e,t)=>{Q.init(e,t),U(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),U(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),U(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),U(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>Nt(i.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1;const s=[];for(const u of t.options){const d=u._zod.run({value:r.value,issues:[]},i);if(d instanceof Promise)s.push(d),a=!0;else{if(d.issues.length===0)return d;s.push(d)}}return a?Promise.all(s).then(u=>cr(u,r,e,i)):cr(s,r,e,i)}}),Kd=h("$ZodIntersection",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,a=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return a instanceof Promise||s instanceof Promise?Promise.all([a,s]).then(([u,d])=>dr(n,u,d)):dr(n,a,s)}});function It(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Fe(e)&&Fe(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};for(const a of r){const s=It(e[a],t[a]);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};i[a]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r],s=It(i,a);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function dr(e,t,n){const r=new Map;let i;for(const u of t.issues)if(u.code==="unrecognized_keys"){i??(i=u);for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).l=!0}else e.issues.push(u);for(const u of n.issues)if(u.code==="unrecognized_keys")for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).r=!0;else e.issues.push(u);const a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length&&i&&e.issues.push({...i,keys:a}),Pe(e))return e;const s=It(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var Vd=h("$ZodEnum",(e,t)=>{Q.init(e,t);const n=Zn(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>oc.has(typeof i)).map(i=>typeof i=="string"?Ve(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),Wd=h("$ZodTransform",(e,t)=>{Q.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Bn(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n.fallback=!0,n));if(i instanceof Promise)throw new Ne;return n.value=i,n.fallback=!0,n}});function fr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var lr=h("$ZodOptional",(e,t)=>{Q.init(e,t),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Nt(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>fr(s,i)):fr(a,i)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Xd=h("$ZodExactOptional",(e,t)=>{lr.init(e,t),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Qd=h("$ZodNullable",(e,t)=>{Q.init(e,t),U(e._zod,"optin",()=>t.innerType._zod.optin),U(e._zod,"optout",()=>t.innerType._zod.optout),U(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Nt(n.source)}|null)$`):void 0}),U(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),xd=h("$ZodDefault",(e,t)=>{Q.init(e,t),e._zod.optin="optional",U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>mr(a,t)):mr(i,t)}});function mr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var jd=h("$ZodPrefault",(e,t)=>{Q.init(e,t),e._zod.optin="optional",U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),ef=h("$ZodNonOptional",(e,t)=>{Q.init(e,t),U(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>pr(a,e)):pr(i,e)}});function pr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var tf=h("$ZodCatch",(e,t)=>{Q.init(e,t),e._zod.optin="optional",U(e._zod,"optout",()=>t.innerType._zod.optout),U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>ke(s,r,Te()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>ke(a,r,Te()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),nf=h("$ZodPipe",(e,t)=>{Q.init(e,t),U(e._zod,"values",()=>t.in._zod.values),U(e._zod,"optin",()=>t.in._zod.optin),U(e._zod,"optout",()=>t.out._zod.optout),U(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(s=>et(s,t.in,r)):et(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>et(a,t.out,r)):et(i,t.out,r)}});function et(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var rf=h("$ZodReadonly",(e,t)=>{Q.init(e,t),U(e._zod,"propValues",()=>t.innerType._zod.propValues),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"optin",()=>t.innerType?._zod?.optin),U(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(hr):hr(i)}});function hr(e){return e.value=Object.freeze(e.value),e}var of=h("$ZodCustom",(e,t)=>{ae.init(e,t),Q.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(a=>yr(a,n,r,e));yr(i,n,r,e)}});function yr(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(ze(i))}}var gr,af=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function sf(){return new af}(gr=globalThis).__zod_globalRegistry??(gr.__zod_globalRegistry=sf());var $e=globalThis.__zod_globalRegistry;function uf(e,t){return new e({type:"string",...b(t)})}function cf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...b(t)})}function _r(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...b(t)})}function df(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...b(t)})}function ff(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(t)})}function lf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(t)})}function mf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(t)})}function pf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...b(t)})}function hf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...b(t)})}function yf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(t)})}function gf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...b(t)})}function _f(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(t)})}function Of(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...b(t)})}function Af(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...b(t)})}function Sf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(t)})}function Tf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(t)})}function wf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(t)})}function kf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(t)})}function vf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(t)})}function Rf(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...b(t)})}function Nf(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...b(t)})}function Pf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...b(t)})}function Cf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...b(t)})}function bf(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(t)})}function Mf(e,t){return new e({type:"string",format:"date",check:"string_format",...b(t)})}function If(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...b(t)})}function Jf(e,t){return new e({type:"string",format:"duration",check:"string_format",...b(t)})}function Df(e,t){return new e({type:"number",checks:[],...b(t)})}function Ef(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...b(t)})}function Ff(e,t){return new e({type:"symbol",...b(t)})}function zf(e){return new e({type:"unknown"})}function $f(e,t){return new e({type:"never",...b(t)})}function Or(e,t){return new nr({check:"less_than",...b(t),value:e,inclusive:!1})}function Jt(e,t){return new nr({check:"less_than",...b(t),value:e,inclusive:!0})}function Ar(e,t){return new rr({check:"greater_than",...b(t),value:e,inclusive:!1})}function Dt(e,t){return new rr({check:"greater_than",...b(t),value:e,inclusive:!0})}function Sr(e,t){return new ed({check:"multiple_of",...b(t),value:e})}function Tr(e,t){return new nd({check:"max_length",...b(t),maximum:e})}function tt(e,t){return new rd({check:"min_length",...b(t),minimum:e})}function wr(e,t){return new id({check:"length_equals",...b(t),length:e})}function Lf(e,t){return new od({check:"string_format",format:"regex",...b(t),pattern:e})}function Hf(e){return new ad({check:"string_format",format:"lowercase",...b(e)})}function Bf(e){return new sd({check:"string_format",format:"uppercase",...b(e)})}function Zf(e,t){return new ud({check:"string_format",format:"includes",...b(t),includes:e})}function Uf(e,t){return new cd({check:"string_format",format:"starts_with",...b(t),prefix:e})}function Gf(e,t){return new dd({check:"string_format",format:"ends_with",...b(t),suffix:e})}function Ce(e){return new fd({check:"overwrite",tx:e})}function qf(e){return Ce(t=>t.normalize(e))}function Yf(){return Ce(e=>e.trim())}function Kf(){return Ce(e=>e.toLowerCase())}function Vf(){return Ce(e=>e.toUpperCase())}function Wf(){return Ce(e=>rc(e))}function Xf(e,t,n){return new e({type:"array",element:t,...b(n)})}function Qf(e,t,n){return new e({type:"custom",check:"custom",fn:t,...b(n)})}function xf(e,t){const n=jf(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(ze(i,r.value,n._zod.def));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(ze(a))}},e(r.value,r)),t);return n}function jf(e,t){const n=new ae({check:"custom",...b(t)});return n._zod.check=e,n}function kr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??$e,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function te(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{const l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{const g=s.schema,p=t.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(e,t,g,l)}const m=e._zod.parent;m&&(s.ref||(s.ref=m),te(m,t,l),t.seen.get(m).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(s.schema,d),t.io==="input"&&ie(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function vr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const s of e.seen.entries()){const u=e.metadataRegistry.get(s[0])?.id;if(u){const d=r.get(u);if(d&&d!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(u,s[0])}}const i=s=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(s[0])?.id,g=e.external.uri??(A=>A);if(m)return{ref:g(m)};const p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${g("__shared")}#/${u}/${p}`}}if(s[1]===n)return{ref:"#"};const d=`#/${u}/`,l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:d+l}},a=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:d,defId:l}=i(s);u.def={...u.schema},l&&(u.defId=l);const m=u.schema;for(const g in m)delete m[g];m.$ref=d};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
56
+ `)}return g.write("payload.value = newResult;"),g.write("return payload;"),g.compile()};let s;const u=it,c=!me.jitless,p=c&&gd.value,m=t.catchall;let h;e._zod.parse=(_,A)=>{h??(h=r.value);const y=_.value;return u(y)?c&&p&&A?.async===!1&&A.jitless!==!0?(s||(s=o(t.shape)),_=s(_,A),m?jr([],y,_,A,h,e,A?.abortEarly===!0):_):n(_,A):(_.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),_)}});function ei(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!_e(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>Ee(s,r,ke())))}),t)}var Jl=O("$ZodUnion",(e,t)=>{x.init(e,t),G(e,"optin",r=>r.def.options.some(i=>i._zod.optin==="defaulted")?"defaulted":r.def.options.some(i=>i._zod.optin!==void 0)?"optional":void 0),G(e,"optout",r=>r.def.options.some(i=>i._zod.optout==="optional")?"optional":void 0),G(e,"values",r=>{if(r.def.options.every(i=>i._zod.values))return new Set(r.def.options.flatMap(i=>Array.from(i._zod.values)))}),G(e,"pattern",r=>{if(r.def.options.every(i=>i._zod.pattern)){const i=r.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Kt(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1;const s=[];for(const u of t.options){const c=u._zod.run({value:r.value,issues:[]},i);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(u=>ei(u,r,e,i)):ei(s,r,e,i)}}),El=O("$ZodIntersection",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([u,c])=>ti(n,u,c)):ti(n,o,s)}});function sn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(qe(e)&&qe(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,"__proto__")&&delete i.__proto__;for(const o of r){if(o==="__proto__")continue;const s=sn(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],s=sn(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ti(e,t,n){const r=new Map;let i;const o=new Map,s=(d,p)=>{let m;if(d.code==="unrecognized_keys"&&!d.path?.length)i??(i=d),m=d.keys;else if(d.code==="invalid_key"&&d.origin==="record"&&d.path?.length===1){const h=String(d.path[0]);o.has(h)||o.set(h,d),m=[h]}else return!1;for(const h of m)r.has(h)||r.set(h,{}),r.get(h)[p]=!0;return!0};for(const d of t.issues)s(d,"l")||e.issues.push(d);for(const d of n.issues)s(d,"r")||e.issues.push(d);const u=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(u.length){const d=i?u.filter(p=>i.keys.includes(p)):[];d.length&&e.issues.push({...i,keys:d});for(const p of u)!d.includes(p)&&o.has(p)&&e.issues.push(o.get(p))}const c=sn(t.value,n.value);if(!c.valid){if(_e(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Fl=O("$ZodEnum",(e,t)=>{x.init(e,t);const n=Zt(t.entries),r=new Set(n);e._zod.values=r,G(e,"pattern",i=>{const o=Zt(i.def.entries).filter(s=>_d.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>ot(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),$l=O("$ZodTransform",(e,t)=>{x.init(e,t),e._zod.optin="optional",me.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Er(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new Me;return n.value=i,n}});function ni(e,t){return e.value=t.issues.length?void 0:t.value,e}var ri=O("$ZodOptional",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Kt(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>ni(n,o)):ni(n,i)}return t.innerType._zod.run(n,r)}}),Ll=O("$ZodExactOptional",(e,t)=>{ri.init(e,t),G(e,"values",n=>n.def.innerType._zod.values),G(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),zl=O("$ZodNullable",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Kt(r.source)}|null)$`):void 0}),G(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Hl=O("$ZodDefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ii(o,t)):ii(i,t)}});function ii(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Bl=O("$ZodPrefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Ul=O("$ZodNonOptional",(e,t)=>{x.init(e,t),G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>oi(o,e)):oi(i,e)}});function oi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function ai(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(i=>Ee(i,r,ke()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Zl=O("$ZodCatch",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>ai(n,o,t,r)):ai(n,i,t,r)}}),Gl=O("$ZodPipe",(e,t)=>{x.init(e,t),G(e,"values",n=>n.def.in._zod.values),G(e,"optin",n=>n.def.in._zod.optin),G(e,"optout",n=>n.def.out._zod.optout),G(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(s=>ft(s,t.in,r)):ft(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>ft(o,t.out,r)):ft(i,t.out,r)}});function ft(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var ql=O("$ZodReadonly",(e,t)=>{x.init(e,t),G(e,"propValues",n=>n.def.innerType._zod.propValues),G(e,"values",n=>n.def.innerType._zod.values),G(e,"optin",n=>n.def.innerType?._zod?.optin),G(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(si):si(i)}});function si(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Kl=O("$ZodCustom",(e,t)=>{ae.init(e,t),x.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>ui(o,n,r,e));ui(i,n,r,e)}});function ui(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Ye(i))}}var Yl=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},un="~memo",ci=[];function di(e){return e!==null&&typeof e=="object"}function cn(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var fi=new WeakMap,Ve=0,lt=1,We=2;function mt(e,t,n){const r=fi.get(e);if(r!==void 0)return r?We:Ve;if(t.has(e))return We;t.add(e);let i=Ve;const o=d=>{if(i!==We&&d?._zod){const p=mt(d,t,n);p>i&&(i=p)}},s=(d,p)=>{let m=Ve;for(const h of Reflect.ownKeys(d)){const _=Object.getOwnPropertyDescriptor(d,h);if(p&&!_.enumerable)continue;const A=_.get?lt:_.value?._zod?mt(_.value,t,n):Ve;A>m&&(m=A)}return m},u=d=>{d>i&&(i=d)},c=e._zod.def;switch(c.type){case"object":{const d=Ar(c);u(d?s(d,!0):lt),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(const d of c.items)o(d);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(const d of c.options)o(d);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{const d=c._cachedInner??(n?e._zod.innerType:void 0);u(d?mt(d,t,!1):lt);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const d in c){const p=Object.getOwnPropertyDescriptor(c,d);if(!p||p.get)continue;const m=p.value;if(!(!m||typeof m!="object")){if(m._zod)o(m);else if(Array.isArray(m))for(const h of m)o(h)}}}return t.delete(e),Vl(e,i)}function Vl(e,t){return t!==lt&&fi.set(e,t===We),t}function Wl(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var pt,ht=[],Xl={alloc(e,t,n){const r=pt;if(!r)return n;pt=void 0;const i={value:n,issues:null};return r.set(t.value,i),ht.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(i,o)=>{if(o.direction!=="backward"&&xl(o,i.value))throw new Yl;return n(i,o)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,i,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const s=e._zod.parse,u=(c,d)=>{if(n===void 0){const v=mt(e,new Set,!1);if(v===Ve)return e._zod.parse=s,e._zod.run===u&&(e._zod.run=s),s(c,d);v===We||r?n=!0:r=!0}const p=c.value;if(!di(p))return s(c,d);let m=d[un];m||(m={buckets:new WeakMap,backEdges:void 0},d[un]=m);let h;i===d?h=o:(h=Wl(m,e),i=d,o=h);const _=h.get(p);if(_)return c.value=_.value,_.issues?_.issues.length&&c.issues.push(...cn(_.issues)):(c.memo=!0,m.backEdges??(m.backEdges=new WeakSet),m.backEdges.add(_.value)),c;pt=h;const A=ht.length,y=s(c,d);pt=void 0;const g=ht.length>A?ht.pop():void 0;return y instanceof Promise?y.then(v=>(g&&(g.issues=v.issues.length?cn(v.issues):ci),v)):(g&&(g.issues=y.issues.length?cn(y.issues):ci),y)};e._zod.parse=u,e._zod.run===s&&(e._zod.run=u)})}};function Ql(){return Xl}function xl(e,t){const n=e[un]?.backEdges;return n!==void 0&&di(t)&&n.has(t)}var jl=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function i(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[o]??o}return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${i(o.expected)}, received ${i(bd(o.input),o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${kr(o.values[0])}`:`Invalid option: expected one of ${Or(o.values,"|")}`;case"too_big":{const s=o.exact?"exactly ":o.inclusive?"<=":"<",u=t(o.origin);return u?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{const s=o.exact?"exactly ":o.inclusive?">=":">",u=t(o.origin);return u?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${u.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{const s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${Or(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(s=>`'${s}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function em(){return{localeError:jl()}}var li,tm=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function nm(){return new tm}(li=globalThis).__zod_globalRegistry??(li.__zod_globalRegistry=nm());var Xe=globalThis.__zod_globalRegistry;function mi(e){return e.checks&&(e.checks=[...e.checks]),e}function rm(e,t){return new e(mi({type:"string",...M(t)}))}function im(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function om(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function am(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function sm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function um(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function cm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function dm(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function fm(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function lm(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function mm(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function pm(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function hm(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function ym(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function gm(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function _m(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function Om(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function Am(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function Sm(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function Tm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function vm(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function wm(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function km(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}function Rm(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function Nm(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function Pm(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function bm(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function Cm(e,t){return new e(mi({type:"number",checks:[],...M(t)}))}function Mm(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function Im(e,t){return new e({type:"symbol",...M(t)})}function Dm(e){return new e({type:"unknown"})}function Jm(e,t){return new e({type:"never",...M(t)})}function pi(e,t){return new Br({check:"less_than",...M(t),value:e,inclusive:!1})}function dn(e,t){return new Br({check:"less_than",...M(t),value:e,inclusive:!0})}function hi(e,t){return new Ur({check:"greater_than",...M(t),value:e,inclusive:!1})}function fn(e,t){return new Ur({check:"greater_than",...M(t),value:e,inclusive:!0})}function yi(e,t){return new Df({check:"multiple_of",...M(t),value:e})}function gi(e,t){return new Ef({check:"max_length",...M(t),maximum:e})}function yt(e,t){return new Ff({check:"min_length",...M(t),minimum:e})}function _i(e,t){return new $f({check:"length_equals",...M(t),length:e})}function Em(e,t){return new Lf({check:"string_format",format:"regex",...M(t),pattern:e})}function Fm(e){return new zf({check:"string_format",format:"lowercase",...M(e)})}function $m(e){return new Hf({check:"string_format",format:"uppercase",...M(e)})}function Lm(e,t){return new Bf({check:"string_format",format:"includes",...M(t),includes:e})}function zm(e,t){return new Uf({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Hm(e,t){return new Zf({check:"string_format",format:"ends_with",...M(t),suffix:e})}function Fe(e){return new Gf({check:"overwrite",tx:e})}function Bm(e){return Fe(t=>t.normalize(e))}function Um(){return Fe(e=>e.trim())}function Zm(){return Fe(e=>e.toLowerCase())}function Gm(){return Fe(e=>e.toUpperCase())}function qm(){return Fe(e=>yd(e))}function Km(e,t,n){return new e({type:"array",element:t,...M(n)})}function Ym(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Vm(e,t){const n=Wm(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ye(i,r.value,n._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(Ye(o))}},e(r.value,r)),t);return n}function Wm(e,t){const n=new ae({check:"custom",...M(t)});return n._zod.check=e,n}function Qe(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&be(e,r,n[r]);return e}function Oi(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Xe,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Ie(e,t,n,r,i){const o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(i);return Object.assign(n,o),!0}function te(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,d);else{const m=s.schema,h=t.processors[i.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);h(e,t,m,d)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),te(p,t,d),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Qe(s.schema,c),t.io==="input"&&ie(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Ai(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Si(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const s of e.seen.entries()){const u=e.metadataRegistry.get(s[0])?.id;if(u){const c=r.get(u);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(u,s[0])}}const i=s=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(s[0])?.id,h=e.external.uri??(A=>A);if(m)return{ref:h(m)};const _=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=_,{defId:_,ref:`${h("__shared")}#/${u}/${Ai(_)}`}}const c="#",d=`${c}/${u}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};const p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+Ai(p)}},o=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:c,defId:d}=i(s);u.def={...u.schema},d&&(u.defId=d);const p=u.schema;for(const m in p)delete p[m];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
64
57
 
65
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){a(s);continue}if(e.external){const d=e.external.registry.get(s[0])?.id;if(t!==s[0]&&d){a(s);continue}}if(e.metadataRegistry.get(s[0])?.id){a(s);continue}if(u.cycle){a(s);continue}if(u.count>1&&e.reused==="ref"){a(s);continue}}}function Rr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const d=e.seen.get(u);if(d.ref===null)return;const l=d.def??d.schema,m={...l},g=d.ref;if(d.ref=null,g){r(g);const A=e.seen.get(g),k=A.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(k)):Object.assign(l,k),Object.assign(l,m),u._zod.parent===g)for(const y in l)y==="$ref"||y==="allOf"||y in m||delete l[y];if(k.$ref&&A.def)for(const y in l)y==="$ref"||y==="allOf"||y in A.def&&JSON.stringify(l[y])===JSON.stringify(A.def[y])&&delete l[y]}const p=u._zod.parent;if(p&&p!==g){r(p);const A=e.seen.get(p);if(A?.schema.$ref&&(l.$ref=A.schema.$ref,A.def))for(const k in l)k==="$ref"||k==="allOf"||k in A.def&&JSON.stringify(l[k])===JSON.stringify(A.def[k])&&delete l[k]}e.override({zodSchema:u,jsonSchema:l,path:d.path??[]})};for(const u of[...e.seen.entries()].reverse())r(u[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(u)}Object.assign(i,n.def??n.schema);const a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;const s=e.external?.defs??{};for(const u of e.seen.entries()){const d=u[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,s[d.defId]=d.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:nt(t,"input",e.processors),output:nt(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function ie(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ie(r.element,n);if(r.type==="set")return ie(r.valueType,n);if(r.type==="lazy")return ie(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return ie(r.innerType,n);if(r.type==="intersection")return ie(r.left,n)||ie(r.right,n);if(r.type==="record"||r.type==="map")return ie(r.keyType,n)||ie(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ie(r.in,n)||ie(r.out,n);if(r.type==="object"){for(const i in r.shape)if(ie(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(ie(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(ie(i,n))return!0;return!!(r.rest&&ie(r.rest,n))}return!1}var el=(e,t={})=>n=>{const r=kr({...n,processors:t});return te(e,r),vr(r,e),Rr(r,e)},nt=(e,t,n={})=>r=>{const{libraryOptions:i,target:a}=r??{},s=kr({...i??{},target:a,io:t,processors:n});return te(e,s),vr(s,e),Rr(s,e)},tl={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},nl=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:a,maximum:s,format:u,patterns:d,contentEncoding:l}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof s=="number"&&(i.maxLength=s),u&&(i.format=tl[u]??u,i.format===""&&delete i.format,u==="time"&&delete i.format),l&&(i.contentEncoding=l),d&&d.size>0){const m=[...d];m.length===1?i.pattern=m[0].source:m.length>1&&(i.allOf=[...m.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},rl=(e,t,n,r)=>{const i=n,{minimum:a,maximum:s,format:u,multipleOf:d,exclusiveMaximum:l,exclusiveMinimum:m}=e._zod.bag;typeof u=="string"&&u.includes("int")?i.type="integer":i.type="number";const g=typeof m=="number"&&m>=(a??Number.NEGATIVE_INFINITY),p=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),A=t.target==="draft-04"||t.target==="openapi-3.0";g?A?(i.minimum=m,i.exclusiveMinimum=!0):i.exclusiveMinimum=m:typeof a=="number"&&(i.minimum=a),p?A?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof s=="number"&&(i.maximum=s),typeof d=="number"&&(i.multipleOf=d)},il=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ol=(e,t,n,r)=>{n.not={}},al=(e,t,n,r)=>{},sl=(e,t,n,r)=>{const i=e._zod.def,a=Zn(i.entries);a.every(s=>typeof s=="number")&&(n.type="number"),a.every(s=>typeof s=="string")&&(n.type="string"),n.enum=a},ul=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},cl=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},dl=(e,t,n,r)=>{const i=n,a=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=te(a.element,t,{...r,path:[...r.path,"items"]})},fl=(e,t,n,r)=>{const i=n,a=e._zod.def;i.type="object",i.properties={};const s=a.shape;for(const l in s)i.properties[l]=te(s[l],t,{...r,path:[...r.path,"properties",l]});const u=new Set(Object.keys(s)),d=new Set([...u].filter(l=>{const m=a.shape[l]._zod;return t.io==="input"?m.optin===void 0:m.optout===void 0}));d.size>0&&(i.required=Array.from(d)),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=te(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},ll=(e,t,n,r)=>{const i=e._zod.def,a=i.inclusive===!1,s=i.options.map((u,d)=>te(u,t,{...r,path:[...r.path,a?"oneOf":"anyOf",d]}));a?n.oneOf=s:n.anyOf=s},ml=(e,t,n,r)=>{const i=e._zod.def,a=te(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=te(i.right,t,{...r,path:[...r.path,"allOf",1]}),u=d=>"allOf"in d&&Object.keys(d).length===1;n.allOf=[...u(a)?a.allOf:[a],...u(s)?s.allOf:[s]]},pl=(e,t,n,r)=>{const i=e._zod.def,a=te(i.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},hl=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},yl=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},gl=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},_l=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},Ol=(e,t,n,r)=>{const i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?a?i.out:i.in:i.out;te(s,t,r);const u=t.seen.get(e);u.ref=s},Al=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Nr=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},Sl=h("ZodISODateTime",(e,t)=>{vd.init(e,t),W.init(e,t)});function Tl(e){return bf(Sl,e)}var wl=h("ZodISODate",(e,t)=>{Rd.init(e,t),W.init(e,t)});function kl(e){return Mf(wl,e)}var vl=h("ZodISOTime",(e,t)=>{Nd.init(e,t),W.init(e,t)});function Rl(e){return If(vl,e)}var Nl=h("ZodISODuration",(e,t)=>{Pd.init(e,t),W.init(e,t)});function Pl(e){return Jf(Nl,e)}var Cl=(e,t)=>{Wn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>gc(e,n)},flatten:{value:n=>yc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,kt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,kt,2)}},isEmpty:{get(){return e.issues.length===0}}})},se=h("ZodError",Cl,{Parent:Error}),bl=Ct(se),Ml=bt(se),Il=Xe(se),Jl=Qe(se),Dl=Ac(se),El=Sc(se),Fl=Tc(se),zl=wc(se),$l=kc(se),Ll=vc(se),Hl=Rc(se),Bl=Nc(se),Pr=new WeakMap;function Le(e,t,n){const r=Object.getPrototypeOf(e);let i=Pr.get(r);if(i||(i=new Set,Pr.set(r,i)),!i.has(t)){i.add(t);for(const a in n){const s=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const u=s.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:u}),u},set(u){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:u})}})}}}var x=h("ZodType",(e,t)=>(Q.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:nt(e,"input"),output:nt(e,"output")}}),e.toJSONSchema=el(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>bl(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Il(e,n,r),e.parseAsync=async(n,r)=>Ml(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Jl(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Dl(e,n,r),e.decode=(n,r)=>El(e,n,r),e.encodeAsync=async(n,r)=>Fl(e,n,r),e.decodeAsync=async(n,r)=>zl(e,n,r),e.safeEncode=(n,r)=>$l(e,n,r),e.safeDecode=(n,r)=>Ll(e,n,r),e.safeEncodeAsync=async(n,r)=>Hl(e,n,r),e.safeDecodeAsync=async(n,r)=>Bl(e,n,r),Le(e,"ZodType",{check(...n){const r=this.def;return this.clone(ge(r,{checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return _e(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(zm(n,r))},superRefine(n,r){return this.check($m(n,r))},overwrite(n){return this.check(Ce(n))},optional(){return zr(this)},exactOptional(){return km(this)},nullable(){return $r(this)},nullish(){return zr($r(this))},nonoptional(n){return bm(this,n)},array(){return hm(this)},or(n){return Dr([this,n])},and(n){return Am(this,n)},transform(n){return Hr(this,Tm(n))},default(n){return Nm(this,n)},prefault(n){return Cm(this,n)},catch(n){return Im(this,n)},pipe(n){return Hr(this,n)},readonly(){return Em(this)},describe(n){const r=this.clone();return $e.add(r,{description:n}),r},meta(...n){if(n.length===0)return $e.get(this);const r=this.clone();return $e.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return $e.get(e)?.description},configurable:!0}),e)),Cr=h("_ZodString",(e,t)=>{Mt.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>nl(e,r,i,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Le(e,"_ZodString",{regex(...r){return this.check(Lf(...r))},includes(...r){return this.check(Zf(...r))},startsWith(...r){return this.check(Uf(...r))},endsWith(...r){return this.check(Gf(...r))},min(...r){return this.check(tt(...r))},max(...r){return this.check(Tr(...r))},length(...r){return this.check(wr(...r))},nonempty(...r){return this.check(tt(1,...r))},lowercase(r){return this.check(Hf(r))},uppercase(r){return this.check(Bf(r))},trim(){return this.check(Yf())},normalize(...r){return this.check(qf(...r))},toLowerCase(){return this.check(Kf())},toUpperCase(){return this.check(Vf())},slugify(){return this.check(Wf())}})}),Zl=h("ZodString",(e,t)=>{Mt.init(e,t),Cr.init(e,t),e.email=n=>e.check(cf(Gl,n)),e.url=n=>e.check(pf(ql,n)),e.jwt=n=>e.check(Cf(am,n)),e.emoji=n=>e.check(hf(Yl,n)),e.guid=n=>e.check(_r(br,n)),e.uuid=n=>e.check(df(rt,n)),e.uuidv4=n=>e.check(ff(rt,n)),e.uuidv6=n=>e.check(lf(rt,n)),e.uuidv7=n=>e.check(mf(rt,n)),e.nanoid=n=>e.check(yf(Kl,n)),e.guid=n=>e.check(_r(br,n)),e.cuid=n=>e.check(gf(Vl,n)),e.cuid2=n=>e.check(_f(Wl,n)),e.ulid=n=>e.check(Of(Xl,n)),e.base64=n=>e.check(Rf(rm,n)),e.base64url=n=>e.check(Nf(im,n)),e.xid=n=>e.check(Af(Ql,n)),e.ksuid=n=>e.check(Sf(xl,n)),e.ipv4=n=>e.check(Tf(jl,n)),e.ipv6=n=>e.check(wf(em,n)),e.cidrv4=n=>e.check(kf(tm,n)),e.cidrv6=n=>e.check(vf(nm,n)),e.e164=n=>e.check(Pf(om,n)),e.datetime=n=>e.check(Tl(n)),e.date=n=>e.check(kl(n)),e.time=n=>e.check(Rl(n)),e.duration=n=>e.check(Pl(n))});function Ul(e){return uf(Zl,e)}var W=h("ZodStringFormat",(e,t)=>{V.init(e,t),Cr.init(e,t)}),Gl=h("ZodEmail",(e,t)=>{yd.init(e,t),W.init(e,t)}),br=h("ZodGUID",(e,t)=>{pd.init(e,t),W.init(e,t)}),rt=h("ZodUUID",(e,t)=>{hd.init(e,t),W.init(e,t)}),ql=h("ZodURL",(e,t)=>{gd.init(e,t),W.init(e,t)}),Yl=h("ZodEmoji",(e,t)=>{_d.init(e,t),W.init(e,t)}),Kl=h("ZodNanoID",(e,t)=>{Od.init(e,t),W.init(e,t)}),Vl=h("ZodCUID",(e,t)=>{Ad.init(e,t),W.init(e,t)}),Wl=h("ZodCUID2",(e,t)=>{Sd.init(e,t),W.init(e,t)}),Xl=h("ZodULID",(e,t)=>{Td.init(e,t),W.init(e,t)}),Ql=h("ZodXID",(e,t)=>{wd.init(e,t),W.init(e,t)}),xl=h("ZodKSUID",(e,t)=>{kd.init(e,t),W.init(e,t)}),jl=h("ZodIPv4",(e,t)=>{Cd.init(e,t),W.init(e,t)}),em=h("ZodIPv6",(e,t)=>{bd.init(e,t),W.init(e,t)}),tm=h("ZodCIDRv4",(e,t)=>{Md.init(e,t),W.init(e,t)}),nm=h("ZodCIDRv6",(e,t)=>{Id.init(e,t),W.init(e,t)}),rm=h("ZodBase64",(e,t)=>{Jd.init(e,t),W.init(e,t)}),im=h("ZodBase64URL",(e,t)=>{Ed.init(e,t),W.init(e,t)}),om=h("ZodE164",(e,t)=>{Fd.init(e,t),W.init(e,t)}),am=h("ZodJWT",(e,t)=>{$d.init(e,t),W.init(e,t)}),Mr=h("ZodNumber",(e,t)=>{or.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>rl(e,r,i,a),Le(e,"ZodNumber",{gt(r,i){return this.check(Ar(r,i))},gte(r,i){return this.check(Dt(r,i))},min(r,i){return this.check(Dt(r,i))},lt(r,i){return this.check(Or(r,i))},lte(r,i){return this.check(Jt(r,i))},max(r,i){return this.check(Jt(r,i))},int(r){return this.check(Ir(r))},safe(r){return this.check(Ir(r))},positive(r){return this.check(Ar(0,r))},nonnegative(r){return this.check(Dt(0,r))},negative(r){return this.check(Or(0,r))},nonpositive(r){return this.check(Jt(0,r))},multipleOf(r,i){return this.check(Sr(r,i))},step(r,i){return this.check(Sr(r,i))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function sm(e){return Df(Mr,e)}var um=h("ZodNumberFormat",(e,t)=>{Ld.init(e,t),Mr.init(e,t)});function Ir(e){return Ef(um,e)}var cm=h("ZodSymbol",(e,t)=>{Hd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>il(e,n,r,i)});function dm(e){return Ff(cm,e)}var fm=h("ZodUnknown",(e,t)=>{Bd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>al(e,n,r,i)});function Jr(){return zf(fm)}var lm=h("ZodNever",(e,t)=>{Zd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ol(e,n,r,i)});function mm(e){return $f(lm,e)}var pm=h("ZodArray",(e,t)=>{Ud.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dl(e,n,r,i),e.element=t.element,Le(e,"ZodArray",{min(n,r){return this.check(tt(n,r))},nonempty(n){return this.check(tt(1,n))},max(n,r){return this.check(Tr(n,r))},length(n,r){return this.check(wr(n,r))},unwrap(){return this.element}})});function hm(e,t){return Xf(pm,e,t)}var ym=h("ZodObject",(e,t)=>{qd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fl(e,n,r,i),U(e,"shape",()=>t.shape),Le(e,"ZodObject",{keyof(){return Er(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Jr()})},loose(){return this.clone({...this._zod.def,catchall:Jr()})},strict(){return this.clone({...this._zod.def,catchall:mm()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return dc(this,n)},safeExtend(n){return fc(this,n)},merge(n){return lc(this,n)},pick(n){return uc(this,n)},omit(n){return cc(this,n)},partial(...n){return mc(Fr,this,n[0])},required(...n){return pc(Lr,this,n[0])}})});function gm(e,t){const n={type:"object",shape:e??{},...b(t)};return new ym(n)}var _m=h("ZodUnion",(e,t)=>{Yd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ll(e,n,r,i),e.options=t.options});function Dr(e,t){return new _m({type:"union",options:e,...b(t)})}var Om=h("ZodIntersection",(e,t)=>{Kd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ml(e,n,r,i)});function Am(e,t){return new Om({type:"intersection",left:e,right:t})}var Et=h("ZodEnum",(e,t)=>{Vd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>sl(e,r,i,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const a={};for(const s of r)if(n.has(s))a[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Et({...t,checks:[],...b(i),entries:a})},e.exclude=(r,i)=>{const a={...t.entries};for(const s of r)if(n.has(s))delete a[s];else throw new Error(`Key ${s} not found in enum`);return new Et({...t,checks:[],...b(i),entries:a})}});function Er(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Et({type:"enum",entries:n,...b(t)})}var Sm=h("ZodTransform",(e,t)=>{Wd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cl(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Bn(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(ze(a,n.value,t));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(ze(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Tm(e){return new Sm({type:"transform",transform:e})}var Fr=h("ZodOptional",(e,t)=>{lr.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Nr(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function zr(e){return new Fr({type:"optional",innerType:e})}var wm=h("ZodExactOptional",(e,t)=>{Xd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Nr(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function km(e){return new wm({type:"optional",innerType:e})}var vm=h("ZodNullable",(e,t)=>{Qd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function $r(e){return new vm({type:"nullable",innerType:e})}var Rm=h("ZodDefault",(e,t)=>{xd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nm(e,t){return new Rm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Yn(t)}})}var Pm=h("ZodPrefault",(e,t)=>{jd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Cm(e,t){return new Pm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Yn(t)}})}var Lr=h("ZodNonOptional",(e,t)=>{ef.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function bm(e,t){return new Lr({type:"nonoptional",innerType:e,...b(t)})}var Mm=h("ZodCatch",(e,t)=>{tf.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_l(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Im(e,t){return new Mm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Jm=h("ZodPipe",(e,t)=>{nf.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ol(e,n,r,i),e.in=t.in,e.out=t.out});function Hr(e,t){return new Jm({type:"pipe",in:e,out:t})}var Dm=h("ZodReadonly",(e,t)=>{rf.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Al(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Em(e){return new Dm({type:"readonly",innerType:e})}var Fm=h("ZodCustom",(e,t)=>{of.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ul(e,n,r,i)});function zm(e,t={}){return Qf(Fm,e,t)}function $m(e,t){return xf(e,t)}var Lm=Er(["ASC","DESC"]),xy=gm({sortBy:Dr([Ul(),sm(),dm()]).optional(),sortOrder:Lm.optional()}),Hm=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Bm(){return new Hm}var jy=Bm(),Br="http://localhost".replace(/\/+$/,""),Zm=e=>typeof Blob<"u"&&e instanceof Blob,ue=class{configuration;middleware;constructor(e=new zt){this.configuration=e,this.middleware=e.middleware}withMiddleware(...e){const t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){const t=e.map(n=>({pre:n}));return this.withMiddleware(...t)}withPostMiddleware(...e){const t=e.map(n=>({post:n}));return this.withMiddleware(...t)}async request(e,t){const{url:n,init:r}=this.createFetchParams(e,t),i=await this.fetchApi(n,r);if(i.status>=200&&i.status<300)return i;throw new Ft(i,"Response returned an error code")}createFetchParams(e,t){let n=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||Zm(e.body)?e.body:JSON.stringify(e.body),i=Object.assign({},this.configuration.headers,e.headers);Object.keys(i).forEach(s=>i[s]===void 0?delete i[s]:{});const a={method:e.method,body:r,credentials:this.configuration.credentials,...Ln({},t,{headers:Ln({},i,t?.headers)})};return{url:n,init:a}}fetchApi=async(e,t)=>{let n={url:e,init:t};for(const i of this.middleware)i.pre&&(n=await i.pre({fetch:this.fetchApi,...n})||n);let r=await(this.configuration.fetchApi||fetch)(n.url,n.init);for(const i of this.middleware)i.post&&(r=await i.post({fetch:this.fetchApi,url:n.url,init:n.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,t=new e(this.configuration);return t.middleware=this.middleware.slice(),t}},Ft=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},B=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},Um={csv:",",ssv:" ",tsv:" ",pipes:"|"},zt=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Br}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||$t}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}};function Gm(e,t){const n=e[t];return n!=null}function $t(e,t=""){return Object.keys(e).map(n=>{const r=t+(t.length?`[${n}]`:n),i=e[n];if(i instanceof Array){const a=i.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}return i instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(i.toISOString())}`:i instanceof Object?$t(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function qm(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var q=class{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}async value(){return this.transformer(await this.raw.json())}},Zr=class{raw;constructor(e){this.raw=e}async value(){}},Ym=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},Lt=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}};function Km(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function Vm(e){return Ur(e,!1)}function Ur(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function Wm(e){return Gr(e,!1)}function Gr(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var Xm={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function Qm(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function xm(e){return qr(e,!1)}function qr(e,t){return e==null?e:{code:e.code,error:e.error}}function jm(e){return Yr(e,!1)}function Yr(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var ep={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function tp(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0||!("error"in e)||e.error===void 0)}function Kr(e){return Vr(e,!1)}function Vr(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function Wr(e){return Xr(e,!1)}function Xr(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var np={Coupon:"COUPON"};function rp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ip(e){return Ht(e,!1)}function Ht(e,t){return e==null?e:{name:e.name,payload:e.payload.map(Kr)}}function Qr(e){return xr(e,!1)}function xr(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(Wr)}}var op={CreditCard:"CREDIT_CARD"};function ap(e){return!(!("name"in e)||e.name===void 0)}function sp(e){return Bt(e,!1)}function Bt(e,t){return e==null?e:{name:e.name}}function jr(e){return ei(e,!1)}function ei(e,t=!1){return e==null?e:{name:e.name}}var up={DepositAccount:"DEPOSIT_ACCOUNT"};function cp(e){return!(!("name"in e)||e.name===void 0)}function dp(e){return Zt(e,!1)}function Zt(e,t){return e==null?e:{name:e.name}}function ti(e){return ni(e,!1)}function ni(e,t=!1){return e==null?e:{name:e.name}}var fp={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function lp(e){return!(!("status"in e)||e.status===void 0)}function ri(e){return ii(e,!1)}function ii(e,t){return e==null?e:{status:e.status}}function oi(e){return ai(e,!1)}function ai(e,t=!1){return e==null?e:{status:e.status}}var mp={PayLater:"PAY_LATER"};function pp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function hp(e){return Ut(e,!1)}function Ut(e,t){return e==null?e:{name:e.name,payload:ri(e.payload)}}function si(e){return ui(e,!1)}function ui(e,t=!1){return e==null?e:{name:e.name,payload:oi(e.payload)}}function ci(e){return di(e,!1)}function di(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Ht(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Bt(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Zt(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Ut(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function fi(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Qr(e);case"CREDIT_CARD":return jr(e);case"DEPOSIT_ACCOUNT":return ti(e);case"PAY_LATER":return si(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function yp(e,t=!1){return fi(e)}function gp(e){return!0}function Gt(e){return li(e,!1)}function li(e,t){return e==null?e:{airConditioning:e.air_conditioning==null?void 0:e.air_conditioning,airportTransportation:e.airport_transportation==null?void 0:e.airport_transportation,businessCenter:e.business_center==null?void 0:e.business_center,carRentDesk:e.car_rent_desk==null?void 0:e.car_rent_desk,childrenAllowed:e.children_allowed==null?void 0:e.children_allowed,clothingIron:e.clothing_iron==null?void 0:e.clothing_iron,coffeeTeaMaker:e.coffee_tea_maker==null?void 0:e.coffee_tea_maker,combination:e.combination==null?void 0:e.combination,continentalBreakfast:e.continental_breakfast==null?void 0:e.continental_breakfast,dataPorts:e.data_ports==null?void 0:e.data_ports,dryCleaning:e.dry_cleaning==null?void 0:e.dry_cleaning,electronicRoomKeys:e.electronic_room_keys==null?void 0:e.electronic_room_keys,exteriorRoomEntrance:e.exterior_room_entrance==null?void 0:e.exterior_room_entrance,familyRooms:e.family_rooms==null?void 0:e.family_rooms,fitnessFacility:e.fitness_facility==null?void 0:e.fitness_facility,gameRoom:e.game_room==null?void 0:e.game_room,golfCourse:e.golf_course==null?void 0:e.golf_course,hairDryer:e.hair_dryer==null?void 0:e.hair_dryer,handicapAccessible:e.handicap_accessible==null?void 0:e.handicap_accessible,inHouseBar:e.in_house_bar==null?void 0:e.in_house_bar,inHouseDining:e.in_house_dining==null?void 0:e.in_house_dining,inRoomMovies:e.in_room_movies==null?void 0:e.in_room_movies,indoorPool:e.indoor_pool==null?void 0:e.indoor_pool,interiorRoomEntrance:e.interior_room_entrance==null?void 0:e.interior_room_entrance,kitchen:e.kitchen==null?void 0:e.kitchen,map:e.map==null?void 0:e.map,meetingRooms:e.meeting_rooms==null?void 0:e.meeting_rooms,miniBarInRoom:e.mini_bar_in_room==null?void 0:e.mini_bar_in_room,nonSmokingRooms:e.non_smoking_rooms==null?void 0:e.non_smoking_rooms,outdoorPool:e.outdoor_pool==null?void 0:e.outdoor_pool,parkingGarage:e.parking_garage==null?void 0:e.parking_garage,petsAllowed:e.pets_allowed==null?void 0:e.pets_allowed,restrictedAccess:e.restricted_access==null?void 0:e.restricted_access,roomService:e.room_service==null?void 0:e.room_service,safe:e.safe==null?void 0:e.safe,sauna:e.sauna==null?void 0:e.sauna,tVInRoom:e.t_v_in_room==null?void 0:e.t_v_in_room,tennisCourt:e.tennis_court==null?void 0:e.tennis_court,twentyFourHourSecurity:e.twenty_four_hour_security==null?void 0:e.twenty_four_hour_security,valetParking:e.valet_parking==null?void 0:e.valet_parking,videoCheckOut:e.video_check_out==null?void 0:e.video_check_out,voiceMail:e.voice_mail==null?void 0:e.voice_mail,wakeUpService:e.wake_up_service==null?void 0:e.wake_up_service,whirpool:e.whirpool==null?void 0:e.whirpool}}function qt(e){return mi(e,!1)}function mi(e,t=!1){return e==null?e:{air_conditioning:e.airConditioning,airport_transportation:e.airportTransportation,business_center:e.businessCenter,car_rent_desk:e.carRentDesk,children_allowed:e.childrenAllowed,clothing_iron:e.clothingIron,coffee_tea_maker:e.coffeeTeaMaker,combination:e.combination,continental_breakfast:e.continentalBreakfast,data_ports:e.dataPorts,dry_cleaning:e.dryCleaning,electronic_room_keys:e.electronicRoomKeys,exterior_room_entrance:e.exteriorRoomEntrance,family_rooms:e.familyRooms,fitness_facility:e.fitnessFacility,game_room:e.gameRoom,golf_course:e.golfCourse,hair_dryer:e.hairDryer,handicap_accessible:e.handicapAccessible,in_house_bar:e.inHouseBar,in_house_dining:e.inHouseDining,in_room_movies:e.inRoomMovies,indoor_pool:e.indoorPool,interior_room_entrance:e.interiorRoomEntrance,kitchen:e.kitchen,map:e.map,meeting_rooms:e.meetingRooms,mini_bar_in_room:e.miniBarInRoom,non_smoking_rooms:e.nonSmokingRooms,outdoor_pool:e.outdoorPool,parking_garage:e.parkingGarage,pets_allowed:e.petsAllowed,restricted_access:e.restrictedAccess,room_service:e.roomService,safe:e.safe,sauna:e.sauna,t_v_in_room:e.tVInRoom,tennis_court:e.tennisCourt,twenty_four_hour_security:e.twentyFourHourSecurity,valet_parking:e.valetParking,video_check_out:e.videoCheckOut,voice_mail:e.voiceMail,wake_up_service:e.wakeUpService,whirpool:e.whirpool}}function _p(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Op(e){return pi(e,!1)}function pi(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Ap(e){return hi(e,!1)}function hi(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Sp(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function it(e){return yi(e,!1)}function yi(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function ot(e){return gi(e,!1)}function gi(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var at={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Tp(e){for(const t in at)if(Object.prototype.hasOwnProperty.call(at,t)&&at[t]===e)return!0;return!1}function He(e){return _i(e,!1)}function _i(e,t){return e}function wp(e){return e}function kp(e,t){return e}function vp(e){return!(!("isHeroImage"in e)||e.isHeroImage===void 0||!("l"in e)||e.l===void 0||!("m"in e)||e.m===void 0||!("s"in e)||e.s===void 0||!("xl"in e)||e.xl===void 0||!("xs"in e)||e.xs===void 0)}function be(e){return Oi(e,!1)}function Oi(e,t){return e==null?e:{caption:e.caption==null?void 0:e.caption,isHeroImage:e.is_hero_image,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function Be(e){return Ai(e,!1)}function Ai(e,t=!1){return e==null?e:{caption:e.caption,is_hero_image:e.isHeroImage,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function Rp(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Si(e){return Ti(e,!1)}function Ti(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(be),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function wi(e){return ki(e,!1)}function ki(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(Be),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}var st={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function Np(e){for(const t in st)if(Object.prototype.hasOwnProperty.call(st,t)&&st[t]===e)return!0;return!1}function vi(e){return Ri(e,!1)}function Ri(e,t){return e}function Pp(e){return e}function Cp(e,t){return e}var bp={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},Mp={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function Ip(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function Yt(e){return Ni(e,!1)}function Ni(e,t){return e==null?e:{amount:e.amount==null?void 0:e.amount,code:e.code==null?void 0:e.code,description:e.description==null?void 0:e.description,percentage:e.percentage==null?void 0:e.percentage,taxFrequency:e.tax_frequency,taxMode:e.tax_mode}}function Kt(e){return Pi(e,!1)}function Pi(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,description:e.description,percentage:e.percentage,tax_frequency:e.taxFrequency,tax_mode:e.taxMode}}var ut={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"};function Jp(e){for(const t in ut)if(Object.prototype.hasOwnProperty.call(ut,t)&&ut[t]===e)return!0;return!1}function le(e){return Ci(e,!1)}function Ci(e,t){return e}function Dp(e){return e}function Ep(e,t){return e}function Fp(e){return!(!("name"in e)||e.name===void 0)}function Vt(e){return bi(e,!1)}function bi(e,t){return e==null?e:{bg:e.bg==null?void 0:e.bg,color:e.color==null?void 0:e.color,description:e.description==null?void 0:e.description,faIcon:e.fa_icon==null?void 0:e.fa_icon,name:e.name}}function Wt(e){return Mi(e,!1)}function Mi(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var zp={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},$p={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},Lp={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function Hp(e){return!(!("breakfastOption"in e)||e.breakfastOption===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRooms"in e)||e.hotelRooms===void 0||!("price"in e)||e.price===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("stayTaxesInfo"in e)||e.stayTaxesInfo===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0)}function Me(e){return Ii(e,!1)}function Ii(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:vi(e.breakfast_option),breakfastPricePerGuestPerNight:e.breakfast_price_per_guest_per_night==null?void 0:e.breakfast_price_per_guest_per_night,breakfastUnitPrice:e.breakfast_unit_price==null?void 0:e.breakfast_unit_price,cancellationPolicies:e.cancellation_policies.map(it),count:e.count==null?void 0:e.count,currency:le(e.currency),hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(Si),id:e.id==null?void 0:e.id,packageType:e.package_type==null?void 0:e.package_type,price:e.price,sourceMarket:He(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:e.tags==null?void 0:e.tags.map(Vt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Yt),type:e.type==null?void 0:e.type}}function Ie(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,breakfast_option:e.breakfastOption,breakfast_price_per_guest_per_night:e.breakfastPricePerGuestPerNight,breakfast_unit_price:e.breakfastUnitPrice,cancellation_policies:e.cancellationPolicies.map(ot),count:e.count,currency:e.currency,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(wi),id:e.id,package_type:e.packageType,price:e.price,source_market:e.sourceMarket,stay_taxes_info:e.stayTaxesInfo,tags:e.tags==null?void 0:e.tags.map(Wt),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Kt),type:e.type}}var ct={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function Bp(e){for(const t in ct)if(Object.prototype.hasOwnProperty.call(ct,t)&&ct[t]===e)return!0;return!1}function dt(e){return Di(e,!1)}function Di(e,t){return e}function Zp(e){return e}function Up(e,t){return e}var ft={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Gp(e){for(const t in ft)if(Object.prototype.hasOwnProperty.call(ft,t)&&ft[t]===e)return!0;return!1}function lt(e){return Ei(e,!1)}function Ei(e,t){return e}function qp(e){return e}function Yp(e,t){return e}function Kp(e){return!(!("address"in e)||e.address===void 0||!("city"in e)||e.city===void 0||!("country"in e)||e.country===void 0||!("name"in e)||e.name===void 0||!("zipCode"in e)||e.zipCode===void 0)}function Fi(e){return zi(e,!1)}function zi(e,t){return e==null?e:{address:e.address,city:e.city,country:lt(e.country),name:e.name,state:e.state==null?void 0:e.state,vatNumber:e.vat_number==null?void 0:e.vat_number,zipCode:e.zip_code}}function $i(e){return Li(e,!1)}function Li(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,name:e.name,state:e.state,vat_number:e.vatNumber,zip_code:e.zipCode}}var Vp={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function Wp(e){return!(!("email"in e)||e.email===void 0||!("firstName"in e)||e.firstName===void 0||!("lastName"in e)||e.lastName===void 0||!("nationality"in e)||e.nationality===void 0||!("phone"in e)||e.phone===void 0)}function Xt(e){return Hi(e,!1)}function Hi(e,t){return e==null?e:{address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,country:e.country==null?void 0:lt(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:dt(e.lang),lastName:e.last_name,nationality:lt(e.nationality),organization:e.organization==null?void 0:Fi(e.organization),phone:e.phone,remarks:e.remarks==null?void 0:e.remarks,salutation:e.salutation==null?void 0:e.salutation,state:e.state==null?void 0:e.state,zipCode:e.zip_code==null?void 0:e.zip_code}}function Qt(e){return Bi(e,!1)}function Bi(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,email:e.email,first_name:e.firstName,lang:e.lang,last_name:e.lastName,nationality:e.nationality,organization:$i(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function Xp(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function Zi(e){return Ui(e,!1)}function Ui(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function Gi(e){return qi(e,!1)}function qi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var Qp={Coupon:"COUPON"};function xp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function jp(e){return xt(e,!1)}function xt(e,t){return e==null?e:{name:e.name,payload:e.payload.map(Zi)}}function Yi(e){return Ki(e,!1)}function Ki(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(Gi)}}function eh(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function Vi(e){return Wi(e,!1)}function Wi(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function Xi(e){return Qi(e,!1)}function Qi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var th={CreditCard:"CREDIT_CARD"};function nh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function rh(e){return jt(e,!1)}function jt(e,t){return e==null?e:{name:e.name,payload:Vi(e.payload)}}function xi(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{name:e.name,payload:Xi(e.payload)}}function ih(e){return!(!("amount"in e)||e.amount===void 0)}function eo(e){return to(e,!1)}function to(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token==null?void 0:e.token}}function no(e){return ro(e,!1)}function ro(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var oh={DepositAccount:"DEPOSIT_ACCOUNT"};function ah(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function sh(e){return en(e,!1)}function en(e,t){return e==null?e:{name:e.name,payload:eo(e.payload)}}function io(e){return oo(e,!1)}function oo(e,t=!1){return e==null?e:{name:e.name,payload:no(e.payload)}}var uh={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function ch(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function ao(e){return so(e,!1)}function so(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,status:e.status,token:e.token==null?void 0:e.token}}function uo(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var dh={PayLater:"PAY_LATER"};function fh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function lh(e){return tn(e,!1)}function tn(e,t){return e==null?e:{name:e.name,payload:ao(e.payload)}}function fo(e){return lo(e,!1)}function lo(e,t=!1){return e==null?e:{name:e.name,payload:uo(e.payload)}}function mo(e){return po(e,!1)}function po(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...xt(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...jt(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...en(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...tn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function nn(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Yi(e);case"CREDIT_CARD":return xi(e);case"DEPOSIT_ACCOUNT":return io(e);case"PAY_LATER":return fo(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function mh(e,t=!1){return nn(e)}var ph={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function hh(e){return!(!("status"in e)||e.status===void 0)}function ho(e){return yo(e,!1)}function yo(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,reference:e.reference==null?void 0:e.reference,status:e.status}}function go(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var yh={CreditNote:"credit_note",Invoice:"invoice"};function gh(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function Oo(e){return Ao(e,!1)}function Ao(e,t){return e==null?e:{type:e.type,url:e.url}}function So(e){return To(e,!1)}function To(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var _h={Insurance:"insurance"};function Oh(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function rn(e){return wo(e,!1)}function wo(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function on(e){return ko(e,!1)}function ko(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function Ah(e){return!0}function mt(e){return vo(e,!1)}function vo(e,t){return e==null?e:{latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function pt(e){return Ro(e,!1)}function Ro(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function Sh(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function No(e){return Po(e,!1)}function Po(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(be),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function Co(e){return bo(e,!1)}function bo(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(Be),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}function Th(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function ht(e){return Mo(e,!1)}function Mo(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function Io(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function wh(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function an(e){return Do(e,!1)}function Do(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:No(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(ht),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function Eo(e){return Fo(e,!1)}function Fo(e,t=!1){return e==null?e:{hotel_room:Co(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(Io),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var kh={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},vh={BkgCx:"bkg-cx",BkgCf:"bkg-cf",BkgCreated:"bkg-created",BkgAf:"bkg-af",BkgIp:"bkg-ip",BkgPc:"bkg-pc",BkgPp:"bkg-pp",BkgQr:"bkg-qr"};function Rh(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("contactPerson"in e)||e.contactPerson===void 0||!("createdAt"in e)||e.createdAt===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("lastStatusUpdatedAt"in e)||e.lastStatusUpdatedAt===void 0||!("reference"in e)||e.reference===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("status"in e)||e.status===void 0||!("taxAmount"in e)||e.taxAmount===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("terms"in e)||e.terms===void 0)}function fe(e){return zo(e,!1)}function zo(e,t){return e==null?e:{additionalCheckInInstruction:e.additional_check_in_instruction==null?void 0:e.additional_check_in_instruction,additionalPolicies:e.additional_policies==null?void 0:e.additional_policies,addons:e.addons==null?void 0:e.addons.map(rn),adultCount:e.adult_count,bookingGroupId:e.booking_group_id==null?void 0:e.booking_group_id,canceledAt:e.canceled_at==null?void 0:e.canceled_at,cancellationPolicies:e.cancellation_policies.map(it),cancellationPolicyRemarks:e.cancellation_policy_remarks==null?void 0:e.cancellation_policy_remarks,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,confirmedAt:e.confirmed_at==null?void 0:e.confirmed_at,contactPerson:Xt(e.contact_person),createdAt:e.created_at,currency:le(e.currency),customerReference:e.customer_reference==null?void 0:e.customer_reference,event:e.event==null?void 0:mt(e.event),failedAt:e.failed_at==null?void 0:e.failed_at,hotelConfirmationId:e.hotel_confirmation_id==null?void 0:e.hotel_confirmation_id,hotelId:e.hotel_id,hotelRoomOffer:Me(e.hotel_room_offer),hotelRoomingLists:e.hotel_rooming_lists==null?void 0:e.hotel_rooming_lists.map(an),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:ho(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Oo),lastStatusUpdatedAt:e.last_status_updated_at,metadata:e.metadata==null?void 0:e.metadata,payLater:e.pay_later==null?void 0:e.pay_later,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(mo),penaltyPercentage:e.penalty_percentage==null?void 0:e.penalty_percentage,reference:e.reference,sourceMarket:He(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Yt),terms:e.terms,token:e.token==null?void 0:e.token}}function $o(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{additional_check_in_instruction:e.additionalCheckInInstruction,additional_policies:e.additionalPolicies,addons:e.addons==null?void 0:e.addons.map(on),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(ot),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:Qt(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:pt(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:Ie(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(Eo),id:e.id,insurance:go(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(So),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(nn),penalty_percentage:e.penaltyPercentage,reference:e.reference,source_market:e.sourceMarket,status:e.status,tax_amount:e.taxAmount,tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Kt),terms:e.terms,token:e.token}}var Nh={Insurance:"insurance"};function Ph(e){return!(!("type"in e)||e.type===void 0)}function Ho(e){return Bo(e,!1)}function Bo(e,t){return e==null?e:{type:e.type}}function Zo(e){return Uo(e,!1)}function Uo(e,t=!1){return e==null?e:{type:e.type}}function Ch(e){return!(!("fullname"in e)||e.fullname===void 0)}function Go(e){return qo(e,!1)}function qo(e,t){return e==null?e:{fullname:e.fullname}}function Yo(e){return Ko(e,!1)}function Ko(e,t=!1){return e==null?e:{fullname:e.fullname}}function bh(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function Vo(e){return Wo(e,!1)}function Wo(e,t){return e==null?e:{guests:e.guests.map(Go),hotelRoomId:e.hotel_room_id}}function Xo(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{guests:e.guests.map(Yo),hotel_room_id:e.hotelRoomId}}function Mh(e){return!0}function Je(e){return xo(e,!1)}function xo(e,t){return e==null?e:{dateEnd:e.date_end==null?void 0:e.date_end,dateStart:e.date_start==null?void 0:e.date_start,id:e.id==null?void 0:e.id,imageUrl:e.image_url==null?void 0:e.image_url,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function De(e){return jo(e,!1)}function jo(e,t=!1){return e==null?e:{date_end:e.dateEnd,date_start:e.dateStart,id:e.id,image_url:e.imageUrl,name:e.name,slug:e.slug}}function Ih(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function ea(e){return ta(e,!1)}function ta(e,t){return e==null?e:{couponIds:e.coupon_ids}}function na(e){return ra(e,!1)}function ra(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Jh={Coupon:"COUPON"};function Dh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Eh(e){return sn(e,!1)}function sn(e,t){return e==null?e:{name:e.name,payload:ea(e.payload)}}function ia(e){return oa(e,!1)}function oa(e,t=!1){return e==null?e:{name:e.name,payload:na(e.payload)}}var Fh={CreditCard:"CREDIT_CARD"};function zh(e){return!(!("name"in e)||e.name===void 0)}function $h(e){return un(e,!1)}function un(e,t){return e==null?e:{name:e.name}}function aa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{name:e.name}}var Lh={DepositAccount:"DEPOSIT_ACCOUNT"};function Hh(e){return!(!("name"in e)||e.name===void 0)}function Bh(e){return cn(e,!1)}function cn(e,t){return e==null?e:{name:e.name}}function ua(e){return ca(e,!1)}function ca(e,t=!1){return e==null?e:{name:e.name}}function dn(e){return da(e,!1)}function da(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...sn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...un(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...cn(e,!0),name:"DEPOSIT_ACCOUNT"};default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}function yt(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ia(e);case"CREDIT_CARD":return aa(e);case"DEPOSIT_ACCOUNT":return ua(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function Zh(e,t=!1){return yt(e)}function Uh(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function Gh(e){return fa(e,!1)}function fa(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Ho),bookingPolicyId:e.booking_policy_id,contactPerson:Xt(e.contact_person),eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(Vo),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(dn),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function la(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Zo),booking_policy_id:e.bookingPolicyId,contact_person:Qt(e.contactPerson),event_metadata:De(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(Xo),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(yt),tracking_id:e.trackingId}}function qh(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("expiresAt"in e)||e.expiresAt===void 0||!("hasRoomingLists"in e)||e.hasRoomingLists===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("id"in e)||e.id===void 0||!("isCancellationPoliciesUpdated"in e)||e.isCancellationPoliciesUpdated===void 0||!("isPriceIncreased"in e)||e.isPriceIncreased===void 0)}function fn(e){return pa(e,!1)}function pa(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(rn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(it),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),expiresAt:e.expires_at==null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:Me(e.hotel_room_offer),id:e.id,isCancellationPoliciesUpdated:e.is_cancellation_policies_updated,isPriceIncreased:e.is_price_increased}}function Yh(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(on),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(ot),check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,expires_at:e.expiresAt==null?e.expiresAt:e.expiresAt.toISOString(),has_rooming_lists:e.hasRoomingLists,hotel_id:e.hotelId,hotel_room_offer:Ie(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function Kh(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Vh(e){return ya(e,!1)}function ya(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,hotelRoomOfferId:e.hotel_room_offer_id,lang:e.lang==null?void 0:dt(e.lang)}}function ga(e){return _a(e,!1)}function _a(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,hotel_room_offer_id:e.hotelRoomOfferId,lang:e.lang}}function Wh(e){return!0}function Oa(e){return Aa(e,!1)}function Aa(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count}}function Sa(e){return Ta(e,!1)}function Ta(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Xh(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function wa(e){return ka(e,!1)}function ka(e,t){return e==null?e:{data:e.data.map(fe),meta:Oa(e.meta)}}function Qh(e){return va(e,!1)}function va(e,t=!1){return e==null?e:{data:e.data.map($o),meta:Sa(e.meta)}}var xh={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"};function jh(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function ey(e){return Ra(e,!1)}function Ra(e,t){return e==null?e:{documentationUrl:e.documentation_url==null?void 0:e.documentation_url,error:e.error==null?void 0:e.error,message:e.message==null?void 0:e.message,statusCode:e.statusCode,type:e.type==null?void 0:e.type}}function ty(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function ny(e){return!(!("rating"in e)||e.rating===void 0)}function ln(e){return Pa(e,!1)}function Pa(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function mn(e){return Ca(e,!1)}function Ca(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function ry(e){return!0}function pn(e){return ba(e,!1)}function ba(e,t){return e==null?e:{count:e.count==null?void 0:e.count,highres:e.highres==null?void 0:e.highres,lowres:e.lowres==null?void 0:e.lowres,prefix:e.prefix==null?void 0:e.prefix,suffix:e.suffix==null?void 0:e.suffix,thumb:e.thumb==null?void 0:e.thumb}}function hn(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{count:e.count,highres:e.highres,lowres:e.lowres,prefix:e.prefix,suffix:e.suffix,thumb:e.thumb}}function iy(e){return!0}function Ia(e){return Ja(e,!1)}function Ja(e,t){return e==null?e:{driving:e.driving==null?void 0:e.driving,transit:e.transit==null?void 0:e.transit,walking:e.walking==null?void 0:e.walking}}function Da(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function oy(e){return!(!("name"in e)||e.name===void 0)}function yn(e){return Fa(e,!1)}function Fa(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:Ia(e.travel_times)}}function gn(e){return za(e,!1)}function za(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:Da(e.travelTimes)}}function ay(e){return!(!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0)}function $a(e){return La(e,!1)}function La(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:Gt(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:le(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images==null?void 0:e.hotel_images.map(be),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(ln),id:e.id,images:e.images==null?void 0:pn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(yn),website:e.website==null?void 0:e.website}}function sy(e){return Ha(e,!1)}function Ha(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:qt(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages==null?void 0:e.hotelImages.map(Be),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(mn),id:e.id,images:hn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(gn),website:e.website}}function uy(e){return!(!("hotelImages"in e)||e.hotelImages===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function Ba(e){return Za(e,!1)}function Za(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:Gt(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:le(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images.map(be),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(ln),id:e.id,images:e.images==null?void 0:pn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(yn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(Me),tags:e.tags==null?void 0:e.tags.map(Vt)}}function Ua(e){return Ga(e,!1)}function Ga(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:qt(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages.map(Be),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(mn),id:e.id,images:hn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(gn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Ie),tags:e.tags==null?void 0:e.tags.map(Wt)}}function cy(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("roomCount"in e)||e.roomCount===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function _n(e){return qa(e,!1)}function qa(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,createdAt:e.created_at,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:He(e.source_market)}}function dy(e){return Ya(e,!1)}function Ya(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,created_at:e.createdAt,event_metadata:De(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function fy(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("roomCount"in e)||e.roomCount===void 0)}function ly(e){return Ka(e,!1)}function Ka(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function Va(e){return Wa(e,!1)}function Wa(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:De(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function my(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelOffers"in e)||e.hotelOffers===void 0)}function Xa(e){return Qa(e,!1)}function Qa(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),hotelOffers:e.hotel_offers.map(Ba),priceHistogram:e.price_histogram==null?void 0:e.price_histogram,priceMax:e.price_max==null?void 0:e.price_max,priceMin:e.price_min==null?void 0:e.price_min}}function xa(e){return ja(e,!1)}function ja(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_offers:e.hotelOffers.map(Ua),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var gt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function py(e){for(const t in gt)if(Object.prototype.hasOwnProperty.call(gt,t)&&gt[t]===e)return!0;return!1}function es(e){return ts(e,!1)}function ts(e,t){return e}function hy(e){return e}function yy(e,t){return e}function gy(e){return!(!("status"in e)||e.status===void 0)}function On(e){return ns(e,!1)}function ns(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count,status:es(e.status)}}function An(e){return rs(e,!1)}function rs(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function _y(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function is(e){return os(e,!1)}function os(e,t){return e==null?e:{data:Xa(e.data),event:e.event==null?void 0:mt(e.event),meta:On(e.meta)}}function Oy(e){return as(e,!1)}function as(e,t=!1){return e==null?e:{data:xa(e.data),event:pt(e.event),meta:An(e.meta)}}function Ay(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0)}function ss(e){return us(e,!1)}function us(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),hotelId:e.hotel_id,hotelRoomOffer:Me(e.hotel_room_offer)}}function Sy(e){return cs(e,!1)}function cs(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offer:Ie(e.hotelRoomOffer)}}function Ty(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function Sn(e){return ds(e,!1)}function ds(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:He(e.source_market)}}function wy(e){return fs(e,!1)}function fs(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:De(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function ky(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0)}function vy(e){return ls(e,!1)}function ls(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function ms(e){return ps(e,!1)}function ps(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:De(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function Ry(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0||!("hotelTimezone"in e)||e.hotelTimezone===void 0)}function hs(e){return ys(e,!1)}function ys(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(Me),hotelTimezone:e.hotel_timezone}}function gs(e){return _s(e,!1)}function _s(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offers:e.hotelRoomOffers.map(Ie),hotel_timezone:e.hotelTimezone}}function Ny(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Os(e){return As(e,!1)}function As(e,t){return e==null?e:{data:hs(e.data),event:e.event==null?void 0:mt(e.event),meta:On(e.meta)}}function Py(e){return Ss(e,!1)}function Ss(e,t=!1){return e==null?e:{data:gs(e.data),event:pt(e.event),meta:An(e.meta)}}function Cy(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Ts(e){return ws(e,!1)}function ws(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,count:e.count,hotelRoomOfferId:e.hotel_room_offer_id}}function ks(e){return vs(e,!1)}function vs(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function by(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function My(e){return Rs(e,!1)}function Rs(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,currency:le(e.currency),hotelRoomOffers:e.hotel_room_offers.map(Ts),lang:e.lang==null?void 0:dt(e.lang)}}function Ns(e){return Ps(e,!1)}function Ps(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(ks),lang:e.lang}}function Iy(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function Jy(e){return Cs(e,!1)}function Cs(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function bs(e){return Ms(e,!1)}function Ms(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function Dy(e){return!(!("fullname"in e)||e.fullname===void 0)}function Ey(e){return Is(e,!1)}function Is(e,t){return e==null?e:{fullname:e.fullname}}function Js(e){return Ds(e,!1)}function Ds(e,t=!1){return e==null?e:{fullname:e.fullname}}function Fy(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function zy(e){return Es(e,!1)}function Es(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(dn)}}function Fs(e){return zs(e,!1)}function zs(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(yt)}}var $y={AddOrRemoveNights:"add_or_remove_nights",AddOrRemovePerson:"add_or_remove_person",ChangeDates:"change_dates",ChangeGuestName:"change_guest_name",EarlyCheckIn:"early_check_in",EarlyCheckInLateCheckOut:"early_check_in_late_check_out",LateCheckOut:"late_check_out",Other:"other",SpecialRequest:"special_request"};function Ly(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function Hy(e){return $s(e,!1)}function $s(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Ls(e){return Hs(e,!1)}function Hs(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var Bs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fn(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const n={};e.couponCodes&&(n.coupon_codes=e.couponCodes);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>a.map(ci))}async paymentMethods(e,t){return await(await this.paymentMethodsRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:E(n,I.Snake),body:E(ga(e.bookingPoliciesCreateApi),I.Snake)},t);return new q(i,a=>fn(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Zs=class extends ue{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const n=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:E({},I.Snake)},t);return new q(n,r=>fe(r))}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async listRaw(e,t){const n={};e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(n.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(n.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(n.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(n.filter_by_status=e.filterByStatus),e.limit!==void 0&&(n.limit=e.limit),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>wa(a))}async list(e={},t){return await(await this.listRaw(e,t)).value()}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new B("customerName","Required parameter requestParameters.customerName was null or undefined when calling getV1BookingsTokenCertificate.");const n={};e.customerName!==void 0&&(n.customer_name=e.customerName),e.locale!==void 0&&(n.locale=e.locale);const r=await this.request({path:"/v1/bookings/{token}/certificate".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E(n,I.Snake)},t);return new Zr(r)}async certificate(e,t){await this.certificateRaw(e,t)}async retrievePublicRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const n=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E({},I.Snake)},t);return new q(n,r=>fe(r))}async retrievePublic(e,t){return await(await this.retrievePublicRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:E(n,I.Snake),body:E(la(e.bookingCreateApi),I.Snake)},t);return new q(i,a=>fe(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new B("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async couponCharge(e,t){return await(await this.couponChargeRaw(e,t)).value()}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async paylater(e,t){return await(await this.paylaterRaw(e,t)).value()}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async confirmpaylater(e,t){return await(await this.confirmpaylaterRaw(e,t)).value()}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async confirm(e,t){return await(await this.confirmRaw(e,t)).value()}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling postV1BookingsTokenRequest.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/bookings/{token}/request".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:E(n,I.Snake),body:E(Ls(e.requestPayload),I.Snake)},t);return new Lt(i)}async submitRequest(e,t){return await(await this.submitRequestRaw(e,t)).value()}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:E(n,I.Snake),body:E(Fs(e.paymentMethodUpdatePayloadApi),I.Snake)},t);return new q(i,a=>fe(a))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},By={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},Zy={Asc:"asc",Desc:"desc"},Us=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>a.map(be))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Gs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>_n(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:E(n,I.Snake),body:E(Va(e.hotelOfferRequestCreateApi),I.Snake)},t);return new q(i,a=>_n(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},qs=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new B("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new B("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(n.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(n.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(n.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(n.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(n.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(n.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(n.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(n.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>is(a))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Cn.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?qe(r,i,t):qe(r,i)}},Uy={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},Gy={Asc:"asc",Desc:"desc"},Ys=class extends ue{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const n=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:E({},I.Snake)},t);return new Lt(n)}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:E(n,I.Snake),body:E(Js(e.hotelRoomingListGuestsUpdateApi),I.Snake)},t);return new q(i,a=>ht(a))}async update(e,t){return await(await this.updateRaw(e,t)).value()}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:E(n,I.Snake),body:E(bs(e.hotelRoomingListGuestsCreateApi),I.Snake)},t);return new q(i,a=>ht(a))}async create(e,t){return await(await this.createRaw(e,t)).value()}},Ks=class extends ue{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E(n,I.Snake)},t);return new q(r,i=>i.map(an))}async list(e,t){return await(await this.listRaw(e,t)).value()}},Vs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>E(a,I.Camel))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Ws=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>Sn(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:E(n,I.Snake),body:E(ms(e.hotelRoomOfferRequestCreateApi),I.Snake)},t);return new q(i,a=>Sn(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Xs=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new B("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new B("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(n.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>Os(a))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Cn.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?qe(r,i,t):qe(r,i)}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:E(n,I.Snake),body:E(Ns(e.hotelRoomOffersCreateApi),I.Snake)},t);return new q(i,a=>ss(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Qs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const n={};e.event!==void 0&&(n.event=e.event),e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>$a(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},xs=class extends Ft{documentationUrl;status;title;type;constructor(e){super(e.response,e.body?.message??`Request failed with status ${e.status}`),this.status=e.status,this.type=e.body?.type,this.title=e.body?.title,this.documentationUrl=e.body?.documentationUrl}},qy=class{async post(e){const{response:t}=e;if(t.ok)return;let n;try{n=await t.clone().json()}catch{n=void 0}throw new xs({body:n,response:t,status:t.status})}},js=e=>({bookingPolicies:new Bs(e),bookings:new Zs(e),hotelImages:new Us(e),hotelOfferRequests:new Gs(e),hotelOffers:new qs(e),hotelRoomingListGuests:new Ys(e),hotelRoomingLists:new Ks(e),hotelRoomOfferImages:new Vs(e),hotelRoomOfferRequests:new Ws(e),hotelRoomOffers:new Xs(e),hotels:new Qs(e)});function Yy(e){switch(e){case Re.CiCd:return"AUTH_TOKEN_CICD";case Re.Local:return"AUTH_TOKEN_LOCAL";case Re.Production:return"AUTH_TOKEN";case Re.Sandbox:return"AUTH_TOKEN_SANDBOX";case Re.Staging:return"AUTH_TOKEN_STAGING";case void 0:default:return"AUTH_TOKEN"}}function eu(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(Yy(e))))}var Ky=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",eu(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},Vy=class{config;constructor(e){this.config=e}async pre(e){return eu(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},Wy=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(Pn).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(Pn))}`);let t={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(t={...t,...this.config.optionalHeaders});const n=this.config.apiEnvironment;let r=this.config.apiBaseUrl??ou[n];!this.config.apiBaseUrl&&n===Re.Local&&(r="http://127.0.0.1:3001");const i=new zt({basePath:r,fetchApi:su.default,headers:t,middleware:[new Ky(this.config),new Vy(this.config),new qy]});this.apiVersionsToClient={v1:js(i)}}get bookingPolicies(){return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies}get bookings(){return this.apiVersionsToClient[this.config.apiVersion].bookings}get hotelImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelImages}get hotelOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelOfferRequests}get hotelOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelOffers}get hotelRoomingListGuests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingListGuests}get hotelRoomingLists(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingLists}get hotelRoomOfferImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferImages}get hotelRoomOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferRequests}get hotelRoomOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOffers}get hotels(){return this.apiVersionsToClient[this.config.apiVersion].hotels}};o.AllowedPaymentMethodApiFromJSON=ci,o.AllowedPaymentMethodApiFromJSONTyped=di,o.AllowedPaymentMethodApiToJSON=fi,o.AllowedPaymentMethodApiToJSONTyped=yp,o.AllowedPaymentMethodCouponApiFromJSON=ip,o.AllowedPaymentMethodCouponApiFromJSONTyped=Ht,o.AllowedPaymentMethodCouponApiNameEnum=np,o.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=ep,o.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=Kr,o.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=Vr,o.AllowedPaymentMethodCouponApiPayloadInnerToJSON=Wr,o.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=Xr,o.AllowedPaymentMethodCouponApiToJSON=Qr,o.AllowedPaymentMethodCouponApiToJSONTyped=xr,o.AllowedPaymentMethodCreditCardApiFromJSON=sp,o.AllowedPaymentMethodCreditCardApiFromJSONTyped=Bt,o.AllowedPaymentMethodCreditCardApiNameEnum=op,o.AllowedPaymentMethodCreditCardApiToJSON=jr,o.AllowedPaymentMethodCreditCardApiToJSONTyped=ei,o.AllowedPaymentMethodDepositAccountApiFromJSON=dp,o.AllowedPaymentMethodDepositAccountApiFromJSONTyped=Zt,o.AllowedPaymentMethodDepositAccountApiNameEnum=up,o.AllowedPaymentMethodDepositAccountApiToJSON=ti,o.AllowedPaymentMethodDepositAccountApiToJSONTyped=ni,o.AllowedPaymentMethodPayLaterApiFromJSON=hp,o.AllowedPaymentMethodPayLaterApiFromJSONTyped=Ut,o.AllowedPaymentMethodPayLaterApiNameEnum=mp,o.AllowedPaymentMethodPayLaterApiPayloadFromJSON=ri,o.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=ii,o.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=fp,o.AllowedPaymentMethodPayLaterApiPayloadToJSON=oi,o.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=ai,o.AllowedPaymentMethodPayLaterApiToJSON=si,o.AllowedPaymentMethodPayLaterApiToJSONTyped=ui,o.AmenitiesApiFromJSON=Gt,o.AmenitiesApiFromJSONTyped=li,o.AmenitiesApiToJSON=qt,o.AmenitiesApiToJSONTyped=mi,o.ApiClient=Wy,o.ApiError=xs,o.BASE_PATH=Br,o.BaseAPI=ue,o.BedApiFromJSON=Op,o.BedApiFromJSONTyped=pi,o.BedApiToJSON=Ap,o.BedApiToJSONTyped=hi,o.BlobApiResponse=Ym,o.BookingApiFromJSON=fe,o.BookingApiFromJSONTyped=zo,o.BookingApiPayLaterEnum=kh,o.BookingApiStatusEnum=vh,o.BookingApiToJSON=$o,o.BookingApiToJSONTyped=Lo,o.BookingCreateApiFromJSON=Gh,o.BookingCreateApiFromJSONTyped=fa,o.BookingCreateApiGuestsListInnerFromJSON=Vo,o.BookingCreateApiGuestsListInnerFromJSONTyped=Wo,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=Go,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=qo,o.BookingCreateApiGuestsListInnerGuestsInnerToJSON=Yo,o.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=Ko,o.BookingCreateApiGuestsListInnerToJSON=Xo,o.BookingCreateApiGuestsListInnerToJSONTyped=Qo,o.BookingCreateApiToJSON=la,o.BookingCreateApiToJSONTyped=ma,o.BookingPolicies=Bs,o.BookingPoliciesApiFromJSON=fn,o.BookingPoliciesApiFromJSONTyped=pa,o.BookingPoliciesApiToJSON=Yh,o.BookingPoliciesApiToJSONTyped=ha,o.BookingPoliciesCreateApiFromJSON=Vh,o.BookingPoliciesCreateApiFromJSONTyped=ya,o.BookingPoliciesCreateApiToJSON=ga,o.BookingPoliciesCreateApiToJSONTyped=_a,o.Bookings=Zs,o.BookingsApiResponseFromJSON=wa,o.BookingsApiResponseFromJSONTyped=ka,o.BookingsApiResponseToJSON=Qh,o.BookingsApiResponseToJSONTyped=va,o.BookingsSortByEnum=By,o.BookingsSortByOrderEnum=Zy,o.BreakfastOption=st,o.BreakfastOptionFromJSON=vi,o.BreakfastOptionFromJSONTyped=Ri,o.BreakfastOptionToJSON=Pp,o.BreakfastOptionToJSONTyped=Cp,o.COLLECTION_FORMATS=Um,o.CancellationPolicyApiFromJSON=it,o.CancellationPolicyApiFromJSONTyped=yi,o.CancellationPolicyApiToJSON=ot,o.CancellationPolicyApiToJSONTyped=gi,o.Configuration=zt,o.ContactPersonApiFromJSON=Xt,o.ContactPersonApiFromJSONTyped=Hi,o.ContactPersonApiSalutationEnum=Vp,o.ContactPersonApiToJSON=Qt,o.ContactPersonApiToJSONTyped=Bi,o.ContactPersonOrganizationApiFromJSON=Fi,o.ContactPersonOrganizationApiFromJSONTyped=zi,o.ContactPersonOrganizationApiToJSON=$i,o.ContactPersonOrganizationApiToJSONTyped=Li,o.CountryIso2Code=ft,o.CountryIso2CodeFromJSON=lt,o.CountryIso2CodeFromJSONTyped=Ei,o.CountryIso2CodeToJSON=qp,o.CountryIso2CodeToJSONTyped=Yp,o.CouponPreviewAppliedApiFromJSON=Vm,o.CouponPreviewAppliedApiFromJSONTyped=Ur,o.CouponPreviewAppliedApiToJSON=Wm,o.CouponPreviewAppliedApiToJSONTyped=Gr,o.CouponPreviewRejectedApiErrorEnum=Xm,o.CouponPreviewRejectedApiFromJSON=xm,o.CouponPreviewRejectedApiFromJSONTyped=qr,o.CouponPreviewRejectedApiToJSON=jm,o.CouponPreviewRejectedApiToJSONTyped=Yr,o.CurrencyClient=ut,o.CurrencyClientFromJSON=le,o.CurrencyClientFromJSONTyped=Ci,o.CurrencyClientToJSON=Dp,o.CurrencyClientToJSONTyped=Ep,o.ErrorApiResponseFromJSON=ey,o.ErrorApiResponseFromJSONTyped=Ra,o.ErrorApiResponseToJSON=ty,o.ErrorApiResponseToJSONTyped=Na,o.ErrorApiResponseTypeEnum=xh,o.EventApiFromJSON=mt,o.EventApiFromJSONTyped=vo,o.EventApiToJSON=pt,o.EventApiToJSONTyped=Ro,o.EventMetadataApiFromJSON=Je,o.EventMetadataApiFromJSONTyped=xo,o.EventMetadataApiToJSON=De,o.EventMetadataApiToJSONTyped=jo,o.HotelApiFromJSON=$a,o.HotelApiFromJSONTyped=La,o.HotelApiImagesFromJSON=pn,o.HotelApiImagesFromJSONTyped=ba,o.HotelApiImagesToJSON=hn,o.HotelApiImagesToJSONTyped=Ma,o.HotelApiToJSON=sy,o.HotelApiToJSONTyped=Ha,o.HotelImageApiFromJSON=be,o.HotelImageApiFromJSONTyped=Oi,o.HotelImageApiToJSON=Be,o.HotelImageApiToJSONTyped=Ai,o.HotelImages=Us,o.HotelOfferApiFromJSON=Ba,o.HotelOfferApiFromJSONTyped=Za,o.HotelOfferApiToJSON=Ua,o.HotelOfferApiToJSONTyped=Ga,o.HotelOfferRequestApiResponseFromJSON=_n,o.HotelOfferRequestApiResponseFromJSONTyped=qa,o.HotelOfferRequestApiResponseToJSON=dy,o.HotelOfferRequestApiResponseToJSONTyped=Ya,o.HotelOfferRequestCreateApiFromJSON=ly,o.HotelOfferRequestCreateApiFromJSONTyped=Ka,o.HotelOfferRequestCreateApiToJSON=Va,o.HotelOfferRequestCreateApiToJSONTyped=Wa,o.HotelOfferRequests=Gs,o.HotelOffers=qs,o.HotelOffersApiResponseFromJSON=is,o.HotelOffersApiResponseFromJSONTyped=os,o.HotelOffersApiResponseToJSON=Oy,o.HotelOffersApiResponseToJSONTyped=as,o.HotelOffersDataApiResponseFromJSON=Xa,o.HotelOffersDataApiResponseFromJSONTyped=Qa,o.HotelOffersDataApiResponseToJSON=xa,o.HotelOffersDataApiResponseToJSONTyped=ja,o.HotelOffersSortByEnum=Uy,o.HotelOffersSortByOrderEnum=Gy,o.HotelReviewRatingApiFromJSON=ln,o.HotelReviewRatingApiFromJSONTyped=Pa,o.HotelReviewRatingApiToJSON=mn,o.HotelReviewRatingApiToJSONTyped=Ca,o.HotelRoomOfferApiFromJSON=Me,o.HotelRoomOfferApiFromJSONTyped=Ii,o.HotelRoomOfferApiHotelRoomsInnerFromJSON=Si,o.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=Ti,o.HotelRoomOfferApiHotelRoomsInnerToJSON=wi,o.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=ki,o.HotelRoomOfferApiPackageTypeEnum=zp,o.HotelRoomOfferApiResponseFromJSON=ss,o.HotelRoomOfferApiResponseFromJSONTyped=us,o.HotelRoomOfferApiResponseToJSON=Sy,o.HotelRoomOfferApiResponseToJSONTyped=cs,o.HotelRoomOfferApiStayTaxesInfoEnum=$p,o.HotelRoomOfferApiToJSON=Ie,o.HotelRoomOfferApiToJSONTyped=Ji,o.HotelRoomOfferApiTypeEnum=Lp,o.HotelRoomOfferImages=Vs,o.HotelRoomOfferRequestApiResponseFromJSON=Sn,o.HotelRoomOfferRequestApiResponseFromJSONTyped=ds,o.HotelRoomOfferRequestApiResponseToJSON=wy,o.HotelRoomOfferRequestApiResponseToJSONTyped=fs,o.HotelRoomOfferRequestCreateApiFromJSON=vy,o.HotelRoomOfferRequestCreateApiFromJSONTyped=ls,o.HotelRoomOfferRequestCreateApiToJSON=ms,o.HotelRoomOfferRequestCreateApiToJSONTyped=ps,o.HotelRoomOfferRequests=Ws,o.HotelRoomOffers=Xs,o.HotelRoomOffersApiResponseFromJSON=Os,o.HotelRoomOffersApiResponseFromJSONTyped=As,o.HotelRoomOffersApiResponseToJSON=Py,o.HotelRoomOffersApiResponseToJSONTyped=Ss,o.HotelRoomOffersCreateApiFromJSON=My,o.HotelRoomOffersCreateApiFromJSONTyped=Rs,o.HotelRoomOffersCreateApiToJSON=Ns,o.HotelRoomOffersCreateApiToJSONTyped=Ps,o.HotelRoomOffersDataApiResponseFromJSON=hs,o.HotelRoomOffersDataApiResponseFromJSONTyped=ys,o.HotelRoomOffersDataApiResponseToJSON=gs,o.HotelRoomOffersDataApiResponseToJSONTyped=_s,o.HotelRoomOffersDataCreateApiFromJSON=Ts,o.HotelRoomOffersDataCreateApiFromJSONTyped=ws,o.HotelRoomOffersDataCreateApiToJSON=ks,o.HotelRoomOffersDataCreateApiToJSONTyped=vs,o.HotelRoomingListApiFromJSON=an,o.HotelRoomingListApiFromJSONTyped=Do,o.HotelRoomingListApiHotelRoomFromJSON=No,o.HotelRoomingListApiHotelRoomFromJSONTyped=Po,o.HotelRoomingListApiHotelRoomToJSON=Co,o.HotelRoomingListApiHotelRoomToJSONTyped=bo,o.HotelRoomingListApiToJSON=Eo,o.HotelRoomingListApiToJSONTyped=Fo,o.HotelRoomingListGuestApiFromJSON=ht,o.HotelRoomingListGuestApiFromJSONTyped=Mo,o.HotelRoomingListGuestApiToJSON=Io,o.HotelRoomingListGuestApiToJSONTyped=Jo,o.HotelRoomingListGuests=Ys,o.HotelRoomingListGuestsCreateApiFromJSON=Jy,o.HotelRoomingListGuestsCreateApiFromJSONTyped=Cs,o.HotelRoomingListGuestsCreateApiToJSON=bs,o.HotelRoomingListGuestsCreateApiToJSONTyped=Ms,o.HotelRoomingListGuestsUpdateApiFromJSON=Ey,o.HotelRoomingListGuestsUpdateApiFromJSONTyped=Is,o.HotelRoomingListGuestsUpdateApiToJSON=Js,o.HotelRoomingListGuestsUpdateApiToJSONTyped=Ds,o.HotelRoomingLists=Ks,o.Hotels=Qs,o.InsuranceApiFromJSON=ho,o.InsuranceApiFromJSONTyped=yo,o.InsuranceApiStatusEnum=ph,o.InsuranceApiToJSON=go,o.InsuranceApiToJSONTyped=_o,o.InvoiceApiFromJSON=Oo,o.InvoiceApiFromJSONTyped=Ao,o.InvoiceApiToJSON=So,o.InvoiceApiToJSONTyped=To,o.InvoiceApiTypeEnum=yh,o.JSONApiResponse=q,o.Locale=ct,o.LocaleFromJSON=dt,o.LocaleFromJSONTyped=Di,o.LocaleToJSON=Zp,o.LocaleToJSONTyped=Up,o.MetaPollingResponseApiFromJSON=On,o.MetaPollingResponseApiFromJSONTyped=ns,o.MetaPollingResponseApiToJSON=An,o.MetaPollingResponseApiToJSONTyped=rs,o.MetaResponseApiFromJSON=Oa,o.MetaResponseApiFromJSONTyped=Aa,o.MetaResponseApiToJSON=Sa,o.MetaResponseApiToJSONTyped=Ta,o.OrderAddonFromJSON=rn,o.OrderAddonFromJSONTyped=wo,o.OrderAddonSelectionFromJSON=Ho,o.OrderAddonSelectionFromJSONTyped=Bo,o.OrderAddonSelectionToJSON=Zo,o.OrderAddonSelectionToJSONTyped=Uo,o.OrderAddonSelectionTypeEnum=Nh,o.OrderAddonToJSON=on,o.OrderAddonToJSONTyped=ko,o.OrderAddonTypeEnum=_h,o.PaymentMethodApiFromJSON=mo,o.PaymentMethodApiFromJSONTyped=po,o.PaymentMethodApiToJSON=nn,o.PaymentMethodApiToJSONTyped=mh,o.PaymentMethodCouponApiFromJSON=jp,o.PaymentMethodCouponApiFromJSONTyped=xt,o.PaymentMethodCouponApiNameEnum=Qp,o.PaymentMethodCouponApiPayloadInnerFromJSON=Zi,o.PaymentMethodCouponApiPayloadInnerFromJSONTyped=Ui,o.PaymentMethodCouponApiPayloadInnerToJSON=Gi,o.PaymentMethodCouponApiPayloadInnerToJSONTyped=qi,o.PaymentMethodCouponApiToJSON=Yi,o.PaymentMethodCouponApiToJSONTyped=Ki,o.PaymentMethodCreditCardApiFromJSON=rh,o.PaymentMethodCreditCardApiFromJSONTyped=jt,o.PaymentMethodCreditCardApiNameEnum=th,o.PaymentMethodCreditCardApiPayloadFromJSON=Vi,o.PaymentMethodCreditCardApiPayloadFromJSONTyped=Wi,o.PaymentMethodCreditCardApiPayloadToJSON=Xi,o.PaymentMethodCreditCardApiPayloadToJSONTyped=Qi,o.PaymentMethodCreditCardApiToJSON=xi,o.PaymentMethodCreditCardApiToJSONTyped=ji,o.PaymentMethodDepositAccountApiFromJSON=sh,o.PaymentMethodDepositAccountApiFromJSONTyped=en,o.PaymentMethodDepositAccountApiNameEnum=oh,o.PaymentMethodDepositAccountApiPayloadFromJSON=eo,o.PaymentMethodDepositAccountApiPayloadFromJSONTyped=to,o.PaymentMethodDepositAccountApiPayloadToJSON=no,o.PaymentMethodDepositAccountApiPayloadToJSONTyped=ro,o.PaymentMethodDepositAccountApiToJSON=io,o.PaymentMethodDepositAccountApiToJSONTyped=oo,o.PaymentMethodPayLaterApiFromJSON=lh,o.PaymentMethodPayLaterApiFromJSONTyped=tn,o.PaymentMethodPayLaterApiNameEnum=dh,o.PaymentMethodPayLaterApiPayloadFromJSON=ao,o.PaymentMethodPayLaterApiPayloadFromJSONTyped=so,o.PaymentMethodPayLaterApiPayloadStatusEnum=uh,o.PaymentMethodPayLaterApiPayloadToJSON=uo,o.PaymentMethodPayLaterApiPayloadToJSONTyped=co,o.PaymentMethodPayLaterApiToJSON=fo,o.PaymentMethodPayLaterApiToJSONTyped=lo,o.PaymentMethodRequestApiFromJSON=dn,o.PaymentMethodRequestApiFromJSONTyped=da,o.PaymentMethodRequestApiToJSON=yt,o.PaymentMethodRequestApiToJSONTyped=Zh,o.PaymentMethodRequestCouponApiFromJSON=Eh,o.PaymentMethodRequestCouponApiFromJSONTyped=sn,o.PaymentMethodRequestCouponApiNameEnum=Jh,o.PaymentMethodRequestCouponApiToJSON=ia,o.PaymentMethodRequestCouponApiToJSONTyped=oa,o.PaymentMethodRequestCouponPayloadApiFromJSON=ea,o.PaymentMethodRequestCouponPayloadApiFromJSONTyped=ta,o.PaymentMethodRequestCouponPayloadApiToJSON=na,o.PaymentMethodRequestCouponPayloadApiToJSONTyped=ra,o.PaymentMethodRequestCreditCardApiFromJSON=$h,o.PaymentMethodRequestCreditCardApiFromJSONTyped=un,o.PaymentMethodRequestCreditCardApiNameEnum=Fh,o.PaymentMethodRequestCreditCardApiToJSON=aa,o.PaymentMethodRequestCreditCardApiToJSONTyped=sa,o.PaymentMethodRequestDepositAccountApiFromJSON=Bh,o.PaymentMethodRequestDepositAccountApiFromJSONTyped=cn,o.PaymentMethodRequestDepositAccountApiNameEnum=Lh,o.PaymentMethodRequestDepositAccountApiToJSON=ua,o.PaymentMethodRequestDepositAccountApiToJSONTyped=ca,o.PaymentMethodUpdatePayloadApiFromJSON=zy,o.PaymentMethodUpdatePayloadApiFromJSONTyped=Es,o.PaymentMethodUpdatePayloadApiToJSON=Fs,o.PaymentMethodUpdatePayloadApiToJSONTyped=zs,o.PollerStatus=gt,o.PollerStatusFromJSON=es,o.PollerStatusFromJSONTyped=ts,o.PollerStatusToJSON=hy,o.PollerStatusToJSONTyped=yy,o.RequestPayloadFromJSON=Hy,o.RequestPayloadFromJSONTyped=$s,o.RequestPayloadRequestTypeEnum=$y,o.RequestPayloadToJSON=Ls,o.RequestPayloadToJSONTyped=Hs,o.RequiredError=B,o.ResponseError=Ft,o.SourceMarket=at,o.SourceMarketFromJSON=He,o.SourceMarketFromJSONTyped=_i,o.SourceMarketToJSON=wp,o.SourceMarketToJSONTyped=kp,o.TagApiFromJSON=Vt,o.TagApiFromJSONTyped=bi,o.TagApiToJSON=Wt,o.TagApiToJSONTyped=Mi,o.TaxApiFromJSON=Yt,o.TaxApiFromJSONTyped=Ni,o.TaxApiTaxFrequencyEnum=bp,o.TaxApiTaxModeEnum=Mp,o.TaxApiToJSON=Kt,o.TaxApiToJSONTyped=Pi,o.TextApiResponse=Lt,o.TravelTimesApiFromJSON=yn,o.TravelTimesApiFromJSONTyped=Fa,o.TravelTimesApiToJSON=gn,o.TravelTimesApiToJSONTyped=za,o.TravelTimesApiTravelTimesFromJSON=Ia,o.TravelTimesApiTravelTimesFromJSONTyped=Ja,o.TravelTimesApiTravelTimesToJSON=Da,o.TravelTimesApiTravelTimesToJSONTyped=Ea,o.VoidApiResponse=Zr,o.canConsumeForm=qm,o.exists=Gm,o.instanceOfAllowedPaymentMethodCouponApi=rp,o.instanceOfAllowedPaymentMethodCouponApiPayloadInner=tp,o.instanceOfAllowedPaymentMethodCreditCardApi=ap,o.instanceOfAllowedPaymentMethodDepositAccountApi=cp,o.instanceOfAllowedPaymentMethodPayLaterApi=pp,o.instanceOfAllowedPaymentMethodPayLaterApiPayload=lp,o.instanceOfAmenitiesApi=gp,o.instanceOfBedApi=_p,o.instanceOfBookingApi=Rh,o.instanceOfBookingCreateApi=Uh,o.instanceOfBookingCreateApiGuestsListInner=bh,o.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Ch,o.instanceOfBookingPoliciesApi=qh,o.instanceOfBookingPoliciesCreateApi=Kh,o.instanceOfBookingsApiResponse=Xh,o.instanceOfBreakfastOption=Np,o.instanceOfCancellationPolicyApi=Sp,o.instanceOfContactPersonApi=Wp,o.instanceOfContactPersonOrganizationApi=Kp,o.instanceOfCountryIso2Code=Gp,o.instanceOfCouponPreviewAppliedApi=Km,o.instanceOfCouponPreviewRejectedApi=Qm,o.instanceOfCurrencyClient=Jp,o.instanceOfErrorApiResponse=jh,o.instanceOfEventApi=Ah,o.instanceOfEventMetadataApi=Mh,o.instanceOfHotelApi=ay,o.instanceOfHotelApiImages=ry,o.instanceOfHotelImageApi=vp,o.instanceOfHotelOfferApi=uy,o.instanceOfHotelOfferRequestApiResponse=cy,o.instanceOfHotelOfferRequestCreateApi=fy,o.instanceOfHotelOffersApiResponse=_y,o.instanceOfHotelOffersDataApiResponse=my,o.instanceOfHotelReviewRatingApi=ny,o.instanceOfHotelRoomOfferApi=Hp,o.instanceOfHotelRoomOfferApiHotelRoomsInner=Rp,o.instanceOfHotelRoomOfferApiResponse=Ay,o.instanceOfHotelRoomOfferRequestApiResponse=Ty,o.instanceOfHotelRoomOfferRequestCreateApi=ky,o.instanceOfHotelRoomOffersApiResponse=Ny,o.instanceOfHotelRoomOffersCreateApi=by,o.instanceOfHotelRoomOffersDataApiResponse=Ry,o.instanceOfHotelRoomOffersDataCreateApi=Cy,o.instanceOfHotelRoomingListApi=wh,o.instanceOfHotelRoomingListApiHotelRoom=Sh,o.instanceOfHotelRoomingListGuestApi=Th,o.instanceOfHotelRoomingListGuestsCreateApi=Iy,o.instanceOfHotelRoomingListGuestsUpdateApi=Dy,o.instanceOfInsuranceApi=hh,o.instanceOfInvoiceApi=gh,o.instanceOfLocale=Bp,o.instanceOfMetaPollingResponseApi=gy,o.instanceOfMetaResponseApi=Wh,o.instanceOfOrderAddon=Oh,o.instanceOfOrderAddonSelection=Ph,o.instanceOfPaymentMethodCouponApi=xp,o.instanceOfPaymentMethodCouponApiPayloadInner=Xp,o.instanceOfPaymentMethodCreditCardApi=nh,o.instanceOfPaymentMethodCreditCardApiPayload=eh,o.instanceOfPaymentMethodDepositAccountApi=ah,o.instanceOfPaymentMethodDepositAccountApiPayload=ih,o.instanceOfPaymentMethodPayLaterApi=fh,o.instanceOfPaymentMethodPayLaterApiPayload=ch,o.instanceOfPaymentMethodRequestCouponApi=Dh,o.instanceOfPaymentMethodRequestCouponPayloadApi=Ih,o.instanceOfPaymentMethodRequestCreditCardApi=zh,o.instanceOfPaymentMethodRequestDepositAccountApi=Hh,o.instanceOfPaymentMethodUpdatePayloadApi=Fy,o.instanceOfPollerStatus=py,o.instanceOfRequestPayload=Ly,o.instanceOfSourceMarket=Tp,o.instanceOfTagApi=Fp,o.instanceOfTaxApi=Ip,o.instanceOfTravelTimesApi=oy,o.instanceOfTravelTimesApiTravelTimes=iy,o.querystring=$t,o.v1ApiClient=js});
58
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){o(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(u.cycle){o(s);continue}u.count>1&&e.reused==="ref"&&o(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ti(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;Ti(r);const i=Object.keys(r);if(i.length!==1||i[0]!=="type")return;const o=r.type;for(const s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var vi=new Set(["type","properties","required","additionalProperties"]),wi=["oneOf","anyOf"];function ki(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function ln(e){const t=[];for(const o of e){if(typeof o!="object"||o.type!=="object")return null;for(const s in o)if(!vi.has(s))return null;t.push(o)}const n={},r=new Set;for(const o of t){for(const s in o.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;const u=[];for(const d of t){const p=d.properties?.[s]??ki(d);p!=null&&(u.some(m=>JSON.stringify(m)===JSON.stringify(p))||u.push(p))}const c=u.length===1?u[0]:ln(u)??{allOf:u};be(n,s,c)}for(const s of o.required??[])r.add(s)}const i={type:"object",properties:n};if(r.size&&(i.required=[...r]),t.every(o=>o.additionalProperties===!1))i.additionalProperties=!1;else{const o=[];for(const s of t){const u=ki(s);u&&!o.some(c=>JSON.stringify(c)===JSON.stringify(u))&&o.push(u)}o.length===1?i.additionalProperties=o[0]:o.length>1&&(i.additionalProperties={allOf:o})}return i}function Xm(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const i of vi)if(i in e)return;const n=t.filter(i=>wi.some(o=>Array.isArray(i[o])));let r=null;if(!n.length)r=ln(t);else{const i=n[0],o=wi.find(c=>Array.isArray(i[c]));if(Object.keys(i).length!==1)return;const s=t.filter(c=>c!==i),u=i[o].map(c=>ln([...s,c]));if(u.some(c=>!c))return;r={[o]:u}}r&&(delete e.allOf,Qe(e,r))}function Ri(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const c=e.seen.get(u);if(c.ref===null)return;const d=c.def??c.schema,p={...d},m=c.ref;if(c.ref=null,m){r(m);const _=e.seen.get(m),A=_.schema;if(A.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(A)):Qe(d,A),Qe(d,p),u._zod.parent===m)for(const y in d)y==="$ref"||y==="allOf"||y in p||delete d[y];if(A.$ref&&_.def)for(const y in d)y==="$ref"||y==="allOf"||y in _.def&&JSON.stringify(d[y])===JSON.stringify(_.def[y])&&delete d[y]}const h=u._zod.parent;if(h&&h!==m){r(h);const _=e.seen.get(h);if(_?.schema.$ref&&(d.$ref=_.schema.$ref,_.def))for(const A in d)A==="$ref"||A==="allOf"||A in _.def&&JSON.stringify(d[A])===JSON.stringify(_.def[A])&&delete d[A]}e.override({zodSchema:u,jsonSchema:d,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const u of[...e.seen.entries()].reverse())r(u[0]);if(e.target!=="openapi-3.0")for(const u of e.seen.entries())Ti(u[1].def??u[1].schema);for(const u of e.deferred)u();if(e.intersections.length){const u=new Map;for(const c of e.seen.values())for(const d of[c.schema,c.def]){const p=d?.allOf;if(!Array.isArray(p))continue;const m=u.get(p);m?m.push(d):u.set(p,[d])}for(const c of e.intersections)for(const d of u.get(c)??[])Xm(d)}}const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(u)}Qe(i,n.defId?n.schema:n.def??n.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&i.id===o&&delete i.id;const s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const u of e.seen.entries()){const c=u[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,be(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:gt(t,"input",e.processors),output:gt(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function ie(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ie(r.element,n);if(r.type==="set")return ie(r.valueType,n);if(r.type==="lazy")return ie(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return ie(r.innerType,n);if(r.type==="intersection")return ie(r.left,n)||ie(r.right,n);if(r.type==="record"||r.type==="map")return ie(r.keyType,n)||ie(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ie(r.in,n)||ie(r.out,n);if(r.type==="object"){for(const i in r.shape)if(ie(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(ie(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(ie(i,n))return!0;return!!(r.rest&&ie(r.rest,n))}return!1}var Qm=(e,t={})=>n=>{const r=Oi({...n,processors:t});return te(e,r),Si(r,e),Ri(r,e)},gt=(e,t,n={})=>r=>{const{libraryOptions:i,target:o}=r??{},s=Oi({...i??{},target:o,io:t,processors:n});return te(e,s),Si(s,e),Ri(s,e)},$e=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Le=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Ni=(e,t)=>{$e(e,"minimum",t),Le(e,"maximum",t)},Pi=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},bi=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Ci=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},Mi=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Ii=(e,t)=>$e(e,"minimum",t.minimum),Di=(e,t)=>Le(e,"maximum",t.maximum),Ji=e=>(t,n)=>{Mi(t,n.format);const[r,i]=e[n.format];$e(t,"minimum",r),Le(t,"maximum",i)},xm={greater_than:(e,t)=>$e(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Le(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Pi(e,t.value),number_format:Ji(Rr),bigint_format:Ji(Ad),min_length:Ii,max_length:Di,length_equals:(e,t)=>Ni(e,t.length),min_size:Ii,max_size:Di,size_equals:(e,t)=>Ni(e,t.size),string_format:(e,t)=>{Mi(e,t.format),t.pattern&&bi(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Ci(e,t.mime)};function pe(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const o of r)xm[o._zod.def.check]?.(t,o._zod.def);const i=e._zod.bag;i.minimum!==void 0&&$e(t,"minimum",i.minimum),i.exclusiveMinimum!==void 0&&$e(t,"exclusiveMinimum",i.exclusiveMinimum),i.maximum!==void 0&&Le(t,"maximum",i.maximum),i.exclusiveMaximum!==void 0&&Le(t,"exclusiveMaximum",i.exclusiveMaximum),i.multipleOf!==void 0&&Pi(t,i.multipleOf),i.format!==void 0&&(t.format??(t.format=i.format),i.format.includes("int")&&(t.isInt=!0)),i.mime&&Ci(t,i.mime);for(const o of i.patterns??[])bi(t,o);return t}var jm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ep=new Map([[Wr,Sf],[an,Tf]]),tp=e=>ep.get(e)??e,np=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:u,patterns:c,contentEncoding:d,laxFormat:p}=pe(e);if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=jm[u]??u,i.format===""&&delete i.format,(u==="time"||p)&&delete i.format),d&&(i.contentEncoding=d),c&&c.size>0){const m=[...c].map(tp);m.length===1?i.pattern=m[0].source:m.length>1&&(i.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},rp=(e,t,n,r)=>{const i=n,{minimum:o,maximum:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:d,isInt:p}=pe(e);i.type=p?"integer":"number";const m=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),h=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";if(m?_?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d:typeof o=="number"&&(i.minimum=o),h?_?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof s=="number"&&(i.maximum=s),u){const A=new Set;for(const v of u)Number.isFinite(v)&&v!==0?A.add(Math.abs(v)):Ie(e,t,i,r,`A multipleOf divisor of ${v} cannot be represented in JSON Schema`);const[y,...g]=A;y!==void 0&&(i.multipleOf=y),g.length&&(i.allOf=[...i.allOf??[],...g.map(v=>({multipleOf:v}))])}},ip=(e,t,n,r)=>{Ie(e,t,n,r,"Symbols cannot be represented in JSON Schema")},op=(e,t,n,r)=>{n.not={}},ap=(e,t,n,r)=>{},sp=(e,t,n,r)=>{const i=e._zod.def,o=Zt(i.entries);if(o.length===0){n.not={};return}o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},up=(e,t,n,r)=>{Ie(e,t,n,r,"Custom types cannot be represented in JSON Schema")},cp=(e,t,n,r)=>{Ie(e,t,n,r,"Transforms cannot be represented in JSON Schema")},dp=(e,t,n,r)=>{const i=n,o=e._zod.def,{minimum:s,maximum:u}=pe(e);typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=te(o.element,t,{...r,path:[...r.path,"items"]})};function mn(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?mn(t.out):t.type==="catch"?mn(t.innerType):e._zod.optin}var fp=(e,t,n,r)=>{const i=n,o=e._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&Ie(e,t,i,r,"Symbol keys cannot be represented in JSON Schema"))return;i.type="object",i.properties={};for(const c in s)be(i.properties,c,te(s[c],t,{...r,path:[...r.path,"properties",c]}));const u=[];for(const c of Object.keys(s)){const d=o.shape[c];(t.io==="input"?mn(d)===void 0:d._zod.optout===void 0)&&u.push(c)}u.length>0&&(i.required=u),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=te(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},lp=(e,t,n,r)=>{const i=e._zod.def,o=i.inclusive===!1,s=i.options.map((u,c)=>te(u,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=s:n.anyOf=s},mp=(e,t,n,r)=>{const i=e._zod.def,o=te(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=te(i.right,t,{...r,path:[...r.path,"allOf",1]}),u=d=>"allOf"in d&&Object.keys(d).length===1,c=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},pp=(e,t,n,r)=>{const i=e._zod.def,o=te(i.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},hp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},pn=Symbol();function Ei(e,t,n,r,i){let o=!1;const s=JSON.stringify(e,(u,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(Ie(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),pn):JSON.parse(s)}var yp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;const s=Ei(i.defaultValue,e,t,n,r);s!==pn&&(n.default=s)},gp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);if(o.ref=i.innerType,t.io!=="input")return;const s=Ei(i.defaultValue,e,t,n,r);s!==pn&&(n._prefault=s)},_p=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{Ie(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Op=(e,t,n,r)=>{const i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?o?i.out:i.in:i.out;te(s,t,r);const u=t.seen.get(e);u.ref=s},Ap=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},Fi=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},$i=new WeakSet([Object.prototype,Error.prototype]);function _t(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var Sp=(e,t)=>{Bd.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);$i.has(n)||($i.add(n),_t(n,"format",r=>i=>Gd(r,i)),_t(n,"flatten",r=>i=>Zd(r,i)),_t(n,"addIssue",r=>i=>{r.issues.push(i),r.message=JSON.stringify(r.issues,Gt,2)}),_t(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Gt,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ue=O("ZodError",Sp,void 0,{Parent:Error}),Tp=xt(ue),vp=jt(ue),wp=en(ue),kp=tn(ue),Rp=Xd(ue),Np=Qd(ue),Pp=xd(ue),bp=jd(ue),Cp=ef(ue),Mp=tf(ue),Ip=nf(ue),Dp=rf(ue);function Jp(){me.localeError||ke(em())}function hn(){me.memoizer||ke({memoizer:Ql()})}var j=O("ZodType",(e,t)=>(Jp(),x.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(se(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Te(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Jh(e,t))},superRefine(e,t){return this.check(Eh(e,t))},overwrite(e){return this.check(Fe(e))},optional(){return qi(this)},exactOptional(){return Sh(this)},nullable(){return Yi(this)},nullish(){return qi(Yi(this))},nonoptional(e){return Nh(this,e)},array(){return mh(this)},or(e){return Ui([this,e])},and(e){return _h(this,e)},transform(e){return Wi(this,Ah(e))},default(e){return wh(this,e)},prefault(e){return Rh(this,e)},catch(e){return bh(this,e)},pipe(e){return Wi(this,e)},readonly(){return Ih(this)},describe(e){const t=this.clone();return Xe.add(t,{description:e}),t},meta(...e){if(e.length===0)return Xe.get(this);const t=this.clone();return Xe.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Mr(this,"~standard",{...Gr(this),jsonSchema:{input:gt(this,"input"),output:gt(this,"output")}})},set"~standard"(e){ve(this,"~standard",e)},parse:function e(t,n){return Tp(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await vp(this,t,n,{callee:e})},safeParse(e,t){return wp(this,e,t)},async safeParseAsync(e,t){return kp(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){ve(this,"spa",e)},validate(e,t){return Yd(this,e,t)},validateAsync(e,t){return Wd(this,e,t)},encode:function e(t,n){return Rp(this,t,n,{callee:e})},decode:function e(t,n){return Np(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Pp(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await bp(this,t,n,{callee:e})},safeEncode(e,t){return Cp(this,e,t)},safeDecode(e,t){return Mp(this,e,t)},async safeEncodeAsync(e,t){return Ip(this,e,t)},async safeDecodeAsync(e,t){return Dp(this,e,t)},toJSONSchema(e){return Qm(this,{})(e)},get description(){return Xe.get(this)?.description},get _def(){return this._zod.def}}),Li=O("_ZodString",(e,t)=>{on.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>np(e,n,r,i)},Ir({format:e=>pe(e).format??null,minLength:e=>pe(e).minimum??null,maxLength:e=>pe(e).maximum??null},{regex(...e){return this.check(Em(...e))},includes(...e){return this.check(Lm(...e))},startsWith(...e){return this.check(zm(...e))},endsWith(...e){return this.check(Hm(...e))},min(...e){return this.check(yt(...e))},max(...e){return this.check(gi(...e))},length(...e){return this.check(_i(...e))},nonempty(...e){return this.check(yt(1,...e))},lowercase(e){return this.check(Fm(e))},uppercase(e){return this.check($m(e))},trim(){return this.check(Um())},normalize(...e){return this.check(Bm(...e))},toLowerCase(){return this.check(Zm())},toUpperCase(){return this.check(Gm())},slugify(){return this.check(qm())}})),Ep=O("ZodString",(e,t)=>{on.init(e,t),Li.init(e,t)},{email(e){return this.check(im(Bp,e))},url(e){return this.check(dm(Zp,e))},jwt(e){return this.check(km(ih,e))},emoji(e){return this.check(fm(Gp,e))},guid(e){return this.check(om(Up,e))},uuid(e){return this.check(am(Ot,e))},uuidv4(e){return this.check(sm(Ot,e))},uuidv6(e){return this.check(um(Ot,e))},uuidv7(e){return this.check(cm(Ot,e))},nanoid(e){return this.check(lm(qp,e))},cuid(e){return this.check(mm(Kp,e))},cuid2(e){return this.check(pm(Yp,e))},ulid(e){return this.check(hm(Vp,e))},base64(e){return this.check(Tm(th,e))},base64url(e){return this.check(vm(nh,e))},xid(e){return this.check(ym(Wp,e))},ksuid(e){return this.check(gm(Xp,e))},ipv4(e){return this.check(_m(Qp,e))},ipv6(e){return this.check(Om(xp,e))},cidrv4(e){return this.check(Am(jp,e))},cidrv6(e){return this.check(Sm(eh,e))},e164(e){return this.check(wm(rh,e))},datetime(e){return this.check(Rm($p,e))},date(e){return this.check(Nm(Lp,e))},time(e){return this.check(Pm(zp,e))},duration(e){return this.check(bm(Hp,e))}});function Fp(e){return rm(Ep,e)}var W=O("ZodStringFormat",(e,t)=>{V.init(e,t),Li.init(e,t)}),$p=O("ZodISODateTime",(e,t)=>{dl.init(e,t),W.init(e,t)}),Lp=O("ZodISODate",(e,t)=>{fl.init(e,t),W.init(e,t)}),zp=O("ZodISOTime",(e,t)=>{ll.init(e,t),W.init(e,t)}),Hp=O("ZodISODuration",(e,t)=>{ml.init(e,t),W.init(e,t)}),Bp=O("ZodEmail",(e,t)=>{Xf.init(e,t),W.init(e,t)}),Up=O("ZodGUID",(e,t)=>{Vf.init(e,t),W.init(e,t)}),Ot=O("ZodUUID",(e,t)=>{Wf.init(e,t),W.init(e,t)}),Zp=O("ZodURL",(e,t)=>{nl.init(e,t),W.init(e,t)}),Gp=O("ZodEmoji",(e,t)=>{rl.init(e,t),W.init(e,t)}),qp=O("ZodNanoID",(e,t)=>{il.init(e,t),W.init(e,t)}),Kp=O("ZodCUID",(e,t)=>{ol.init(e,t),W.init(e,t)}),Yp=O("ZodCUID2",(e,t)=>{al.init(e,t),W.init(e,t)}),Vp=O("ZodULID",(e,t)=>{sl.init(e,t),W.init(e,t)}),Wp=O("ZodXID",(e,t)=>{ul.init(e,t),W.init(e,t)}),Xp=O("ZodKSUID",(e,t)=>{cl.init(e,t),W.init(e,t)}),Qp=O("ZodIPv4",(e,t)=>{pl.init(e,t),W.init(e,t)}),xp=O("ZodIPv6",(e,t)=>{yl.init(e,t),W.init(e,t)}),jp=O("ZodCIDRv4",(e,t)=>{gl.init(e,t),W.init(e,t)}),eh=O("ZodCIDRv6",(e,t)=>{Ol.init(e,t),W.init(e,t)}),th=O("ZodBase64",(e,t)=>{Al.init(e,t),W.init(e,t)}),nh=O("ZodBase64URL",(e,t)=>{Tl.init(e,t),W.init(e,t)}),rh=O("ZodE164",(e,t)=>{vl.init(e,t),W.init(e,t)}),ih=O("ZodJWT",(e,t)=>{kl.init(e,t),W.init(e,t)}),zi=O("ZodNumber",(e,t)=>{Xr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rp(e,n,r,i),e.isFinite=!0},Ir({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=pe(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=pe(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=pe(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>pe(e).format??null},{gt(e,t){return this.check(hi(e,t))},gte(e,t){return this.check(fn(e,t))},min(e,t){return this.check(fn(e,t))},lt(e,t){return this.check(pi(e,t))},lte(e,t){return this.check(dn(e,t))},max(e,t){return this.check(dn(e,t))},int(e){return this.check(Hi(e))},safe(e){return this.check(Hi(e))},positive(e){return this.check(hi(0,e))},nonnegative(e){return this.check(fn(0,e))},negative(e){return this.check(pi(0,e))},nonpositive(e){return this.check(dn(0,e))},multipleOf(e,t){return this.check(yi(e,t))},step(e,t){return this.check(yi(e,t))},finite(){return this}}));function oh(e){return Cm(zi,e)}var ah=O("ZodNumberFormat",(e,t)=>{Rl.init(e,t),zi.init(e,t)});function Hi(e){return Mm(ah,e)}var sh=O("ZodSymbol",(e,t)=>{Nl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ip(e,n,r,i)});function uh(e){return Im(sh,e)}var ch=O("ZodUnknown",(e,t)=>{Pl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ap(e,n,r,i)});function Bi(){return Dm(ch)}var dh=O("ZodNever",(e,t)=>{bl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>op(e,n,r,i)});function fh(e){return Jm(dh,e)}var lh=O("ZodArray",(e,t)=>{hn(),Cl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dp(e,n,r,i),e.element=t.element},{min(e,t){return this.check(yt(e,t))},nonempty(e){return this.check(yt(1,e))},max(e,t){return this.check(gi(e,t))},length(e,t){return this.check(_i(e,t))},unwrap(){return this.element}});function mh(e,t){return Km(lh,e,t)}var ph=O("ZodObject",(e,t)=>{hn(),Dl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fp(e,n,r,i),Jd(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Zi(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(se(this._zod.def,{catchall:e}))},passthrough(){return this.clone(se(this._zod.def,{catchall:Bi()}))},loose(){return this.clone(se(this._zod.def,{catchall:Bi()}))},strict(){return this.clone(se(this._zod.def,{catchall:fh()}))},strip(){return this.clone(se(this._zod.def,{catchall:void 0}))},extend(e){return vd(this,e)},safeExtend(e){return wd(this,e)},merge(e){return kd(this,e)},pick(e){return Sd(this,e)},omit(e){return Td(this,e)},partial(...e){return Pr(Gi,this,e[0])},exactPartial(...e){return Pr(Ki,this,e[0],"exactPartial")},required(...e){return Rd(Vi,this,e[0])}});function hh(e,t){const n={type:"object",shape:e??{},...M(t)};return new ph(n)}var yh=O("ZodUnion",(e,t)=>{Jl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lp(e,n,r,i),e.options=t.options});function Ui(e,t){return new yh({type:"union",options:e,...M(t)})}var gh=O("ZodIntersection",(e,t)=>{El.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mp(e,n,r,i)});function _h(e,t){return new gh({type:"intersection",left:e,right:t})}var yn=O("ZodEnum",(e,t)=>{Fl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>sp(e,r,i,o),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new yn({...t,checks:[],...M(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new yn({...t,checks:[],...M(i),entries:o})}});function Zi(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new yn({type:"enum",entries:n,...M(t)})}var Oh=O("ZodTransform",(e,t)=>{hn(),$l.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cp(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Er(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ye(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Ye(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Ah(e){return new Oh({type:"transform",transform:e})}var Gi=O("ZodOptional",(e,t)=>{ri.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fi(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function qi(e){return new Gi({type:"optional",innerType:e})}var Ki=O("ZodExactOptional",(e,t)=>{Ll.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fi(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Sh(e){return new Ki({type:"optional",innerType:e})}var Th=O("ZodNullable",(e,t)=>{zl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Yi(e){return new Th({type:"nullable",innerType:e})}var vh=O("ZodDefault",(e,t)=>{Hl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wh(e,t){return new vh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var kh=O("ZodPrefault",(e,t)=>{Bl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Rh(e,t){return new kh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var Vi=O("ZodNonOptional",(e,t)=>{Ul.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Nh(e,t){return new Vi({type:"nonoptional",innerType:e,...M(t)})}var Ph=O("ZodCatch",(e,t)=>{Zl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_p(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bh(e,t){return new Ph({type:"catch",innerType:e,catchValue:typeof t=="function"?t:Fd(t)})}var Ch=O("ZodPipe",(e,t)=>{Gl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Op(e,n,r,i),e.in=t.in,e.out=t.out});function Wi(e,t){return new Ch({type:"pipe",in:e,out:t})}var Mh=O("ZodReadonly",(e,t)=>{ql.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ap(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Ih(e){return new Mh({type:"readonly",innerType:e})}var Dh=O("ZodCustom",(e,t)=>{Kl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>up(e,n,r,i)});function Jh(e,t={}){return Ym(Dh,e,t)}function Eh(e,t){return Vm(e,t)}var Fh=Zi(["ASC","DESC"]),nO=hh({sortBy:Ui([Fp(),oh(),uh()]).optional(),sortOrder:Fh.optional()}),$h=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Lh(){return new $h}var rO=Lh(),Xi="http://localhost".replace(/\/+$/,""),zh=e=>typeof Blob<"u"&&e instanceof Blob,ce=class{configuration;middleware;constructor(e=new _n){this.configuration=e,this.middleware=e.middleware}withMiddleware(...e){const t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){const t=e.map(n=>({pre:n}));return this.withMiddleware(...t)}withPostMiddleware(...e){const t=e.map(n=>({post:n}));return this.withMiddleware(...t)}async request(e,t){const{url:n,init:r}=this.createFetchParams(e,t),i=await this.fetchApi(n,r);if(i.status>=200&&i.status<300)return i;throw new gn(i,"Response returned an error code")}createFetchParams(e,t){let n=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||zh(e.body)?e.body:JSON.stringify(e.body),i=Object.assign({},this.configuration.headers,e.headers);Object.keys(i).forEach(s=>i[s]===void 0?delete i[s]:{});const o={method:e.method,body:r,credentials:this.configuration.credentials,..._r({},t,{headers:_r({},i,t?.headers)})};return{url:n,init:o}}fetchApi=async(e,t)=>{let n={url:e,init:t};for(const i of this.middleware)i.pre&&(n=await i.pre({fetch:this.fetchApi,...n})||n);let r=await(this.configuration.fetchApi||fetch)(n.url,n.init);for(const i of this.middleware)i.post&&(r=await i.post({fetch:this.fetchApi,url:n.url,init:n.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,t=new e(this.configuration);return t.middleware=this.middleware.slice(),t}},gn=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},Z=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},Hh={csv:",",ssv:" ",tsv:" ",pipes:"|"},_n=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Xi}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||On}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}};function Bh(e,t){const n=e[t];return n!=null}function On(e,t=""){return Object.keys(e).map(n=>{const r=t+(t.length?`[${n}]`:n),i=e[n];if(i instanceof Array){const o=i.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${o}`}return i instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(i.toISOString())}`:i instanceof Object?On(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function Uh(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var q=class{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}async value(){return this.transformer(await this.raw.json())}},Qi=class{raw;constructor(e){this.raw=e}async value(){}},Zh=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},An=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}};function Gh(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function qh(e){return xi(e,!1)}function xi(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function Kh(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var Yh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function Vh(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function Wh(e){return eo(e,!1)}function eo(e,t){return e==null?e:{code:e.code,error:e.error}}function Xh(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var Qh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function xh(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0||!("error"in e)||e.error===void 0)}function no(e){return ro(e,!1)}function ro(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function io(e){return oo(e,!1)}function oo(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var jh={Coupon:"COUPON"};function ey(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ty(e){return Sn(e,!1)}function Sn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(no)}}function ao(e){return so(e,!1)}function so(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(io)}}var ny={CreditCard:"CREDIT_CARD"};function ry(e){return!(!("name"in e)||e.name===void 0)}function iy(e){return Tn(e,!1)}function Tn(e,t){return e==null?e:{name:e.name}}function uo(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{name:e.name}}var oy={DepositAccount:"DEPOSIT_ACCOUNT"};function ay(e){return!(!("name"in e)||e.name===void 0)}function sy(e){return vn(e,!1)}function vn(e,t){return e==null?e:{name:e.name}}function fo(e){return lo(e,!1)}function lo(e,t=!1){return e==null?e:{name:e.name}}var uy={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function cy(e){return!(!("status"in e)||e.status===void 0)}function mo(e){return po(e,!1)}function po(e,t){return e==null?e:{status:e.status}}function ho(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{status:e.status}}var dy={PayLater:"PAY_LATER"};function fy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ly(e){return wn(e,!1)}function wn(e,t){return e==null?e:{name:e.name,payload:mo(e.payload)}}function go(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{name:e.name,payload:ho(e.payload)}}function Oo(e){return Ao(e,!1)}function Ao(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Sn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Tn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...vn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...wn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function So(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ao(e);case"CREDIT_CARD":return uo(e);case"DEPOSIT_ACCOUNT":return fo(e);case"PAY_LATER":return go(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function my(e,t=!1){return So(e)}function py(e){return!0}function kn(e){return To(e,!1)}function To(e,t){return e==null?e:{airConditioning:e.air_conditioning==null?void 0:e.air_conditioning,airportTransportation:e.airport_transportation==null?void 0:e.airport_transportation,businessCenter:e.business_center==null?void 0:e.business_center,carRentDesk:e.car_rent_desk==null?void 0:e.car_rent_desk,childrenAllowed:e.children_allowed==null?void 0:e.children_allowed,clothingIron:e.clothing_iron==null?void 0:e.clothing_iron,coffeeTeaMaker:e.coffee_tea_maker==null?void 0:e.coffee_tea_maker,combination:e.combination==null?void 0:e.combination,continentalBreakfast:e.continental_breakfast==null?void 0:e.continental_breakfast,dataPorts:e.data_ports==null?void 0:e.data_ports,dryCleaning:e.dry_cleaning==null?void 0:e.dry_cleaning,electronicRoomKeys:e.electronic_room_keys==null?void 0:e.electronic_room_keys,exteriorRoomEntrance:e.exterior_room_entrance==null?void 0:e.exterior_room_entrance,familyRooms:e.family_rooms==null?void 0:e.family_rooms,fitnessFacility:e.fitness_facility==null?void 0:e.fitness_facility,gameRoom:e.game_room==null?void 0:e.game_room,golfCourse:e.golf_course==null?void 0:e.golf_course,hairDryer:e.hair_dryer==null?void 0:e.hair_dryer,handicapAccessible:e.handicap_accessible==null?void 0:e.handicap_accessible,inHouseBar:e.in_house_bar==null?void 0:e.in_house_bar,inHouseDining:e.in_house_dining==null?void 0:e.in_house_dining,inRoomMovies:e.in_room_movies==null?void 0:e.in_room_movies,indoorPool:e.indoor_pool==null?void 0:e.indoor_pool,interiorRoomEntrance:e.interior_room_entrance==null?void 0:e.interior_room_entrance,kitchen:e.kitchen==null?void 0:e.kitchen,map:e.map==null?void 0:e.map,meetingRooms:e.meeting_rooms==null?void 0:e.meeting_rooms,miniBarInRoom:e.mini_bar_in_room==null?void 0:e.mini_bar_in_room,nonSmokingRooms:e.non_smoking_rooms==null?void 0:e.non_smoking_rooms,outdoorPool:e.outdoor_pool==null?void 0:e.outdoor_pool,parkingGarage:e.parking_garage==null?void 0:e.parking_garage,petsAllowed:e.pets_allowed==null?void 0:e.pets_allowed,restrictedAccess:e.restricted_access==null?void 0:e.restricted_access,roomService:e.room_service==null?void 0:e.room_service,safe:e.safe==null?void 0:e.safe,sauna:e.sauna==null?void 0:e.sauna,tVInRoom:e.t_v_in_room==null?void 0:e.t_v_in_room,tennisCourt:e.tennis_court==null?void 0:e.tennis_court,twentyFourHourSecurity:e.twenty_four_hour_security==null?void 0:e.twenty_four_hour_security,valetParking:e.valet_parking==null?void 0:e.valet_parking,videoCheckOut:e.video_check_out==null?void 0:e.video_check_out,voiceMail:e.voice_mail==null?void 0:e.voice_mail,wakeUpService:e.wake_up_service==null?void 0:e.wake_up_service,whirpool:e.whirpool==null?void 0:e.whirpool}}function Rn(e){return vo(e,!1)}function vo(e,t=!1){return e==null?e:{air_conditioning:e.airConditioning,airport_transportation:e.airportTransportation,business_center:e.businessCenter,car_rent_desk:e.carRentDesk,children_allowed:e.childrenAllowed,clothing_iron:e.clothingIron,coffee_tea_maker:e.coffeeTeaMaker,combination:e.combination,continental_breakfast:e.continentalBreakfast,data_ports:e.dataPorts,dry_cleaning:e.dryCleaning,electronic_room_keys:e.electronicRoomKeys,exterior_room_entrance:e.exteriorRoomEntrance,family_rooms:e.familyRooms,fitness_facility:e.fitnessFacility,game_room:e.gameRoom,golf_course:e.golfCourse,hair_dryer:e.hairDryer,handicap_accessible:e.handicapAccessible,in_house_bar:e.inHouseBar,in_house_dining:e.inHouseDining,in_room_movies:e.inRoomMovies,indoor_pool:e.indoorPool,interior_room_entrance:e.interiorRoomEntrance,kitchen:e.kitchen,map:e.map,meeting_rooms:e.meetingRooms,mini_bar_in_room:e.miniBarInRoom,non_smoking_rooms:e.nonSmokingRooms,outdoor_pool:e.outdoorPool,parking_garage:e.parkingGarage,pets_allowed:e.petsAllowed,restricted_access:e.restrictedAccess,room_service:e.roomService,safe:e.safe,sauna:e.sauna,t_v_in_room:e.tVInRoom,tennis_court:e.tennisCourt,twenty_four_hour_security:e.twentyFourHourSecurity,valet_parking:e.valetParking,video_check_out:e.videoCheckOut,voice_mail:e.voiceMail,wake_up_service:e.wakeUpService,whirpool:e.whirpool}}function hy(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function yy(e){return wo(e,!1)}function wo(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function gy(e){return ko(e,!1)}function ko(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function _y(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function At(e){return Ro(e,!1)}function Ro(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function St(e){return No(e,!1)}function No(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var Tt={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Oy(e){for(const t in Tt)if(Object.prototype.hasOwnProperty.call(Tt,t)&&Tt[t]===e)return!0;return!1}function xe(e){return Po(e,!1)}function Po(e,t){return e}function Ay(e){return e}function Sy(e,t){return e}function Ty(e){return!(!("isHeroImage"in e)||e.isHeroImage===void 0||!("l"in e)||e.l===void 0||!("m"in e)||e.m===void 0||!("s"in e)||e.s===void 0||!("xl"in e)||e.xl===void 0||!("xs"in e)||e.xs===void 0)}function ze(e){return bo(e,!1)}function bo(e,t){return e==null?e:{caption:e.caption==null?void 0:e.caption,isHeroImage:e.is_hero_image,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function je(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{caption:e.caption,is_hero_image:e.isHeroImage,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function vy(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Mo(e){return Io(e,!1)}function Io(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(ze),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function Do(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(je),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}var vt={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function wy(e){for(const t in vt)if(Object.prototype.hasOwnProperty.call(vt,t)&&vt[t]===e)return!0;return!1}function Eo(e){return Fo(e,!1)}function Fo(e,t){return e}function ky(e){return e}function Ry(e,t){return e}var Ny={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},Py={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function by(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function Nn(e){return $o(e,!1)}function $o(e,t){return e==null?e:{amount:e.amount==null?void 0:e.amount,code:e.code==null?void 0:e.code,description:e.description==null?void 0:e.description,percentage:e.percentage==null?void 0:e.percentage,taxFrequency:e.tax_frequency,taxMode:e.tax_mode}}function Pn(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,description:e.description,percentage:e.percentage,tax_frequency:e.taxFrequency,tax_mode:e.taxMode}}var wt={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"};function Cy(e){for(const t in wt)if(Object.prototype.hasOwnProperty.call(wt,t)&&wt[t]===e)return!0;return!1}function he(e){return zo(e,!1)}function zo(e,t){return e}function My(e){return e}function Iy(e,t){return e}function Dy(e){return!(!("name"in e)||e.name===void 0)}function kt(e){return Ho(e,!1)}function Ho(e,t){return e==null?e:{bg:e.bg==null?void 0:e.bg,color:e.color==null?void 0:e.color,description:e.description==null?void 0:e.description,faIcon:e.fa_icon==null?void 0:e.fa_icon,name:e.name}}function Rt(e){return Bo(e,!1)}function Bo(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var Jy={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},Ey={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},Fy={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function $y(e){return!(!("breakfastOption"in e)||e.breakfastOption===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRooms"in e)||e.hotelRooms===void 0||!("price"in e)||e.price===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("stayTaxesInfo"in e)||e.stayTaxesInfo===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0)}function He(e){return Uo(e,!1)}function Uo(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:Eo(e.breakfast_option),breakfastPricePerGuestPerNight:e.breakfast_price_per_guest_per_night==null?void 0:e.breakfast_price_per_guest_per_night,breakfastUnitPrice:e.breakfast_unit_price==null?void 0:e.breakfast_unit_price,cancellationPolicies:e.cancellation_policies.map(At),count:e.count==null?void 0:e.count,currency:he(e.currency),flexOptionEligible:e.flex_option_eligible==null?void 0:e.flex_option_eligible,hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(Mo),id:e.id==null?void 0:e.id,packageType:e.package_type==null?void 0:e.package_type,price:e.price,sourceMarket:xe(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:e.tags==null?void 0:e.tags.map(kt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Nn),type:e.type==null?void 0:e.type}}function Be(e){return Zo(e,!1)}function Zo(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,breakfast_option:e.breakfastOption,breakfast_price_per_guest_per_night:e.breakfastPricePerGuestPerNight,breakfast_unit_price:e.breakfastUnitPrice,cancellation_policies:e.cancellationPolicies.map(St),count:e.count,currency:e.currency,flex_option_eligible:e.flexOptionEligible,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(Do),id:e.id,package_type:e.packageType,price:e.price,source_market:e.sourceMarket,stay_taxes_info:e.stayTaxesInfo,tags:e.tags==null?void 0:e.tags.map(Rt),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Pn),type:e.type}}var Nt={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function Ly(e){for(const t in Nt)if(Object.prototype.hasOwnProperty.call(Nt,t)&&Nt[t]===e)return!0;return!1}function Pt(e){return Go(e,!1)}function Go(e,t){return e}function zy(e){return e}function Hy(e,t){return e}var bt={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function By(e){for(const t in bt)if(Object.prototype.hasOwnProperty.call(bt,t)&&bt[t]===e)return!0;return!1}function Ct(e){return qo(e,!1)}function qo(e,t){return e}function Uy(e){return e}function Zy(e,t){return e}function Gy(e){return!(!("address"in e)||e.address===void 0||!("city"in e)||e.city===void 0||!("country"in e)||e.country===void 0||!("name"in e)||e.name===void 0||!("zipCode"in e)||e.zipCode===void 0)}function Ko(e){return Yo(e,!1)}function Yo(e,t){return e==null?e:{address:e.address,city:e.city,country:Ct(e.country),name:e.name,state:e.state==null?void 0:e.state,vatNumber:e.vat_number==null?void 0:e.vat_number,zipCode:e.zip_code}}function Vo(e){return Wo(e,!1)}function Wo(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,name:e.name,state:e.state,vat_number:e.vatNumber,zip_code:e.zipCode}}var qy={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function Ky(e){return!(!("email"in e)||e.email===void 0||!("firstName"in e)||e.firstName===void 0||!("lastName"in e)||e.lastName===void 0||!("nationality"in e)||e.nationality===void 0||!("phone"in e)||e.phone===void 0)}function bn(e){return Xo(e,!1)}function Xo(e,t){return e==null?e:{address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,country:e.country==null?void 0:Ct(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:Pt(e.lang),lastName:e.last_name,nationality:Ct(e.nationality),organization:e.organization==null?void 0:Ko(e.organization),phone:e.phone,remarks:e.remarks==null?void 0:e.remarks,salutation:e.salutation==null?void 0:e.salutation,state:e.state==null?void 0:e.state,zipCode:e.zip_code==null?void 0:e.zip_code}}function Cn(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,email:e.email,first_name:e.firstName,lang:e.lang,last_name:e.lastName,nationality:e.nationality,organization:Vo(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function Yy(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function xo(e){return jo(e,!1)}function jo(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function ea(e){return ta(e,!1)}function ta(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var Vy={Coupon:"COUPON"};function Wy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Xy(e){return Mn(e,!1)}function Mn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(xo)}}function na(e){return ra(e,!1)}function ra(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(ea)}}function Qy(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function ia(e){return oa(e,!1)}function oa(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function aa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var xy={CreditCard:"CREDIT_CARD"};function jy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function eg(e){return In(e,!1)}function In(e,t){return e==null?e:{name:e.name,payload:ia(e.payload)}}function ua(e){return ca(e,!1)}function ca(e,t=!1){return e==null?e:{name:e.name,payload:aa(e.payload)}}function tg(e){return!(!("amount"in e)||e.amount===void 0)}function da(e){return fa(e,!1)}function fa(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token==null?void 0:e.token}}function la(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var ng={DepositAccount:"DEPOSIT_ACCOUNT"};function rg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ig(e){return Dn(e,!1)}function Dn(e,t){return e==null?e:{name:e.name,payload:da(e.payload)}}function pa(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{name:e.name,payload:la(e.payload)}}var og={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function ag(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function ya(e){return ga(e,!1)}function ga(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,status:e.status,token:e.token==null?void 0:e.token}}function _a(e){return Oa(e,!1)}function Oa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var sg={PayLater:"PAY_LATER"};function ug(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function cg(e){return Jn(e,!1)}function Jn(e,t){return e==null?e:{name:e.name,payload:ya(e.payload)}}function Aa(e){return Sa(e,!1)}function Sa(e,t=!1){return e==null?e:{name:e.name,payload:_a(e.payload)}}function Ta(e){return va(e,!1)}function va(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Mn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...In(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Dn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Jn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function En(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return na(e);case"CREDIT_CARD":return ua(e);case"DEPOSIT_ACCOUNT":return pa(e);case"PAY_LATER":return Aa(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function dg(e,t=!1){return En(e)}var fg={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function lg(e){return!(!("status"in e)||e.status===void 0)}function wa(e){return ka(e,!1)}function ka(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,reference:e.reference==null?void 0:e.reference,status:e.status}}function Ra(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var mg={CreditNote:"credit_note",Invoice:"invoice"};function pg(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function Pa(e){return ba(e,!1)}function ba(e,t){return e==null?e:{type:e.type,url:e.url}}function Ca(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var hg={Insurance:"insurance"};function yg(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function Fn(e){return Ia(e,!1)}function Ia(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function $n(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function gg(e){return!0}function Mt(e){return Ja(e,!1)}function Ja(e,t){return e==null?e:{latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function It(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function _g(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Fa(e){return $a(e,!1)}function $a(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(ze),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function La(e){return za(e,!1)}function za(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(je),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}function Og(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function Dt(e){return Ha(e,!1)}function Ha(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function Ba(e){return Ua(e,!1)}function Ua(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function Ag(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function Ln(e){return Za(e,!1)}function Za(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:Fa(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(Dt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function Ga(e){return qa(e,!1)}function qa(e,t=!1){return e==null?e:{hotel_room:La(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(Ba),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var Sg={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},Tg={BkgCx:"bkg-cx",BkgCf:"bkg-cf",BkgCreated:"bkg-created",BkgAf:"bkg-af",BkgIp:"bkg-ip",BkgPc:"bkg-pc",BkgPp:"bkg-pp",BkgQr:"bkg-qr"};function vg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("contactPerson"in e)||e.contactPerson===void 0||!("createdAt"in e)||e.createdAt===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("lastStatusUpdatedAt"in e)||e.lastStatusUpdatedAt===void 0||!("reference"in e)||e.reference===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("status"in e)||e.status===void 0||!("taxAmount"in e)||e.taxAmount===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("terms"in e)||e.terms===void 0)}function le(e){return Ka(e,!1)}function Ka(e,t){return e==null?e:{additionalCheckInInstruction:e.additional_check_in_instruction==null?void 0:e.additional_check_in_instruction,additionalPolicies:e.additional_policies==null?void 0:e.additional_policies,addons:e.addons==null?void 0:e.addons.map(Fn),adultCount:e.adult_count,bookingGroupId:e.booking_group_id==null?void 0:e.booking_group_id,canceledAt:e.canceled_at==null?void 0:e.canceled_at,cancellationPolicies:e.cancellation_policies.map(At),cancellationPolicyRemarks:e.cancellation_policy_remarks==null?void 0:e.cancellation_policy_remarks,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,confirmedAt:e.confirmed_at==null?void 0:e.confirmed_at,contactPerson:bn(e.contact_person),createdAt:e.created_at,currency:he(e.currency),customerReference:e.customer_reference==null?void 0:e.customer_reference,event:e.event==null?void 0:Mt(e.event),failedAt:e.failed_at==null?void 0:e.failed_at,hotelConfirmationId:e.hotel_confirmation_id==null?void 0:e.hotel_confirmation_id,hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer),hotelRoomingLists:e.hotel_rooming_lists==null?void 0:e.hotel_rooming_lists.map(Ln),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:wa(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Pa),lastStatusUpdatedAt:e.last_status_updated_at,metadata:e.metadata==null?void 0:e.metadata,payLater:e.pay_later==null?void 0:e.pay_later,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Ta),penaltyPercentage:e.penalty_percentage==null?void 0:e.penalty_percentage,reference:e.reference,sourceMarket:xe(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Nn),terms:e.terms,token:e.token==null?void 0:e.token}}function Ya(e){return Va(e,!1)}function Va(e,t=!1){return e==null?e:{additional_check_in_instruction:e.additionalCheckInInstruction,additional_policies:e.additionalPolicies,addons:e.addons==null?void 0:e.addons.map($n),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(St),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:Cn(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:It(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(Ga),id:e.id,insurance:Ra(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Ca),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(En),penalty_percentage:e.penaltyPercentage,reference:e.reference,source_market:e.sourceMarket,status:e.status,tax_amount:e.taxAmount,tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Pn),terms:e.terms,token:e.token}}var wg={Insurance:"insurance"};function kg(e){return!(!("type"in e)||e.type===void 0)}function Wa(e){return Xa(e,!1)}function Xa(e,t){return e==null?e:{type:e.type}}function Qa(e){return xa(e,!1)}function xa(e,t=!1){return e==null?e:{type:e.type}}function Rg(e){return!(!("fullname"in e)||e.fullname===void 0)}function ja(e){return es(e,!1)}function es(e,t){return e==null?e:{fullname:e.fullname}}function ts(e){return ns(e,!1)}function ns(e,t=!1){return e==null?e:{fullname:e.fullname}}function Ng(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function rs(e){return is(e,!1)}function is(e,t){return e==null?e:{guests:e.guests.map(ja),hotelRoomId:e.hotel_room_id}}function os(e){return as(e,!1)}function as(e,t=!1){return e==null?e:{guests:e.guests.map(ts),hotel_room_id:e.hotelRoomId}}function Pg(e){return!0}function Ue(e){return ss(e,!1)}function ss(e,t){return e==null?e:{dateEnd:e.date_end==null?void 0:e.date_end,dateStart:e.date_start==null?void 0:e.date_start,id:e.id==null?void 0:e.id,imageUrl:e.image_url==null?void 0:e.image_url,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function Ze(e){return us(e,!1)}function us(e,t=!1){return e==null?e:{date_end:e.dateEnd,date_start:e.dateStart,id:e.id,image_url:e.imageUrl,name:e.name,slug:e.slug}}function bg(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function cs(e){return ds(e,!1)}function ds(e,t){return e==null?e:{couponIds:e.coupon_ids}}function fs(e){return ls(e,!1)}function ls(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Cg={Coupon:"COUPON"};function Mg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Ig(e){return zn(e,!1)}function zn(e,t){return e==null?e:{name:e.name,payload:cs(e.payload)}}function ms(e){return ps(e,!1)}function ps(e,t=!1){return e==null?e:{name:e.name,payload:fs(e.payload)}}var Dg={CreditCard:"CREDIT_CARD"};function Jg(e){return!(!("name"in e)||e.name===void 0)}function Eg(e){return Hn(e,!1)}function Hn(e,t){return e==null?e:{name:e.name}}function hs(e){return ys(e,!1)}function ys(e,t=!1){return e==null?e:{name:e.name}}var Fg={DepositAccount:"DEPOSIT_ACCOUNT"};function $g(e){return!(!("name"in e)||e.name===void 0)}function Lg(e){return Bn(e,!1)}function Bn(e,t){return e==null?e:{name:e.name}}function gs(e){return _s(e,!1)}function _s(e,t=!1){return e==null?e:{name:e.name}}function Un(e){return Os(e,!1)}function Os(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...zn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Hn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Bn(e,!0),name:"DEPOSIT_ACCOUNT"};default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}function Jt(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ms(e);case"CREDIT_CARD":return hs(e);case"DEPOSIT_ACCOUNT":return gs(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function zg(e,t=!1){return Jt(e)}function Hg(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function Bg(e){return As(e,!1)}function As(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Wa),bookingPolicyId:e.booking_policy_id,contactPerson:bn(e.contact_person),eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(rs),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Un),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function Ss(e){return Ts(e,!1)}function Ts(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Qa),booking_policy_id:e.bookingPolicyId,contact_person:Cn(e.contactPerson),event_metadata:Ze(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(os),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(Jt),tracking_id:e.trackingId}}function Ug(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("expiresAt"in e)||e.expiresAt===void 0||!("hasRoomingLists"in e)||e.hasRoomingLists===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("id"in e)||e.id===void 0||!("isCancellationPoliciesUpdated"in e)||e.isCancellationPoliciesUpdated===void 0||!("isPriceIncreased"in e)||e.isPriceIncreased===void 0)}function Zn(e){return vs(e,!1)}function vs(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Fn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(At),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),expiresAt:e.expires_at==null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer),id:e.id,isCancellationPoliciesUpdated:e.is_cancellation_policies_updated,isPriceIncreased:e.is_price_increased}}function Zg(e){return ws(e,!1)}function ws(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map($n),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(St),check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,expires_at:e.expiresAt==null?e.expiresAt:e.expiresAt.toISOString(),has_rooming_lists:e.hasRoomingLists,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function Gg(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function qg(e){return ks(e,!1)}function ks(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,hotelRoomOfferId:e.hotel_room_offer_id,lang:e.lang==null?void 0:Pt(e.lang)}}function Rs(e){return Ns(e,!1)}function Ns(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,hotel_room_offer_id:e.hotelRoomOfferId,lang:e.lang}}function Kg(e){return!0}function Ps(e){return bs(e,!1)}function bs(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count}}function Cs(e){return Ms(e,!1)}function Ms(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Yg(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Is(e){return Ds(e,!1)}function Ds(e,t){return e==null?e:{data:e.data.map(le),meta:Ps(e.meta)}}function Vg(e){return Js(e,!1)}function Js(e,t=!1){return e==null?e:{data:e.data.map(Ya),meta:Cs(e.meta)}}var Wg={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"};function Xg(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function Qg(e){return Es(e,!1)}function Es(e,t){return e==null?e:{documentationUrl:e.documentation_url==null?void 0:e.documentation_url,error:e.error==null?void 0:e.error,message:e.message==null?void 0:e.message,statusCode:e.statusCode,type:e.type==null?void 0:e.type}}function xg(e){return Fs(e,!1)}function Fs(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function jg(e){return!(!("rating"in e)||e.rating===void 0)}function Gn(e){return $s(e,!1)}function $s(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function qn(e){return Ls(e,!1)}function Ls(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function e_(e){return!0}function Kn(e){return zs(e,!1)}function zs(e,t){return e==null?e:{count:e.count==null?void 0:e.count,highres:e.highres==null?void 0:e.highres,lowres:e.lowres==null?void 0:e.lowres,prefix:e.prefix==null?void 0:e.prefix,suffix:e.suffix==null?void 0:e.suffix,thumb:e.thumb==null?void 0:e.thumb}}function Yn(e){return Hs(e,!1)}function Hs(e,t=!1){return e==null?e:{count:e.count,highres:e.highres,lowres:e.lowres,prefix:e.prefix,suffix:e.suffix,thumb:e.thumb}}function t_(e){return!0}function Bs(e){return Us(e,!1)}function Us(e,t){return e==null?e:{driving:e.driving==null?void 0:e.driving,transit:e.transit==null?void 0:e.transit,walking:e.walking==null?void 0:e.walking}}function Zs(e){return Gs(e,!1)}function Gs(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function n_(e){return!(!("name"in e)||e.name===void 0)}function Vn(e){return qs(e,!1)}function qs(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:Bs(e.travel_times)}}function Wn(e){return Ks(e,!1)}function Ks(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:Zs(e.travelTimes)}}function r_(e){return!(!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0)}function Ys(e){return Vs(e,!1)}function Vs(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:kn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:he(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images==null?void 0:e.hotel_images.map(ze),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Gn),id:e.id,images:e.images==null?void 0:Kn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(kt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Vn),website:e.website==null?void 0:e.website}}function i_(e){return Ws(e,!1)}function Ws(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Rn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages==null?void 0:e.hotelImages.map(je),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(qn),id:e.id,images:Yn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(Rt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website}}function o_(e){return!(!("hotelImages"in e)||e.hotelImages===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function Xs(e){return Qs(e,!1)}function Qs(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:kn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:he(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images.map(ze),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Gn),id:e.id,images:e.images==null?void 0:Kn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(kt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Vn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(He)}}function xs(e){return js(e,!1)}function js(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Rn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages.map(je),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(qn),id:e.id,images:Yn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(Rt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Be)}}function a_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("roomCount"in e)||e.roomCount===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function Xn(e){return eu(e,!1)}function eu(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,createdAt:e.created_at,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:xe(e.source_market)}}function s_(e){return tu(e,!1)}function tu(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,created_at:e.createdAt,event_metadata:Ze(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function u_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("roomCount"in e)||e.roomCount===void 0)}function c_(e){return nu(e,!1)}function nu(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function ru(e){return iu(e,!1)}function iu(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function d_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelOffers"in e)||e.hotelOffers===void 0)}function ou(e){return au(e,!1)}function au(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelOffers:e.hotel_offers.map(Xs),priceHistogram:e.price_histogram==null?void 0:e.price_histogram,priceMax:e.price_max==null?void 0:e.price_max,priceMin:e.price_min==null?void 0:e.price_min}}function su(e){return uu(e,!1)}function uu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_offers:e.hotelOffers.map(xs),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var Et={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function f_(e){for(const t in Et)if(Object.prototype.hasOwnProperty.call(Et,t)&&Et[t]===e)return!0;return!1}function cu(e){return du(e,!1)}function du(e,t){return e}function l_(e){return e}function m_(e,t){return e}function p_(e){return!(!("status"in e)||e.status===void 0)}function Qn(e){return fu(e,!1)}function fu(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count,status:cu(e.status)}}function xn(e){return lu(e,!1)}function lu(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function h_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function mu(e){return pu(e,!1)}function pu(e,t){return e==null?e:{data:ou(e.data),event:e.event==null?void 0:Mt(e.event),meta:Qn(e.meta)}}function y_(e){return hu(e,!1)}function hu(e,t=!1){return e==null?e:{data:su(e.data),event:It(e.event),meta:xn(e.meta)}}function g_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0)}function yu(e){return gu(e,!1)}function gu(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer)}}function __(e){return _u(e,!1)}function _u(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer)}}function O_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function jn(e){return Ou(e,!1)}function Ou(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:xe(e.source_market)}}function A_(e){return Au(e,!1)}function Au(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function S_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0)}function T_(e){return Su(e,!1)}function Su(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function Tu(e){return vu(e,!1)}function vu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function v_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0||!("hotelTimezone"in e)||e.hotelTimezone===void 0)}function wu(e){return ku(e,!1)}function ku(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(He),hotelTimezone:e.hotel_timezone}}function Ru(e){return Nu(e,!1)}function Nu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offers:e.hotelRoomOffers.map(Be),hotel_timezone:e.hotelTimezone}}function w_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Pu(e){return bu(e,!1)}function bu(e,t){return e==null?e:{data:wu(e.data),event:e.event==null?void 0:Mt(e.event),meta:Qn(e.meta)}}function k_(e){return Cu(e,!1)}function Cu(e,t=!1){return e==null?e:{data:Ru(e.data),event:It(e.event),meta:xn(e.meta)}}function R_(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Mu(e){return Iu(e,!1)}function Iu(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,count:e.count,hotelRoomOfferId:e.hotel_room_offer_id}}function Du(e){return Ju(e,!1)}function Ju(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function N_(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function P_(e){return Eu(e,!1)}function Eu(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,currency:he(e.currency),hotelRoomOffers:e.hotel_room_offers.map(Mu),lang:e.lang==null?void 0:Pt(e.lang)}}function Fu(e){return $u(e,!1)}function $u(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(Du),lang:e.lang}}function b_(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function C_(e){return Lu(e,!1)}function Lu(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function zu(e){return Hu(e,!1)}function Hu(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function M_(e){return!(!("fullname"in e)||e.fullname===void 0)}function I_(e){return Bu(e,!1)}function Bu(e,t){return e==null?e:{fullname:e.fullname}}function Uu(e){return Zu(e,!1)}function Zu(e,t=!1){return e==null?e:{fullname:e.fullname}}function D_(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function J_(e){return Gu(e,!1)}function Gu(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(Un)}}function qu(e){return Ku(e,!1)}function Ku(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(Jt)}}var E_={AddOrRemoveNights:"add_or_remove_nights",AddOrRemovePerson:"add_or_remove_person",ChangeDates:"change_dates",ChangeGuestName:"change_guest_name",EarlyCheckIn:"early_check_in",EarlyCheckInLateCheckOut:"early_check_in_late_check_out",LateCheckOut:"late_check_out",Other:"other",SpecialRequest:"special_request"};function F_(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function $_(e){return Yu(e,!1)}function Yu(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Vu(e){return Wu(e,!1)}function Wu(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var Xu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Zn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const n={};e.couponCodes&&(n.coupon_codes=e.couponCodes);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>o.map(Oo))}async paymentMethods(e,t){return await(await this.paymentMethodsRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:F(n,D.Snake),body:F(Rs(e.bookingPoliciesCreateApi),D.Snake)},t);return new q(i,o=>Zn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Qu=class extends ce{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const n=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:F({},D.Snake)},t);return new q(n,r=>le(r))}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async listRaw(e,t){const n={};e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(n.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(n.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(n.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(n.filter_by_status=e.filterByStatus),e.limit!==void 0&&(n.limit=e.limit),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Is(o))}async list(e={},t){return await(await this.listRaw(e,t)).value()}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new Z("customerName","Required parameter requestParameters.customerName was null or undefined when calling getV1BookingsTokenCertificate.");const n={};e.customerName!==void 0&&(n.customer_name=e.customerName),e.locale!==void 0&&(n.locale=e.locale);const r=await this.request({path:"/v1/bookings/{token}/certificate".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F(n,D.Snake)},t);return new Qi(r)}async certificate(e,t){await this.certificateRaw(e,t)}async retrievePublicRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const n=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F({},D.Snake)},t);return new q(n,r=>le(r))}async retrievePublic(e,t){return await(await this.retrievePublicRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:F(n,D.Snake),body:F(Ss(e.bookingCreateApi),D.Snake)},t);return new q(i,o=>le(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new Z("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async couponCharge(e,t){return await(await this.couponChargeRaw(e,t)).value()}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async paylater(e,t){return await(await this.paylaterRaw(e,t)).value()}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async confirmpaylater(e,t){return await(await this.confirmpaylaterRaw(e,t)).value()}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async confirm(e,t){return await(await this.confirmRaw(e,t)).value()}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1BookingsTokenRequest.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/bookings/{token}/request".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:F(n,D.Snake),body:F(Vu(e.requestPayload),D.Snake)},t);return new An(i)}async submitRequest(e,t){return await(await this.submitRequestRaw(e,t)).value()}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:F(n,D.Snake),body:F(qu(e.paymentMethodUpdatePayloadApi),D.Snake)},t);return new q(i,o=>le(o))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},L_={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},z_={Asc:"asc",Desc:"desc"},xu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>o.map(ze))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},ju=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Xn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:F(n,D.Snake),body:F(ru(e.hotelOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>Xn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},ec=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new Z("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(n.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(n.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(n.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(n.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(n.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(n.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(n.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(n.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>mu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:ur.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?rt(r,i,t):rt(r,i)}},H_={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},B_={Asc:"asc",Desc:"desc"},tc=class extends ce{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const n=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:F({},D.Snake)},t);return new An(n)}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:F(n,D.Snake),body:F(Uu(e.hotelRoomingListGuestsUpdateApi),D.Snake)},t);return new q(i,o=>Dt(o))}async update(e,t){return await(await this.updateRaw(e,t)).value()}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:F(n,D.Snake),body:F(zu(e.hotelRoomingListGuestsCreateApi),D.Snake)},t);return new q(i,o=>Dt(o))}async create(e,t){return await(await this.createRaw(e,t)).value()}},nc=class extends ce{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F(n,D.Snake)},t);return new q(r,i=>i.map(Ln))}async list(e,t){return await(await this.listRaw(e,t)).value()}},rc=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>F(o,D.Camel))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},ic=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>jn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:F(n,D.Snake),body:F(Tu(e.hotelRoomOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>jn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},oc=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new Z("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(n.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Pu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:ur.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?rt(r,i,t):rt(r,i)}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:F(n,D.Snake),body:F(Fu(e.hotelRoomOffersCreateApi),D.Snake)},t);return new q(i,o=>yu(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},ac=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const n={};e.event!==void 0&&(n.event=e.event),e.eventId!==void 0&&(n.event_id=e.eventId),e.eventSlug!==void 0&&(n.event_slug=e.eventSlug),e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Ys(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},sc=class extends gn{documentationUrl;status;title;type;constructor(e){super(e.response,e.body?.message??`Request failed with status ${e.status}`),this.status=e.status,this.type=e.body?.type,this.title=e.body?.title,this.documentationUrl=e.body?.documentationUrl}},U_=class{async post(e){const{response:t}=e;if(t.ok)return;let n;try{n=await t.clone().json()}catch{n=void 0}throw new sc({body:n,response:t,status:t.status})}},uc=e=>({bookingPolicies:new Xu(e),bookings:new Qu(e),hotelImages:new xu(e),hotelOfferRequests:new ju(e),hotelOffers:new ec(e),hotelRoomingListGuests:new tc(e),hotelRoomingLists:new nc(e),hotelRoomOfferImages:new rc(e),hotelRoomOfferRequests:new ic(e),hotelRoomOffers:new oc(e),hotels:new ac(e)});function Z_(e){switch(e){case Je.CiCd:return"AUTH_TOKEN_CICD";case Je.Local:return"AUTH_TOKEN_LOCAL";case Je.Production:return"AUTH_TOKEN";case Je.Sandbox:return"AUTH_TOKEN_SANDBOX";case Je.Staging:return"AUTH_TOKEN_STAGING";case void 0:default:return"AUTH_TOKEN"}}function cc(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(Z_(e))))}var G_=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",cc(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},q_=class{config;constructor(e){this.config=e}async pre(e){return cc(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},K_=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(ar).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(ar))}`);let t={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(t={...t,...this.config.optionalHeaders});const n=this.config.apiEnvironment;let r=this.config.apiBaseUrl??pc[n];!this.config.apiBaseUrl&&n===Je.Local&&(r="http://127.0.0.1:3001");const i=new _n({basePath:r,fetchApi:yc.default,headers:t,middleware:[new G_(this.config),new q_(this.config),new U_]});this.apiVersionsToClient={v1:uc(i)}}get bookingPolicies(){return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies}get bookings(){return this.apiVersionsToClient[this.config.apiVersion].bookings}get hotelImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelImages}get hotelOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelOfferRequests}get hotelOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelOffers}get hotelRoomingListGuests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingListGuests}get hotelRoomingLists(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingLists}get hotelRoomOfferImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferImages}get hotelRoomOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferRequests}get hotelRoomOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOffers}get hotels(){return this.apiVersionsToClient[this.config.apiVersion].hotels}};a.AllowedPaymentMethodApiFromJSON=Oo,a.AllowedPaymentMethodApiFromJSONTyped=Ao,a.AllowedPaymentMethodApiToJSON=So,a.AllowedPaymentMethodApiToJSONTyped=my,a.AllowedPaymentMethodCouponApiFromJSON=ty,a.AllowedPaymentMethodCouponApiFromJSONTyped=Sn,a.AllowedPaymentMethodCouponApiNameEnum=jh,a.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=Qh,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=no,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=ro,a.AllowedPaymentMethodCouponApiPayloadInnerToJSON=io,a.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=oo,a.AllowedPaymentMethodCouponApiToJSON=ao,a.AllowedPaymentMethodCouponApiToJSONTyped=so,a.AllowedPaymentMethodCreditCardApiFromJSON=iy,a.AllowedPaymentMethodCreditCardApiFromJSONTyped=Tn,a.AllowedPaymentMethodCreditCardApiNameEnum=ny,a.AllowedPaymentMethodCreditCardApiToJSON=uo,a.AllowedPaymentMethodCreditCardApiToJSONTyped=co,a.AllowedPaymentMethodDepositAccountApiFromJSON=sy,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=vn,a.AllowedPaymentMethodDepositAccountApiNameEnum=oy,a.AllowedPaymentMethodDepositAccountApiToJSON=fo,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=lo,a.AllowedPaymentMethodPayLaterApiFromJSON=ly,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=wn,a.AllowedPaymentMethodPayLaterApiNameEnum=dy,a.AllowedPaymentMethodPayLaterApiPayloadFromJSON=mo,a.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=po,a.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=uy,a.AllowedPaymentMethodPayLaterApiPayloadToJSON=ho,a.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=yo,a.AllowedPaymentMethodPayLaterApiToJSON=go,a.AllowedPaymentMethodPayLaterApiToJSONTyped=_o,a.AmenitiesApiFromJSON=kn,a.AmenitiesApiFromJSONTyped=To,a.AmenitiesApiToJSON=Rn,a.AmenitiesApiToJSONTyped=vo,a.ApiClient=K_,a.ApiError=sc,a.BASE_PATH=Xi,a.BaseAPI=ce,a.BedApiFromJSON=yy,a.BedApiFromJSONTyped=wo,a.BedApiToJSON=gy,a.BedApiToJSONTyped=ko,a.BlobApiResponse=Zh,a.BookingApiFromJSON=le,a.BookingApiFromJSONTyped=Ka,a.BookingApiPayLaterEnum=Sg,a.BookingApiStatusEnum=Tg,a.BookingApiToJSON=Ya,a.BookingApiToJSONTyped=Va,a.BookingCreateApiFromJSON=Bg,a.BookingCreateApiFromJSONTyped=As,a.BookingCreateApiGuestsListInnerFromJSON=rs,a.BookingCreateApiGuestsListInnerFromJSONTyped=is,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=ja,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=es,a.BookingCreateApiGuestsListInnerGuestsInnerToJSON=ts,a.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=ns,a.BookingCreateApiGuestsListInnerToJSON=os,a.BookingCreateApiGuestsListInnerToJSONTyped=as,a.BookingCreateApiToJSON=Ss,a.BookingCreateApiToJSONTyped=Ts,a.BookingPolicies=Xu,a.BookingPoliciesApiFromJSON=Zn,a.BookingPoliciesApiFromJSONTyped=vs,a.BookingPoliciesApiToJSON=Zg,a.BookingPoliciesApiToJSONTyped=ws,a.BookingPoliciesCreateApiFromJSON=qg,a.BookingPoliciesCreateApiFromJSONTyped=ks,a.BookingPoliciesCreateApiToJSON=Rs,a.BookingPoliciesCreateApiToJSONTyped=Ns,a.Bookings=Qu,a.BookingsApiResponseFromJSON=Is,a.BookingsApiResponseFromJSONTyped=Ds,a.BookingsApiResponseToJSON=Vg,a.BookingsApiResponseToJSONTyped=Js,a.BookingsSortByEnum=L_,a.BookingsSortByOrderEnum=z_,a.BreakfastOption=vt,a.BreakfastOptionFromJSON=Eo,a.BreakfastOptionFromJSONTyped=Fo,a.BreakfastOptionToJSON=ky,a.BreakfastOptionToJSONTyped=Ry,a.COLLECTION_FORMATS=Hh,a.CancellationPolicyApiFromJSON=At,a.CancellationPolicyApiFromJSONTyped=Ro,a.CancellationPolicyApiToJSON=St,a.CancellationPolicyApiToJSONTyped=No,a.Configuration=_n,a.ContactPersonApiFromJSON=bn,a.ContactPersonApiFromJSONTyped=Xo,a.ContactPersonApiSalutationEnum=qy,a.ContactPersonApiToJSON=Cn,a.ContactPersonApiToJSONTyped=Qo,a.ContactPersonOrganizationApiFromJSON=Ko,a.ContactPersonOrganizationApiFromJSONTyped=Yo,a.ContactPersonOrganizationApiToJSON=Vo,a.ContactPersonOrganizationApiToJSONTyped=Wo,a.CountryIso2Code=bt,a.CountryIso2CodeFromJSON=Ct,a.CountryIso2CodeFromJSONTyped=qo,a.CountryIso2CodeToJSON=Uy,a.CountryIso2CodeToJSONTyped=Zy,a.CouponPreviewAppliedApiFromJSON=qh,a.CouponPreviewAppliedApiFromJSONTyped=xi,a.CouponPreviewAppliedApiToJSON=Kh,a.CouponPreviewAppliedApiToJSONTyped=ji,a.CouponPreviewRejectedApiErrorEnum=Yh,a.CouponPreviewRejectedApiFromJSON=Wh,a.CouponPreviewRejectedApiFromJSONTyped=eo,a.CouponPreviewRejectedApiToJSON=Xh,a.CouponPreviewRejectedApiToJSONTyped=to,a.CurrencyClient=wt,a.CurrencyClientFromJSON=he,a.CurrencyClientFromJSONTyped=zo,a.CurrencyClientToJSON=My,a.CurrencyClientToJSONTyped=Iy,a.ErrorApiResponseFromJSON=Qg,a.ErrorApiResponseFromJSONTyped=Es,a.ErrorApiResponseToJSON=xg,a.ErrorApiResponseToJSONTyped=Fs,a.ErrorApiResponseTypeEnum=Wg,a.EventApiFromJSON=Mt,a.EventApiFromJSONTyped=Ja,a.EventApiToJSON=It,a.EventApiToJSONTyped=Ea,a.EventMetadataApiFromJSON=Ue,a.EventMetadataApiFromJSONTyped=ss,a.EventMetadataApiToJSON=Ze,a.EventMetadataApiToJSONTyped=us,a.HotelApiFromJSON=Ys,a.HotelApiFromJSONTyped=Vs,a.HotelApiImagesFromJSON=Kn,a.HotelApiImagesFromJSONTyped=zs,a.HotelApiImagesToJSON=Yn,a.HotelApiImagesToJSONTyped=Hs,a.HotelApiToJSON=i_,a.HotelApiToJSONTyped=Ws,a.HotelImageApiFromJSON=ze,a.HotelImageApiFromJSONTyped=bo,a.HotelImageApiToJSON=je,a.HotelImageApiToJSONTyped=Co,a.HotelImages=xu,a.HotelOfferApiFromJSON=Xs,a.HotelOfferApiFromJSONTyped=Qs,a.HotelOfferApiToJSON=xs,a.HotelOfferApiToJSONTyped=js,a.HotelOfferRequestApiResponseFromJSON=Xn,a.HotelOfferRequestApiResponseFromJSONTyped=eu,a.HotelOfferRequestApiResponseToJSON=s_,a.HotelOfferRequestApiResponseToJSONTyped=tu,a.HotelOfferRequestCreateApiFromJSON=c_,a.HotelOfferRequestCreateApiFromJSONTyped=nu,a.HotelOfferRequestCreateApiToJSON=ru,a.HotelOfferRequestCreateApiToJSONTyped=iu,a.HotelOfferRequests=ju,a.HotelOffers=ec,a.HotelOffersApiResponseFromJSON=mu,a.HotelOffersApiResponseFromJSONTyped=pu,a.HotelOffersApiResponseToJSON=y_,a.HotelOffersApiResponseToJSONTyped=hu,a.HotelOffersDataApiResponseFromJSON=ou,a.HotelOffersDataApiResponseFromJSONTyped=au,a.HotelOffersDataApiResponseToJSON=su,a.HotelOffersDataApiResponseToJSONTyped=uu,a.HotelOffersSortByEnum=H_,a.HotelOffersSortByOrderEnum=B_,a.HotelReviewRatingApiFromJSON=Gn,a.HotelReviewRatingApiFromJSONTyped=$s,a.HotelReviewRatingApiToJSON=qn,a.HotelReviewRatingApiToJSONTyped=Ls,a.HotelRoomOfferApiFromJSON=He,a.HotelRoomOfferApiFromJSONTyped=Uo,a.HotelRoomOfferApiHotelRoomsInnerFromJSON=Mo,a.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=Io,a.HotelRoomOfferApiHotelRoomsInnerToJSON=Do,a.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=Jo,a.HotelRoomOfferApiPackageTypeEnum=Jy,a.HotelRoomOfferApiResponseFromJSON=yu,a.HotelRoomOfferApiResponseFromJSONTyped=gu,a.HotelRoomOfferApiResponseToJSON=__,a.HotelRoomOfferApiResponseToJSONTyped=_u,a.HotelRoomOfferApiStayTaxesInfoEnum=Ey,a.HotelRoomOfferApiToJSON=Be,a.HotelRoomOfferApiToJSONTyped=Zo,a.HotelRoomOfferApiTypeEnum=Fy,a.HotelRoomOfferImages=rc,a.HotelRoomOfferRequestApiResponseFromJSON=jn,a.HotelRoomOfferRequestApiResponseFromJSONTyped=Ou,a.HotelRoomOfferRequestApiResponseToJSON=A_,a.HotelRoomOfferRequestApiResponseToJSONTyped=Au,a.HotelRoomOfferRequestCreateApiFromJSON=T_,a.HotelRoomOfferRequestCreateApiFromJSONTyped=Su,a.HotelRoomOfferRequestCreateApiToJSON=Tu,a.HotelRoomOfferRequestCreateApiToJSONTyped=vu,a.HotelRoomOfferRequests=ic,a.HotelRoomOffers=oc,a.HotelRoomOffersApiResponseFromJSON=Pu,a.HotelRoomOffersApiResponseFromJSONTyped=bu,a.HotelRoomOffersApiResponseToJSON=k_,a.HotelRoomOffersApiResponseToJSONTyped=Cu,a.HotelRoomOffersCreateApiFromJSON=P_,a.HotelRoomOffersCreateApiFromJSONTyped=Eu,a.HotelRoomOffersCreateApiToJSON=Fu,a.HotelRoomOffersCreateApiToJSONTyped=$u,a.HotelRoomOffersDataApiResponseFromJSON=wu,a.HotelRoomOffersDataApiResponseFromJSONTyped=ku,a.HotelRoomOffersDataApiResponseToJSON=Ru,a.HotelRoomOffersDataApiResponseToJSONTyped=Nu,a.HotelRoomOffersDataCreateApiFromJSON=Mu,a.HotelRoomOffersDataCreateApiFromJSONTyped=Iu,a.HotelRoomOffersDataCreateApiToJSON=Du,a.HotelRoomOffersDataCreateApiToJSONTyped=Ju,a.HotelRoomingListApiFromJSON=Ln,a.HotelRoomingListApiFromJSONTyped=Za,a.HotelRoomingListApiHotelRoomFromJSON=Fa,a.HotelRoomingListApiHotelRoomFromJSONTyped=$a,a.HotelRoomingListApiHotelRoomToJSON=La,a.HotelRoomingListApiHotelRoomToJSONTyped=za,a.HotelRoomingListApiToJSON=Ga,a.HotelRoomingListApiToJSONTyped=qa,a.HotelRoomingListGuestApiFromJSON=Dt,a.HotelRoomingListGuestApiFromJSONTyped=Ha,a.HotelRoomingListGuestApiToJSON=Ba,a.HotelRoomingListGuestApiToJSONTyped=Ua,a.HotelRoomingListGuests=tc,a.HotelRoomingListGuestsCreateApiFromJSON=C_,a.HotelRoomingListGuestsCreateApiFromJSONTyped=Lu,a.HotelRoomingListGuestsCreateApiToJSON=zu,a.HotelRoomingListGuestsCreateApiToJSONTyped=Hu,a.HotelRoomingListGuestsUpdateApiFromJSON=I_,a.HotelRoomingListGuestsUpdateApiFromJSONTyped=Bu,a.HotelRoomingListGuestsUpdateApiToJSON=Uu,a.HotelRoomingListGuestsUpdateApiToJSONTyped=Zu,a.HotelRoomingLists=nc,a.Hotels=ac,a.InsuranceApiFromJSON=wa,a.InsuranceApiFromJSONTyped=ka,a.InsuranceApiStatusEnum=fg,a.InsuranceApiToJSON=Ra,a.InsuranceApiToJSONTyped=Na,a.InvoiceApiFromJSON=Pa,a.InvoiceApiFromJSONTyped=ba,a.InvoiceApiToJSON=Ca,a.InvoiceApiToJSONTyped=Ma,a.InvoiceApiTypeEnum=mg,a.JSONApiResponse=q,a.Locale=Nt,a.LocaleFromJSON=Pt,a.LocaleFromJSONTyped=Go,a.LocaleToJSON=zy,a.LocaleToJSONTyped=Hy,a.MetaPollingResponseApiFromJSON=Qn,a.MetaPollingResponseApiFromJSONTyped=fu,a.MetaPollingResponseApiToJSON=xn,a.MetaPollingResponseApiToJSONTyped=lu,a.MetaResponseApiFromJSON=Ps,a.MetaResponseApiFromJSONTyped=bs,a.MetaResponseApiToJSON=Cs,a.MetaResponseApiToJSONTyped=Ms,a.OrderAddonFromJSON=Fn,a.OrderAddonFromJSONTyped=Ia,a.OrderAddonSelectionFromJSON=Wa,a.OrderAddonSelectionFromJSONTyped=Xa,a.OrderAddonSelectionToJSON=Qa,a.OrderAddonSelectionToJSONTyped=xa,a.OrderAddonSelectionTypeEnum=wg,a.OrderAddonToJSON=$n,a.OrderAddonToJSONTyped=Da,a.OrderAddonTypeEnum=hg,a.PaymentMethodApiFromJSON=Ta,a.PaymentMethodApiFromJSONTyped=va,a.PaymentMethodApiToJSON=En,a.PaymentMethodApiToJSONTyped=dg,a.PaymentMethodCouponApiFromJSON=Xy,a.PaymentMethodCouponApiFromJSONTyped=Mn,a.PaymentMethodCouponApiNameEnum=Vy,a.PaymentMethodCouponApiPayloadInnerFromJSON=xo,a.PaymentMethodCouponApiPayloadInnerFromJSONTyped=jo,a.PaymentMethodCouponApiPayloadInnerToJSON=ea,a.PaymentMethodCouponApiPayloadInnerToJSONTyped=ta,a.PaymentMethodCouponApiToJSON=na,a.PaymentMethodCouponApiToJSONTyped=ra,a.PaymentMethodCreditCardApiFromJSON=eg,a.PaymentMethodCreditCardApiFromJSONTyped=In,a.PaymentMethodCreditCardApiNameEnum=xy,a.PaymentMethodCreditCardApiPayloadFromJSON=ia,a.PaymentMethodCreditCardApiPayloadFromJSONTyped=oa,a.PaymentMethodCreditCardApiPayloadToJSON=aa,a.PaymentMethodCreditCardApiPayloadToJSONTyped=sa,a.PaymentMethodCreditCardApiToJSON=ua,a.PaymentMethodCreditCardApiToJSONTyped=ca,a.PaymentMethodDepositAccountApiFromJSON=ig,a.PaymentMethodDepositAccountApiFromJSONTyped=Dn,a.PaymentMethodDepositAccountApiNameEnum=ng,a.PaymentMethodDepositAccountApiPayloadFromJSON=da,a.PaymentMethodDepositAccountApiPayloadFromJSONTyped=fa,a.PaymentMethodDepositAccountApiPayloadToJSON=la,a.PaymentMethodDepositAccountApiPayloadToJSONTyped=ma,a.PaymentMethodDepositAccountApiToJSON=pa,a.PaymentMethodDepositAccountApiToJSONTyped=ha,a.PaymentMethodPayLaterApiFromJSON=cg,a.PaymentMethodPayLaterApiFromJSONTyped=Jn,a.PaymentMethodPayLaterApiNameEnum=sg,a.PaymentMethodPayLaterApiPayloadFromJSON=ya,a.PaymentMethodPayLaterApiPayloadFromJSONTyped=ga,a.PaymentMethodPayLaterApiPayloadStatusEnum=og,a.PaymentMethodPayLaterApiPayloadToJSON=_a,a.PaymentMethodPayLaterApiPayloadToJSONTyped=Oa,a.PaymentMethodPayLaterApiToJSON=Aa,a.PaymentMethodPayLaterApiToJSONTyped=Sa,a.PaymentMethodRequestApiFromJSON=Un,a.PaymentMethodRequestApiFromJSONTyped=Os,a.PaymentMethodRequestApiToJSON=Jt,a.PaymentMethodRequestApiToJSONTyped=zg,a.PaymentMethodRequestCouponApiFromJSON=Ig,a.PaymentMethodRequestCouponApiFromJSONTyped=zn,a.PaymentMethodRequestCouponApiNameEnum=Cg,a.PaymentMethodRequestCouponApiToJSON=ms,a.PaymentMethodRequestCouponApiToJSONTyped=ps,a.PaymentMethodRequestCouponPayloadApiFromJSON=cs,a.PaymentMethodRequestCouponPayloadApiFromJSONTyped=ds,a.PaymentMethodRequestCouponPayloadApiToJSON=fs,a.PaymentMethodRequestCouponPayloadApiToJSONTyped=ls,a.PaymentMethodRequestCreditCardApiFromJSON=Eg,a.PaymentMethodRequestCreditCardApiFromJSONTyped=Hn,a.PaymentMethodRequestCreditCardApiNameEnum=Dg,a.PaymentMethodRequestCreditCardApiToJSON=hs,a.PaymentMethodRequestCreditCardApiToJSONTyped=ys,a.PaymentMethodRequestDepositAccountApiFromJSON=Lg,a.PaymentMethodRequestDepositAccountApiFromJSONTyped=Bn,a.PaymentMethodRequestDepositAccountApiNameEnum=Fg,a.PaymentMethodRequestDepositAccountApiToJSON=gs,a.PaymentMethodRequestDepositAccountApiToJSONTyped=_s,a.PaymentMethodUpdatePayloadApiFromJSON=J_,a.PaymentMethodUpdatePayloadApiFromJSONTyped=Gu,a.PaymentMethodUpdatePayloadApiToJSON=qu,a.PaymentMethodUpdatePayloadApiToJSONTyped=Ku,a.PollerStatus=Et,a.PollerStatusFromJSON=cu,a.PollerStatusFromJSONTyped=du,a.PollerStatusToJSON=l_,a.PollerStatusToJSONTyped=m_,a.RequestPayloadFromJSON=$_,a.RequestPayloadFromJSONTyped=Yu,a.RequestPayloadRequestTypeEnum=E_,a.RequestPayloadToJSON=Vu,a.RequestPayloadToJSONTyped=Wu,a.RequiredError=Z,a.ResponseError=gn,a.SourceMarket=Tt,a.SourceMarketFromJSON=xe,a.SourceMarketFromJSONTyped=Po,a.SourceMarketToJSON=Ay,a.SourceMarketToJSONTyped=Sy,a.TagApiFromJSON=kt,a.TagApiFromJSONTyped=Ho,a.TagApiToJSON=Rt,a.TagApiToJSONTyped=Bo,a.TaxApiFromJSON=Nn,a.TaxApiFromJSONTyped=$o,a.TaxApiTaxFrequencyEnum=Ny,a.TaxApiTaxModeEnum=Py,a.TaxApiToJSON=Pn,a.TaxApiToJSONTyped=Lo,a.TextApiResponse=An,a.TravelTimesApiFromJSON=Vn,a.TravelTimesApiFromJSONTyped=qs,a.TravelTimesApiToJSON=Wn,a.TravelTimesApiToJSONTyped=Ks,a.TravelTimesApiTravelTimesFromJSON=Bs,a.TravelTimesApiTravelTimesFromJSONTyped=Us,a.TravelTimesApiTravelTimesToJSON=Zs,a.TravelTimesApiTravelTimesToJSONTyped=Gs,a.VoidApiResponse=Qi,a.canConsumeForm=Uh,a.exists=Bh,a.instanceOfAllowedPaymentMethodCouponApi=ey,a.instanceOfAllowedPaymentMethodCouponApiPayloadInner=xh,a.instanceOfAllowedPaymentMethodCreditCardApi=ry,a.instanceOfAllowedPaymentMethodDepositAccountApi=ay,a.instanceOfAllowedPaymentMethodPayLaterApi=fy,a.instanceOfAllowedPaymentMethodPayLaterApiPayload=cy,a.instanceOfAmenitiesApi=py,a.instanceOfBedApi=hy,a.instanceOfBookingApi=vg,a.instanceOfBookingCreateApi=Hg,a.instanceOfBookingCreateApiGuestsListInner=Ng,a.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Rg,a.instanceOfBookingPoliciesApi=Ug,a.instanceOfBookingPoliciesCreateApi=Gg,a.instanceOfBookingsApiResponse=Yg,a.instanceOfBreakfastOption=wy,a.instanceOfCancellationPolicyApi=_y,a.instanceOfContactPersonApi=Ky,a.instanceOfContactPersonOrganizationApi=Gy,a.instanceOfCountryIso2Code=By,a.instanceOfCouponPreviewAppliedApi=Gh,a.instanceOfCouponPreviewRejectedApi=Vh,a.instanceOfCurrencyClient=Cy,a.instanceOfErrorApiResponse=Xg,a.instanceOfEventApi=gg,a.instanceOfEventMetadataApi=Pg,a.instanceOfHotelApi=r_,a.instanceOfHotelApiImages=e_,a.instanceOfHotelImageApi=Ty,a.instanceOfHotelOfferApi=o_,a.instanceOfHotelOfferRequestApiResponse=a_,a.instanceOfHotelOfferRequestCreateApi=u_,a.instanceOfHotelOffersApiResponse=h_,a.instanceOfHotelOffersDataApiResponse=d_,a.instanceOfHotelReviewRatingApi=jg,a.instanceOfHotelRoomOfferApi=$y,a.instanceOfHotelRoomOfferApiHotelRoomsInner=vy,a.instanceOfHotelRoomOfferApiResponse=g_,a.instanceOfHotelRoomOfferRequestApiResponse=O_,a.instanceOfHotelRoomOfferRequestCreateApi=S_,a.instanceOfHotelRoomOffersApiResponse=w_,a.instanceOfHotelRoomOffersCreateApi=N_,a.instanceOfHotelRoomOffersDataApiResponse=v_,a.instanceOfHotelRoomOffersDataCreateApi=R_,a.instanceOfHotelRoomingListApi=Ag,a.instanceOfHotelRoomingListApiHotelRoom=_g,a.instanceOfHotelRoomingListGuestApi=Og,a.instanceOfHotelRoomingListGuestsCreateApi=b_,a.instanceOfHotelRoomingListGuestsUpdateApi=M_,a.instanceOfInsuranceApi=lg,a.instanceOfInvoiceApi=pg,a.instanceOfLocale=Ly,a.instanceOfMetaPollingResponseApi=p_,a.instanceOfMetaResponseApi=Kg,a.instanceOfOrderAddon=yg,a.instanceOfOrderAddonSelection=kg,a.instanceOfPaymentMethodCouponApi=Wy,a.instanceOfPaymentMethodCouponApiPayloadInner=Yy,a.instanceOfPaymentMethodCreditCardApi=jy,a.instanceOfPaymentMethodCreditCardApiPayload=Qy,a.instanceOfPaymentMethodDepositAccountApi=rg,a.instanceOfPaymentMethodDepositAccountApiPayload=tg,a.instanceOfPaymentMethodPayLaterApi=ug,a.instanceOfPaymentMethodPayLaterApiPayload=ag,a.instanceOfPaymentMethodRequestCouponApi=Mg,a.instanceOfPaymentMethodRequestCouponPayloadApi=bg,a.instanceOfPaymentMethodRequestCreditCardApi=Jg,a.instanceOfPaymentMethodRequestDepositAccountApi=$g,a.instanceOfPaymentMethodUpdatePayloadApi=D_,a.instanceOfPollerStatus=f_,a.instanceOfRequestPayload=F_,a.instanceOfSourceMarket=Oy,a.instanceOfTagApi=Dy,a.instanceOfTaxApi=by,a.instanceOfTravelTimesApi=n_,a.instanceOfTravelTimesApiTravelTimes=t_,a.querystring=On,a.v1ApiClient=uc});