1import{a as U,b as h}from"./chunk-UTFCFWIO.js";import{a as J}from"./chunk-DCGEF572.js";import{b as $,d as k,e as D,f as P,g as H,h as _,i as x,l as V,m as B,p as G,q as K,r as z,s as W}from"./chunk-6AHCEWFA.js";import{F as w,Ia as O,K as p,M as u,Ma as R,N as M,O as c,P as d,Ya as j,a as l,b as N,da as F,l as C,n as y,q as I,y as T,zb as E}from"./chunk-GFINLMAF.js";var se=new u("TRANSLOCO_LOADER");function Y(e,r){return e&&(Object.prototype.hasOwnProperty.call(e,r)?e[r]:r.split(".").reduce((t,n)=>t?.[n],e))}function oe(e,r,t){e=l({},e);let n=r.split("."),s=n.length-1;return n.reduce((o,i,a)=>(a===s?o[i]=t:o[i]=Array.isArray(o[i])?o[i].slice():l({},o[i]),o&&o[i]),e),e}function ae(e){return typeof e=="string"}function le(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ce(e){return e==null}function Z(e){return ce(e)===!1}var m=new u("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>v}),v={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function pe(e={}){return N(l(l({},v),e),{missingHandler:l(l({},v.missingHandler),e.missingHandler),flatten:l(l({},v.flatten),e.flatten)})}var ue=new u("TRANSLOCO_TRANSPILER"),de=(()=>{class e{interpolationMatcher;constructor(t){this.interpolationMatcher=he(t??v)}transpile(t,n={},s,o){return ae(t)?t.replace(this.interpolationMatcher,(i,a)=>(a=a.trim(),Z(n[a])?n[a]:Z(s[a])?this.transpile(s[a],n,s,o):"")):(n&&(le(t)?t=this.handleObject(t,n,s,o):Array.isArray(t)&&(t=this.handleArray(t,n,s,o))),t)}handleObject(t,n={},s,o){let i=t;return Object.keys(n).forEach(a=>{let g=Y(i,a),S=Y(n,a),re=this.transpile(g,S,s,o);i=oe(i,a,re)}),i}handleArray(t,n={},s,o){return t.map(i=>this.transpile(i,n,s,o))}static \u0275fac=function(n){return new(n||e)(M(m,8))};static \u0275prov=p({token:e,factory:e.\u0275fac})}return e})();function he(e){let[r,t]=e.interpolation;return new RegExp(`${r}(.*?)${t}`,"g")}var fe=new u("TRANSLOCO_MISSING_HANDLER"),ge=(()=>{class e{handle(t,n){if(n.missingHandler.logMissingKey&&!n.prodMode){let s=`Missing translation for '${t}'`;console.warn(`%c ${s}`,"font-size: 12px; color: red")}return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=p({token:e,factory:e.\u0275fac})}return e})(),ve=new u("TRANSLOCO_INTERCEPTOR"),me=(()=>{class e{preSaveTranslation(t){return t}preSaveTranslationKey(t,n){return n}static \u0275fac=function(n){return new(n||e)};static \u0275prov=p({token:e,factory:e.\u0275fac})}return e})(),Le=new u("TRANSLOCO_FALLBACK_STRATEGY"),ye=(()=>{class e{userConfig;constructor(t){this.userConfig=t}getNextLangs(){let t=this.userConfig.fallbackLang;if(!t)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(t)?t:[t]}static \u0275fac=function(n){return new(n||e)(M(m))};static \u0275prov=p({token:e,factory:e.\u0275fac})}return e})();function X(e){let r=[be(de),Ce(ge),we(me),Se(ye)];return e.config&&r.push(Te(e.config)),e.loader&&r.push(Ae(e.loader)),r}function Te(e){return d([{provide:m,useValue:pe(e)}])}function Ae(e){return d([{provide:se,useClass:e}])}function be(e){return d([{provide:ue,useClass:e,deps:[m]}])}function Se(e){return d([{provide:Le,useClass:e,deps:[m]}])}function Ce(e){return d([{provide:fe,useClass:e}])}function we(e){return d([{provide:ve,useClass:e}])}var L=()=>{let e=c(h),r=c(B);return e.isAuthenticated()?!0:r.createUrlTree(["/login"])};var f=()=>import("./chunk-QC43MELH.js").then(e=>e.MarketingShell),q=[{path:"login",loadComponent:()=>import("./chunk-YG4EKFUG.js").then(e=>e.Login)},{path:"register",loadComponent:()=>import("./chunk-PBJ6WGCS.js").then(e=>e.Register)},{path:"embed/:slug",loadComponent:()=>import("./chunk-AVCI2DV7.js").then(e=>e.Embed)},{path:"motivate/:slug",loadComponent:()=>import("./chunk-6KT2R63B.js").then(e=>e.Motivate)},{path:"about",loadComponent:f,children:[{path:"",loadComponent:()=>import("./chunk-HB433OSW.js").then(e=>e.About)}]},{path:"how-it-works",loadComponent:f,children:[{path:"",loadComponent:()=>import("./chunk-QEAGUHBS.js").then(e=>e.HowItWorks)}]},{path:"creators",loadComponent:f,children:[{path:"",loadComponent:()=>import("./chunk-VZATJ53Z.js").then(e=>e.Creators)}]},{path:"pricing",loadComponent:f,children:[{path:"",loadComponent:()=>import("./chunk-H7PIXRLF.js").then(e=>e.Pricing)}]},{path:"terms",loadComponent:f,children:[{path:"",loadComponent:()=>import("./chunk-MPJNWOPR.js").then(e=>e.Terms)}]},{path:"privacy",loadComponent:f,children:[{path:"",loadComponent:()=>import("./chunk-J6P2RHRX.js").then(e=>e.Privacy)}]},{path:"",loadComponent:()=>import("./chunk-SEE757IU.js").then(e=>e.Shell),children:[{path:"",loadComponent:()=>import("./chunk-P725SLJ5.js").then(e=>e.Home)},{path:"watch/:slug",loadComponent:()=>import("./chunk-NHXBTSGP.js").then(e=>e.Watch)},{path:"search",loadComponent:()=>import("./chunk-QAEGDIUZ.js").then(e=>e.Search)},{path:"explore",loadComponent:()=>import("./chunk-4EI44OIY.js").then(e=>e.Explore)},{path:"channel/:username",loadComponent:()=>import("./chunk-OI4IJOGY.js").then(e=>e.Channel)},{path:"settings",canActivate:[L],loadComponent:()=>import("./chunk-CBCPOE25.js").then(e=>e.Settings)},{path:"me/lists",canActivate:[L],loadComponent:()=>import("./chunk-4X6KDNO7.js").then(e=>e.ListIndex)},{path:"me/lists/:id",canActivate:[L],loadComponent:()=>
1import("./chunk-SJWAQOVC.js").then(e=>e.ListDetail)},{path:"u/:username/lists/:slug",loadComponent:()=>import("./chunk-WDZ4U6M2.js").then(e=>e.PublicList)},{path:"studio",canActivate:[L],children:[{path:"",redirectTo:"videos",pathMatch:"full"},{path:"upload",loadComponent:()=>import("./chunk-S2VMCAAL.js").then(e=>e.Upload)},{path:"videos",loadComponent:()=>import("./chunk-EHWM6LMB.js").then(e=>e.MyVideos)},{path:"analytics",loadComponent:()=>import("./chunk-UB4SZIG7.js").then(e=>e.Analytics)},{path:"earnings",loadComponent:()=>import("./chunk-LFZ3SWBL.js").then(e=>e.Earnings)},{path:"licensing",loadComponent:()=>import("./chunk-T5HODGIR.js").then(e=>e.Licensing)}]}]},{path:"**",redirectTo:""}];var A=class e{#e=c(k);getTranslation(r){return I(this.#e.get(`/assets/i18n/${r}.json`))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"})};function Me(e,r=30){if(!e)return!0;try{let t=e.split(".");if(t.length!==3)return!0;let n=JSON.parse(atob(t[1]));return n?.exp?n.exp*1e3<Date.now()+r*1e3:!0}catch{return!0}}var ee=(e,r)=>{if(!e.url.startsWith(J.apiUrl)||e.url.includes("/auth/login")||e.url.includes("/auth/register")||e.url.includes("/auth/refresh"))return r(e);let t=c(U),n=c(h),s=t.getAccessToken();if(s&&Me(s)&&t.getRefreshToken())return C(n.refreshAccessToken()).pipe(w(i=>{let a=i?t.getAccessToken():null,g=a?e.clone({setHeaders:{Authorization:`Bearer ${a}`}}):e;return r(g)}),T(()=>r(e)));let o=s?e.clone({setHeaders:{Authorization:`Bearer ${s}`}}):e;return r(o).pipe(T(i=>i.status===401&&t.getRefreshToken()?C(n.refreshAccessToken()).pipe(w(a=>
1{if(a){let g=t.getAccessToken(),S=e.clone({setHeaders:{Authorization:`Bearer ${g}`}});return r(S)}return n.logout(),y(()=>i)}),T(()=>(n.logout(),y(()=>i)))):y(()=>i)))};var te=["en","es","fr","de","it","pt-BR","nl","ru","zh-CN","zh-TW","ja","ko","ar","he","hi","tr","pl","cs","uk","id","vi","th"];var ne={providers:[F(),E(),G(q,z(),W(),K({scrollPositionRestoration:"top"})),D(H(),P([ee])),X({config:{availableLangs:[...te],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0,missingHandler:{useFallbackTranslation:!0}},loader:A}),x(_()),{provide:R,useFactory:e=>()=>e.restoreSession(),deps:[h],multi:!0}]};var b=class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=O({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&j(0,"router-outlet")},dependencies:[V],styles:["[_nghost-%COMP%]{display:block;min-height:100vh}"]})};$(b,ne).catch(e=>console.error(e));
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.