1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,822315,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",s="week",o="month",a="quarter",i="year",u="date",l="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|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,d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},f="en",h={};h[f]={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(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var g="$isDayjsObject",p=function(e){return e instanceof O||!(!e||!e[g])},m=function e(t,r,n){var s;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();h[o]&&(s=o),r&&(h[o]=r,s=o);var a=t.split("-");if(!s&&a.length>1)return e(a[0])}else{var i=t.name;h[i]=t,s=i}return!n&&s&&(f=s),s||!n&&f},R=function(e,t){if(p(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new O(r)},_={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),s=t.clone().add(n,o),a=r-s<0,i=t.clone().add(n+(a?-1:1),o);return+(-(n+(r-s)/(a?s-i:i-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:o,y:i,w:s,d:"day",D:u,h:n,m:r,s:t,ms:e,Q:a})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};_.l=m,_.i=p,_.w=function(e,t){return R(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function d(e){this.$L=m(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var f=d.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var s=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return _},f.isValid=function(){return this.$d.toString()!==l},f.isSame=function(e,t){var r=R(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return R(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<R(e)},f.$g=function(e,t,r){return _.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,a){var l=this,c=!!_.u(a)||a,E=_.p(e),d=function(e,t){var r=_.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?r:r.endOf("day")},f=function(e,t){return _.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},h=this.$W,g=this.$M,p=this.$D,m="set"+(this.$u?"UTC":"");switch(E){case i:return c?d(1,0):d(31,11);case o:return c?d(1,g):d(0,g+1);case s:var R=this.$locale().weekStart||0,O=(h<R?h+7:h)-R;return d(c?p-O:p+(6-O),g);case"day":case u:return f(m+"Hours",0);case n:return f(m+"Minutes",1);case r:return f(m+"Seconds",2);case t:return f(m+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(s,a){var l,c=_.p(s),E="set"+(this.$u?"UTC":""),d=((l={}).day=E+"Date",l[u]=E+"Date",l[o]=E+"Month",l[i]=E+"FullYear",l[n]=E+"Hours",l[r]=E+"Minutes",l[t]=E+"Seconds",l[e]=E+"Milliseconds",l)[c],f="day"===c?this.$D+(a-this.$W):a;if(c===o||c===i){var h=this.clone().set(u,1);h.$d[d](f),h.init(),this.$d=h.set(u,Math.min(this.$D,h.daysInMonth())).$d}else d&&this.$d[d](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[_.p(e)]()},f.add=function(e,a){var u,l=this;e=Number(e);var c=_.p(a),E=function(t){var r=R(l);return _.w(r.date(r.date()+Math.round(t*e)),l)};if(c===o)return this.set(o,this.$M+e);if(c===i)return this.set(i,this.$y+e);if("day"===c)return E(1);if(c===s)return E(7);var d=((u={})[r]=6e4,u[n]=36e5,u[t]=1e3,u)[c]||1,f=this.$d.getTime()+e*d;return _.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=e||"YYYY-MM-DDTHH:mm:ssZ",s=_.z(this),o=this.$H,a=this.$m,i=this.$M,u=r.weekdays,c=r.months,d=r.meri
1diem,f=function(e,r,s,o){return e&&(e[r]||e(t,n))||s[r].slice(0,o)},h=function(e){return _.s(o%12||12,e,"0")},g=d||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(E,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return i+1;case"MM":return _.s(i+1,2,"0");case"MMM":return f(r.monthsShort,i,c,3);case"MMMM":return f(c,i);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,u,2);case"ddd":return f(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return _.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return _.s(a,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,u,l){var c,E=this,d=_.p(u),f=R(e),h=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,p=function(){return _.m(E,f)};switch(d){case i:c=p()/12;break;case o:c=p();break;case a:c=p()/3;break;case s:c=(g-h)/6048e5;break;case"day":c=(g-h)/864e5;break;case n:c=g/36e5;break;case r:c=g/6e4;break;case t:c=g/1e3;break;default:c=g}return l?c:_.a(c)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return h[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=m(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return _.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()},d}(),T=O.prototype;return R.prototype=T,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",o],["$y",i],["$D",u]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),R.extend=function(e,t){return e.$i||(e(t,O,R),e.$i=!0),R},R.locale=m,R.isDayjs=p,R.unix=function(e){return R(1e3*e)},R.en=h[f],R.Ls=h,R.p={},R}()},971788,(e,t,r)=>{t.exports=u,u.default=u,u.stable=E,u.stableStringify=E;var n="[...]",s="[Circular]",o=[],a=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function u(e,t,r,u){void 0===u&&(u=i()),function e(t,r,o,a,i,u,c){if(u+=1,"object"==typeof t&&null!==t){for(E=0;E<a.length;E++)if(a[E]===t)return void l(s,t,r,i);if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void l(n,t,r,i);if(a.push(t),Array.isArray(t))for(E=0;E<t.length;E++)e(t[E],E,E,a,t,u,c);else{var E,d=Object.keys(t);for(E=0;E<d.length;E++){var f=d[E];e(t[f],f,E,a,t,u,c)}}a.pop()}}(e,"",0,[],void 0,0,u);try{c=0===a.length?JSON.stringify(e,t,r):JSON.stringify(e,d(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var c,E=o.pop();4===E.length?Object.defineProperty(E[0],E[1],E[3]):E[0][E[1]]=E[2]}}return c}function l(e,t,r,n){var s=Object.getOwnPropertyDescriptor(n,r);void 0!==s.get?s.configurable?(Object.defineProperty(n,r,{value:e}),o.push([n,r,t,s])):a.push([t,r,e]):(n[r]=e,o.push([n,r,t]))}function c(e,t){return e<t?-1:+(e>t)}function E(e,t,r,u){void 0===u&&(u=i());var E,f=function e(t,r,a,i,u,E,d){if(E+=1,"object"==typeof t&&null!==t){for(f=0;f<i.length;f++)if(i[f]===t)return void l(s,t,r,u);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&E>d.depthLimit||void 0!==d.edgesLimit&&a+1>d.edgesLimit)return void l(n,t,r,u);if(i.push(t),Array.isArray(t))for(f=0;f<t.length;f++)e(t[f],f,f,i,t,E,d);else{var f,h={},g=Object.keys(t).sort(c);for(f=0;f<g.length;f++){var p=g[f];e(t[p],p,f,i,t,E,d),h[p]=t[p]}if(void 0===u)return h;o.push([u,r,t]),u[r]=h}i.pop()}}(e,"",0,[],void 0,0,u)||e;try{E=0===a.length?JSON.stringify(f,t,r):JSON.stringify(f,d(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var h=o.pop();4===h.length?Object.defineProperty(h[0],h[1],h[3]):h[0][h[1]]=h[2]}}return E}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(a.length>0)for(var n=0;n<a.length;n++){var s=a[n];if(s[1]===t&&s[0]===r){r=s[2],a.splice(n,1);break}}return e.call(this,t,r)}}},116202,e=>{"use strict";var t=e.i(370024),r=e.i(713975),n=e.i(303284);let s=e=>Object.fromEntries(Object.entries(t.configCountry).map(([t,r])=>[t,e(r)])),o=(e,t)=>e.config[t]??"",a=s(e=>o(e,r.ConfigTypeEnum.CURRENT_DOMAIN)),i=s(e=>o(e,r.ConfigTypeEnum.CURRENT_DOMAIN).replace(/^https?:\/\//,"")),u=s(e=>o(e,r.ConfigTypeEnum.CURRENT_DOMAIN).replace(/^https?:\/\//,"").replace(/^www\./,"")),l=s(e=>o(e,r.ConfigTypeEnum.COOKIE_DOMAIN)),c=s(e=>o(e,r.ConfigTypeEnum.HELP_URL));s(e=>o(e,r.ConfigTypeEnum.SUPPORT_EMAIL)||n.DEFAULT_SUPPORT_EMAIL);let E=Object.values(u);
1[...E,...Object.values(i)],Object.values(a),Object.values(l),r.IdPvTypeEnum.ARGENTINA,r.CountryTypeEnum.ARGENTINA,r.IdPvTypeEnum.BRASIL,r.CountryTypeEnum.BRASIL,r.IdPvTypeEnum.PARAGUAY,r.CountryTypeEnum.PARAGUAY,r.IdPvTypeEnum.PERU,r.CountryTypeEnum.PERU,r.IdPvTypeEnum.COLOMBIA,r.CountryTypeEnum.COLOMBIA,e.s(["ALL_P10_BARE_HOSTS",0,E,"BARE_HOST_BY_COUNTRY",0,u,"COOKIE_DOMAIN_BY_COUNTRY",0,l,"HELP_URL_BY_COUNTRY",0,c,"ORIGIN_BY_COUNTRY",0,a,"WWW_HOST_BY_COUNTRY",0,i])},790948,537687,e=>{"use strict";var t=e.i(116202),r=e.i(303284),n=e.i(713975);r.P10_ROOT_DOMAIN,t.WWW_HOST_BY_COUNTRY[n.CountryTypeEnum.BRASIL],r.P10_ROOT_DOMAIN,r.P10_ROOT_DOMAIN;var s=e.i(33352);e.i(875664);var o=e.i(189911);function a(e,t){let r;if(!((0,o.isDev)()||(0,o.isFeatureBranch)(e))||!t)return e;let n=t.trim().toLowerCase();return!(!(r=n.trim().toLowerCase())||!r.includes(".")||r.includes("localhost"))&&/^[a-z0-9.-]+(:\d+)?$/.test(r)?n:e}function i(e){if(!e)return null;let t=e.match(/(?:^|;\s*)p10-sim-wl-host=([^;]*)/);if(!t)return null;try{return decodeURIComponent(t[1])||null}catch{return t[1]||null}}function u(e,t){return a(e,i(t))}function l(e){return"u"<typeof document?e:a(e,i(document.cookie))}e.s(["getEffectiveHostClient",0,l,"getEffectiveHostFromCookieHeader",0,u],537687);let c={"feature-sites-208":"transporteaconquija","feature-sites-236-bug-amplitude":"transporteaconquija","feature-con-2817-otp-globalization-transporteaconquija":"transporteaconquija","transporteaconquija-stg":"transporteaconquija","feature-con-2817-otp-globalization-elpractico":"elpractico","elpractico-stg":"elpractico","feature-sites-232":"rodoviariabrasilia","feature-con-2817-otp-globalization":"rodoviariabrasilia","rodoviariabrasilia-stg":"rodoviariabrasilia","feature-deo-180-nearby-pricing":"riodejaneiro","feature-sites-267":"andytransportedepasajeros","andytransportedepasajeros-stg":"andytransportedepasajeros"};function E(){let e=function(){if("u"<typeof document)return null;let e=document.cookie.match(/(?:^|; )p10-white-label-slug=([^;]*)/);if(!e)return null;let t=decodeURIComponent(e[1]);return t&&"__preview__"!==t?t:null}();return e?{isWhiteLabel:!0,slug:e,subdomain:e}:null}Object.keys(c),t.COOKIE_DOMAIN_BY_COUNTRY[n.CountryTypeEnum.ARGENTINA],t.COOKIE_DOMAIN_BY_COUNTRY[n.CountryTypeEnum.BRASIL],t.COOKIE_DOMAIN_BY_COUNTRY[n.CountryTypeEnum.PERU],t.COOKIE_DOMAIN_BY_COUNTRY[n.CountryTypeEnum.PARAGUAY],t.COOKIE_DOMAIN_BY_COUNTRY[n.CountryTypeEnum.COLOMBIA],r.P10_ROOT_DOMAIN,r.P10_DOT_ROOT,e.s(["detectWhiteLabelFromHost",0,function(e,n){if(n&&n.get("x-preview-id"))return{isWhiteLabel:!0,slug:"__preview__",subdomain:"__preview__"};let o=n?u(e,n.get("cookie")):l(e),a=function(e){let n=e.split(":")[0];if(n.includes(".localhost")){let e=n.split(".localhost")[0];if(e&&"www"!==e)return e}for(let e of[...Object.values(t.BARE_HOST_BY_COUNTRY).map(e=>`.${e}`),r.FEATURE_BRANCH_DOT,r.P10_DOT_ROOT])if(n.includes(e)){let t=n.split(e)[0];if(t&&"www"!==t&&!t.includes("."))return t}return null}(o);if(!a){if(n){let e=n.get("x-white-label-slug");if(e)return{isWhiteLabel:!0,slug:e,subdomain:e};if(!(0,s.isP10OrLocalDomain)(o.split(":")[0])){let e=function(e){if(!e)return null;let t=e.match(/(?:^|;\s*)p10-white-label-slug=([^;]*)/);if(!t)return null;let r=decodeURIComponent(t[1]);return r&&"__preview__"!==r?r:null}(n.get("cookie"));if(e)return{isWhiteLabel:!0,slug:e,subdomain:e}}}return E()??{isWhiteLabel:!1,slug:null,subdomain:null}}let i=c[a.toLowerCase()]||null;if(null!==i)return{isWhiteLabel:!0,slug:i,subdomain:a};if(n){let e=n.get("x-white-label-slug");if(e&&e===a)return{isWhiteLabel:!0,slug:e,subdomain:a}}return E()??{isWhiteLabel:!1,slug:null,subdomain:a}}],790948)},90591,e=>{"use strict";e.i(247167);var t,r=((t={}).REDUCED_BANNER="reduced banner",t.DOWNLOAD_APP_VIEWPORT="download app viewport",t.APP_MODAL="app modal",t);e.s(["ABAppBannersEnum",()=>r,"APP_BANNER_CLOSED_COOKIE",0,"app_banner_closed","APP_BANNER_PAID_NONBRAND_COOKIE",0,"p10_app_banner_paid_nonbrand","APP_BANNER_TEST_OVERRIDE_COOKIE",0,"app_banner_test_variant","DOWNLOAD_APP_VIEWPORT_DISMISSED_COOKIE",0,"p10_download_app_viewport_dismissed","FULLVIEW_DESIGN_WITHOUT_DISCOUNT",0,"without-discount","FULLVIEW_DESIGN_WITH_DISCOUNT",0,"with-discount","IMAGE_DOWNLOAD_APP_VIEWPORT_HERO",0,"https://p10-cdn.s3.us-east-1.amazonaws.com/contenido/home-argentina/banner/mobile/download_app_viewport_hero.webp","IMAGE_DOWNLOAD_APP_VIEWPORT_ICON",0,"https://p10-cdn.s3.us-east-1.amazonaws.com/contenido/home-argentina/banner/mobile/download_app_viewport_icon.webp","IMAGE_RESULTS_APP_MODAL_HERO",0,"https://p10-cdn.s3.us-east-1.amazonaws.com/contenido/home-argentina/banner/mobile/results_app_modal_hero_v1.webp","ONELINK_AR_CHECKOUT_APP_ONLY_COUPON",0,"https://plataforma10.onelink.me/N0EK/7buciy8d","ONELINK_AR_HOME_FULLVIEW",0,"https://plataforma10.onelink.me/N0EK/9
1nty8gp1","ONELINK_AR_HOME_FULLVIEW_NONBRAND",0,"https://plataforma10.onelink.me/N0EK/572iwt75","ONELINK_AR_HOME_LITEVIEW",0,"https://plataforma10.onelink.me/uCsy/curizx8n","ONELINK_AR_HOME_LITEVIEW_NONBRAND",0,"https://plataforma10.onelink.me/N0EK/zq2c2psw","ONELINK_AR_RESULTS_LITEVIEW",0,"https://plataforma10.onelink.me/uCsy/h4x7k3sv","ONELINK_AR_RESULTS_LITEVIEW_NONBRAND",0,"https://plataforma10.onelink.me/N0EK/7z6ylrtc","ONELINK_HOME_LITEVIEW_BANNER_COUPON_CONTROL",0,"https://plataforma10.onelink.me/N0EK/hp8tbvgk","ONELINK_HOME_LITEVIEW_BANNER_COUPON_TREATMENT",0,"https://plataforma10.onelink.me/N0EK/r2wpz323","ONELINK_PY_HOME_LITEVIEW",0,"https://plataforma10.onelink.me/N0EK/7mlt54o6","ONELINK_PY_HOME_LITEVIEW_NONBRAND",0,"https://plataforma10.onelink.me/N0EK/3wfe2x17","ONELINK_PY_RESULTS_LITEVIEW",0,"https://plataforma10.onelink.me/N0EK/c6g4hrq3","ONELINK_PY_RESULTS_LITEVIEW_NONBRAND",0,"https://plataforma10.onelink.me/N0EK/7ad440au","ONELINK_RESULTS_LITEVIEW_BANNER_COUPON_CONTROL",0,"https://plataforma10.onelink.me/N0EK/gndel338","ONELINK_RESULTS_LITEVIEW_BANNER_COUPON_TREATMENT",0,"https://plataforma10.onelink.me/N0EK/pvvokmjc","ONELINK_RESULTS_MODAL_ORIGIN_HOME",0,"https://plataforma10.onelink.me/N0EK/p2jo7lfp","ONELINK_RESULTS_MODAL_ORIGIN_LANDING",0,"https://plataforma10.onelink.me/N0EK/p1ozgeky","ONELINK_RESULTS_MODAL_ORIGIN_OTHER",0,"https://plataforma10.onelink.me/N0EK/m7iwuv86","ONELINK_RESULTS_MODAL_ORIGIN_RESULTS",0,"https://plataforma10.onelink.me/N0EK/ubnbylg0","ONELINK_RESULTS_MODAL_TREATMENT",0,"https://plataforma10.onelink.me/N0EK/nnjakldc","ONELINK_RESULTS_POST_DISMISS_BANNER",0,"https://plataforma10.onelink.me/N0EK/jrsj3jbd","ONELINK_SEO_LANDING_AR",0,"https://plataforma10.onelink.me/uCsy/mdkxp8mu","RESULTS_APP_MODAL_DISMISSED_COOKIE",0,"p10_results_app_modal_dismissed","RESULTS_APP_MODAL_DISMISSED_MAX_AGE_SECONDS",0,604800])},33352,e=>{"use strict";e.i(247167);var t=e.i(116202);e.i(875664),e.s(["isP10OrLocalDomain",0,function(e){let r=e.toLowerCase();return!!("localhost"===r||r.endsWith(".localhost")||"plataforma10.com"===r||r.endsWith(".plataforma10.com"))||t.ALL_P10_BARE_HOSTS.some(e=>r.endsWith(`.${e}`))}])},493606,704925,634108,e=>{"use strict";var t=e.i(854838),r=e.i(875664),n=e.i(36389);class s extends Error{source;httpStatus;constructor(e){super(`Unauthorized - ${e}`),this.source=e,this.httpStatus=401,this.name="BffUnauthorizedError"}}e.s(["BffUnauthorizedError",0,s,"isSessionExpiredError",0,e=>e instanceof s||"object"==typeof e&&null!==e&&"BffUnauthorizedError"===e.name&&401===e.httpStatus],704925);var o=e.i(484086);e.i(790948);var a=e.i(271645),i=e.i(476577);e.i(537687),(0,a.cache)((e,t)=>(0,i.getPublishedConfig)(e,t));var u=e.i(677815);let l=(e,t)=>"registerUserRequest"===e&&!!t&&!t.isGuestCheckout&&!t.user?.password,c=/\bya existe\b/i,E=/[^\s@]+@[^\s@]+\.[^\s@]+/,d=e=>e.trim().replace(/[.,;:]+$/,"").toLowerCase(),f=(e,t)=>{if("string"!=typeof e||!c.test(e))return!1;if(!t)return!0;let r=e.match(E)?.[0];return!r||d(r)===d(t)};e.s(["isEmailAlreadyExistsRegisterError",0,(e,t)=>{let r=e?.cause;return!!r&&400===r.httpStatus&&f(r.error,t)},"matchesEmailAlreadyExistsMessage",0,f],634108);let h=45e3,g="fatal-error",p="unauthorized-error",m=e=>{switch(e){case"429":return new Response('{"error": "Rate limit exceeded"}',{status:429,statusText:"Too Many Requests",headers:{"Content-Type":"application/json","Retry-After":"60"}});case"forbidden-html":return new Response("<html><body><h1>403 Forbidden</h1><p>You don't have permission to access this resource.</p></body></html>",{status:403,statusText:"Forbidden",headers:{"Content-Type":"text/html"}});case"json-parse-error":return new Response("{broken json",{status:200,headers:{"Content-Type":"application/json"}});case"empty-response":return new Response("",{status:200,headers:{"Content-Type":"application/json"}});case"no-content":return new Response("",{status:204,headers:{"Content-Type":"application/json"}});case g:return new Response("",{status:500,headers:{"Content-Type":"application/json"}});case p:return new Response("",{status:401,headers:{"Content-Type":"application/json"}});default:return null}},R=(e,t)=>{try{if(!e||!e.headers)return"";let r=e.headers.get("connection"),n=e.headers.get("content-length"),s=e.headers.get("server"),o=e.headers.get("x-timeout-reason"),a=t?`_${t}`:"";if(r?.toLowerCase()==="close"&&"0"===n){if(s?.toLowerCase().includes("nginx"))return`${a}_NGINX_LB`;if(s?.toLowerCase().includes("cloudflare"))return`${a}_CLOUDFLARE_LB`;if(s?.toLowerCase().includes("amazon")||s?.toLowerCase().includes("alb"))return`${a}_AWS_ALB`;return`${a}_LOAD_BALANCER`}if("0"===n)return`${a}_EMPTY_RESPONSE`;if(o||e.headers.get("x-gateway-timeout"))return`${a}_API_GATEWAY`;if(s){let e=s.substring(0,10).toUpperCase().replace(/[^A-Z0-9]/g,"_");return`${a}_SERVER_${e}`}return a}catch{return t?`_${t}`:""}},_=e=>e?({info:"info",warning:"warning",error:"error",fatal:"fatal"})[e]:"info";
1async function O(){let e=await (0,o.getLocaleCookie)();if(e||(e=(await y())?.localization?.defaultLocale??null),!e)return null;let t=e.split("-")[0];return{"Accept-Language":`${e},${t};q=0.9`}}async function T(){try{let e=null;if(!(e=window.location.host))return null;return{"x-white-label-host":e}}catch{return null}}async function y(){return null}async function S(){let e=(0,u.getClientWhiteLabelIdPv)();return Number.isInteger(e)&&e>0?{"x-white-label-idpv":String(e)}:null}async function N(e){let t=await O();t&&Object.assign(e,t);let r=await T();r&&Object.assign(e,r);let n=await S();n&&Object.assign(e,n)}let A=async({url:e,method:r="POST",headers:s={},body:o,timeout:a=h,cache:i="no-store",revalidate:u,nextTags:c,clientId:E,authorization:d,handleAuthStatusCodes:f=!1,expectedStatuses:g,enableQaMocks:p=!1,enableSeatOccupiedWorkaround:m=!1,signal:O,logOptions:T})=>{let y="u">typeof AbortController?new AbortController:void 0,S=y?setTimeout(()=>y.abort(),a):null,A=()=>y?.abort();O&&(O.aborted?y?.abort():O.addEventListener("abort",A,{once:!0}));let b={},I=null;try{let a={"Content-Type":"application/json",...s};E&&(a["x-p10-client-id"]=E),d&&(a.Authorization=`Bearer ${d}`),await N(a),l(T.name,o)&&(0,t.trackingExpectedBehaviourWithBodyDetails)({componentName:"Password not sended by frontend",url:e,responseError:{},body:T.isBodySecureToLog?o:T.customBodyToLog,severity:_(T.severity)});let u="GET"===r?void 0:o,h=(void 0!==c&&c.length,await fetch(e,{cache:i,...{},method:r,headers:a,signal:y?.signal,body:u?JSON.stringify(u):void 0}));if(I=h,f){if(200!==h.status&&202!==h.status&&204!==h.status&&409!==h.status&&423!==h.status&&429!==h.status)throw b=await h.json(),Error(`Request failed - ${T.name}`);if(204===h.status)return null;let e=await h.json();if(200===h.status)e.status=n.AuthStatusCode.OK;else if(202===h.status)e.status=n.AuthStatusCode.OTP_REQUIRED;else if(409===h.status)e.status=n.AuthStatusCode.USER_EXISTS;else if(423===h.status)e.status=n.AuthStatusCode.USER_BLOCKED;else if(429===h.status){e.status=n.AuthStatusCode.RATE_LIMITED;let t=Number(h.headers.get("Retry-After"));!e.retryAfterSeconds&&t>0&&(e.retryAfterSeconds=t)}return e}let p=200===h.status||204===h.status||!!g?.includes(h.status);if(!h.ok||!p){try{if(b=await h.json(),m&&b&&"La transición CheckSeatSelection no es aplicable en el estado actual: SeatOccupied."===b.error)return{currentState:{status:"SeatOccupied"}};if(401===h.status)throw Error(n.AuthStatusCode.UNAUTHORIZED.toString())}catch(e){try{let t=await h.text();b={rawResponse:t.substring(0,200),fullResponseSize:t.length,statusCode:h.status,statusText:h.statusText,parseError:e instanceof Error?e.message:String(e),contentType:h.headers.get("content-type")}}catch(t){b={statusCode:h.status,statusText:h.statusText,parseError:e instanceof Error?e.message:String(e),textError:t instanceof Error?t.message:String(t),contentType:h.headers.get("content-type")}}}throw Error(`Request failed - ${T.name}`)}if(204===h.status)return null;return await h.json()}catch(s){let r;if(s instanceof Error&&"AbortError"===s.name&&O?.aborted)throw s;s instanceof Error&&"AbortError"===s.name&&(b={error:"Request aborted due to timeout"}),I&&I.headers&&(r={},I.headers.forEach((e,t)=>{r[t]=e})),(({logOptions:e,url:r,error:n,customResponseError:s,responseHeaders:o,body:a})=>{(0,t.trackingExpectedBehaviourWithBodyDetails)({componentName:e.name,url:r,responseError:s,body:e.isBodySecureToLog?a:e.customBodyToLog,severity:_(e.severity)})})({logOptions:T,url:e,error:s,customResponseError:b,responseHeaders:r,body:o});let n=((e,t)=>{if(!(e instanceof Error))return"UNKNOWN_ERROR";if("AbortError"===e.name)return"TIMEOUT";if("TypeError"===e.name&&e.message.includes("fetch failed"))return"NETWORK_ERROR";if("SyntaxError"===e.name&&e.message.includes("JSON"))return"JSON_PARSE_ERROR";if("TypeError"===e.name){let r=t?.status?String(t.status):void 0,n=R(t,r);return e.message.includes("JSON")||e.message.includes("parse")?`JSON_PARSE_TYPE_ERROR${n}`:e.message.includes("body")||e.message.includes("stream")?`RESPONSE_BODY_TYPE_ERROR${n}`:`TYPE_ERROR${n}`}return({DOMException:"DOM_EXCEPTION",SecurityError:"SECURITY_ERROR",NetworkError:"NETWORK_E
1RROR",TimeoutError:"TIMEOUT_ERROR",NotSupportedError:"NOT_SUPPORTED_ERROR",NotAllowedError:"NOT_ALLOWED_ERROR",QuotaExceededError:"QUOTA_EXCEEDED_ERROR",DataError:"DATA_ERROR",RangeError:"RANGE_ERROR",ReferenceError:"REFERENCE_ERROR",Error:"GENERIC_ERROR"})[e.name]||`UNKNOWN_${e.name}_ERROR`})(s,I);throw Error(`Request failed - catch - ${T.name} - ${n}`)}finally{S&&clearTimeout(S),O&&O.removeEventListener("abort",A)}},b=async({url:e,nameToTrackErrors:r="genericFetcher",cache:n="no-store",method:o="POST",body:a,timeout:i=h,severityError:u=t.severityEnum.INFO,isBodySecureToLog:c=!1,customBodyToLog:E,clientId:d,authorization:g})=>{let p="u">typeof AbortController?new AbortController:void 0,m=p?setTimeout(()=>p.abort(),i):null,_={},O=null;try{let i={"Content-Type":"application/json"};d&&(i["x-p10-client-id"]=d),g&&(i.Authorization=`Bearer ${g}`),await N(i),l(r,a)&&(0,t.trackingExpectedBehaviourWithBodyDetails)({componentName:"Password not sended by frontend",url:e,responseError:_,body:c?a:E,severity:u});let f=await fetch(e,{cache:n,method:o,headers:i,signal:p?.signal,body:a?JSON.stringify(a):void 0});if(O=f,!f.ok||200!==f.status&&204!==f.status){if(401===f.status)throw new s(r);throw _={httpStatus:f.status},_={...await f.json(),httpStatus:f.status},Error(`Request failed - ${r}`)}if(204===f.status)return null;return await f.json()}catch(i){"AbortError"===i.name&&(_={error:"Request aborted due to timeout"});let n="";"registerUserRequest"===r&&(_?.user?.Password?.includes?.("The Password field is required")&&(n="Password Required"),f(_?.error,a?.user?.contactEmail)&&(n="User Already Exists")),(0,t.trackingExpectedBehaviourWithBodyDetails)({componentName:n?`${r} - ${n}`:r,url:e,responseError:_,body:c?a:E,severity:u});let o="";if("AbortError"===i.name)o="TIMEOUT";else if("TypeError"===i.name&&i.message.includes("fetch failed"))o="NETWORK_ERROR";else if("SyntaxError"===i.name&&i.message.includes("JSON"))o="JSON_PARSE_ERROR";else if("TypeError"===i.name){let e=O?.status?String(O.status):void 0,t=R(O,e);o=i.message.includes("JSON")||i.message.includes("parse")?`JSON_PARSE_TYPE_ERROR${t}`:i.message.includes("body")||i.message.includes("stream")?`RESPONSE_BODY_TYPE_ERROR${t}`:`TYPE_ERROR${t}`}else o="DOMException"===i.name?"DOM_EXCEPTION":"SecurityError"===i.name?"SECURITY_ERROR":"NetworkError"===i.name?"NETWORK_ERROR":"TimeoutError"===i.name?"TIMEOUT_ERROR":"NotSupportedError"===i.name?"NOT_SUPPORTED_ERROR":"NotAllowedError"===i.name?"NOT_ALLOWED_ERROR":"QuotaExceededError"===i.name?"QUOTA_EXCEEDED_ERROR":"DataError"===i.name?"DATA_ERROR":"RangeError"===i.name?"RANGE_ERROR":"ReferenceError"===i.name?"REFERENCE_ERROR":"Error"===i.name?"GENERIC_ERROR":`UNKNOWN_${i.name}_ERROR`;if(i instanceof s)throw i;throw Error(`Request failed - catch - ${r} - ${o}`,{cause:_})}finally{m&&clearTimeout(m)}},I=async({url:e,method:r="GET",timeout:n=h,clientId:s,bearerToken:o})=>{let a="u">typeof AbortController?new AbortController:void 0,i=a?setTimeout(()=>a.abort(),n):null;try{let t={Accept:"image/*,application/octet-stream,*/*"};s&&(t["x-p10-client-id"]=s),o&&(t.Authorization=`Bearer ${o}`);let n=await fetch(e,{method:r,headers:t,signal:a?.signal});if(!n.ok)throw Error(`Request failed - status: ${n.status}`);return await n.blob()}catch(r){throw(0,t.trackingExpectedBehaviourWithBodyDetails)({componentName:"blobDownloadError",url:e,responseError:{error:r.message||"Unknown error"},body:{},severity:t.severityEnum.ERROR}),Error("Blob download failed")}finally{i&&clearTimeout(i)}},C=async({url:e,nameToTrackErrors:a="genericFetcher",cache:i="no-store",method:u="POST",body:l,headers:c={},timeout:E=h,severityError:d=t.severityEnum.INFO,isBodySecureToLog:f=!1,customBodyToLog:R,clientId:_,authorization:O,logOptions:T={message:"",component:"genericFetcher",context:r.EnvironmentErrorContextEnum.UNKNOWN,data:{},tags:[],error:null,severityError:r.GenericSeverityEnum.INFO}})=>{let y="u">typeof AbortController?new AbortController:void 0,S=y?setTimeout(()=>y.abort(),E):null,A={},b=null;try{let t={"Content-Type":"application/json"};_&&(t["x-p10-client-id"]=_),O&&(t.Authorization=`Bearer ${O}`),c&&Object.assign(t,c),await N(t),"GET"===u&&(l=void 0);let r=await fetch(e,{cache:i,method:u,headers:t,signal:y?.signal,body:l?JSON.stringify(l):void 0}
1),E=await (0,o.getApiErrorCookie)();if(E===n.ApiErrorEnum.HTTP_STATUS_500?r=m(g):E===n.ApiErrorEnum.HTTP_STATUS_401&&(r=m(p)),b=r,!r.ok||200!==r.status&&204!==r.status){if(401===r.status)throw new s(a);try{if((A=await r.json())&&"La transición CheckSeatSelection no es aplicable en el estado actual: SeatOccupied."===A.error)return{currentState:{status:"SeatOccupied"}}}catch(e){try{let t=await r.text();A={rawResponse:t.substring(0,200),fullResponseSize:t.length,statusCode:r.status,statusText:r.statusText,parseError:e.message,contentType:r.headers.get("content-type")}}catch(t){A={statusCode:r.status,statusText:r.statusText,parseError:e.message,textError:t.message,contentType:r.headers.get("content-type")}}}throw Error(`Request failed - ${a}`)}if(204===r.status)return null;return await r.json()}catch(u){"AbortError"===u.name&&(A={rawResponse:"Request aborted due to timeout"},T.tags.push(r.LogTags.TIMEOUT));let n=b&&b.headers?Object.fromEntries([...b.headers.entries()]):void 0,o=u instanceof Error?u.message:String(u),i=null;try{i=u instanceof Error&&"cause"in u&&u.cause?u.cause instanceof Error?u.cause.message:JSON.stringify(u.cause):null}catch(e){i="Unable to extract cause"}if(r.logger.sendLog({message:T.message,context:T.context,component:T.component,tags:T.tags,severity:T.severityError,data:{url:e,rawError:`${o} - cause: ${i}`,rawDetails:T.data,customResponseError:A,responseHeaders:n}}),(0,t.trackingExpectedBehaviourWithBodyDetails)({componentName:a,url:e,responseError:A,body:f?l:R,severity:d}),u instanceof s)throw u;throw Error(`Request failed - catch - ${a}`)}finally{S&&clearTimeout(S)}},v=async({url:e,nameToTrackErrors:r="authenticationFetcher",cache:s="no-store",method:o="POST",body:a,timeout:i=h,severityError:u=t.severityEnum.ERROR,isBodySecureToLog:l=!1,customBodyToLog:c,clientId:E,authorization:d,extraHeaders:f})=>{let g="u">typeof AbortController?new AbortController:void 0,p=g?setTimeout(()=>g.abort(),i):null,m={},R=null;try{let t={"Content-Type":"application/json"};E&&(t["x-p10-client-id"]=E),d&&(t.Authorization=`Bearer ${d}`),f&&Object.assign(t,f),await N(t);let i=await fetch(e,{cache:s,method:o,headers:t,signal:g?.signal,body:a?JSON.stringify(a):void 0});if(200!==i.status&&202!==i.status&&204!==i.status&&409!==i.status&&423!==i.status&&401!==i.status&&429!==i.status)throw R=i.status,m={httpStatus:i.status},m={...await i.json(),httpStatus:i.status},Error(`Request failed - ${r}`);if(204===i.status)return null;{let e=await i.text(),t=e.trim()?JSON.parse(e):{};if(200===i.status)t.status=n.AuthStatusCode.OK;else if(202===i.status)t.status=n.AuthStatusCode.OTP_REQUIRED;else if(409===i.status)t.status=n.AuthStatusCode.USER_EXISTS;else if(423===i.status)t.status=n.AuthStatusCode.USER_BLOCKED;else if(401===i.status)t.status=n.AuthStatusCode.UNAUTHORIZED;else if(429===i.status){t.status=n.AuthStatusCode.RATE_LIMITED;let e=Number(i.headers.get("Retry-After"));!t.retryAfterSeconds&&e>0&&(t.retryAfterSeconds=e)}return t}}catch(s){"AbortError"===s.name&&(m={error:"Request aborted due to timeout"});let n=(({error:e,httpStatus:t})=>{if("number"==typeof t&&t>0)return`HTTP_${t}`;let r=e?.name,n=String(e?.message??"");return"AbortError"===r||"TimeoutError"===r?"TIMEOUT":"SyntaxError"===r&&/JSON/i.test(n)?"JSON_PARSE_ERROR":"TypeError"===r&&/fetch failed|failed to fetch|networkerror|load failed/i.test(n)?"NETWORK_ERROR":"UNKNOWN"})({error:s,httpStatus:R});throw(0,t.trackingExpectedBehaviourWithBodyDetails)({componentName:`${r} - ${n}`,url:e,responseError:m,body:l?a:c,severity:u}),Error(`Request failed - catch - ${r}`,{cause:{...m,failureSubtype:n}})}finally{p&&clearTimeout(p)}};e.s(["clientFetcherForSWR",0,b,"clientFetcherForSWRToBlob",0,I,"fetcher",0,(...e)=>fetch(...e).then(e=>e.json()),"getWhiteLabelIdPvHeader",0,S,"prepurchaseFetcherForAuthentication",0,v,"serverFetcherForSWR",0,C,"unifiedFetcher",0,A],493606)},875664,e=>{"use strict";e.i(247167);var t=e.i(971788),r=e.i(144850);let n={debug:"debug",info:"info",log:"info",warn:"warn",error:"error"};e.s(["EnvironmentErrorContextEnum",0,{CLIENT:"client",SERVER:"server",UNKNOWN:"unknown"},"GenericSeverityEnum",0,{DEBUG:"debug",INFO:"info",LOG:"log",WARNING:"warn",ERROR:"error"},"LogTags",0,{CRITICAL:"critical",HIGH_IMPACT:"high-impact",LOW_IMPACT:"low-impact",EDGE_CASE:"edge-case",TIMEOUT:"timeout",HOME:"home",SEARCH_RESULT:"search-result",SEAT_SELECTION:"seat-selection",PASSENGER_FORM:"passenger-form",ANCILLARIES:"ancillaries",CHECKOUT:"checkout",LANDING_PAGE:"landing-page",USER_FAVORITE_SELECTION:"user-favorite-selection",CREATE_USER_FAVORITE:"create-user-favorite",PROCESSING_PAYMENT:"processing-payment",GENERAL_CONDITIONS:"general-conditions",PAYMENT_REJECTED:"payment-rejected",PAYMENT_SUCCESS:"payment-success",PAYMENT_UNCONFIRMED:"payment-unconfirmed",MY_TRIPS:"my-trips",MY_TRIP:"my-trip",TICKET_REFUND:"ticket-refund",SERVICE_DETAIL:"service-detail",DEEPLINK:"deeplink",PROFILE:"profile",EDIT_PROFILE:"edit-profile",MY_DATA:"my-data",EDIT_PASSWORD:"edit-password",DELETE_ACCOUNT_MODAL:"delete-account-modal",FAVORITE_PASSENGERS:"favorite-passengers",NEW_FAVORITE_PASSENGER:"new-favorite-passenger",EDIT_FAVORITE_PASSENGER:"edit-favorite-passenger",MY_ACCOUNT:"my-account",MARKETING:"marketing"},"logger",0,{sendLog:e=>{var s;try{let o;
1if(s=e.severity,!((o=["debug","info","log","warn","error"]).indexOf(s)>=o.indexOf("error")))return;let a=e.severity||"info",i=((e,t)=>{try{let{message:r="",component:n,data:s,tags:o,error:a}=t||{},i={timestamp:new Date().toISOString(),level:e,message:r||""};if(n&&(i.component=n),s)try{i.data="object"==typeof s&&null!==s?s:{value:s}}catch{i.data={error:"Invalid data object"}}return Array.isArray(o)&&o.length>0&&(i.tags=o.filter(e=>"string"==typeof e)),a&&(i.error={},a instanceof Error?(i.error.name=a.name,i.error.message=a.message,i.error.stack=a.stack):i.error.message=String(a)),i}catch(t){return{timestamp:new Date().toISOString(),level:e,message:"Error creating log entry"}}})(a,e),u=(e=>{try{return(0,t.default)(e)}catch{return JSON.stringify({timestamp:e.timestamp,level:e.level,message:e.message})}})(i);switch(a){case"debug":console.debug(u);break;case"info":console.info(u);break;case"log":default:console.log(u);break;case"warn":console.warn(u);break;case"error":console.error(u)}((e,t)=>{let{component:s,tags:o,data:a}=e;(0,r.sendDatadogLog)({message:e.message,status:n[e.level]??"info",context:{...s?{component:s}:{},...o?{tags:o}:{},...a??{}},error:t instanceof Error?t:void 0})})(i,e.error)}catch(t){console.error("Critical logger failure",{level:"error",originalMessage:e.message||"Unknown message",error:t})}}}])},476577,e=>{"use strict";var t=e.i(247167),r=e.i(875664);function n(e){let t=e.replace(/\/+$/,"");return t.endsWith("/api")?t:`${t}/api`}function s(e){return!!e&&"object"==typeof e&&!!e.idSite&&!!e.branding&&!!e.theme&&!!e.pages}async function o(e,o){let a=t.default.env.BFO_API_URL;if(!a||!e)return console.error("[PublishedConfig] Missing BFO_API_URL or slug"),r.logger.sendLog({message:"[PublishedConfig] Missing BFO_API_URL or slug",component:"getPublishedConfig",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:[r.LogTags.HIGH_IMPACT],data:{hasBfoUrl:!!a,hasSlug:!!e}}),null;let i=n(a),u={Accept:"application/json","X-Tenant":t.default.env.BFO_TENANT?.trim()||"public"};if(o){let t=`${i}/sites/published-by-host?host=${encodeURIComponent(o)}`;try{let n=await fetch(t,{cache:"no-store",signal:AbortSignal.timeout(3e3),headers:u});if(n.ok){let a=await n.json();if(s(a))return a;r.logger.sendLog({message:"[PublishedConfig] by-host returned invalid config structure: missing required fields",component:"getPublishedConfig",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:[r.LogTags.HIGH_IMPACT],data:{slug:e,host:o,url:t}})}else if(404!==n.status){let s=await n.text().catch(()=>"");r.logger.sendLog({message:`[PublishedConfig] by-host failed: ${n.status} ${n.statusText}`,component:"getPublishedConfig",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:[r.LogTags.HIGH_IMPACT],data:{slug:e,host:o,status:n.status,url:t,body:s?.slice(0,500)}})}}catch(s){let n=s instanceof Error&&("TimeoutError"===s.name||"AbortError"===s.name);r.logger.sendLog({message:n?"[PublishedConfig] by-host fetch timed out":"[PublishedConfig] by-host fetch failed",component:"getPublishedConfig",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:n?[r.LogTags.HIGH_IMPACT,r.LogTags.TIMEOUT]:[r.LogTags.HIGH_IMPACT],error:s instanceof Error?s:Error(String(s)),data:{slug:e,host:o,url:t,timeoutMs:3e3}})}}let l=`${i}/sites/published/${encodeURIComponent(e)}`;try{let t=await fetch(l,{cache:"no-store",signal:AbortSignal.timeout(3e3),headers:u});if(!t.ok){if(404===t.status)return null;let n=await t.text().catch(()=>"");return r.logger.sendLog({message:`[PublishedConfig] Failed to fetch published config: ${t.status} ${t.statusText}`,component:"getPublishedConfig",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:[r.LogTags.HIGH_IMPACT],data:{slug:e,status:t.status,url:l,body:n?.slice(0,500)}}),null}let n=await t.json();if(!s(n))return r.logger.sendLog({message:"[PublishedConfig] Invalid config structure: missing required fields",component:"getPublishedConfig",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:[r.LogTags.HIGH_IMPACT],data:{slug:e}}),null;return n}catch(n){let t=n instanceof Error&&("TimeoutError"===n.name||"AbortError"===n.name);return r.logger.sendLog({message:t?"[PublishedConfig] BFO published fetch timed out":"[PublishedConfig] Failed to fetch published config",component:"getPublishedConfig",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:t?[r.LogTags.HIGH_IMPACT,r.LogTags.TIMEOUT]:[r.LogTags.HIGH_IMPACT],error:n instanceof Error?n:Error(String(n)),data:{slug:e,url:l,timeoutMs:3e3}}),null}}async function a(e,s){let o=t.default.env.BFO_API_URL;if(!o||!e)return{status:"error"};let a=n(o),u={Accept:"application/json","X-Tenant":t.default.env.BFO_TENANT?.trim()||"public"},l=null;if(s){let t=`${a}/sites/published-by-host?host=${encodeURIComponent(s)}`;try{let n=await fetch(t,{cache:"no-store",signal:AbortSignal.timeout(3e3),headers:u});if(n.ok){let e=await i(n);return{status:"exists",localization:e}}404===n.status?l="not-found":(console.error(`[PublishedConfig] checkPublishedSiteExists by-host non-OK: ${n.status} | host=${s} | url=${t}`),r.logger.sendLog({message:`[PublishedConfig] checkPublishedSiteExists by-host non-OK: ${n.status}
1`,component:"checkPublishedSiteExists",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:[r.LogTags.HIGH_IMPACT],data:{slug:e,host:s,status:n.status,url:t}}),l="error")}catch(o){let n=o instanceof Error&&("TimeoutError"===o.name||"AbortError"===o.name);r.logger.sendLog({message:n?"[PublishedConfig] checkPublishedSiteExists by-host timed out":"[PublishedConfig] checkPublishedSiteExists by-host failed",component:"checkPublishedSiteExists",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:n?[r.LogTags.HIGH_IMPACT,r.LogTags.TIMEOUT]:[r.LogTags.HIGH_IMPACT],error:o instanceof Error?o:Error(String(o)),data:{slug:e,host:s,url:t,timeoutMs:3e3}}),l="error"}}let c=`${a}/sites/published/${encodeURIComponent(e)}`;try{let t=await fetch(c,{cache:"no-store",signal:AbortSignal.timeout(3e3),headers:u});if(t.ok){let e=await i(t);return{status:"exists",localization:e}}if(404===t.status)return{status:"error"===l?"error":"not-found"};return console.error(`[PublishedConfig] checkPublishedSiteExists got non-OK: ${t.status} | slug=${e} | url=${c}`),r.logger.sendLog({message:`[PublishedConfig] checkPublishedSiteExists got non-OK: ${t.status}`,component:"checkPublishedSiteExists",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:[r.LogTags.HIGH_IMPACT],data:{slug:e,status:t.status,url:c}}),{status:"error"}}catch(n){console.error("[PublishedConfig] Failed to check published site existence:",n);let t=n instanceof Error&&("TimeoutError"===n.name||"AbortError"===n.name);return r.logger.sendLog({message:t?"[PublishedConfig] checkPublishedSiteExists timed out":"[PublishedConfig] Failed to check published site existence",component:"checkPublishedSiteExists",context:r.EnvironmentErrorContextEnum.SERVER,severity:r.GenericSeverityEnum.ERROR,tags:t?[r.LogTags.HIGH_IMPACT,r.LogTags.TIMEOUT]:[r.LogTags.HIGH_IMPACT],error:n instanceof Error?n:Error(String(n)),data:{slug:e,url:c,timeoutMs:3e3}}),{status:"error"}}}async function i(e){try{let t=await e.json();if(t?.localization&&"number"==typeof t.localization.idCountry&&"string"==typeof t.localization.defaultLocale&&"string"==typeof t.localization.currency)return t.localization}catch{}return null}e.s(["checkPublishedSiteExists",0,a,"getPublishedConfig",0,o])},854838,e=>{"use strict";e.i(247167);var t=e.i(971788),r=e.i(144850),n=e.i(138570);let s={INFO:"info",LOG:"log",DEBUG:"debug",WARNING:"warning",ERROR:"error",FATAL:"fatal"},o="[Expected-Nextjs]",a=e=>{let t=["debug","log","info","warning","error","fatal"];return t.indexOf(e)>=t.indexOf("error")},i=e=>e instanceof Error?e:void 0,u=e=>{a(s.ERROR)&&!(0,n.isBrowserNetworkError)(e)&&(0,r.sendDatadogLog)({message:e instanceof Error?e.message:String(e),status:"error",context:{platform:"[Unexpected-Nextjs]"},error:i(e)})};e.s(["severityEnum",0,s,"trackingExpectedBehaviour",0,({componentName:e,labelDetails:n,severity:u=s.INFO,error:l,context:c})=>{if(!a(u))return;let E=n?`[${e}]-[${n}]`:`[${e}]`;(0,r.sendDatadogLog)({message:E,status:(0,r.mapSeverityToDatadogStatus)(u),context:{platform:o,component:e,...c?{details:(0,t.default)(c)}:{}},error:i(l)})},"trackingExpectedBehaviourWithBodyDetails",0,({componentName:e,url:n,responseError:i,body:l,severity:c=s.INFO})=>{try{if(!a(c))return;let s={};n&&(s.url=n),i&&(s.responseError=(0,t.default)(i),"number"==typeof i.httpStatus&&(s.httpStatus=i.httpStatus)),l&&(s.body=(0,t.default)(l)),(0,r.sendDatadogLog)({message:e,status:(0,r.mapSeverityToDatadogStatus)(c),context:{platform:o,component:e,...s}})}catch(e){u(e)}},"trackingUnexpectedError",0,u])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.