const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-CUemelmU.js","assets/dist-Cgg5UYwv.js","assets/chunk-CilyBKbf.js","assets/messages-pULannET.js","assets/preload-helper-D4M6sveU.js","assets/storage-CJCFPqcF.js","assets/vault-B62DgbB-.js","assets/license-CJPXPF2I.js","assets/sync-lifecycle-DricLxGP.js","assets/pairing-server-state-BKW7gWeZ.js","assets/sync-storage-C6WHaVcD.js","assets/sync-DidtMzex.js","assets/sync-wire-CJq_rgJM.js","assets/main-BRunuMB5.js","assets/esm-YQTrUQ3k.js","assets/browser-wk6ePD_y.js","assets/Export-C3j6j_gY.js","assets/mayan-BJLC4cpV.js","assets/RuneCanvas-Q4lxpVj9.js","assets/Settings-BRF1s_pI.js","assets/Health-BvNheR-V.js","assets/Panic-B4EjfjXE.js","assets/SyncPairing-C2DwKfpL.js"])))=>i.map(i=>d[i]); import{r as e,t}from"./chunk-CilyBKbf.js";import{a as n,t as r}from"./dist-Cgg5UYwv.js";import{t as i}from"./preload-helper-D4M6sveU.js";import{a,n as o,r as s}from"./storage-CJCFPqcF.js";var c=new Map;function l(){return{addListener:()=>{},removeListener:()=>{}}}async function u(e){return e===null?(await a.keys()).keys:Array.isArray(e)?e:typeof e==`string`?[e]:Object.keys(e)}async function d(e){let t={};for(let n of await u(e)){let{value:e}=await a.get({key:n});if(e!==null)try{t[n]=JSON.parse(e)}catch{t[n]=e}}return t}async function f(e){for(let[t,n]of Object.entries(e))await a.set({key:t,value:JSON.stringify(n)})}async function p(e){let t=Array.isArray(e)?e:[e];for(let e of t)await a.remove({key:e})}function m(e){return e===null?[...c.keys()]:Array.isArray(e)?e:typeof e==`string`?[e]:Object.keys(e)}var h={runtime:{id:`peach-mobile`,sendMessage:(e,t)=>{let n={ok:!1,error:`NO_SERVICE_WORKER`};return t?.(n),Promise.resolve(n)},onMessage:l(),connect:()=>({disconnect:()=>{},onMessage:l(),onDisconnect:l(),postMessage:()=>{}}),lastError:null},storage:{local:{get:d,set:f,remove:p,clear:()=>a.clear()},session:{get:async e=>{let t={};for(let n of m(e))c.has(n)&&(t[n]=c.get(n));return t},set:async e=>{for(let[t,n]of Object.entries(e))c.set(t,n)},remove:async e=>{let t=Array.isArray(e)?e:[e];for(let e of t)c.delete(e)},clear:async()=>{c.clear()}},onChanged:l()},alarms:{clear:()=>{},create:()=>{},onAlarm:l()},idle:{setDetectionInterval:()=>{},onStateChanged:l()},tabs:{query:(e,t)=>(t?.([]),Promise.resolve([])),sendMessage:()=>Promise.resolve(void 0),create:()=>Promise.resolve(void 0),onActivated:l(),onUpdated:l()},action:{openPopup:()=>Promise.resolve(),setBadgeText:()=>Promise.resolve(),setBadgeBackgroundColor:()=>Promise.resolve()},scripting:{executeScript:()=>Promise.resolve()}};window.chrome=h,(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var g={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return _(this.context.count)},getNextContextId(){return _(this.context.count++)}};function _(e){let t=String(e),n=t.length-1;return g.context.id+(n?String.fromCharCode(96+n):``)+t}function v(e){g.context=e}function y(){return{...g.context,id:g.getNextContextId(),count:0}}var b=(e,t)=>e===t,x=Symbol(`solid-track`),S={equals:b},C=null,w=Ce,T=1,E=2,ee={owned:null,cleanups:null,context:null,owner:null},D={},O=null,k=null,A=null,j=null,M=null,N=null,P=null,te=0;function F(e,t){let n=M,r=O,i=e.length===0,a=t===void 0?r:t,o=i?ee:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>B(()=>Oe(o)));O=o,M=null;try{return Se(s,!0)}finally{M=n,O=r}}function I(e,t){t=t?Object.assign({},S,t):S;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[_e.bind(n),e=>(typeof e==`function`&&(e=k&&k.running&&k.sources.has(n)?e(n.tValue):e(n.value)),ve(n,e))]}function L(e,t,n){let r=xe(e,t,!0,T);A&&k&&k.running?N.push(r):ye(r)}function R(e,t,n){let r=xe(e,t,!1,T);A&&k&&k.running?N.push(r):ye(r)}function ne(e,t,n){w=Te;let r=xe(e,t,!1,T),i=he&&pe(he);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),P?P.push(r):ye(r)}function z(e,t,n){n=n?Object.assign({},S,n):S;let r=xe(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,A&&k&&k.running?(r.tState=T,N.push(r)):ye(r),_e.bind(r)}function re(e){return e&&typeof e==`object`&&`then`in e}function ie(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=D,c=null,l=!1,u=!1,d=`initialValue`in a,f=typeof r==`function`&&z(r),p=new Set,[m,h]=(a.storage||I)(a.initialValue),[_,v]=I(void 0),[y,b]=I(void 0,{equals:!1}),[x,S]=I(d?`ready`:`unresolved`);g.context&&(c=g.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:g.load&&g.has(c)&&(s=g.load(c)));function C(e,t,n,r){return o===e&&(o=null,r!==void 0&&(d=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=D,k&&e&&l?(k.promises.delete(e),l=!1,Se(()=>{k.running=!0,w(t,n)},!1)):w(t,n)),t}function w(e,t){Se(()=>{t===void 0&&h(()=>e),S(t===void 0?d?`ready`:`unresolved`:`errored`),v(t);for(let e of p.keys())e.decrement();p.clear()},!1)}function T(){let e=he&&pe(he),t=m(),n=_();if(n!==void 0&&!o)throw n;return M&&!M.user&&e&&L(()=>{y(),o&&(e.resolved&&k&&l?k.promises.add(o):p.has(e)||(e.increment(),p.add(e)))}),t}function E(e=!0){if(e!==!1&&u)return;u=!1;let t=f?f():r;if(l=k&&k.running,t==null||t===!1){C(o,B(m));return}k&&o&&k.promises.delete(o);let n,a=s===D?B(()=>{try{return i(t,{value:m(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){C(o,void 0,Ae(n),t);return}else if(!re(a))return C(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?C(o,a.v,void 0,t):C(o,void 0,Ae(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),Se(()=>{S(d?`refreshing`:`pending`),b()},!1),a.then(e=>C(a,e,void 0,t),e=>C(a,void 0,Ae(e),t)))}Object.defineProperties(T,{state:{get:()=>x()},error:{get:()=>_()},loading:{get(){let e=x();return e===`pending`||e===`refreshing`}},latest:{get(){if(!d)return T();let e=_();if(e&&!o)throw e;return m()}}});let ee=O;return f?L(()=>(ee=O,E(!1))):E(!1),[T,{refetch:e=>se(ee,()=>E(e)),mutate:h}]}function B(e){if(!j&&M===null)return e();let t=M;M=null;try{return j?j.untrack(e):e()}finally{M=t}}function ae(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;tt(o,i,n));return i=o,s}}function V(e){ne(()=>B(e))}function H(e){return O===null||(O.cleanups===null?O.cleanups=[e]:O.cleanups.push(e)),e}function oe(){return O}function se(e,t){let n=O,r=M;O=e,M=null;try{return Se(t,!0)}catch(e){Me(e)}finally{O=n,M=r}}function ce(e){if(k&&k.running)return e(),k.done;let t=M,n=O;return Promise.resolve().then(()=>{M=t,O=n;let r;return(A||he)&&(r=k||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),Se(e,!1),M=O=null,r?r.done:void 0})}var[le,ue]=I(!1);function de(e){P.push.apply(P,e),e.length=0}function fe(e,t){let n=Symbol(`context`);return{id:n,Provider:Pe(n),defaultValue:e}}function pe(e){let t;return O&&O.context&&(t=O.context[e.id])!==void 0?t:e.defaultValue}function me(e){let t=z(e),n=z(()=>Ne(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var he;function ge(){return he||=fe()}function _e(){let e=k&&k.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===T)ye(this);else{let e=N;N=null,Se(()=>Ee(this),!1),N=e}if(M){let e=this.observers?this.observers.length:0;M.sources?(M.sources.push(this),M.sourceSlots.push(e)):(M.sources=[this],M.sourceSlots=[e]),this.observers?(this.observers.push(M),this.observerSlots.push(M.sources.length-1)):(this.observers=[M],this.observerSlots=[M.sources.length-1])}return e&&k.sources.has(this)?this.tValue:this.value}function ve(e,t,n){let r=k&&k.running&&k.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(k){let r=k.running;(r||!n&&k.sources.has(e))&&(k.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Se(()=>{for(let t=0;t1e6)throw N=[],Error()},!1)}return t}function ye(e){if(!e.fn)return;Oe(e);let t=te;be(e,k&&k.running&&k.sources.has(e)?e.tValue:e.value,t),k&&!k.running&&k.sources.has(e)&&queueMicrotask(()=>{Se(()=>{k&&(k.running=!0),M=O=e,be(e,e.tValue,t),M=O=null},!1)})}function be(e,t,n){let r,i=O,a=M;M=O=e;try{r=e.fn(t)}catch(t){return e.pure&&(k&&k.running?(e.tState=T,e.tOwned&&e.tOwned.forEach(Oe),e.tOwned=void 0):(e.state=T,e.owned&&e.owned.forEach(Oe),e.owned=null)),e.updatedAt=n+1,Me(t)}finally{M=a,O=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ve(e,r,!0):k&&k.running&&e.pure?(k.sources.has(e)||(e.value=r),k.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function xe(e,t,n,r=T,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:O,context:O?O.context:null,pure:n};if(k&&k.running&&(a.state=0,a.tState=r),O===null||O!==ee&&(k&&k.running&&O.pure?O.tOwned?O.tOwned.push(a):O.tOwned=[a]:O.owned?O.owned.push(a):O.owned=[a]),j&&a.fn){let e=a.fn,[t,n]=I(void 0,{equals:!1}),r=j.factory(e,n);H(()=>r.dispose());let i,o=()=>ce(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),k&&k.running?(i||=j.factory(e,o),i.track(n)):r.track(n))}return a}function U(e){let t=k&&k.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===E)return Ee(e);if(e.suspense&&B(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(k.disposed.has(t))return}if((t?e.tState:e.state)===T)ye(e);else if((t?e.tState:e.state)===E){let t=N;N=null,Se(()=>Ee(e,n[0]),!1),N=t}}}function Se(e,t){if(N)return e();let n=!1;t||(N=[]),P?n=!0:P=[],te++;try{let t=e();return W(n),t}catch(e){n||(P=null),N=null,Me(e)}}function W(e){if(N&&=(A&&k&&k.running?we(N):Ce(N),null),e)return;let t;if(k){if(!k.promises.size&&!k.queue.size){let e=k.sources,n=k.disposed;P.push.apply(P,k.effects),t=k.resolve;for(let e of P)`tState`in e&&(e.state=e.tState),delete e.tState;k=null,Se(()=>{for(let e of n)Oe(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;ew(n),!1),t&&t()}function Ce(e){for(let t=0;t{r.delete(n),Se(()=>{k.running=!0,U(n)},!1),k&&(k.running=!1)}))}}function Te(e){let t,n=0;for(t=0;t=0;t--)Oe(e.tOwned[t]);delete e.tOwned}if(k&&k.running&&e.pure)ke(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Oe(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}k&&k.running?e.tState=0:e.state=0}function ke(e,t){if(t||(e.tState=0,k.disposed.add(e)),e.owned)for(let t=0;tn=B(()=>(O.context={...O.context,[e]:t.value},me(()=>t.children))),void 0),n}}var Fe=Symbol(`fallback`);function Ie(e){for(let t=0;t1?[]:null;return H(()=>Ie(a)),()=>{let c=e()||[],l=c.length,u,d;return c[x],B(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Ie(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Fe],i[0]=F(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d=g&&v>=g&&r[_]===c[v];_--,v--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;dIe(a)),()=>{let l=e()||[],u=l.length;return l[x],B(()=>{if(u===0)return s!==0&&(Ie(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[Fe],i[0]=F(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===Fe&&(a[0](),a=[],r=[],i=[],s=0),c=0;cl[c]):c>=r.length&&(i[c]=F(d));for(;ce(t||{}));return v(n),r}return B(()=>e(t||{}))}function Be(e){let t,n,r=r=>{let i=g.context;if(i){let[r,a]=I();g.count||=0,g.count++,(n||=e()).then(e=>{!g.done&&v(i),g.count--,a(()=>e.default),v()}),t=r}else if(!t){let[r]=ie(()=>(n||=e()).then(e=>e.default));t=r}let a;return z(()=>(a=t())?B(()=>{if(!i||g.done)return a(r);let e=g.context;v(i);let t=a(r);return v(e),t}):``)};return r.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),r}var Ve=e=>`Stale read from <${e}>.`;function He(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return z(Le(()=>e.each,e.children,t||void 0))}function Ue(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return z(Re(()=>e.each,e.children,t||void 0))}function K(e){let t=e.keyed,n=z(()=>e.when,void 0,void 0),r=t?n:z(n,void 0,{equals:(e,t)=>!e==!t});return z(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?B(()=>a(t?i:()=>{if(!B(r))throw Ve(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function We(e){let t=me(()=>e.children),n=z(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;ea()?void 0:i.when,void 0,void 0),s=i.keyed?o:z(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return z(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?B(()=>o(a.keyed?i():()=>{if(B(n)()?.[0]!==r)throw Ve(`Match`);return i()})):o},void 0,void 0)}function Ge(e){return e}var Ke=fe();function qe(e){let t=0,n,r,i,a,o,[s,c]=I(!1),l=ge(),u={increment:()=>{++t===1&&c(!0)},decrement:()=>{--t===0&&c(!1)},inFallback:s,effects:[],resolved:!1},d=oe();if(g.context&&g.load){let e=g.getContextId(),t=g.load(e);if(t&&(typeof t!=`object`||t.s!==1?i=t:g.gather(e)),i&&i!==`$$f`){let[t,n]=I(void 0,{equals:!1});a=t,i.then(()=>{if(g.done)return n();g.gather(e),v(r),n(),v()},e=>{o=e,n()})}}let f=pe(Ke);f&&(n=f.register(u.inFallback));let p;return H(()=>p&&p()),G(l.Provider,{value:u,get children(){return z(()=>{if(o)throw o;if(r=g.context,a){a(),a=void 0;return}r&&i===`$$f`&&v();let t=z(()=>e.children);return z(a=>{let o=u.inFallback(),{showContent:s=!0,showFallback:c=!0}=n?n():{};if((!o||i&&i!==`$$f`)&&s)return u.resolved=!0,p&&p(),p=r=i=void 0,de(u.effects),t();if(c)return p?a:F(t=>(p=t,r&&=(v({id:r.id+`F`,count:0}),void 0),e.fallback),d)})})}})}var q=e=>z(()=>e());function Je(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;or-s){let i=t[o];for(;s{i=r,t===document?e():Z(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function J(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>B(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ze(e,t=window.document){let n=t[Ye]||(t[Ye]=new Set);for(let r=0,i=e.length;rr.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function $e(e,t,n){if(!t)return n?Y(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function et(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function tt(e,t,n){return B(()=>e(t,n))}function Z(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return it(e,t,r,n);R(r=>it(e,t(),r,n),r)}function nt(e){return!!g.context&&!g.done&&(!e||e.isConnected)}function rt(e){if(g.registry&&g.events&&g.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),g.registry&&!g.done&&(g.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e{let i=t();for(;typeof i==`function`;)i=i();n=it(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(at(o,t,n,i))return R(()=>n=it(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=st(e,n,r),s)return n}else c?n.length===0?ot(e,o,r):Je(e,n,o):(n&&st(e),ot(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=st(e,n,r,t);st(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function at(e,t,n,r){let i=!1;for(let a=0,o=t.length;a=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var ct=n(`App`,{web:()=>i(()=>import(`./web-CUemelmU.js`).then(e=>new e.AppWeb),__vite__mapDeps([0,1,2]))}),lt;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(lt||={});var ut;(function(e){e.Body=`body`,e.Ionic=`ionic`,e.Native=`native`,e.None=`none`})(ut||={});var dt=n(`Keyboard`),ft;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(ft||={});var pt;(function(e){e.None=`NONE`,e.Slide=`SLIDE`,e.Fade=`FADE`})(pt||={});var mt=n(`StatusBar`),ht=5e3;function gt(e){return e&&(e===`STORAGE_QUOTA_EXCEEDED`?`Peach has run out of browser storage. Delete some entries or clear browser storage to continue.`:e)}async function _t(e){return new Promise(t=>{let n=!1,r=window.setTimeout(()=>{n||(n=!0,t({ok:!1,error:`SERVICE_WORKER_UNAVAILABLE`}))},ht);try{chrome.runtime.sendMessage(e,e=>{if(!n){if(n=!0,window.clearTimeout(r),chrome.runtime.lastError){t({ok:!1,error:chrome.runtime.lastError.message??`SERVICE_WORKER_UNAVAILABLE`});return}if(e===void 0){t({ok:!1,error:`SERVICE_WORKER_UNAVAILABLE`});return}e.ok===!1&&(e.error=gt(e.error)),t(e)}})}catch(e){if(n)return;n=!0,window.clearTimeout(r),t({ok:!1,error:e instanceof Error?e.message:`SERVICE_WORKER_UNAVAILABLE`})}})}async function Q(e){if(!r.isNativePlatform())return _t(e);let{handleMessage:t}=await i(async()=>{let{handleMessage:e}=await import(`./messages-pULannET.js`);return{handleMessage:e}},__vite__mapDeps([3,4,1,2,5,6,7,8,9,10,11,12])),n=await t(e,{});return n.ok===!1&&(n.error=gt(n.error)),n}var vt=n(`InMemoryVault`);function yt(e){return e.filter(e=>e.type===`login`&&!e.deletedAt&&e.password).map(e=>({id:e.id,type:e.type,title:e.title,username:e.username??``,password:e.password??``,url:e.url??``}))}async function bt(e){r.isNativePlatform()&&await vt.setEntries({entries:JSON.stringify(yt(e))})}async function xt(){r.isNativePlatform()&&await vt.clearEntries()}var St=n(`Fold`);async function Ct(e){if(!r.isNativePlatform()||r.getPlatform()!==`android`)return()=>{};let t=`flat`;try{t=(await St.startMonitoring()).posture}catch{return()=>{}}e({posture:t,hingeTop:0,hingeBottom:0,hingeLeft:0,hingeRight:0,hingeHeight:0});let n=await St.addListener(`postureChanged`,e);return()=>{n.remove(),St.stopMonitoring().catch(()=>{})}}function wt(e){return e.passkey!==void 0&&e.passkey.credentialId.length>0}function Tt(e){return wt(e)&&!e.password}var Et=[{name:`peach`,hex:`#F49C70`},{name:`rose`,hex:`#FF8AA6`},{name:`plum`,hex:`#D597F2`},{name:`lavender`,hex:`#A6A8FF`},{name:`sky`,hex:`#5BC8EE`},{name:`mint`,hex:`#5EE0B0`},{name:`sage`,hex:`#B5D870`},{name:`butter`,hex:`#FFD45A`},{name:`sand`,hex:`#EDBC85`},{name:`clay`,hex:`#F08660`},{name:`slate`,hex:`#80BEDE`},{name:`stone`,hex:`#C8B8A8`}],Dt=J(`

If you forget it, your vault cannot be opened. There is no reset.