PageSourceSearch

https://www.curiousjr.com/cjr-assets/_next/static/chunks/8024-7124d4c6982e5923.js

js curiousjr.com collected 2026-09-24 10:24:16 UTC 20,944 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8024],{27154:(e,t,a)=>{a.d(t,{J:()=>f,UserProvider:()=>m});var o=a(41073),r=a(30157),n=a(83948),l=a(35068),s=a(55835),c=a(40476),i=a(68362),u=a(45547),d=a(72124),p=a(80576),g=a(31989);let h=(0,g.createContext)({user:null,isLoading:!0,purchasedBatchesData:null,paidData:{},journeyHomeData:null,updateUser:()=>{},clearUser:()=>{},handlePurchasedBatchesDataUpdate:()=>{},updatePaidData:()=>{},clearPaidData:()=>{},updateJourneyHomeData:()=>{},isUserLoggedIn:!1,refetchUserBatches:async()=>{},userSelectedCohortId:"",handleUserSelectedCohortIdUpdate:e=>{},handleCohortExploration:e=>{},handleActualCohortSwitch:e=>{},fetchUserData:()=>Promise.resolve(null),profileUpdateTrigger:0,triggerProfileUpdate:()=>{},clientConfig:null,fetchClientConfig:e=>Promise.resolve(null),globalRef:{current:{}},cohorts:[]}),m=e=>{let{children:t}=e,[a,m]=(0,g.useState)(null),[f,y]=(0,g.useState)(!0),[w,S]=(0,g.useState)(null),[E,I]=(0,g.useState)({}),[T,C]=(0,g.useState)(""),[N,O]=(0,g.useState)(null),[_,v]=(0,g.useState)(!1),[k,b]=(0,g.useState)(!1),[P,A]=(0,g.useState)(0),U=(0,g.useRef)(!1),K=(0,g.useRef)(!1),[x,W]=(0,g.useState)({}),[D,$]=(0,g.useState)([]),j=(0,g.useRef)({}),{getMe:R}=(0,r.A)(),L=(0,g.useCallback)(e=>{if(null===e){let e={user_status:"non_loggedin",paid_batch_type:"booster"};window.localStorage.setItem("paidData",JSON.stringify(e)),I(e),S(null)}else(0,p.Q9)(e),S(e)},[a]);(0,g.useEffect)(()=>{a&&(async()=>{let e=await l.z.getAllCohorts();return e?.data||[]})().then(e=>$(e)).catch(e=>{console.error("Error fetching cohorts:",e)})},[a]),(0,g.useEffect)(()=>{a?.profileId?.cohortId&&((0,i.N7)("selectedCohortId")||B(a.profileId.cohortId))},[a]);let B=(0,g.useCallback)(e=>{C(e),(0,i.X6)("selectedCohortId",e)},[]),M=(0,g.useCallback)(e=>{C(e),(0,i.X6)("selectedCohortId",e)},[]),G=(0,g.useCallback)(e=>{C(e);try{sessionStorage.removeItem("selectedCohortId")}catch(e){console.warn("Failed to clear selectedCohortId from sessionStorage:",e)}},[]),J=(0,g.useCallback)(async()=>{if(U.current)return console.log("API call in progress, skipping..."),null;if(!(u.O1.getValue(u.$K.TOKEN_CONTEXT)?.token||localStorage.getItem("TOKEN")||localStorage.getItem("token")))return console.log("No token found, skipping fetchUserData API call"),null;U.current=!0;try{console.log("Calling getMe API...");let e=await R();return e&&(m(e),e.id&&((0,d.t)(),(0,s.sF)()),console.log("API called successfully, user data updated")),e}catch(e){return console.error("Error fetching user data from API:",e),null}finally{U.current=!1}},[R]),X=(0,g.useCallback)(async e=>{if(!e?.id)return null;try{let e=await n.Kj.get("batch-service/v4/batches/my-batches",{params:{mode:1,filter:!0}});return e?.data?L(e.data):L(null),e?.data}catch(e){return L(null),null}},[L]);(0,g.useEffect)(()=>{if(_||K.current)return void console.log("UserContext: Initialization already completed or in progress, skipping...");console.log("UserContext: Starting initialization..."),(async()=>{K.current=!0;try{{if((0,c.T)(),u.O1.getValue(u.$K.TOKEN_CONTEXT)?.token||localStorage.getItem("TOKEN")||localStorage.getItem("token"))console.log("UserContext: Token found, calling self API on session start..."),await J(),b(!0);else{console.log("UserContext: No token found, checking localStorage...");let e=window.localStorage.getItem("user");if(e){let t=JSON.parse(e);m(t),t&&t.id&&(0,d.t)()}else console.log("UserContext: No user data found in localStorage and no token");b(!0)}let e=(0,p.vn)();I(e);let t=(0,i.N7)("selectedCohortId");t&&C(t)}}catch(e){console.error("Error initializing user:",e),m(null)}finally{y(!1),v(!0),K.current=!1}})()},[_]);let z=async()=>a?.id?await X(a):null,F=(0,g.useCallback)(e=>{O(e)},[]),H=(0,g.useCallback)(()=>{A(e=>e+1)},[]),V=!!(a&&a.id),q=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"BATCH_CONFIG";try{let t=await n.Kj.get(n.zu.CJR_API,`v1/client/metadata?category=${e}`);if(t?.data)return W(a=>({...a,[e]:t.data})),t.data;return W(null),{}}catch(e){return console.error("Error fetching client config:",e),{}}};return(0,o.jsx)(h.Provider,{value:{user:a,isLoading:f,purchasedBatchesData:w,paidData:E,journeyHomeData:N,updateUser:e=>{try{m(e),e?(window.localStorage.setItem("user",JSON.stringify(e)),e.id&&((0,d.t)(),(0,s.sF)(),X(e))):(window.localStorage.removeItem("user"),L(null))}catch(e){console.error("Error updating user:",e)}},clearUser:()=>{m(null),L(null),window.localStorage.removeItem("user")}
1,handlePurchasedBatchesDataUpdate:L,updatePaidData:e=>{(0,p.rD)(e),I(e)},clearPaidData:()=>{(0,p.kv)(),I({})},updateJourneyHomeData:F,isUserLoggedIn:V,refetchUserBatches:z,userSelectedCohortId:T,handleUserSelectedCohortIdUpdate:B,handleCohortExploration:M,handleActualCohortSwitch:G,fetchUserData:J,profileUpdateTrigger:P,triggerProfileUpdate:H,clientConfig:x,fetchClientConfig:q,globalRef:j,cohorts:D},children:t})},f=()=>{let e=(0,g.useContext)(h);if(!e)throw Error("useUser must be used within a UserProvider");return e}},30157:(e,t,a)=>{a.d(t,{A:()=>I});var o=a(87778),r=a(36086),n=a(87894);a(41073);var l=a(31989);let s=(0,l.createContext)({isSidebarOpen:!1,userInteracted:!1,isAuthEnable:!1,toggleSidebar:async()=>{},isLoggedIn:!1,setIsLoggedIn:async()=>{},host:""});var c=a(27154),i=a(83948),u=a(55835),d=a(68362),p=a(45547),g=a(76035),h=a(78482),m=a(33829),f=a(33980),y=a(57777),w=a.n(y),S=a(2915);let E="Too many OTP requests, Please try after sometime.",I=()=>{let{host:e}=(()=>{let e=(0,l.useContext)(s);if(!e)throw Error("useGlobal must be used within an GlobalProvider");return e})(),[t,a]=(0,l.useState)(!1);(0,m.useRouter)();let y=(0,m.usePathname)(),[I,T]=(0,l.useState)(!1),[C,N]=(0,l.useState)(""),[O,_]=(0,l.useState)(""),{updateUser:v,user:k}=(0,c.J)(),b=()=>{if(!(!window||window&&0)&&e){let t=(0,g.eN)(e),a=(0,g.YQ)(t);window?.PWWebSDK&&!window?.PWWebSDK?.config?window.PWWebSDK.updateConfig(a):window?.PWWebSDK||h.uR.getInstance(a),window?.PWWebSDK?.randomId&&(0,d.wh)("randomId")||((0,d.wh)("AUTH_CONFIG")||window.PWWebSDK.storage.set("AUTH_CONFIG",a),window.PWWebSDK.setTokenContext={randomId:w()()})}},P=async e=>{let t=e?.data?.user?.firstName;e?.data?.user?.lastName&&(t+=" "+e?.data?.user?.lastName),p.O1.setValue(p.$K.TOKEN_CONTEXT,{token:e?.data?.access_token,username:t,[n.aZ]:e?.data.refresh_token,expires_in:e?.data.expires_in}),localStorage.setItem("token",e?.data?.access_token),localStorage.setItem("TOKEN",e?.data?.access_token),localStorage.setItem("username",t),localStorage.setItem(n.aZ,e?.data.refresh_token),localStorage.setItem("expires_in",e?.data.expires_in)};return{loading:t,error:C,exchangeToken:async()=>{let e=await i.Kj.get("v3/oauth/exchange-token",{headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, /",randomId:O,client:"hasura",client_type:"WEB","client-type":"WEB"}});e?.data&&(localStorage.setItem("token",e?.data.access_token),localStorage.setItem("TOKEN",e?.data.access_token),localStorage.setItem(n.aZ,e?.data.refresh_token),localStorage.setItem("expires_in",e?.data.expires_in))},handleLogout:async()=>{let e=k?.countryGroup,t=localStorage.getItem("COUNTRY_LOCATION");window.PWWebSDK&&await window.PWWebSDK.logout(),(0,d.sw)(),(0,u.A9)(),b(),t&&localStorage.setItem("COUNTRY_LOCATION",t),window.PWWebSDK&&window.PWWebSDK.updateConfig(r.s),y.includes("/marketing")||(e?window.location.replace(`${window.location.origin}/${e.toLowerCase()}`):window.location.replace(window.location.origin)),v(null)},getMe:async()=>{if(!(p.O1.getValue(p.$K.TOKEN_CONTEXT)?.token||localStorage.getItem("TOKEN")||localStorage.getItem("token")))return console.log("No token found, skipping getMe API call"),null;try{let e=await i.Kj.get("v1/users/my-profile");if(e?.data)return localStorage.setItem("user",JSON.stringify(e?.data)),e.data}catch(e){console.error("Error in getMe API call:",e)}return null},resendOTP:async(e,t,o)=>{let r={mobile:e,countryCode:o||localStorage.getItem(n.bo)||"+91",organizationId:"65c99dcf0499af0018cc716a"};try{N(""),a(!0);let e=await i.Kj.post(`v1/users/resend-otp?smsType=${t}`,r,{headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, /",randomId:O,client_type:"WEB"}});if(e.data)return T(!0),a(!1),e.data.success}catch(e){return a(!1),console.log(e),!1}},handleLogin:async(e,t,o,r,n,l,s,c,i,u,d)=>{try{return N(""),a(!0),await window.PWWebSDK.verifyOTP(t,e,6048e5,o,r,n,l,"",c,i,u,d),T(!0),a(!1),!0}catch(e){return console.log(e),console.log("error"),a(!1),N(e?.message),!1}},handleRegister:async e=>{let{mobile:t,firstName:o,lastName:r,email:n,countryCode:l,smsType:s,successCallback:c,loginEventMetadata:i}=e;try{N(""),a(!0),await window.PWWebSDK.registerUser({phoneNumber:t,countryCode:l||"+91",firstName:o||"",lastName:r||"",smsType:s,loginEventMetadata:i}),T(!0),a(!1),c?.()}catch(e){e?.message?.includes("Too many OTP requests")&&f.oR.error(E),a(!1)}},handleUpdateUser:async e=>{try{N(""),a(!0);let t=await i.Kj.put("v1/users",e,{headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, /",randomId:O,client:"hasura",client_type:"WEB"}});return a(!1),t}catch(e){return a(!1),e}},otpSent:I,reset:()=>{T(!1),N("")},handleGenerateOTP:async(e,t,o)=>{try{N(""),a(!0);let r=await window.PWWebSDK.getOTP(e,o||"+91",t);if(r?.success===!1)return r?.message?.includes("Too many OTP requests")&&f.oR.error(E),a(!1),!1;return a(!1),T(!0),!r?.newUser}catch(e){return a(!1),!1}},handleGoogleLogin:async e=>{try{N("");let t=await i.Kj.post("v3/oauth/social-connect",e,{headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, /",randomId:O,client:"hasura",client_type:"WEB"}});if(t?.data?.user)return P(t),!0}catch(e){return console.log(e),!1}},fetchAuthToken:async e=>{a(!0);let t=await i.Kj.post("v1/oauth/token",{client_id:S.env.NEXT_PUBLIC_AUTH_TOKEN_CLIENT_ID,client_secret:S.env.
1NEXT_PUBLIC_AUTH_TOKEN_CLIENT_SECRET,grant_type:"password",organizationId:S.env.NEXT_PUBLIC_ORG_ID,...e});if(a(!1),t?.data?.access_token){let{access_token:e,user:a}=t?.data;localStorage.setItem("token",e),localStorage.setItem("TOKEN",e),localStorage.setItem("user",JSON.stringify(a))}},resendOTPBySmsType:async e=>{let t={mobile:localStorage.getItem("username"),organizationId:"65c99dcf0499af0018cc716a"};try{return N(""),a(!0),await i.Kj.post(`/v1/users/resend-otp?smsType=${e}`,t,{headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, /",randomId:O,client:"hasura",client_type:"WEB"}}),a(!1),T(!0),!0}catch(e){a(!1)}},handleIsUserValidate:async e=>{let{countryCode:t,mobile:o,smsType:r}=e;try{return N(""),a(!0),await i.Kj.post(`v3/users/validate-user/65c99dcf0499af0018cc716a?smsType=${r}`,{countryCode:t,mobile:o},{headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, /",randomId:O,client_type:"WEB"}}),T(!0),a(!1),!0}catch(e){return a(!1),console.log(e),!1}},checkUserExistsForOtpLess:async e=>{let t=(0,o.WJ)({org:"CJR"});try{return await i.Kj.post("v3/users/public/trigger-flow",{username:e,organizationId:"65c99dcf0499af0018cc716a"},{customHeaders:t})}catch(e){return console.log("Error checking user existence:",e),null}},resetOnLogout:b}}},35068:(e,t,a)=>{a.d(t,{z:()=>n});var o=a(87636),r=a(83948);class n{static async getAllCohorts(){try{let e=await (0,r.iD)();if(!e)throw Error("No access token available");let t=(0,o.g)(),a=await fetch(`${this.BASE_URL}/v1/public/cohort/all`,{method:"GET",headers:{accept:"*/*","accept-language":"en-US,en;q=0.9",authorization:`Bearer ${e}`,"cache-control":"no-cache","content-type":"application/json",origin:t,pragma:"no-cache",priority:"u=1, i",randomid:crypto.randomUUID(),referer:t?`${t.replace(/\/?$/,"")}/`:"","sec-ch-ua":'"Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"',"sec-ch-ua-mobile":"?1","sec-ch-ua-platform":'"Android"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Mobile Safari/537.36","x-device-browser":"Mobile Chrome 140.0.0.0","x-device-manufacturer":"LG","x-device-model":"Nexus 5","x-device-os":"Android 6.0","x-request-platform":"ANDROID","x-request-source":"undefined","x-request-source-link":`${t}/home`}});if(!a.ok)throw Error(`HTTP error! status: ${a.status}`);return await a.json()}catch(e){throw console.error("Error fetching cohorts:",e),e}}static async getCohortsByCountryId(e){try{let t=await (0,r.iD)();if(!t)throw Error("No access token available");let a=(0,o.g)(),n=await fetch(`${this.BASE_URL}/v1/public/cohort/all?countryId=${e}`,{method:"GET",headers:{accept:"*/*","accept-language":"en-US,en;q=0.9",authorization:`Bearer ${t}`,"cache-control":"no-cache","content-type":"application/json",origin:a,pragma:"no-cache",priority:"u=1, i",randomid:crypto.randomUUID(),referer:a?`${a.replace(/\/?$/,"")}/`:"","sec-ch-ua":'"Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"',"sec-ch-ua-mobile":"?1","sec-ch-ua-platform":'"Android"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Mobile Safari/537.36","x-device-browser":"Mobile Chrome 140.0.0.0","x-device-manufacturer":"LG","x-device-model":"Nexus 5","x-device-os":"Android 6.0","x-request-platform":"ANDROID","x-request-source":"undefined","x-request-source-link":`${a}/home`}});if(!n.ok)throw Error(`HTTP error! status: ${n.status}`);return await n.json()}catch(e){throw console.error("Error fetching cohorts:",e),e}}}n.BASE_URL="https://curiousjr-k8-api.penpencil.co"},36086:(e,t,a)=>{a.d(t,{s:()=>o});let o={organizationId:"65c99dcf0499af0018cc716a",apiBaseUrl:"https://api.penpencil.co",loginMethods:["OTP","PASSWORD"],localStorageFallback:!0,clientId:"system-admin",clientSecret:"KjPXuAVfC5xbmgreETNMaL7z",contextIdentifier:"TOKEN_CONTEXT",loginPageUrl:"true"===(0,a(68362).wh)("from_app")?"/app-logout":`/login?redirectUrl=${encodeURIComponent(window.location.pathname+window.location.search)}`,redirectUrl:"/app-logout",debugMode:!1}},40476:(e,t,a)=>{a.d(t,{T:()=>s,U:()=>c});var o=a(87894),r=a(45547),n=a(4243),l=a(76035);function s(){let e=new URLSearchParams(window.location.search);"true"===e.get("from_app")&&localStorage.setItem("from_app","true");let t=e.get("platform");t&&localStorage.setItem("platform",t);let a=e.get("token")||e.get("TOKEN");if(a){localStorage.setItem("TOKEN",a),localStorage.setItem("token",a);let e=r.O1.getValue(r.$K.TOKEN_CONTEXT);r.O1.setValue(r.$K.TOKEN_CONTEXT,{..."object"==typeof e&&e?e:{},token:a})}let n=e.get("refresh_token")||e.get("REFRESH_TOKEN");n&&localStorage.setItem(o.aZ,n)}function c(){(0,l.PD)(n.$d.EXIT_SCREEN),(0,l.PD)(n.$d.CLOSE_WEB_VIEW),(0,l.PD)(n.$d.HANDLE_CONTINUE_LEARNING)}},45547:(e,t,a)=>{a.d(t,{$K:()=>o,O1:()=>r});var o=function(e){return e.TOKEN_CONTEXT="TOKEN_CONTEXT",e.USER_PREFERENCES="USER_PREFERENCES",e.THEME="THEME",e.LANGUAGE="LANGUAGE",e}({});class r{static getValue(e){try{let t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length){let e=t.pop()?.split(";").shift();if(e)try{return JSON.parse(decodeURIComponent(e))}catch{return e}}return null}catch(t){return console.warn(`Failed to get cookie '${e}':`,t),null}}static deleteAllCookies(){let e=document.cookie.split(";");for(let t=0;t<e.length;t++)document.cookie=e[t]+"=; expires="+new Date(0).toUTCString()}static setValue(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{let o="object"==typeof t?encodeURIComponent(JSON.stringify(t)):encodeURIComponent(String(t)),r=`${e}=${o}`;a.expires&&(r+=`; expires=${a.expires.toUTCString()}`),void 0!==a.maxAge&&(r+=`; max-age=${a.maxAge}`),a.path?r+=`; path=${a.path}`:r+="; path=/",a.domain&&(r+=`; domain=${a.domain}`),a.secure&&(r+="; secure"),a.sameSite&&(r+=`; samesite=${a.sameSite}`),document.cookie=r}catch(t){console.warn(`Failed to set cookie '${e}':`,t)}}static removeValue(e){try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;domain=${(()=>{let e=window.location.hostname;if(e.startsWith("www.")&&(e=e.slice(4)),"localhost"===e||/^[0-9.]+$/.test(e))return e;let t=e.split(".");return t.length>=3&&t.slice(-2).join(".").length<=6?"."+t.slice(-3).join("."):"."+t.slice(-2).join(".")})()}`}catch(t){console.warn(`Failed to remove cookie '${e}':`,t)}}
1static clear(){Object.values(o).forEach(e=>{this.removeValue(e)})}}},80576:(e,t,a)=>{a.d(t,{Q9:()=>c,kv:()=>s,rD:()=>l,vn:()=>n});var o=a(49433),r=a(68362);let n=()=>{try{let e=localStorage.getItem("paidData");return e?JSON.parse(e):{}}catch(e){return console.error("Error parsing paid data from localStorage:",e),{}}},l=e=>{try{localStorage.setItem("paidData",JSON.stringify(e))}catch(e){console.error("Error setting paid data in localStorage:",e)}},s=()=>{try{localStorage.removeItem("paidData")}catch(e){console.error("Error clearing paid data from localStorage:",e)}},c=e=>{let t;null===e&&window.localStorage.setItem("paidData",JSON.stringify({user_status:"non_loggedin"}));let a=(e||[])?.filter(e=>e?.isPurchased&&"WEBINAR"!==e.type),n=a&&0!==a.length,l=!1,s=!1;a.forEach(e=>{e?.config?.cjrBatchType===o.hJ.BOOSTER?l=!0:s=!0}),l&&s?t="both":l?t="booster":s&&(t="master");let c={user_status:n?"paid":"free",paid_batch_type:t};(0,r.st)("paidData",JSON.stringify(c))}},83948:(e,t,a)=>{a.d(t,{Kj:()=>d,OW:()=>p,iD:()=>c,zu:()=>s});var o=a(68362),r=a(45547),n=a(78482);let l={PP_API:"https://api.penpencil.co",CJR_API:"https://curiousjr-k8-api.penpencil.co/",STORE_API:"https://store-svc.pw.live/",CDN:a(2915).env.NEXT_PUBLIC_CDN_BASE_URL||""},s=Object.fromEntries(Object.keys(l).map(e=>[e,e])),c=()=>r.O1.getValue(r.$K.TOKEN_CONTEXT)?.token||localStorage.getItem("TOKEN")||localStorage.getItem("token"),i=e=>({version:"510","client-id":"65c99dcf0499af0018cc716a","client-version":"512","client-type":"true"===(0,o.wh)("from_app")?"MOBILE":"WEB",...e}),u=(e,t)=>{if(t)return((e,t)=>{if(t.startsWith("http://")||t.startsWith("https://"))return t;let a=t.startsWith("/")?t:`/${t}`;return`${l[e]}${a}`})(e,t);if(!(e in l))return e;throw Error(`Service type '${e}' provided without endpoint`)},d={get:async function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{let o,r;"string"==typeof t?(o=u(e,t),r=a):(o=u(e),r=t||{});let l=i(r.headers);return await n.OW.get(o,{...r,headers:l})}catch(e){throw e}},post:async function(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{let r,l,s;"string"==typeof t?(r=u(e,t),l=a,s=o):(r=u(e),l=t,s=a||{});let c=i(s.headers);return await n.OW.post(r,l,{...s,headers:c})}catch(e){throw e}},delete:async function(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{let r,l,s;"string"==typeof t?(r=u(e,t),l=a,s=o):(r=u(e),l=t,s=a||{});let c=i(s.headers);return await n.OW.delete(r,l,{...s,headers:c})}catch(e){throw e}},put:async function(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{let r,l,s;"string"==typeof t?(r=u(e,t),l=a,s=o):(r=u(e),l=t,s=a||{});let c=i(s.headers);return await n.OW.put(r,l,{...s,headers:c})}catch(e){throw e}},patch:async function(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{let r,l,s;"string"==typeof t?(r=u(e,t),l=a,s=o):(r=u(e),l=t,s=a||{});let c=i(s.headers);return await n.OW.patch(r,l,{...s,headers:c})}catch(e){throw e}},postMultipart:async function(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{let r,l,s;"string"==typeof t?(r=u(e,t),l=a,s=o):(r=u(e),l=t,s=a||{});let c=i(s.headers);return await n.OW.postMultipart(r,l,{...s,headers:c})}catch(e){throw e}}};class p{static async get(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.get(e,t,a)}static async post(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return d.post(e,t,a,o)}static async put(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return d.put(e,a,t,o)}static async patch(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return d.patch(e,a,t,o)}static async delete(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return d.delete(e,t,a,o)}static async postMultipart(e,t,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return d.postMultipart(e,t,a,o)}static async upload(e,t,a){let o,r,n,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"string"==typeof t?(o=e,r=a,n=l):(o=e,r=t,n=a||{});let s=new FormData;return s.append("file",r),n.params&&Object.entries(n.params).forEac
1h(e=>{let[t,a]=e;null!=a&&s.append(t,String(a))}),this.postMultipart(o,s,n)}static createAbortController(){return new AbortController}}},87636:(e,t,a)=>{a.d(t,{g:()=>o});function o(){{let e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||""===e?window.location.origin:"https://curiousjr.com"}}}}]);
2//# sourceMappingURL=8024-7124d4c6982e5923.js.map

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.