diff --git a/public/sw.js b/public/sw.js index b501bec..765271c 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,2 +1,2 @@ (()=>{"use strict";let e,t,a,s,r,n={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"serwist",runtime:"runtime",suffix:"u">typeof registration?registration.scope:""},i=e=>[n.prefix,e,n.suffix].filter(e=>e&&e.length>0).join("-"),c=e=>e||i(n.precache),o=e=>e||i(n.runtime);var l=class extends Error{details;constructor(e,t){super(((e,...t)=>{let a=e;return t.length>0&&(a+=` :: ${JSON.stringify(t)}`),a})(e,t)),this.name=e,this.details=t}};function h(e){return new Promise(t=>setTimeout(t,e))}let u=new Set;function d(e,t){let a=new URL(e);for(let e of t)a.searchParams.delete(e);return a.href}async function m(e,t,a,s){let r=d(t.url,a);if(t.url===r)return e.match(t,s);let n={...s,ignoreSearch:!0};for(let i of(await e.keys(t,n)))if(r===d(i.url,a))return e.match(i,s)}var f=class{promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};let g=async()=>{for(let e of u)await e()},w="-precache-",p=async(e,t=w)=>{let a=(await self.caches.keys()).filter(a=>a.includes(t)&&a.includes(self.registration.scope)&&a!==e);return await Promise.all(a.map(e=>self.caches.delete(e))),a},y=(e,t)=>{let a=t();return e.waitUntil(a),a},_=(e,t)=>t.some(t=>e instanceof t),x=new WeakMap,b=new WeakMap,v=new WeakMap,E={get(e,t,a){if(e instanceof IDBTransaction){if("done"===t)return x.get(e);if("store"===t)return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return R(e[t])},set:(e,t,a)=>(e[t]=a,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function R(e){if(e instanceof IDBRequest){let t;return t=new Promise((t,a)=>{let s=()=>{e.removeEventListener("success",r),e.removeEventListener("error",n)},r=()=>{t(R(e.result)),s()},n=()=>{a(e.error),s()};e.addEventListener("success",r),e.addEventListener("error",n)}),v.set(t,e),t}if(b.has(e))return b.get(e);let t=function(e){if("function"==typeof e)return(r||(r=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(q(this),t),R(this.request)}:function(...t){return R(e.apply(q(this),t))};return(e instanceof IDBTransaction&&function(e){if(x.has(e))return;let t=new Promise((t,a)=>{let s=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",n),e.removeEventListener("abort",n)},r=()=>{t(),s()},n=()=>{a(e.error||new DOMException("AbortError","AbortError")),s()};e.addEventListener("complete",r),e.addEventListener("error",n),e.addEventListener("abort",n)});x.set(e,t)}(e),_(e,s||(s=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,E):e}(e);return t!==e&&(b.set(e,t),v.set(t,e)),t}let q=e=>v.get(e);function S(e,t,{blocked:a,upgrade:s,blocking:r,terminated:n}={}){let i=indexedDB.open(e,t),c=R(i);return s&&i.addEventListener("upgradeneeded",e=>{s(R(i.result),e.oldVersion,e.newVersion,R(i.transaction),e)}),a&&i.addEventListener("blocked",e=>a(e.oldVersion,e.newVersion,e)),c.then(e=>{n&&e.addEventListener("close",()=>n()),r&&e.addEventListener("versionchange",e=>r(e.oldVersion,e.newVersion,e))}).catch(()=>{}),c}let D=["get","getKey","getAll","getAllKeys","count"],N=["put","add","delete","clear"],C=new Map;function T(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(C.get(t))return C.get(t);let a=t.replace(/FromIndex$/,""),s=t!==a,r=N.includes(a);if(!(a in(s?IDBIndex:IDBObjectStore).prototype)||!(r||D.includes(a)))return;let n=async function(e,...t){let n=this.transaction(e,r?"readwrite":"readonly"),i=n.store;return s&&(i=i.index(t.shift())),(await Promise.all([i[a](...t),r&&n.done]))[0]};return C.set(t,n),n}E={...e=E,get:(t,a,s)=>T(t,a)||e.get(t,a,s),has:(t,a)=>!!T(t,a)||e.has(t,a)};let P=["continue","continuePrimaryKey","advance"],k={},A=new WeakMap,I=new WeakMap,U={get(e,t){if(!P.includes(t))return e[t];let a=k[t];return a||(a=k[t]=function(...e){A.set(this,I.get(this)[t](...e))}),a}};async function*L(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let a=new Proxy(t,U);for(I.set(a,t),v.set(a,q(t));t;)yield a,t=await (A.get(a)||t.continue()),A.delete(a)}function F(e,t){return t===Symbol.asyncIterator&&_(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&_(e,[IDBIndex,IDBObjectStore])}E={...t=E,get:(e,a,s)=>F(e,a)?L:t.get(e,a,s),has:(e,a)=>F(e,a)||t.has(e,a)};let O=async(e,t)=>{let s=null;if(e.url&&(s=new URL(e.url).origin),s!==self.location.origin)throw new l("cross-origin-copy-response",{origin:s});let r=e.clone(),n={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},i=t?t(n):n,c=!function(){if(void 0===a){let e=new Response("");if("body"in e)try{new Response(e.body),a=!0}catch{a=!1}a=!1}return a}()?await r.blob():r.body;return new Response(c,i)},M="requests",B="queueName";var K=class{_db=null;async addEntry(e){let t=(await this.getDb()).transaction(M,"readwrite",{durability:"relaxed"});await t.store.add(e),await t.done}async getFirstEntryId(){return(await (await this.getDb()).transaction(M).store.openCursor())?.value.id}async getAllEntriesByQueueName(e){return await (await this.getDb()).getAllFromIndex(M,B,IDBKeyRange.only(e))||[]}async getEntryCountByQueueName(e){return(await this.getDb()).countFromIndex(M,B,IDBKeyRange.only(e))}async deleteEntry(e){await (await this.getDb()).delete(M,e)}async getFirstEntryByQueueName(e){return await this.getEndEntryFromIndex(IDBKeyRange.only(e),"next")}async getLastEntryByQueueName(e){return await this.getEndEntryFromIndex(IDBKeyRange.only(e),"prev")}async getEndEntryFromIndex(e,t){return(await (await this.getDb()).transaction(M).store.index(B).openCursor(e,t))?.value}async getDb(){return this._db||(this._db=await S("serwist-background-sync",3,{upgrade:this._upgradeDb})),this._db}_upgradeDb(e,t){t>0&&t<3&&e.objectStoreNames.contains(M)&&e.deleteObjectStore(M),e.createObjectStore(M,{autoIncrement:!0,keyPath:"id"}).createIndex(B,B,{unique:!1})}},W=class{_queueName;_queueDb;constructor(e){this._queueName=e,this._queueDb=new K}async pushEntry(e){delete e.id,e.queueName=this._queueName,await this._queueDb.addEntry(e)}async unshiftEntry(e){let t=await this._queueDb.getFirstEntryId();t?e.id=t-1:delete e.id,e.queueName=this._queueName,await this._queueDb.addEntry(e)}async popEntry(){return this._removeEntry(await this._queueDb.getLastEntryByQueueName(this._queueName))}async shiftEntry(){return this._removeEntry(await this._queueDb.getFirstEntryByQueueName(this._queueName))}async getAll(){return await this._queueDb.getAllEntriesByQueueName(this._queueName)}async size(){return await this._queueDb.getEntryCountByQueueName(this._queueName)}async deleteEntry(e){await this._queueDb.deleteEntry(e)}async _removeEntry(e){return e&&await this.deleteEntry(e.id),e}};let j=["method","referrer","referrerPolicy","mode","credentials","cache","redirect","integrity","keepalive"];var $=class e{_requestData;static async fromRequest(t){let a={url:t.url,headers:{}};for(let e of("GET"!==t.method&&(a.body=await t.clone().arrayBuffer()),t.headers.forEach((e,t)=>{a.headers[t]=e}),j))void 0!==t[e]&&(a[e]=t[e]);return new e(a)}constructor(e){"navigate"===e.mode&&(e.mode="same-origin"),this._requestData=e}toObject(){let e=Object.assign({},this._requestData);return e.headers=Object.assign({},this._requestData.headers),e.body&&(e.body=e.body.slice(0)),e}toRequest(){return new Request(this._requestData.url,this._requestData)}clone(){return new e(this.toObject())}};let H="serwist-background-sync",G=new Set,Q=e=>{let t={request:new $(e.requestData).toRequest(),timestamp:e.timestamp};return e.metadata&&(t.metadata=e.metadata),t};var V=class{_name;_onSync;_maxRetentionTime;_queueStore;_forceSyncFallback;_syncInProgress=!1;_requestsAddedDuringSync=!1;constructor(e,{forceSyncFallback:t,onSync:a,maxRetentionTime:s}={}){if(G.has(e))throw new l("duplicate-queue-name",{name:e});G.add(e),this._name=e,this._onSync=a||this.replayRequests,this._maxRetentionTime=s||10080,this._forceSyncFallback=!!t,this._queueStore=new W(this._name),this._addSyncListener()}get name(){return this._name}async pushRequest(e){await this._addRequest(e,"push")}async unshiftRequest(e){await this._addRequest(e,"unshift")}async popRequest(){return this._removeRequest("pop")}async shiftRequest(){return this._removeRequest("shift")}async getAll(){let e=await this._queueStore.getAll(),t=Date.now(),a=[];for(let s of e){let e=60*this._maxRetentionTime*1e3;t-s.timestamp>e?await this._queueStore.deleteEntry(s.id):a.push(Q(s))}return a}async size(){return await this._queueStore.size()}async _addRequest({request:e,metadata:t,timestamp:a=Date.now()},s){let r={requestData:(await $.fromRequest(e.clone())).toObject(),timestamp:a};switch(t&&(r.metadata=t),s){case"push":await this._queueStore.pushEntry(r);break;case"unshift":await this._queueStore.unshiftEntry(r)}this._syncInProgress?this._requestsAddedDuringSync=!0:await this.registerSync()}async _removeRequest(e){let t,a=Date.now();switch(e){case"pop":t=await this._queueStore.popEntry();break;case"shift":t=await this._queueStore.shiftEntry()}if(t){let s=60*this._maxRetentionTime*1e3;return a-t.timestamp>s?this._removeRequest(e):Q(t)}}async replayRequests(){let e;for(;e=await this.shiftRequest();)try{await fetch(e.request.clone())}catch{throw await this.unshiftRequest(e),new l("queue-replay-failed",{name:this._name})}}async registerSync(){if("sync"in self.registration&&!this._forceSyncFallback)try{await self.registration.sync.register(`${H}:${this._name}`)}catch(e){}}_addSyncListener(){"sync"in self.registration&&!this._forceSyncFallback?self.addEventListener("sync",e=>{if(e.tag===`${H}:${this._name}`){let t=async()=>{let t;this._syncInProgress=!0;try{await this._onSync({queue:this})}catch(e){if(e instanceof Error)throw e}finally{this._requestsAddedDuringSync&&!(t&&!e.lastChance)&&await this.registerSync(),this._syncInProgress=!1,this._requestsAddedDuringSync=!1}};e.waitUntil(t())}}):this._onSync({queue:this})}static get _queueNames(){return G}},z=class{_queue;constructor(e,t){this._queue=new V(e,t)}async fetchDidFail({request:e}){await this._queue.pushRequest({request:e})}};let J={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};function X(e){return"string"==typeof e?new Request(e):e}var Y=class{event;request;url;params;_cacheKeys={};_strategy;_handlerDeferred;_extendLifetimePromises;_plugins;_pluginStateMap;constructor(e,t){for(const a of(this.event=t.event,this.request=t.request,t.url&&(this.url=t.url,this.params=t.params),this._strategy=e,this._handlerDeferred=new f,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map,this._plugins))this._pluginStateMap.set(a,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:t}=this,a=X(e),s=await this.getPreloadResponse();if(s)return s;let r=this.hasCallback("fetchDidFail")?a.clone():null;try{for(let e of this.iterateCallbacks("requestWillFetch"))a=await e({request:a.clone(),event:t})}catch(e){if(e instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}let n=a.clone();try{let e;for(let s of(e=await fetch(a,"navigate"===a.mode?void 0:this._strategy.fetchOptions),this.iterateCallbacks("fetchDidSucceed")))e=await s({event:t,request:n,response:e});return e}catch(e){throw r&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:r.clone(),request:n.clone()}),e}}async fetchAndCachePut(e){let t=await this.fetch(e),a=t.clone();return this.waitUntil(this.cachePut(e,a)),t}async cacheMatch(e){let t,a=X(e),{cacheName:s,matchOptions:r}=this._strategy,n=await this.getCacheKey(a,"read"),i={...r,cacheName:s};for(let e of(t=await caches.match(n,i),this.iterateCallbacks("cachedResponseWillBeUsed")))t=await e({cacheName:s,matchOptions:r,cachedResponse:t,request:n,event:this.event})||void 0;return t}async cachePut(e,t){let a=X(e);await h(0);let s=await this.getCacheKey(a,"write");if(!t)throw new l("cache-put-with-no-response",{url:new URL(String(s.url),location.href).href.replace(RegExp(`^${location.origin}`),"")});let r=await this._ensureResponseSafeToCache(t);if(!r)return!1;let{cacheName:n,matchOptions:i}=this._strategy,c=await self.caches.open(n),o=this.hasCallback("cacheDidUpdate"),u=o?await m(c,s.clone(),["__WB_REVISION__"],i):null;try{await c.put(s,o?r.clone():r)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await g(),e}for(let e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:n,oldResponse:u,newResponse:r.clone(),request:s,event:this.event});return!0}async getCacheKey(e,t){let a=`${e.url} | ${t}`;if(!this._cacheKeys[a]){let s=e;for(let e of this.iterateCallbacks("cacheKeyWillBeUsed"))s=X(await e({mode:t,request:s,event:this.event,params:this.params}));this._cacheKeys[a]=s}return this._cacheKeys[a]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let a of this.iterateCallbacks(e))await a(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if("function"==typeof t[e]){let a=this._pluginStateMap.get(t),s=s=>{let r={...s,state:a};return t[e](r)};yield s}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async getPreloadResponse(){if(this.event instanceof FetchEvent&&"navigate"===this.event.request.mode&&"preloadResponse"in this.event)try{let e=await this.event.preloadResponse;if(e)return e}catch(e){return}}async _ensureResponseSafeToCache(e){let t=e,a=!1;for(let e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,a=!0,!t)break;return!a&&t&&200!==t.status&&(t=void 0),t}},Z=class{cacheName;plugins;fetchOptions;matchOptions;constructor(e={}){this.cacheName=o(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){let[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});let t=e.event,a="string"==typeof e.request?new Request(e.request):e.request,s=new Y(this,e.url?{event:t,request:a,url:e.url,params:e.params}:{event:t,request:a}),r=this._getResponse(s,a,t);return[r,this._awaitComplete(r,s,a,t)]}async _getResponse(e,t,a){let s;await e.runCallbacks("handlerWillStart",{event:a,request:t});try{if(s=await this._handle(t,e),void 0===s||"error"===s.type)throw new l("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(let n of e.iterateCallbacks("handlerDidError"))if(void 0!==(s=await n({error:r,event:a,request:t})))break}if(!s)throw r}for(let r of e.iterateCallbacks("handlerWillRespond"))s=await r({event:a,request:t,response:s});return s}async _awaitComplete(e,t,a,s){let r,n;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:s,request:a,response:r}),await t.doneWaiting()}catch(e){e instanceof Error&&(n=e)}if(await t.runCallbacks("handlerDidComplete",{event:s,request:a,response:r,error:n}),t.destroy(),n)throw n}},ee=class extends Z{_networkTimeoutSeconds;constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(J),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let a,s=[],r=[];if(this._networkTimeoutSeconds){let{id:n,promise:i}=this._getTimeoutPromise({request:e,logs:s,handler:t});a=n,r.push(i)}let n=this._getNetworkPromise({timeoutId:a,request:e,logs:s,handler:t});r.push(n);let i=await t.waitUntil((async()=>await t.waitUntil(Promise.race(r))||await n)());if(!i)throw new l("no-response",{url:e.url});return i}_getTimeoutPromise({request:e,logs:t,handler:a}){let s;return{promise:new Promise(t=>{s=setTimeout(async()=>{t(await a.cacheMatch(e))},1e3*this._networkTimeoutSeconds)}),id:s}}async _getNetworkPromise({timeoutId:e,request:t,logs:a,handler:s}){let r,n;try{n=await s.fetchAndCachePut(t)}catch(e){e instanceof Error&&(r=e)}return e&&clearTimeout(e),(r||!n)&&(n=await s.cacheMatch(t)),n}},et=class extends Z{_networkTimeoutSeconds;constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let a,s;try{let a=[t.fetch(e)];if(this._networkTimeoutSeconds){let e=h(1e3*this._networkTimeoutSeconds);a.push(e)}if(!(s=await Promise.race(a)))throw Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(e){e instanceof Error&&(a=e)}if(!s)throw new l("no-response",{url:e.url,error:a});return s}};let ea=e=>e&&"object"==typeof e?e:{handle:e};var es=class{handler;match;method;catchHandler;constructor(e,t,a="GET"){this.handler=ea(t),this.match=e,this.method=a}setCatchHandler(e){this.catchHandler=ea(e)}},er=class e extends Z{_fallbackToNetwork;static defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e};static copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await O(e):e};constructor(t={}){t.cacheName=c(t.cacheName),super(t),this._fallbackToNetwork=!1!==t.fallbackToNetwork,this.plugins.push(e.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){let a=await t.getPreloadResponse();if(a)return a;let s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let a,s=t.params||{};if(this._fallbackToNetwork){let r=s.integrity,n=e.integrity,i=!n||n===r;a=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?n||r:void 0})),r&&i&&"no-cors"!==e.mode&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,a.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return a}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();let a=await t.fetch(e);if(!await t.cachePut(e,a.clone()))throw new l("bad-precaching-response",{url:e.url,status:a.status});return a}_useDefaultCacheabilityPluginIfNeeded(){let t=null,a=0;for(let[s,r]of this.plugins.entries())r!==e.copyRedirectedCacheableResponsesPlugin&&(r===e.defaultPrecacheCacheabilityPlugin&&(t=s),r.cacheWillUpdate&&a++);0===a?this.plugins.push(e.defaultPrecacheCacheabilityPlugin):a>1&&null!==t&&this.plugins.splice(t,1)}},en=class extends es{_allowlist;_denylist;constructor(e,{allowlist:t=[/./],denylist:a=[]}={}){super(e=>this._match(e),e),this._allowlist=t,this._denylist=a}_match({url:e,request:t}){if(t&&"navigate"!==t.mode)return!1;let a=e.pathname+e.search;for(let e of this._denylist)if(e.test(a))return!1;return!!this._allowlist.some(e=>e.test(a))}},ei=class extends es{constructor(e,t,a){super(({url:t})=>{let a=e.exec(t.href);if(a)return t.origin!==location.origin&&0!==a.index?void 0:a.slice(1)},t,a)}};let ec=e=>{if(!e)throw new l("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){let t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}let{revision:t,url:a}=e;if(!a)throw new l("add-to-cache-list-unexpected-type",{entry:e});if(!t){let e=new URL(a,location.href);return{cacheKey:e.href,url:e.href}}let s=new URL(a,location.href),r=new URL(a,location.href);return s.searchParams.set("__WB_REVISION__",t),{cacheKey:s.href,url:r.href}};var eo=class{updatedURLs=[];notUpdatedURLs=[];handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)};cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:a})=>{if("install"===e.type&&t?.originalRequest&&t.originalRequest instanceof Request){let e=t.originalRequest.url;a?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return a}};let el=async(e,t,a)=>{let s=t.map((e,t)=>({index:t,item:e})),r=async e=>{let t=[];for(;;){let r=s.pop();if(!r)return e(t);let n=await a(r.item);t.push({result:n,index:r.index})}},n=Array.from({length:e},()=>new Promise(r));return(await Promise.all(n)).flat().sort((e,t)=>e.indexe.result)};"u">typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);let eh="cache-entries",eu=e=>{let t=new URL(e,location.href);return t.hash="",t.href};var ed=class{_cacheName;_db=null;constructor(e){this._cacheName=e}_getId(e){return`${this._cacheName}|${eu(e)}`}_upgradeDb(e){let t=e.createObjectStore(eh,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){let a=indexedDB.deleteDatabase(e);t&&a.addEventListener("blocked",e=>t(e.oldVersion,e)),R(a).then(()=>void 0)}(this._cacheName)}async setTimestamp(e,t){e=eu(e);let a={id:this._getId(e),cacheName:this._cacheName,url:e,timestamp:t},s=(await this.getDb()).transaction(eh,"readwrite",{durability:"relaxed"});await s.store.put(a),await s.done}async getTimestamp(e){return(await (await this.getDb()).get(eh,this._getId(e)))?.timestamp}async expireEntries(e,t){let a=await (await this.getDb()).transaction(eh,"readwrite").store.index("timestamp").openCursor(null,"prev"),s=[],r=0;for(;a;){let n=a.value;n.cacheName===this._cacheName&&(e&&n.timestamp=t?(a.delete(),s.push(n.url)):r++),a=await a.continue()}return s}async getDb(){return this._db||(this._db=await S("serwist-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}},em=class{_isRunning=!1;_rerunRequested=!1;_maxEntries;_maxAgeSeconds;_matchOptions;_cacheName;_timestampModel;constructor(e,t={}){this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ed(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;let e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),a=await self.caches.open(this._cacheName);for(let e of t)await a.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,this.expireEntries())}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(!this._maxAgeSeconds)return!1;let t=await this._timestampModel.getTimestamp(e),a=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t{u.add(e)})(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===o())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new em(e,this._config),this._cacheExpirations.set(e,t)),t}cachedResponseWillBeUsed({event:e,cacheName:t,request:a,cachedResponse:s}){if(!s)return null;let r=this._isResponseDateFresh(s),n=this._getCacheExpiration(t),i="last-used"===this._config.maxAgeFrom,c=(async()=>{i&&await n.updateTimestamp(a.url),await n.expireEntries()})();try{e.waitUntil(c)}catch{}return r?s:null}_isResponseDateFresh(e){if("last-used"===this._config.maxAgeFrom)return!0;let t=Date.now();if(!this._config.maxAgeSeconds)return!0;let a=this._getDateHeaderTimestamp(e);return null===a||a>=t-1e3*this._config.maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;let t=new Date(e.headers.get("date")).getTime();return Number.isNaN(t)?null:t}async cacheDidUpdate({cacheName:e,request:t}){let a=this._getCacheExpiration(e);await a.updateTimestamp(t.url),await a.expireEntries()}async deleteCacheAndMetadata(){for(let[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}};let eg=/^\/(\w+\/)?collect/,ew=({serwist:e,cacheName:t,...a})=>{let s,r,c=t||i(n.googleAnalytics),o=new z("serwist-google-analytics",{maxRetentionTime:2880,onSync:async({queue:e})=>{let t;for(;t=await e.shiftRequest();){let{request:s,timestamp:r}=t,n=new URL(s.url);try{let e="POST"===s.method?new URLSearchParams(await s.clone().text()):n.searchParams,t=r-(Number(e.get("qt"))||0),i=Date.now()-t;if(e.set("qt",String(i)),a.parameterOverrides)for(let t of Object.keys(a.parameterOverrides)){let s=a.parameterOverrides[t];e.set(t,s)}"function"==typeof a.hitFilter&&a.hitFilter.call(null,e),await fetch(new Request(n.origin+n.pathname,{body:e.toString(),method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"text/plain"}}))}catch(a){throw await e.unshiftRequest(t),a}}}});for(let t of[new es(({url:e})=>"www.googletagmanager.com"===e.hostname&&"/gtm.js"===e.pathname,new ee({cacheName:c}),"GET"),new es(({url:e})=>"www.google-analytics.com"===e.hostname&&"/analytics.js"===e.pathname,new ee({cacheName:c}),"GET"),new es(({url:e})=>"www.googletagmanager.com"===e.hostname&&"/gtag/js"===e.pathname,new ee({cacheName:c}),"GET"),new es(s=({url:e})=>"www.google-analytics.com"===e.hostname&&eg.test(e.pathname),r=new et({plugins:[o]}),"GET"),new es(s,r,"POST")])e.registerRoute(t)};var ep=class{_fallbackUrls;_serwist;constructor({fallbackUrls:e,serwist:t}){this._fallbackUrls=e,this._serwist=t}async handlerDidError(e){for(let t of this._fallbackUrls)if("string"==typeof t){let e=await this._serwist.matchPrecache(t);if(void 0!==e)return e}else if(t.matcher(e)){let e=await this._serwist.matchPrecache(t.url);if(void 0!==e)return e}}};let ey=async(e,t)=>{try{if(206===t.status)return t;let a=e.headers.get("range");if(!a)throw new l("no-range-header");let s=(e=>{let t=e.trim().toLowerCase();if(!t.startsWith("bytes="))throw new l("unit-must-be-bytes",{normalizedRangeHeader:t});if(t.includes(","))throw new l("single-range-only",{normalizedRangeHeader:t});let a=/(\d*)-(\d*)/.exec(t);if(!a||!(a[1]||a[2]))throw new l("invalid-range-values",{normalizedRangeHeader:t});return{start:""===a[1]?void 0:Number(a[1]),end:""===a[2]?void 0:Number(a[2])}})(a),r=await t.blob(),n=((e,t,a)=>{let s,r,n=e.size;if(a&&a>n||t&&t<0)throw new l("range-not-satisfiable",{size:n,end:a,start:t});return void 0!==t&&void 0!==a?(s=t,r=a+1):void 0!==t&&void 0===a?(s=t,r=n):void 0!==a&&void 0===t&&(s=n-a,r=n),{start:s,end:r}})(r,s.start,s.end),i=r.slice(n.start,n.end),c=i.size,o=new Response(i,{status:206,statusText:"Partial Content",headers:t.headers});return o.headers.set("Content-Length",String(c)),o.headers.set("Content-Range",`bytes ${n.start}-${n.end-1}/${r.size}`),o}catch(e){return new Response("",{status:416,statusText:"Range Not Satisfiable"})}};var e_=class{cachedResponseWillBeUsed=async({request:e,cachedResponse:t})=>t&&e.headers.has("range")?await ey(e,t):t},ex=class extends Z{async _handle(e,t){let a,s=await t.cacheMatch(e);if(s);else try{s=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(a=e)}if(!s)throw new l("no-response",{url:e.url,error:a});return s}},eb=class extends Z{constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(J)}async _handle(e,t){let a,s=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(s);let r=await t.cacheMatch(e);if(r);else try{r=await s}catch(e){e instanceof Error&&(a=e)}if(!r)throw new l("no-response",{url:e.url,error:a});return r}},ev=class extends es{constructor(e,t){super(({request:a})=>{let s=e.getUrlsToPrecacheKeys();for(let r of function*(e,{directoryIndex:t="index.html",ignoreURLParametersMatching:a=[/^utm_/,/^fbclid$/],cleanURLs:s=!0,urlManipulation:r}={}){let n=new URL(e,location.href);n.hash="",yield n.href;let i=((e,t=[])=>{for(let a of[...e.searchParams.keys()])t.some(e=>e.test(a))&&e.searchParams.delete(a);return e})(n,a);if(yield i.href,t&&i.pathname.endsWith("/")){let e=new URL(i.href);e.pathname+=t,yield e.href}if(s){let e=new URL(i.href);e.pathname+=".html",yield e.href}if(r)for(let e of r({url:n}))yield e.href}(a.url,t)){let t=s.get(r);if(t)return{cacheKey:t,integrity:e.getIntegrityForPrecacheKey(t)}}},e.precacheStrategy)}},eE=class{_precacheController;constructor({precacheController:e}){this._precacheController=e}cacheKeyWillBeUsed=async({request:e,params:t})=>{let a=t?.cacheKey||this._precacheController.getPrecacheKeyForUrl(e.url);return a?new Request(a,{headers:e.headers}):e}},eR=class{_urlsToCacheKeys=new Map;_urlsToCacheModes=new Map;_cacheKeysToIntegrities=new Map;_concurrentPrecaching;_precacheStrategy;_routes;_defaultHandlerMap;_catchHandler;_requestRules;constructor({precacheEntries:e,precacheOptions:t,skipWaiting:a=!1,importScripts:s,navigationPreload:r=!1,cacheId:i,clientsClaim:o=!1,runtimeCaching:l,offlineAnalyticsConfig:h,disableDevLogs:u=!1,fallbacks:d,requestRules:m}={}){const{precacheStrategyOptions:f,precacheRouteOptions:g,precacheMiscOptions:w}=((e,t={})=>{let{cacheName:a,plugins:s=[],fetchOptions:r,matchOptions:n,fallbackToNetwork:i,directoryIndex:o,ignoreURLParametersMatching:l,cleanURLs:h,urlManipulation:u,cleanupOutdatedCaches:d,concurrency:m=10,navigateFallback:f,navigateFallbackAllowlist:g,navigateFallbackDenylist:w}=t??{};return{precacheStrategyOptions:{cacheName:c(a),plugins:[...s,new eE({precacheController:e})],fetchOptions:r,matchOptions:n,fallbackToNetwork:i},precacheRouteOptions:{directoryIndex:o,ignoreURLParametersMatching:l,cleanURLs:h,urlManipulation:u},precacheMiscOptions:{cleanupOutdatedCaches:d,concurrency:m,navigateFallback:f,navigateFallbackAllowlist:g,navigateFallbackDenylist:w}}})(this,t);if(this._concurrentPrecaching=w.concurrency,this._precacheStrategy=new er(f),this._routes=new Map,this._defaultHandlerMap=new Map,this._requestRules=m,this.handleInstall=this.handleInstall.bind(this),this.handleActivate=this.handleActivate.bind(this),this.handleFetch=this.handleFetch.bind(this),this.handleCache=this.handleCache.bind(this),s&&s.length>0&&self.importScripts(...s),r&&self.registration?.navigationPreload&&self.addEventListener("activate",e=>{e.waitUntil(self.registration.navigationPreload.enable().then(()=>{}))}),void 0!==i&&(e=>{var t=e;for(let e of Object.keys(n))(e=>{let a=t[e];"string"==typeof a&&(n[e]=a)})(e)})({prefix:i}),a?self.skipWaiting():self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),o&&self.addEventListener("activate",()=>self.clients.claim()),e&&e.length>0&&this.addToPrecacheList(e),w.cleanupOutdatedCaches&&(e=>{self.addEventListener("activate",t=>{t.waitUntil(p(c(e)).then(e=>{}))})})(f.cacheName),this.registerRoute(new ev(this,g)),w.navigateFallback&&this.registerRoute(new en(this.createHandlerBoundToUrl(w.navigateFallback),{allowlist:w.navigateFallbackAllowlist,denylist:w.navigateFallbackDenylist})),void 0!==h&&("boolean"==typeof h?h&&ew({serwist:this}):ew({...h,serwist:this})),void 0!==l){if(void 0!==d){const e=new ep({fallbackUrls:d.entries,serwist:this});l.forEach(t=>{t.handler instanceof Z&&!t.handler.plugins.some(e=>"handlerDidError"in e)&&t.handler.plugins.push(e)})}for(const e of l)this.registerCapture(e.matcher,e.handler,e.method)}u&&(self.__WB_DISABLE_DEV_LOGS=!0)}get precacheStrategy(){return this._precacheStrategy}get routes(){return this._routes}addEventListeners(){self.addEventListener("install",this.handleInstall),self.addEventListener("activate",this.handleActivate),self.addEventListener("fetch",this.handleFetch),self.addEventListener("message",this.handleCache)}addToPrecacheList(e){let t=[];for(let a of e){"string"==typeof a?t.push(a):a&&!a.integrity&&void 0===a.revision&&t.push(a.url);let{cacheKey:e,url:s}=ec(a),r="string"!=typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(s)&&this._urlsToCacheKeys.get(s)!==e)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(s),secondEntry:e});if("string"!=typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==a.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:s});this._cacheKeysToIntegrities.set(e,a.integrity)}this._urlsToCacheKeys.set(s,e),this._urlsToCacheModes.set(s,r)}t.length>0&&console.warn(`Serwist is precaching URLs without revision info: ${t.join(", ")} -This is generally NOT safe. Learn more at https://bit.ly/wb-precache`)}handleInstall(e){return this.registerRequestRules(e),y(e,async()=>{let t=new eo;this.precacheStrategy.plugins.push(t),await el(this._concurrentPrecaching,Array.from(this._urlsToCacheKeys.entries()),async([t,a])=>{let s=this._cacheKeysToIntegrities.get(a),r=this._urlsToCacheModes.get(t),n=new Request(t,{integrity:s,cache:r,credentials:"same-origin"});await Promise.all(this.precacheStrategy.handleAll({event:e,request:n,url:new URL(n.url),params:{cacheKey:a}}))});let{updatedURLs:a,notUpdatedURLs:s}=t;return{updatedURLs:a,notUpdatedURLs:s}})}async registerRequestRules(e){if(this._requestRules&&e?.addRoutes)try{await e.addRoutes(this._requestRules),this._requestRules=void 0}catch(e){throw e}}handleActivate(e){return y(e,async()=>{let e=await self.caches.open(this.precacheStrategy.cacheName),t=await e.keys(),a=new Set(this._urlsToCacheKeys.values()),s=[];for(let r of t)a.has(r.url)||(await e.delete(r),s.push(r.url));return{deletedCacheRequests:s}})}handleFetch(e){let{request:t}=e,a=this.handleRequest({request:t,event:e});a&&e.respondWith(a)}handleCache(e){if(e.data&&"CACHE_URLS"===e.data.type){let{payload:t}=e.data,a=Promise.all(t.urlsToCache.map(t=>{let a;return a="string"==typeof t?new Request(t):new Request(...t),this.handleRequest({request:a,event:e})}));e.waitUntil(a),e.ports?.[0]&&a.then(()=>e.ports[0].postMessage(!0))}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,ea(e))}setCatchHandler(e){this._catchHandler=ea(e)}registerCapture(e,t,a){let s=((e,t,a)=>{if("string"==typeof e){let s=new URL(e,location.href);return new es(({url:e})=>e.href===s.href,t,a)}if(e instanceof RegExp)return new ei(e,t,a);if("function"==typeof e)return new es(e,t,a);if(e instanceof es)return e;throw new l("unsupported-route-type",{moduleName:"serwist",funcName:"parseRoute",paramName:"capture"})})(e,t,a);return this.registerRoute(s),s}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});let t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}getUrlsToPrecacheKeys(){return this._urlsToCacheKeys}getPrecachedUrls(){return[...this._urlsToCacheKeys.keys()]}getPrecacheKeyForUrl(e){let t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForPrecacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){let t=e instanceof Request?e.url:e,a=this.getPrecacheKeyForUrl(t);if(a)return(await self.caches.open(this.precacheStrategy.cacheName)).match(a)}createHandlerBoundToUrl(e){let t=this.getPrecacheKeyForUrl(e);if(!t)throw new l("non-precached-url",{url:e});return a=>(a.request=new Request(e),a.params={cacheKey:t,...a.params},this.precacheStrategy.handle(a))}handleRequest({request:e,event:t}){let a,s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return;let r=s.origin===location.origin,{params:n,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:s}),c=i?.handler,o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;try{a=c.handle({url:s,request:e,event:t,params:n})}catch(e){a=Promise.reject(e)}let l=i?.catchHandler;return a instanceof Promise&&(this._catchHandler||l)&&(a=a.catch(async a=>{if(l)try{return await l.handle({url:s,request:e,event:t,params:n})}catch(e){e instanceof Error&&(a=e)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw a})),a}findMatchingRoute({url:e,sameOrigin:t,request:a,event:s}){for(let r of this._routes.get(a.method)||[]){let n,i=r.match({url:e,sameOrigin:t,request:a,event:s});if(i)return Array.isArray(n=i)&&0===n.length||i.constructor===Object&&0===Object.keys(i).length?n=void 0:"boolean"==typeof i&&(n=void 0),{route:r,params:n}}return{}}};let eq=[{matcher:/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,handler:new ex({cacheName:"google-fonts-webfonts",plugins:[new ef({maxEntries:4,maxAgeSeconds:31536e3,maxAgeFrom:"last-used"})]})},{matcher:/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,handler:new eb({cacheName:"google-fonts-stylesheets",plugins:[new ef({maxEntries:4,maxAgeSeconds:604800,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,handler:new eb({cacheName:"static-font-assets",plugins:[new ef({maxEntries:4,maxAgeSeconds:604800,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,handler:new eb({cacheName:"static-image-assets",plugins:[new ef({maxEntries:64,maxAgeSeconds:2592e3,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/static.+\.js$/i,handler:new ex({cacheName:"next-static-js-assets",plugins:[new ef({maxEntries:64,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/image\?url=.+$/i,handler:new eb({cacheName:"next-image",plugins:[new ef({maxEntries:64,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:mp3|wav|ogg)$/i,handler:new ex({cacheName:"static-audio-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"}),new e_]})},{matcher:/\.(?:mp4|webm)$/i,handler:new ex({cacheName:"static-video-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"}),new e_]})},{matcher:/\.(?:js)$/i,handler:new eb({cacheName:"static-js-assets",plugins:[new ef({maxEntries:48,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:css|less)$/i,handler:new eb({cacheName:"static-style-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/data\/.+\/.+\.json$/i,handler:new ee({cacheName:"next-data",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:json|xml|csv)$/i,handler:new ee({cacheName:"static-data-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/api\/auth\/.*/,handler:new et({networkTimeoutSeconds:10})},{matcher:({sameOrigin:e,url:{pathname:t}})=>e&&t.startsWith("/api/"),method:"GET",handler:new ee({cacheName:"apis",plugins:[new ef({maxEntries:16,maxAgeSeconds:86400,maxAgeFrom:"last-used"})],networkTimeoutSeconds:10})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&a&&!t.startsWith("/api/"),handler:new ee({cacheName:"pages-rsc-prefetch",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>"1"===e.headers.get("RSC")&&a&&!t.startsWith("/api/"),handler:new ee({cacheName:"pages-rsc",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>e.headers.get("Content-Type")?.includes("text/html")&&a&&!t.startsWith("/api/"),handler:new ee({cacheName:"pages",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({url:{pathname:e},sameOrigin:t})=>t&&!e.startsWith("/api/"),handler:new ee({cacheName:"others",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({sameOrigin:e})=>!e,handler:new ee({cacheName:"cross-origin",plugins:[new ef({maxEntries:32,maxAgeSeconds:3600})],networkTimeoutSeconds:10})},{matcher:/.*/i,method:"GET",handler:new et}],eS=[{matcher:({sameOrigin:e,url:t})=>e&&t.pathname.startsWith("/api/"),handler:new et},...eq];new eR({precacheEntries:[{'revision':'49311c46fa85e8661874363eb6258c8e','url':'/_next/static/TF1j-xvXpkhmvswa9aruf/_buildManifest.js'},{'revision':'b6652df95db52feb4daf4eca35380933','url':'/_next/static/TF1j-xvXpkhmvswa9aruf/_ssgManifest.js'},{'revision':null,'url':'/_next/static/chunks/0f46d6a6-bc0f92b7387f2fd5.js'},{'revision':null,'url':'/_next/static/chunks/1676-c02bb7e4f1bca616.js'},{'revision':null,'url':'/_next/static/chunks/2671-7272a61d909d3024.js'},{'revision':null,'url':'/_next/static/chunks/2841-64e767b50115d700.js'},{'revision':null,'url':'/_next/static/chunks/5056-092b83bfcf5f7f07.js'},{'revision':null,'url':'/_next/static/chunks/5768-84c068b0c57117bd.js'},{'revision':null,'url':'/_next/static/chunks/8142-6963f4596d96ded2.js'},{'revision':null,'url':'/_next/static/chunks/a94babcc-a728d4f9f9b05e6e.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/activity/page-b68a5c725dce1c06.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/ai/page-b981abe2d6b440d0.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/circle/%5Bid%5D/page-f81f78d1c07d8de2.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/circle/join/%5Btoken%5D/page-239577d17bf3e9ff.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/circle/page-c151cb99d9a807ca.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/dev/components/page-c36fb7d1914f1016.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/family/page-46451b5d86da8bf5.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/growth/page-1a3dc981af3fce92.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/home/page-f7bbd3ccd88130f6.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/layout-751174c9e3f283c6.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/medical/emergency/page-f6a3f02c0923593c.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/medical/page-2ef9da8fb0209e35.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/memories/page-72848f8176060891.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/menu/page-ad2c34b5140ce1ab.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/milestones/page-8eda3920450c9abf.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/notifications/page-dcd48663dd82fb08.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/onboarding/page-9d81d8095ea561c2.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/profile/page-970457682beb0554.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/settings/page-8803ed67d10b2d1a.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/settings/profile/page-8e81fa416fd955ed.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/%5Bid%5D/page-3d3f822f5acd01a7.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/add/page-db04c577c33e5521.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/outfit/page-572ecef9937b7fc1.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/packing/page-5943a2fbbc8c998d.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/page-8d648b69186f8f4f.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/saved-outfits/page-707511eaa8925a11.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/about/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/blog/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/layout-f76e6a557a6e77f2.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/opengraph-image-pwu6ef/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/partners/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/pricing/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/privacy/page-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/terms/page-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/_global-error/page-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/_not-found/page-047bafadd81c0146.js'},{'revision':null,'url':'/_next/static/chunks/app/admin-login/page-9e50e936682d5409.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/activity/page-1bbcd85d62cacc43.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/analytics/page-5e593926399e6ae9.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/children/page-f4ca98027cb80989.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/families/page-9d9b291db3203f95.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/layout-2d9dab26e7b93f98.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/page-dc2c623bad55cd6f.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/revenue/page-2eedf1445f8f1755.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/settings/page-acfdbbd31ed9c956.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/support/page-40cb0c58abdeb17b.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/users/page-c7031331ca7e92dc.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/activity/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/analytics/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/auth/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/children/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/children/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/engagement/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/families/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/families/limits/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/families/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/stats/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/support/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/users/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/ai/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/allergies/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/%5B...nextauth%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/avatar/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/google/callback/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/google/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/profile/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/resend-verification/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/reset-confirm/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/reset-request/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/signin/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/signout/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/verify-email/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/chat/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/children/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/children/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circle/join/%5Btoken%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/invite/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/members/%5BmemberId%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/members/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/comments/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/reactions/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/report/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/upload/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/invites/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/cron/backup/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/debug-migration/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/families/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/family/members/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/family/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/%5Bid%5D/wear/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outfit/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outfits/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outfits/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outgrowth/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/packing/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/tag/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/upload/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/growth/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/history/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/illnesses/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/invites/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/invites/accept/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/invites/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/logs/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/logs/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/medicines/%5Bid%5D/doses/%5BdoseId%5D/correct/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/medicines/%5Bid%5D/doses/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/medicines/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/%5Bid%5D/confirm/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/search/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/milestones/%5Bkey%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/milestones/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/notifications/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/onboarding/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/%5Bslug%5D/click/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/%5Bslug%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/products/%5Bid%5D/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/products/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/storage-usage/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/upload/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/vaccinations/bulk/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/vaccinations/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/api/visits/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/invite/%5Btoken%5D/page-63a6f131cd4d20f7.js'},{'revision':null,'url':'/_next/static/chunks/app/layout-2d08b19034b296db.js'},{'revision':null,'url':'/_next/static/chunks/app/login/page-aa117661cab38f87.js'},{'revision':null,'url':'/_next/static/chunks/app/m/%5Bslug%5D/page-32426639a23f2bc6.js'},{'revision':null,'url':'/_next/static/chunks/app/manifest.webmanifest/route-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/app/verify/page-0ac63fd705a24527.js'},{'revision':null,'url':'/_next/static/chunks/app/~offline/page-4b1089c206b81b6d.js'},{'revision':null,'url':'/_next/static/chunks/framework-c9a18ae1c8faf3a8.js'},{'revision':null,'url':'/_next/static/chunks/main-10d06548d7232652.js'},{'revision':null,'url':'/_next/static/chunks/main-app-727db3801a3b6172.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/app-error-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/forbidden-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/global-error-48690e68a091aa82.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/not-found-2b089d2203b1c311.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/unauthorized-2b089d2203b1c311.js'},{'revision':'846118c33b2c0e922d7b3a7676f81f6f','url':'/_next/static/chunks/polyfills-42372ed130431b0a.js'},{'revision':null,'url':'/_next/static/chunks/webpack-f8d9c47ef78de33c.js'},{'revision':null,'url':'/_next/static/css/32e624dea9a5eb7c.css'},{'revision':'3a2cd1c3db938c6bdffdb73938e44590','url':'/_next/static/media/07fccecd6728972a-s.woff2'},{'revision':'7ffd9af8193278e5330da4a0abc2ee71','url':'/_next/static/media/0f1bdadaf30e2d5f-s.woff2'},{'revision':'f4634c3bc1fa7cb53247e1f2872adb5a','url':'/_next/static/media/22a5144ee8d83bca-s.p.woff2'},{'revision':'677f33f1c7ed560d5885e21734cd8ce5','url':'/_next/static/media/2c34d62a75506231-s.woff2'},{'revision':'1fde3bbfa79563c8c15f10e025b4002c','url':'/_next/static/media/46bdd75a3ff56824-s.p.woff2'},{'revision':'f438d3567fa12978d92ef6eee43d3f11','url':'/_next/static/media/486fce9f36bc8f45-s.woff2'},{'revision':'c2bc2ad5f509be48ce8974180a3dbd47','url':'/_next/static/media/601f5c280d60caca-s.woff2'},{'revision':'9a45f5a5937490fac6d4f5043a36c125','url':'/_next/static/media/9766a7e9e2e0ad5a-s.woff2'},{'revision':'ef57990a371e9f21bacdef1e62efa44c','url':'/_next/static/media/a115172161b307bb-s.woff2'},{'revision':'49215a3bccaeb5d483f4cf8fceb24776','url':'/_next/static/media/aa016aab0e6d1295-s.woff2'},{'revision':'dea7cff2e11a000dc4e0e913992f9c21','url':'/_next/static/media/b66cf8e69499582a-s.woff2'},{'revision':'faf6ccaa8812142c4dad31d50bc2b24f','url':'/_next/static/media/d100b2a099e34044-s.woff2'},{'revision':'bd711a747d416f46892596919ccde9dc','url':'/_next/static/media/e44cdba7d0878bc5-s.woff2'},{'revision':'075226e68ad06f734d7920a0fcd35b39','url':'/_next/static/media/f5271587012faf78-s.p.woff2'},{'revision':'f4a75186954722ca80df35984adf581d','url':'/_next/static/media/f639721981034f88-s.woff2'},{'revision':'d09f95206c3fa0bb9bd9fefabfd0ea71','url':'/file.svg'},{'revision':'2aaafa6a49b6563925fe440891e32717','url':'/globe.svg'},{'revision':'acda71a8cf1a7ec53e680db45960984a','url':'/icon.svg'},{'revision':'dfdc751c47065d6bc2333f645d2e00f2','url':'/icons/192.png'},{'revision':'1ee4136b9bc096f58b3a3d1f976a7dc4','url':'/icons/512.png'},{'revision':'d2b2164129d2a4418f5a152fd840ec24','url':'/icons/apple-180.png'},{'revision':'f8a3cbf5fa2fea5e3586aa2667c410d9','url':'/icons/maskable-512.png'},{'revision':'8e061864f388b47f33a1c3780831193e','url':'/next.svg'},{'revision':'c0af2f507b369b085b35ef4bbe3bcf1e','url':'/vercel.svg'},{'revision':'a2760511c65806022ad20adf74370ff3','url':'/window.svg'}],precacheOptions:{cleanupOutdatedCaches:!0},skipWaiting:!0,clientsClaim:!0,navigationPreload:!0,disableDevLogs:!0,runtimeCaching:eS,fallbacks:{entries:[{url:"/~offline",matcher:({request:e})=>"navigate"===e.mode}]}}).addEventListeners()})(); \ No newline at end of file +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`)}handleInstall(e){return this.registerRequestRules(e),y(e,async()=>{let t=new eo;this.precacheStrategy.plugins.push(t),await el(this._concurrentPrecaching,Array.from(this._urlsToCacheKeys.entries()),async([t,a])=>{let s=this._cacheKeysToIntegrities.get(a),r=this._urlsToCacheModes.get(t),n=new Request(t,{integrity:s,cache:r,credentials:"same-origin"});await Promise.all(this.precacheStrategy.handleAll({event:e,request:n,url:new URL(n.url),params:{cacheKey:a}}))});let{updatedURLs:a,notUpdatedURLs:s}=t;return{updatedURLs:a,notUpdatedURLs:s}})}async registerRequestRules(e){if(this._requestRules&&e?.addRoutes)try{await e.addRoutes(this._requestRules),this._requestRules=void 0}catch(e){throw e}}handleActivate(e){return y(e,async()=>{let e=await self.caches.open(this.precacheStrategy.cacheName),t=await e.keys(),a=new Set(this._urlsToCacheKeys.values()),s=[];for(let r of t)a.has(r.url)||(await e.delete(r),s.push(r.url));return{deletedCacheRequests:s}})}handleFetch(e){let{request:t}=e,a=this.handleRequest({request:t,event:e});a&&e.respondWith(a)}handleCache(e){if(e.data&&"CACHE_URLS"===e.data.type){let{payload:t}=e.data,a=Promise.all(t.urlsToCache.map(t=>{let a;return a="string"==typeof t?new Request(t):new Request(...t),this.handleRequest({request:a,event:e})}));e.waitUntil(a),e.ports?.[0]&&a.then(()=>e.ports[0].postMessage(!0))}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,ea(e))}setCatchHandler(e){this._catchHandler=ea(e)}registerCapture(e,t,a){let s=((e,t,a)=>{if("string"==typeof e){let s=new URL(e,location.href);return new es(({url:e})=>e.href===s.href,t,a)}if(e instanceof RegExp)return new ei(e,t,a);if("function"==typeof e)return new es(e,t,a);if(e instanceof es)return e;throw new l("unsupported-route-type",{moduleName:"serwist",funcName:"parseRoute",paramName:"capture"})})(e,t,a);return this.registerRoute(s),s}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});let t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}getUrlsToPrecacheKeys(){return this._urlsToCacheKeys}getPrecachedUrls(){return[...this._urlsToCacheKeys.keys()]}getPrecacheKeyForUrl(e){let t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForPrecacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){let t=e instanceof Request?e.url:e,a=this.getPrecacheKeyForUrl(t);if(a)return(await self.caches.open(this.precacheStrategy.cacheName)).match(a)}createHandlerBoundToUrl(e){let t=this.getPrecacheKeyForUrl(e);if(!t)throw new l("non-precached-url",{url:e});return a=>(a.request=new Request(e),a.params={cacheKey:t,...a.params},this.precacheStrategy.handle(a))}handleRequest({request:e,event:t}){let a,s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return;let r=s.origin===location.origin,{params:n,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:s}),c=i?.handler,o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;try{a=c.handle({url:s,request:e,event:t,params:n})}catch(e){a=Promise.reject(e)}let l=i?.catchHandler;return a instanceof Promise&&(this._catchHandler||l)&&(a=a.catch(async a=>{if(l)try{return await l.handle({url:s,request:e,event:t,params:n})}catch(e){e instanceof Error&&(a=e)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw a})),a}findMatchingRoute({url:e,sameOrigin:t,request:a,event:s}){for(let r of this._routes.get(a.method)||[]){let n,i=r.match({url:e,sameOrigin:t,request:a,event:s});if(i)return Array.isArray(n=i)&&0===n.length||i.constructor===Object&&0===Object.keys(i).length?n=void 0:"boolean"==typeof i&&(n=void 0),{route:r,params:n}}return{}}};let eq=[{matcher:/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,handler:new ex({cacheName:"google-fonts-webfonts",plugins:[new ef({maxEntries:4,maxAgeSeconds:31536e3,maxAgeFrom:"last-used"})]})},{matcher:/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,handler:new eb({cacheName:"google-fonts-stylesheets",plugins:[new ef({maxEntries:4,maxAgeSeconds:604800,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,handler:new eb({cacheName:"static-font-assets",plugins:[new ef({maxEntries:4,maxAgeSeconds:604800,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,handler:new eb({cacheName:"static-image-assets",plugins:[new ef({maxEntries:64,maxAgeSeconds:2592e3,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/static.+\.js$/i,handler:new ex({cacheName:"next-static-js-assets",plugins:[new ef({maxEntries:64,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/image\?url=.+$/i,handler:new eb({cacheName:"next-image",plugins:[new ef({maxEntries:64,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:mp3|wav|ogg)$/i,handler:new ex({cacheName:"static-audio-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"}),new e_]})},{matcher:/\.(?:mp4|webm)$/i,handler:new ex({cacheName:"static-video-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"}),new e_]})},{matcher:/\.(?:js)$/i,handler:new eb({cacheName:"static-js-assets",plugins:[new ef({maxEntries:48,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:css|less)$/i,handler:new eb({cacheName:"static-style-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/data\/.+\/.+\.json$/i,handler:new ee({cacheName:"next-data",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:json|xml|csv)$/i,handler:new ee({cacheName:"static-data-assets",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/api\/auth\/.*/,handler:new et({networkTimeoutSeconds:10})},{matcher:({sameOrigin:e,url:{pathname:t}})=>e&&t.startsWith("/api/"),method:"GET",handler:new ee({cacheName:"apis",plugins:[new ef({maxEntries:16,maxAgeSeconds:86400,maxAgeFrom:"last-used"})],networkTimeoutSeconds:10})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&a&&!t.startsWith("/api/"),handler:new ee({cacheName:"pages-rsc-prefetch",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>"1"===e.headers.get("RSC")&&a&&!t.startsWith("/api/"),handler:new ee({cacheName:"pages-rsc",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>e.headers.get("Content-Type")?.includes("text/html")&&a&&!t.startsWith("/api/"),handler:new ee({cacheName:"pages",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({url:{pathname:e},sameOrigin:t})=>t&&!e.startsWith("/api/"),handler:new ee({cacheName:"others",plugins:[new ef({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({sameOrigin:e})=>!e,handler:new ee({cacheName:"cross-origin",plugins:[new ef({maxEntries:32,maxAgeSeconds:3600})],networkTimeoutSeconds:10})},{matcher:/.*/i,method:"GET",handler:new et}],eS=[{matcher:({sameOrigin:e,url:t})=>e&&t.pathname.startsWith("/api/"),handler:new et},...eq];new eR({precacheEntries:[{'revision':'1bd457ec01c1a702c739edd1e1471993','url':'/_next/static/XSkWXxsJgO5Zdsd6lOTFH/_buildManifest.js'},{'revision':'b6652df95db52feb4daf4eca35380933','url':'/_next/static/XSkWXxsJgO5Zdsd6lOTFH/_ssgManifest.js'},{'revision':null,'url':'/_next/static/chunks/0f46d6a6-bc0f92b7387f2fd5.js'},{'revision':null,'url':'/_next/static/chunks/1676-c02bb7e4f1bca616.js'},{'revision':null,'url':'/_next/static/chunks/2671-7272a61d909d3024.js'},{'revision':null,'url':'/_next/static/chunks/2841-64e767b50115d700.js'},{'revision':null,'url':'/_next/static/chunks/5056-092b83bfcf5f7f07.js'},{'revision':null,'url':'/_next/static/chunks/5768-84c068b0c57117bd.js'},{'revision':null,'url':'/_next/static/chunks/8142-6963f4596d96ded2.js'},{'revision':null,'url':'/_next/static/chunks/a94babcc-a728d4f9f9b05e6e.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/activity/page-b68a5c725dce1c06.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/ai/page-b981abe2d6b440d0.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/circle/%5Bid%5D/page-f81f78d1c07d8de2.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/circle/join/%5Btoken%5D/page-239577d17bf3e9ff.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/circle/page-c151cb99d9a807ca.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/dev/components/page-c36fb7d1914f1016.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/family/page-46451b5d86da8bf5.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/growth/page-1a3dc981af3fce92.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/home/page-ce0b969a2f351b55.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/layout-751174c9e3f283c6.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/medical/emergency/page-f6a3f02c0923593c.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/medical/page-2ef9da8fb0209e35.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/memories/page-20e857dc1f5bd083.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/menu/page-ad2c34b5140ce1ab.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/milestones/page-8eda3920450c9abf.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/notifications/page-dcd48663dd82fb08.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/onboarding/page-9d81d8095ea561c2.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/profile/page-3a4fcc5a70570525.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/settings/page-8803ed67d10b2d1a.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/settings/profile/page-8e81fa416fd955ed.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/%5Bid%5D/page-3d3f822f5acd01a7.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/add/page-db04c577c33e5521.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/outfit/page-572ecef9937b7fc1.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/packing/page-5943a2fbbc8c998d.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/page-8d648b69186f8f4f.js'},{'revision':null,'url':'/_next/static/chunks/app/(app)/wardrobe/saved-outfits/page-707511eaa8925a11.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/about/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/blog/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/layout-f76e6a557a6e77f2.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/opengraph-image-pwu6ef/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/partners/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/pricing/page-c64619e8dc204c91.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/privacy/page-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/(marketing)/terms/page-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/_global-error/page-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/_not-found/page-047bafadd81c0146.js'},{'revision':null,'url':'/_next/static/chunks/app/admin-login/page-9e50e936682d5409.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/activity/page-1bbcd85d62cacc43.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/analytics/page-5e593926399e6ae9.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/children/page-f4ca98027cb80989.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/families/page-9d9b291db3203f95.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/layout-2d9dab26e7b93f98.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/page-dc2c623bad55cd6f.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/revenue/page-2eedf1445f8f1755.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/settings/page-acfdbbd31ed9c956.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/support/page-40cb0c58abdeb17b.js'},{'revision':null,'url':'/_next/static/chunks/app/admin/users/page-c7031331ca7e92dc.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/activity/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/analytics/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/auth/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/children/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/children/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/engagement/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/families/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/families/limits/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/families/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/stats/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/support/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/admin/users/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/ai/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/allergies/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/%5B...nextauth%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/avatar/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/google/callback/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/google/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/profile/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/resend-verification/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/reset-confirm/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/reset-request/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/signin/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/signout/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/auth/verify-email/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/chat/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/children/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/children/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circle/join/%5Btoken%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/invite/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/members/%5BmemberId%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/members/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/comments/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/reactions/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/report/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/%5BpostId%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/posts/upload/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/invites/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/circles/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/cron/backup/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/debug-migration/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/families/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/family/members/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/family/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/%5Bid%5D/wear/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outfit/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outfits/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outfits/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/outgrowth/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/packing/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/tag/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/garments/upload/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/growth/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/history/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/illnesses/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/img/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/invites/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/invites/accept/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/invites/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/logs/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/logs/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/medicines/%5Bid%5D/doses/%5BdoseId%5D/correct/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/medicines/%5Bid%5D/doses/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/medicines/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/%5Bid%5D/confirm/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/memories/search/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/milestones/%5Bkey%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/milestones/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/notifications/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/onboarding/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/%5Bslug%5D/click/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/%5Bslug%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/products/%5Bid%5D/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/products/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/profile/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/storage-usage/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/upload/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/vaccinations/bulk/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/vaccinations/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/api/visits/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/invite/%5Btoken%5D/page-63a6f131cd4d20f7.js'},{'revision':null,'url':'/_next/static/chunks/app/layout-2d08b19034b296db.js'},{'revision':null,'url':'/_next/static/chunks/app/login/page-aa117661cab38f87.js'},{'revision':null,'url':'/_next/static/chunks/app/m/%5Bslug%5D/page-32426639a23f2bc6.js'},{'revision':null,'url':'/_next/static/chunks/app/manifest.webmanifest/route-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/app/verify/page-0ac63fd705a24527.js'},{'revision':null,'url':'/_next/static/chunks/app/~offline/page-4b1089c206b81b6d.js'},{'revision':null,'url':'/_next/static/chunks/framework-c9a18ae1c8faf3a8.js'},{'revision':null,'url':'/_next/static/chunks/main-10d06548d7232652.js'},{'revision':null,'url':'/_next/static/chunks/main-app-727db3801a3b6172.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/app-error-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/forbidden-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/global-error-48690e68a091aa82.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/not-found-93b1c4f3ef1077c6.js'},{'revision':null,'url':'/_next/static/chunks/next/dist/client/components/builtin/unauthorized-93b1c4f3ef1077c6.js'},{'revision':'846118c33b2c0e922d7b3a7676f81f6f','url':'/_next/static/chunks/polyfills-42372ed130431b0a.js'},{'revision':null,'url':'/_next/static/chunks/webpack-f8d9c47ef78de33c.js'},{'revision':null,'url':'/_next/static/css/abe7201b6d423c34.css'},{'revision':'3a2cd1c3db938c6bdffdb73938e44590','url':'/_next/static/media/07fccecd6728972a-s.woff2'},{'revision':'7ffd9af8193278e5330da4a0abc2ee71','url':'/_next/static/media/0f1bdadaf30e2d5f-s.woff2'},{'revision':'f4634c3bc1fa7cb53247e1f2872adb5a','url':'/_next/static/media/22a5144ee8d83bca-s.p.woff2'},{'revision':'677f33f1c7ed560d5885e21734cd8ce5','url':'/_next/static/media/2c34d62a75506231-s.woff2'},{'revision':'1fde3bbfa79563c8c15f10e025b4002c','url':'/_next/static/media/46bdd75a3ff56824-s.p.woff2'},{'revision':'f438d3567fa12978d92ef6eee43d3f11','url':'/_next/static/media/486fce9f36bc8f45-s.woff2'},{'revision':'c2bc2ad5f509be48ce8974180a3dbd47','url':'/_next/static/media/601f5c280d60caca-s.woff2'},{'revision':'9a45f5a5937490fac6d4f5043a36c125','url':'/_next/static/media/9766a7e9e2e0ad5a-s.woff2'},{'revision':'ef57990a371e9f21bacdef1e62efa44c','url':'/_next/static/media/a115172161b307bb-s.woff2'},{'revision':'49215a3bccaeb5d483f4cf8fceb24776','url':'/_next/static/media/aa016aab0e6d1295-s.woff2'},{'revision':'dea7cff2e11a000dc4e0e913992f9c21','url':'/_next/static/media/b66cf8e69499582a-s.woff2'},{'revision':'faf6ccaa8812142c4dad31d50bc2b24f','url':'/_next/static/media/d100b2a099e34044-s.woff2'},{'revision':'bd711a747d416f46892596919ccde9dc','url':'/_next/static/media/e44cdba7d0878bc5-s.woff2'},{'revision':'075226e68ad06f734d7920a0fcd35b39','url':'/_next/static/media/f5271587012faf78-s.p.woff2'},{'revision':'f4a75186954722ca80df35984adf581d','url':'/_next/static/media/f639721981034f88-s.woff2'},{'revision':'d09f95206c3fa0bb9bd9fefabfd0ea71','url':'/file.svg'},{'revision':'2aaafa6a49b6563925fe440891e32717','url':'/globe.svg'},{'revision':'acda71a8cf1a7ec53e680db45960984a','url':'/icon.svg'},{'revision':'dfdc751c47065d6bc2333f645d2e00f2','url':'/icons/192.png'},{'revision':'1ee4136b9bc096f58b3a3d1f976a7dc4','url':'/icons/512.png'},{'revision':'d2b2164129d2a4418f5a152fd840ec24','url':'/icons/apple-180.png'},{'revision':'f8a3cbf5fa2fea5e3586aa2667c410d9','url':'/icons/maskable-512.png'},{'revision':'8e061864f388b47f33a1c3780831193e','url':'/next.svg'},{'revision':'c0af2f507b369b085b35ef4bbe3bcf1e','url':'/vercel.svg'},{'revision':'a2760511c65806022ad20adf74370ff3','url':'/window.svg'}],precacheOptions:{cleanupOutdatedCaches:!0},skipWaiting:!0,clientsClaim:!0,navigationPreload:!0,disableDevLogs:!0,runtimeCaching:eS,fallbacks:{entries:[{url:"/~offline",matcher:({request:e})=>"navigate"===e.mode}]}}).addEventListeners()})(); \ No newline at end of file diff --git a/src/app/(app)/home/page.tsx b/src/app/(app)/home/page.tsx index 00ef2fe..450d4d8 100644 --- a/src/app/(app)/home/page.tsx +++ b/src/app/(app)/home/page.tsx @@ -10,7 +10,6 @@ import { getOfflineQueue, processOfflineQueue } from "@/lib/offline-queue"; import { calculateAge, formatTimeAgo } from "@/lib/formatting"; import { hourIST, isTodayIST, fmtTime } from "@/lib/date-ist"; import type { Log, AIChat, ChatSession } from "@/types"; -import { UploadProgress, type UploadStep } from "@/components/UploadProgress"; /** Some Android cameras return file.type = "" — detect from extension as fallback. */ function resolveContentType(file: File): string { @@ -104,8 +103,6 @@ export default function HomePage() { const [uploadingPhoto, setUploadingPhoto] = useState(false); const [photoError, setPhotoError] = useState(false); const [showPhotoMenu, setShowPhotoMenu] = useState(false); - const [photoUploadFile, setPhotoUploadFile] = useState<{ name: string; size: number } | null>(null); - const [photoUploadSteps, setPhotoUploadSteps] = useState([]); const photoInputRef = useRef(null); const { theme, toggle: toggleTheme } = useTheme(); const { childId, child, familyId, loading, updateChildImage } = useFamily(); @@ -200,81 +197,37 @@ export default function HomePage() { toggleTheme(); }; - const setPhotoStep = (i: number, patch: Partial) => - setPhotoUploadSteps(prev => prev.map((s, idx) => idx === i ? { ...s, ...patch } : s)); - - const safeText = async (res: Response): Promise => { - try { - const t = await res.text(); - try { return JSON.parse(t).error || t; } catch { return t.slice(0, 200); } - } catch { return `HTTP ${res.status}`; } - }; - const handlePhotoChange = async (e: React.ChangeEvent) => { const file = e.target.files?.[0]; if (!file || !childId) return; const contentType = resolveContentType(file); - - setPhotoUploadFile({ name: file.name, size: file.size }); - setPhotoUploadSteps([ - { label: "Step 1 — Reserving upload slot", status: "pending" }, - { label: `Step 2 — Uploading (${(file.size/1024).toFixed(0)} KB, ${contentType})`, status: "pending" }, - { label: "Step 3 — Saving baby photo", status: "pending" }, - ]); setUploadingPhoto(true); setShowPhotoMenu(false); try { - // 1. Get R2 key + public URL from server - setPhotoStep(0, { status: "active" }); - const initRes = await fetch(`/api/children/${childId}`, { + const initData = await fetch(`/api/children/${childId}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ contentType, filename: file.name }), - }); - if (!initRes.ok) { - const detail = await safeText(initRes); - setPhotoStep(0, { status: "error", detail: `HTTP ${initRes.status}: ${detail}` }); - return; - } - const { key, publicUrl } = await initRes.json(); - setPhotoStep(0, { status: "done" }); + }).then(r => r.json()); + if (!initData.key) throw new Error(initData.error || "Upload failed"); + const { key, publicUrl } = initData; - // 2. Upload via server proxy — avoids CORS on direct R2 PUT - setPhotoStep(1, { status: "active" }); - const putParams = new URLSearchParams({ key, contentType }); - const putRes = await fetch(`/api/upload?${putParams}`, { + const putRes = await fetch(`/api/upload?${new URLSearchParams({ key, contentType })}`, { method: "PUT", body: file, headers: { "Content-Type": contentType }, }); - if (!putRes.ok) { - const detail = await safeText(putRes); - setPhotoStep(1, { status: "error", detail: `HTTP ${putRes.status}: ${detail}` }); - return; - } - setPhotoStep(1, { status: "done" }); + if (!putRes.ok) throw new Error(`Upload failed (${putRes.status})`); - // 3. Save URL to DB - setPhotoStep(2, { status: "active" }); - const patchRes = await fetch(`/api/children/${childId}`, { + await fetch(`/api/children/${childId}`, { method: "PATCH", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ imageUrl: publicUrl }), }); - if (!patchRes.ok) { - const detail = await safeText(patchRes); - setPhotoStep(2, { status: "error", detail: `HTTP ${patchRes.status}: ${detail}` }); - return; - } - setPhotoStep(2, { status: "done" }); - // 4. Update in-memory state with proxy URL (avoids R2 503 on cross-origin img) - const proxyUrl = `/api/img?key=${encodeURIComponent(key)}`; setPhotoError(false); - updateChildImage(childId, proxyUrl); + updateChildImage(childId, `/api/img?key=${encodeURIComponent(key)}`); } catch (err) { - setPhotoUploadSteps(prev => prev.map(s => - s.status === "active" ? { ...s, status: "error", detail: String(err) } : s - )); + console.error("Photo upload failed:", err); } finally { setUploadingPhoto(false); if (photoInputRef.current) photoInputRef.current.value = ""; @@ -351,26 +304,7 @@ export default function HomePage() { return (
- {/* Baby photo upload progress — fixed toast, stays until dismissed */} - {photoUploadFile && (uploadingPhoto || photoUploadSteps.some(s => s.status === "error" || s.status === "done")) && ( -
- - {!uploadingPhoto && ( - - )} -
- )} - -
+
🆘 diff --git a/src/app/(app)/memories/page.tsx b/src/app/(app)/memories/page.tsx index 03ba0f9..d24eac6 100644 --- a/src/app/(app)/memories/page.tsx +++ b/src/app/(app)/memories/page.tsx @@ -6,7 +6,6 @@ import { useFamily } from "@/app/FamilyProvider"; import { Button, ConfirmDialog, Modal } from "@/components/ui"; import { StorageMeter, StorageQuotaBanner } from "@/components/StorageMeter"; import { formatBytes } from "@/lib/format-bytes"; -import { UploadProgress, type UploadStep } from "@/components/UploadProgress"; /** Some Android cameras return file.type = "" — detect from extension as fallback. */ function resolveContentType(file: File): string { @@ -60,8 +59,7 @@ export default function MemoriesPage() { const [nextCursor, setNextCursor] = useState(null); const [selected, setSelected] = useState(null); const [uploading, setUploading] = useState(false); - const [uploadFile, setUploadFile] = useState<{ name: string; size: number } | null>(null); - const [uploadSteps, setUploadSteps] = useState([]); + const [uploadError, setUploadError] = useState(null); const [deleteTarget, setDeleteTarget] = useState(null); const [loadingMore, setLoadingMore] = useState(false); const [activeFolder, setActiveFolder] = useState(""); @@ -156,70 +154,41 @@ export default function MemoriesPage() { fileRef.current?.click(); }; - const setStep = (i: number, patch: Partial) => - setUploadSteps(prev => prev.map((s, idx) => idx === i ? { ...s, ...patch } : s)); - - const safeResponseText = async (res: Response): Promise => { - try { - const text = await res.text(); - try { return JSON.parse(text).error || text; } catch { return text.slice(0, 200); } - } catch { return `HTTP ${res.status}`; } - }; - const handleUpload = async (e: React.ChangeEvent) => { const file = e.target.files?.[0]; if (!file || !childId) return; const contentType = resolveContentType(file); - setUploadFile({ name: file.name, size: file.size }); - setUploadSteps([ - { label: "Step 1 — Reserving upload slot", status: "pending" }, - { label: `Step 2 — Uploading to R2 (${(file.size/1024).toFixed(0)} KB, ${contentType})`, status: "pending" }, - { label: "Step 3 — Confirming file in storage", status: "pending" }, - ]); setUploading(true); + setUploadError(null); try { - // ── Step 1: reserve slot + quota gate ───────────────────────────────── - setStep(0, { status: "active" }); + // Step 1: reserve slot + quota gate const initRes = await fetch("/api/upload", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ filename: file.name, contentType, childId, sizeBytes: file.size }), }); + const initData = await initRes.json(); if (!initRes.ok) { - const detail = await safeResponseText(initRes); - if (initRes.status === 402) { - // Quota exceeded — show banner, don't mark as upload error - const initData = await initRes.json().catch(() => ({})) as { reason?: string; usedBytes?: number; limitBytes?: number }; - if (initData.reason === "storage_quota_exceeded") { - setQuotaExceeded(true); - setQuotaBanner({ usedBytes: initData.usedBytes ?? 0, limitBytes: initData.limitBytes ?? 0 }); - } - setStep(0, { status: "error", detail: `Storage quota exceeded (HTTP 402)` }); + if (initRes.status === 402 && initData.reason === "storage_quota_exceeded") { + setQuotaExceeded(true); + setQuotaBanner({ usedBytes: initData.usedBytes ?? 0, limitBytes: initData.limitBytes ?? 0 }); + setUploadError("Storage quota exceeded"); } else { - setStep(0, { status: "error", detail: `HTTP ${initRes.status}: ${detail}` }); + setUploadError(initData.error || `Upload failed (${initRes.status})`); } return; } - const initData = await initRes.json(); - const { key, memoryId, publicUrl } = initData; - setStep(0, { status: "done" }); + const { key, memoryId } = initData; - // ── Step 2: binary upload via proxy ─────────────────────────────────── - setStep(1, { status: "active" }); - const putParams = new URLSearchParams({ key, contentType }); - const putRes = await fetch(`/api/upload?${putParams}`, { + // Step 2: binary upload via proxy + const putRes = await fetch(`/api/upload?${new URLSearchParams({ key, contentType })}`, { method: "PUT", body: file, headers: { "Content-Type": contentType }, }); - if (!putRes.ok) { - const detail = await safeResponseText(putRes); - setStep(1, { status: "error", detail: `HTTP ${putRes.status}: ${detail}` }); - return; - } - setStep(1, { status: "done" }); + if (!putRes.ok) { setUploadError(`Upload failed (${putRes.status})`); return; } - // ── Optional: assign folder ─────────────────────────────────────────── + // Assign folder if chosen if (pendingFolder) { await fetch(`/api/memories/${memoryId}`, { method: "PATCH", @@ -228,39 +197,33 @@ export default function MemoriesPage() { }).catch(() => {}); } - // ── Step 3: confirm (HeadObject in R2, quota reconcile) ─────────────── - setStep(2, { status: "active" }); + // Step 3: confirm const confirmRes = await fetch(`/api/memories/${memoryId}/confirm`, { method: "POST" }); if (!confirmRes.ok) { - const detail = await safeResponseText(confirmRes); + const cd = await confirmRes.json().catch(() => ({})) as { reason?: string; usedBytes?: number; limitBytes?: number; error?: string }; if (confirmRes.status === 402) { setQuotaExceeded(true); fetch("/api/storage-usage").then(r => r.json()) .then(d => setQuotaBanner({ usedBytes: d.usedBytes, limitBytes: d.limitBytes })) .catch(() => {}); - setStep(2, { status: "error", detail: `Over quota after actual size check (HTTP 402)` }); + setUploadError("Storage quota exceeded"); } else { - setStep(2, { status: "error", detail: `HTTP ${confirmRes.status}: ${detail}` }); + setUploadError(cd.error || `Failed to confirm upload (${confirmRes.status})`); } return; } - setStep(2, { status: "done" }); - // ── Optimistic grid update ───────────────────────────────────────────── + // Optimistic grid update const proxyUrl = `/api/img?key=${encodeURIComponent(key)}`; - const optimistic: Memory = { + setMemories(prev => [{ id: memoryId, key, url: proxyUrl, thumbnailUrl: null, sizeBytes: file.size, mimeType: contentType, title: null, description: pendingFolder || null, takenAt: null, visionCaption: null, visionTags: null, isPrivate: false, processingStatus: "processing", createdAt: new Date().toISOString(), - }; - setMemories(prev => [optimistic, ...prev]); + }, ...prev]); } catch (err) { - // Mark whichever step was active as failed - setUploadSteps(prev => prev.map(s => - s.status === "active" ? { ...s, status: "error", detail: String(err) } : s - )); + setUploadError(err instanceof Error ? err.message : "Upload failed"); } finally { setUploading(false); setPendingFolder(""); @@ -404,23 +367,11 @@ export default function MemoriesPage() {
- {/* Upload progress toast — stays visible after error so user can read it */} - {uploadFile && (uploading || uploadSteps.some(s => s.status === "error" || s.status === "done")) && ( -
- - {/* Dismiss button — only shown when not actively uploading */} - {!uploading && ( - - )} + {/* Upload error banner */} + {uploadError && !uploading && ( +
+ {uploadError} +
)} diff --git a/src/app/(app)/profile/page.tsx b/src/app/(app)/profile/page.tsx index ffa2935..7e57238 100644 --- a/src/app/(app)/profile/page.tsx +++ b/src/app/(app)/profile/page.tsx @@ -2,7 +2,6 @@ import { useState, useEffect, useRef } from "react"; import { useRouter } from "next/navigation"; -import { UploadProgress, type UploadStep } from "@/components/UploadProgress"; /** Some Android cameras return file.type = "" — detect from extension as fallback. */ function resolveContentType(file: File): string { @@ -16,20 +15,6 @@ function resolveContentType(file: File): string { return map[ext] || "image/jpeg"; } -/** Read response body as text safely (handles non-JSON from proxies like Traefik). */ -async function safeResponseText(res: Response): Promise { - try { - const text = await res.text(); - try { return JSON.parse(text).error || text; } catch { return text.slice(0, 200); } - } catch { return `HTTP ${res.status}`; } -} - -const INITIAL_STEPS: UploadStep[] = [ - { label: "Step 1 — Reserving upload slot", status: "pending" }, - { label: "Step 2 — Uploading photo to R2", status: "pending" }, - { label: "Step 3 — Saving to your profile", status: "pending" }, -]; - export default function ProfilePage() { const router = useRouter(); const fileRef = useRef(null); @@ -41,14 +26,7 @@ export default function ProfilePage() { const [saving, setSaving] = useState(false); const [saveMsg, setSaveMsg] = useState(""); const [avatarError, setAvatarError] = useState(false); - - // Upload progress state - const [uploadFile, setUploadFile] = useState<{ name: string; size: number } | null>(null); - const [steps, setSteps] = useState(INITIAL_STEPS); - const [uploading, setUploading] = useState(false); - - const setStep = (i: number, patch: Partial) => - setSteps(prev => prev.map((s, idx) => idx === i ? { ...s, ...patch } : s)); + const [uploading, setUploading] = useState(false); useEffect(() => { fetch("/api/auth/profile") @@ -69,63 +47,40 @@ export default function ProfilePage() { if (!file) return; const contentType = resolveContentType(file); - setUploadFile({ name: file.name, size: file.size }); - setSteps(INITIAL_STEPS); setUploading(true); + setSaveMsg(""); try { - // ── Step 1: reserve upload slot ──────────────────────────────────────── - setStep(0, { status: "active", label: `Step 1 — Reserving slot (type: ${contentType})` }); + // Step 1: reserve upload slot const initRes = await fetch("/api/auth/avatar", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ contentType, filename: file.name }), }); - if (!initRes.ok) { - const detail = await safeResponseText(initRes); - setStep(0, { status: "error", detail: `HTTP ${initRes.status}: ${detail}` }); - return; - } const initData = await initRes.json(); - const { key, publicUrl: newPublicUrl } = initData; - setStep(0, { status: "done" }); + if (!initRes.ok) throw new Error(initData.error || `Upload failed (${initRes.status})`); + const { key, publicUrl: r2Url } = initData; - // ── Step 2: upload binary to R2 via proxy ─────────────────────────────── - setStep(1, { status: "active", label: `Step 2 — Uploading to R2 (${(file.size / 1024).toFixed(0)} KB)` }); - const putParams = new URLSearchParams({ key, contentType }); - const putRes = await fetch(`/api/upload?${putParams}`, { + // Step 2: upload binary via proxy + const putRes = await fetch(`/api/upload?${new URLSearchParams({ key, contentType })}`, { method: "PUT", body: file, headers: { "Content-Type": contentType }, }); - if (!putRes.ok) { - const detail = await safeResponseText(putRes); - setStep(1, { status: "error", detail: `HTTP ${putRes.status}: ${detail}` }); - return; - } - setStep(1, { status: "done" }); + if (!putRes.ok) throw new Error(`Upload failed (${putRes.status})`); - // ── Step 3: save URL to DB ────────────────────────────────────────────── - setStep(2, { status: "active" }); + // Step 3: save R2 URL to DB const patchRes = await fetch("/api/auth/avatar", { method: "PATCH", headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ avatarUrl: newPublicUrl }), + body: JSON.stringify({ avatarUrl: r2Url }), }); - if (!patchRes.ok) { - const detail = await safeResponseText(patchRes); - setStep(2, { status: "error", detail: `HTTP ${patchRes.status}: ${detail}` }); - return; - } - setStep(2, { status: "done" }); + if (!patchRes.ok) throw new Error("Failed to save photo"); setAvatarError(false); setAvatarUrl(`/api/img?key=${encodeURIComponent(key)}`); } catch (err) { - // Mark the currently-active step as failed - setSteps(prev => prev.map(s => - s.status === "active" ? { ...s, status: "error", detail: String(err) } : s - )); + setSaveMsg(err instanceof Error ? err.message : "Upload failed"); } finally { setUploading(false); if (fileRef.current) fileRef.current.value = ""; @@ -140,7 +95,6 @@ export default function ProfilePage() { if (!res.ok) throw new Error(data.error || "Failed to remove photo"); setAvatarUrl(null); setAvatarError(false); - setUploadFile(null); } catch (err) { setSaveMsg(err instanceof Error ? err.message : "Failed to remove photo"); } @@ -165,8 +119,6 @@ export default function ProfilePage() { }; const initials = name.split(" ").map(w => w[0]).join("").toUpperCase().slice(0, 2); - const uploadDone = steps.every(s => s.status === "done"); - const uploadError = steps.some(s => s.status === "error"); return (
@@ -200,7 +152,7 @@ export default function ProfilePage() {
- {/* Upload progress — shown right below the avatar, always visible */} - {uploadFile && ( -
- - {uploadDone && ( -

- ✓ Photo updated successfully! -

- )} - {uploadError && ( - - )} -
- )} - {/* Form */} {loading ? (
Loading…
diff --git a/src/components/UploadProgress.tsx b/src/components/UploadProgress.tsx deleted file mode 100644 index 2aae2fc..0000000 --- a/src/components/UploadProgress.tsx +++ /dev/null @@ -1,97 +0,0 @@ -"use client"; - -/** - * Shared upload step tracker component. - * Shows each step of the upload pipeline with real-time status. - * Designed to stay visible on mobile without scrolling. - */ - -export type StepStatus = "pending" | "active" | "done" | "error"; - -export interface UploadStep { - label: string; - status: StepStatus; - detail?: string; // shown on error — include HTTP status code + raw response -} - -interface Props { - filename: string; - fileSizeBytes: number; - steps: UploadStep[]; - /** If true, render as a fixed full-width toast at the top of the screen */ - fixed?: boolean; -} - -function formatBytes(bytes: number): string { - if (bytes < 1024) return `${bytes} B`; - if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`; - return `${(bytes / (1024 * 1024)).toFixed(1)} MB`; -} - -const ICONS: Record = { - pending: "○", - active: "◌", - done: "✓", - error: "✗", -}; - -const COLORS: Record = { - pending: "text-gray-400", - active: "text-blue-500", - done: "text-green-500", - error: "text-red-500", -}; - -export function UploadProgress({ filename, fileSizeBytes, steps, fixed }: Props) { - const hasError = steps.some(s => s.status === "error"); - const allDone = steps.every(s => s.status === "done"); - - const wrapCls = fixed - ? "fixed top-4 inset-x-4 z-50 pointer-events-none" - : "w-full"; - - return ( -
-
- {/* File info header */} -
- 📷 -
-

{filename}

-

{formatBytes(fileSizeBytes)}

-
- {allDone && } - {hasError && } - {!allDone && !hasError && ( -
- )} -
- - {/* Steps */} -
- {steps.map((step, i) => ( -
- - {ICONS[step.status]} - -
-

{step.label}

- {step.detail && ( -

- {step.detail} -

- )} -
-
- ))} -
-
-
- ); -}