PageSourceSearch

https://www.codebanana.com/_next/static/chunks/app/%5Blocale%5D/layout-e5a7745bcb88f3ec.js

js codebanana.com collected 2026-10-04 22:37:46 UTC 10,609 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d49bfdbd-2bbd-4ca0-bf94-355c305af476",e._sentryDebugIdIdentifier="sentry-dbid-d49bfdbd-2bbd-4ca0-bf94-355c305af476")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98450],{3809:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var l=r(49930),a=r(95155);function n(e){let{locale:t,...r}=e;if(!t)throw Error(void 0);return(0,a.jsx)(l.Dk,{locale:t,...r})}},20063:(e,t,r)=>{"use strict";var l=r(47260);r.o(l,"useParams")&&r.d(t,{useParams:function(){return l.useParams}}),r.o(l,"usePathname")&&r.d(t,{usePathname:function(){return l.usePathname}}),r.o(l,"useRouter")&&r.d(t,{useRouter:function(){return l.useRouter}}),r.o(l,"useSearchParams")&&r.d(t,{useSearchParams:function(){return l.useSearchParams}}),r.o(l,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return l.useServerInsertedHTML}})},23678:(e,t,r)=>{"use strict";r.d(t,{AppUpdateProvider:()=>i,v:()=>d});var l=r(95155),a=r(12115),n=r(36489),o=r(87358);function u(){var e;return null!=(e=window.desktopAPI)?e:null}function c(e){return(e/1024/1024).toFixed(1)}let s=(0,a.createContext)(null);function i(e){let{children:t}=e,r=function(){var e,t;let{data:r,status:l}=(0,n.useSession)(),s="true"===o.env.NEXT_PUBLIC_IS_NATIVE&&"authenticated"===l&&(t=null==r||null==(e=r.user)?void 0:e.email,/^[^@\s]+@mobvoi\.com$/i.test((null==t?void 0:t.trim())||""))?"internal":"public",[i,d]=(0,a.useState)("idle"),[m,f]=(0,a.useState)(null),[g,S]=(0,a.useState)(null),[v,p]=(0,a.useState)(null),[h,w]=(0,a.useState)(null),[_,b]=(0,a.useState)(null),[I,y]=(0,a.useState)(0),[P,k]=(0,a.useState)(0),[D,C]=(0,a.useState)(0),[E,T]=(0,a.useState)(!1),[U,N]=(0,a.useState)(null),[O,j]=(0,a.useState)(null),[M,R]=(0,a.useState)(!1),[A,x]=(0,a.useState)(""),F=(0,a.useRef)(null),V=(0,a.useRef)(null),B=(0,a.useRef)(null),L=(0,a.useRef)(i);L.current=i;let J=(0,a.useRef)(s);(0,a.useEffect)(()=>{J.current!==s&&(J.current=s,B.current=null,"downloading"!==L.current&&"installing"!==L.current&&(d("idle"),S(null),p(null),w(null),b(null),T(!1),N(null),j(null),R(!1)))},[s]),(0,a.useEffect)(()=>{let e,t=()=>{let r=u();if(!(null==r?void 0:r.onUpdateDownloadProgress)){e=setTimeout(t,300);return}F.current=r.onUpdateDownloadProgress(e=>{y(e.percent),k(e.transferred),C(e.total);let t=Date.now(),r=V.current;if(r){let l=(t-r.time)/1e3;l>.1&&x(function(e){let t=e/1024/1024;return t<.1?"0.0":t.toFixed(1)}((e.transferred-r.bytes)/l))}V.current={bytes:e.transferred,time:t}})};return t(),()=>{var t;clearTimeout(e),null==(t=F.current)||t.call(F),F.current=null}},[]),(0,a.useEffect)(()=>{let e;if("loading"===l)return;let t=()=>{var r;let l=u();if(!(null==l?void 0:l.updateCheck)){e=setTimeout(t,500);return}let a=null==(r=l.versions)?void 0:r.app;a&&"unknown"!==a&&f(a),e=setTimeout(()=>{H(!0,s)},5e3)};return e=setTimeout(t,500),()=>clearTimeout(e)},[l,s]),(0,a.useEffect)(()=>{if("idle"!==i||!B.current)return;let e=B.current.at+144e5-Date.now();if(e<=0)return;let t=setTimeout(()=>{B.current=null,H(!0)},e);return()=>clearTimeout(t)},[i]);let H=(0,a.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=u();if(!(null==r?void 0:r.updateCheck))return"error";let l=L.current;if("downloading"===l||"installing"===l)return"update-available";d("checking"),j(null);try{let l=await r.updateCheck(t);if(l.error)return e?d("idle"):(j(l.error),d("error")),"error";if(f(l.currentVersion),!l.updateAvailable)return d("idle"),N(null),"up-to-date";if(S(l.latestVersion||null),p(l.releaseNotes||null),w(l.releaseNotesUrl||null),b(l.downloadUrl||null),T(l.forceUpdate||!1),N(l.releaseChannel||t),!l.forceUpdate&&e&&B.current){let{version:e,at:t}=B.current;if(e===l.latestVersion&&Date.now()-t<144e5)return d("idle"),"up-to-date";B.current=null}if(l.alreadyDownloaded)return d("downloaded"),"update-available";return d("available"),"update-available"}catch(t){return e?d("idle"):(j(t.message||"Failed to check for updates"),d("error")),"error"}},[s]),X=(0,a.useCallback)(async()=>{let e=u();if((null==e?void 0:e.updateDownload)&&"downloading"!==L.current){d("downloading"),y(0),x(""),V.current=null,j(null);try{let t=await e.updateDownload();t.success?d("downloaded"):"cancelled"===t.error||(j(t.error||"Download failed"),d("error"),R(!0))}catch(e){if("cancelled"===e.message)return;j(e.message||"Download failed"),d("error"),R(!0)}}},[]),K=(0,a.useCallback)(async()=>{let e=u();if((null==e?void 0:e.updateCancelDownload)&&"downloading"===L.current){try{await e.updateCancelDownload()}catch(e){}d("available"),y(0),x(""),V.current=null,j(null)}},[]),Q=(0,a.useCallback)(async()=>{let e=u();if(null==e?void 0:e.updateInstall){d("installing");try{let t=await e.updateInstall();t.success||(j(t.error||"Installation failed"),d("error"))}catch(e){j(e.message||"Installation failed"),d("error")}}},[]),W=(0,a.useCallback)(()=>{"downloading"!==L.current&&(j(null),d("available"))},[]),$=(0,a.useCallback)(()=>{E||(g&&(B.current={version:g,at:Date.now()}),d("idle"),R(!1))},[E,g]),q=(0,a.useCallback)(()=>R(!0),[]),z=(0,a.useCallback)(()=>R(!1),[]);return{status:i,currentVersion:m,latestVersion:g,releaseNotes:v,releaseNotesUrl:h,downloadUrl:_,downloadProgress:I,downloadedMB:c(P),totalMB:c(D),downloadSpeed:A,forceUpdate:E,releaseChannel:U,error:O,popoverOpen:M,checkForUpdate:()=>H(!1),downloadUpdate:X,cancelDownload:K,installUpdate:Q,retryDownload:W,dismiss:$,openPopover:q,closePopover:z}}();return(0,l.jsx)(s.Provider,{value:r,children:t})}function d(){let e=(0,a.useContext)(s);return e||{status:"idle",currentVersion:null,latestVersion:null,releaseNotes:null,releaseNotesUrl:null,downloadUrl:null,downloadProgress:0,downloadedMB:"0.0",totalMB:"0.0",downloadSpeed:"",forceUpdate:!1,releaseChannel:null,error:null,popoverOpen:!1,checkForUpdate:async()=>"error",downloadUpdate:async()=>{},cancelDownload:async()=>{},installUpdate:async()=>{},retryDownload:()=>{},dismiss:()=>{},openPopover:()=>{},closePopover:()=>{}}}},33603:(e,t,r)=>{"use strict";r.d(t,{AK:()=>m,Qk:()=>s,default:()=>c,v:()=>d});var l=r(12115),a=r(20063);let n=["ref","utm_source","utm_medium","utm_campaign","utm_id","utm_term"],o="registrationAttribution",u="registrationAttribution_timestamp";function c(){let e=(0,a.useSearchParams)();return(0,l.useEffect)(()=>{let t=Object.fromEntries(n.flatMap(t=>{var r;let l=null==(r=e.get(t))?void 0:r.trim();return l?[[t,l.slice(0,200)]]:[]}));if(!t.utm_id){var r;let l=null==(r=e.get("bd_vid"))?void 0:r.trim();l&&(t.utm_id=l.slice(0,200))}let l=t.ref;if(Object.keys(t).length>0){let e=i(window.location.hostname),r="referralSource_".concat(e),a="referralSource_timestamp_".concat(e),n=Date.now()+2592e6;localStorage.setItem("".concat(o,"_").concat(e),JSON.stringify(t)),localStorage.setItem("".concat(u,"_").concat(e),n.toString()),t.utm_source&&localStorage.setItem("".concat(o,"_utm_url_").concat(e),window.location.href),l&&(localStorage.setItem(r,l),localStorage.setItem(a,n.toString())),l&&(localStorage.setItem("referralSource",l),localStorage.setItem("referralSource_timestamp",n.toString()))}},[e]),null}function s(){let e=i(window.location.hostname),t="".concat(o,"_").concat(e),r="".concat(u,"_").concat(e),l=localStorage.getItem(t),a=Number(localStorage.getItem(r));if(l&&(!a||Date.now()<=a))try{let t=JSON.parse(l),r=Object.fromEntries(n.flatMap(e=>"string"==typeof t[e]&&t[e]?[[e,t[e]]]:[])),a="".concat(o,"_utm_url_").concat(e),u=localStorage.getItem(a);return u&&(r.utm_url=u),r}catch(e){localStorage.removeItem(t),localStorage.removeItem(r)}else l&&(localStorage.removeItem(t),localStorage.removeItem(r));let c=d();return c?{ref:c}:{}}function i(e){if(!e)return"local";let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;let r=Math.abs(t).toString(16).slice(0,4),l=e.split(".")[0].slice(0,4);return"".concat(l,"_").concat(r)}function d(){let e=i(window.location.hostname),t="referralSource_".concat(e),r="referralSource_timestamp_".concat(e),l=localStorage.getItem(t),a=localStorage.getItem(r);if(l)if(!a)return l;else{let e=parseInt(a,10);if(!(Date.now()>e))return l;localStorage.removeItem(t),localStorage.removeItem(r)}let n=localStorage.getItem("referralSource"),o=localStorage.getItem("referralSource_timestamp");if(n){if(o){let e=parseInt(o,10);if(Date.now()>e)return localStorage.removeItem("referralSource"),localStorage.removeItem("referralSource_timestamp"),""}return n}return""}function m(){let e=i(window.location.hostname),t="referralSource_".concat(e),r="referralSource_timestamp_".concat(e);localStorage.removeItem(t),localStorage.removeItem(r),localStorage.removeItem("referralSource"),localStorage.removeItem("referralSource_timestamp"),localStorage.removeItem("".concat(o,"_").concat(e)),localStorage.removeItem("".concat(u,"_").concat(e))}},70509:(e,t,r)=>{Promise.resolve().then(r.bind(r,74647)),Promise.resolve().then(r.bind(r,33603)),Promise.resolve().then(r.bind(r,79125)),Promise.resolve().then(r.bind(r,23678)),Promise.resolve().then(r.bind(r,3809)),Promise.resolve().then(r.bind(r,22663))},74647:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var l=r(95155),a=r(36489),n=r(20063),o=r(87358);function u(e){let{children:t}=e,r=(0,n.usePathname)(),u="true"===o.env.NEXT_PUBLIC_IS_NATIVE,c=r&&r.includes("/s/"),s=r&&r.includes("/file-viewer");return!u&&(c||s)?(0,l.jsx)(l.Fragment,{children:t}):(0,l.jsx)(a.SessionProvider,{refetchOnWindowFocus:!1,children:t})}},79125:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var l=r(12115),a=r(20063);let n=["ref","utm_source","utm_medium","utm_campaign","utm_content","utm_id","utm_term"],o="preserved_url_params";function u(e,t){if(!t||0===Object.keys(t).length)return e;try{let r=new URL(e,window.location.origin);
1return Object.entries(t).forEach(e=>{let[t,l]=e;r.searchParams.has(t)||r.searchParams.set(t,l)}),r.pathname+r.search}catch(t){return e}}function c(){try{let e=sessionStorage.getItem(o);return e?JSON.parse(e):{}}catch(e){return{}}}function s(){return!function(){let e=(0,a.useSearchParams)(),t=(0,a.usePathname)(),r=(0,a.useRouter)();(0,l.useEffect)(()=>{let t=function(e){let t={};return n.forEach(r=>{let l=e.get(r);l&&(t[r]=l)}),t}(e);Object.keys(t).length>0&&Object.keys(t).length>0&&sessionStorage.setItem(o,JSON.stringify(t))},[e,t]),(e,t)=>{let l=u(e,c());return r.replace(l,t)}}(),null}}},e=>{e.O(0,[49930,36489,22663,5449,29793,28441,4672,77358],()=>e(e.s=70509)),_N_E=e.O()}]);

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.