@revolugo/booking-api-client 7.24.0-alpha.4 → 7.24.0-alpha.41
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.es.js +3478 -3314
- package/dist/index.umd.js +35 -30
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,53 +1,58 @@
|
|
|
1
|
-
(function(a,
|
|
2
|
-
`)===0?A.substr(1,A.length):A}).forEach(function(A){var S=A.split(":"),v=S.shift().trim();if(v){var w=S.join(":").trim();try{l.append(v,w)}catch(J){console.warn("Response "+J.message)}}}),l}P.call(H.prototype);function $(d,l){if(!(this instanceof $))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(d)}P.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 d=new $(null,{status:200,statusText:""});return d.ok=!1,d.status=0,d.type="error",d};var X=[301,302,303,307,308];$.redirect=function(d,l){if(X.indexOf(l)===-1)throw new RangeError("Invalid status code");return new $(null,{status:l,headers:{location:d}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(l,A){this.message=l,this.name=A;var S=Error(l);this.stack=S.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function b(d,l){return new Promise(function(A,S){var v=new H(d,l);if(v.signal&&v.signal.aborted)return S(new s.DOMException("Aborted","AbortError"));var w=new XMLHttpRequest;function J(){w.abort()}w.onload=function(){var L={statusText:w.statusText,headers:M(w.getAllResponseHeaders()||"")};v.url.indexOf("file://")===0&&(w.status<200||w.status>599)?L.status=200:L.status=w.status,L.url="responseURL"in w?w.responseURL:L.headers.get("X-Request-URL");var Q="response"in w?w.response:w.responseText;setTimeout(function(){A(new $(Q,L))},0)},w.onerror=function(){setTimeout(function(){S(new TypeError("Network request failed"))},0)},w.ontimeout=function(){setTimeout(function(){S(new TypeError("Network request timed out"))},0)},w.onabort=function(){setTimeout(function(){S(new s.DOMException("Aborted","AbortError"))},0)};function K(L){try{return L===""&&u.location.href?u.location.href:L}catch{return L}}if(w.open(v.method,K(v.url),!0),v.credentials==="include"?w.withCredentials=!0:v.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(L){Y.push(p(L)),w.setRequestHeader(L,O(l.headers[L]))}),v.headers.forEach(function(L,Q){Y.indexOf(Q)===-1&&w.setRequestHeader(Q,L)})}else v.headers.forEach(function(L,Q){w.setRequestHeader(Q,L)});v.signal&&(v.signal.addEventListener("abort",J),w.onreadystatechange=function(){w.readyState===4&&v.signal.removeEventListener("abort",J)}),w.send(typeof v._bodyInit>"u"?null:v._bodyInit)})}return b.polyfill=!0,u.fetch||(u.fetch=b,u.Headers=y,u.Request=H,u.Response=$),s.Headers=y,s.Request=H,s.Response=$,s.fetch=b,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})),Zu=oe(Uu(),1),Gu=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),qu=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ku=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Yu=/[^\p{L}\d]+/giu,Xn="$1\0$2",Qn="";function xn(e){let t=e.trim();t=t.replace(Gu,Xn).replace(qu,Xn),t=t.replace(Yu,"\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 Vu(e){const t=xn(e);for(let n=0;n<t.length;n++){const r=t[n],i=Ku.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 jn(e,t){const[n,r,i]=Ve(e,t);return n+r.map(Ye(t?.locale)).join(t?.delimiter??" ")+i}function Wu(e,t){const[n,r,i]=Ve(e,t),o=Ye(t?.locale),s=Pt(t?.locale),u=t?.mergeAmbiguousCharacters?bt(o,s):tr(o,s);return n+r.map((c,f)=>f===0?o(c):u(c,f)).join(t?.delimiter??"")+i}function Xu(e,t){const[n,r,i]=Ve(e,t),o=Ye(t?.locale),s=Pt(t?.locale),u=t?.mergeAmbiguousCharacters?bt(o,s):tr(o,s);return n+r.map(u).join(t?.delimiter??"")+i}function Qu(e,t){const[n,r,i]=Ve(e,t),o=Ye(t?.locale),s=Pt(t?.locale);return n+r.map(bt(o,s)).join(t?.delimiter??" ")+i}function er(e,t){return jn(e,{delimiter:"-",...t})}function xu(e,t){return jn(e,{delimiter:"_",...t})}function Ye(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function Pt(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function bt(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function tr(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function Ve(e,t={}){const n=t.split??(t.separateNumbers?Vu:xn),r=t.prefixCharacters??Qn,i=t.suffixCharacters??Qn;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 ju=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,f=s.trim===void 0?!0:s.trim,m=o.normalize().split("").reduce(function(h,p){var O=u[p];return O===void 0&&(O=n[p]),O===void 0&&(O=p),O===c&&(O=" "),h+O.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(m=m.replace(/[^A-Za-z0-9\s]/g,"")),f&&(m=m.trim()),m=m.replace(/\s+/g,c),s.lower&&(m=m.toLowerCase()),m}return i.extend=function(o){Object.assign(n,o)},i})})),ec=oe(ju(),1);function tc(e){return(0,ec.default)(er(e),{lower:!0,strict:!0})}var D={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},nr={[D.Camel]:Wu,[D.Capital]:Qu,[D.Param]:er,[D.Pascal]:Xu,[D.Slug]:tc,[D.Snake]:xu};function nc(e,t){return Array.isArray(e)?e.map(n=>nr[t](n)):nr[t](e)}function rc(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function ic(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Ct(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Ct(i,t,n)):rc(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,o)=>{const s=n.exclude&&ic(n.exclude,o)?o:nc(o,t);return i[s]=r?Ct(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function E(e,t,n={}){return Ct(e,t,{deep:n.deep??!0,exclude:n.exclude})}var rr=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",f="day",m="week",h="month",p="quarter",O="year",T="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|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(b){var d=["th","st","nd","rd"],l=b%100;return"["+b+(d[(l-20)%10]||d[l]||d[0])+"]"}},N=function(b,d,l){var A=String(b);return!A||A.length>=d?b:""+Array(d+1-A.length).join(l)+b},F={s:N,z:function(b){var d=-b.utcOffset(),l=Math.abs(d),A=Math.floor(l/60),S=l%60;return(d<=0?"+":"-")+N(A,2,"0")+":"+N(S,2,"0")},m:function b(d,l){if(d.date()<l.date())return-b(l,d);var A=12*(l.year()-d.year())+(l.month()-d.month()),S=d.clone().add(A,h),v=l-S<0,w=d.clone().add(A+(v?-1:1),h);return+(-(A+(l-S)/(v?S-w:w-S))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:h,y:O,w:m,d:f,D:T,h:c,m:u,s,ms:o,Q:p}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},I="en",P={};P[I]=R;var z="$isDayjsObject",U=function(b){return b instanceof $||!(!b||!b[z])},H=function b(d,l,A){var S;if(!d)return I;if(typeof d=="string"){var v=d.toLowerCase();P[v]&&(S=v),l&&(P[v]=l,S=v);var w=d.split("-");if(!S&&w.length>1)return b(w[0])}else{var J=d.name;P[J]=d,S=J}return!A&&S&&(I=S),S||!A&&I},B=function(b,d){if(U(b))return b.clone();var l=typeof d=="object"?d:{};return l.date=b,l.args=arguments,new $(l)},M=F;M.l=H,M.i=U,M.w=function(b,d){return B(b,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var $=(function(){function b(l){this.$L=H(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[z]=!0}var d=b.prototype;return d.parse=function(l){this.$d=(function(A){var S=A.date,v=A.utc;if(S===null)return new Date(NaN);if(M.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var w=S.match(_);if(w){var J=w[2]-1||0,K=(w[7]||"0").substring(0,3);return v?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(S)})(l),this.init()},d.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()},d.$utils=function(){return M},d.isValid=function(){return this.$d.toString()!==y},d.isSame=function(l,A){var S=B(l);return this.startOf(A)<=S&&S<=this.endOf(A)},d.isAfter=function(l,A){return B(l)<this.startOf(A)},d.isBefore=function(l,A){return this.endOf(A)<B(l)},d.$g=function(l,A,S){return M.u(l)?this[A]:this.set(S,l)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(l,A){var S=this,v=!!M.u(A)||A,w=M.p(l),J=function(he,ne){var de=M.w(S.$u?Date.UTC(S.$y,ne,he):new Date(S.$y,ne,he),S);return v?de:de.endOf(f)},K=function(he,ne){return M.w(S.toDate()[he].apply(S.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(ne)),S)},Y=this.$W,L=this.$M,Q=this.$D,we="set"+(this.$u?"UTC":"");switch(w){case O:return v?J(1,0):J(31,11);case h:return v?J(1,L):J(0,L+1);case m:var ye=this.$locale().weekStart||0,Ne=(Y<ye?Y+7:Y)-ye;return J(v?Q-Ne:Q+(6-Ne),L);case f:case T:return K(we+"Hours",0);case c:return K(we+"Minutes",1);case u:return K(we+"Seconds",2);case s:return K(we+"Milliseconds",3);default:return this.clone()}},d.endOf=function(l){return this.startOf(l,!1)},d.$set=function(l,A){var S,v=M.p(l),w="set"+(this.$u?"UTC":""),J=(S={},S[f]=w+"Date",S[T]=w+"Date",S[h]=w+"Month",S[O]=w+"FullYear",S[c]=w+"Hours",S[u]=w+"Minutes",S[s]=w+"Seconds",S[o]=w+"Milliseconds",S)[v],K=v===f?this.$D+(A-this.$W):A;if(v===h||v===O){var Y=this.clone().set(T,1);Y.$d[J](K),Y.init(),this.$d=Y.set(T,Math.min(this.$D,Y.daysInMonth())).$d}else J&&this.$d[J](K);return this.init(),this},d.set=function(l,A){return this.clone().$set(l,A)},d.get=function(l){return this[M.p(l)]()},d.add=function(l,A){var S,v=this;l=Number(l);var w=M.p(A),J=function(L){var Q=B(v);return M.w(Q.date(Q.date()+Math.round(L*l)),v)};if(w===h)return this.set(h,this.$M+l);if(w===O)return this.set(O,this.$y+l);if(w===f)return J(1);if(w===m)return J(7);var K=(S={},S[u]=r,S[c]=i,S[s]=n,S)[w]||1,Y=this.$d.getTime()+l*K;return M.w(Y,this)},d.subtract=function(l,A){return this.add(-1*l,A)},d.format=function(l){var A=this,S=this.$locale();if(!this.isValid())return S.invalidDate||y;var v=l||"YYYY-MM-DDTHH:mm:ssZ",w=M.z(this),J=this.$H,K=this.$m,Y=this.$M,L=S.weekdays,Q=S.months,we=S.meridiem,ye=function(ne,de,ge,ve){return ne&&(ne[de]||ne(A,v))||ge[de].slice(0,ve)},Ne=function(ne){return M.s(J%12||12,ne,"0")},he=we||function(ne,de,ge){var ve=ne<12?"AM":"PM";return ge?ve.toLowerCase():ve};return v.replace(k,(function(ne,de){return de||(function(ge){switch(ge){case"YY":return String(A.$y).slice(-2);case"YYYY":return M.s(A.$y,4,"0");case"M":return Y+1;case"MM":return M.s(Y+1,2,"0");case"MMM":return ye(S.monthsShort,Y,Q,3);case"MMMM":return ye(Q,Y);case"D":return A.$D;case"DD":return M.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return ye(S.weekdaysMin,A.$W,L,2);case"ddd":return ye(S.weekdaysShort,A.$W,L,3);case"dddd":return L[A.$W];case"H":return String(J);case"HH":return M.s(J,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return he(J,K,!0);case"A":return he(J,K,!1);case"m":return String(K);case"mm":return M.s(K,2,"0");case"s":return String(A.$s);case"ss":return M.s(A.$s,2,"0");case"SSS":return M.s(A.$ms,3,"0");case"Z":return w}return null})(ne)||w.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(l,A,S){var v,w=this,J=M.p(A),K=B(l),Y=(K.utcOffset()-this.utcOffset())*r,L=this-K,Q=function(){return M.m(w,K)};switch(J){case O:v=Q()/12;break;case h:v=Q();break;case p:v=Q()/3;break;case m:v=(L-Y)/6048e5;break;case f:v=(L-Y)/864e5;break;case c:v=L/i;break;case u:v=L/r;break;case s:v=L/n;break;default:v=L}return S?v:M.a(v)},d.daysInMonth=function(){return this.endOf(h).$D},d.$locale=function(){return P[this.$L]},d.locale=function(l,A){if(!l)return this.$L;var S=this.clone(),v=H(l,A,!0);return v&&(S.$L=v),S},d.clone=function(){return M.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},b})(),X=$.prototype;return B.prototype=X,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",f],["$M",h],["$y",O],["$D",T]].forEach((function(b){X[b[1]]=function(d){return this.$g(d,b[0],b[1])}})),B.extend=function(b,d){return b.$i||(b(d,$,B),b.$i=!0),B},B.locale=H,B.isDayjs=U,B.unix=function(b){return B(1e3*b)},B.en=P[I],B.Ls=P,B.p={},B}))})),oc=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 f=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(h){switch(h){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 f.s(u.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),h==="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 h}}));return o.bind(this)(m)}}}))})),ac=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={},f=function(_){return(_=+_)+(_>68?1900:2e3)},m=function(_){return function(k){this[_]=+k}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function(k){if(!k||k==="Z")return 0;var R=k.match(/([+-]|\d\d)/g),N=60*R[1]+(+R[2]||0);return N===0?0:R[0]==="+"?-N:N})(_)}],p=function(_){var k=c[_];return k&&(k.indexOf?k:k.s.concat(k.f))},O=function(_,k){var R,N=c.meridiem;if(N){for(var F=1;F<=24;F+=1)if(_.indexOf(N(F,0,k))>-1){R=F>12;break}}else R=_===(k?"pm":"PM");return R},T={A:[u,function(_){this.afternoon=O(_,!1)}],a:[u,function(_){this.afternoon=O(_,!0)}],Q:[i,function(_){this.month=3*(_-1)+1}],S:[i,function(_){this.milliseconds=100*+_}],SS:[o,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],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:[o,m("day")],Do:[u,function(_){var k=c.ordinal,R=_.match(/\d+/);if(this.day=R[0],k)for(var N=1;N<=31;N+=1)k(N).replace(/\[|\]/g,"")===_&&(this.day=N)}],w:[s,m("week")],ww:[o,m("week")],M:[s,m("month")],MM:[o,m("month")],MMM:[u,function(_){var k=p("months"),R=(p("monthsShort")||k.map((function(N){return N.slice(0,3)}))).indexOf(_)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[u,function(_){var k=p("months").indexOf(_)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(_){this.year=f(_)}],YYYY:[/\d{4}/,m("year")],Z:h,ZZ:h};function y(_){for(var k=_,R=c&&c.formats,N=(_=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,M,$){var X=$&&$.toUpperCase();return M||R[$]||n[$]||R[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,d,l){return d||l.slice(1)}))}))).match(r),F=N.length,I=0;I<F;I+=1){var P=N[I],z=T[P],U=z&&z[0],H=z&&z[1];N[I]=H?{regex:U,parser:H}:P.replace(/^\[|\]$/g,"")}return function(B){for(var M={},$=0,X=0;$<F;$+=1){var b=N[$];if(typeof b=="string")X+=b.length;else{var d=b.regex,l=b.parser,A=B.slice(X),S=d.exec(A)[0];l.call(M,S),B=B.replace(S,"")}}return(function(v){var w=v.afternoon;if(w!==void 0){var J=v.hours;w?J<12&&(v.hours+=12):J===12&&(v.hours=0),delete v.afternoon}})(M),M}}return function(_,k,R){R.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(f=_.parseTwoDigitYear);var N=k.prototype,F=N.parse;N.parse=function(I){var P=I.date,z=I.utc,U=I.args;this.$u=z;var H=U[1];if(typeof H=="string"){var B=U[2]===!0,M=U[3]===!0,$=B||M,X=U[2];M&&(X=U[2]),c=this.$locale(),!B&&X&&(c=R.Ls[X]),this.$d=(function(A,S,v,w){try{if(["x","X"].indexOf(S)>-1)return new Date((S==="X"?1e3:1)*A);var J=y(S)(A),K=J.year,Y=J.month,L=J.day,Q=J.hours,we=J.minutes,ye=J.seconds,Ne=J.milliseconds,he=J.zone,ne=J.week,de=new Date,ge=L||(K||Y?1:de.getDate()),ve=K||de.getFullYear(),Rt=0;K&&!Y||(Rt=Y>0?Y-1:de.getMonth());var Nt,Un=Q||0,Zn=we||0,Gn=ye||0,qn=Ne||0;return he?new Date(Date.UTC(ve,Rt,ge,Un,Zn,Gn,qn+60*he.offset*1e3)):v?new Date(Date.UTC(ve,Rt,ge,Un,Zn,Gn,qn)):(Nt=new Date(ve,Rt,ge,Un,Zn,Gn,qn),ne&&(Nt=w(Nt).week(ne).toDate()),Nt)}catch{return new Date("")}})(P,H,z,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),$&&P!=this.format(H)&&(this.$d=new Date("")),c={}}else if(H instanceof Array)for(var b=H.length,d=1;d<=b;d+=1){U[1]=H[d-1];var l=R.apply(this,U);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}d===b&&(this.$d=new Date(""))}else F.call(this,I)}}}))})),sc=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 f=i(o),m=i(s),h=(c=c||"()")[0]==="(",p=c[1]===")";return(h?this.isAfter(f,u):!this.isBefore(f,u))&&(p?this.isBefore(m,u):!this.isAfter(m,u))||(h?this.isBefore(f,u):!this.isAfter(f,u))&&(p?this.isAfter(m,u):!this.isBefore(m,u))}}}))})),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_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)}}}))})),cc=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)}}}))})),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_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var o=r.prototype,s=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,p,O,T,y){var _=h.name?h:h.$locale(),k=s(_[p]),R=s(_[O]),N=k||R.map((function(I){return I.slice(0,T)}));if(!y)return N;var F=_.weekStart;return N.map((function(I,P){return N[(P+(F||0))%7]}))},c=function(){return i.Ls[i.locale()]},f=function(h,p){return h.formats[p]||(function(O){return O.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(T,y,_){return y||_.slice(1)}))})(h.formats[p.toUpperCase()])},m=function(){var h=this;return{months:function(p){return p?p.format("MMMM"):u(h,"months")},monthsShort:function(p){return p?p.format("MMM"):u(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(h,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(h,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return f(h.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return m.bind(this)()},i.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.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 f(h,p)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return u(c(),"months")},i.monthsShort=function(){return u(c(),"monthsShort","months",3)},i.weekdays=function(h){return u(c(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return u(c(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return u(c(),"weekdaysMin","weekdays",2,h)}}}))})),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_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 f=this.$locale().formats,m=(function(h,p){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,T,y){var _=y&&y.toUpperCase();return T||p[y]||n[y]||p[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,R,N){return R||N.slice(1)}))}))})(c,f===void 0?{}:f);return u.call(this,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_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(m){return m})))[0];for(var f=1;f<u.length;f+=1)u[f].isValid()&&!u[f][s](c)||(c=u[f]);return c};i.max=function(){return o("isAfter",[].slice.call(arguments,0))},i.min=function(){return o("isBefore",[].slice.call(arguments,0))}}}))})),mc=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(f,m,h,p){return o.fromToBase(f,m,h,p)}i.en.relativeTime=s,o.fromToBase=function(f,m,h,p,O){for(var T,y,_,k=h.$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,F=0;F<N;F+=1){var I=R[F];I.d&&(T=p?i(f).diff(h,I.d,!0):h.diff(f,I.d,!0));var P=(n.rounding||Math.round)(Math.abs(T));if(_=T>0,P<=I.r||!I.r){P<=1&&F>0&&(I=R[F-1]);var z=k[I.l];O&&(P=O(""+P)),y=typeof z=="string"?z.replace("%d",P):z(P,m,I.l,_);break}}if(m)return y;var U=_?k.future:k.past;return typeof U=="function"?U(y):U.replace("%s",y)},o.to=function(f,m){return u(f,m,this,!0)},o.from=function(f,m){return u(f,m,this)};var c=function(f){return f.$u?i.utc():i()};o.toNow=function(f){return this.to(c(this),f)},o.fromNow=function(f){return this.from(c(this),f)}}}))})),pc=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(p,O,T){T===void 0&&(T={});var y=new Date(p);return(function(_,k){k===void 0&&(k={});var R=k.timeZoneName||"short",N=_+"|"+R,F=r[N];return F||(F=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:R}),r[N]=F),F})(O,T).formatToParts(y)},f=function(p,O){for(var T=c(p,O),y=[],_=0;_<T.length;_+=1){var k=T[_],R=k.type,N=k.value,F=n[R];F>=0&&(y[F]=parseInt(N,10))}var I=y[3],P=I===24?0:I,z=y[0]+"-"+y[1]+"-"+y[2]+" "+P+":"+y[4]+":"+y[5]+":000",U=+p;return(s.utc(z).valueOf()-(U-=U%1e3))/6e4},m=o.prototype;m.tz=function(p,O){if(p===void 0&&(p=u),!this.isValid())return this;var T,y=this.utcOffset(),_=this.toDate(),k=_.toLocaleString("en-US",{timeZone:p}),R=f(+_,p);if(!Number(R))T=this.utcOffset(0,O);else if(T=s(k,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(R,!0),O){var N=T.utcOffset();T=T.add(y-N,"minute")}return T.$x.$timezone=p,T},m.offsetName=function(p){var O=this.$x.$timezone||s.tz.guess(),T=c(this.valueOf(),O,{timeZoneName:p}).find((function(y){return y.type.toLowerCase()==="timezonename"}));return T&&T.value};var h=m.startOf;m.startOf=function(p,O){if(!this.$x||!this.$x.$timezone)return h.call(this,p,O);var T=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(T,p,O).tz(this.$x.$timezone,!0)},s.tz=function(p,O,T){var y=T&&O,_=T||O||u,k=f(+s(),_);if(typeof p!="string")return s(p).tz(_);var R=s.utc(p,y).valueOf();if(Number.isNaN(R)){var N=s(NaN);return N.$x.$timezone=_,N}var F=(function(U,H,B){var M=U-60*H*1e3,$=f(M,B);if(H===$)return[M,H];var X=f(M-=60*($-H)*1e3,B);return $===X?[M,$]:[U-60*Math.min($,X)*1e3,Math.max($,X)]})(R,k,_),I=F[0],P=F[1],z=s(I).utcOffset(P);return z.$x.$timezone=_,z},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){u=p}}}))})),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_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 _=u(this.toDate(),{locale:this.$L,utc:!0});return y?_.add(this.utcOffset(),n):_},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=c.parse;c.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),f.call(this,y)};var m=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 m.call(this)};var h=c.utcOffset;c.utcOffset=function(y,_){var k=this.$utils().u;if(k(y))return this.$u?0:k(this.$offset)?h.call(this):this.$offset;if(typeof y=="string"&&(y=(function(I){I===void 0&&(I="");var P=I.match(r);if(!P)return null;var z=(""+P[0]).match(i)||["-",0,0],U=z[0],H=60*+z[1]+ +z[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(_);var N=this.clone();if(_)return N.$offset=R,N.$u=!1,N;var F=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(R+F,n)).$offset=R,N.$x.$localOffset=F,N};var p=c.format;c.format=function(y){var _=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,_)},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 O=c.toDate;c.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():O.call(this)};var T=c.diff;c.diff=function(y,_,k){if(y&&this.$u===y.$u)return T.call(this,y,_,k);var R=this.local(),N=u(y).local();return T.call(R,N,_,k)}}}))})),yc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(rr()):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(rr(),1),_c=oe(oc(),1),Oc=oe(ac(),1),Ac=oe(sc(),1),Sc=oe(uc(),1),Tc=oe(cc(),1),wc=oe(dc(),1),vc=oe(fc(),1),kc=oe(lc(),1),Rc=oe(mc(),1),Nc=oe(pc(),1),Pc=oe(hc(),1),c_=yc(),d_=gc();fe.default.extend(_c.default),fe.default.extend(Oc.default),fe.default.extend(Ac.default),fe.default.extend(Sc.default),fe.default.extend(Tc.default),fe.default.extend(vc.default),fe.default.extend(wc.default),fe.default.extend(kc.default),fe.default.extend(Rc.default),fe.default.extend(Nc.default),fe.default.extend(Pc.default);function _e(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function We(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=>We(n,t));if(_e(e)){const n={};for(const r in e)Object.hasOwn(e,r)&&(n[r]=We(e[r],t));return n}return e}function It(e,t,n=new WeakSet){if(!(!_e(t)||!_e(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];_e(i)&&_e(o)?It(o,i,n):Array.isArray(i)&&Array.isArray(o)?e[r]=ir(o,i,n):e[r]=We(i,n)}}}function ir(e,t,n){const r=e.slice();for(let i=0;i<t.length;i++){const o=t[i],s=r[i];if(_e(o)&&_e(s)){const u={...s};It(u,o,n),r[i]=u}else Array.isArray(o)&&Array.isArray(s)?r[i]=ir(s,o,n):r[i]=We(o,n)}return r}function or(e,...t){if(!_e(e))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const r of t)r!=null&&It(e,r,n);return e}function bc(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 Cc(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 Ic=new Uint8Array(16);function Mc(){return crypto.getRandomValues(Ic)}function Dc(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Jc(e,t,n)}function Jc(e,t,n){e=e||{};const r=e.random??e.rng?.()??Mc();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 Cc(r)}var Ec=1500,ke={},Fc=class{defaultOptions={callCount:1,interval:Ec,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&&ke[e]&&delete ke[e]}buildPollerOptions(e){return{...this.defaultOptions,...bc(e)}}dispatch(e,t){this.events[e](t)}isActivePoller(e){return e.type?!!ke[e.type]&&ke[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,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&&ke[e.type]&&delete ke[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Dc(),ke[e.type]=e.uuid)}};function zc(){return new Fc}function Xe(e,t,n){const r=zc();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 ar(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 sr(e,t="|"){return e.map(n=>dr(n)).join(t)}function Mt(e,t){return typeof t=="bigint"?t.toString():t}function Dt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function $c(e){return e==null}function Jt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Lc(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 se(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Oe(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Hc(e){return JSON.stringify(e)}function Bc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ur="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Qe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Uc=Dt(()=>{if(me.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function He(e){if(Qe(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Qe(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function cr(e){return He(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Zc=new Set(["string","number","symbol"]);function xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ae(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function C(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 dr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Gc(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var qc={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 Kc(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 Ae(e,Oe(e._zod.def,{get shape(){const i={};for(const o of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,o))throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&se(i,o,n.shape[o])}return se(this,"shape",i),i},checks:[]}))}function Yc(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 Ae(e,Oe(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,o))throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&delete i[o]}return se(this,"shape",i),i},checks:[]}))}function Vc(e,t){if(!He(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 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 Ae(e,Oe(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return se(this,"shape",r),r}}))}function Wc(e,t){if(!He(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Ae(e,Oe(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return se(this,"shape",n),n}}))}function Xc(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.");return Ae(e,Oe(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return se(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function fr(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`);return Ae(t,Oe(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const u of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(o,u))throw new Error(`Unrecognized key: "${String(u)}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(const u of Reflect.ownKeys(o))s[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return se(this,"shape",s),s},checks:[]}))}function Qc(e,t,n){return Ae(t,Oe(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const o of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,o))throw new Error(`Unrecognized key: "${String(o)}"`);n[o]&&(i[o]=new e({type:"nonoptional",innerType:r[o]}))}else for(const o of Reflect.ownKeys(r))i[o]=new e({type:"nonoptional",innerType:r[o]});return se(this,"shape",i),i}}))}function be(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 xc(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 lr(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Be(e){return typeof e=="string"?e:e?.message}function mr(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Ce(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:Be(e.inst?._zod.def?.error?.(e))??Be(o?.(e))??Be(t?.error?.(e))??Be(n.customError?.(e))??Be(n.localeError?.(e))??"Invalid input",{inst:u,schema:c,continue:f,input:m,...h}=e;return h.path??(h.path=[]),h.message=s,t?.reportInput&&(h.input=m),h}var jc=/[\uD800-\uDBFF]/;function Et(e){const t=e.length;if(!jc.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 Ft(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ed(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 Ue(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function td(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):nd(e,n,r.value)}}function Ie(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function pr(e,t,n){return Ie(e,t,n,!1)}function nd(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Ie(this,t,n.bind(this))},set(r){Ie(this,t,r)}})}function rd(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}var zt,Se=!1,id={configurable:!0,get(){Se=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&zt!==e._zod){zt=void 0;return}zt=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,id);const i=Se;Se=!1;try{const o=n(this);return Se?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),Se=Se||i,o}catch(o){throw delete this[t],Se=Se||i,o}},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i})}})}function od(e,t,n,r){const i=rd(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 ad="~constantCatch";function sd(e){const t=()=>e;return t[ad]=!0,t}var hr,$t={value:void 0,enumerable:!1},yr="captureStackTrace"in Error?Error:null;function ud(e){const t=yr;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return yr=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function g(e,t,n,r){const i={};function o(p){this.def=p,this.constr=h,this.traits=new Set}o.prototype=i;const s=n,u=s&&new WeakSet;function c(p,O){if(!p._zod){$t.value=new o(O);try{Object.defineProperty(p,"_zod",$t)}finally{$t.value=void 0}}if(p._zod.traits.has(e))return;if(p._zod.traits.add(e),t(p,O),u){const y=Object.getPrototypeOf(p),_=p._zod.constr.prototype;let k=y;for(;k&&k!==_;)k=Object.getPrototypeOf(k);const R=k??y;u.has(R)||(u.add(R),td(R,s))}const T=h.prototype;for(const y in T)Object.prototype.hasOwnProperty.call(T,y)&&(y in p||(p[y]=T[y].bind(p)))}const f=r?.Parent??Object;class m extends f{}Object.defineProperty(m,"name",{value:e});function h(p){const O=r?.Parent?ud(m):this;c(O,p);const T=O._zod.deferred;if(T){for(const _ of T)_();O._zod.deferred=void 0}const y=globalThis.__zod_globalConfig?.postProcessor;return y&&y(O),O}return Object.defineProperty(h,"init",{value:c}),Object.defineProperty(h,Symbol.hasInstance,{value:p=>r?.Parent&&p instanceof r.Parent?!0:p?._zod?.traits?.has(e)}),Object.defineProperty(h,"name",{value:e}),h}var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},gr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(hr=globalThis).__zod_globalConfig??(hr.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function Te(e){return e&&Object.assign(me,e),me}function cd(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Mt,2)),e.message}function dd(e){this._zod.message=e}var fd={get:cd,set:dd,enumerable:!0,configurable:!0},Lt={value:void 0,enumerable:!1},Ht={value:void 0,enumerable:!1},_r=new WeakSet([Object.prototype,Error.prototype]),Or=(e,t)=>{e.name="$ZodError",Lt.value=e._zod,Object.defineProperty(e,"_zod",Lt),Ht.value=t,Object.defineProperty(e,"issues",Ht),Lt.value=void 0,Ht.value=void 0,Object.defineProperty(e,"message",fd);const n=Object.getPrototypeOf(e);_r.has(n)||(_r.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})}}))},Ar=g("$ZodError",Or),Sr=g("$ZodError",Or,void 0,{Parent:Error});function ld(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 md(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?ld(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function pd(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,f=0;for(;f<u.length;){const m=u[f],h=f===u.length-1;if(m==="_errors"){h&&c._errors.push(t(s)),f++;continue}Object.prototype.hasOwnProperty.call(c,m)||Object.defineProperty(c,m,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const p=c[m];h&&p._errors.push(t(s)),c=p,f++}}}};return r(e),n}function je(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Bt=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(f=>Ce(f,s,Te())));throw ur(c,o?.callee??t),c}return u.value};return t},Ut=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(f=>Ce(f,s,Te())));throw ur(c,o?.callee??t),c}return u.value};return t},et=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?{success:!1,error:new(e??Ar)(o.issues.map(s=>Ce(s,i,Te())))}:{success:!0,data:o.value}},hd=et(Sr),tt=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?{success:!1,error:new e(o.issues.map(s=>Ce(s,i,Te())))}:{success:!0,data:o.value}},yd=tt(Sr),gd=e=>{const t=Bt(e),n=(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return t(r,i,u,je(n,s))};return n},_d=e=>{const t=Bt(e),n=(r,i,o,s)=>t(r,i,o,je(n,s));return n},Od=e=>{const t=Ut(e),n=async(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return await t(r,i,u,je(n,s))};return n},Ad=e=>{const t=Ut(e),n=async(r,i,o,s)=>await t(r,i,o,je(n,s));return n},Sd=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return et(e)(t,n,i)},Td=e=>(t,n,r)=>et(e)(t,n,r),wd=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return tt(e)(t,n,i)},vd=e=>async(t,n,r)=>tt(e)(t,n,r),kd=/^[cC][0-9a-z]{6,}$/,Rd=/^[0-9a-z]+$/,Nd=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Pd=/^[0-9a-vA-V]{20}$/,bd=/^[A-Za-z0-9]{27}$/,Cd=/^[a-zA-Z0-9_-]{21}$/;function Id(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Md=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dd=/^([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})$/,Tr=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)$/,Jd=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ed="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Fd(){return new RegExp(Ed,"u")}var zd=/^(?:(?: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])$/,$d=/^(([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}|:))$/,Ld=/^((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])$/,Hd=/^(([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])$/,Bd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wr=/^[A-Za-z0-9_-]*$/,Ud=/^https?$/,Zd=/^\+[1-9]\d{6,14}$/,vr="(?:(?:\\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 Gd(e){return new RegExp(`^${e}$`)}var qd=Gd(vr);function Zt(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 Kd(e){return new RegExp(`^${Zt(e)}$`)}function Yd(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${Zt({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Zt({precision:e.precision})}`:n;return new RegExp(`^${vr}T(?:${r})$`)}var Vd=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Wd=/^-?\d+$/,Xd=/^-?\d+(?:\.\d+)?$/,Qd=/^[^A-Z]*$/,xd=/^[^a-z]*$/,ae=g("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Gt=e=>{const t=e.value;return!$c(t)&&t.length!==void 0},nt={number:"number",bigint:"bigint",object:"date"},kr=g("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=nt[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(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:nt[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})}}),Rr=g("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=nt[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(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:nt[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})}}),jd=g("$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"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Lc(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})}}),ef=g("$ZodCheckNumberFormat",(e,t)=>{ae.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=qc[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=i,u.maximum=o,n&&(u.pattern=Wd)}),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})}}),tf=g("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=Gt),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,o=i.length;if((typeof i=="string"&&o>t.maximum?Et(i):o)<=t.maximum)return;const s=Ft(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),nf=g("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=Gt),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,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?Et(i):o)>=t.minimum)return;const s=Ft(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),rf=g("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=Gt),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,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?Et(i):o;if(s===t.length)return;const u=Ft(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})}}),rt=g("$ZodCheckStringFormat",(e,t)=>{var n,r;ae.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.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=()=>{})}),of=g("$ZodCheckRegex",(e,t)=>{rt.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})}}),af=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Qd),rt.init(e,t)}),sf=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xd),rt.init(e,t)}),uf=g("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=xe(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),cf=g("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${xe(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})}}),df=g("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${xe(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})}}),ff=g("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),lf=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}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(`
|
|
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`,Ft=`${sr}/legal`,V_=`${Ft}/2026_05_06_CGV_indiv_Revolugo_EN_FR.docx.pdf`,W_=`${Ft}/EN_privacy_policy_2024_revolugo.pdf`,X_=`${Ft}/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=$t(t?.locale),u=t?.mergeAmbiguousCharacters?Lt(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=$t(t?.locale),u=t?.mergeAmbiguousCharacters?Lt(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=$t(t?.locale);return n+r.map(Lt(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 $t(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Lt(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 zt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>zt(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?zt(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function F(e,t,n={}){return zt(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(),Jt=0;K&&!Y||(Jt=Y>0?Y-1:de.getMonth());var Et,er=Q||0,tr=Re||0,nr=Oe||0,rr=De||0;return ye?new Date(Date.UTC(Ne,Jt,Ae,er,tr,nr,rr+60*ye.offset*1e3)):k?new Date(Date.UTC(Ne,Jt,Ae,er,tr,nr,rr)):(Et=new Date(Ne,Jt,Ae,er,tr,nr,rr),ne&&(Et=w(Et).week(ne).toDate()),Et)}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 Ht(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)?Ht(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};Ht(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&&Ht(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 Bt(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 Ut(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 Zt(e){return new fd(e)}function ld(e){return e==null}function Gt(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=Zt(()=>{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 qt(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 Kt(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 Yt,we=!1,Dd={configurable:!0,get(){we=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Yt!==e._zod){Yt=void 0;return}Yt=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,Vt={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{Vt.value=new o(_);try{Object.defineProperty(h,"_zod",Vt)}finally{Vt.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,Ut,2)),e.message}function zd(e){this._zod.message=e}var Hd={get:Ld,set:zd,enumerable:!0,configurable:!0},Wt={value:void 0,enumerable:!1},Fr=new WeakSet([Object.prototype,Error.prototype]),$r=(e,t)=>{e.name="$ZodError",Wt.value=t,Object.defineProperty(e,"issues",Wt),Wt.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},Qt=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},xt=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 jt=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=Qt(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=Qt(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 xt(e)(t,n,i)},tf=e=>(t,n,r)=>xt(e)(t,n,r),nf=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return jt(e)(t,n,i)},rf=e=>async(t,n,r)=>jt(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 en(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(`^${en(e)}$`)}function Pf(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${en({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${en({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=[])}),tn=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=tn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>t.maximum?qt(i):o)<=t.maximum)return;const s=Kt(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=tn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?qt(i):o)>=t.minimum)return;const s=Kt(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=tn),e._zod.check=r=>{const i=r.value,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?qt(i):o;if(s===t.length)return;const u=Kt(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
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
4
|
${t.join(`
|
|
5
5
|
`)}
|
|
6
|
-
};`)(...Object.values(this.closed))}},mf={major:4,minor:5,patch:4},x=g("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=mf;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,f)=>{if(u.memo)return u;let m=be(u),h;for(const p of c){if(p._zod.def.when){if(xc(u)||!p._zod.def.when(u))continue}else if(m)continue;const O=u.issues.length,T=p._zod.check(u);if(T instanceof Promise&&f?.async===!1)throw new Me;if(h||T instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await T,u.issues.length!==O&&(mr(u.issues,O,e),m||(m=be(u,O)))});else{if(u.issues.length===O)continue;mr(u.issues,O,e),m||(m=be(u,O))}}return h?h.then(()=>u):u},s=(u,c,f)=>{if(be(u))return u.aborted=!0,u;const m=o(c,i,f);if(m instanceof Promise){if(f.async===!1)throw new Me;return m.then(h=>e._zod.parse(h,f))}return e._zod.parse(m,f)};e._zod.run=(u,c)=>{if(c.skipChecks)return e._zod.parse(u,c);if(c.direction==="backward"){const m=e._zod.parse({value:u.value,issues:[]},{...c,skipChecks:!0});return m instanceof Promise?m.then(h=>s(h,u,c)):s(m,u,c)}const f=e._zod.parse(u,c);if(f instanceof Promise){if(c.async===!1)throw new Me;return f.then(m=>o(m,i,c))}return o(f,i,c)}}},{get"~standard"(){return pr(this,"~standard",Pr(this))},set"~standard"(e){Ie(this,"~standard",e)}}),Nr=e=>e.success?{value:e.data}:{issues:e.error?.issues};function Pr(e){return{validate:t=>{try{return Nr(hd(e,t))}catch{return yd(e,t).then(Nr)}},vendor:"zod",version:1}}var qt=g("$ZodString",(e,t)=>{x.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Vd(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=g("$ZodStringFormat",(e,t)=>{rt.init(e,t),qt.init(e,t)}),pf=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Dd),V.init(e,t)}),hf=g("$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=Tr(n))}else t.pattern??(t.pattern=Tr());V.init(e,t)}),yf=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Jd),V.init(e,t)}),f_=1,l_=2;function gf(e,t){if(!t.normalize&&t.protocol?.source===Ud.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}var _f=/[\t\n\r]/g;function Of(e){return e.replace(_f,"")}function Af(e,t){return t.lastIndex=0,t.test(e.hostname)}function Sf(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Tf=g("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=gf(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}t.hostname&&!Af(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&&!Sf(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:Of(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),wf=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Fd()),V.init(e,t)}),vf=g("$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?Cd:Id(t.length)),V.init(e,t)}),kf=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=kd),V.init(e,t)}),Rf=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Rd),V.init(e,t)}),Nf=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Nd),V.init(e,t)}),Pf=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pd),V.init(e,t)}),bf=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=bd),V.init(e,t)}),Cf=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Yd(t)),V.init(e,t),(t.local||t.precision===-1)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(n=>{n._zod.bag.laxFormat=!0}))}),If=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=qd),V.init(e,t)}),Mf=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Kd(t)),V.init(e,t)}),Df=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Md),V.init(e,t)}),Jf=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=zd),V.init(e,t),e._zod.bag.format="ipv4"}),Ef=/^[0-9a-fA-F:.]+$/;function br(e){if(!Ef.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var Ff=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=$d),V.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{br(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),zf=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ld),V.init(e,t)});function $f(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:br(n)}var Lf=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Hd),V.init(e,t),e._zod.check=n=>{$f(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Cr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Hf=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Bd),V.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Cr(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Bf(e){if(!wr.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return Cr(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Uf=g("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=wr),V.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Bf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Zf=g("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Zd),V.init(e,t)});function Gf(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 qf=g("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{Gf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ir=g("$ZodNumber",(e,t)=>{x.init(e,t),e._zod.pattern=e._zod.bag.pattern??Xd,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}}),Kf=g("$ZodNumberFormat",(e,t)=>{ef.init(e,t),Ir.init(e,t)}),Yf=g("$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}}),Vf=g("$ZodUnknown",(e,t)=>{x.init(e,t),e._zod.parse=n=>n}),Wf=g("$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 Mr(e,t,n){e.issues.length&&t.issues.push(...lr(n,e.issues)),t.value[n]=e.value}var Xf=g("$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=[];for(let u=0;u<o.length;u++){const c=o[u],f=t.element._zod.run({value:c,issues:[]},i);f instanceof Promise?s.push(f.then(m=>Mr(m,r,u))):Mr(f,r,u)}return s.length?Promise.all(s).then(()=>r):r}});function it(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(...lr(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&&(t.value[n]=void 0):t.value[n]=e.value}}var Qf=[];function Dr(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Qf,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=Gc(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){const s=[],u=i.keySet,c=i.catchall._zod,f=c.def.type,m=c.optin,h=c.optout;for(const p in t){if(u.has(p))continue;if(p==="__proto__"){f==="never"&&s.push(p);continue}if(f==="never"){s.push(p);continue}const O=c.run({value:t[p],issues:[]},r);O instanceof Promise?e.push(O.then(T=>it(T,n,p,t,m,h))):it(O,n,p,t,m,h)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Er=new WeakMap,xf=g("$ZodObject",(e,t)=>{if(x.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Er.set(t,u),Object.defineProperty(t,"shape",{get:()=>{const c={...u};return Object.defineProperty(t,"shape",{value:c}),Er.set(t,c),c}})}const n=Dt(()=>Dr(t));G(e,"propValues",u=>{const c=u.def.shape,f={};for(const m in c){const h=c[m]._zod;if(h.values){Object.prototype.hasOwnProperty.call(f,m)||se(f,m,new Set);for(const p of h.values)f[m].add(p);h.optin!==void 0&&f[m].add(void 0)}}return f});const r=Qe,i=t.catchall;let o;const s=me.memoizer;s?.attach(e),e._zod.parse=(u,c)=>{o??(o=n.value);const f=u.value;if(!r(f))return u.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),u;u.value=s?s.alloc(e,u,{},c):{};const m=[],h=o.shape;for(const p of o.allKeys){if(p==="__proto__")continue;const O=h[p],T=O._zod.optin,y=O._zod.optout,_=O._zod.run({value:f[p],issues:[]},c);_ instanceof Promise?m.push(_.then(k=>it(k,u,p,f,T,y))):it(_,u,p,f,T,y)}return i?Jr(m,f,u,c,n.value,e):m.length?Promise.all(m).then(()=>u):u}}),jf=g("$ZodObjectJIT",(e,t)=>{xf.init(e,t);const n=e._zod.parse,r=Dt(()=>Dr(t)),i=me.memoizer,o=O=>{const T=r.value,y=T.symbolKeys,_=new lf(["payload","ctx"],{shape:O,inst:e,memo:i,syms:y}),k=I=>`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`,R=(I,P)=>`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
iss
|
|
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 nn=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),nn.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})}}),rn=/^[A-Za-z0-9_-]*$/;function Sl(e){if(!rn.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=rn),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=Zt(()=>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=Zt(()=>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}];
|
|
10
11
|
payload.issues.push(iss);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
if (iss.continue !== true) ${P}_ab = true;
|
|
13
|
+
}
|
|
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,$)}
|
|
15
21
|
}
|
|
16
22
|
|
|
17
23
|
if (${X}) {
|
|
18
|
-
newResult[${
|
|
24
|
+
newResult[${$}] = ${b}.value;
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
|
|
22
|
-
`)}else
|
|
23
|
-
if (${
|
|
28
|
+
`)}else I?(g.write(`
|
|
29
|
+
if (${b}.issues.length) {${R(b,$)}
|
|
24
30
|
}
|
|
25
|
-
|
|
26
|
-
if (${
|
|
27
|
-
|
|
28
|
-
newResult[${z}] = undefined;
|
|
29
|
-
}
|
|
30
|
-
} else {
|
|
31
|
-
newResult[${z}] = ${P}.value;
|
|
31
|
+
`),B==="defaulted"?g.write(`newResult[${$}] = ${b}.value;`):g.write(`
|
|
32
|
+
if (${b}.value !== undefined || ${U}) {
|
|
33
|
+
newResult[${$}] = ${b}.value;
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (${P}.issues.length) {${R(P,z)}
|
|
35
|
+
`)):g.write(`
|
|
36
|
+
const ${b}_present = ${U};
|
|
37
|
+
if (${b}.issues.length) {${R(b,$)}
|
|
37
38
|
}
|
|
38
|
-
if (!${
|
|
39
|
+
if (!${b}_present && !${b}.issues.length) {
|
|
39
40
|
payload.issues.push({
|
|
40
41
|
code: "invalid_type",
|
|
41
42
|
expected: "nonoptional",
|
|
42
43
|
input: undefined,
|
|
43
|
-
path: [${
|
|
44
|
+
path: [${$}]
|
|
44
45
|
});
|
|
46
|
+
if (ctx && ctx.abortEarly) {
|
|
47
|
+
payload.value = newResult;
|
|
48
|
+
return payload;
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
|
-
if (${
|
|
48
|
-
newResult[${
|
|
52
|
+
if (${b}_present) {
|
|
53
|
+
newResult[${$}] = ${b}.value;
|
|
49
54
|
}
|
|
50
55
|
|
|
51
|
-
`)}return _.write("payload.value = newResult;"),_.write("return payload;"),_.compile()};let s;const u=Qe,c=!me.jitless,m=c&&Uc.value,h=t.catchall;let p;e._zod.parse=(O,T)=>{p??(p=r.value);const y=O.value;return u(y)?c&&m&&T?.async===!1&&T.jitless!==!0?(s||(s=o(t.shape)),O=s(O,T),h?Jr([],y,O,T,p,e):O):n(O,T):(O.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),O)}});function Fr(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=>!be(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=>Ce(s,r,Te())))}),t)}var el=g("$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=>Jt(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=>Fr(u,r,e,i)):Fr(s,r,e,i)}}),tl=g("$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])=>zr(n,u,c)):zr(n,o,s)}});function Kt(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(He(e)&&He(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=Kt(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=Kt(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 zr(e,t,n){const r=new Map;let i;const o=new Map,s=(f,m)=>{let h;if(f.code==="unrecognized_keys"&&!f.path?.length)i??(i=f),h=f.keys;else if(f.code==="invalid_key"&&f.origin==="record"&&f.path?.length===1){const p=String(f.path[0]);o.has(p)||o.set(p,f),h=[p]}else return!1;for(const p of h)r.has(p)||r.set(p,{}),r.get(p)[m]=!0;return!0};for(const f of t.issues)s(f,"l")||e.issues.push(f);for(const f of n.issues)s(f,"r")||e.issues.push(f);const u=[...r].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(u.length){const f=i?u.filter(m=>i.keys.includes(m)):[];f.length&&e.issues.push({...i,keys:f});for(const m of u)!f.includes(m)&&o.has(m)&&e.issues.push(o.get(m))}const c=Kt(t.value,n.value);if(!c.valid){if(be(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var nl=g("$ZodEnum",(e,t)=>{x.init(e,t);const n=ar(t.entries),r=new Set(n);e._zod.values=r;const i=n.filter(o=>Zc.has(typeof o));e._zod.pattern=new RegExp(i.length?`^(${i.map(o=>xe(o.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(o,s)=>{const u=o.value;return r.has(u)||o.issues.push({code:"invalid_value",values:n,input:u,inst:e}),o}}),rl=g("$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 gr(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 $r(e,t){return e.value=t.issues.length?void 0:t.value,e}var Lr=g("$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(`^(${Jt(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=>$r(n,o)):$r(n,i)}return t.innerType._zod.run(n,r)}}),il=g("$ZodExactOptional",(e,t)=>{Lr.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)}),ol=g("$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(`^(${Jt(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)}),al=g("$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=>Hr(o,t)):Hr(i,t)}});function Hr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var sl=g("$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=g("$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=>Br(o,e)):Br(i,e)}});function Br(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 Ur(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(i=>Ce(i,r,Te()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var cl=g("$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=>Ur(n,o,t,r)):Ur(n,i,t,r)}}),dl=g("$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=>ot(s,t.in,r)):ot(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>ot(o,t.out,r)):ot(i,t.out,r)}});function ot(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 fl=g("$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(Zr):Zr(i)}});function Zr(e){return e.memo||(e.value=Object.freeze(e.value)),e}var ll=g("$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=>Gr(o,n,r,e));Gr(i,n,r,e)}});function Gr(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(Ue(i))}}var ml=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},Yt="~memo",qr=[];function Vt(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var Kr=new WeakMap;function Yr(e,t){const n=Kr.get(e);if(n!==void 0)return n;if(t.has(e))return!0;t.add(e);let r=!1;const i=s=>{!r&&s?._zod&&Yr(s,t)&&(r=!0)},o=e._zod.def;switch(o.type){case"object":for(const s of Reflect.ownKeys(o.shape))i(o.shape[s]);i(o.catchall);break;case"array":i(o.element);break;case"tuple":for(const s of o.items)i(s);i(o.rest);break;case"record":case"map":i(o.keyType),i(o.valueType);break;case"set":i(o.valueType);break;case"union":for(const s of o.options)i(s);break;case"intersection":i(o.left),i(o.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(o.innerType);break;case"pipe":i(o.in),i(o.out);break;case"function":i(o.input),i(o.output);break;case"lazy":i(e._zod.innerType);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 s in o){const u=Object.getOwnPropertyDescriptor(o,s);if(!u||u.get)continue;const c=u.value;if(!(!c||typeof c!="object")){if(c._zod)i(c);else if(Array.isArray(c))for(const f of c)i(f)}}}return t.delete(e),Kr.set(e,r),r}function pl(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}var at,st=[],hl={alloc(e,t,n){const r=at;if(!r)return n;at=void 0;const i={value:n,issues:null};return r.set(t.value,i),st.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"&&gl(o,i.value))throw new ml;return n(i,o)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const o=e._zod.parse,s=(u,c)=>{if(n===void 0&&(n=Yr(e,new Set),!n))return e._zod.parse=o,e._zod.run===s&&(e._zod.run=o),o(u,c);const f=u.value;if(f===null||typeof f!="object")return o(u,c);let m=c[Yt];m||(m={buckets:new Map,backEdges:void 0},c[Yt]=m);let h;r===c?h=i:(h=pl(m,e),r=c,i=h);const p=h.get(f);if(p)return u.value=p.value,p.issues?p.issues.length&&u.issues.push(...Vt(p.issues)):(u.memo=!0,m.backEdges??(m.backEdges=new Set),m.backEdges.add(p.value)),u;at=h;const O=st.length,T=o(u,c);at=void 0;const y=st.length>O?st.pop():void 0;return T instanceof Promise?T.then(_=>(y&&(y.issues=_.issues.length?Vt(_.issues):qr),_)):(y&&(y.issues=T.issues.length?Vt(T.issues):qr),T)};e._zod.parse=s,e._zod.run===o&&(e._zod.run=s)})}};function yl(){return hl}function gl(e,t){const n=e[Yt]?.backEdges;return n!==void 0&&t!==null&&typeof t=="object"&&n.has(t)}var _l=()=>{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",credit_card:"credit card number",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(ed(o.input),o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${dr(o.values[0])}`:`Invalid option: expected one of ${sr(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":""}: ${sr(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 Ol(){return{localeError:_l()}}var Vr,Al=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 Sl(){return new Al}(Vr=globalThis).__zod_globalRegistry??(Vr.__zod_globalRegistry=Sl());var Ze=globalThis.__zod_globalRegistry;function Tl(e,t){return new e({type:"string",...C(t)})}function wl(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...C(t)})}function vl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...C(t)})}function kl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...C(t)})}function Rl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...C(t)})}function Nl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...C(t)})}function Pl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...C(t)})}function bl(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...C(t)})}function Cl(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...C(t)})}function Il(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...C(t)})}function Ml(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...C(t)})}function Dl(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...C(t)})}function Jl(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...C(t)})}function El(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...C(t)})}function Fl(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...C(t)})}function zl(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...C(t)})}function $l(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...C(t)})}function Ll(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...C(t)})}function Hl(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...C(t)})}function Bl(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...C(t)})}function Ul(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...C(t)})}function Zl(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...C(t)})}function Gl(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...C(t)})}function ql(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...C(t)})}function Kl(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function Yl(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function Vl(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function Wl(e,t){return new e({type:"number",checks:[],...C(t)})}function Xl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...C(t)})}function Ql(e,t){return new e({type:"symbol",...C(t)})}function xl(e){return new e({type:"unknown"})}function jl(e,t){return new e({type:"never",...C(t)})}function Wr(e,t){return new kr({check:"less_than",...C(t),value:e,inclusive:!1})}function Wt(e,t){return new kr({check:"less_than",...C(t),value:e,inclusive:!0})}function Xr(e,t){return new Rr({check:"greater_than",...C(t),value:e,inclusive:!1})}function Xt(e,t){return new Rr({check:"greater_than",...C(t),value:e,inclusive:!0})}function Qr(e,t){return new jd({check:"multiple_of",...C(t),value:e})}function xr(e,t){return new tf({check:"max_length",...C(t),maximum:e})}function ut(e,t){return new nf({check:"min_length",...C(t),minimum:e})}function jr(e,t){return new rf({check:"length_equals",...C(t),length:e})}function em(e,t){return new of({check:"string_format",format:"regex",...C(t),pattern:e})}function tm(e){return new af({check:"string_format",format:"lowercase",...C(e)})}function nm(e){return new sf({check:"string_format",format:"uppercase",...C(e)})}function rm(e,t){return new uf({check:"string_format",format:"includes",...C(t),includes:e})}function im(e,t){return new cf({check:"string_format",format:"starts_with",...C(t),prefix:e})}function om(e,t){return new df({check:"string_format",format:"ends_with",...C(t),suffix:e})}function De(e){return new ff({check:"overwrite",tx:e})}function am(e){return De(t=>t.normalize(e))}function sm(){return De(e=>e.trim())}function um(){return De(e=>e.toLowerCase())}function cm(){return De(e=>e.toUpperCase())}function dm(){return De(e=>Bc(e))}function fm(e,t,n){return new e({type:"array",element:t,...C(n)})}function lm(e,t,n){return new e({type:"custom",check:"custom",fn:t,...C(n)})}function mm(e,t){const n=pm(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ue(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(Ue(o))}},e(r.value,r)),t);return n}function pm(e,t){const n=new ae({check:"custom",...C(t)});return n._zod.check=e,n}function Ge(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&se(e,r,n[r]);return e}function ei(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??Ze,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 Re(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 f={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,f);else{const h=s.schema,p=t.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(e,t,h,f)}const m=e._zod.parent;m&&(s.ref||(s.ref=m),te(m,t,f),t.seen.get(m).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Ge(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 ti(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ni(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 h=e.external.registry.get(s[0])?.id,p=e.external.uri??(T=>T);if(h)return{ref:p(h)};const O=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=O,{defId:O,ref:`${p("__shared")}#/${u}/${ti(O)}`}}const c="#",f=`${c}/${u}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};const m=s[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:f+ti(m)}},o=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:c,defId:f}=i(s);u.def={...u.schema},f&&(u.defId=f);const m=u.schema;for(const h in m)delete m[h];m.$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>
|
|
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=>Gt(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 on(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=on(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=on(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=on(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=Bt(t.entries),r=new Set(n);e._zod.values=r,G(e,"pattern",i=>{const o=Bt(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(`^(${Gt(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(`^(${Gt(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"}},an="~memo",ci=[];function di(e){return e!==null&&typeof e=="object"}function sn(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[an];m||(m={buckets:new WeakMap,backEdges:void 0},d[an]=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(...sn(_.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?sn(v.issues):ci),v)):(g&&(g.issues=y.issues.length?sn(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[an]?.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 un(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 cn(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>
|
|
52
57
|
|
|
53
|
-
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}if(u.count>1&&e.reused==="ref"){o(s);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function ri(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;ri(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 ii=new Set(["type","properties","required","additionalProperties"]),oi=["oneOf","anyOf"];function ai(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Qt(e){const t=[];for(const o of e){if(typeof o!="object"||o.type!=="object")return null;for(const s in o)if(!ii.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 f of t){const m=f.properties?.[s]??ai(f);m!=null&&(u.some(h=>JSON.stringify(h)===JSON.stringify(m))||u.push(m))}const c=u.length===1?u[0]:Qt(u)??{allOf:u};se(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=ai(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 hm(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const i of ii)if(i in e)return;const n=t.filter(i=>oi.some(o=>Array.isArray(i[o])));let r=null;if(!n.length)r=Qt(t);else{const i=n[0],o=oi.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=>Qt([...s,c]));if(u.some(c=>!c))return;r={[o]:u}}r&&(delete e.allOf,Ge(e,r))}function si(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 f=c.def??c.schema,m={...f},h=c.ref;if(c.ref=null,h){r(h);const O=e.seen.get(h),T=O.schema;if(T.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(T)):Ge(f,T),Ge(f,m),u._zod.parent===h)for(const y in f)y==="$ref"||y==="allOf"||y in m||delete f[y];if(T.$ref&&O.def)for(const y in f)y==="$ref"||y==="allOf"||y in O.def&&JSON.stringify(f[y])===JSON.stringify(O.def[y])&&delete f[y]}const p=u._zod.parent;if(p&&p!==h){r(p);const O=e.seen.get(p);if(O?.schema.$ref&&(f.$ref=O.schema.$ref,O.def))for(const T in f)T==="$ref"||T==="allOf"||T in O.def&&JSON.stringify(f[T])===JSON.stringify(O.def[T])&&delete f[T]}e.override({zodSchema:u,jsonSchema:f,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())ri(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 f of[c.schema,c.def]){const m=f?.allOf;if(!Array.isArray(m))continue;const h=u.get(m);h?h.push(f):u.set(m,[f])}for(const c of e.intersections)for(const f of u.get(c)??[])hm(f)}}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)}Ge(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,se(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:ct(t,"input",e.processors),output:ct(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 ym=(e,t={})=>n=>{const r=ei({...n,processors:t});return te(e,r),ni(r,e),si(r,e)},ct=(e,t,n={})=>r=>{const{libraryOptions:i,target:o}=r??{},s=ei({...i??{},target:o,io:t,processors:n});return te(e,s),ni(s,e),si(s,e)},gm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},_m=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:u,patterns:c,contentEncoding:f,laxFormat:m}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=gm[u]??u,i.format===""&&delete i.format,(u==="time"||m)&&delete i.format),f&&(i.contentEncoding=f),c&&c.size>0){const h=[...c];h.length===1?i.pattern=h[0].source:h.length>1&&(i.allOf=[...h.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Om=(e,t,n,r)=>{const i=n,{minimum:o,maximum:s,format:u,multipleOf:c,exclusiveMaximum:f,exclusiveMinimum:m}=e._zod.bag;typeof u=="string"&&u.includes("int")?i.type="integer":i.type="number";const h=typeof m=="number"&&m>=(o??Number.NEGATIVE_INFINITY),p=typeof f=="number"&&f<=(s??Number.POSITIVE_INFINITY),O=t.target==="draft-04"||t.target==="openapi-3.0";h?O?(i.minimum=m,i.exclusiveMinimum=!0):i.exclusiveMinimum=m:typeof o=="number"&&(i.minimum=o),p?O?(i.maximum=f,i.exclusiveMaximum=!0):i.exclusiveMaximum=f:typeof s=="number"&&(i.maximum=s),typeof c=="number"&&(Number.isFinite(c)&&c!==0?i.multipleOf=Math.abs(c):Re(e,t,i,r,`A multipleOf divisor of ${c} cannot be represented in JSON Schema`))},Am=(e,t,n,r)=>{Re(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Sm=(e,t,n,r)=>{n.not={}},Tm=(e,t,n,r)=>{},wm=(e,t,n,r)=>{const i=e._zod.def,o=ar(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},vm=(e,t,n,r)=>{Re(e,t,n,r,"Custom types cannot be represented in JSON Schema")},km=(e,t,n,r)=>{Re(e,t,n,r,"Transforms cannot be represented in JSON Schema")},Rm=(e,t,n,r)=>{const i=n,o=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(o.element,t,{...r,path:[...r.path,"items"]})};function xt(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?xt(t.out):t.type==="catch"?xt(t.innerType):e._zod.optin}var Nm=(e,t,n,r)=>{const i=n,o=e._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&Re(e,t,i,r,"Symbol keys cannot be represented in JSON Schema"))return;i.type="object",i.properties={};for(const f in s)se(i.properties,f,te(s[f],t,{...r,path:[...r.path,"properties",f]}));const u=new Set(Object.keys(s)),c=new Set([...u].filter(f=>{const m=o.shape[f];return t.io==="input"?xt(m)===void 0:m._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),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)},Pm=(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},bm=(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=f=>"allOf"in f&&Object.keys(f).length===1,c=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},Cm=(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"}]},Im=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},jt=Symbol();function ui(e,t,n,r,i){let o=!1;const s=JSON.stringify(e,(u,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(Re(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),jt):JSON.parse(s)}var Mm=(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=ui(i.defaultValue,e,t,n,r);s!==jt&&(n.default=s)},Dm=(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=ui(i.defaultValue,e,t,n,r);s!==jt&&(n._prefault=s)},Jm=(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{Re(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Em=(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},Fm=(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},ci=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},di=new WeakSet([Object.prototype,Error.prototype]);function dt(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 zm=(e,t)=>{Ar.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);di.has(n)||(di.add(n),dt(n,"format",r=>i=>pd(r,i)),dt(n,"flatten",r=>i=>md(r,i)),dt(n,"addIssue",r=>i=>{r.issues.push(i),r.message=JSON.stringify(r.issues,Mt,2)}),dt(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Mt,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ue=g("ZodError",zm,void 0,{Parent:Error}),$m=Bt(ue),Lm=Ut(ue),Hm=et(ue),Bm=tt(ue),Um=gd(ue),Zm=_d(ue),Gm=Od(ue),qm=Ad(ue),Km=Sd(ue),Ym=Td(ue),Vm=wd(ue),Wm=vd(ue);function Xm(){me.localeError||Te(Ol())}function en(){me.memoizer||Te({memoizer:yl()})}var j=g("ZodType",(e,t)=>(Xm(),x.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Oe(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 Ae(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Xp(e,t))},superRefine(e,t){return this.check(Qp(e,t))},overwrite(e){return this.check(De(e))},optional(){return _i(this)},exactOptional(){return zp(this)},nullable(){return Ai(this)},nullish(){return _i(Ai(this))},nonoptional(e){return Zp(this,e)},array(){return bp(this)},or(e){return hi([this,e])},and(e){return Jp(this,e)},transform(e){return Ti(this,Fp(e))},default(e){return Hp(this,e)},prefault(e){return Up(this,e)},catch(e){return qp(this,e)},pipe(e){return Ti(this,e)},readonly(){return Vp(this)},describe(e){const t=this.clone();return Ze.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ze.get(this);const t=this.clone();return Ze.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 pr(this,"~standard",{...Pr(this),jsonSchema:{input:ct(this,"input"),output:ct(this,"output")}})},set"~standard"(e){Ie(this,"~standard",e)},parse:function e(t,n){return $m(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Lm(this,t,n,{callee:e})},safeParse(e,t){return Hm(this,e,t)},async safeParseAsync(e,t){return Bm(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Ie(this,"spa",e)},encode:function e(t,n){return Um(this,t,n,{callee:e})},decode:function e(t,n){return Zm(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Gm(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await qm(this,t,n,{callee:e})},safeEncode(e,t){return Km(this,e,t)},safeDecode(e,t){return Ym(this,e,t)},async safeEncodeAsync(e,t){return Vm(this,e,t)},async safeDecodeAsync(e,t){return Wm(this,e,t)},toJSONSchema(e){return ym(this,{})(e)},get description(){return Ze.get(this)?.description},get _def(){return this._zod.def}}),fi=g("_ZodString",(e,t)=>{qt.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>_m(e,r,i,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(em(...e))},includes(...e){return this.check(rm(...e))},startsWith(...e){return this.check(im(...e))},endsWith(...e){return this.check(om(...e))},min(...e){return this.check(ut(...e))},max(...e){return this.check(xr(...e))},length(...e){return this.check(jr(...e))},nonempty(...e){return this.check(ut(1,...e))},lowercase(e){return this.check(tm(e))},uppercase(e){return this.check(nm(e))},trim(){return this.check(sm())},normalize(...e){return this.check(am(...e))},toLowerCase(){return this.check(um())},toUpperCase(){return this.check(cm())},slugify(){return this.check(dm())}}),Qm=g("ZodString",(e,t)=>{qt.init(e,t),fi.init(e,t)},{email(e){return this.check(wl(rp,e))},url(e){return this.check(bl(op,e))},jwt(e){return this.check(Gl(Ap,e))},emoji(e){return this.check(Cl(ap,e))},guid(e){return this.check(vl(ip,e))},uuid(e){return this.check(kl(ft,e))},uuidv4(e){return this.check(Rl(ft,e))},uuidv6(e){return this.check(Nl(ft,e))},uuidv7(e){return this.check(Pl(ft,e))},nanoid(e){return this.check(Il(sp,e))},cuid(e){return this.check(Ml(up,e))},cuid2(e){return this.check(Dl(cp,e))},ulid(e){return this.check(Jl(dp,e))},base64(e){return this.check(Bl(gp,e))},base64url(e){return this.check(Ul(_p,e))},xid(e){return this.check(El(fp,e))},ksuid(e){return this.check(Fl(lp,e))},ipv4(e){return this.check(zl(mp,e))},ipv6(e){return this.check($l(pp,e))},cidrv4(e){return this.check(Ll(hp,e))},cidrv6(e){return this.check(Hl(yp,e))},e164(e){return this.check(Zl(Op,e))},datetime(e){return this.check(ql(jm,e))},date(e){return this.check(Kl(ep,e))},time(e){return this.check(Yl(tp,e))},duration(e){return this.check(Vl(np,e))}});function xm(e){return Tl(Qm,e)}var W=g("ZodStringFormat",(e,t)=>{V.init(e,t),fi.init(e,t)}),jm=g("ZodISODateTime",(e,t)=>{Cf.init(e,t),W.init(e,t)}),ep=g("ZodISODate",(e,t)=>{If.init(e,t),W.init(e,t)}),tp=g("ZodISOTime",(e,t)=>{Mf.init(e,t),W.init(e,t)}),np=g("ZodISODuration",(e,t)=>{Df.init(e,t),W.init(e,t)}),rp=g("ZodEmail",(e,t)=>{yf.init(e,t),W.init(e,t)}),ip=g("ZodGUID",(e,t)=>{pf.init(e,t),W.init(e,t)}),ft=g("ZodUUID",(e,t)=>{hf.init(e,t),W.init(e,t)}),op=g("ZodURL",(e,t)=>{Tf.init(e,t),W.init(e,t)}),ap=g("ZodEmoji",(e,t)=>{wf.init(e,t),W.init(e,t)}),sp=g("ZodNanoID",(e,t)=>{vf.init(e,t),W.init(e,t)}),up=g("ZodCUID",(e,t)=>{kf.init(e,t),W.init(e,t)}),cp=g("ZodCUID2",(e,t)=>{Rf.init(e,t),W.init(e,t)}),dp=g("ZodULID",(e,t)=>{Nf.init(e,t),W.init(e,t)}),fp=g("ZodXID",(e,t)=>{Pf.init(e,t),W.init(e,t)}),lp=g("ZodKSUID",(e,t)=>{bf.init(e,t),W.init(e,t)}),mp=g("ZodIPv4",(e,t)=>{Jf.init(e,t),W.init(e,t)}),pp=g("ZodIPv6",(e,t)=>{Ff.init(e,t),W.init(e,t)}),hp=g("ZodCIDRv4",(e,t)=>{zf.init(e,t),W.init(e,t)}),yp=g("ZodCIDRv6",(e,t)=>{Lf.init(e,t),W.init(e,t)}),gp=g("ZodBase64",(e,t)=>{Hf.init(e,t),W.init(e,t)}),_p=g("ZodBase64URL",(e,t)=>{Uf.init(e,t),W.init(e,t)}),Op=g("ZodE164",(e,t)=>{Zf.init(e,t),W.init(e,t)}),Ap=g("ZodJWT",(e,t)=>{qf.init(e,t),W.init(e,t)}),li=g("ZodNumber",(e,t)=>{Ir.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Om(e,r,i,o);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},{gt(e,t){return this.check(Xr(e,t))},gte(e,t){return this.check(Xt(e,t))},min(e,t){return this.check(Xt(e,t))},lt(e,t){return this.check(Wr(e,t))},lte(e,t){return this.check(Wt(e,t))},max(e,t){return this.check(Wt(e,t))},int(e){return this.check(mi(e))},safe(e){return this.check(mi(e))},positive(e){return this.check(Xr(0,e))},nonnegative(e){return this.check(Xt(0,e))},negative(e){return this.check(Wr(0,e))},nonpositive(e){return this.check(Wt(0,e))},multipleOf(e,t){return this.check(Qr(e,t))},step(e,t){return this.check(Qr(e,t))},finite(){return this}});function Sp(e){return Wl(li,e)}var Tp=g("ZodNumberFormat",(e,t)=>{Kf.init(e,t),li.init(e,t)});function mi(e){return Xl(Tp,e)}var wp=g("ZodSymbol",(e,t)=>{Yf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Am(e,n,r,i)});function vp(e){return Ql(wp,e)}var kp=g("ZodUnknown",(e,t)=>{Vf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Tm(e,n,r,i)});function pi(){return xl(kp)}var Rp=g("ZodNever",(e,t)=>{Wf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Sm(e,n,r,i)});function Np(e){return jl(Rp,e)}var Pp=g("ZodArray",(e,t)=>{en(),Xf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Rm(e,n,r,i),e.element=t.element},{min(e,t){return this.check(ut(e,t))},nonempty(e){return this.check(ut(1,e))},max(e,t){return this.check(xr(e,t))},length(e,t){return this.check(jr(e,t))},unwrap(){return this.element}});function bp(e,t){return fm(Pp,e,t)}var Cp=g("ZodObject",(e,t)=>{en(),jf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Nm(e,n,r,i),od(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return yi(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:pi()})},loose(){return this.clone({...this._zod.def,catchall:pi()})},strict(){return this.clone({...this._zod.def,catchall:Np()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Vc(this,e)},safeExtend(e){return Wc(this,e)},merge(e){return Xc(this,e)},pick(e){return Kc(this,e)},omit(e){return Yc(this,e)},partial(...e){return fr(gi,this,e[0])},exactPartial(...e){return fr(Oi,this,e[0],"exactPartial")},required(...e){return Qc(Si,this,e[0])}});function Ip(e,t){const n={type:"object",shape:e??{},...C(t)};return new Cp(n)}var Mp=g("ZodUnion",(e,t)=>{el.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Pm(e,n,r,i),e.options=t.options});function hi(e,t){return new Mp({type:"union",options:e,...C(t)})}var Dp=g("ZodIntersection",(e,t)=>{tl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bm(e,n,r,i)});function Jp(e,t){return new Dp({type:"intersection",left:e,right:t})}var tn=g("ZodEnum",(e,t)=>{nl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>wm(e,r,i,o),e.enum=t.entries,e.options=Object.values(t.entries);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 tn({...t,checks:[],...C(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 tn({...t,checks:[],...C(i),entries:o})}});function yi(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new tn({type:"enum",entries:n,...C(t)})}var Ep=g("ZodTransform",(e,t)=>{en(),rl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>km(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new gr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ue(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(Ue(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Fp(e){return new Ep({type:"transform",transform:e})}var gi=g("ZodOptional",(e,t)=>{Lr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ci(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function _i(e){return new gi({type:"optional",innerType:e})}var Oi=g("ZodExactOptional",(e,t)=>{il.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ci(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function zp(e){return new Oi({type:"optional",innerType:e})}var $p=g("ZodNullable",(e,t)=>{ol.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Cm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Ai(e){return new $p({type:"nullable",innerType:e})}var Lp=g("ZodDefault",(e,t)=>{al.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Mm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Hp(e,t){return new Lp({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():cr(t)}})}var Bp=g("ZodPrefault",(e,t)=>{sl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Dm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Up(e,t){return new Bp({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():cr(t)}})}var Si=g("ZodNonOptional",(e,t)=>{ul.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Im(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Zp(e,t){return new Si({type:"nonoptional",innerType:e,...C(t)})}var Gp=g("ZodCatch",(e,t)=>{cl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Jm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qp(e,t){return new Gp({type:"catch",innerType:e,catchValue:typeof t=="function"?t:sd(t)})}var Kp=g("ZodPipe",(e,t)=>{dl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Em(e,n,r,i),e.in=t.in,e.out=t.out});function Ti(e,t){return new Kp({type:"pipe",in:e,out:t})}var Yp=g("ZodReadonly",(e,t)=>{fl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Vp(e){return new Yp({type:"readonly",innerType:e})}var Wp=g("ZodCustom",(e,t)=>{ll.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vm(e,n,r,i)});function Xp(e,t={}){return lm(Wp,e,t)}function Qp(e,t){return mm(e,t)}var xp=yi(["ASC","DESC"]),m_=Ip({sortBy:hi([xm(),Sp(),vp()]).optional(),sortOrder:xp.optional()}),jp=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 eh(){return new jp}var p_=eh(),wi="http://localhost".replace(/\/+$/,""),th=e=>typeof Blob<"u"&&e instanceof Blob,ce=class{configuration;middleware;constructor(e=new rn){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 nn(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||th(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,...or({},t,{headers:or({},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}},nn=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}},nh={csv:",",ssv:" ",tsv:" ",pipes:"|"},rn=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:wi}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 rh(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 ih(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())}},vi=class{raw;constructor(e){this.raw=e}async value(){}},oh=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 ah(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function sh(e){return ki(e,!1)}function ki(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function uh(e){return Ri(e,!1)}function Ri(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var ch={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function dh(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function fh(e){return Ni(e,!1)}function Ni(e,t){return e==null?e:{code:e.code,error:e.error}}function lh(e){return Pi(e,!1)}function Pi(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var mh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function ph(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 bi(e){return Ci(e,!1)}function Ci(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function Ii(e){return Mi(e,!1)}function Mi(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var hh={Coupon:"COUPON"};function yh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function gh(e){return sn(e,!1)}function sn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(bi)}}function Di(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(Ii)}}var _h={CreditCard:"CREDIT_CARD"};function Oh(e){return!(!("name"in e)||e.name===void 0)}function Ah(e){return un(e,!1)}function un(e,t){return e==null?e:{name:e.name}}function Ei(e){return Fi(e,!1)}function Fi(e,t=!1){return e==null?e:{name:e.name}}var Sh={DepositAccount:"DEPOSIT_ACCOUNT"};function Th(e){return!(!("name"in e)||e.name===void 0)}function wh(e){return cn(e,!1)}function cn(e,t){return e==null?e:{name:e.name}}function zi(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{name:e.name}}var vh={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function kh(e){return!(!("status"in e)||e.status===void 0)}function Li(e){return Hi(e,!1)}function Hi(e,t){return e==null?e:{status:e.status}}function Bi(e){return Ui(e,!1)}function Ui(e,t=!1){return e==null?e:{status:e.status}}var Rh={PayLater:"PAY_LATER"};function Nh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Ph(e){return dn(e,!1)}function dn(e,t){return e==null?e:{name:e.name,payload:Li(e.payload)}}function Zi(e){return Gi(e,!1)}function Gi(e,t=!1){return e==null?e:{name:e.name,payload:Bi(e.payload)}}function qi(e){return Ki(e,!1)}function Ki(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"};case"PAY_LATER":return{...dn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function Yi(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Di(e);case"CREDIT_CARD":return Ei(e);case"DEPOSIT_ACCOUNT":return zi(e);case"PAY_LATER":return Zi(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function bh(e,t=!1){return Yi(e)}function Ch(e){return!0}function fn(e){return Vi(e,!1)}function Vi(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 ln(e){return Wi(e,!1)}function Wi(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 Ih(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Mh(e){return Xi(e,!1)}function Xi(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Dh(e){return Qi(e,!1)}function Qi(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Jh(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function lt(e){return xi(e,!1)}function xi(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function mt(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var pt={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 Eh(e){for(const t in pt)if(Object.prototype.hasOwnProperty.call(pt,t)&&pt[t]===e)return!0;return!1}function qe(e){return eo(e,!1)}function eo(e,t){return e}function Fh(e){return e}function zh(e,t){return e}function $h(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 Je(e){return to(e,!1)}function to(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 Ke(e){return no(e,!1)}function no(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 Lh(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 ro(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(Je),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 oo(e){return ao(e,!1)}function ao(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(Ke),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 ht={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function Hh(e){for(const t in ht)if(Object.prototype.hasOwnProperty.call(ht,t)&&ht[t]===e)return!0;return!1}function so(e){return uo(e,!1)}function uo(e,t){return e}function Bh(e){return e}function Uh(e,t){return e}var Zh={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},Gh={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function qh(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function mn(e){return co(e,!1)}function co(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 fo(e,!1)}function fo(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 yt={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 Kh(e){for(const t in yt)if(Object.prototype.hasOwnProperty.call(yt,t)&&yt[t]===e)return!0;return!1}function pe(e){return lo(e,!1)}function lo(e,t){return e}function Yh(e){return e}function Vh(e,t){return e}function Wh(e){return!(!("name"in e)||e.name===void 0)}function hn(e){return mo(e,!1)}function mo(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 yn(e){return po(e,!1)}function po(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var Xh={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},Qh={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},xh={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function jh(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 Ee(e){return ho(e,!1)}function ho(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:so(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(lt),count:e.count==null?void 0:e.count,currency:pe(e.currency),flexOptionEligible:e.flex_option_eligible==null?void 0:e.flex_option_eligible,hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(ro),id:e.id==null?void 0:e.id,packageType:e.package_type==null?void 0:e.package_type,price:e.price,sourceMarket:qe(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:e.tags==null?void 0:e.tags.map(hn),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(mn),type:e.type==null?void 0:e.type}}function Fe(e){return yo(e,!1)}function yo(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(mt),count:e.count,currency:e.currency,flex_option_eligible:e.flexOptionEligible,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(oo),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(yn),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(pn),type:e.type}}var gt={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function ey(e){for(const t in gt)if(Object.prototype.hasOwnProperty.call(gt,t)&>[t]===e)return!0;return!1}function _t(e){return go(e,!1)}function go(e,t){return e}function ty(e){return e}function ny(e,t){return e}var Ot={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 ry(e){for(const t in Ot)if(Object.prototype.hasOwnProperty.call(Ot,t)&&Ot[t]===e)return!0;return!1}function At(e){return _o(e,!1)}function _o(e,t){return e}function iy(e){return e}function oy(e,t){return e}function ay(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 Oo(e){return Ao(e,!1)}function Ao(e,t){return e==null?e:{address:e.address,city:e.city,country:At(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 So(e){return To(e,!1)}function To(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 sy={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function uy(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 gn(e){return wo(e,!1)}function wo(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:At(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:_t(e.lang),lastName:e.last_name,nationality:At(e.nationality),organization:e.organization==null?void 0:Oo(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 _n(e){return vo(e,!1)}function vo(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:So(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function cy(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function ko(e){return Ro(e,!1)}function Ro(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function No(e){return Po(e,!1)}function Po(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var dy={Coupon:"COUPON"};function fy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ly(e){return On(e,!1)}function On(e,t){return e==null?e:{name:e.name,payload:e.payload.map(ko)}}function bo(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(No)}}function my(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function Io(e){return Mo(e,!1)}function Mo(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function Do(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var py={CreditCard:"CREDIT_CARD"};function hy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function yy(e){return An(e,!1)}function An(e,t){return e==null?e:{name:e.name,payload:Io(e.payload)}}function Eo(e){return Fo(e,!1)}function Fo(e,t=!1){return e==null?e:{name:e.name,payload:Do(e.payload)}}function gy(e){return!(!("amount"in e)||e.amount===void 0)}function zo(e){return $o(e,!1)}function $o(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 Lo(e){return Ho(e,!1)}function Ho(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var _y={DepositAccount:"DEPOSIT_ACCOUNT"};function Oy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Ay(e){return Sn(e,!1)}function Sn(e,t){return e==null?e:{name:e.name,payload:zo(e.payload)}}function Bo(e){return Uo(e,!1)}function Uo(e,t=!1){return e==null?e:{name:e.name,payload:Lo(e.payload)}}var Sy={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function Ty(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function Zo(e){return Go(e,!1)}function Go(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 qo(e){return Ko(e,!1)}function Ko(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var wy={PayLater:"PAY_LATER"};function vy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ky(e){return Tn(e,!1)}function Tn(e,t){return e==null?e:{name:e.name,payload:Zo(e.payload)}}function Yo(e){return Vo(e,!1)}function Vo(e,t=!1){return e==null?e:{name:e.name,payload:qo(e.payload)}}function Wo(e){return Xo(e,!1)}function Xo(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...On(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...An(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Sn(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 wn(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return bo(e);case"CREDIT_CARD":return Eo(e);case"DEPOSIT_ACCOUNT":return Bo(e);case"PAY_LATER":return Yo(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function Ry(e,t=!1){return wn(e)}var Ny={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function Py(e){return!(!("status"in e)||e.status===void 0)}function Qo(e){return xo(e,!1)}function xo(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 jo(e){return ea(e,!1)}function ea(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var by={CreditNote:"credit_note",Invoice:"invoice"};function Cy(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function ta(e){return na(e,!1)}function na(e,t){return e==null?e:{type:e.type,url:e.url}}function ra(e){return ia(e,!1)}function ia(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var Iy={Insurance:"insurance"};function My(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function vn(e){return oa(e,!1)}function oa(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function kn(e){return aa(e,!1)}function aa(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function Dy(e){return!0}function St(e){return sa(e,!1)}function sa(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 Tt(e){return ua(e,!1)}function ua(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function Jy(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 ca(e){return da(e,!1)}function da(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(Je),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 fa(e){return la(e,!1)}function la(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(Ke),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 Ey(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function wt(e){return ma(e,!1)}function ma(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function pa(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function Fy(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function Rn(e){return ya(e,!1)}function ya(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:ca(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(wt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function ga(e){return _a(e,!1)}function _a(e,t=!1){return e==null?e:{hotel_room:fa(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(pa),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var zy={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},$y={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 Ly(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 Oa(e,!1)}function Oa(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(vn),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(lt),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:gn(e.contact_person),createdAt:e.created_at,currency:pe(e.currency),customerReference:e.customer_reference==null?void 0:e.customer_reference,event:e.event==null?void 0:St(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:Ee(e.hotel_room_offer),hotelRoomingLists:e.hotel_rooming_lists==null?void 0:e.hotel_rooming_lists.map(Rn),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:Qo(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(ta),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(Wo),penaltyPercentage:e.penalty_percentage==null?void 0:e.penalty_percentage,reference:e.reference,sourceMarket:qe(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(mn),terms:e.terms,token:e.token==null?void 0:e.token}}function Aa(e){return Sa(e,!1)}function Sa(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(kn),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(mt),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:_n(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:Tt(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:Fe(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(ga),id:e.id,insurance:jo(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(ra),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(wn),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 Hy={Insurance:"insurance"};function By(e){return!(!("type"in e)||e.type===void 0)}function Ta(e){return wa(e,!1)}function wa(e,t){return e==null?e:{type:e.type}}function va(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{type:e.type}}function Uy(e){return!(!("fullname"in e)||e.fullname===void 0)}function Ra(e){return Na(e,!1)}function Na(e,t){return e==null?e:{fullname:e.fullname}}function Pa(e){return ba(e,!1)}function ba(e,t=!1){return e==null?e:{fullname:e.fullname}}function Zy(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function Ca(e){return Ia(e,!1)}function Ia(e,t){return e==null?e:{guests:e.guests.map(Ra),hotelRoomId:e.hotel_room_id}}function Ma(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{guests:e.guests.map(Pa),hotel_room_id:e.hotelRoomId}}function Gy(e){return!0}function ze(e){return Ja(e,!1)}function Ja(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 $e(e){return Ea(e,!1)}function Ea(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 qy(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function Fa(e){return za(e,!1)}function za(e,t){return e==null?e:{couponIds:e.coupon_ids}}function $a(e){return La(e,!1)}function La(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Ky={Coupon:"COUPON"};function Yy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Vy(e){return Nn(e,!1)}function Nn(e,t){return e==null?e:{name:e.name,payload:Fa(e.payload)}}function Ha(e){return Ba(e,!1)}function Ba(e,t=!1){return e==null?e:{name:e.name,payload:$a(e.payload)}}var Wy={CreditCard:"CREDIT_CARD"};function Xy(e){return!(!("name"in e)||e.name===void 0)}function Qy(e){return Pn(e,!1)}function Pn(e,t){return e==null?e:{name:e.name}}function Ua(e){return Za(e,!1)}function Za(e,t=!1){return e==null?e:{name:e.name}}var xy={DepositAccount:"DEPOSIT_ACCOUNT"};function jy(e){return!(!("name"in e)||e.name===void 0)}function eg(e){return bn(e,!1)}function bn(e,t){return e==null?e:{name:e.name}}function Ga(e){return qa(e,!1)}function qa(e,t=!1){return e==null?e:{name:e.name}}function Cn(e){return Ka(e,!1)}function Ka(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Nn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Pn(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 vt(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Ha(e);case"CREDIT_CARD":return Ua(e);case"DEPOSIT_ACCOUNT":return Ga(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function tg(e,t=!1){return vt(e)}function ng(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function rg(e){return Ya(e,!1)}function Ya(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Ta),bookingPolicyId:e.booking_policy_id,contactPerson:gn(e.contact_person),eventMetadata:e.event_metadata==null?void 0:ze(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(Ca),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Cn),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function Va(e){return Wa(e,!1)}function Wa(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(va),booking_policy_id:e.bookingPolicyId,contact_person:_n(e.contactPerson),event_metadata:$e(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(Ma),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(vt),tracking_id:e.trackingId}}function ig(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 In(e){return Xa(e,!1)}function Xa(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(vn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(lt),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:pe(e.currency),expiresAt:e.expires_at==null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:Ee(e.hotel_room_offer),id:e.id,isCancellationPoliciesUpdated:e.is_cancellation_policies_updated,isPriceIncreased:e.is_price_increased}}function og(e){return Qa(e,!1)}function Qa(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(kn),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(mt),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:Fe(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function ag(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function sg(e){return xa(e,!1)}function xa(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:_t(e.lang)}}function ja(e){return es(e,!1)}function es(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 ug(e){return!0}function ts(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}}function rs(e){return is(e,!1)}function is(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function cg(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:e.data.map(le),meta:ts(e.meta)}}function dg(e){return ss(e,!1)}function ss(e,t=!1){return e==null?e:{data:e.data.map(Aa),meta:rs(e.meta)}}var fg={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 lg(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function mg(e){return us(e,!1)}function us(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 pg(e){return cs(e,!1)}function cs(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function hg(e){return!(!("rating"in e)||e.rating===void 0)}function Mn(e){return ds(e,!1)}function ds(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function Dn(e){return fs(e,!1)}function fs(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function yg(e){return!0}function Jn(e){return ls(e,!1)}function ls(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 En(e){return ms(e,!1)}function ms(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 gg(e){return!0}function ps(e){return hs(e,!1)}function hs(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 ys(e){return gs(e,!1)}function gs(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function _g(e){return!(!("name"in e)||e.name===void 0)}function Fn(e){return _s(e,!1)}function _s(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:ps(e.travel_times)}}function zn(e){return Os(e,!1)}function Os(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:ys(e.travelTimes)}}function Og(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 As(e){return Ss(e,!1)}function Ss(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:fn(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:pe(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(Je),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Mn),id:e.id,images:e.images==null?void 0:Jn(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(Fn),website:e.website==null?void 0:e.website}}function Ag(e){return Ts(e,!1)}function Ts(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:ln(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(Ke),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(Dn),id:e.id,images:En(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(zn),website:e.website}}function Sg(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 ws(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:fn(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:pe(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(Je),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Mn),id:e.id,images:e.images==null?void 0:Jn(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(Fn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(Ee),tags:e.tags==null?void 0:e.tags.map(hn)}}function ks(e){return Rs(e,!1)}function Rs(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:ln(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(Ke),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(Dn),id:e.id,images:En(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(zn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Fe),tags:e.tags==null?void 0:e.tags.map(yn)}}function Tg(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 Ns(e,!1)}function Ns(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:ze(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:qe(e.source_market)}}function wg(e){return Ps(e,!1)}function Ps(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:$e(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function vg(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 kg(e){return bs(e,!1)}function bs(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:ze(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function Cs(e){return Is(e,!1)}function Is(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:$e(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function Rg(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 Ms(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,currency:pe(e.currency),hotelOffers:e.hotel_offers.map(ws),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 Js(e){return Es(e,!1)}function Es(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(ks),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var kt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function Ng(e){for(const t in kt)if(Object.prototype.hasOwnProperty.call(kt,t)&&kt[t]===e)return!0;return!1}function Fs(e){return zs(e,!1)}function zs(e,t){return e}function Pg(e){return e}function bg(e,t){return e}function Cg(e){return!(!("status"in e)||e.status===void 0)}function Ln(e){return $s(e,!1)}function $s(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:Fs(e.status)}}function Hn(e){return Ls(e,!1)}function Ls(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 Ig(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Hs(e){return Bs(e,!1)}function Bs(e,t){return e==null?e:{data:Ms(e.data),event:e.event==null?void 0:St(e.event),meta:Ln(e.meta)}}function Mg(e){return Us(e,!1)}function Us(e,t=!1){return e==null?e:{data:Js(e.data),event:Tt(e.event),meta:Hn(e.meta)}}function Dg(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 Zs(e){return Gs(e,!1)}function Gs(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:pe(e.currency),hotelId:e.hotel_id,hotelRoomOffer:Ee(e.hotel_room_offer)}}function Jg(e){return qs(e,!1)}function qs(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:Fe(e.hotelRoomOffer)}}function Eg(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 Bn(e){return Ks(e,!1)}function Ks(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:ze(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:qe(e.source_market)}}function Fg(e){return Ys(e,!1)}function Ys(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:$e(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function zg(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 $g(e){return Vs(e,!1)}function Vs(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:ze(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function Ws(e){return Xs(e,!1)}function Xs(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:$e(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function Lg(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 Qs(e){return xs(e,!1)}function xs(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:pe(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(Ee),hotelTimezone:e.hotel_timezone}}function js(e){return eu(e,!1)}function eu(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(Fe),hotel_timezone:e.hotelTimezone}}function Hg(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function tu(e){return nu(e,!1)}function nu(e,t){return e==null?e:{data:Qs(e.data),event:e.event==null?void 0:St(e.event),meta:Ln(e.meta)}}function Bg(e){return ru(e,!1)}function ru(e,t=!1){return e==null?e:{data:js(e.data),event:Tt(e.event),meta:Hn(e.meta)}}function Ug(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function iu(e){return ou(e,!1)}function ou(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 au(e){return su(e,!1)}function su(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function Zg(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function Gg(e){return uu(e,!1)}function uu(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:pe(e.currency),hotelRoomOffers:e.hotel_room_offers.map(iu),lang:e.lang==null?void 0:_t(e.lang)}}function cu(e){return du(e,!1)}function du(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(au),lang:e.lang}}function qg(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function Kg(e){return fu(e,!1)}function fu(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function lu(e){return mu(e,!1)}function mu(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function Yg(e){return!(!("fullname"in e)||e.fullname===void 0)}function Vg(e){return pu(e,!1)}function pu(e,t){return e==null?e:{fullname:e.fullname}}function hu(e){return yu(e,!1)}function yu(e,t=!1){return e==null?e:{fullname:e.fullname}}function Wg(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function Xg(e){return gu(e,!1)}function gu(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(Cn)}}function _u(e){return Ou(e,!1)}function Ou(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(vt)}}var Qg={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 xg(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function jg(e){return Au(e,!1)}function Au(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Su(e){return Tu(e,!1)}function Tu(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var wu=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:E(n,D.Snake)},t);return new q(i,o=>In(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:E(n,D.Snake)},t);return new q(i,o=>o.map(qi))}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,D.Snake),body:E(ja(e.bookingPoliciesCreateApi),D.Snake)},t);return new q(i,o=>In(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},vu=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:E({},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:E(n,D.Snake)},t);return new q(i,o=>os(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:E(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:E(n,D.Snake)},t);return new vi(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:E({},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:E(n,D.Snake),body:E(Va(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:E(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:E(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:E(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:E(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:E(n,D.Snake),body:E(Su(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:E(n,D.Snake),body:E(_u(e.paymentMethodUpdatePayloadApi),D.Snake)},t);return new q(i,o=>le(o))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},e_={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},t_={Asc:"asc",Desc:"desc"},ku=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:E(n,D.Snake)},t);return new q(i,o=>o.map(Je))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Ru=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:E(n,D.Snake)},t);return new q(i,o=>$n(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:E(n,D.Snake),body:E(Cs(e.hotelOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>$n(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Nu=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:E(n,D.Snake)},t);return new q(i,o=>Hs(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Wn.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?Xe(r,i,t):Xe(r,i)}},n_={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},r_={Asc:"asc",Desc:"desc"},Pu=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:E({},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:E(n,D.Snake),body:E(hu(e.hotelRoomingListGuestsUpdateApi),D.Snake)},t);return new q(i,o=>wt(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:E(n,D.Snake),body:E(lu(e.hotelRoomingListGuestsCreateApi),D.Snake)},t);return new q(i,o=>wt(o))}async create(e,t){return await(await this.createRaw(e,t)).value()}},bu=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:E(n,D.Snake)},t);return new q(r,i=>i.map(Rn))}async list(e,t){return await(await this.listRaw(e,t)).value()}},Cu=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:E(n,D.Snake)},t);return new q(i,o=>E(o,D.Camel))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Iu=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:E(n,D.Snake)},t);return new q(i,o=>Bn(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:E(n,D.Snake),body:E(Ws(e.hotelRoomOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>Bn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Mu=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:E(n,D.Snake)},t);return new q(i,o=>tu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Wn.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?Xe(r,i,t):Xe(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,D.Snake),body:E(cu(e.hotelRoomOffersCreateApi),D.Snake)},t);return new q(i,o=>Zs(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Du=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.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,D.Snake)},t);return new q(i,o=>As(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Ju=class extends nn{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}},i_=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 Ju({body:n,response:t,status:t.status})}},Eu=e=>({bookingPolicies:new wu(e),bookings:new vu(e),hotelImages:new ku(e),hotelOfferRequests:new Ru(e),hotelOffers:new Nu(e),hotelRoomingListGuests:new Pu(e),hotelRoomingLists:new bu(e),hotelRoomOfferImages:new Cu(e),hotelRoomOfferRequests:new Iu(e),hotelRoomOffers:new Mu(e),hotels:new Du(e)});function o_(e){switch(e){case Pe.CiCd:return"AUTH_TOKEN_CICD";case Pe.Local:return"AUTH_TOKEN_LOCAL";case Pe.Production:return"AUTH_TOKEN";case Pe.Sandbox:return"AUTH_TOKEN_SANDBOX";case Pe.Staging:return"AUTH_TOKEN_STAGING";case void 0:default:return"AUTH_TOKEN"}}function Fu(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(o_(e))))}var a_=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",Fu(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},s_=class{config;constructor(e){this.config=e}async pre(e){return Fu(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},u_=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(Vn).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(Vn))}`);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??Bu[n];!this.config.apiBaseUrl&&n===Pe.Local&&(r="http://127.0.0.1:3001");const i=new rn({basePath:r,fetchApi:Zu.default,headers:t,middleware:[new a_(this.config),new s_(this.config),new i_]});this.apiVersionsToClient={v1:Eu(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=qi,a.AllowedPaymentMethodApiFromJSONTyped=Ki,a.AllowedPaymentMethodApiToJSON=Yi,a.AllowedPaymentMethodApiToJSONTyped=bh,a.AllowedPaymentMethodCouponApiFromJSON=gh,a.AllowedPaymentMethodCouponApiFromJSONTyped=sn,a.AllowedPaymentMethodCouponApiNameEnum=hh,a.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=mh,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=bi,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=Ci,a.AllowedPaymentMethodCouponApiPayloadInnerToJSON=Ii,a.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=Mi,a.AllowedPaymentMethodCouponApiToJSON=Di,a.AllowedPaymentMethodCouponApiToJSONTyped=Ji,a.AllowedPaymentMethodCreditCardApiFromJSON=Ah,a.AllowedPaymentMethodCreditCardApiFromJSONTyped=un,a.AllowedPaymentMethodCreditCardApiNameEnum=_h,a.AllowedPaymentMethodCreditCardApiToJSON=Ei,a.AllowedPaymentMethodCreditCardApiToJSONTyped=Fi,a.AllowedPaymentMethodDepositAccountApiFromJSON=wh,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=cn,a.AllowedPaymentMethodDepositAccountApiNameEnum=Sh,a.AllowedPaymentMethodDepositAccountApiToJSON=zi,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=$i,a.AllowedPaymentMethodPayLaterApiFromJSON=Ph,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=dn,a.AllowedPaymentMethodPayLaterApiNameEnum=Rh,a.AllowedPaymentMethodPayLaterApiPayloadFromJSON=Li,a.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=Hi,a.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=vh,a.AllowedPaymentMethodPayLaterApiPayloadToJSON=Bi,a.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=Ui,a.AllowedPaymentMethodPayLaterApiToJSON=Zi,a.AllowedPaymentMethodPayLaterApiToJSONTyped=Gi,a.AmenitiesApiFromJSON=fn,a.AmenitiesApiFromJSONTyped=Vi,a.AmenitiesApiToJSON=ln,a.AmenitiesApiToJSONTyped=Wi,a.ApiClient=u_,a.ApiError=Ju,a.BASE_PATH=wi,a.BaseAPI=ce,a.BedApiFromJSON=Mh,a.BedApiFromJSONTyped=Xi,a.BedApiToJSON=Dh,a.BedApiToJSONTyped=Qi,a.BlobApiResponse=oh,a.BookingApiFromJSON=le,a.BookingApiFromJSONTyped=Oa,a.BookingApiPayLaterEnum=zy,a.BookingApiStatusEnum=$y,a.BookingApiToJSON=Aa,a.BookingApiToJSONTyped=Sa,a.BookingCreateApiFromJSON=rg,a.BookingCreateApiFromJSONTyped=Ya,a.BookingCreateApiGuestsListInnerFromJSON=Ca,a.BookingCreateApiGuestsListInnerFromJSONTyped=Ia,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=Ra,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=Na,a.BookingCreateApiGuestsListInnerGuestsInnerToJSON=Pa,a.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=ba,a.BookingCreateApiGuestsListInnerToJSON=Ma,a.BookingCreateApiGuestsListInnerToJSONTyped=Da,a.BookingCreateApiToJSON=Va,a.BookingCreateApiToJSONTyped=Wa,a.BookingPolicies=wu,a.BookingPoliciesApiFromJSON=In,a.BookingPoliciesApiFromJSONTyped=Xa,a.BookingPoliciesApiToJSON=og,a.BookingPoliciesApiToJSONTyped=Qa,a.BookingPoliciesCreateApiFromJSON=sg,a.BookingPoliciesCreateApiFromJSONTyped=xa,a.BookingPoliciesCreateApiToJSON=ja,a.BookingPoliciesCreateApiToJSONTyped=es,a.Bookings=vu,a.BookingsApiResponseFromJSON=os,a.BookingsApiResponseFromJSONTyped=as,a.BookingsApiResponseToJSON=dg,a.BookingsApiResponseToJSONTyped=ss,a.BookingsSortByEnum=e_,a.BookingsSortByOrderEnum=t_,a.BreakfastOption=ht,a.BreakfastOptionFromJSON=so,a.BreakfastOptionFromJSONTyped=uo,a.BreakfastOptionToJSON=Bh,a.BreakfastOptionToJSONTyped=Uh,a.COLLECTION_FORMATS=nh,a.CancellationPolicyApiFromJSON=lt,a.CancellationPolicyApiFromJSONTyped=xi,a.CancellationPolicyApiToJSON=mt,a.CancellationPolicyApiToJSONTyped=ji,a.Configuration=rn,a.ContactPersonApiFromJSON=gn,a.ContactPersonApiFromJSONTyped=wo,a.ContactPersonApiSalutationEnum=sy,a.ContactPersonApiToJSON=_n,a.ContactPersonApiToJSONTyped=vo,a.ContactPersonOrganizationApiFromJSON=Oo,a.ContactPersonOrganizationApiFromJSONTyped=Ao,a.ContactPersonOrganizationApiToJSON=So,a.ContactPersonOrganizationApiToJSONTyped=To,a.CountryIso2Code=Ot,a.CountryIso2CodeFromJSON=At,a.CountryIso2CodeFromJSONTyped=_o,a.CountryIso2CodeToJSON=iy,a.CountryIso2CodeToJSONTyped=oy,a.CouponPreviewAppliedApiFromJSON=sh,a.CouponPreviewAppliedApiFromJSONTyped=ki,a.CouponPreviewAppliedApiToJSON=uh,a.CouponPreviewAppliedApiToJSONTyped=Ri,a.CouponPreviewRejectedApiErrorEnum=ch,a.CouponPreviewRejectedApiFromJSON=fh,a.CouponPreviewRejectedApiFromJSONTyped=Ni,a.CouponPreviewRejectedApiToJSON=lh,a.CouponPreviewRejectedApiToJSONTyped=Pi,a.CurrencyClient=yt,a.CurrencyClientFromJSON=pe,a.CurrencyClientFromJSONTyped=lo,a.CurrencyClientToJSON=Yh,a.CurrencyClientToJSONTyped=Vh,a.ErrorApiResponseFromJSON=mg,a.ErrorApiResponseFromJSONTyped=us,a.ErrorApiResponseToJSON=pg,a.ErrorApiResponseToJSONTyped=cs,a.ErrorApiResponseTypeEnum=fg,a.EventApiFromJSON=St,a.EventApiFromJSONTyped=sa,a.EventApiToJSON=Tt,a.EventApiToJSONTyped=ua,a.EventMetadataApiFromJSON=ze,a.EventMetadataApiFromJSONTyped=Ja,a.EventMetadataApiToJSON=$e,a.EventMetadataApiToJSONTyped=Ea,a.HotelApiFromJSON=As,a.HotelApiFromJSONTyped=Ss,a.HotelApiImagesFromJSON=Jn,a.HotelApiImagesFromJSONTyped=ls,a.HotelApiImagesToJSON=En,a.HotelApiImagesToJSONTyped=ms,a.HotelApiToJSON=Ag,a.HotelApiToJSONTyped=Ts,a.HotelImageApiFromJSON=Je,a.HotelImageApiFromJSONTyped=to,a.HotelImageApiToJSON=Ke,a.HotelImageApiToJSONTyped=no,a.HotelImages=ku,a.HotelOfferApiFromJSON=ws,a.HotelOfferApiFromJSONTyped=vs,a.HotelOfferApiToJSON=ks,a.HotelOfferApiToJSONTyped=Rs,a.HotelOfferRequestApiResponseFromJSON=$n,a.HotelOfferRequestApiResponseFromJSONTyped=Ns,a.HotelOfferRequestApiResponseToJSON=wg,a.HotelOfferRequestApiResponseToJSONTyped=Ps,a.HotelOfferRequestCreateApiFromJSON=kg,a.HotelOfferRequestCreateApiFromJSONTyped=bs,a.HotelOfferRequestCreateApiToJSON=Cs,a.HotelOfferRequestCreateApiToJSONTyped=Is,a.HotelOfferRequests=Ru,a.HotelOffers=Nu,a.HotelOffersApiResponseFromJSON=Hs,a.HotelOffersApiResponseFromJSONTyped=Bs,a.HotelOffersApiResponseToJSON=Mg,a.HotelOffersApiResponseToJSONTyped=Us,a.HotelOffersDataApiResponseFromJSON=Ms,a.HotelOffersDataApiResponseFromJSONTyped=Ds,a.HotelOffersDataApiResponseToJSON=Js,a.HotelOffersDataApiResponseToJSONTyped=Es,a.HotelOffersSortByEnum=n_,a.HotelOffersSortByOrderEnum=r_,a.HotelReviewRatingApiFromJSON=Mn,a.HotelReviewRatingApiFromJSONTyped=ds,a.HotelReviewRatingApiToJSON=Dn,a.HotelReviewRatingApiToJSONTyped=fs,a.HotelRoomOfferApiFromJSON=Ee,a.HotelRoomOfferApiFromJSONTyped=ho,a.HotelRoomOfferApiHotelRoomsInnerFromJSON=ro,a.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=io,a.HotelRoomOfferApiHotelRoomsInnerToJSON=oo,a.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=ao,a.HotelRoomOfferApiPackageTypeEnum=Xh,a.HotelRoomOfferApiResponseFromJSON=Zs,a.HotelRoomOfferApiResponseFromJSONTyped=Gs,a.HotelRoomOfferApiResponseToJSON=Jg,a.HotelRoomOfferApiResponseToJSONTyped=qs,a.HotelRoomOfferApiStayTaxesInfoEnum=Qh,a.HotelRoomOfferApiToJSON=Fe,a.HotelRoomOfferApiToJSONTyped=yo,a.HotelRoomOfferApiTypeEnum=xh,a.HotelRoomOfferImages=Cu,a.HotelRoomOfferRequestApiResponseFromJSON=Bn,a.HotelRoomOfferRequestApiResponseFromJSONTyped=Ks,a.HotelRoomOfferRequestApiResponseToJSON=Fg,a.HotelRoomOfferRequestApiResponseToJSONTyped=Ys,a.HotelRoomOfferRequestCreateApiFromJSON=$g,a.HotelRoomOfferRequestCreateApiFromJSONTyped=Vs,a.HotelRoomOfferRequestCreateApiToJSON=Ws,a.HotelRoomOfferRequestCreateApiToJSONTyped=Xs,a.HotelRoomOfferRequests=Iu,a.HotelRoomOffers=Mu,a.HotelRoomOffersApiResponseFromJSON=tu,a.HotelRoomOffersApiResponseFromJSONTyped=nu,a.HotelRoomOffersApiResponseToJSON=Bg,a.HotelRoomOffersApiResponseToJSONTyped=ru,a.HotelRoomOffersCreateApiFromJSON=Gg,a.HotelRoomOffersCreateApiFromJSONTyped=uu,a.HotelRoomOffersCreateApiToJSON=cu,a.HotelRoomOffersCreateApiToJSONTyped=du,a.HotelRoomOffersDataApiResponseFromJSON=Qs,a.HotelRoomOffersDataApiResponseFromJSONTyped=xs,a.HotelRoomOffersDataApiResponseToJSON=js,a.HotelRoomOffersDataApiResponseToJSONTyped=eu,a.HotelRoomOffersDataCreateApiFromJSON=iu,a.HotelRoomOffersDataCreateApiFromJSONTyped=ou,a.HotelRoomOffersDataCreateApiToJSON=au,a.HotelRoomOffersDataCreateApiToJSONTyped=su,a.HotelRoomingListApiFromJSON=Rn,a.HotelRoomingListApiFromJSONTyped=ya,a.HotelRoomingListApiHotelRoomFromJSON=ca,a.HotelRoomingListApiHotelRoomFromJSONTyped=da,a.HotelRoomingListApiHotelRoomToJSON=fa,a.HotelRoomingListApiHotelRoomToJSONTyped=la,a.HotelRoomingListApiToJSON=ga,a.HotelRoomingListApiToJSONTyped=_a,a.HotelRoomingListGuestApiFromJSON=wt,a.HotelRoomingListGuestApiFromJSONTyped=ma,a.HotelRoomingListGuestApiToJSON=pa,a.HotelRoomingListGuestApiToJSONTyped=ha,a.HotelRoomingListGuests=Pu,a.HotelRoomingListGuestsCreateApiFromJSON=Kg,a.HotelRoomingListGuestsCreateApiFromJSONTyped=fu,a.HotelRoomingListGuestsCreateApiToJSON=lu,a.HotelRoomingListGuestsCreateApiToJSONTyped=mu,a.HotelRoomingListGuestsUpdateApiFromJSON=Vg,a.HotelRoomingListGuestsUpdateApiFromJSONTyped=pu,a.HotelRoomingListGuestsUpdateApiToJSON=hu,a.HotelRoomingListGuestsUpdateApiToJSONTyped=yu,a.HotelRoomingLists=bu,a.Hotels=Du,a.InsuranceApiFromJSON=Qo,a.InsuranceApiFromJSONTyped=xo,a.InsuranceApiStatusEnum=Ny,a.InsuranceApiToJSON=jo,a.InsuranceApiToJSONTyped=ea,a.InvoiceApiFromJSON=ta,a.InvoiceApiFromJSONTyped=na,a.InvoiceApiToJSON=ra,a.InvoiceApiToJSONTyped=ia,a.InvoiceApiTypeEnum=by,a.JSONApiResponse=q,a.Locale=gt,a.LocaleFromJSON=_t,a.LocaleFromJSONTyped=go,a.LocaleToJSON=ty,a.LocaleToJSONTyped=ny,a.MetaPollingResponseApiFromJSON=Ln,a.MetaPollingResponseApiFromJSONTyped=$s,a.MetaPollingResponseApiToJSON=Hn,a.MetaPollingResponseApiToJSONTyped=Ls,a.MetaResponseApiFromJSON=ts,a.MetaResponseApiFromJSONTyped=ns,a.MetaResponseApiToJSON=rs,a.MetaResponseApiToJSONTyped=is,a.OrderAddonFromJSON=vn,a.OrderAddonFromJSONTyped=oa,a.OrderAddonSelectionFromJSON=Ta,a.OrderAddonSelectionFromJSONTyped=wa,a.OrderAddonSelectionToJSON=va,a.OrderAddonSelectionToJSONTyped=ka,a.OrderAddonSelectionTypeEnum=Hy,a.OrderAddonToJSON=kn,a.OrderAddonToJSONTyped=aa,a.OrderAddonTypeEnum=Iy,a.PaymentMethodApiFromJSON=Wo,a.PaymentMethodApiFromJSONTyped=Xo,a.PaymentMethodApiToJSON=wn,a.PaymentMethodApiToJSONTyped=Ry,a.PaymentMethodCouponApiFromJSON=ly,a.PaymentMethodCouponApiFromJSONTyped=On,a.PaymentMethodCouponApiNameEnum=dy,a.PaymentMethodCouponApiPayloadInnerFromJSON=ko,a.PaymentMethodCouponApiPayloadInnerFromJSONTyped=Ro,a.PaymentMethodCouponApiPayloadInnerToJSON=No,a.PaymentMethodCouponApiPayloadInnerToJSONTyped=Po,a.PaymentMethodCouponApiToJSON=bo,a.PaymentMethodCouponApiToJSONTyped=Co,a.PaymentMethodCreditCardApiFromJSON=yy,a.PaymentMethodCreditCardApiFromJSONTyped=An,a.PaymentMethodCreditCardApiNameEnum=py,a.PaymentMethodCreditCardApiPayloadFromJSON=Io,a.PaymentMethodCreditCardApiPayloadFromJSONTyped=Mo,a.PaymentMethodCreditCardApiPayloadToJSON=Do,a.PaymentMethodCreditCardApiPayloadToJSONTyped=Jo,a.PaymentMethodCreditCardApiToJSON=Eo,a.PaymentMethodCreditCardApiToJSONTyped=Fo,a.PaymentMethodDepositAccountApiFromJSON=Ay,a.PaymentMethodDepositAccountApiFromJSONTyped=Sn,a.PaymentMethodDepositAccountApiNameEnum=_y,a.PaymentMethodDepositAccountApiPayloadFromJSON=zo,a.PaymentMethodDepositAccountApiPayloadFromJSONTyped=$o,a.PaymentMethodDepositAccountApiPayloadToJSON=Lo,a.PaymentMethodDepositAccountApiPayloadToJSONTyped=Ho,a.PaymentMethodDepositAccountApiToJSON=Bo,a.PaymentMethodDepositAccountApiToJSONTyped=Uo,a.PaymentMethodPayLaterApiFromJSON=ky,a.PaymentMethodPayLaterApiFromJSONTyped=Tn,a.PaymentMethodPayLaterApiNameEnum=wy,a.PaymentMethodPayLaterApiPayloadFromJSON=Zo,a.PaymentMethodPayLaterApiPayloadFromJSONTyped=Go,a.PaymentMethodPayLaterApiPayloadStatusEnum=Sy,a.PaymentMethodPayLaterApiPayloadToJSON=qo,a.PaymentMethodPayLaterApiPayloadToJSONTyped=Ko,a.PaymentMethodPayLaterApiToJSON=Yo,a.PaymentMethodPayLaterApiToJSONTyped=Vo,a.PaymentMethodRequestApiFromJSON=Cn,a.PaymentMethodRequestApiFromJSONTyped=Ka,a.PaymentMethodRequestApiToJSON=vt,a.PaymentMethodRequestApiToJSONTyped=tg,a.PaymentMethodRequestCouponApiFromJSON=Vy,a.PaymentMethodRequestCouponApiFromJSONTyped=Nn,a.PaymentMethodRequestCouponApiNameEnum=Ky,a.PaymentMethodRequestCouponApiToJSON=Ha,a.PaymentMethodRequestCouponApiToJSONTyped=Ba,a.PaymentMethodRequestCouponPayloadApiFromJSON=Fa,a.PaymentMethodRequestCouponPayloadApiFromJSONTyped=za,a.PaymentMethodRequestCouponPayloadApiToJSON=$a,a.PaymentMethodRequestCouponPayloadApiToJSONTyped=La,a.PaymentMethodRequestCreditCardApiFromJSON=Qy,a.PaymentMethodRequestCreditCardApiFromJSONTyped=Pn,a.PaymentMethodRequestCreditCardApiNameEnum=Wy,a.PaymentMethodRequestCreditCardApiToJSON=Ua,a.PaymentMethodRequestCreditCardApiToJSONTyped=Za,a.PaymentMethodRequestDepositAccountApiFromJSON=eg,a.PaymentMethodRequestDepositAccountApiFromJSONTyped=bn,a.PaymentMethodRequestDepositAccountApiNameEnum=xy,a.PaymentMethodRequestDepositAccountApiToJSON=Ga,a.PaymentMethodRequestDepositAccountApiToJSONTyped=qa,a.PaymentMethodUpdatePayloadApiFromJSON=Xg,a.PaymentMethodUpdatePayloadApiFromJSONTyped=gu,a.PaymentMethodUpdatePayloadApiToJSON=_u,a.PaymentMethodUpdatePayloadApiToJSONTyped=Ou,a.PollerStatus=kt,a.PollerStatusFromJSON=Fs,a.PollerStatusFromJSONTyped=zs,a.PollerStatusToJSON=Pg,a.PollerStatusToJSONTyped=bg,a.RequestPayloadFromJSON=jg,a.RequestPayloadFromJSONTyped=Au,a.RequestPayloadRequestTypeEnum=Qg,a.RequestPayloadToJSON=Su,a.RequestPayloadToJSONTyped=Tu,a.RequiredError=Z,a.ResponseError=nn,a.SourceMarket=pt,a.SourceMarketFromJSON=qe,a.SourceMarketFromJSONTyped=eo,a.SourceMarketToJSON=Fh,a.SourceMarketToJSONTyped=zh,a.TagApiFromJSON=hn,a.TagApiFromJSONTyped=mo,a.TagApiToJSON=yn,a.TagApiToJSONTyped=po,a.TaxApiFromJSON=mn,a.TaxApiFromJSONTyped=co,a.TaxApiTaxFrequencyEnum=Zh,a.TaxApiTaxModeEnum=Gh,a.TaxApiToJSON=pn,a.TaxApiToJSONTyped=fo,a.TextApiResponse=an,a.TravelTimesApiFromJSON=Fn,a.TravelTimesApiFromJSONTyped=_s,a.TravelTimesApiToJSON=zn,a.TravelTimesApiToJSONTyped=Os,a.TravelTimesApiTravelTimesFromJSON=ps,a.TravelTimesApiTravelTimesFromJSONTyped=hs,a.TravelTimesApiTravelTimesToJSON=ys,a.TravelTimesApiTravelTimesToJSONTyped=gs,a.VoidApiResponse=vi,a.canConsumeForm=ih,a.exists=rh,a.instanceOfAllowedPaymentMethodCouponApi=yh,a.instanceOfAllowedPaymentMethodCouponApiPayloadInner=ph,a.instanceOfAllowedPaymentMethodCreditCardApi=Oh,a.instanceOfAllowedPaymentMethodDepositAccountApi=Th,a.instanceOfAllowedPaymentMethodPayLaterApi=Nh,a.instanceOfAllowedPaymentMethodPayLaterApiPayload=kh,a.instanceOfAmenitiesApi=Ch,a.instanceOfBedApi=Ih,a.instanceOfBookingApi=Ly,a.instanceOfBookingCreateApi=ng,a.instanceOfBookingCreateApiGuestsListInner=Zy,a.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Uy,a.instanceOfBookingPoliciesApi=ig,a.instanceOfBookingPoliciesCreateApi=ag,a.instanceOfBookingsApiResponse=cg,a.instanceOfBreakfastOption=Hh,a.instanceOfCancellationPolicyApi=Jh,a.instanceOfContactPersonApi=uy,a.instanceOfContactPersonOrganizationApi=ay,a.instanceOfCountryIso2Code=ry,a.instanceOfCouponPreviewAppliedApi=ah,a.instanceOfCouponPreviewRejectedApi=dh,a.instanceOfCurrencyClient=Kh,a.instanceOfErrorApiResponse=lg,a.instanceOfEventApi=Dy,a.instanceOfEventMetadataApi=Gy,a.instanceOfHotelApi=Og,a.instanceOfHotelApiImages=yg,a.instanceOfHotelImageApi=$h,a.instanceOfHotelOfferApi=Sg,a.instanceOfHotelOfferRequestApiResponse=Tg,a.instanceOfHotelOfferRequestCreateApi=vg,a.instanceOfHotelOffersApiResponse=Ig,a.instanceOfHotelOffersDataApiResponse=Rg,a.instanceOfHotelReviewRatingApi=hg,a.instanceOfHotelRoomOfferApi=jh,a.instanceOfHotelRoomOfferApiHotelRoomsInner=Lh,a.instanceOfHotelRoomOfferApiResponse=Dg,a.instanceOfHotelRoomOfferRequestApiResponse=Eg,a.instanceOfHotelRoomOfferRequestCreateApi=zg,a.instanceOfHotelRoomOffersApiResponse=Hg,a.instanceOfHotelRoomOffersCreateApi=Zg,a.instanceOfHotelRoomOffersDataApiResponse=Lg,a.instanceOfHotelRoomOffersDataCreateApi=Ug,a.instanceOfHotelRoomingListApi=Fy,a.instanceOfHotelRoomingListApiHotelRoom=Jy,a.instanceOfHotelRoomingListGuestApi=Ey,a.instanceOfHotelRoomingListGuestsCreateApi=qg,a.instanceOfHotelRoomingListGuestsUpdateApi=Yg,a.instanceOfInsuranceApi=Py,a.instanceOfInvoiceApi=Cy,a.instanceOfLocale=ey,a.instanceOfMetaPollingResponseApi=Cg,a.instanceOfMetaResponseApi=ug,a.instanceOfOrderAddon=My,a.instanceOfOrderAddonSelection=By,a.instanceOfPaymentMethodCouponApi=fy,a.instanceOfPaymentMethodCouponApiPayloadInner=cy,a.instanceOfPaymentMethodCreditCardApi=hy,a.instanceOfPaymentMethodCreditCardApiPayload=my,a.instanceOfPaymentMethodDepositAccountApi=Oy,a.instanceOfPaymentMethodDepositAccountApiPayload=gy,a.instanceOfPaymentMethodPayLaterApi=vy,a.instanceOfPaymentMethodPayLaterApiPayload=Ty,a.instanceOfPaymentMethodRequestCouponApi=Yy,a.instanceOfPaymentMethodRequestCouponPayloadApi=qy,a.instanceOfPaymentMethodRequestCreditCardApi=Xy,a.instanceOfPaymentMethodRequestDepositAccountApi=jy,a.instanceOfPaymentMethodUpdatePayloadApi=Wg,a.instanceOfPollerStatus=Ng,a.instanceOfRequestPayload=xg,a.instanceOfSourceMarket=Eh,a.instanceOfTagApi=Wh,a.instanceOfTaxApi=qh,a.instanceOfTravelTimesApi=_g,a.instanceOfTravelTimesApiTravelTimes=gg,a.querystring=on,a.v1ApiClient=Eu});
|
|
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 dn(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]:dn(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=dn(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=>dn([...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],[rn,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=Bt(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 fn(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?fn(t.out):t.type==="catch"?fn(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"?fn(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},ln=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"),ln):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!==ln&&(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!==ln&&(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,Ut,2)}),_t(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Ut,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=Qt(ue),wp=xt(ue),kp=jt(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 mn(){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)=>{nn.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)=>{nn.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(cn(e,t))},min(e,t){return this.check(cn(e,t))},lt(e,t){return this.check(pi(e,t))},lte(e,t){return this.check(un(e,t))},max(e,t){return this.check(un(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(cn(0,e))},negative(e){return this.check(pi(0,e))},nonpositive(e){return this.check(un(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)=>{mn(),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)=>{mn(),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 pn=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 pn({...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 pn({...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 pn({type:"enum",entries:n,...M(t)})}var Oh=O("ZodTransform",(e,t)=>{mn(),$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 yn){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 hn(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}},hn=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:"|"},yn=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||gn}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 gn(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?gn(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()}},_n=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 On(e,!1)}function On(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 An(e,!1)}function An(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 Sn(e,!1)}function Sn(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 Tn(e,!1)}function Tn(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{...On(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...An(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Sn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Tn(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 vn(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 wn(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 kn(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 Rn(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 Nn(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 Pn(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(Nn),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(kn),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(Pn),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Rn),type:e.type}}var kt={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 kt)if(Object.prototype.hasOwnProperty.call(kt,t)&&kt[t]===e)return!0;return!1}function Rt(e){return Go(e,!1)}function Go(e,t){return e}function zy(e){return e}function Hy(e,t){return e}var Nt={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 Nt)if(Object.prototype.hasOwnProperty.call(Nt,t)&&Nt[t]===e)return!0;return!1}function Pt(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:Pt(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:Pt(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:Rt(e.lang),lastName:e.last_name,nationality:Pt(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 bt(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 Ct(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 Mt(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(Mt),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:bt(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(kn),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:Ct(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(Rn),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 It(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 It(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(It),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:Rt(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:vn(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,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:wn(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,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:vn(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,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),tags:e.tags==null?void 0:e.tags.map(Nn)}}function xs(e){return js(e,!1)}function js(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:wn(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,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Be),tags:e.tags==null?void 0:e.tags.map(Pn)}}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 Dt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function f_(e){for(const t in Dt)if(Object.prototype.hasOwnProperty.call(Dt,t)&&Dt[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:bt(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:Ct(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:bt(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:Ct(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:Rt(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(It)}}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 _n(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 _n(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=>Mt(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=>Mt(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.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 hn{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 yn({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=On,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=An,a.AllowedPaymentMethodCreditCardApiNameEnum=ny,a.AllowedPaymentMethodCreditCardApiToJSON=uo,a.AllowedPaymentMethodCreditCardApiToJSONTyped=co,a.AllowedPaymentMethodDepositAccountApiFromJSON=sy,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=Sn,a.AllowedPaymentMethodDepositAccountApiNameEnum=oy,a.AllowedPaymentMethodDepositAccountApiToJSON=fo,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=lo,a.AllowedPaymentMethodPayLaterApiFromJSON=ly,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=Tn,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=vn,a.AmenitiesApiFromJSONTyped=To,a.AmenitiesApiToJSON=wn,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=yn,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=Nt,a.CountryIso2CodeFromJSON=Pt,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=bt,a.EventApiFromJSONTyped=Ja,a.EventApiToJSON=Ct,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=Mt,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=kt,a.LocaleFromJSON=Rt,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=It,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=Dt,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=hn,a.SourceMarket=Tt,a.SourceMarketFromJSON=xe,a.SourceMarketFromJSONTyped=Po,a.SourceMarketToJSON=Ay,a.SourceMarketToJSONTyped=Sy,a.TagApiFromJSON=Nn,a.TagApiFromJSONTyped=Ho,a.TagApiToJSON=Pn,a.TagApiToJSONTyped=Bo,a.TaxApiFromJSON=kn,a.TaxApiFromJSONTyped=$o,a.TaxApiTaxFrequencyEnum=Ny,a.TaxApiTaxModeEnum=Py,a.TaxApiToJSON=Rn,a.TaxApiToJSONTyped=Lo,a.TextApiResponse=_n,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=gn,a.v1ApiClient=uc});
|