1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d4c56506-d597-5de7-a54b-2bb82cf6266e")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1828,2406,2756,4039,6220,8332],{775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>i,default:()=>a});var r=n(52406),o=n(51100),i=!0;let a=(0,o.lZ)(r.default)},15039:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}(n)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=(function(){return o}).apply(t,[]))||(e.exports=n)}()},21709:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let r={};function o(e){return r[e]||(r[e]=new Promise((t,n)=>{if(document.querySelector(`script[src="${e}"]`))return void t();let o=document.createElement("script");o.src=e,o.async=!0,o.defer=!0,o.onload=()=>t(),o.onerror=()=>{delete r[e],n(Error(`Failed to load ${e}`))},document.head.appendChild(o)})),r[e]}},35064:()=>{},40932:(e,t,n)=>{"use strict";n.d(t,{E5:()=>o,Ot:()=>i,jD:()=>c,wU:()=>a});var r=n(87767);let o=r.Z.GOOGLE_OAUTH_CLIENT_ID||"",i=r.Z.YANDEX_OAUTH_CLIENT_ID||"",a=r.Z.VK_ID_WEB_APP_ID||"54694314",c={google:()=>!!o,yandex:()=>!!i,vk:()=>!!a}}
3,44328:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,W:()=>r});let r="wegotrip-oauth";function o(e,{provider:t,width:n=520,height:i=640}={}){return new Promise((o,a)=>{let c,d=window.screenX+Math.max(0,(window.outerWidth-n)/2),s=window.screenY+Math.max(0,(window.outerHeight-i)/2),l=window.open(e,`wegotrip-oauth-${t}`,`width=${n},height=${i},left=${d},top=${s}`);if(!l)return void a(Error("Popup blocked"));let u=!1,w=null,h=null,p=()=>{u=!0,window.removeEventListener("message",c),w&&clearInterval(w),h&&clearTimeout(h)};c=e=>{if(e.origin!==window.location.origin)return;let n=e.data||{};if(n.source===r&&n.provider===t){p();try{l.close()}catch{}n.token?o({token:n.token,email:n.email,phone:n.phone}):a(Error(n.error||"OAuth failed"))}},w=setInterval(()=>{l.closed&&!u&&(p(),a(Error("Popup closed")))},500),h=setTimeout(()=>{if(!u){p();try{l.close()}catch{}a(Error("OAuth timeout"))}},12e4),window.addEventListener("message",c)})}},47729:(e,t,n)=>{"use strict";n.d(t,{DU:()=>c,KE:()=>d,Nr:()=>w,sm:()=>u});var r=n(21709),o=n(40932);let i=["/vkid-sdk.js","https://cdn.jsdelivr.net/npm/@vkid/sdk@2/dist-sdk/umd/index.js","https://unpkg.com/@vkid/sdk@2/dist-sdk/umd/index.js"],a="vk_login_next";function c(){try{let e=document.cookie.match(RegExp(`(?:^|; )${a}=([^;]*)`));return e?decodeURIComponent(e[1]):""}catch{return""}}function d(){try{document.cookie=`${a}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax`}catch{}}function s(){return window.VKIDSDK||window.VKID?Promise.resolve(window.VKIDSDK||window.VKID):i.reduce((e,t)=>e.catch(()=>(0,r.A)(t).then(()=>{let e=window.VKIDSDK||window.VKID;if(!e)throw Error(`VK ID SDK unavailable from ${t}`);return e})),Promise.reject(Error("Start loading VK SDK")))}function l(e){e.Config.init({app:Number(o.wU||"54694314"),redirectUrl:`${window.location.origin}/auth/vk/callback`,responseMode:e.ConfigResponseMode.Redirect,mode:e.ConfigAuthMode.Redirect,source:e.ConfigSource.LOWCODE,scope:"email phone"})}function u(e){try{let t=new Date(Date.now()+6e5).toUTCString();document.cookie=`${a}=${encodeURIComponent(e||"")}; path=/; expires=${t}; SameSite=Lax`}catch{}return s().then(e=>(l(e),e.Auth.login()))}function w(){let e=new URLSearchParams(window.location.search),t=e.get("code")||"",n=e.get("device_id")||e.get("deviceId")||"";return s().then(e=>(l(e),e.Auth.exchangeCode(t,n).then(e=>{if(!e||!e.access_token)throw Error(e&&(e.error_description||e.error)||"VK exchange returned no token");return{token:e.access_token,email:e.email||"",phone:e.phone||""}})))}},52406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(37876),o=n(14232),i=n(31777),a=n(54241),c=n(44328),d=n(47729),s=n(40932),l=n(80630),u=n(43013),w=n(64383),h=n(80428);function p(){let e=(0,i.wA)(),t=(0,u.A)(),[n,p]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{var n;let r,o=(n=window.location.pathname,/\/auth\/apple\/complete/.test(n)?"apple":/\/auth\/yandex\/callback/.test(n)?"yandex":/\/auth\/vk\/callback/.test(n)||/\/vk_id_redirect/.test(n)?"vk":null),i=new URLSearchParams(window.location.search);if("apple"===o){let n=i.get("error"),r=i.get("code");return n||!r?void p(!0):void e((0,l.$w)({code:r,method:"apple",lang:t})).then(e=>{if(l.$w.fulfilled.match(e)){let e=(0,w.A)(i.get("next"),`/${t}/`);window.location.assign(e)}else p(!0)}).catch(()=>p(!0))}let a=i.get("error");if("vk"===o){if(a||!i.get("code")){(0,d.KE)(),p(!0);return}(0,d.Nr)().then(({token:n,email:r,phone:o})=>e((0,l.Ck)({provider:"vk",token:n,appId:s.wU,email:r,phone:o,lang:t}))).then(e=>{if(l.Ck.fulfilled.match(e)){let e;e=(0,w.A)((0,d.DU)(),`/${t}/`),(0,d.KE)(),window.location.assign(e)}else p(!0)}).catch(()=>p(!0));return}let u=(r=new URLSearchParams(window.location.hash.replace(/^#/,""))).get("access_token")||r.get("token")||i.get("code");(e=>{if(!window.opener){if(e.error){let e=(0,w.A)(i.get("next"),`/${t}/`),n=(0,h.Ay)("login",{lang:t});window.location.assign(`/${n}?next=${encodeURIComponent(e)}`);return}p(!0);return}window.opener.postMessage({source:c.W,provider:o,...e},window.location.origin),window.close()})({token:u,error:a||(u?null:"no_token")})},[e,t]),(0,r.jsx)("div",{className:"AuthCallback",children:n?(0,r.jsx)("p",{children:(0,r.jsx)(a.x6,{id:"cK1X3R"})}):(0,r.jsx)("p",{children:(0,r.jsx)(a.x6,{id:"UOV0wi"})})})}n(35064),p.getInitialProps=async()=>({})}
3,64383:(e,t,n)=>{"use strict";function r(e,t="/"){if(!e||"string"!=typeof e)return t;let n=e.trim(),o=n.toLowerCase();return!n||"null"===n||"undefined"===n||"/null"===n||"/null/"===n||"/undefined"===n||"/undefined/"===n||n.startsWith("null/")||n.startsWith("undefined/")||n.startsWith("//")||0===o.indexOf("javascript:")?t:/^https?:\/\//i.test(n)||n.startsWith("/")?n:`/${n}`}n.d(t,{A:()=>r})},93276:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/[...slug]",function(){return n(775)}])}},e=>{e.O(0,[7834,6648,3085,1100,636,6593,8792],()=>e(e.s=93276)),_N_E=e.O()}]); 4//# sourceMappingURL=[...slug]-a27e047452e471b9.js.map 5//# debugId=d4c56506-d597-5de7-a54b-2bb82cf6266e
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.