@buoy-gg/shared-ui 7.0.56 → 7.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/lib/commonjs/JsModal.web.js +1 -1
- package/lib/commonjs/env/EnvironmentSelectorInline.web.js +1 -1
- package/lib/commonjs/storage/capacitorAppStorage.js +1 -0
- package/lib/commonjs/storage/devToolsStorageKeys.js +1 -1
- package/lib/commonjs/storage/index.js +1 -1
- package/lib/commonjs/ui/components/ModalHeader.js +1 -1
- package/lib/commonjs/ui/components/SearchBar.js +1 -1
- package/lib/commonjs/ui/components/WindowControls.js +1 -1
- package/lib/commonjs/ui/components/index.js +1 -1
- package/lib/commonjs/ui/components/windowControlsSetting.js +1 -0
- package/lib/commonjs/ui/floating/FloatingTool.web.js +1 -1
- package/lib/commonjs/utils/asyncStorageNative.js +1 -0
- package/lib/commonjs/utils/browserNavigation.js +1 -1
- package/lib/commonjs/utils/persistentStorage.js +1 -1
- package/lib/commonjs/utils/realAppState.js +1 -1
- package/lib/module/JsModal.web.js +1 -1
- package/lib/module/env/EnvironmentSelectorInline.web.js +1 -1
- package/lib/module/storage/capacitorAppStorage.js +1 -0
- package/lib/module/storage/devToolsStorageKeys.js +1 -1
- package/lib/module/storage/index.js +1 -1
- package/lib/module/ui/components/ModalHeader.js +1 -1
- package/lib/module/ui/components/SearchBar.js +1 -1
- package/lib/module/ui/components/WindowControls.js +1 -1
- package/lib/module/ui/components/index.js +1 -1
- package/lib/module/ui/components/windowControlsSetting.js +1 -0
- package/lib/module/ui/floating/FloatingTool.web.js +1 -1
- package/lib/module/utils/asyncStorageNative.js +1 -0
- package/lib/module/utils/browserNavigation.js +1 -1
- package/lib/module/utils/persistentStorage.js +1 -1
- package/lib/module/utils/realAppState.js +1 -1
- package/lib/typescript/commonjs/JsModal.web.d.ts +2 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/storage/capacitorAppStorage.d.ts +15 -0
- package/lib/typescript/commonjs/storage/index.d.ts +2 -0
- package/lib/typescript/commonjs/ui/components/WindowControls.d.ts +1 -6
- package/lib/typescript/commonjs/ui/components/index.d.ts +1 -0
- package/lib/typescript/commonjs/ui/components/windowControlsSetting.d.ts +14 -0
- package/lib/typescript/commonjs/utils/asyncStorageNative.d.ts +2 -0
- package/lib/typescript/module/JsModal.web.d.ts +2 -1
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/storage/capacitorAppStorage.d.ts +15 -0
- package/lib/typescript/module/storage/index.d.ts +2 -0
- package/lib/typescript/module/ui/components/WindowControls.d.ts +1 -6
- package/lib/typescript/module/ui/components/index.d.ts +1 -0
- package/lib/typescript/module/ui/components/windowControlsSetting.d.ts +14 -0
- package/lib/typescript/module/utils/asyncStorageNative.d.ts +2 -0
- package/lib/web/asyncStorage.mjs +1 -1
- package/lib/web/chunks/chunk-4IM4VIMP.mjs +1 -0
- package/lib/web/chunks/chunk-ASHW3TI7.mjs +1 -0
- package/lib/web/chunks/{chunk-T7RZZG4A.mjs → chunk-E2MI3FII.mjs} +1 -1
- package/lib/web/chunks/{chunk-DEEKIG2L.mjs → chunk-FP44YK4E.mjs} +1 -1
- package/lib/web/chunks/chunk-L63X3LPR.mjs +1 -0
- package/lib/web/chunks/{chunk-T3WLUEET.mjs → chunk-NVD5LLXD.mjs} +1 -1
- package/lib/web/chunks/chunk-PXAINEZK.mjs +14 -0
- package/lib/web/chunks/chunk-QNLAFQET.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-3QA77BIL.mjs +1 -0
- package/lib/web/colors.mjs +1 -1
- package/lib/web/dataViewer.mjs +1 -1
- package/lib/web/floating.mjs +1 -1
- package/lib/web/history.mjs +1 -1
- package/lib/web/hooks.mjs +1 -1
- package/lib/web/index.mjs +3 -3
- package/lib/web/native.mjs +1 -1
- package/lib/web/ui.mjs +1 -1
- package/lib/web/utils.mjs +1 -1
- package/package.json +5 -5
- package/lib/web/chunks/chunk-3S2CBY6A.mjs +0 -14
- package/lib/web/chunks/chunk-46TKOKMV.mjs +0 -1
- package/lib/web/chunks/chunk-5NZOQR6Q.mjs +0 -1
- package/lib/web/chunks/chunk-T6KN54NS.mjs +0 -1
- package/lib/web/chunks/chunk-XYUAUO57.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-56ENKXFJ.mjs +0 -1
package/lib/web/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";import{a as Vr,b as Gr,c as Yr,d as Kr,e as Jr,f as qr,g as Xr,h as Qr,i as Zr}from"./chunks/chunk-JYM7MCKQ.mjs";import{a as es,b as ts,c as as,d as rs,e as ss,f as os,g as is,h as ns}from"./chunks/chunk-T7RZZG4A.mjs";import{$ as ls,A as cs,B as us,C as ds,D as hs,E as gs,F as fs,G as ps,J as ms,K as bs,L as ys,M as Ss,N as vs,O as Cs,P as ws,Q as Ts,R as xs,S as ks,Z as Is,_ as Es,a as Aa,b as As,c as Rs,d as ze,e as Os,f as _s,g as Ra,h as Ps,i as Ls,j as Ms,k as Ns,l as $s,m as Pt,n as Bs,o as Ds,p as zs,q as Fs,r as Hs,s as js,t as Ws,u as Us,v as Vs,w as Gs,x as Ys,y as Ks,z as Js}from"./chunks/chunk-T6KN54NS.mjs";import"./chunks/chunk-LZ7FZZ7R.mjs";import{a as qs,d as Xs,f as Lt}from"./chunks/chunk-53J2FMUD.mjs";import{$ as Qs,$a as Zs,$b as eo,A as Oa,Aa as to,Ab as ao,Ac as ro,B as so,Ba as oo,Bb as io,C as no,Ca as lo,Cb as co,D as uo,Da as ho,Db as go,E as fo,Ea as po,Eb as mo,F as _a,Fa as bo,Fb as yo,G as So,Ga as vo,Gb as Co,H as wo,Ha as To,Hb as xo,I as ko,Ia as Io,Ib as Eo,J as Ao,Ja as Ro,Jb as Oo,K as _o,Ka as Po,Kb as Lo,L as Mo,La as No,Lb as $o,M as Bo,Ma as Do,Mb as zo,N as Fo,Na as Ho,Nb as jo,O as Wo,Oa as Uo,Ob as Vo,P as Go,Pa as Yo,Pb as Ko,Q as Jo,Qa as qo,Qb as Xo,R as Qo,Ra as Zo,Rb as ei,S as ti,Sa as ai,Sb as ri,T as si,Ta as oi,Tb as ii,U as ni,Ua as li,Ub as ci,V as ui,Va as di,Vb as hi,W as gi,Wa as fi,Wb as pi,X as mi,Xa as bi,Xb as yi,Y as Si,Ya as vi,Yb as Ci,Z as wi,Za as Ti,Zb as xi,_ as ki,_a as Ii,_b as Ei,a as Ai,aa as Ri,ab as Oi,ac as _i,b as Pi,ba as Li,bb as Mi,bc as Ni,c as $i,ca as Bi,cb as Di,cc as zi,d as Fi,da as Hi,db as ji,dc as Wi,e as Ui,ea as Vi,eb as Gi,ec as Yi,f as Ki,fa as Ji,fb as qi,fc as Xi,g as Qi,ga as Zi,gb as en,gc as tn,h as an,ha as rn,hb as sn,hc as on,i as Pa,ia as nn,ib as ln,ic as cn,j as un,ja as dn,jb as hn,jc as gn,k as fn,ka as pn,kb as mn,kc as bn,l as yn,la as Sn,lb as vn,lc as Cn,m as wn,ma as Tn,mb as xn,mc as kn,n as In,na as En,nb as An,nc as Rn,o as On,oa as _n,ob as Pn,oc as Ln,p as Mn,pa as Nn,pb as $n,pc as Bn,q as Dn,qa as zn,qb as Fn,qc as Hn,r as jn,ra as Wn,rb as Un,rc as Vn,s as Gn,sa as Yn,sb as Kn,sc as Mt,t as Jn,ta as qn,tb as Xn,tc as Qn,u as Zn,ua as el,ub as tl,uc as al,v as rl,va as sl,vb as ol,vc as il,w as fe,wa as nl,wb as La,wc as ll,x as q,xa as cl,xb as ul,xc as Ma,y as Ae,ya as dl,yb as hl,yc as gl,z as Fe,za as fl,zb as pl,zc as ml}from"./chunks/chunk-3S2CBY6A.mjs";import{a as bl}from"./chunks/chunk-OPTY6SMO.mjs";import{a as yl,b as Sl,c as vl,d as Cl,e as wl,f as Tl,g as xl,h as kl,i as Il,j as El,k as Al,l as Rl,m as Ol,n as _l,o as Pl,p as Ll}from"./chunks/chunk-XYUAUO57.mjs";import{a as d,b as Na}from"./chunks/chunk-GF5C5DVX.mjs";import{a as Ml,b as Nl}from"./chunks/chunk-T3WLUEET.mjs";import{a as $l,b as Bl,c as Dl,d as zl,e as Fl,f as Hl,g as jl,h as Wl,i as Ul,j as Vl,k as Gl,l as Yl}from"./chunks/chunk-T2SPCEHP.mjs";import{$ as Kl,$a as Jl,$b as ql,$c as Xl,Aa as Ql,Ab as Zl,Ac as ec,B as tc,Ba as ac,Bb as rc,Bc as sc,C as oc,Ca as ic,Cb as nc,Cc as lc,D as cc,Da as uc,Db as dc,Dc as hc,Ea as gc,Eb as fc,Ec as pc,F as mc,Fa as bc,Fb as yc,Fc as Sc,Ga as vc,Gb as Cc,Gc as wc,Ha as Tc,Hb as xc,Hc as kc,I as Ic,Ib as Ec,Ic as Nt,Ja as Ac,Jb as Rc,Jc as Oc,K as _c,Ka as Pc,Kb as Lc,Kc as Mc,La as Nc,Lb as $c,Lc as Bc,Ma as Dc,Mb as zc,Mc as Fc,Na as Hc,Nb as jc,Nc as Wc,O as Uc,Oa as Vc,Ob as Gc,Oc as Yc,P as Kc,Pa as Jc,Pb as qc,Pc as Xc,Q as Qc,Qa as Zc,Qb as eu,Qc as tu,R as au,Ra as ru,Rb as su,Rc as ou,S as iu,Sa as nu,Sb as lu,Sc as cu,T as uu,Ta as du,Tb as hu,Tc as gu,U as fu,Ua as pu,Ub as mu,Uc as bu,V as yu,Va as Su,Vb as vu,Vc as Cu,W as wu,Wa as Tu,Wb as $a,Wc as xu,X as ku,Xa as Iu,Xb as Eu,Xc as Au,Y as Ru,Ya as Ou,Yb as _u,Yc as Pu,Z as Lu,Za as Mu,Zb as Nu,Zc as $u,_ as Bu,_a as Du,_b as zu,_c as Fu,a as Hu,aa as ju,ab as Wu,ac as Uu,ad as Vu,b as Gu,ba as Yu,bb as Ku,bc as Ba,bd as Ju,c as qu,ca as Xu,cb as Qu,cc as Zu,cd as ed,d as td,da as ad,db as rd,dc as sd,dd as od,e as id,ea as nd,eb as ld,ec as cd,ed as ud,f as dd,fa as hd,fb as gd,fc as Da,fd,g as pd,ga as md,gb as bd,gc as yd,gd as Sd,h as vd,ha as Cd,hb as wd,hc as Td,hd as xd,i as kd,ia as Id,ib as Ed,ic as Ad,id as Rd,j as Od,ja as _d,jb as Pd,jc as Ld,jd as Md,k as Nd,ka as $d,kb as Bd,kc as Dd,kd as zd,l as Fd,la as Hd,lb as jd,lc as Wd,ld as Ud,m as Vd,ma as Gd,mb as Yd,mc as Kd,md as Jd,n as qd,na as Xd,nb as Qd,nc as Zd,nd as eh,o as th,oa as ah,ob as rh,oc as sh,od as oh,p as ih,pa as nh,pb as lh,pc as ch,pd as uh,q as dh,qa as hh,qb as gh,qc as fh,qd as ph,r as mh,ra as bh,rb as yh,rc as Sh,rd as vh,s as Ch,sa as wh,sb as Th,sc as xh,sd as kh,t as Ih,ta as Eh,tb as Ah,tc as Rh,td as Oh,u as _h,ua as Ph,ub as Lh,uc as Mh,ud as Nh,va as $h,vb as Bh,vc as Dh,wa as zh,wb as Fh,wc as Hh,xa as jh,xb as Wh,xc as Uh,ya as Vh,yb as Gh,yc as Yh,za as Kh,zb as Jh,zc as qh}from"./chunks/chunk-7YVWZ4ZK.mjs";import{a as ot,d as w,e as Xh,f as Y,g as Qh}from"./chunks/chunk-CE5U3CSQ.mjs";import{a as Zh,b as eg,c as tg,d as ag,e as rg}from"./chunks/chunk-46TKOKMV.mjs";import{a as xe,b as sg,c as og,d as F,e as ig,f as ng}from"./chunks/chunk-DEEKIG2L.mjs";import{H as lg,J as He,a as x,b as B,d as it,g as cg,h as ug,j as dg,r as $t}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";var hg=class extends Aa{constructor(e){super();this.events=[];this.arrayListeners=new Set;this.captureSuppressed=false;this.clearListeners=new Set;this.maxEvents=e.maxEvents??500,this.storeName=e.storeName,Promise.resolve().then(()=>{let t=()=>{fe().status==="locked"?(this.stopCapturing(),this.events=[],this.notifyArrayListeners()):this.getTotalSubscriberCount()>0&&!this.captureSuppressed&&!this.isCapturing()&&this.startCapturing()};Fe(t),t()})}onSubscribe(){this.getTotalSubscriberCount()===1&&!this.captureSuppressed&&fe().status!=="locked"&&this.startCapturing(),ze(this.storeName)}onUnsubscribe(){this.getTotalSubscriberCount()===0&&this.stopCapturing(),ze(this.storeName)}getTotalSubscriberCount(){return this.listeners.size+this.arrayListeners.size}subscribeToEvents(e){let t=this.getTotalSubscriberCount()===0;return this.arrayListeners.add(e),t&&!this.captureSuppressed&&fe().status!=="locked"&&this.startCapturing(),ze(this.storeName),e(this.getEvents()),()=>{this.arrayListeners.delete(e),this.getTotalSubscriberCount()===0&&this.stopCapturing(),ze(this.storeName)}}onEvent(e){return this.subscribe(e)}addEvent(e){fe().status!=="locked"&&(this.events=[e,...this.events].slice(0,this.maxEvents),q()&&this.notify(e),this.notifyArrayListeners())}notifyArrayListeners(){let e=this.getEvents();this.arrayListeners.forEach(t=>{try{t(e)}catch{}})}getEvents(){return q()?this.events:[]}getEventCount(){return q()?this.events.length:0}clearEvents(){this.events=[],this.notifyArrayListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true,this.isCapturing()&&this.stopCapturing()}replaceEvents(e){this.events=this.dedupeById(e).slice(0,this.maxEvents),this.notifyArrayListeners()}dedupeById(e){let t=new Set,a=[];for(let r of e){let s=r?.id;if(s==null){a.push(r);continue}t.has(s)||(t.add(s),a.push(r))}return a}setMaxEvents(e){this.maxEvents=e,this.events.length>e&&(this.events=this.events.slice(0,e),this.notifyArrayListeners())}getSubscriberCounts(){return{eventCallbacks:this.listeners.size,arrayListeners:this.arrayListeners.size,total:this.getTotalSubscriberCount()}}};import{useEffect as gg,useMemo as fg,useState as pg}from"react";var mg=[{value:"buoy.gg/api/license",mode:"contains"},{value:"api.keygen.sh",mode:"contains"}];function za(e,t){let a=e.toLowerCase(),r=t.value.toLowerCase();if(t.mode==="contains")return a.includes(r);try{let s=new URL(e);return r.startsWith("/")?s.pathname.toLowerCase()===r:r.startsWith("http://")||r.startsWith("https://")?`${s.origin}${s.pathname}`.toLowerCase()===r:s.host.toLowerCase()===r}catch{return a===r}}function bg(e,t){return!e||t.length===0?false:t.some(a=>za(e,a))}var Fa=mg;function Ha(e){if(!Array.isArray(e))return[];let t=[];for(let a of e)if(typeof a=="string"&&a.trim())t.push({value:a,mode:"contains"});else if(a&&typeof a=="object"&&typeof a.value=="string"){let r=a;t.push({value:r.value,mode:r.mode==="exact"?"exact":"contains"})}return t}function ja(e){let t=[...e];for(let a of Fa)t.some(r=>r.value===a.value)||t.push({...a});return t}var yg=class{constructor(){this.patterns=ja(Fa.map(e=>({...e})));this.teamPatterns=[];this.merged=this.patterns;this.listeners=new Set;this.loaded=false;this.loadPromise=null;this.dirty=false}getPatterns(){return this.merged}isTeamOnly(e){return!this.patterns.some(t=>t.value===e)&&this.teamPatterns.some(t=>t.value===e)}setTeamPatterns(e){this.teamPatterns=Ha(e),this.remerge(),this.emit()}reload(){return this.loaded=false,this.loadPromise=null,this.dirty=false,this.ensureLoaded()}remerge(){let e=this.teamPatterns.filter(t=>!this.patterns.some(a=>a.value===t.value));this.merged=e.length>0?[...this.patterns,...e]:this.patterns}subscribe(e){return this.listeners.add(e),this.ensureLoaded(),()=>{this.listeners.delete(e)}}emit(){this.listeners.forEach(e=>e())}ensureLoaded(){return this.loaded?Promise.resolve():this.loadPromise?this.loadPromise:(this.loadPromise=(async()=>{try{let e=await F.getItem(xe.network.ignoredDomains());if(e&&!this.dirty){let t=ja(Ha(JSON.parse(e)));this.patterns=t,this.remerge()}}catch{}finally{this.loaded=true,this.emit()}})(),this.loadPromise)}persist(){F.setItem(xe.network.ignoredDomains(),JSON.stringify(this.patterns)).catch(()=>{})}commit(e){this.dirty=true,this.patterns=e,this.remerge(),this.emit(),this.persist()}add(e){let t=e.value.trim();t&&(this.patterns.some(a=>a.value===t)||this.commit([...this.patterns,{value:t,mode:e.mode}]))}remove(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.filter(t=>t.value!==e))}toggle(e){let t=e.trim();t&&this.commit(this.patterns.some(a=>a.value===t)?this.patterns.filter(a=>a.value!==t):[...this.patterns,{value:t,mode:"contains"}])}toggleMode(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.map(t=>t.value===e?{...t,mode:t.mode==="contains"?"exact":"contains"}:t))}},Z=new yg,Sg=e=>Z.add(e),vg=e=>Z.remove(e),Cg=e=>Z.toggle(e),wg=e=>Z.toggleMode(e),Tg=e=>Z.isTeamOnly(e);function xg(){let[e,t]=pg(()=>Z.getPatterns());gg(()=>Z.subscribe(()=>{t(Z.getPatterns())}),[]);let a=fg(()=>new Set(e.map(r=>r.value)),[e]);return{patterns:e,values:a,add:Sg,remove:vg,toggle:Cg,toggleMode:wg,isTeamOnly:Tg}}import{useSyncExternalStore as kg}from"react";var nt={},Bt=new Map,Dt=new Set,je=[];function Ig(e){if(!e)return je;try{let t=JSON.parse(e);if(!Array.isArray(t))return je;let a=t.map(r=>typeof r=="string"?r:r&&typeof r.value=="string"?r.value:"").map(r=>r.trim()).filter(Boolean);return a.length?[...new Set(a)]:je}catch{return je}}var lt={set(e){Object.keys({...nt,...e}).some(t=>nt[t]!==e[t])&&(nt=e,Bt.clear(),Dt.forEach(t=>t()))},getList(e){let t=Bt.get(e);return t||(t=Ig(nt[e]),Bt.set(e,t)),t},subscribe(e){return Dt.add(e),()=>Dt.delete(e)}};function Eg(e){return kg(lt.subscribe,()=>lt.getList(e),()=>je)}function Ag(e){typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):setTimeout(e,0)}function Rg(e){let t=e.id,a=e.order??"append",r=e.coalesce??"sync",s=e.flushMinIntervalMs??150,o=e.max,n=[],i=false,l=e.firstId??1,c=0,p=false,y=[],h=false;function f(){h||(h=true,Fe(()=>{fe().status==="locked"&&(n=[]),ge()}))}let v=new Set,_=new Set;function J(){for(let S of v)try{S()}catch{}}function ge(){if(r==="sync"){J();return}p||(p=true,Ag(()=>{p=false,J()}))}function z(S){return S.length<=o?S:a==="append"?S.slice(S.length-o):S.slice(0,o)}return{id:t,subscribe(S){return f(),v.add(S),()=>{v.delete(S)}},getSnapshot(){return f(),q()?n:y},size(){return q()?n.length:0},add(S){f(),!(i||fe().status==="locked")&&(a==="append"?n=n.length>=o?[...n.slice(n.length-o+1),S]:[...n,S]:n=n.length>=o?[S,...n.slice(0,o-1)]:[S,...n],ge())},set(S){f(),q()&&(n=z(S),ge())},update(S){f(),fe().status!=="locked"&&(n=z(S(n)),ge())},clear(){for(let S of _)try{S()}catch{}n.length!==0&&(n=[],ge())},onClear(S){return _.add(S),()=>{_.delete(S)}},notify(){ge()},flushSync(S=false){let se=Date.now();if(!(!S&&se-c<s)){c=se;try{let L=globalThis.__buoyFlushToolSync;if(!L)return;for(let Xe of L)Xe(t)}catch{}}},setPaused(S){i=S},isPaused(){return i},setMax(S){o=S;let se=z(n);se!==n&&(n=se,ge())},getMax(){return o},allocId(){return l++},bumpIdAbove(S){S+1>l&&(l=S+1)},listenerCount(){return v.size}}}var Og=class{constructor(e={}){this.items=[];this.itemListeners=new Set;this.clearListeners=new Set;this.idCounter=0;this.enabled=true;this.captureSuppressed=false;this.max=e.max??200}canRecord(){return this.enabled&&!this.captureSuppressed}nextId(){return`${Date.now()}-${++this.idCounter}`}push(e){this.items=[e,...this.items].slice(0,this.max)}record(e){this.push(e),this.notifyListeners()}setItems(e){this.items=e.slice(0,this.max),this.notifyListeners()}getAll(){return[...this.items]}getById(e){return this.items.find(t=>t.id===e)}get size(){return this.items.length}clear(){this.items=[],this.notifyListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true}isCaptureSuppressed(){return this.captureSuppressed}replaceAll(e){return this.enabled?(this.setItems(e),true):false}hydrateById(e,t){let a=this.items.findIndex(r=>r.id===e);a!==-1&&(this.items=[...this.items.slice(0,a),{...this.items[a],...t},...this.items.slice(a+1)],this.notifyListeners())}setEnabled(e){this.enabled=e}getEnabled(){return this.enabled}setMax(e){this.max=e,this.items.length>e&&(this.items=this.items.slice(0,e),this.notifyListeners())}getMax(){return this.max}subscribe(e){return this.itemListeners.add(e),()=>{this.itemListeners.delete(e)}}notifyListeners(){let e=this.getAll();this.itemListeners.forEach(t=>t(e))}get listenerCount(){return this.itemListeners.size}};var ke=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),_g=["id","lineId","key","uuid","_id","slug","name"];function zt(e){if(!e.length||!e.every(ke))return;let t=e[0];for(let a of _g){if(!(a in t))continue;let r=e.map(s=>s[a]);if(r.every(s=>typeof s=="string"||typeof s=="number")&&new Set(r.map(String)).size===r.length)return a}}function Pg(e,t,a,r){let s=r[t];return typeof s=="string"||typeof s=="number"?String(s)!==a?{ok:false,error:`The new item is addressed as \`${a}\` but carries \`${t}\`: ${JSON.stringify(s)}. Use the same value for both \u2014 address it by the id it carries.`}:{ok:true,value:s}:e.every(o=>typeof o[t]=="number")&&a.trim()!==""&&String(Number(a))===a?{ok:true,value:Number(a)}:{ok:true,value:a}}function Ft(e,t,a="",r=[]){if(Array.isArray(e)&&ke(t)){let s=zt(e);if(!s)return{patch:t,notes:r};let o=new Map(e.map(p=>[String(p[s]),p])),n=e.slice(),i=0,l=0,c=0;for(let[p,y]of Object.entries(t)){let h=n.findIndex(f=>String(f[s])===p);if(y===null){if(h===-1)return{patch:t,notes:r};n.splice(h,1),i++}else if(h===-1){if(!ke(y))return{patch:t,notes:r};let f=Pg(e,s,p,y);if(!f.ok)return{patch:t,notes:r,error:f.error};n.push({...y,[s]:f.value}),c++}else{let f=Ft(o.get(p),y,`${a}[${p}]`,r);if(f.error)return{patch:t,notes:r,error:f.error};let v=n[h];n[h]=ke(v)&&ke(f.patch)?{...v,...f.patch}:f.patch,l++}}return r.push(`${a||"(root)"}: addressed by \`${s}\` \u2014 ${l} changed, ${c} added, ${i} removed, ${n.length} item(s) remain`),{patch:n,notes:r}}if(ke(e)&&ke(t)){let s={};for(let[o,n]of Object.entries(t)){let i=a?`${a}.${o}`:o;if(!(o in e)){s[o]=n;continue}let l=Ft(e[o],n,i,r);if(l.error)return{patch:t,notes:r,error:l.error};s[o]=l.patch}return{patch:s,notes:r}}return{patch:t,notes:r}}var ct=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function We(e,t=0){if(e===null)return"null";if(Array.isArray(e)){if(!e.length)return"unknown[]";if(t>=3)return"\u2026[]";let r=We(e[0],t+1);return r.includes(" ")||r.endsWith("]")?`(${r})[]`:`${r}[]`}if(ct(e)){if(t>=3)return"{\u2026}";let r=Object.keys(e),s=r.slice(0,24),o=s.map(i=>`${i}: ${We(e[i],t+1)}`).join(", "),n=r.length>s.length?`, +${r.length-s.length} more`:"";return`{${o}${n}}`}let a=typeof e;return a==="undefined"?"undefined":a==="function"?"function":a}function Re(e,t="",a=[],r=0,s={visited:0}){if(r>3||a.length>=40||s.visited>=600)return a;if(Array.isArray(e)){let o=e[0];if(a.push({path:t||"(root)",length:e.length,...e.length?{item:We(o)}:{}}),e.length&&ct(o))for(let[n,i]of Object.entries(o)){if(++s.visited>=600)break;Re(i,t?`${t}[].${n}`:`[].${n}`,a,r+1,s)}return a}if(ct(e))for(let[o,n]of Object.entries(e)){if(++s.visited>=600)break;Re(n,t?`${t}.${o}`:o,a,r+1,s)}return a}function Lg(e){let t={visited:0};return Re(e,"",[],0,t).length>=40||t.visited>=600}function Mg(e){return Re(e).filter(t=>t.item===void 0).map(t=>t.path)}function Ng(e){if(e===void 0)return;let t=Re(e),a=We(e);if(!(!t.length&&!ct(e)&&!Array.isArray(e)))return t.length?{shape:a,lists:t}:{shape:a}}var re=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function $g(e,t,a=2e3){let r=[{node:e,path:""}],s=0;for(;r.length&&s<a;){let{node:o,path:n}=r.shift();if(s++,Array.isArray(o))o.slice(0,20).forEach((i,l)=>r.push({node:i,path:`${n}[${l}]`}));else if(re(o))for(let[i,l]of Object.entries(o)){let c=n?`${n}.${i}`:i;if(i===t)return c;(re(l)||Array.isArray(l))&&r.push({node:l,path:c})}}}function Wa(e,t,a,r,s){let o=$g(e,s??a),n=r.slice(0,12).join(", ")||"(no fields)";return o?`No field "${a}" at "${t}" \u2014 did you mean path "${o}"? "${t}" has: ${n}.`:`No field "${a}" at "${t}". It has: ${n}.`}function Ua(e,t){let a=e;for(let r of t.split(".")){if(!re(a))return;a=a[r]}return a}function Ht(e){if(!e.trim())return;let t=[],a=0;for(;a<e.length;){if(e[a]==="."){a++;continue}if(e[a]==="["){let o=e.indexOf("]",a);if(o===-1)return;let n=e.slice(a+1,o);if(/^\d+$/.test(n))t.push({kind:"index",index:Number(n)});else{let i=n.indexOf("=");if(i<=0)return;t.push({kind:"match",field:n.slice(0,i).trim(),value:n.slice(i+1).trim()})}a=o+1;continue}let r=a;for(;r<e.length&&e[r]!=="."&&e[r]!=="[";)r++;let s=e.slice(a,r);if(!s)return;t.push({kind:"key",key:s}),a=r}return t.length?t:void 0}function Bg(e,t){let a=Ht(t);if(!a)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};let r=e,s=[];for(let o of a){if(r==null)return{ok:false,error:`"${s.join(".")||"(root)"}" is ${r===null?"null":"not set"}, so there is nothing at "${t}".`};if(o.kind==="key"){if(!re(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not an object, so it has no field "${o.key}".`};if(!(o.key in r)){let n=a[a.length-1];return{ok:false,error:Wa(e,s.join(".")||"(root)",o.key,Object.keys(r),n?.kind==="key"?n.key:void 0)}}r=r[o.key],s.push(o.key)}else if(o.kind==="index"){if(!Array.isArray(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not a list, so [${o.index}] means nothing.`};r=r[o.index],s.push(`[${o.index}]`)}else{if(!Array.isArray(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not a list, so [${o.field}=${o.value}] means nothing.`};let n=r.find(i=>re(i)&&String(Ua(i,o.field))===o.value);if(n===void 0)return{ok:false,error:`No item with ${o.field}="${o.value}" in "${s.join(".")||"(root)"}".`};r=n,s.push(`[${o.field}=${o.value}]`)}}return{ok:true,value:r}}function Dg(e,t,a){let r=Ht(t);if(!r)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};if(r[0]?.kind!=="key")return{ok:false,error:`A path must start with a field name, not a list index \u2014 "${t}" does not say which list.`};let s=(n,i)=>{if(i>=r.length)return{ok:true,patch:a};let l=r[i];if(l.kind==="key"){if(re(n)&&!(l.key in n)&&i+1<r.length){let J=r[r.length-1];return{ok:false,error:Wa(e,Ue(r,i),l.key,Object.keys(n),J?.kind==="key"?J.key:void 0)}}let v=re(n)?n[l.key]:void 0,_=s(v,i+1);return _.ok?{ok:true,patch:{[l.key]:_.patch}}:_}if(!Array.isArray(n))return{ok:false,error:`"${Ue(r,i)}" is not a list, so "${t}" cannot be resolved. Read it first \u2014 \`shape\` on the read says what each field holds.`};let c=l.kind==="index"?l.index:n.findIndex(v=>re(v)&&String(Ua(v,l.field))===l.value),p=c>=0?n[c]:void 0;if(l.kind==="index"?c<0||c>=n.length:c<0)return{ok:false,error:l.kind==="index"?`"${Ue(r,i)}" has ${n.length} item(s), so there is nothing at [${l.index}].`:`No item with ${l.field}="${l.value}" in "${Ue(r,i)}".`};if(!re(p)){if(i<r.length-1)return{ok:false,error:`"${Ue(r,i)}[${l.kind==="index"?l.index:`${l.field}=${l.value}`}]" holds ${p===null?"null":typeof p}, not an object, so "${t}" cannot go any deeper. Set the item itself.`};let v=n.slice();return v[c]=a,{ok:true,patch:v}}let y=s(p,i+1);if(!y.ok)return y;let h=zt(n);if(h)return{ok:true,patch:{[String(p[h])]:y.patch}};let f=n.slice();return f[c]=re(y.patch)?{...p,...y.patch}:y.patch,{ok:true,patch:f}},o=s(e,0);return o.ok?{ok:true,patch:o.patch}:o}function Ue(e,t){return e.slice(0,t).map(a=>a.kind==="key"?a.key:a.kind==="index"?`[${a.index}]`:`[${a.field}=${a.value}]`).join(".").replace(/\.\[/g,"[")||"(root)"}var pe=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function Ve(e){return Array.isArray(e)?"array":e===null?"null":typeof e=="object"?"object":typeof e}var Va=["string","number","boolean"];function Ga(e,t,a=2e3){let r=[{node:e,path:""}],s=0;for(;r.length&&s<a;){let{node:o,path:n}=r.shift();if(s++,Array.isArray(o))o.slice(0,20).forEach((i,l)=>r.push({node:i,path:`${n}[${l}]`}));else if(pe(o))for(let[i,l]of Object.entries(o)){let c=n?`${n}.${i}`:i;if(i===t&&n)return c;(pe(l)||Array.isArray(l))&&r.push({node:l,path:c})}}}function jt(e,t,a={},r=e,s="",o=[]){let n=a.noun??"data",i=s||"(root)";if(Array.isArray(t)){if(!Array.isArray(e))return o.push({path:i,kind:"type-change",detail:`${Ve(e)} \u2192 array`}),o;let h=e.length?e[0]:void 0;return h!==void 0&&(pe(h)||Array.isArray(h))&&t.forEach((f,v)=>{let _=`${s}[${v}]`;if(pe(h)&&pe(f))for(let J of Object.keys(h))J in f||o.push({path:`${_}.${J}`,kind:"missing-key",detail:`list items need \`${J}\` \u2014 the items already in the list have it`});jt(h,f,a,r,_,o)}),o}if(pe(t)){if(!pe(e))return o.push({path:i,kind:"type-change",detail:`${Ve(e)} \u2192 object`}),o;for(let[h,f]of Object.entries(t)){let v=s?`${s}.${h}`:h;if(h in e)jt(e[h],f,a,r,v,o);else{let _=Ga(r,h);o.push({path:v,kind:"add-key",detail:_?`no such field here \u2014 did you mean \`${_}\`?`:`no field named \`${h}\` exists in this ${n}`,..._?{movedTo:_}:{}})}}return o}let l=Ve(e),c=Ve(t),p=l==="null"&&Va.includes(c),y=c==="null"&&Va.includes(l);return l!==c&&!p&&!y&&o.push({path:i,kind:"type-change",detail:`${l} \u2192 ${c}`}),o}function zg(e,t){if(!t.length||!t.every(r=>r.kind==="add-key"&&r.movedTo))return;let a={};for(let r of t){let s=Fg(e,r.path);if(s===void 0||r.movedTo.includes("["))return;let o=a,n=r.movedTo.split(".");n.slice(0,-1).forEach(i=>{o[i]??(o[i]={}),o=o[i]}),o[n[n.length-1]]=s}return a}function Fg(e,t){let a=e;for(let r of t.split(".")){if(!pe(a))return;a=a[r]}return a}function Hg(e,t,a){let r=e.slice(0,6).map(o=>`\`${o.path}\`: ${o.detail}`).join("; "),s=e.length>6?`; +${e.length-6} more`:"";return`Refused: this isn't a same-type edit of existing fields (the rule the React Query devtools enforces). ${r}${s}. You can only change the VALUE of a field that already exists, to the same type \u2014 you can't add fields, change a field's type, or null a list/object the screen renders. Clearing a scalar to null is fine. Send just the field(s) you're changing, nested to match the current shape of this ${t}. Use force:true only to deliberately break that.`+(a?` This is the same edit at the right depth \u2014 send it as the patch: ${JSON.stringify(a)}`:"")}function ut(e,t){let a=0,r=false,s=false,o=[e],n=new Set;for(;o.length>0;){if(a>t)return{bytes:a,sawRepeat:r,sawBigInt:s};let i=o.pop();if(i==null)a+=4;else if(typeof i=="string")a+=i.length+2;else if(typeof i=="number")a+=8;else if(typeof i=="boolean")a+=5;else if(typeof i=="object"){if(n.has(i)){r=true;continue}if(n.add(i),Array.isArray(i)){a+=2+i.length;for(let l=0;l<i.length;l++)o.push(i[l])}else{a+=2;for(let l in i)a+=l.length+4,o.push(i[l])}}else typeof i=="bigint"&&(s=true),a+=4}return{bytes:a,sawRepeat:r,sawBigInt:s}}function Wt(e,t){let a=ut(e,t);return a.bytes>t?true:!a.sawRepeat&&!a.sawBigInt?false:!Ra(e)}var Ya=16*1024,dt=8*1024*1024;function jg(e,t){return Object.freeze({[`__buoy${e}OnDevice`]:true,note:t})}function Wg(e,t){return typeof e=="object"&&e!==null&&e[`__buoy${t}OnDevice`]===true}function Ka(e=dt){return{__buoyTruncated:true,note:`Exceeds the ${e/1048576}MB detail limit \u2014 inspect it on-device.`}}function Ug(e,t,a=Ya){return e===void 0?e:Wt(e,a)?t:e}function Ja(e,t=dt){return Wt(e,t)?Ka(t):e}function Vg(e){let t=new WeakMap;return a=>{let r=t.get(a);if(r!==void 0)return r;let s=e(a);return t.set(a,s),s}}function Gg(e,t){let a=[],r=t.baseBytes??16;for(let s=e.length-1;s>=0;s--){let o=t.toWire(e[s]);if(r+o.bytes>t.budget&&a.length>0)break;a.push(o.value),r+=o.bytes}return a.reverse(),a}function Yg(e,t,a){let r=ut(e,t);if(r.bytes<=t)return{value:e,bytes:r.bytes};let s=a();return{value:s,bytes:ut(s,t).bytes}}function qa(e){return e??{}}function Kg(e,t,a=dt){let r=s=>Ja(s,a);return s=>{let{id:o}=qa(s);if(!o)return{found:false,reason:"missing id"};let n=e(o);return n?{found:true,id:o,...t(n,r)}:{found:false,reason:"unknown id"}}}function Xa(e){return e.length===1?e[0]:t=>{let a=e.map(r=>r(t));return()=>{for(let r of a)r()}}}function Jg(e){let t=Array.isArray(e.subscribe)?Xa(e.subscribe):e.subscribe;return{version:e.version,getSnapshot:e.getSnapshot,subscribe:t,...e.actions?{actions:e.actions}:{}}}var ht=new Set(["@react_buoy_settings_theme","@react_buoy_settings_preferences","@react_buoy_settings_global","@react_buoy_dev_tools_settings","@react_buoy_settings_tooltip_shown","@react_buoy_modal_hint_acknowledged","@react_buoy_clipboard_hint_acknowledged","@react_buoy_network_filters","@react_buoy_network_preferences","@react_buoy_network_copy_options","@react_buoy_storage_filters","@react_buoy_storage_event_filters","@react_buoy_storage_key_filters","@react_buoy_storage_pinned_keys","@react_buoy_storage_preferences","@react_buoy_storage_diff_viewer_mode","@react_buoy_rq_filters","@react_buoy_rq_preferences","@react_buoy_route_events_event_filters","@react_buoy_route_events_detail_view","@react_buoy_route_events_diff_viewer_mode","@react_buoy_sentry_filters","@react_buoy_sentry_preferences","@react_buoy_highlight_updates_filters","@react_buoy_highlight_updates_settings","@react_buoy_highlight_updates_copy_settings","@react_buoy_events_enabled_sources","@react_buoy_events_copy_settings","@react_buoy_time_machine_diff_viewer_mode","@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),Qa=new Set(["@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),Za="@react_buoy_settings_sync_meta",er="@react_buoy_network_ignored_domains",tr=2e3,me=3e4,Ut=15*6e4,qg=15e3,Vt=new Set;function Xg(e){return Vt.add(e),()=>Vt.delete(e)}function Qg(e){e.includes(er)&&Z.reload(),Vt.forEach(t=>{try{t(e)}catch{}})}function Zg(){return{storage:F,credential:uo,fetch:(e,t)=>fetch(e,t),subscribeWrites:og,setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e),onTeam:e=>{Z.setTeamPatterns(ef(e[er])),lt.set(e)},onApplied:Qg}}function ef(e){if(!e)return[];try{return JSON.parse(e)}catch{return[]}}var ar=class{constructor(e={}){this.started=false;this.pending=new Map;this.applying=new Set;this.pushTimer=null;this.pullTimer=null;this.unsubscribe=null;this.refusedToken=null;this.deps={...Zg(),...e}}start(){this.started||(this.started=true,this.unsubscribe=this.deps.subscribeWrites((e,t)=>this.onWrite(e,t)),this.pull())}stop(){this.started=false,this.unsubscribe?.(),this.unsubscribe=null,this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pushTimer=this.pullTimer=null}credential(){let e=this.deps.credential();return e&&e.token!==this.refusedToken?e:null}call(e,t,a){return new Promise((r,s)=>{let o=this.deps.setTimer(()=>s(new Error("timeout")),qg);this.deps.fetch(`${t.origin.replace(/\/$/,"")}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_token:t.token,...a})}).then(n=>{this.deps.clearTimer(o),r(n)},n=>{this.deps.clearTimer(o),s(n)})})}schedulePull(e){this.started&&(this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pullTimer=this.deps.setTimer(()=>{this.pullTimer=null,this.pull()},e))}async readMeta(){try{let e=await this.deps.storage.getItem(Za),t=e?JSON.parse(e):{};return t&&typeof t=="object"?t:{}}catch{return{}}}async writeMeta(e){await this.deps.storage.setItem(Za,JSON.stringify(e)).catch(()=>{})}async pull(){let e=this.credential();if(!e)return this.schedulePull(me);let t,a;try{let i=await this.call("/api/settings/pull",e,{});t=i.status,a=await i.json().catch(()=>null)}catch{return this.schedulePull(me)}if(t===401||t===403)return this.refusedToken=e.token,this.schedulePull(me);if(t===404)return this.schedulePull(Ut);if(t!==200||!a)return this.schedulePull(me);let r=a.personal??{},s=await this.readMeta(),o=[];for(let[i,l]of Object.entries(r))if(!(!ht.has(i)||this.pending.has(i))&&!(typeof l?.value!="string"||!(l.updatedAt>(s[i]??0)))){this.applying.add(i);try{await this.deps.storage.setItem(i,l.value)}finally{this.applying.delete(i)}s[i]=l.updatedAt,o.push(i)}for(let i of ht){if(i in r||i in s||this.pending.has(i))continue;let l=await this.deps.storage.getItem(i).catch(()=>null);l!==null&&this.pending.set(i,l)}await this.writeMeta(s),o.length>0&&this.deps.onApplied(o);let n={};for(let[i,l]of Object.entries(a.team??{}))Qa.has(i)&&typeof l?.value=="string"&&(n[i]=l.value);this.deps.onTeam(n),this.pending.size>0&&this.schedulePush(0),this.schedulePull(Ut)}onWrite(e,t){!this.started||this.applying.has(e)||!ht.has(e)||(this.pending.set(e,t),this.schedulePush(tr))}schedulePush(e){this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pushTimer=this.deps.setTimer(()=>{this.pushTimer=null,this.push()},e)}async push(){if(this.pending.size===0)return;let e=this.credential();if(!e)return this.schedulePush(me);let t=new Map(this.pending),a,r;try{let o=await this.call("/api/settings/push",e,{changes:Object.fromEntries(t)});a=o.status,r=await o.json().catch(()=>null)}catch{return this.schedulePush(me)}if(a===401||a===403)return this.refusedToken=e.token,this.schedulePush(me);if(a===404)return this.schedulePush(Ut);if(a!==200||!r||typeof r.updatedAt!="number")return this.schedulePush(me);let s=await this.readMeta();for(let[o,n]of t)this.pending.get(o)===n&&this.pending.delete(o),s[o]=r.updatedAt;await this.writeMeta(s),this.pending.size>0&&this.schedulePush(tr)}},Ge=null;function tf(e={}){Ge??(Ge=new ar(e)),Ge.start()}function af(){Ge&&Ge.pull()}function rf(e){return e}function sf(e,t,a){return r=>{let s=r??{},o=e.props===void 0&&!t?void 0:{...e.props??{},...t?t(s):{}};return{...e,id:s.id||e.id,name:s.name||e.name,description:s.description||e.description,...o!==void 0?{props:o}:{},...a?a(s,e):{}}}}var Gt="__buoyToolActionRegistry";function Yt(){let e=globalThis;return e[Gt]||(e[Gt]=new Set),e[Gt]}function of(e){let t=Yt();t.add(e);let a=false,r=()=>{if(a)return;a=true;let o=e(),n=async(i,l,c)=>{if(!(i==="network"&&l==="deleteOverrideRule"||i==="impersonate"&&l==="stopImpersonation"))throw new Error("Unsupported account-lock cleanup operation");if(i==="impersonate")return o[i]?.dispose?.(n);let p=o[i]?.actions?.[l];if(!p)throw new Error(`Cleanup unavailable for ${i}`);return p(c)};for(let i of Object.values(o))try{Promise.resolve(i.dispose?.(n)).catch(l=>console.warn("[Buoy] Tool cleanup failed",l))}catch(l){console.warn("[Buoy] Tool cleanup failed",l)}},s=Fe(()=>{q()?a=false:r()});return()=>{s(),t.delete(e),Promise.resolve().then(()=>{t.size===0&&r()})}}function Oe(){if(!q())return{};let e={};for(let t of Yt())try{Object.assign(e,t())}catch{}return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,rr(a)]))}function nf(){return Object.keys(Oe())}function lf(){let e={};for(let[t,a]of Object.entries(Oe()))e[t]=Object.keys(a.actions??{});return e}function cf(){return Object.entries(Oe()).filter(([,e])=>typeof e.getSnapshot=="function").map(([e])=>e)}async function uf(e){Ae();let t=Oe()[e];if(!t)throw new Error(`Unknown tool "${e}"`);if(typeof t.getSnapshot!="function")throw new Error(`Tool "${e}" has no snapshot to read`);return await t.getSnapshot()}function Kt(){return q()&&Yt().size>0}async function df(e,t,a){Ae();let r=Oe()[e],s=r?.actions?.[t];if(!s)throw new Error(r?`Unknown action "${t}" on tool "${e}"`:`Unknown tool "${e}"`);return await s(a)}async function hf(e=2e3){if(Kt())return true;let t=Pt()+e;for(;Pt()<t;)if(await new Promise(a=>setTimeout(a,50)),Kt())return true;return false}function rr(e){let t=a=>(...r)=>{Ae();let s=false,o=Fe(()=>{q()||(s=true)}),n=()=>{if(s)throw new Error("Buoy account access ended while the operation was pending.");Ae()};try{let i=a.apply(e,r);return i&&typeof i.then=="function"?Promise.resolve(i).then(l=>(n(),l)).finally(o):(n(),o(),i)}catch(i){throw o(),i}};return{...e,...e.getSnapshot?{getSnapshot:t(e.getSnapshot)}:{},...e.actions?{actions:Object.fromEntries(Object.entries(e.actions).map(([a,r])=>[a,t(r)]))}:{},...e.subscribe?{subscribe:a=>(Ae(),e.subscribe(()=>{q()&&a()}))}:{}}}var Jt="__buoyToolUiBridge";function qt(){let e=globalThis;return e[Jt]||(e[Jt]=new Set),e[Jt]}function gf(e){let t=qt();return t.add(e),()=>{t.delete(e)}}function ff(e){for(let t of qt())try{if(t(e))return true}catch{}return false}function pf(){return qt().size>0}var Xt="__buoyToolAttention";function Qt(){let e=globalThis;return e[Xt]||(e[Xt]={byTool:new Map,listeners:new Set}),e[Xt]}function mf(e,t){let a=Qt(),r=a.byTool.get(e)??null;if(!(r===t||r&&t&&r.kind===t.kind&&r.label===t.label)){t?a.byTool.set(e,t):a.byTool.delete(e);for(let s of a.listeners)try{s()}catch{}}}function bf(e){return Qt().byTool.get(e)??null}function yf(e){let t=Qt();return t.listeners.add(e),()=>{t.listeners.delete(e)}}import{createContext as Sf,useContext as vf,useEffect as Cf}from"react";var sr=Sf(null);function wf(e,t){let a=vf(sr);return Cf(()=>{if(a)return a(e),()=>a(null)},[a,...t]),a!==null}var or=256*1024;function Tf(e){let t=new Set(e?.excludeKeys??[]),a=e?.includeKeys?new Set(e.includeKeys):null,r=0,s=o=>!t.has(o)&&(!a||a.has(o));return{touch:s,allows(o){return s(o)?true:(r+=1,false)},countExcluded(o){r+=o},get excludedHits(){return r},excludedWarning(o){return r>0?`${r} ${o} excluded by you`:null}}}function xf(){return{ok:true,applied:0,skipped:[],warnings:[]}}function kf(e){return{ok:false,applied:0,skipped:[],warnings:[e]}}function If(e,t){return{ok:false,applied:0,skipped:[{id:e,reason:t}],warnings:[]}}function Ef(e,t={}){let{key:a,label:r,oldValue:s,newValue:o,inOld:n,inNew:i}=e;if(!i)return{key:a,label:r,verdict:"removed",oldValue:s};if(!n)return{key:a,label:r,verdict:"added",newValue:o};if((t.equal??qs)(s,o))return{key:a,label:r,verdict:"unchanged"};let l=t.tooLarge??(c=>Xs(c,or));return l(s)||l(o)?{key:a,label:r,verdict:"too-large",reason:t.tooLargeReason??"value too large to render a diff \u2014 restore still applies it"}:{key:a,label:r,verdict:"changed",oldValue:s,newValue:o}}function Af(e,t){return e.verdict==="unchanged"?e:{...e,verdict:"wont-apply",reason:t}}function Rf(e,t){let a=r=>r===void 0?[]:r instanceof Map?Array.from(r.keys()):Object.keys(r);return new Set([...a(e),...a(t)])}function Of(e,t={}){let a=e.toLowerCase();if(t[a])return t[a];for(let[f,v]of Object.entries(t))if(a.includes(f))return v;let r=e.split("").reduce((f,v)=>f+v.charCodeAt(0),0)*137%360,s=.7,o=.6,n=(1-Math.abs(2*o-1))*s,i=n*(1-Math.abs(r/60%2-1)),l=o-n/2,c=0,p=0,y=0;r<60?(c=n,p=i):r<120?(c=i,p=n):r<180?(p=n,y=i):r<240?(p=i,y=n):r<300?(c=i,y=n):(c=n,y=i);let h=f=>Math.round((f+l)*255).toString(16).padStart(2,"0");return`#${h(c)}${h(p)}${h(y)}`}function _f(e,t={}){let a=t.maxLength??40;if(e===void 0)return t.undefinedLabel??"undefined";if(e===null)return"null";try{if(typeof e=="function")return t.functionLabel??"(fn)";if(typeof e=="string")return e.length>a?`"${e.slice(0,a-3)}..."`:`"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";let r=JSON.stringify(e);return r.length>a?`[${e.length} items]`:r}if(typeof e=="object"){let r=Object.keys(e);if(r.length===0)return"{}";let s=JSON.stringify(e);return s.length<=a?s:`{ ${r.length} keys }`}return String(e).slice(0,a)}catch{return"[complex]"}}function Pf(e,t){if(e===t)return{summary:"no change",changedKeys:[],changedCount:0};if(typeof e!="object"||typeof t!="object"||e===null||t===null)return{summary:"changed",changedKeys:[],changedCount:0};let a=e,r=t,s=Object.keys(a),o=Object.keys(r),n=o.filter(h=>!s.includes(h)),i=s.filter(h=>!o.includes(h)),l=[];for(let h of s)o.includes(h)&&a[h]!==r[h]&&l.push(h);let c=[...n,...i,...l],p=[];if(n.length>0&&p.push(`+${n.length}`),i.length>0&&p.push(`-${i.length}`),l.length>0&&p.push(`~${l.length}`),p.length===0)return{summary:"nested change",changedKeys:[],changedCount:0};let y=c.length;return{summary:`${p.join(" ")} ${y===1?"key":"keys"}`,changedKeys:c,changedCount:y}}function ir(e){if(e==null)return"N/A";if(e===0)return"0 B";let t=1024,a=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(e)/Math.log(t));return`${(e/Math.pow(t,r)).toFixed(1)} ${a[r]}`}function Lf(e){if(e==null)return"N/A";if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;if(e<36e5){let r=Math.floor(e/6e4),s=Math.floor(e%6e4/1e3);return s>0?`${r}m ${s}s`:`${r}m`}let t=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4);return a>0?`${t}h ${a}m`:`${t}h`}function Mf(e){return e.toLocaleString()}var nr=5e4;function Nf(e,t=nr){try{let a=JSON.stringify(e);return a.length>t?`[omitted: ${ir(a.length)} \u2014 too large to copy]`:e}catch{return"[omitted: could not serialize]"}}function $f(e,t=50,a=20,r=20){if(e.length<=t)return e;let s=e.slice(0,a),o=e.slice(-r);return`${s}...${o}`}function Bf(e){if(e>=100&&e<200)return{text:String(e),color:w.info,meaning:"Informational"};if(e>=200&&e<300){let t={200:"OK",201:"Created",202:"Accepted",204:"No Content",206:"Partial Content"};return{text:String(e),color:w.success,meaning:t[e]||"Success"}}if(e>=300&&e<400){let t={301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect"};return{text:String(e),color:w.warning,meaning:t[e]||"Redirect"}}if(e>=400&&e<500){let t={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",408:"Request Timeout",409:"Conflict",410:"Gone",422:"Unprocessable Entity",429:"Too Many Requests"};return{text:String(e),color:w.error,meaning:t[e]||"Client Error"}}if(e>=500){let t={500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};return{text:String(e),color:w.error,meaning:t[e]||"Server Error"}}return{text:String(e),color:w.muted,meaning:"Unknown"}}function Df(e){return{GET:w.success,POST:w.info,PUT:w.warning,DELETE:w.error,PATCH:w.network,HEAD:w.muted,OPTIONS:w.secondary,CONNECT:w.critical,TRACE:w.env}[e.toUpperCase()]||w.muted}function zf(e){try{let t=new URL(e);return{protocol:t.protocol.replace(":",""),host:t.hostname,port:t.port||void 0,pathname:t.pathname,search:t.search||void 0,hash:t.hash||void 0}}catch{return null}}var Ye=[];function lr(e){Ye.unshift(e),Ye=Ye.slice(0,500)}function Ff(){return Ye}function Hf(){Ye=[]}var Zt=(e=>(e.Debug="debug",e.Info="info",e.Log="log",e.Warn="warn",e.Error="error",e))(Zt||{}),ea=(e=>(e.Auth="Auth",e.Custom="Custom",e.Debug="Debug",e.Error="Error",e.Generic="Generic",e.HTTPRequest="HTTP Request",e.Navigation="Navigation",e.Replay="Replay",e.State="State",e.System="System",e.Touch="Touch",e.UserAction="User Action",e))(ea||{});var jf=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,cr=class{constructor(){this.captureTransaction=e=>(this.logSentryEvent("transaction",e),e);this.captureSpan=e=>(this.logSentryEvent("span",e),e);this.captureEvent=e=>(this.logSentryEvent("event",e),e);this.captureLog=e=>(this.logSentryEvent("console",{message:e.message||"Log entry",level:e.level,category:"console",timestamp:e.timestamp,...e.attributes}),e);this.captureBreadcrumb=e=>{let t="unknown";try{let r=globalThis.getCurrentPathname;r&&(t=r())}catch{}let a=e.category;if(e.message?.toLowerCase().includes("ignore"))return null;if(e.message?.includes("Touch event within element:")&&(e.message=e.message.replace("Touch event within element:","")),a==="navigation"&&e.data?.from&&e.data?.to&&(e.message=`From ${e.data.from} To ${e.data.to}`),a==="touch"&&e.data?.path){e.message&&(e.message=e.message.trim());let r={...e.data,category:a,message:e.message,route:t,timestamp:new Date().toISOString(),path:e.message?[{label:e.message}]:e.data?.path};e.data=r}return this.logSentryEvent("breadcrumb",e),e}}logSentryEvent(e,t){let a="Generic",r=t.category;if(r)switch(r){case"touch":a="Touch";break;case"xhr":case"fetch":case"http":a="HTTP Request";break;case"navigation":a="Navigation";break;case"auth":a="Auth";break;case"console":a="System";break;case"debug":a="Debug";break;default:r.startsWith("ui.")?a="User Action":r.startsWith("replay.")?a="Replay":r.includes("redux")||r.includes("state")?a="State":a="Custom"}let s={id:jf(),timestamp:Date.now(),level:this.getSentryLevel(t),message:this.getSentryMessage(t),metadata:this.getSentryMetadata(t),type:a};lr(s)}getSentryLevel(e){switch(e.level){case"fatal":case"error":return"error";case"warning":return"warn";case"info":return"info";case"debug":return"debug";default:return"log"}}getSentryMessage(e){let t=e.message;return typeof t=="string"?t:`${e.type||"Unknown"} Event`}getSentryMetadata(e){let{message:t,level:a,type:r,...s}=e;return s}},Wf=new cr;import{useState as ta,useEffect as ur}from"react";import{jsx as O,jsxs as _e}from"react/jsx-runtime";var gt=xe.bubble.settings(),dr=xe.bubble.userPreferences(),aa={showEnvironment:true,showQueryButton:true,showWifiToggle:true,showEnvButton:false,showSentryButton:false,showStorageButton:false};function Uf({onPress:e}){let[t,a]=ta(aa);ur(()=>{r()},[]);let r=async()=>{try{let s=await F.getItem(gt);s&&a(JSON.parse(s))}catch(s){console.error("Failed to load bubble settings:",s)}};return O(Ma,{id:"bubble-settings",title:"SETTINGS",subtitle:`${Object.values(t).filter(Boolean).length}/6 visible`,icon:Nt,iconColor:"#10B981",iconBackgroundColor:"rgba(16, 185, 129, 0.1)",onPress:e||(()=>{}),index:5})}function Vf({onSettingsChange:e}){let[t,a]=ta(aa),[r,s]=ta(true);ur(()=>{o()},[]);let o=async()=>{try{let c=await F.getItem(gt);c&&a(JSON.parse(c))}catch(c){console.error("Failed to load bubble settings:",c)}finally{s(false)}},n=async c=>{try{await F.setItem(gt,JSON.stringify(c)),a(c),e?.(c)}catch(p){console.error("Failed to save bubble settings:",p)}},i=async c=>{let p={...t,[c]:!t[c]};try{let y=await F.getItem(dr),h=y?JSON.parse(y):{},f=c.replace("show","hasSet"),v={...h,[f]:true};await F.setItem(dr,JSON.stringify(v))}catch(y){console.error("Failed to save user preference marker:",y)}n(p)};if(r)return O(x,{style:E.detailContainer,children:O(B,{style:E.loadingText,children:"Loading settings..."})});let l=[{key:"showEnvironment",label:"Environment Indicator",description:"Shows current environment (dev, staging, prod)",icon:O(x,{style:[E.indicator,{backgroundColor:"#10B981"}]})},{key:"showQueryButton",label:"React Query Button",description:"Opens React Query dev tools",icon:O(x,{style:[E.indicator,{backgroundColor:"#F59E0B"}]})},{key:"showWifiToggle",label:"WiFi",description:"Toggle WiFi for testing offline scenarios",icon:O(x,{style:[E.indicator,{backgroundColor:"#8B5CF6"}]})},{key:"showEnvButton",label:"Environment Variables",description:"View and check environment variables",icon:O(Nt,{size:16,color:"#10B981"})},{key:"showSentryButton",label:"Sentry Events",description:"View captured Sentry events and errors",icon:O(x,{style:[E.indicator,{backgroundColor:"#a855f7"}]})},{key:"showStorageButton",label:"Storage Browser",description:"Browse and inspect AsyncStorage data",icon:O(Ba,{size:16,color:"#3B82F6"})}];return O(x,{style:E.detailContainer,children:_e(ug,{showsVerticalScrollIndicator:false,contentContainerStyle:E.scrollContent,"sentry-label":"ignore bubble settings scroll",children:[_e(x,{style:E.header,children:[O(B,{style:E.headerTitle,children:"Developer Tools Settings"}),O(B,{style:E.headerDescription,children:"Configure bubble button visibility"})]}),O(x,{style:E.sectionDivider,children:O(B,{style:E.sectionTitle,children:"Bubble Button Visibility"})}),O(x,{style:E.settingsList,children:l.map(c=>_e(x,{style:E.settingItem,children:[O(x,{style:E.settingIconContainer,children:c.icon}),_e(x,{style:E.settingContent,children:[O(B,{style:E.settingLabel,children:c.label}),O(B,{style:E.settingDescription,children:c.description})]}),O(dg,{"sentry-label":"ignore bubble settings section",value:t[c.key],onValueChange:()=>i(c.key),trackColor:{false:"#4B5563",true:"#10B981"},thumbColor:t[c.key]?"#fff":Y.textSecondary})]},c.key))}),_e(x,{style:E.footer,children:[_e(x,{style:E.noteContainer,children:[O(Da,{size:16,color:Y.textSecondary}),O(B,{style:E.noteText,children:"User status indicator is always visible and cannot be disabled"})]}),O(B,{style:E.restartNote,children:"Changes are saved automatically and will persist across app restarts"})]})]})})}async function Gf(){try{let e=await F.getItem(gt);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bubble settings:",e)}return aa}var E=He.create({scrollContent:{flexGrow:1},sectionCard:{backgroundColor:Y.input,borderRadius:8,padding:16,flexDirection:"row",alignItems:"center",marginBottom:12},iconContainer:{width:36,height:36,borderRadius:8,backgroundColor:"rgba(16, 185, 129, 0.1)",justifyContent:"center",alignItems:"center",marginRight:12},textContainer:{flex:1},title:{color:Y.text,fontSize:14,fontWeight:"600",marginBottom:2},subtitle:{color:Y.textSecondary,fontSize:12},chevron:{color:ot.text.icon,fontSize:20},detailContainer:{flex:1,backgroundColor:Y.card},loadingText:{color:Y.textSecondary,fontSize:14,textAlign:"center",marginTop:20},header:{padding:16,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.2)"},headerTitle:{color:Y.text,fontSize:16,fontWeight:"600",marginBottom:4},headerDescription:{color:Y.textSecondary,fontSize:12},settingsList:{padding:16},settingItem:{flexDirection:"row",alignItems:"center",paddingVertical:12,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},settingIconContainer:{width:32,height:32,justifyContent:"center",alignItems:"center",marginRight:12},settingContent:{flex:1,marginRight:12},settingLabel:{color:Y.text,fontSize:14,fontWeight:"500",marginBottom:2},settingDescription:{color:ot.text.icon,fontSize:11},indicator:{width:8,height:8,borderRadius:4},footer:{padding:16,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.2)"},noteContainer:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},noteText:{color:Y.textSecondary,fontSize:12,flex:1},restartNote:{color:ot.text.icon,fontSize:11,fontStyle:"italic"},sectionDivider:{paddingHorizontal:16,paddingVertical:8,marginTop:8,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.12)"},sectionTitle:{color:Y.textSecondary,fontSize:12,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"}});function hr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Yf(e,t,a={}){let r=a.storage??F,s=a.parse??(l=>JSON.parse(l)),o=a.serialize??(l=>JSON.stringify(l));function n(l){let c=hr(t)&&hr(l)?{...t,...l}:l;return a.sanitize?a.sanitize(c,l):c}async function i(){try{let l=await r.getItem(e);return l==null||l===""?null:n(s(l))}catch{return null}}return{key:e,defaults:t,loadOrNull:i,async load(){return await i()??t},async save(l){try{await r.setItem(e,o(l))}catch{}},async clear(){try{await r.removeItem(e)}catch{}}}}import{useEffect as Kf,useId as Jf,useRef as gr,useState as qf}from"react";import{createPortal as Xf}from"react-dom";import{jsx as Ke,jsxs as Qf}from"react/jsx-runtime";function fr(){let[e,t]=qf(false),a=gr(null),r=gr(null),s=Jf(),o=(n=true)=>{t(false),n&&a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true})};return Kf(()=>{if(!e)return;r.current?.focus({preventScroll:true});let n=l=>{l.target instanceof Node&&!a.current?.contains(l.target)&&t(false)},i=l=>{l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),t(false),a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true}))};return document.addEventListener("pointerdown",n),document.addEventListener("keydown",i),()=>{document.removeEventListener("pointerdown",n),document.removeEventListener("keydown",i)}},[e]),typeof document>"u"?null:Xf(Qf("div",{ref:a,"data-buoy-account":"",style:{position:"fixed",right:"max(16px, env(safe-area-inset-right))",bottom:"max(20px, env(safe-area-inset-bottom))",zIndex:99999,colorScheme:"dark",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:[Ke("style",{children:`
|
|
1
|
+
"use client";import{a as is,b as ns,c as ls,d as cs,e as us,f as ds,g as hs,h as gs,i as fs}from"./chunks/chunk-JYM7MCKQ.mjs";import{a as ps,b as ms,c as bs,d as ys,e as vs,f as Ss,g as Cs,h as ws}from"./chunks/chunk-E2MI3FII.mjs";import{$ as xs,A as Ts,B as ks,C as Is,D as Es,E as As,F as Rs,G as Os,J as _s,K as Ps,L as Ls,M as Ms,N as Ns,O as $s,P as Bs,Q as Ds,R as zs,S as Fs,Z as Hs,_ as Ws,a as za,b as js,c as Us,d as We,e as Vs,f as Gs,g as Fa,h as Ys,i as Ks,j as qs,k as Js,l as Xs,m as Bt,n as Qs,o as Zs,p as eo,q as to,r as ao,s as ro,t as so,u as oo,v as io,w as no,x as lo,y as co,z as uo}from"./chunks/chunk-ASHW3TI7.mjs";import"./chunks/chunk-LZ7FZZ7R.mjs";import{a as ho,d as go,f as Dt}from"./chunks/chunk-53J2FMUD.mjs";import{$ as fo,$a as po,$b as mo,A as Ha,Aa as bo,Ab as yo,Ac as vo,B as So,Ba as Co,Bb as wo,Bc as xo,C as To,Ca as ko,Cb as Io,Cc as Eo,D as Ao,Da as Ro,Db as Oo,E as _o,Ea as Po,Eb as Lo,F as Wa,Fa as Mo,Fb as No,G as $o,Ga as Bo,Gb as Do,H as zo,Ha as Fo,Hb as Ho,I as Wo,Ia as jo,Ib as Uo,J as Vo,Ja as Go,Jb as Yo,K as Ko,Ka as qo,Kb as Jo,L as Xo,La as Qo,Lb as Zo,M as ei,Ma as ti,Mb as ai,N as ri,Na as si,Nb as oi,O as ii,Oa as ni,Ob as li,P as ci,Pa as ui,Pb as di,Q as hi,Qa as gi,Qb as fi,R as pi,Ra as mi,Rb as bi,S as yi,Sa as vi,Sb as Si,T as Ci,Ta as wi,Tb as xi,U as Ti,Ua as ki,Ub as Ii,V as Ei,Va as Ai,Vb as Ri,W as Oi,Wa as _i,Wb as Pi,X as Li,Xa as Mi,Xb as Ni,Y as $i,Ya as Bi,Yb as Di,Z as zi,Za as Fi,Zb as Hi,_ as Wi,_a as ji,_b as Ui,a as Vi,aa as Gi,ab as Yi,ac as Ki,b as qi,ba as Ji,bb as Xi,bc as Qi,c as Zi,ca as en,cb as tn,cc as an,d as rn,da as sn,db as on,dc as nn,e as ln,ea as cn,eb as un,ec as dn,f as hn,fa as gn,fb as fn,fc as pn,g as mn,ga as bn,gb as yn,gc as vn,h as Sn,ha as Cn,hb as wn,hc as xn,i as ja,ia as Tn,ib as kn,ic as In,j as En,ja as An,jb as Rn,jc as On,k as _n,ka as Pn,kb as Ln,kc as Mn,l as Nn,la as $n,lb as Bn,lc as Dn,m as zn,ma as Fn,mb as Hn,mc as Wn,n as jn,na as Un,nb as Vn,nc as Gn,o as Yn,oa as Kn,ob as qn,oc as Jn,p as Xn,pa as Qn,pb as Zn,pc as el,q as tl,qa as al,qb as rl,qc as sl,r as ol,ra as il,rb as nl,rc as ll,s as cl,sa as ul,sb as dl,sc as hl,t as gl,ta as fl,tb as pl,tc as ml,u as bl,ua as yl,ub as vl,uc as zt,v as Sl,va as Cl,vb as Ua,vc as wl,w as pe,wa as xl,wb as Tl,wc as kl,x as X,xa as Il,xb as El,xc as Al,y as Re,ya as Rl,yb as Va,yc as Ol,z as je,za as _l,zb as Pl,zc as Ga}from"./chunks/chunk-PXAINEZK.mjs";import{a as Ll}from"./chunks/chunk-OPTY6SMO.mjs";import{a as Ml,b as Nl,c as $l,d as Bl,e as Dl,f as zl,g as Fl,h as Hl,i as Wl,j as jl,k as Ul,l as Vl,m as Gl,n as Yl,o as Kl,p as ql}from"./chunks/chunk-4IM4VIMP.mjs";import{a as u,b as Ya}from"./chunks/chunk-GF5C5DVX.mjs";import{a as Jl,b as Xl}from"./chunks/chunk-NVD5LLXD.mjs";import{a as Ql,b as Zl,c as ec,d as tc,e as ac,f as rc,g as sc,h as oc,i as ic,j as nc,k as lc,l as cc}from"./chunks/chunk-T2SPCEHP.mjs";import{$ as uc,$a as dc,$b as hc,$c as gc,Aa as fc,Ab as pc,Ac as mc,B as bc,Ba as yc,Bb as vc,Bc as Sc,C as Cc,Ca as wc,Cb as xc,Cc as Tc,D as kc,Da as Ic,Db as Ec,Dc as Ac,Ea as Rc,Eb as Oc,Ec as _c,F as Pc,Fa as Lc,Fb as Mc,Fc as Nc,Ga as $c,Gb as Bc,Gc as Dc,Ha as zc,Hb as Fc,Hc,I as Wc,Ib as jc,Ic as Ft,Ja as Uc,Jb as Vc,Jc as Gc,K as Yc,Ka as Kc,Kb as qc,Kc as Jc,La as Xc,Lb as Qc,Lc as Zc,Ma as eu,Mb as tu,Mc as au,Na as ru,Nb as su,Nc as ou,O as iu,Oa as nu,Ob as lu,Oc as cu,P as uu,Pa as du,Pb as hu,Pc as gu,Q as fu,Qa as pu,Qb as mu,Qc as bu,R as yu,Ra as vu,Rb as Su,Rc as Cu,S as wu,Sa as xu,Sb as Tu,Sc as ku,T as Iu,Ta as Eu,Tb as Au,Tc as Ru,U as Ou,Ua as _u,Ub as Pu,Uc as Lu,V as Mu,Va as Nu,Vb as $u,Vc as Bu,W as Du,Wa as zu,Wb as Ka,Wc as Fu,X as Hu,Xa as Wu,Xb as ju,Xc as Uu,Y as Vu,Ya as Gu,Yb as Yu,Yc as Ku,Z as qu,Za as Ju,Zb as Xu,Zc as Qu,_ as Zu,_a as ed,_b as td,_c as ad,a as rd,aa as sd,ab as od,ac as id,ad as nd,b as ld,ba as cd,bb as ud,bc as qa,bd as dd,c as hd,ca as gd,cb as fd,cc as pd,cd as md,d as bd,da as yd,db as vd,dc as Sd,dd as Cd,e as wd,ea as xd,eb as Td,ec as kd,ed as Id,f as Ed,fa as Ad,fb as Rd,fc as Ja,fd as Od,g as _d,ga as Pd,gb as Ld,gc as Md,gd as Nd,h as $d,ha as Bd,hb as Dd,hc as zd,hd as Fd,i as Hd,ia as Wd,ib as jd,ic as Ud,id as Vd,j as Gd,ja as Yd,jb as Kd,jc as qd,jd as Jd,k as Xd,ka as Qd,kb as Zd,kc as eh,kd as th,l as ah,la as rh,lb as sh,lc as oh,ld as ih,m as nh,ma as lh,mb as ch,mc as uh,md as dh,n as hh,na as gh,nb as fh,nc as ph,nd as mh,o as bh,oa as yh,ob as vh,oc as Sh,od as Ch,p as wh,pa as xh,pb as Th,pc as kh,pd as Ih,q as Eh,qa as Ah,qb as Rh,qc as Oh,qd as _h,r as Ph,ra as Lh,rb as Mh,rc as Nh,rd as $h,s as Bh,sa as Dh,sb as zh,sc as Fh,sd as Hh,t as Wh,ta as jh,tb as Uh,tc as Vh,td as Gh,u as Yh,ua as Kh,ub as qh,uc as Jh,ud as Xh,va as Qh,vb as Zh,vc as eg,wa as tg,wb as ag,wc as rg,xa as sg,xb as og,xc as ig,ya as ng,yb as lg,yc as cg,za as ug,zb as dg,zc as hg}from"./chunks/chunk-7YVWZ4ZK.mjs";import{a as ct,d as w,e as gg,f as K,g as fg}from"./chunks/chunk-CE5U3CSQ.mjs";import{a as pg,b as mg,c as bg,d as yg,e as vg}from"./chunks/chunk-QNLAFQET.mjs";import{a as ke,b as Sg,c as Cg,d as W,e as wg,f as xg}from"./chunks/chunk-FP44YK4E.mjs";import{H as Tg,J as Ue,a as T,b as H,d as ut,g as kg,h as Ig,j as Eg,r as Ht}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-L63X3LPR.mjs";var Ag=class extends za{constructor(e){super();this.events=[];this.arrayListeners=new Set;this.captureSuppressed=false;this.clearListeners=new Set;this.maxEvents=e.maxEvents??500,this.storeName=e.storeName,Promise.resolve().then(()=>{let t=()=>{pe().status==="locked"?(this.stopCapturing(),this.events=[],this.notifyArrayListeners()):this.getTotalSubscriberCount()>0&&!this.captureSuppressed&&!this.isCapturing()&&this.startCapturing()};je(t),t()})}onSubscribe(){this.getTotalSubscriberCount()===1&&!this.captureSuppressed&&pe().status!=="locked"&&this.startCapturing(),We(this.storeName)}onUnsubscribe(){this.getTotalSubscriberCount()===0&&this.stopCapturing(),We(this.storeName)}getTotalSubscriberCount(){return this.listeners.size+this.arrayListeners.size}subscribeToEvents(e){let t=this.getTotalSubscriberCount()===0;return this.arrayListeners.add(e),t&&!this.captureSuppressed&&pe().status!=="locked"&&this.startCapturing(),We(this.storeName),e(this.getEvents()),()=>{this.arrayListeners.delete(e),this.getTotalSubscriberCount()===0&&this.stopCapturing(),We(this.storeName)}}onEvent(e){return this.subscribe(e)}addEvent(e){pe().status!=="locked"&&(this.events=[e,...this.events].slice(0,this.maxEvents),X()&&this.notify(e),this.notifyArrayListeners())}notifyArrayListeners(){let e=this.getEvents();this.arrayListeners.forEach(t=>{try{t(e)}catch{}})}getEvents(){return X()?this.events:[]}getEventCount(){return X()?this.events.length:0}clearEvents(){this.events=[],this.notifyArrayListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true,this.isCapturing()&&this.stopCapturing()}replaceEvents(e){this.events=this.dedupeById(e).slice(0,this.maxEvents),this.notifyArrayListeners()}dedupeById(e){let t=new Set,a=[];for(let r of e){let s=r?.id;if(s==null){a.push(r);continue}t.has(s)||(t.add(s),a.push(r))}return a}setMaxEvents(e){this.maxEvents=e,this.events.length>e&&(this.events=this.events.slice(0,e),this.notifyArrayListeners())}getSubscriberCounts(){return{eventCallbacks:this.listeners.size,arrayListeners:this.arrayListeners.size,total:this.getTotalSubscriberCount()}}};import{useEffect as Rg,useMemo as Og,useState as _g}from"react";var Pg=[{value:"buoy.gg/api/license",mode:"contains"},{value:"api.keygen.sh",mode:"contains"}];function Xa(e,t){let a=e.toLowerCase(),r=t.value.toLowerCase();if(t.mode==="contains")return a.includes(r);try{let s=new URL(e);return r.startsWith("/")?s.pathname.toLowerCase()===r:r.startsWith("http://")||r.startsWith("https://")?`${s.origin}${s.pathname}`.toLowerCase()===r:s.host.toLowerCase()===r}catch{return a===r}}function Lg(e,t){return!e||t.length===0?false:t.some(a=>Xa(e,a))}var Qa=Pg;function Za(e){if(!Array.isArray(e))return[];let t=[];for(let a of e)if(typeof a=="string"&&a.trim())t.push({value:a,mode:"contains"});else if(a&&typeof a=="object"&&typeof a.value=="string"){let r=a;t.push({value:r.value,mode:r.mode==="exact"?"exact":"contains"})}return t}function er(e){let t=[...e];for(let a of Qa)t.some(r=>r.value===a.value)||t.push({...a});return t}var Mg=class{constructor(){this.patterns=er(Qa.map(e=>({...e})));this.teamPatterns=[];this.merged=this.patterns;this.listeners=new Set;this.loaded=false;this.loadPromise=null;this.dirty=false}getPatterns(){return this.merged}isTeamOnly(e){return!this.patterns.some(t=>t.value===e)&&this.teamPatterns.some(t=>t.value===e)}setTeamPatterns(e){this.teamPatterns=Za(e),this.remerge(),this.emit()}reload(){return this.loaded=false,this.loadPromise=null,this.dirty=false,this.ensureLoaded()}remerge(){let e=this.teamPatterns.filter(t=>!this.patterns.some(a=>a.value===t.value));this.merged=e.length>0?[...this.patterns,...e]:this.patterns}subscribe(e){return this.listeners.add(e),this.ensureLoaded(),()=>{this.listeners.delete(e)}}emit(){this.listeners.forEach(e=>e())}ensureLoaded(){return this.loaded?Promise.resolve():this.loadPromise?this.loadPromise:(this.loadPromise=(async()=>{try{let e=await W.getItem(ke.network.ignoredDomains());if(e&&!this.dirty){let t=er(Za(JSON.parse(e)));this.patterns=t,this.remerge()}}catch{}finally{this.loaded=true,this.emit()}})(),this.loadPromise)}persist(){W.setItem(ke.network.ignoredDomains(),JSON.stringify(this.patterns)).catch(()=>{})}commit(e){this.dirty=true,this.patterns=e,this.remerge(),this.emit(),this.persist()}add(e){let t=e.value.trim();t&&(this.patterns.some(a=>a.value===t)||this.commit([...this.patterns,{value:t,mode:e.mode}]))}remove(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.filter(t=>t.value!==e))}toggle(e){let t=e.trim();t&&this.commit(this.patterns.some(a=>a.value===t)?this.patterns.filter(a=>a.value!==t):[...this.patterns,{value:t,mode:"contains"}])}toggleMode(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.map(t=>t.value===e?{...t,mode:t.mode==="contains"?"exact":"contains"}:t))}},ee=new Mg,Ng=e=>ee.add(e),$g=e=>ee.remove(e),Bg=e=>ee.toggle(e),Dg=e=>ee.toggleMode(e),zg=e=>ee.isTeamOnly(e);function Fg(){let[e,t]=_g(()=>ee.getPatterns());Rg(()=>ee.subscribe(()=>{t(ee.getPatterns())}),[]);let a=Og(()=>new Set(e.map(r=>r.value)),[e]);return{patterns:e,values:a,add:Ng,remove:$g,toggle:Bg,toggleMode:Dg,isTeamOnly:zg}}import{useSyncExternalStore as Hg}from"react";var dt={},Wt=new Map,jt=new Set,Ve=[];function Wg(e){if(!e)return Ve;try{let t=JSON.parse(e);if(!Array.isArray(t))return Ve;let a=t.map(r=>typeof r=="string"?r:r&&typeof r.value=="string"?r.value:"").map(r=>r.trim()).filter(Boolean);return a.length?[...new Set(a)]:Ve}catch{return Ve}}var ht={set(e){Object.keys({...dt,...e}).some(t=>dt[t]!==e[t])&&(dt=e,Wt.clear(),jt.forEach(t=>t()))},getList(e){let t=Wt.get(e);return t||(t=Wg(dt[e]),Wt.set(e,t)),t},subscribe(e){return jt.add(e),()=>jt.delete(e)}};function jg(e){return Hg(ht.subscribe,()=>ht.getList(e),()=>Ve)}function Ug(e){typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):setTimeout(e,0)}function Vg(e){let t=e.id,a=e.order??"append",r=e.coalesce??"sync",s=e.flushMinIntervalMs??150,o=e.max,n=[],i=false,l=e.firstId??1,c=0,p=false,b=[],h=false;function m(){h||(h=true,je(()=>{pe().status==="locked"&&(n=[]),J()}))}let v=new Set,I=new Set;function U(){for(let S of v)try{S()}catch{}}function J(){if(r==="sync"){U();return}p||(p=true,Ug(()=>{p=false,U()}))}function B(S){return S.length<=o?S:a==="append"?S.slice(S.length-o):S.slice(0,o)}return{id:t,subscribe(S){return m(),v.add(S),()=>{v.delete(S)}},getSnapshot(){return m(),X()?n:b},size(){return X()?n.length:0},add(S){m(),!(i||pe().status==="locked")&&(a==="append"?n=n.length>=o?[...n.slice(n.length-o+1),S]:[...n,S]:n=n.length>=o?[S,...n.slice(0,o-1)]:[S,...n],J())},set(S){m(),X()&&(n=B(S),J())},update(S){m(),pe().status!=="locked"&&(n=B(S(n)),J())},clear(){for(let S of I)try{S()}catch{}n.length!==0&&(n=[],J())},onClear(S){return I.add(S),()=>{I.delete(S)}},notify(){J()},flushSync(S=false){let ne=Date.now();if(!(!S&&ne-c<s)){c=ne;try{let M=globalThis.__buoyFlushToolSync;if(!M)return;for(let Ze of M)Ze(t)}catch{}}},setPaused(S){i=S},isPaused(){return i},setMax(S){o=S;let ne=B(n);ne!==n&&(n=ne,J())},getMax(){return o},allocId(){return l++},bumpIdAbove(S){S+1>l&&(l=S+1)},listenerCount(){return v.size}}}var Gg=class{constructor(e={}){this.items=[];this.itemListeners=new Set;this.clearListeners=new Set;this.idCounter=0;this.enabled=true;this.captureSuppressed=false;this.max=e.max??200}canRecord(){return this.enabled&&!this.captureSuppressed}nextId(){return`${Date.now()}-${++this.idCounter}`}push(e){this.items=[e,...this.items].slice(0,this.max)}record(e){this.push(e),this.notifyListeners()}setItems(e){this.items=e.slice(0,this.max),this.notifyListeners()}getAll(){return[...this.items]}getById(e){return this.items.find(t=>t.id===e)}get size(){return this.items.length}clear(){this.items=[],this.notifyListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true}isCaptureSuppressed(){return this.captureSuppressed}replaceAll(e){return this.enabled?(this.setItems(e),true):false}hydrateById(e,t){let a=this.items.findIndex(r=>r.id===e);a!==-1&&(this.items=[...this.items.slice(0,a),{...this.items[a],...t},...this.items.slice(a+1)],this.notifyListeners())}setEnabled(e){this.enabled=e}getEnabled(){return this.enabled}setMax(e){this.max=e,this.items.length>e&&(this.items=this.items.slice(0,e),this.notifyListeners())}getMax(){return this.max}subscribe(e){return this.itemListeners.add(e),()=>{this.itemListeners.delete(e)}}notifyListeners(){let e=this.getAll();this.itemListeners.forEach(t=>t(e))}get listenerCount(){return this.itemListeners.size}};var Ie=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Yg=["id","lineId","key","uuid","_id","slug","name"];function Ut(e){if(!e.length||!e.every(Ie))return;let t=e[0];for(let a of Yg){if(!(a in t))continue;let r=e.map(s=>s[a]);if(r.every(s=>typeof s=="string"||typeof s=="number")&&new Set(r.map(String)).size===r.length)return a}}function Kg(e,t,a,r){let s=r[t];return typeof s=="string"||typeof s=="number"?String(s)!==a?{ok:false,error:`The new item is addressed as \`${a}\` but carries \`${t}\`: ${JSON.stringify(s)}. Use the same value for both \u2014 address it by the id it carries.`}:{ok:true,value:s}:e.every(o=>typeof o[t]=="number")&&a.trim()!==""&&String(Number(a))===a?{ok:true,value:Number(a)}:{ok:true,value:a}}function Vt(e,t,a="",r=[]){if(Array.isArray(e)&&Ie(t)){let s=Ut(e);if(!s)return{patch:t,notes:r};let o=new Map(e.map(p=>[String(p[s]),p])),n=e.slice(),i=0,l=0,c=0;for(let[p,b]of Object.entries(t)){let h=n.findIndex(m=>String(m[s])===p);if(b===null){if(h===-1)return{patch:t,notes:r};n.splice(h,1),i++}else if(h===-1){if(!Ie(b))return{patch:t,notes:r};let m=Kg(e,s,p,b);if(!m.ok)return{patch:t,notes:r,error:m.error};n.push({...b,[s]:m.value}),c++}else{let m=Vt(o.get(p),b,`${a}[${p}]`,r);if(m.error)return{patch:t,notes:r,error:m.error};let v=n[h];n[h]=Ie(v)&&Ie(m.patch)?{...v,...m.patch}:m.patch,l++}}return r.push(`${a||"(root)"}: addressed by \`${s}\` \u2014 ${l} changed, ${c} added, ${i} removed, ${n.length} item(s) remain`),{patch:n,notes:r}}if(Ie(e)&&Ie(t)){let s={};for(let[o,n]of Object.entries(t)){let i=a?`${a}.${o}`:o;if(!(o in e)){s[o]=n;continue}let l=Vt(e[o],n,i,r);if(l.error)return{patch:t,notes:r,error:l.error};s[o]=l.patch}return{patch:s,notes:r}}return{patch:t,notes:r}}var gt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Ge(e,t=0){if(e===null)return"null";if(Array.isArray(e)){if(!e.length)return"unknown[]";if(t>=3)return"\u2026[]";let r=Ge(e[0],t+1);return r.includes(" ")||r.endsWith("]")?`(${r})[]`:`${r}[]`}if(gt(e)){if(t>=3)return"{\u2026}";let r=Object.keys(e),s=r.slice(0,24),o=s.map(i=>`${i}: ${Ge(e[i],t+1)}`).join(", "),n=r.length>s.length?`, +${r.length-s.length} more`:"";return`{${o}${n}}`}let a=typeof e;return a==="undefined"?"undefined":a==="function"?"function":a}function Oe(e,t="",a=[],r=0,s={visited:0}){if(r>3||a.length>=40||s.visited>=600)return a;if(Array.isArray(e)){let o=e[0];if(a.push({path:t||"(root)",length:e.length,...e.length?{item:Ge(o)}:{}}),e.length&>(o))for(let[n,i]of Object.entries(o)){if(++s.visited>=600)break;Oe(i,t?`${t}[].${n}`:`[].${n}`,a,r+1,s)}return a}if(gt(e))for(let[o,n]of Object.entries(e)){if(++s.visited>=600)break;Oe(n,t?`${t}.${o}`:o,a,r+1,s)}return a}function qg(e){let t={visited:0};return Oe(e,"",[],0,t).length>=40||t.visited>=600}function Jg(e){return Oe(e).filter(t=>t.item===void 0).map(t=>t.path)}function Xg(e){if(e===void 0)return;let t=Oe(e),a=Ge(e);if(!(!t.length&&!gt(e)&&!Array.isArray(e)))return t.length?{shape:a,lists:t}:{shape:a}}var oe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Qg(e,t,a=2e3){let r=[{node:e,path:""}],s=0;for(;r.length&&s<a;){let{node:o,path:n}=r.shift();if(s++,Array.isArray(o))o.slice(0,20).forEach((i,l)=>r.push({node:i,path:`${n}[${l}]`}));else if(oe(o))for(let[i,l]of Object.entries(o)){let c=n?`${n}.${i}`:i;if(i===t)return c;(oe(l)||Array.isArray(l))&&r.push({node:l,path:c})}}}function tr(e,t,a,r,s){let o=Qg(e,s??a),n=r.slice(0,12).join(", ")||"(no fields)";return o?`No field "${a}" at "${t}" \u2014 did you mean path "${o}"? "${t}" has: ${n}.`:`No field "${a}" at "${t}". It has: ${n}.`}function ar(e,t){let a=e;for(let r of t.split(".")){if(!oe(a))return;a=a[r]}return a}function Gt(e){if(!e.trim())return;let t=[],a=0;for(;a<e.length;){if(e[a]==="."){a++;continue}if(e[a]==="["){let o=e.indexOf("]",a);if(o===-1)return;let n=e.slice(a+1,o);if(/^\d+$/.test(n))t.push({kind:"index",index:Number(n)});else{let i=n.indexOf("=");if(i<=0)return;t.push({kind:"match",field:n.slice(0,i).trim(),value:n.slice(i+1).trim()})}a=o+1;continue}let r=a;for(;r<e.length&&e[r]!=="."&&e[r]!=="[";)r++;let s=e.slice(a,r);if(!s)return;t.push({kind:"key",key:s}),a=r}return t.length?t:void 0}function Zg(e,t){let a=Gt(t);if(!a)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};let r=e,s=[];for(let o of a){if(r==null)return{ok:false,error:`"${s.join(".")||"(root)"}" is ${r===null?"null":"not set"}, so there is nothing at "${t}".`};if(o.kind==="key"){if(!oe(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not an object, so it has no field "${o.key}".`};if(!(o.key in r)){let n=a[a.length-1];return{ok:false,error:tr(e,s.join(".")||"(root)",o.key,Object.keys(r),n?.kind==="key"?n.key:void 0)}}r=r[o.key],s.push(o.key)}else if(o.kind==="index"){if(!Array.isArray(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not a list, so [${o.index}] means nothing.`};r=r[o.index],s.push(`[${o.index}]`)}else{if(!Array.isArray(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not a list, so [${o.field}=${o.value}] means nothing.`};let n=r.find(i=>oe(i)&&String(ar(i,o.field))===o.value);if(n===void 0)return{ok:false,error:`No item with ${o.field}="${o.value}" in "${s.join(".")||"(root)"}".`};r=n,s.push(`[${o.field}=${o.value}]`)}}return{ok:true,value:r}}function ef(e,t,a){let r=Gt(t);if(!r)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};if(r[0]?.kind!=="key")return{ok:false,error:`A path must start with a field name, not a list index \u2014 "${t}" does not say which list.`};let s=(n,i)=>{if(i>=r.length)return{ok:true,patch:a};let l=r[i];if(l.kind==="key"){if(oe(n)&&!(l.key in n)&&i+1<r.length){let U=r[r.length-1];return{ok:false,error:tr(e,Ye(r,i),l.key,Object.keys(n),U?.kind==="key"?U.key:void 0)}}let v=oe(n)?n[l.key]:void 0,I=s(v,i+1);return I.ok?{ok:true,patch:{[l.key]:I.patch}}:I}if(!Array.isArray(n))return{ok:false,error:`"${Ye(r,i)}" is not a list, so "${t}" cannot be resolved. Read it first \u2014 \`shape\` on the read says what each field holds.`};let c=l.kind==="index"?l.index:n.findIndex(v=>oe(v)&&String(ar(v,l.field))===l.value),p=c>=0?n[c]:void 0;if(l.kind==="index"?c<0||c>=n.length:c<0)return{ok:false,error:l.kind==="index"?`"${Ye(r,i)}" has ${n.length} item(s), so there is nothing at [${l.index}].`:`No item with ${l.field}="${l.value}" in "${Ye(r,i)}".`};if(!oe(p)){if(i<r.length-1)return{ok:false,error:`"${Ye(r,i)}[${l.kind==="index"?l.index:`${l.field}=${l.value}`}]" holds ${p===null?"null":typeof p}, not an object, so "${t}" cannot go any deeper. Set the item itself.`};let v=n.slice();return v[c]=a,{ok:true,patch:v}}let b=s(p,i+1);if(!b.ok)return b;let h=Ut(n);if(h)return{ok:true,patch:{[String(p[h])]:b.patch}};let m=n.slice();return m[c]=oe(b.patch)?{...p,...b.patch}:b.patch,{ok:true,patch:m}},o=s(e,0);return o.ok?{ok:true,patch:o.patch}:o}function Ye(e,t){return e.slice(0,t).map(a=>a.kind==="key"?a.key:a.kind==="index"?`[${a.index}]`:`[${a.field}=${a.value}]`).join(".").replace(/\.\[/g,"[")||"(root)"}var me=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function Ke(e){return Array.isArray(e)?"array":e===null?"null":typeof e=="object"?"object":typeof e}var rr=["string","number","boolean"];function sr(e,t,a=2e3){let r=[{node:e,path:""}],s=0;for(;r.length&&s<a;){let{node:o,path:n}=r.shift();if(s++,Array.isArray(o))o.slice(0,20).forEach((i,l)=>r.push({node:i,path:`${n}[${l}]`}));else if(me(o))for(let[i,l]of Object.entries(o)){let c=n?`${n}.${i}`:i;if(i===t&&n)return c;(me(l)||Array.isArray(l))&&r.push({node:l,path:c})}}}function Yt(e,t,a={},r=e,s="",o=[]){let n=a.noun??"data",i=s||"(root)";if(Array.isArray(t)){if(!Array.isArray(e))return o.push({path:i,kind:"type-change",detail:`${Ke(e)} \u2192 array`}),o;let h=e.length?e[0]:void 0;return h!==void 0&&(me(h)||Array.isArray(h))&&t.forEach((m,v)=>{let I=`${s}[${v}]`;if(me(h)&&me(m))for(let U of Object.keys(h))U in m||o.push({path:`${I}.${U}`,kind:"missing-key",detail:`list items need \`${U}\` \u2014 the items already in the list have it`});Yt(h,m,a,r,I,o)}),o}if(me(t)){if(!me(e))return o.push({path:i,kind:"type-change",detail:`${Ke(e)} \u2192 object`}),o;for(let[h,m]of Object.entries(t)){let v=s?`${s}.${h}`:h;if(h in e)Yt(e[h],m,a,r,v,o);else{let I=sr(r,h);o.push({path:v,kind:"add-key",detail:I?`no such field here \u2014 did you mean \`${I}\`?`:`no field named \`${h}\` exists in this ${n}`,...I?{movedTo:I}:{}})}}return o}let l=Ke(e),c=Ke(t),p=l==="null"&&rr.includes(c),b=c==="null"&&rr.includes(l);return l!==c&&!p&&!b&&o.push({path:i,kind:"type-change",detail:`${l} \u2192 ${c}`}),o}function tf(e,t){if(!t.length||!t.every(r=>r.kind==="add-key"&&r.movedTo))return;let a={};for(let r of t){let s=af(e,r.path);if(s===void 0||r.movedTo.includes("["))return;let o=a,n=r.movedTo.split(".");n.slice(0,-1).forEach(i=>{o[i]??(o[i]={}),o=o[i]}),o[n[n.length-1]]=s}return a}function af(e,t){let a=e;for(let r of t.split(".")){if(!me(a))return;a=a[r]}return a}function rf(e,t,a){let r=e.slice(0,6).map(o=>`\`${o.path}\`: ${o.detail}`).join("; "),s=e.length>6?`; +${e.length-6} more`:"";return`Refused: this isn't a same-type edit of existing fields (the rule the React Query devtools enforces). ${r}${s}. You can only change the VALUE of a field that already exists, to the same type \u2014 you can't add fields, change a field's type, or null a list/object the screen renders. Clearing a scalar to null is fine. Send just the field(s) you're changing, nested to match the current shape of this ${t}. Use force:true only to deliberately break that.`+(a?` This is the same edit at the right depth \u2014 send it as the patch: ${JSON.stringify(a)}`:"")}function ft(e,t){let a=0,r=false,s=false,o=[e],n=new Set;for(;o.length>0;){if(a>t)return{bytes:a,sawRepeat:r,sawBigInt:s};let i=o.pop();if(i==null)a+=4;else if(typeof i=="string")a+=i.length+2;else if(typeof i=="number")a+=8;else if(typeof i=="boolean")a+=5;else if(typeof i=="object"){if(n.has(i)){r=true;continue}if(n.add(i),Array.isArray(i)){a+=2+i.length;for(let l=0;l<i.length;l++)o.push(i[l])}else{a+=2;for(let l in i)a+=l.length+4,o.push(i[l])}}else typeof i=="bigint"&&(s=true),a+=4}return{bytes:a,sawRepeat:r,sawBigInt:s}}function Kt(e,t){let a=ft(e,t);return a.bytes>t?true:!a.sawRepeat&&!a.sawBigInt?false:!Fa(e)}var or=16*1024,pt=8*1024*1024;function sf(e,t){return Object.freeze({[`__buoy${e}OnDevice`]:true,note:t})}function of(e,t){return typeof e=="object"&&e!==null&&e[`__buoy${t}OnDevice`]===true}function ir(e=pt){return{__buoyTruncated:true,note:`Exceeds the ${e/1048576}MB detail limit \u2014 inspect it on-device.`}}function nf(e,t,a=or){return e===void 0?e:Kt(e,a)?t:e}function nr(e,t=pt){return Kt(e,t)?ir(t):e}function lf(e){let t=new WeakMap;return a=>{let r=t.get(a);if(r!==void 0)return r;let s=e(a);return t.set(a,s),s}}function cf(e,t){let a=[],r=t.baseBytes??16;for(let s=e.length-1;s>=0;s--){let o=t.toWire(e[s]);if(r+o.bytes>t.budget&&a.length>0)break;a.push(o.value),r+=o.bytes}return a.reverse(),a}function uf(e,t,a){let r=ft(e,t);if(r.bytes<=t)return{value:e,bytes:r.bytes};let s=a();return{value:s,bytes:ft(s,t).bytes}}function lr(e){return e??{}}function df(e,t,a=pt){let r=s=>nr(s,a);return s=>{let{id:o}=lr(s);if(!o)return{found:false,reason:"missing id"};let n=e(o);return n?{found:true,id:o,...t(n,r)}:{found:false,reason:"unknown id"}}}function cr(e){return e.length===1?e[0]:t=>{let a=e.map(r=>r(t));return()=>{for(let r of a)r()}}}function hf(e){let t=Array.isArray(e.subscribe)?cr(e.subscribe):e.subscribe;return{version:e.version,getSnapshot:e.getSnapshot,subscribe:t,...e.actions?{actions:e.actions}:{}}}var mt=new Set(["@react_buoy_settings_theme","@react_buoy_settings_preferences","@react_buoy_settings_global","@react_buoy_dev_tools_settings","@react_buoy_settings_tooltip_shown","@react_buoy_modal_hint_acknowledged","@react_buoy_clipboard_hint_acknowledged","@react_buoy_network_filters","@react_buoy_network_preferences","@react_buoy_network_copy_options","@react_buoy_storage_filters","@react_buoy_storage_event_filters","@react_buoy_storage_key_filters","@react_buoy_storage_pinned_keys","@react_buoy_storage_preferences","@react_buoy_storage_diff_viewer_mode","@react_buoy_rq_filters","@react_buoy_rq_preferences","@react_buoy_route_events_event_filters","@react_buoy_route_events_detail_view","@react_buoy_route_events_diff_viewer_mode","@react_buoy_sentry_filters","@react_buoy_sentry_preferences","@react_buoy_highlight_updates_filters","@react_buoy_highlight_updates_settings","@react_buoy_highlight_updates_copy_settings","@react_buoy_events_enabled_sources","@react_buoy_events_copy_settings","@react_buoy_time_machine_diff_viewer_mode","@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),ur=new Set(["@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),dr="@react_buoy_settings_sync_meta",hr="@react_buoy_network_ignored_domains",gr=2e3,be=3e4,qt=15*6e4,gf=15e3,Jt=new Set;function ff(e){return Jt.add(e),()=>Jt.delete(e)}function pf(e){e.includes(hr)&&ee.reload(),Jt.forEach(t=>{try{t(e)}catch{}})}function mf(){return{storage:W,credential:Ao,fetch:(e,t)=>fetch(e,t),subscribeWrites:Cg,setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e),onTeam:e=>{ee.setTeamPatterns(bf(e[hr])),ht.set(e)},onApplied:pf}}function bf(e){if(!e)return[];try{return JSON.parse(e)}catch{return[]}}var fr=class{constructor(e={}){this.started=false;this.pending=new Map;this.applying=new Set;this.pushTimer=null;this.pullTimer=null;this.unsubscribe=null;this.refusedToken=null;this.deps={...mf(),...e}}start(){this.started||(this.started=true,this.unsubscribe=this.deps.subscribeWrites((e,t)=>this.onWrite(e,t)),this.pull())}stop(){this.started=false,this.unsubscribe?.(),this.unsubscribe=null,this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pushTimer=this.pullTimer=null}credential(){let e=this.deps.credential();return e&&e.token!==this.refusedToken?e:null}call(e,t,a){return new Promise((r,s)=>{let o=this.deps.setTimer(()=>s(new Error("timeout")),gf);this.deps.fetch(`${t.origin.replace(/\/$/,"")}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_token:t.token,...a})}).then(n=>{this.deps.clearTimer(o),r(n)},n=>{this.deps.clearTimer(o),s(n)})})}schedulePull(e){this.started&&(this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pullTimer=this.deps.setTimer(()=>{this.pullTimer=null,this.pull()},e))}async readMeta(){try{let e=await this.deps.storage.getItem(dr),t=e?JSON.parse(e):{};return t&&typeof t=="object"?t:{}}catch{return{}}}async writeMeta(e){await this.deps.storage.setItem(dr,JSON.stringify(e)).catch(()=>{})}async pull(){let e=this.credential();if(!e)return this.schedulePull(be);let t,a;try{let i=await this.call("/api/settings/pull",e,{});t=i.status,a=await i.json().catch(()=>null)}catch{return this.schedulePull(be)}if(t===401||t===403)return this.refusedToken=e.token,this.schedulePull(be);if(t===404)return this.schedulePull(qt);if(t!==200||!a)return this.schedulePull(be);let r=a.personal??{},s=await this.readMeta(),o=[];for(let[i,l]of Object.entries(r))if(!(!mt.has(i)||this.pending.has(i))&&!(typeof l?.value!="string"||!(l.updatedAt>(s[i]??0)))){this.applying.add(i);try{await this.deps.storage.setItem(i,l.value)}finally{this.applying.delete(i)}s[i]=l.updatedAt,o.push(i)}for(let i of mt){if(i in r||i in s||this.pending.has(i))continue;let l=await this.deps.storage.getItem(i).catch(()=>null);l!==null&&this.pending.set(i,l)}await this.writeMeta(s),o.length>0&&this.deps.onApplied(o);let n={};for(let[i,l]of Object.entries(a.team??{}))ur.has(i)&&typeof l?.value=="string"&&(n[i]=l.value);this.deps.onTeam(n),this.pending.size>0&&this.schedulePush(0),this.schedulePull(qt)}onWrite(e,t){!this.started||this.applying.has(e)||!mt.has(e)||(this.pending.set(e,t),this.schedulePush(gr))}schedulePush(e){this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pushTimer=this.deps.setTimer(()=>{this.pushTimer=null,this.push()},e)}async push(){if(this.pending.size===0)return;let e=this.credential();if(!e)return this.schedulePush(be);let t=new Map(this.pending),a,r;try{let o=await this.call("/api/settings/push",e,{changes:Object.fromEntries(t)});a=o.status,r=await o.json().catch(()=>null)}catch{return this.schedulePush(be)}if(a===401||a===403)return this.refusedToken=e.token,this.schedulePush(be);if(a===404)return this.schedulePush(qt);if(a!==200||!r||typeof r.updatedAt!="number")return this.schedulePush(be);let s=await this.readMeta();for(let[o,n]of t)this.pending.get(o)===n&&this.pending.delete(o),s[o]=r.updatedAt;await this.writeMeta(s),this.pending.size>0&&this.schedulePush(gr)}},qe=null;function yf(e={}){qe??(qe=new fr(e)),qe.start()}function vf(){qe&&qe.pull()}function Sf(e){return e}function Cf(e,t,a){return r=>{let s=r??{},o=e.props===void 0&&!t?void 0:{...e.props??{},...t?t(s):{}};return{...e,id:s.id||e.id,name:s.name||e.name,description:s.description||e.description,...o!==void 0?{props:o}:{},...a?a(s,e):{}}}}var Xt="__buoyToolActionRegistry";function Qt(){let e=globalThis;return e[Xt]||(e[Xt]=new Set),e[Xt]}function wf(e){let t=Qt();t.add(e);let a=false,r=()=>{if(a)return;a=true;let o=e(),n=async(i,l,c)=>{if(!(i==="network"&&l==="deleteOverrideRule"||i==="impersonate"&&l==="stopImpersonation"))throw new Error("Unsupported account-lock cleanup operation");if(i==="impersonate")return o[i]?.dispose?.(n);let p=o[i]?.actions?.[l];if(!p)throw new Error(`Cleanup unavailable for ${i}`);return p(c)};for(let i of Object.values(o))try{Promise.resolve(i.dispose?.(n)).catch(l=>console.warn("[Buoy] Tool cleanup failed",l))}catch(l){console.warn("[Buoy] Tool cleanup failed",l)}},s=je(()=>{X()?a=false:r()});return()=>{s(),t.delete(e),Promise.resolve().then(()=>{t.size===0&&r()})}}function _e(){if(!X())return{};let e={};for(let t of Qt())try{Object.assign(e,t())}catch{}return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,pr(a)]))}function xf(){return Object.keys(_e())}function Tf(){let e={};for(let[t,a]of Object.entries(_e()))e[t]=Object.keys(a.actions??{});return e}function kf(){return Object.entries(_e()).filter(([,e])=>typeof e.getSnapshot=="function").map(([e])=>e)}async function If(e){Re();let t=_e()[e];if(!t)throw new Error(`Unknown tool "${e}"`);if(typeof t.getSnapshot!="function")throw new Error(`Tool "${e}" has no snapshot to read`);return await t.getSnapshot()}function Zt(){return X()&&Qt().size>0}async function Ef(e,t,a){Re();let r=_e()[e],s=r?.actions?.[t];if(!s)throw new Error(r?`Unknown action "${t}" on tool "${e}"`:`Unknown tool "${e}"`);return await s(a)}async function Af(e=2e3){if(Zt())return true;let t=Bt()+e;for(;Bt()<t;)if(await new Promise(a=>setTimeout(a,50)),Zt())return true;return false}function pr(e){let t=a=>(...r)=>{Re();let s=false,o=je(()=>{X()||(s=true)}),n=()=>{if(s)throw new Error("Buoy account access ended while the operation was pending.");Re()};try{let i=a.apply(e,r);return i&&typeof i.then=="function"?Promise.resolve(i).then(l=>(n(),l)).finally(o):(n(),o(),i)}catch(i){throw o(),i}};return{...e,...e.getSnapshot?{getSnapshot:t(e.getSnapshot)}:{},...e.actions?{actions:Object.fromEntries(Object.entries(e.actions).map(([a,r])=>[a,t(r)]))}:{},...e.subscribe?{subscribe:a=>(Re(),e.subscribe(()=>{X()&&a()}))}:{}}}var ea="__buoyToolUiBridge";function ta(){let e=globalThis;return e[ea]||(e[ea]=new Set),e[ea]}function Rf(e){let t=ta();return t.add(e),()=>{t.delete(e)}}function Of(e){for(let t of ta())try{if(t(e))return true}catch{}return false}function _f(){return ta().size>0}var aa="__buoyToolAttention";function ra(){let e=globalThis;return e[aa]||(e[aa]={byTool:new Map,listeners:new Set}),e[aa]}function Pf(e,t){let a=ra(),r=a.byTool.get(e)??null;if(!(r===t||r&&t&&r.kind===t.kind&&r.label===t.label)){t?a.byTool.set(e,t):a.byTool.delete(e);for(let s of a.listeners)try{s()}catch{}}}function Lf(e){return ra().byTool.get(e)??null}function Mf(e){let t=ra();return t.listeners.add(e),()=>{t.listeners.delete(e)}}import{createContext as Nf,useContext as $f,useEffect as Bf}from"react";var mr=Nf(null);function Df(e,t){let a=$f(mr);return Bf(()=>{if(a)return a(e),()=>a(null)},[a,...t]),a!==null}var br=256*1024;function zf(e){let t=new Set(e?.excludeKeys??[]),a=e?.includeKeys?new Set(e.includeKeys):null,r=0,s=o=>!t.has(o)&&(!a||a.has(o));return{touch:s,allows(o){return s(o)?true:(r+=1,false)},countExcluded(o){r+=o},get excludedHits(){return r},excludedWarning(o){return r>0?`${r} ${o} excluded by you`:null}}}function Ff(){return{ok:true,applied:0,skipped:[],warnings:[]}}function Hf(e){return{ok:false,applied:0,skipped:[],warnings:[e]}}function Wf(e,t){return{ok:false,applied:0,skipped:[{id:e,reason:t}],warnings:[]}}function jf(e,t={}){let{key:a,label:r,oldValue:s,newValue:o,inOld:n,inNew:i}=e;if(!i)return{key:a,label:r,verdict:"removed",oldValue:s};if(!n)return{key:a,label:r,verdict:"added",newValue:o};if((t.equal??ho)(s,o))return{key:a,label:r,verdict:"unchanged"};let l=t.tooLarge??(c=>go(c,br));return l(s)||l(o)?{key:a,label:r,verdict:"too-large",reason:t.tooLargeReason??"value too large to render a diff \u2014 restore still applies it"}:{key:a,label:r,verdict:"changed",oldValue:s,newValue:o}}function Uf(e,t){return e.verdict==="unchanged"?e:{...e,verdict:"wont-apply",reason:t}}function Vf(e,t){let a=r=>r===void 0?[]:r instanceof Map?Array.from(r.keys()):Object.keys(r);return new Set([...a(e),...a(t)])}function Gf(e,t={}){let a=e.toLowerCase();if(t[a])return t[a];for(let[m,v]of Object.entries(t))if(a.includes(m))return v;let r=e.split("").reduce((m,v)=>m+v.charCodeAt(0),0)*137%360,s=.7,o=.6,n=(1-Math.abs(2*o-1))*s,i=n*(1-Math.abs(r/60%2-1)),l=o-n/2,c=0,p=0,b=0;r<60?(c=n,p=i):r<120?(c=i,p=n):r<180?(p=n,b=i):r<240?(p=i,b=n):r<300?(c=i,b=n):(c=n,b=i);let h=m=>Math.round((m+l)*255).toString(16).padStart(2,"0");return`#${h(c)}${h(p)}${h(b)}`}function Yf(e,t={}){let a=t.maxLength??40;if(e===void 0)return t.undefinedLabel??"undefined";if(e===null)return"null";try{if(typeof e=="function")return t.functionLabel??"(fn)";if(typeof e=="string")return e.length>a?`"${e.slice(0,a-3)}..."`:`"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";let r=JSON.stringify(e);return r.length>a?`[${e.length} items]`:r}if(typeof e=="object"){let r=Object.keys(e);if(r.length===0)return"{}";let s=JSON.stringify(e);return s.length<=a?s:`{ ${r.length} keys }`}return String(e).slice(0,a)}catch{return"[complex]"}}function Kf(e,t){if(e===t)return{summary:"no change",changedKeys:[],changedCount:0};if(typeof e!="object"||typeof t!="object"||e===null||t===null)return{summary:"changed",changedKeys:[],changedCount:0};let a=e,r=t,s=Object.keys(a),o=Object.keys(r),n=o.filter(h=>!s.includes(h)),i=s.filter(h=>!o.includes(h)),l=[];for(let h of s)o.includes(h)&&a[h]!==r[h]&&l.push(h);let c=[...n,...i,...l],p=[];if(n.length>0&&p.push(`+${n.length}`),i.length>0&&p.push(`-${i.length}`),l.length>0&&p.push(`~${l.length}`),p.length===0)return{summary:"nested change",changedKeys:[],changedCount:0};let b=c.length;return{summary:`${p.join(" ")} ${b===1?"key":"keys"}`,changedKeys:c,changedCount:b}}function yr(e){if(e==null)return"N/A";if(e===0)return"0 B";let t=1024,a=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(e)/Math.log(t));return`${(e/Math.pow(t,r)).toFixed(1)} ${a[r]}`}function qf(e){if(e==null)return"N/A";if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;if(e<36e5){let r=Math.floor(e/6e4),s=Math.floor(e%6e4/1e3);return s>0?`${r}m ${s}s`:`${r}m`}let t=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4);return a>0?`${t}h ${a}m`:`${t}h`}function Jf(e){return e.toLocaleString()}var vr=5e4;function Xf(e,t=vr){try{let a=JSON.stringify(e);return a.length>t?`[omitted: ${yr(a.length)} \u2014 too large to copy]`:e}catch{return"[omitted: could not serialize]"}}function Qf(e,t=50,a=20,r=20){if(e.length<=t)return e;let s=e.slice(0,a),o=e.slice(-r);return`${s}...${o}`}function Zf(e){if(e>=100&&e<200)return{text:String(e),color:w.info,meaning:"Informational"};if(e>=200&&e<300){let t={200:"OK",201:"Created",202:"Accepted",204:"No Content",206:"Partial Content"};return{text:String(e),color:w.success,meaning:t[e]||"Success"}}if(e>=300&&e<400){let t={301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect"};return{text:String(e),color:w.warning,meaning:t[e]||"Redirect"}}if(e>=400&&e<500){let t={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",408:"Request Timeout",409:"Conflict",410:"Gone",422:"Unprocessable Entity",429:"Too Many Requests"};return{text:String(e),color:w.error,meaning:t[e]||"Client Error"}}if(e>=500){let t={500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};return{text:String(e),color:w.error,meaning:t[e]||"Server Error"}}return{text:String(e),color:w.muted,meaning:"Unknown"}}function ep(e){return{GET:w.success,POST:w.info,PUT:w.warning,DELETE:w.error,PATCH:w.network,HEAD:w.muted,OPTIONS:w.secondary,CONNECT:w.critical,TRACE:w.env}[e.toUpperCase()]||w.muted}function tp(e){try{let t=new URL(e);return{protocol:t.protocol.replace(":",""),host:t.hostname,port:t.port||void 0,pathname:t.pathname,search:t.search||void 0,hash:t.hash||void 0}}catch{return null}}var Je=[];function Sr(e){Je.unshift(e),Je=Je.slice(0,500)}function ap(){return Je}function rp(){Je=[]}var sa=(e=>(e.Debug="debug",e.Info="info",e.Log="log",e.Warn="warn",e.Error="error",e))(sa||{}),oa=(e=>(e.Auth="Auth",e.Custom="Custom",e.Debug="Debug",e.Error="Error",e.Generic="Generic",e.HTTPRequest="HTTP Request",e.Navigation="Navigation",e.Replay="Replay",e.State="State",e.System="System",e.Touch="Touch",e.UserAction="User Action",e))(oa||{});var sp=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,Cr=class{constructor(){this.captureTransaction=e=>(this.logSentryEvent("transaction",e),e);this.captureSpan=e=>(this.logSentryEvent("span",e),e);this.captureEvent=e=>(this.logSentryEvent("event",e),e);this.captureLog=e=>(this.logSentryEvent("console",{message:e.message||"Log entry",level:e.level,category:"console",timestamp:e.timestamp,...e.attributes}),e);this.captureBreadcrumb=e=>{let t="unknown";try{let r=globalThis.getCurrentPathname;r&&(t=r())}catch{}let a=e.category;if(e.message?.toLowerCase().includes("ignore"))return null;if(e.message?.includes("Touch event within element:")&&(e.message=e.message.replace("Touch event within element:","")),a==="navigation"&&e.data?.from&&e.data?.to&&(e.message=`From ${e.data.from} To ${e.data.to}`),a==="touch"&&e.data?.path){e.message&&(e.message=e.message.trim());let r={...e.data,category:a,message:e.message,route:t,timestamp:new Date().toISOString(),path:e.message?[{label:e.message}]:e.data?.path};e.data=r}return this.logSentryEvent("breadcrumb",e),e}}logSentryEvent(e,t){let a="Generic",r=t.category;if(r)switch(r){case"touch":a="Touch";break;case"xhr":case"fetch":case"http":a="HTTP Request";break;case"navigation":a="Navigation";break;case"auth":a="Auth";break;case"console":a="System";break;case"debug":a="Debug";break;default:r.startsWith("ui.")?a="User Action":r.startsWith("replay.")?a="Replay":r.includes("redux")||r.includes("state")?a="State":a="Custom"}let s={id:sp(),timestamp:Date.now(),level:this.getSentryLevel(t),message:this.getSentryMessage(t),metadata:this.getSentryMetadata(t),type:a};Sr(s)}getSentryLevel(e){switch(e.level){case"fatal":case"error":return"error";case"warning":return"warn";case"info":return"info";case"debug":return"debug";default:return"log"}}getSentryMessage(e){let t=e.message;return typeof t=="string"?t:`${e.type||"Unknown"} Event`}getSentryMetadata(e){let{message:t,level:a,type:r,...s}=e;return s}},op=new Cr;import{useState as ia,useEffect as wr}from"react";import{jsx as _,jsxs as Pe}from"react/jsx-runtime";var bt=ke.bubble.settings(),xr=ke.bubble.userPreferences(),na={showEnvironment:true,showQueryButton:true,showWifiToggle:true,showEnvButton:false,showSentryButton:false,showStorageButton:false};function ip({onPress:e}){let[t,a]=ia(na);wr(()=>{r()},[]);let r=async()=>{try{let s=await W.getItem(bt);s&&a(JSON.parse(s))}catch(s){console.error("Failed to load bubble settings:",s)}};return _(Ga,{id:"bubble-settings",title:"SETTINGS",subtitle:`${Object.values(t).filter(Boolean).length}/6 visible`,icon:Ft,iconColor:"#10B981",iconBackgroundColor:"rgba(16, 185, 129, 0.1)",onPress:e||(()=>{}),index:5})}function np({onSettingsChange:e}){let[t,a]=ia(na),[r,s]=ia(true);wr(()=>{o()},[]);let o=async()=>{try{let c=await W.getItem(bt);c&&a(JSON.parse(c))}catch(c){console.error("Failed to load bubble settings:",c)}finally{s(false)}},n=async c=>{try{await W.setItem(bt,JSON.stringify(c)),a(c),e?.(c)}catch(p){console.error("Failed to save bubble settings:",p)}},i=async c=>{let p={...t,[c]:!t[c]};try{let b=await W.getItem(xr),h=b?JSON.parse(b):{},m=c.replace("show","hasSet"),v={...h,[m]:true};await W.setItem(xr,JSON.stringify(v))}catch(b){console.error("Failed to save user preference marker:",b)}n(p)};if(r)return _(T,{style:A.detailContainer,children:_(H,{style:A.loadingText,children:"Loading settings..."})});let l=[{key:"showEnvironment",label:"Environment Indicator",description:"Shows current environment (dev, staging, prod)",icon:_(T,{style:[A.indicator,{backgroundColor:"#10B981"}]})},{key:"showQueryButton",label:"React Query Button",description:"Opens React Query dev tools",icon:_(T,{style:[A.indicator,{backgroundColor:"#F59E0B"}]})},{key:"showWifiToggle",label:"WiFi",description:"Toggle WiFi for testing offline scenarios",icon:_(T,{style:[A.indicator,{backgroundColor:"#8B5CF6"}]})},{key:"showEnvButton",label:"Environment Variables",description:"View and check environment variables",icon:_(Ft,{size:16,color:"#10B981"})},{key:"showSentryButton",label:"Sentry Events",description:"View captured Sentry events and errors",icon:_(T,{style:[A.indicator,{backgroundColor:"#a855f7"}]})},{key:"showStorageButton",label:"Storage Browser",description:"Browse and inspect AsyncStorage data",icon:_(qa,{size:16,color:"#3B82F6"})}];return _(T,{style:A.detailContainer,children:Pe(Ig,{showsVerticalScrollIndicator:false,contentContainerStyle:A.scrollContent,"sentry-label":"ignore bubble settings scroll",children:[Pe(T,{style:A.header,children:[_(H,{style:A.headerTitle,children:"Developer Tools Settings"}),_(H,{style:A.headerDescription,children:"Configure bubble button visibility"})]}),_(T,{style:A.sectionDivider,children:_(H,{style:A.sectionTitle,children:"Bubble Button Visibility"})}),_(T,{style:A.settingsList,children:l.map(c=>Pe(T,{style:A.settingItem,children:[_(T,{style:A.settingIconContainer,children:c.icon}),Pe(T,{style:A.settingContent,children:[_(H,{style:A.settingLabel,children:c.label}),_(H,{style:A.settingDescription,children:c.description})]}),_(Eg,{"sentry-label":"ignore bubble settings section",value:t[c.key],onValueChange:()=>i(c.key),trackColor:{false:"#4B5563",true:"#10B981"},thumbColor:t[c.key]?"#fff":K.textSecondary})]},c.key))}),Pe(T,{style:A.footer,children:[Pe(T,{style:A.noteContainer,children:[_(Ja,{size:16,color:K.textSecondary}),_(H,{style:A.noteText,children:"User status indicator is always visible and cannot be disabled"})]}),_(H,{style:A.restartNote,children:"Changes are saved automatically and will persist across app restarts"})]})]})})}async function lp(){try{let e=await W.getItem(bt);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bubble settings:",e)}return na}var A=Ue.create({scrollContent:{flexGrow:1},sectionCard:{backgroundColor:K.input,borderRadius:8,padding:16,flexDirection:"row",alignItems:"center",marginBottom:12},iconContainer:{width:36,height:36,borderRadius:8,backgroundColor:"rgba(16, 185, 129, 0.1)",justifyContent:"center",alignItems:"center",marginRight:12},textContainer:{flex:1},title:{color:K.text,fontSize:14,fontWeight:"600",marginBottom:2},subtitle:{color:K.textSecondary,fontSize:12},chevron:{color:ct.text.icon,fontSize:20},detailContainer:{flex:1,backgroundColor:K.card},loadingText:{color:K.textSecondary,fontSize:14,textAlign:"center",marginTop:20},header:{padding:16,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.2)"},headerTitle:{color:K.text,fontSize:16,fontWeight:"600",marginBottom:4},headerDescription:{color:K.textSecondary,fontSize:12},settingsList:{padding:16},settingItem:{flexDirection:"row",alignItems:"center",paddingVertical:12,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},settingIconContainer:{width:32,height:32,justifyContent:"center",alignItems:"center",marginRight:12},settingContent:{flex:1,marginRight:12},settingLabel:{color:K.text,fontSize:14,fontWeight:"500",marginBottom:2},settingDescription:{color:ct.text.icon,fontSize:11},indicator:{width:8,height:8,borderRadius:4},footer:{padding:16,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.2)"},noteContainer:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},noteText:{color:K.textSecondary,fontSize:12,flex:1},restartNote:{color:ct.text.icon,fontSize:11,fontStyle:"italic"},sectionDivider:{paddingHorizontal:16,paddingVertical:8,marginTop:8,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.12)"},sectionTitle:{color:K.textSecondary,fontSize:12,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"}});function Tr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function cp(e,t,a={}){let r=a.storage??W,s=a.parse??(l=>JSON.parse(l)),o=a.serialize??(l=>JSON.stringify(l));function n(l){let c=Tr(t)&&Tr(l)?{...t,...l}:l;return a.sanitize?a.sanitize(c,l):c}async function i(){try{let l=await r.getItem(e);return l==null||l===""?null:n(s(l))}catch{return null}}return{key:e,defaults:t,loadOrNull:i,async load(){return await i()??t},async save(l){try{await r.setItem(e,o(l))}catch{}},async clear(){try{await r.removeItem(e)}catch{}}}}import{callCapacitorNative as kr,hasCapacitorPlugin as up,isCapacitorNative as dp}from"@buoy-gg/license/web";function hp(){return!dp()||!up("Preferences")?null:{async getAllKeys(){let{keys:e}=await kr("Preferences","keys");return Array.isArray(e)?e:[]},async multiRemove(e){await Promise.all(e.map(t=>kr("Preferences","remove",{key:t})))}}}import{callCapacitorNative as gp,hasCapacitorPlugin as fp,isCapacitorNative as pp}from"@buoy-gg/license/web";import{useEffect as mp,useId as bp,useRef as Ir,useState as yp}from"react";import{createPortal as vp}from"react-dom";import{jsx as Xe,jsxs as Sp}from"react/jsx-runtime";function Er(){let[e,t]=yp(false),a=Ir(null),r=Ir(null),s=bp(),o=(n=true)=>{t(false),n&&a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true})};return mp(()=>{if(!e)return;r.current?.focus({preventScroll:true});let n=l=>{l.target instanceof Node&&!a.current?.contains(l.target)&&t(false)},i=l=>{l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),t(false),a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true}))};return document.addEventListener("pointerdown",n),document.addEventListener("keydown",i),()=>{document.removeEventListener("pointerdown",n),document.removeEventListener("keydown",i)}},[e]),typeof document>"u"?null:vp(Sp("div",{ref:a,"data-buoy-account":"",style:{position:"fixed",right:"max(16px, env(safe-area-inset-right))",bottom:"max(20px, env(safe-area-inset-bottom))",zIndex:99999,colorScheme:"dark",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:[Xe("style",{children:`
|
|
2
2
|
[data-buoy-account] { font-size: 14px; line-height: 1.5; text-align: left; }
|
|
3
3
|
[data-buoy-account] [role="button"], [data-buoy-account] [role="link"] { cursor: pointer; }
|
|
4
|
-
[data-buoy-account] [role="button"]:focus-visible, [data-buoy-account] [role="link"]:focus-visible { outline: 2px solid ${
|
|
4
|
+
[data-buoy-account] [role="button"]:focus-visible, [data-buoy-account] [role="link"]:focus-visible { outline: 2px solid ${u.color.accent}; outline-offset: 3px; }
|
|
5
5
|
[data-buoy-account] [role="link"]:hover { background: rgba(255,255,255,.06); }
|
|
6
6
|
[data-buoy-account] [aria-disabled="true"] { cursor: wait; }
|
|
7
7
|
[data-buoy-account] .buoy-account-panel {
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
box-shadow: 0 18px 60px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2);
|
|
12
12
|
outline: none;
|
|
13
13
|
}
|
|
14
|
-
`}),Ke("div",{"data-account-launcher":"",children:Ke(_a,{expanded:e,onPress:()=>t(n=>!n)})}),e&&Ke("section",{ref:r,className:"buoy-account-panel",role:"dialog","aria-labelledby":s,tabIndex:-1,onBlur:n=>{n.relatedTarget instanceof Node&&!a.current?.contains(n.relatedTarget)&&o(false)},children:Ke(So,{titleId:s,onClose:()=>o()})})]}),document.body)}import{useState as ne,useRef as H,useEffect as le,useLayoutEffect as Zf,useCallback as D,memo as ra,isValidElement as ep,cloneElement as tp}from"react";var ft=class{static async save(e,t){this.cache.set(e,t);try{await F.setItem(e,JSON.stringify(t))}catch{}}static async load(e){if(this.cache.has(e))return this.cache.get(e);try{let t=await F.getItem(e);if(t){let a=JSON.parse(t);return this.cache.set(e,a),a}}catch{}return null}static saveMinimized(e,t){return this.save(e,{mode:t.mode,panelHeight:t.panelHeight,dimensions:t.floatingDimensions&&t.floatingPosition?{...t.floatingDimensions,top:t.floatingPosition.y,left:t.floatingPosition.x}:void 0,isVisible:false})}};ft.cache=new Map;import{jsx as b,jsxs as V}from"react/jsx-runtime";var M={base:"#121212",card:"#1A1A1A",border:"#333333",textMuted:"#888888",primary:"#20C997"},$={primary:"#F5F5F7",primaryLight:"#F5F5F7",secondary:"#A1A1A6",muted:"#8E8E93",success:"#34C759",info:"#00B8E6"},ap=100,rp=400,pr=500,Je=80,pt=()=>typeof window<"u"?window.innerWidth:0,be=()=>typeof window<"u"?window.innerHeight:0,mr=e=>1-Math.pow(1-e,3),qe=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;function Ie(e,t,a,r){let s=0,o=false,n=performance.now(),i=l=>{if(o)return;let c=Math.min((l-n)/e,1);a(t(c)),c<1?s=requestAnimationFrame(i):r?.()};return s=requestAnimationFrame(i),()=>{o=true,cancelAnimationFrame(s)}}function sp(){if(typeof document>"u")return{top:0,left:0,right:0,bottom:0};let e=document.createElement("div");e.style.cssText="position:fixed;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);visibility:hidden;pointer-events:none",document.body.appendChild(e);let t=e.getBoundingClientRect();return document.body.removeChild(e),{top:Math.max(0,t.top),left:Math.max(0,t.left),right:Math.max(0,window.innerWidth-t.right),bottom:Math.max(0,window.innerHeight-t.bottom)}}function sa(e,t){let a=Math.max(Je,window.innerWidth-t.left-t.right),r=Math.max(Je,window.innerHeight-t.top-t.bottom),s=Math.min(e.width,a),o=Math.min(e.height,r);return{width:s,height:o,left:Math.max(t.left,Math.min(e.left,window.innerWidth-t.right-s)),top:Math.max(t.top,Math.min(e.top,window.innerHeight-t.bottom-o))}}var op=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>V("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[b("line",{x1:18,y1:6,x2:6,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"}),b("line",{x1:6,y1:6,x2:18,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"})]}),ip=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>b("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:b("line",{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:a,strokeLinecap:"round"})}),np=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>V("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[b("rect",{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:a}),b("rect",{x:3,y:14,width:18,height:7,fill:t})]}),lp=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>V("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[b("rect",{x:3,y:3,width:14,height:14,rx:2,stroke:t,strokeWidth:a}),b("line",{x1:7,y1:17,x2:7,y2:21,stroke:t,strokeWidth:a}),b("line",{x1:7,y1:21,x2:21,y2:21,stroke:t,strokeWidth:a}),b("line",{x1:21,y1:21,x2:21,y2:7,stroke:t,strokeWidth:a}),b("line",{x1:17,y1:7,x2:21,y2:7,stroke:t,strokeWidth:a})]}),oa={close:"#FF5F57",minimize:"#FEBC2E",toggleMode:"#28C840"},ia=24,cp=2,na=8,la=e=>({width:ia,height:ia,borderRadius:ia/2,display:"flex",alignItems:"center",justifyContent:"center",background:`radial-gradient(circle, ${e} 6px, transparent 6px)`,border:"none",padding:0,cursor:"pointer",flexShrink:0});function up({onClose:e,onMinimize:t,onToggleMode:a,mode:r}){let s=r==="floating"?np:lp,o=r==="floating"?"Dock to bottom sheet":"Make floating window";return V("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:cp},children:[t&&b("button",{type:"button",onClick:t,style:la(oa.minimize),"aria-label":"Minimize modal",children:b(ip,{size:na,color:"#7A5A00",strokeWidth:1.5})}),a&&b("button",{type:"button",onClick:a,style:la(oa.toggleMode),"aria-label":o,children:b(s,{size:na,color:"#004A1A",strokeWidth:1.5})}),b("button",{type:"button",onClick:e,style:la(oa.close),"aria-label":"Close modal",children:b(op,{size:na,color:"#4A0000",strokeWidth:1.5})})]})}var br=ra(function({isResizing:e,mode:t,hasCustomContent:a=false,variant:r="default"}){let s=t==="floating",o=r==="night";return V("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative",justifyContent:a?"center":void 0,minHeight:a?32:void 0,paddingTop:a?0:8,paddingBottom:a?0:8,backgroundColor:"transparent"},children:[b("div",{style:{width:o?36:e?40:s?50:40,height:o||s?5:3,backgroundColor:o?d.color.placeholder:e?M.primary:s?M.textMuted:M.primary,borderRadius:o?2.5:2,boxShadow:o?"none":`0 0 4px ${M.primary}99`}}),e&&t==="bottomSheet"&&b("div",{style:{position:"absolute",display:"flex",flexDirection:"row",gap:2,marginTop:12},children:[0,1,2].map(n=>b("div",{style:{width:12,height:1,backgroundColor:$.success,opacity:.6}},n))})]})}),dp=ra(function({onAcknowledge:e}){return b("div",{style:{backgroundColor:`${$.info}15`,borderLeft:`3px solid ${$.info}`,borderRadius:8,margin:"8px 12px 4px",overflow:"hidden",boxShadow:`0 0 8px ${$.info}4D`,flexShrink:0},children:V("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:12,gap:12},children:[V("div",{style:{width:32,height:32,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:[b("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${$.info}`,opacity:.6,transform:"scale(0.8)",boxSizing:"border-box"}}),b("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${$.info}`,boxSizing:"border-box"}})]}),V("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[b("span",{style:{fontSize:13,fontWeight:600,color:$.info,letterSpacing:.3},children:"\u{1F4A1} Pro Tip"}),b("span",{style:{fontSize:12,color:$.primaryLight,lineHeight:"16px"},children:"Double-tap the header to transform this into a floating modal"})]}),b("button",{type:"button",onClick:e,style:{backgroundColor:`${$.info}30`,padding:"6px 12px",borderRadius:6,border:`1px solid ${$.info}50`,fontSize:12,fontWeight:600,color:$.info,cursor:"pointer",fontFamily:"inherit",flexShrink:0},children:"Got it!"})]})})});function yr({header:e,isResizing:t,mode:a,onMinimize:r,variant:s="default"}){if(e?.customContent){let o=e.customContent;return ep(e.customContent)&&r&&(o=tp(e.customContent,{onMinimize:r})),V("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},children:[b(br,{isResizing:t,mode:a,hasCustomContent:true,variant:s}),o]})}return V("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",minWidth:0},children:[b(br,{isResizing:t,mode:a,variant:s}),V("div",{style:{padding:"0 16px",display:"flex",flexDirection:"column",alignItems:"center"},children:[e?.title&&b("span",{style:{fontSize:16,fontWeight:600,color:$.primary},children:e.title}),e?.subtitle&&b("span",{style:{fontSize:12,color:$.secondary,paddingTop:4},children:e.subtitle})]}),b("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:b("span",{style:{fontSize:10,color:$.muted,fontStyle:"italic"},children:"Double tap: Toggle \u2022 Triple tap: Close"})})]})}var hp=({visible:e,onClose:t,children:a,header:r,styles:s={},minHeight:o=ap,maxHeight:n,initialHeight:i=rp,animatedHeight:l,benchMotion:c,initialMode:p="bottomSheet",onModeChange:y,persistenceKey:h,enablePersistence:f=true,initialFloatingPosition:v,footer:_,footerHeight:J=0,onBack:ge,onMinimize:z,minimizeRequest:S=0,minimizeTargetPosition:se,initialModalState:L,zIndex:Xe,disableScrollWrapper:Er=false,background:fa=true,variant:wt="night"})=>{let[X]=ne(sp),[pa,ma]=ne(!f),[P,Tt]=ne(p),Qe=H(y);Qe.current=y;let[Le,ye]=ne(false),[xt,Me]=ne(false),[Ar,kt]=ne(i),[oe,Ne]=ne(()=>sa({width:pt(),height:pr,top:v?.y??(be()-pr)/2,left:v?.x??0},X)),[Rr,Ze]=ne(false),[Or,ba]=ne(false),_r=Pa(),Se=H(i),Q=H(oe),W=H({x:oe.left,y:oe.top}),et=H(null),It=H(null),ie=H(null),ve=H([]),ae=D(()=>{ve.current.forEach(u=>u()),ve.current=[]},[]);le(()=>{Q.current=oe},[oe]),le(()=>ae,[ae]);let ya=n||be()-X.top;le(()=>{if(!f||!h){ma(true);return}let u=true;return(async()=>{let g=await ft.load(h);if(u&&g&&(g.mode&&(Tt(g.mode),Qe.current?.(g.mode)),g.panelHeight&&(kt(g.panelHeight),Se.current=g.panelHeight),g.dimensions)){let C=sa(g.dimensions,X);Ne(C),W.current={x:C.left,y:C.top}}u&&ma(true)})(),()=>{u=false}},[h,f]),le(()=>{if(!f||!h||!pa)return;let u=setTimeout(()=>{ft.save(h,{mode:P,panelHeight:Se.current,dimensions:oe,isVisible:e})},500);return()=>clearTimeout(u)},[P,Ar,oe,e,h,f,pa]),le(()=>{let u=true;return(async()=>{try{let g=xe.modal.hintAcknowledged(),C=await F.getItem(g);u&&(Ze(C!=="true"),ba(true))}catch{u&&(Ze(true),ba(true))}})(),()=>{u=false}},[]);let Pr=D(async()=>{try{let u=xe.modal.hintAcknowledged();await F.setItem(u,"true"),Ze(false)}catch{Ze(false)}},[]),Et=D(()=>{Me(false),ye(false);let u=P==="bottomSheet"?"floating":"bottomSheet";Tt(u),Qe.current?.(u)},[P]);le(()=>{Me(false),ye(false)},[P]);let Ce=D(()=>{if(!z)return;let u={mode:P,panelHeight:Se.current,floatingPosition:{x:Q.current.left,y:Q.current.top},floatingDimensions:{width:Q.current.width,height:Q.current.height}};f&&h&&ft.saveMinimized(h,u);let g=se?.x??pt()-50,C=se?.y??be()-150;if(ae(),P==="bottomSheet"){let I=et.current;if(!I){z(u);return}let k=be();ve.current.push(Ie(300,qe,R=>{I.style.opacity=String(1-R),I.style.transform=`translateY(${R*k}px)`},()=>z(u)))}else{let I=ie.current;if(!I){z(u);return}let k={...W.current};ve.current.push(Ie(300,qe,R=>{I.style.opacity=String(1-R);let we=k.x+(g-k.x)*R,Te=k.y+(C-k.y)*R;I.style.transform=`translate(${we}px, ${Te}px)`},()=>z(u)))}},[P,z,se,ae,f,h]),Sa=H(S);le(()=>{Sa.current!==S&&(Sa.current=S,Ce())},[S,Ce]),le(()=>{if(L&&(L.mode&&(Tt(L.mode),Qe.current?.(L.mode)),L.panelHeight&&(kt(L.panelHeight),Se.current=L.panelHeight),L.floatingDimensions&&L.floatingPosition)){let u={width:L.floatingDimensions.width,height:L.floatingDimensions.height,top:L.floatingPosition.y,left:L.floatingPosition.x};Ne(u),W.current={x:L.floatingPosition.x,y:L.floatingPosition.y}}},[L]),Zf(()=>{if(e)if(ae(),P==="bottomSheet"){let u=et.current;if(!u)return;let g=be();u.style.transform=`translateY(${g}px)`,u.style.opacity="0",ve.current.push(Ie(300,mr,C=>{u.style.transform=`translateY(${(1-C)*g}px)`}),Ie(200,qe,C=>{u.style.opacity=String(C)}))}else{let u=ie.current;if(!u)return;W.current={x:Q.current.left,y:Q.current.top},u.style.transform=`translate(${W.current.x}px, ${W.current.y}px)`,u.style.opacity="0",ve.current.push(Ie(200,qe,g=>{u.style.opacity=String(g)}))}},[e,P,ae]);let va=H(0),$e=H(0),Be=H(null),tt=D(()=>{let u=Date.now();u-va.current>500&&($e.current=0),$e.current++,va.current=u,Be.current&&clearTimeout(Be.current),Be.current=setTimeout(()=>{$e.current===2?Et():$e.current>=3&&z&&Ce(),$e.current=0},300)},[Et,z,Ce]);le(()=>()=>{Be.current&&clearTimeout(Be.current)},[]);let at=H({active:false,resizing:false,startY:0,headerOffsetY:0,samples:[]}),Lr=D(u=>{if(P!=="bottomSheet"||u.button!==0||u.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let g=at.current;g.active=true,g.resizing=false,g.startY=u.clientY;let C=u.currentTarget.getBoundingClientRect();g.headerOffsetY=u.clientY-C.top,g.samples=[{t:performance.now(),y:u.clientY}],u.currentTarget.setPointerCapture(u.pointerId)},[P]),Mr=D(u=>{let g=at.current;if(!g.active)return;let C=u.clientY-g.startY;if(!g.resizing&&Math.abs(C)>3&&(g.resizing=true,ae(),ye(true)),!g.resizing)return;let I=u.clientY-g.headerOffsetY,k=be()-I;k=Math.max(o,Math.min(k,ya)),Se.current=k,It.current&&(It.current.style.height=`${k}px`);let R=performance.now();for(g.samples.push({t:R,y:u.clientY});g.samples.length>2&&R-g.samples[0].t>100;)g.samples.shift()},[o,ya,ae]),Nr=D(u=>{let g=at.current;if(!g.active)return;if(g.active=false,!g.resizing){tt();return}ye(false);let C=Se.current,I=u.clientY-g.startY,k=g.samples[0],R=g.samples[g.samples.length-1];if((R&&k&&R.t>k.t?(R.y-k.y)/(R.t-k.t):0)>.8&&I>50||I>150&&C<=o){let we=et.current;if(ae(),we){let Te=be();ve.current.push(Ie(200,qe,U=>{we.style.opacity=String(1-U)}),Ie(300,mr,U=>{we.style.transform=`translateY(${U*Te}px)`},()=>t()))}else t();return}kt(C)},[o,t,tt,ae]),$r=D(()=>{let u=at.current;u.active&&(u.active=false,u.resizing=false,ye(false))},[]),rt=H({active:false,dragging:false,startX:0,startY:0,startPos:{x:0,y:0}}),Br=D(u=>{if(P!=="floating"||Le||u.button!==0||u.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let g=rt.current;g.active=true,g.dragging=false,g.startX=u.clientX,g.startY=u.clientY,g.startPos={...W.current},u.currentTarget.setPointerCapture(u.pointerId)},[P,Le]),Dr=D(u=>{let g=rt.current;if(!g.active)return;let C=u.clientX-g.startX,I=u.clientY-g.startY;if(!g.dragging&&Math.abs(C)+Math.abs(I)>5&&(g.dragging=true,Me(true)),!g.dragging)return;let k=g.startPos.x+C,R=g.startPos.y+I;W.current={x:k,y:R},ie.current&&(ie.current.style.transform=`translate(${k}px, ${R}px)`)},[]),zr=D(()=>{let u=rt.current;if(!u.active)return;if(u.active=false,!u.dragging){tt();return}Me(false);let g=Q.current,C=sa({...g,left:W.current.x,top:W.current.y},X),I=C.left,k=C.top;W.current={x:I,y:k},ie.current&&(ie.current.style.transform=`translate(${I}px, ${k}px)`),Ne(R=>({...R,left:I,top:k}))},[X,tt]),Fr=D(()=>{let u=rt.current;u.active&&(u.active=false,u.dragging=false,Me(false))},[]),At=H({active:false,corner:"bottomRight",startX:0,startY:0,start:{width:0,height:0,top:0,left:0}}),Hr=D(u=>g=>{if(P!=="floating")return;g.stopPropagation();let C=At.current;C.active=true,C.corner=u,C.startX=g.clientX,C.startY=g.clientY,C.start={...Q.current},ye(true),g.currentTarget.setPointerCapture(g.pointerId)},[P]),jr=D(u=>{let g=At.current;if(!g.active)return;let C=u.clientX-g.startX,I=u.clientY-g.startY;if(Math.abs(C)<.5&&Math.abs(I)<.5)return;let k=Math.max(0,X.left),R=be()-Math.max(0,X.bottom),we=pt()-Math.max(0,X.right),Te=pt()*.25,U=g.start,Rt=U.left+U.width,Ot=U.top+U.height,De=U.left,st=U.top,Ia=Rt,_t=Ot;g.corner==="bottomLeft"?(De=Math.max(k,Math.min(U.left+C,Rt-Te)),_t=Math.min(R,Math.max(Ot+I,U.top+Je))):(Ia=Math.min(we,Math.max(Rt+C,U.left+Te)),_t=Math.min(R,Math.max(Ot+I,U.top+Je)));let Wr=Math.max(Te,Ia-De),Ur=Math.max(Je,_t-st),Ea={width:Wr,height:Ur,left:De,top:st};Q.current=Ea,W.current={x:De,y:st},Ne(Ea),ie.current&&(ie.current.style.transform=`translate(${De}px, ${st}px)`)},[X.left,X.right,X.bottom]),Ca=D(()=>{let u=At.current;u.active&&(u.active=false,ye(false),Ne(Q.current))},[]);if(!e)return b("div",{style:{display:"none"},"aria-hidden":true,children:a},"hidden");let wa=r?.title||"Dev tool panel",A=wt==="night",Ta=fa&&A?b("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},"aria-hidden":true,children:b(Mt,{})}):null,xa=V("div",{style:{flex:1,minHeight:0,position:"relative",display:"flex",flexDirection:"column",backgroundColor:A?"transparent":M.base,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden",...s.content},children:[fa&&!A?b(Mt,{}):null,Er?b("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",paddingBottom:J},children:a}):b("div",{style:{flex:1,minHeight:0,overflowY:"auto",paddingBottom:J},children:a}),_?b("div",{style:{position:"absolute",left:0,right:0,bottom:0,backgroundColor:M.base,borderBottomLeftRadius:16,borderBottomRightRadius:16},children:_}):null]}),ka=b("div",{style:{position:"absolute",top:4,right:4,zIndex:10},children:b(up,{onClose:t,onMinimize:z?Ce:void 0,onToggleMode:Et,mode:P})});if(P==="floating"){let u=xt||Le;return V("div",{ref:ie,role:"dialog","aria-label":wa,style:{position:"fixed",left:0,top:0,width:oe.width,height:oe.height,transform:`translate(${W.current.x}px, ${W.current.y}px)`,display:"flex",flexDirection:"column",backgroundColor:A?d.color.bg:M.card,borderRadius:A?d.radius.sheet:6,border:A?`1px solid ${d.color.accent}55`:u?`2px solid ${M.primary}`:`1px solid ${M.border}`,boxShadow:A?`0 0 14px ${d.color.accent}38`:u?`0 0 12px ${M.primary}7A`:`0 0 20px ${M.primary}4D`,...A?{overflow:"hidden"}:null,boxSizing:"border-box",zIndex:Xe??1e3,...s.container},children:[Ta,b("div",{onPointerDown:Br,onPointerMove:Dr,onPointerUp:zr,onPointerCancel:Fr,style:{borderTopLeftRadius:A?d.radius.sheet:6,borderTopRightRadius:A?d.radius.sheet:6,backgroundColor:A?"transparent":M.card,minHeight:56,border:A?"none":`1px solid ${M.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:xt?"grabbing":"grab",position:"relative"},children:b(yr,{header:r,isResizing:xt||Le,mode:P,onMinimize:z?Ce:void 0,variant:wt})}),ka,xa,["bottomLeft","bottomRight"].map(g=>b("div",{onPointerDown:Hr(g),onPointerMove:jr,onPointerUp:Ca,onPointerCancel:Ca,style:{position:"absolute",width:30,height:30,bottom:4,...g==="bottomLeft"?{left:4}:{right:4},zIndex:1e3,touchAction:"none",cursor:g==="bottomLeft"?"nesw-resize":"nwse-resize"},children:b("div",{style:{width:20,height:20,borderRadius:10,boxSizing:"border-box",backgroundColor:u?`${$.success}1A`:"transparent",border:u?`2px solid ${$.success}`:"none",boxShadow:u?`0 0 8px ${$.success}99`:"none"}})},g))]},"floating")}return b("div",{style:{position:"fixed",inset:0,zIndex:Xe??1e3,pointerEvents:"none"},children:b("div",{ref:et,style:{position:"absolute",bottom:0,left:0,right:0,pointerEvents:"auto"},children:V("div",{ref:It,role:"dialog","aria-label":wa,style:{height:Se.current,display:"flex",flexDirection:"column",backgroundColor:A?d.color.bg:M.card,borderTopLeftRadius:A?d.radius.sheet:6,borderTopRightRadius:A?d.radius.sheet:6,border:A?`1px solid ${d.color.accent}55`:`1px solid ${M.border}`,boxShadow:A?`0 -4px 10px ${d.color.accent}38`:`0 -4px 12px ${M.primary}33`,...A?{overflow:"hidden"}:null,boxSizing:"border-box",position:"relative",...s.container},children:[Ta,b("div",{onPointerDown:Lr,onPointerMove:Mr,onPointerUp:Nr,onPointerCancel:$r,style:{borderTopLeftRadius:A?d.radius.sheet:6,borderTopRightRadius:A?d.radius.sheet:6,backgroundColor:A?"transparent":M.card,minHeight:56,border:A?"none":`1px solid ${M.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:"ns-resize",position:"relative"},children:b(yr,{header:r,isResizing:Le,mode:P,onMinimize:z?Ce:void 0,variant:wt})}),ka,Or&&Rr&&!_r&&b(dp,{onAcknowledge:Pr}),xa]})})},"bottomSheet")},gp=ra(e=>Oa()().status!=="admitted"?e.visible?b(fr,{}):null:b(hp,{...e}));import{memo as fp,useMemo as pp}from"react";var ce=class ym{constructor(t,a){this.ordinal=t;this.formatBits=a}};ce.LOW=new ce(0,1),ce.MEDIUM=new ce(1,0),ce.QUARTILE=new ce(2,3),ce.HIGH=new ce(3,2);var mt=ce,ee=class Sm{constructor(t,a){this.modeBits=t;this.numBitsCharCount=a}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}};ee.NUMERIC=new ee(1,[10,12,14]),ee.ALPHANUMERIC=new ee(2,[9,11,13]),ee.BYTE=new ee(4,[8,16,16]),ee.KANJI=new ee(8,[8,10,12]),ee.ECI=new ee(7,[0,0,0]);var bt=ee,ue=class T{constructor(t,a,r,s){this.version=t;this.errorCorrectionLevel=a;this.modules=[];this.isFunction=[];if(t<T.MIN_VERSION||t>T.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let o=[];for(let i=0;i<this.size;i++)o.push(false);for(let i=0;i<this.size;i++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let n=this.addEccAndInterleave(r);if(this.drawCodewords(n),s==-1){let i=1e9;for(let l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);let c=this.getPenaltyScore();c<i&&(s=l,i=c),this.applyMask(l)}}K(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}static encodeText(t,a){let r=ca.makeSegments(t);return T.encodeSegments(r,a)}static encodeBinary(t,a){let r=ca.makeBytes(t);return T.encodeSegments([r],a)}static encodeSegments(t,a,r=1,s=40,o=-1,n=true){if(!(T.MIN_VERSION<=r&&r<=s&&s<=T.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");let i,l;for(i=r;;i++){let h=T.getNumDataCodewords(i,a)*8,f=ca.getTotalBits(t,i);if(f<=h){l=f;break}if(i>=s)throw new RangeError("Data too long")}for(let h of[mt.MEDIUM,mt.QUARTILE,mt.HIGH])n&&l<=T.getNumDataCodewords(i,h)*8&&(a=h);let c=[];for(let h of t){G(h.mode.modeBits,4,c),G(h.numChars,h.mode.numCharCountBits(i),c);for(let f of h.getData())c.push(f)}K(c.length==l);let p=T.getNumDataCodewords(i,a)*8;K(c.length<=p),G(0,Math.min(4,p-c.length),c),G(0,(8-c.length%8)%8,c),K(c.length%8==0);for(let h=236;c.length<p;h^=253)G(h,8,c);let y=[];for(;y.length*8<c.length;)y.push(0);return c.forEach((h,f)=>y[f>>>3]|=h<<7-(f&7)),new T(i,a,y,o)}getModule(t,a){return 0<=t&&t<this.size&&0<=a&&a<this.size&&this.modules[a][t]}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2==0),this.setFunctionModule(r,6,r%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),a=t.length;for(let r=0;r<a;r++)for(let s=0;s<a;s++)r==0&&s==0||r==0&&s==a-1||r==a-1&&s==0||this.drawAlignmentPattern(t[r],t[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let a=this.errorCorrectionLevel.formatBits<<3|t,r=a;for(let o=0;o<10;o++)r=r<<1^(r>>>9)*1335;let s=(a<<10|r)^21522;K(s>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,de(s,o));this.setFunctionModule(8,7,de(s,6)),this.setFunctionModule(8,8,de(s,7)),this.setFunctionModule(7,8,de(s,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,de(s,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,de(s,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,de(s,o));this.setFunctionModule(8,this.size-8,true)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;let a=this.version<<12|t;K(a>>>18==0);for(let r=0;r<18;r++){let s=de(a,r),o=this.size-11+r%3,n=Math.floor(r/3);this.setFunctionModule(o,n,s),this.setFunctionModule(n,o,s)}}drawFinderPattern(t,a){for(let r=-4;r<=4;r++)for(let s=-4;s<=4;s++){let o=Math.max(Math.abs(s),Math.abs(r)),n=t+s,i=a+r;0<=n&&n<this.size&&0<=i&&i<this.size&&this.setFunctionModule(n,i,o!=2&&o!=4)}}drawAlignmentPattern(t,a){for(let r=-2;r<=2;r++)for(let s=-2;s<=2;s++)this.setFunctionModule(t+s,a+r,Math.max(Math.abs(s),Math.abs(r))!=1)}setFunctionModule(t,a,r){this.modules[a][t]=r,this.isFunction[a][t]=true}addEccAndInterleave(t){let a=this.version,r=this.errorCorrectionLevel;if(t.length!=T.getNumDataCodewords(a,r))throw new RangeError("Invalid argument");let s=T.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][a],o=T.ECC_CODEWORDS_PER_BLOCK[r.ordinal][a],n=Math.floor(T.getNumRawDataModules(a)/8),i=s-n%s,l=Math.floor(n/s),c=[],p=T.reedSolomonComputeDivisor(o);for(let h=0,f=0;h<s;h++){let v=t.slice(f,f+l-o+(h<i?0:1));f+=v.length;let _=T.reedSolomonComputeRemainder(v,p);h<i&&v.push(0),c.push(v.concat(_))}let y=[];for(let h=0;h<c[0].length;h++)c.forEach((f,v)=>{(h!=l-o||v>=i)&&y.push(f[h])});return K(y.length==n),y}drawCodewords(t){if(t.length!=Math.floor(T.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let a=0;for(let r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(let s=0;s<this.size;s++)for(let o=0;o<2;o++){let n=r-o,i=(r+1&2)==0?this.size-1-s:s;!this.isFunction[i][n]&&a<t.length*8&&(this.modules[i][n]=de(t[a>>>3],7-(a&7)),a++)}}K(a==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let a=0;a<this.size;a++)for(let r=0;r<this.size;r++){let s;switch(t){case 0:s=(r+a)%2==0;break;case 1:s=a%2==0;break;case 2:s=r%3==0;break;case 3:s=(r+a)%3==0;break;case 4:s=(Math.floor(r/3)+Math.floor(a/2))%2==0;break;case 5:s=r*a%2+r*a%3==0;break;case 6:s=(r*a%2+r*a%3)%2==0;break;case 7:s=((r+a)%2+r*a%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[a][r]&&s&&(this.modules[a][r]=!this.modules[a][r])}}getPenaltyScore(){let t=0;for(let o=0;o<this.size;o++){let n=false,i=0,l=[0,0,0,0,0,0,0];for(let c=0;c<this.size;c++)this.modules[o][c]==n?(i++,i==5?t+=T.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,l),n||(t+=this.finderPenaltyCountPatterns(l)*T.PENALTY_N3),n=this.modules[o][c],i=1);t+=this.finderPenaltyTerminateAndCount(n,i,l)*T.PENALTY_N3}for(let o=0;o<this.size;o++){let n=false,i=0,l=[0,0,0,0,0,0,0];for(let c=0;c<this.size;c++)this.modules[c][o]==n?(i++,i==5?t+=T.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,l),n||(t+=this.finderPenaltyCountPatterns(l)*T.PENALTY_N3),n=this.modules[c][o],i=1);t+=this.finderPenaltyTerminateAndCount(n,i,l)*T.PENALTY_N3}for(let o=0;o<this.size-1;o++)for(let n=0;n<this.size-1;n++){let i=this.modules[o][n];i==this.modules[o][n+1]&&i==this.modules[o+1][n]&&i==this.modules[o+1][n+1]&&(t+=T.PENALTY_N2)}let a=0;for(let o of this.modules)a=o.reduce((n,i)=>n+(i?1:0),a);let r=this.size*this.size,s=Math.ceil(Math.abs(a*20-r*10)/r)-1;return K(0<=s&&s<=9),t+=s*T.PENALTY_N4,K(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let t=Math.floor(this.version/7)+2,a=Math.floor((this.version*8+t*3+5)/(t*4-4))*2,r=[6];for(let s=this.size-7;r.length<t;s-=a)r.splice(1,0,s);return r}}static getNumRawDataModules(t){if(t<T.MIN_VERSION||t>T.MAX_VERSION)throw new RangeError("Version number out of range");let a=(16*t+128)*t+64;if(t>=2){let r=Math.floor(t/7)+2;a-=(25*r-10)*r-55,t>=7&&(a-=36)}return K(208<=a&&a<=29648),a}static getNumDataCodewords(t,a){return Math.floor(T.getNumRawDataModules(t)/8)-T.ECC_CODEWORDS_PER_BLOCK[a.ordinal][t]*T.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let a=[];for(let s=0;s<t-1;s++)a.push(0);a.push(1);let r=1;for(let s=0;s<t;s++){for(let o=0;o<a.length;o++)a[o]=T.reedSolomonMultiply(a[o],r),o+1<a.length&&(a[o]^=a[o+1]);r=T.reedSolomonMultiply(r,2)}return a}static reedSolomonComputeRemainder(t,a){let r=a.map(s=>0);for(let s of t){let o=s^r.shift();r.push(0),a.forEach((n,i)=>r[i]^=T.reedSolomonMultiply(n,o))}return r}static reedSolomonMultiply(t,a){if(t>>>8||a>>>8)throw new RangeError("Byte out of range");let r=0;for(let s=7;s>=0;s--)r=r<<1^(r>>>7)*285,r^=(a>>>s&1)*t;return K(r>>>8==0),r}finderPenaltyCountPatterns(t){let a=t[1];K(a<=this.size*3);let r=a>0&&t[2]==a&&t[3]==a*3&&t[4]==a&&t[5]==a;return(r&&t[0]>=a*4&&t[6]>=a?1:0)+(r&&t[6]>=a*4&&t[0]>=a?1:0)}finderPenaltyTerminateAndCount(t,a,r){return t&&(this.finderPenaltyAddHistory(a,r),a=0),a+=this.size,this.finderPenaltyAddHistory(a,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,a){a[0]==0&&(t+=this.size),a.pop(),a.unshift(t)}};ue.MIN_VERSION=1,ue.MAX_VERSION=40,ue.PENALTY_N1=3,ue.PENALTY_N2=3,ue.PENALTY_N3=40,ue.PENALTY_N4=10,ue.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],ue.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];var mp=ue;function G(e,t,a){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)a.push(e>>>r&1)}function de(e,t){return(e>>>t&1)!=0}function K(e){if(!e)throw new Error("Assertion error")}var yt=class N{constructor(t,a,r){this.mode=t;this.numChars=a;this.bitData=r;if(a<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let a=[];for(let r of t)G(r,8,a);return new N(bt.BYTE,t.length,a)}static makeNumeric(t){if(!N.isNumeric(t))throw new RangeError("String contains non-numeric characters");let a=[];for(let r=0;r<t.length;){let s=Math.min(t.length-r,3);G(parseInt(t.substring(r,r+s),10),s*3+1,a),r+=s}return new N(bt.NUMERIC,t.length,a)}static makeAlphanumeric(t){if(!N.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let a=[],r;for(r=0;r+2<=t.length;r+=2){let s=N.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;s+=N.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),G(s,11,a)}return r<t.length&&G(N.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,a),new N(bt.ALPHANUMERIC,t.length,a)}static makeSegments(t){return t==""?[]:N.isNumeric(t)?[N.makeNumeric(t)]:N.isAlphanumeric(t)?[N.makeAlphanumeric(t)]:[N.makeBytes(N.toUtf8ByteArray(t))]}static makeEci(t){let a=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)G(t,8,a);else if(t<16384)G(2,2,a),G(t,14,a);else if(t<1e6)G(6,3,a),G(t,21,a);else throw new RangeError("ECI assignment value out of range");return new N(bt.ECI,0,a)}static isNumeric(t){return N.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return N.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(t,a){let r=0;for(let s of t){let o=s.mode.numCharCountBits(a);if(s.numChars>=1<<o)return 1/0;r+=4+o+s.bitData.length}return r}static toUtf8ByteArray(t){t=encodeURI(t);let a=[];for(let r=0;r<t.length;r++)t.charAt(r)!="%"?a.push(t.charCodeAt(r)):(a.push(parseInt(t.substring(r+1,r+3),16)),r+=2);return a}};yt.NUMERIC_REGEX=/^[0-9]*$/,yt.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,yt.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";var ca=yt;import{jsx as ua}from"react/jsx-runtime";var Sr=2,bp=fp(function({value:e,size:t,color:a="#000",background:r="#fff"}){let s=pp(()=>{let i=mp.encodeText(e,mt.MEDIUM),l=[];for(let c=0;c<i.size;c++){let p=[];for(let y=0;y<i.size;y++){let h=i.getModule(y,c),f=p[p.length-1];f&&f.dark===h?f.length+=1:p.push({dark:h,length:1})}l.push(p)}return l},[e]),o=s.length+Sr*2,n=t/o;return ua(x,{accessibilityRole:"image",accessibilityLabel:"QR code",style:{width:t,height:t,backgroundColor:r,padding:n*Sr},children:s.map((i,l)=>ua(x,{style:{flexDirection:"row",height:n},children:i.map((c,p)=>ua(x,{style:{width:c.length*n,height:n,backgroundColor:c.dark?a:r}},p))},l))})});import{Children as yp,useEffect as Sp,useRef as vp}from"react";import{Fragment as Cp,jsx as j,jsxs as St}from"react/jsx-runtime";function wp({children:e,style:t}){return j(B,{style:[m.sectionLabel,t],children:e})}function Tp({children:e,centered:t,tone:a="tertiary",style:r}){let s=He.flatten(r),o=!!s&&(s.marginHorizontal!=null||s.margin!=null);return j(B,{style:[m.footnote,o?null:m.footnoteInset,a==="secondary"?m.footnoteSecondary:null,a==="warning"?m.footnoteWarning:null,a==="danger"?m.footnoteDanger:null,t?m.footnoteCentered:null,r],children:e})}function xp({children:e,padded:t,glass:a,style:r}){return j(x,{style:[m.card,a?m.cardGlass:null,t?m.cardPadded:null,r],children:e})}function vr({inset:e=d.rowPadH}){return j(x,{style:[m.separator,{marginLeft:e}]})}function kp({children:e,inset:t=d.rowPadH}){let a=yp.toArray(e);return j(Cp,{children:a.map((r,s)=>St(x,{children:[s>0?j(vr,{inset:t}):null,r]},r.key??s))})}var Cr=56,wr=32,vt=22,Tr=5,Ip=Cr-vt-Tr*2;function Ep({value:e,onValueChange:t,disabled:a,testID:r,accessibilityLabel:s}){let o=vp(new $t.Value(e?1:0)).current;return Sp(()=>{$t.timing(o,{toValue:e?1:0,duration:200,useNativeDriver:lg.OS!=="web"}).start()},[e,o]),j(it,{activeOpacity:.8,disabled:a,onPress:()=>t(!e),testID:r,accessibilityLabel:s,accessibilityRole:"switch",accessibilityState:{checked:e,disabled:a},hitSlop:{top:8,bottom:8,left:8,right:8},style:[m.switchTrack,e?m.switchTrackOn:null,a?m.switchDisabled:null],children:j($t.View,{style:[m.switchThumb,e?m.switchThumbOn:null,{transform:[{translateX:o.interpolate({inputRange:[0,1],outputRange:[0,Ip]})}]}]})})}function Ap({label:e,selected:t,onPress:a,disabled:r,icon:s,testID:o}){return St(it,{activeOpacity:.7,disabled:r||!a,onPress:a,testID:o,style:[m.chip,t?m.chipSelected:null,r?m.chipDisabled:null],children:[s,j(B,{style:[m.chipText,t?m.chipTextSelected:null],children:e})]})}function Rp({label:e,onPress:t,variant:a="secondary",size:r="lg",icon:s,disabled:o,fullWidth:n=true,testID:i,accessibilityLabel:l}){let c=a==="primary"?d.color.onAccent:a==="tertiary"?d.color.text:a==="destructive"?d.color.danger:d.color.accent;return St(it,{activeOpacity:.7,disabled:o,onPress:t,testID:i,accessibilityRole:"button",accessibilityLabel:l??e,accessibilityState:{disabled:!!o},style:[m.button,r==="md"?m.buttonMd:m.buttonLg,a==="primary"?m.buttonPrimary:a==="ghost"?m.buttonGhost:m.buttonPlate,n?m.buttonFullWidth:null,o?m.buttonDisabled:null],children:[s,j(B,{style:[r==="md"?m.buttonTextMd:m.buttonTextLg,{color:c}],children:e})]})}function Op({tabs:e,activeKey:t,onChange:a,size:r="md",glass:s,testIDPrefix:o}){let n=r==="sm";return j(x,{style:[m.segmentTrack,s?m.segmentTrackGlass:null],children:e.map(i=>{let l=i.key===t;return St(it,{activeOpacity:.7,testID:o?`${o}-${i.key}`:void 0,accessibilityRole:"tab",accessibilityState:{selected:l},accessibilityLabel:i.label,onPress:()=>a(i.key),style:[m.segment,n?m.segmentSm:null,l?s?m.segmentActiveGlass:m.segmentActive:null],children:[j(B,{style:[m.segmentText,n?m.segmentTextSm:null,l?m.segmentTextActive:null],children:i.label}),l?j(x,{style:[m.segmentUnderline,n?m.segmentUnderlineSm:null]}):null]},i.key)})})}function _p({label:e,tone:t="neutral"}){let a=t==="accent"?m.badgeAccent:t==="warning"?m.badgeWarning:t==="danger"?m.badgeDanger:t==="info"?m.badgeInfo:m.badgeNeutral,r=t==="accent"?m.badgeTextAccent:t==="warning"?m.badgeTextWarning:t==="danger"?m.badgeTextDanger:t==="info"?m.badgeTextInfo:m.badgeTextNeutral;return j(x,{style:[m.badge,a],children:j(B,{style:[m.badgeText,r],children:e})})}var m=He.create({sectionLabel:{color:d.color.textSecondary,fontSize:d.font.label,fontWeight:"600",letterSpacing:Na,textTransform:"uppercase",marginBottom:8,marginLeft:d.labelInset},footnote:{color:d.color.textTertiary,fontSize:d.font.caption,fontWeight:"500",lineHeight:d.font.caption*1.4,marginTop:8},footnoteInset:{marginLeft:d.labelInset},footnoteSecondary:{color:d.color.textSecondary},footnoteWarning:{color:d.color.warning},footnoteDanger:{color:d.color.danger},footnoteCentered:{textAlign:"center",marginLeft:0},card:{backgroundColor:d.color.surface,borderRadius:d.radius.card,borderWidth:1,borderColor:d.color.border,overflow:"hidden"},cardGlass:{backgroundColor:d.color.glass,borderColor:d.color.glassBorder},cardPadded:{padding:d.cardPad,gap:10},separator:{height:He.hairlineWidth,backgroundColor:d.color.separator},switchTrack:{width:Cr,height:wr,borderRadius:wr/2,borderWidth:1,borderColor:d.color.fillTertiary,backgroundColor:d.color.surfaceElevated,paddingHorizontal:Tr,justifyContent:"center",overflow:"hidden"},switchTrackOn:{backgroundColor:d.color.accentFill,borderColor:d.color.accentBorderStrong},switchDisabled:{opacity:.4},switchThumb:{width:vt,height:vt,borderRadius:vt/2,backgroundColor:d.color.knob},switchThumbOn:{backgroundColor:d.color.accent},chip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:14,paddingVertical:9,borderRadius:d.radius.chip,borderWidth:1.5,backgroundColor:d.color.buttonSurface,borderColor:d.color.fillTertiary},chipSelected:{borderColor:d.color.accentBorderStrong},chipDisabled:{opacity:.4},chipText:{fontSize:d.font.body,fontWeight:"500",color:d.color.textSecondary},chipTextSelected:{color:d.color.accent},button:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},buttonMd:{height:34,paddingHorizontal:16,borderRadius:17},buttonLg:{height:50,paddingHorizontal:20,borderRadius:25},buttonPrimary:{backgroundColor:d.color.accent},buttonPlate:{backgroundColor:d.color.button},buttonGhost:{backgroundColor:"transparent"},buttonFullWidth:{alignSelf:"stretch"},buttonDisabled:{opacity:.4},buttonTextMd:{fontSize:15,fontWeight:"600"},buttonTextLg:{fontSize:17,fontWeight:"600"},segmentTrack:{flex:1,flexDirection:"row",backgroundColor:d.color.bg,borderRadius:d.radius.row,borderWidth:1,borderColor:d.color.border,padding:3},segment:{flex:1,paddingVertical:8,alignItems:"center",justifyContent:"center",borderRadius:d.radius.segment},segmentTrackGlass:{backgroundColor:d.color.glass,borderColor:d.color.glassBorder},segmentActive:{backgroundColor:d.color.surfaceElevated},segmentActiveGlass:{backgroundColor:d.color.glassElevated},segmentText:{fontSize:d.font.caption,fontWeight:"500",color:d.color.textSecondary},segmentTextActive:{fontWeight:"600",color:d.color.text},segmentUnderline:{position:"absolute",bottom:2,width:24,height:2.5,borderRadius:1.25,backgroundColor:d.color.accent,shadowColor:d.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:6},segmentSm:{paddingVertical:5},segmentTextSm:{fontSize:12},segmentUnderlineSm:{bottom:1.5,width:20,height:2,borderRadius:1},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:d.radius.badge,alignSelf:"flex-start"},badgeText:{fontSize:d.font.micro,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"},badgeAccent:{backgroundColor:d.color.accentSoft},badgeTextAccent:{color:d.color.accent},badgeWarning:{backgroundColor:d.color.warningSoft},badgeTextWarning:{color:d.color.warning},badgeDanger:{backgroundColor:d.color.dangerSoft},badgeTextDanger:{color:d.color.danger},badgeInfo:{backgroundColor:d.color.infoSoft},badgeTextInfo:{color:d.color.info},badgeNeutral:{backgroundColor:d.color.fillSecondary},badgeTextNeutral:{color:d.color.textSecondary}});import{jsx as Pe,jsxs as Pp}from"react/jsx-runtime";function da(e){switch(Lt(String(e))){case"dev":return{label:"DEV",backgroundColor:w.warning};case"qa":return{label:"QA",backgroundColor:w.optional};case"staging":return{label:"STAGING",backgroundColor:w.success};case"prod":return{label:"PROD",backgroundColor:w.error};case"local":default:return{label:"LOCAL",backgroundColor:w.info}}}function Lp({color:e}){return Pe("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:Pe("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Mp({environment:e,interactive:t=false,onPress:a}){let r=da(e);return Pp("button",{onClick:t?a:void 0,"aria-label":`Environment: ${r.label}`,style:{display:"flex",flexDirection:"row",alignItems:"center",padding:`6px ${t?4:8}px 6px 8px`,flexShrink:0,background:"none",border:"none",cursor:t?"pointer":"default"},children:[Pe("div",{style:{width:8,height:8,borderRadius:4,backgroundColor:r.backgroundColor,marginRight:6,boxShadow:`0 0 4px ${r.backgroundColor}99`}}),Pe("span",{style:{fontSize:11,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:r.label}),t&&Pe("span",{style:{marginLeft:2,display:"flex"},children:Pe(Lp,{color:"#7A8599"})})]})}import{jsx as Ee,jsxs as ha}from"react/jsx-runtime";var Np=140,$p=28,xr=44,Bp=8,Dp=24;function ga(e){switch(Lt(e)){case"local":return{label:"LOCAL",backgroundColor:w.info};case"dev":return{label:"DEV",backgroundColor:w.warning};case"qa":return{label:"QA",backgroundColor:w.optional};case"staging":return{label:"STAGING",backgroundColor:w.success};case"prod":return{label:"PROD",backgroundColor:w.error};default:return{label:"LOCAL",backgroundColor:w.info}}}function zp({environment:e,isSelected:t,onPress:a}){let r=ga(e);return ha(cg,{onPress:a,style:({pressed:s})=>[he.optionContainer,t&&he.optionContainerSelected,s&&he.optionContainerPressed],children:[ha(x,{style:he.optionLeft,children:[Ee(x,{style:[he.optionDot,{backgroundColor:r.backgroundColor},{shadowColor:r.backgroundColor,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4,elevation:2}]}),Ee(B,{style:he.optionLabel,children:r.label})]}),t&&Ee($a,{size:14,color:w.success,strokeWidth:3})]})}function Fp({hasItems:e,currentEnvironment:t,availableEnvironments:a,onSelect:r,width:s=Np,collapsedContent:o}){let n=Bp+a.length*xr+Dp+4,i=ha(x,{style:he.collapsedEnvBadge,children:[Ee(x,{style:[he.collapsedDot,{backgroundColor:ga(t).backgroundColor}]}),Ee(B,{style:he.collapsedLabel,children:ga(t).label})]});return Ee(La,{hasItems:e,width:s,expandedHeight:n,peekHeight:$p,showCount:false,collapsedContent:o||i,collapsedLabel:`Switch environment from ${t}`,children:a.map(l=>Ee(zp,{environment:l,isSelected:l===t,onPress:()=>r(l)},l))})}var he=He.create({collapsedEnvBadge:{flexDirection:"row",alignItems:"center",gap:6},collapsedDot:{width:8,height:8,borderRadius:4},collapsedLabel:{fontSize:11,fontWeight:"600",color:w.primaryLight,letterSpacing:.5},optionContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,height:xr,width:"100%"},optionContainerSelected:{backgroundColor:"rgba(128, 128, 128, 0.1)"},optionContainerPressed:{backgroundColor:"rgba(128, 128, 128, 0.2)"},optionLeft:{flexDirection:"row",alignItems:"center",flex:1},optionDot:{width:8,height:8,borderRadius:4,marginRight:10},optionLabel:{fontSize:12,fontWeight:"600",color:w.primaryLight,letterSpacing:.5}});import{useState as kr}from"react";import{jsx as te,jsxs as Ct}from"react/jsx-runtime";var Ir=36;function Hp({color:e,flipped:t}){return te("svg",{width:10,height:10,viewBox:"0 0 24 24","aria-hidden":"true",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:te("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function jp(){return te("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:te("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"#4AFF9F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function Wp({currentEnvironment:e,availableEnvironments:t,onSelect:a}){let[r,s]=kr(false),[o,n]=kr(null),i=da(e),l=t.length*Ir;return Ct("div",{style:{position:"relative",zIndex:1e3,flexShrink:0},children:[te("div",{style:{position:"absolute",bottom:"100%",left:0,right:0,height:r?l:0,opacity:r?1:0,overflow:"hidden",transition:"height 200ms ease, opacity 200ms ease",backgroundColor:"rgba(8,12,21,0.95)",border:"1px solid #00B8E666",borderBottomWidth:0,borderTopLeftRadius:6,borderTopRightRadius:6,boxShadow:"0 -4px 8px rgba(0,0,0,0.3)"},children:t.map(c=>{let p=da(c),y=String(c).toLowerCase()===String(e).toLowerCase();return Ct("button",{onClick:()=>{s(false),a(c)},onMouseEnter:()=>n(String(c)),onMouseLeave:()=>n(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:Ir,padding:"0 10px",background:y?"rgba(128,128,128,0.1)":o===String(c)?"rgba(128,128,128,0.2)":"none",border:"none",cursor:"pointer"},children:[Ct("span",{style:{display:"flex",alignItems:"center"},children:[te("span",{style:{width:6,height:6,borderRadius:3,backgroundColor:p.backgroundColor,marginRight:8}}),te("span",{style:{fontSize:10,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:p.label})]}),y&&te(jp,{})]},String(c))})}),Ct("button",{onClick:()=>s(c=>!c),"aria-expanded":r,"aria-label":`Environment: ${i.label}. Click to switch.`,style:{display:"flex",alignItems:"center",gap:6,padding:"6px 6px 6px 8px",borderRadius:6,borderTopLeftRadius:r?0:6,borderTopRightRadius:r?0:6,backgroundColor:r?"rgba(8,12,21,0.95)":"transparent",border:"none",cursor:"pointer"},children:[te("span",{style:{width:8,height:8,borderRadius:4,backgroundColor:i.backgroundColor,boxShadow:`0 0 4px ${i.backgroundColor}99`}}),te("span",{style:{fontSize:11,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:i.label}),te(Hp,{color:"#7A8599",flipped:r})]})]})}export{yl as ARROW_BOTTOM_OFFSET,Sl as ARROW_HEIGHT,Cc as ASSETS_ICON_COLOR,fr as AccountSetup,_a as AccountSetupButton,Wo as ActionCopyButton,qc as Activity,uu as ActivityIcon,wi as AddFilterButton,Si as AddFilterInput,eu as AlertCircle,wd as AlertCircleIcon,au as AlertOctagon,su as AlertTriangle,fu as AlertTriangleIcon,od as AskBuoyIcon,yc as AssetsIcon,bn as BACKGROUND_PRESETS,Bn as BACKGROUND_STORAGE_KEY,Md as BENCHMARK_ICON_COLOR,eg as BUOY_SYNTHETIC_MARK,Ai as BackButton,Qn as BackgroundSwitcher,Ri as Badge,Dc as BarChart3,Hc as BarChart3Icon,hg as BaseEventStore,Rd as BenchmarkIcon,_h as BenchmarkLegacyIcon,lu as Bookmark,hu as Box,yu as BoxIcon,Vf as BubbleSettingsDetail,Uf as BubbleSettingsSection,mu as Bug,rd as BugIcon,to as CELLS,gl as CLIP_OFFSCREEN_CELLS,eh as CLOCK_TOOL_ICON_COLOR,Zl as CONSOLE_ICON_COLOR,nr as COPY_PAYLOAD_MAX_BYTES,Xl as CameraIcon,Og as ChangeLog,zo as ChangeRow,$a as Check,vu as CheckCircle,Tc as CheckCircle2,Ed as CheckCircle2Icon,ku as CheckCircleIcon,wu as CheckIcon,Kc as CheckSquare,bc as CheckSquareIcon,Eu as ChevronDown,Ru as ChevronDownIcon,_u as ChevronLeft,Lu as ChevronLeftIcon,Nu as ChevronRight,Bu as ChevronRightIcon,zu as ChevronUp,Kl as ChevronUpIcon,pi as ChipStrip,Qi as ClipboardHintBanner,ql as Clock,ju as ClockIcon,Jd as ClockToolIcon,Vc as Cloud,Jc as CloudIcon,$n as CollapsibleSection,Qs as CompactFilterChips,bl as CompactRow,co as CompareBar,Jh as ConsoleIcon,Uu as Copy,Mo as CopyButton,Yu as CopyIcon,Bi as CountBadge,Ma as CyberpunkSectionButton,Cn as DEFAULT_BACKGROUND,dn as DEVTOOLS_CARD_CONSTANTS,Fn as DataInspector,Ba as Database,ld as DatabaseIcon,il as DaylightTunable,Yi as DeepFieldTunable,xn as DetailView,Co as DetailViewToggle,pn as DevToolsCard,io as DiffModeTabs,Zu as DockBottom,sd as Download,Yd as DownloadIcon,An as DraggableHeader,Kn as DynamicFilterView,Gh as ENV_ICON_COLOR,ml as EVENT_LIST_PRESET,cd as Edit3,Xu as Edit3Icon,Gi as EmptyState,ii as EntityFilterView,Wh as EnvIcon,vd as EnvLaptopIcon,Mp as EnvironmentIndicator,Fp as EnvironmentSelector,Wp as EnvironmentSelectorInline,go as EventHistoryViewer,rn as EventListItem,mo as EventPickerModal,ol as EventStepperFooter,Cu as EventsIcon,La as ExpandablePopover,hl as ExpandedInfoRow,Ci as ExportPreview,yd as Eye,ad as EyeIcon,Da as EyeOff,nd as EyeOffIcon,On as FeatureGate,oc as FileCode,hd as FileCodeIcon,Td as FileJson,lh as FileJsonIcon,Ad as FileText,md as FileTextIcon,Ld as Film,Zc as FilmIcon,Dd as Filter,mi as FilterBadge,Cd as FilterIcon,ki as FilterList,gi as FilterSection,Wd as FlaskConical,Id as FlaskConicalIcon,Kd as FloatWindow,El as FloatingTool,xl as FloatingToolDivider,Ll as FloatingToolHost,kl as FloatingToolUserStatus,ri as FooterButton,Xo as FooterCaption,ei as FooterMessage,Ko as FooterRow,wo as FreeAccountPrompt,Gl as GAME_UI_ALERT_STATES,Hl as GameUICollapsibleSection,Ul as GameUICompactStats,Vl as GameUIIssuesList,Wl as GameUIStatusHeader,Zd as GitBranch,_d as GitBranchIcon,sh as Globe,gd as GlobeIcon,Pn as GripVerticalIcon,Ac as Hand,yh as HandIcon,cc as HardDrive,$d as HardDriveIcon,ch as Hash,Hd as HashIcon,Sn as HeaderSearchButton,iu as HelpCircle,Vu as HighlightIcon,Ch as HighlightUpdatesIcon,ud as HighlighterIcon,an as HintsProvider,Xr as HistoryEntryRow,Qr as HistoryList,Vr as HistoryProvider,fh as Home,Ic as HomeIcon,fc as IMAGES_ICON_COLOR,Lc as IMAGE_OVERLAY_ICON_COLOR,Ec as IMPERSONATE_ICON_COLOR,pd as IconBackground,Gu as IconCircle,Hu as IconContainer,td as IconLine,qu as IconRect,Sh as Image,ru as ImageIcon,Rc as ImageOverlayIcon,dc as ImagesIcon,xc as ImpersonateIcon,xh as Info,Gd as InfoIcon,yo as InfoRow,Bo as InlineCopyButton,Gc as JOTAI_ICON_COLOR,jc as JotaiIcon,gp as JsModal,Rh as Key,Xd as KeyIcon,vh as LIFECYCLE_TOOL_ICON_COLOR,Oh as LOCATION_TOOL_ICON_COLOR,fo as LOGIN_COMMAND,ro as LOG_LIST_PRESET,kd as LaptopIcon,Mh as Layers,ah as LayersIcon,fn as LicenseEntryModal,ph as LifecycleToolIcon,Wi as LinearFade,Dh as Link,gh as LinkIcon,ui as ListItem,gn as LiveSkyTunable,kh as LocationToolIcon,Hh as Lock,Qd as LockIcon,Zt as LogLevel,Zt as LogLevelEnum,ea as LogType,ea as LogTypeEnum,vo as MAX_PERIOD,mc as Maximize2,nh as Maximize2Icon,Vi as MethodBadge,Uh as Minus,hh as MinusIcon,ti as ModalHeader,si as ModalHintBanner,al as MoonlightTunable,Yh as Music,nu as MusicIcon,Fh as NETWORK_ICON_COLOR,Na as NIGHT_LABEL_TRACKING,Ud as NOTIFICATIONS_ICON_COLOR,qh as Navigation,ih as NavigationIcon,dd as NetworkGlobeIcon,Bh as NetworkIcon,_p as NightBadge,Rp as NightButton,xp as NightCard,Ap as NightChip,Tp as NightFootnote,kp as NightRows,wp as NightSectionLabel,Op as NightSegmented,vr as NightSeparator,Ep as NightSwitch,qi as NoDataEmptyState,en as NoResultsEmptyState,sn as NoSearchResultsEmptyState,zd as NotificationsIcon,zn as OTTO_ANCHORS,Wn as OTTO_ANCHOR_SIZE,Tn as OTTO_GRID,el as OTTO_GROUPS,Yn as OTTO_NOTES,En as OTTO_PALETTE,nl as OTTO_REEL,Zs as OTTO_SCENES,Oi as OTTO_SCENE_BY_ID,Mi as OTTO_SCENE_CROP_H,fi as OTTO_SCENE_H,bi as OTTO_SCENE_OTTO,li as OTTO_SCENE_PALETTE,di as OTTO_SCENE_W,Nn as OTTO_STATES,qn as OTTO_STATE_NAMES,sl as OTTO_USES,oi as Otto,Zo as OttoMotionView,Uo as OttoPixels,Di as OttoSceneFrame,ji as OttoSceneStill,Yo as OttoStill,uh as PERMISSIONS_ICON_COLOR,ht as PERSONAL_SETTING_KEYS,or as PREVIEW_ITEM_RENDER_BYTE_LIMIT,ec as Palette,bh as PaletteIcon,sc as Pause,wh as PauseIcon,oh as PermissionsIcon,du as Phone,pu as PhoneIcon,jo as Pill,pl as PillBadge,tc as Pin,lc as Play,Eh as PlayIcon,hc as Plus,Ph as PlusIcon,pc as Power,Bd as PowerIcon,ul as PowerToggleButton,id as PrimitiveGlobeIcon,yn as ProBadge,Dn as ProFeatureBanner,wn as ProUpgradeModal,bp as QrCodeView,fd as QueryIcon,hs as REMOTE_RELOAD_DELAY_MS,zi as RadialGlow,Ni as RasterLayer,Od as ReactQueryIcon,Ju as ReduxIcon,Sc as RefreshCw,$h as RefreshCwIcon,$o as RelativeTime,Ih as RenderCountIcon,mh as RenderPulseIcon,Pc as Route,$u as RouteDotIcon,th as RouteIcon,qd as RouteMapIcon,Pu as RoutePathIcon,Au as RoutePinIcon,Fu as RouteTwoPinsIcon,xu as RoutesIcon,vl as SPACING_GAP,Sd as ScenariosIcon,wc as Search,Un as SearchBar,zh as SearchIcon,ni as SectionHeader,Nd as SentryBugIcon,bu as SentryIcon,cr as SentryLogger,kc as Server,Pd as ServerIcon,Nt as Settings,jh as SettingsIcon,Oc as SettingsSolid,ar as SettingsSync,Mc as Shield,Vh as ShieldIcon,Su as Smartphone,Tu as SmartphoneIcon,Uc as Square,Qc as SquareDashed,vc as SquareDashedIcon,gc as SquareIcon,dh as StackPulseIcon,Zr as StandaloneHistoryList,nn as StatsCard,Li as StatusBadge,mn as StatusIndicator,ed as StorageIcon,Fd as StorageStackIcon,$i as StorageTypeBadge,Aa as Subscribable,Qa as TEAM_SETTING_KEYS,ko as TIER_LIMITS,nc as TIME_MACHINE_ICON_COLOR,bo as TRANSPARENT,Ji as TabSelector,_c as TestTube2,Kh as TestTube2Icon,Eo as TickProvider,vn as TimeDisplay,rc as TimeMachineIcon,Iu as Timer,Ou as TimerIcon,ci as ToggleRow,Mt as ToolBackground,Zi as ToolButton,ln as ToolEmptyState,Vo as ToolFooter,sr as ToolScreenHeaderContext,Go as ToolbarClearButton,Fo as ToolbarCopyButton,Mu as Touchpad,Du as TouchpadIcon,Fc as Trash,Bc as Trash2,Ql as Trash2Icon,Th as TrashIcon,Nc as TriangleAlert,Ah as TriangleAlertIcon,Hi as TypeBadge,Wc as Unlock,rh as UnlockIcon,jn as UpgradeModal,In as UpgradePrompt,Yc as Upload,jd as UploadIcon,Xc as User,Lh as UserIcon,Jl as Users,Wu as UsersIcon,Pi as ValueTypeBadge,ao as ViewToggleCards,Ku as Volume,Qu as VolumeIcon,ho as WATER_CELLS,po as WATER_FRAMES,oo as WATER_ROW0,lo as WATER_ROWS,dt as WIRE_DETAIL_LIMIT_BYTES,Ya as WIRE_INLINE_LIMIT_BYTES,tu as Wifi,xd as WifiBifIcon,Vd as WifiCircuitIcon,bd as WifiIcon,tl as WindowControls,Xi as Wormhole,cu as X,ou as XCircle,ic as XCircleIcon,ac as XIcon,zc as ZUSTAND_ICON_COLOR,gu as Zap,uc as ZapIcon,$c as ZustandIcon,jl as absoluteFill,lr as add,ut as approxJsonSize,Ae as assertAccountAccess,Hn as backgroundStore,bs as browserRouter,Y as buoyColors,Tl as calculateTargetPosition,wl as calculateTooltipPosition,pf as canOpenBuoyTools,Ja as capDetail,Ef as classifyPreviewItem,Hf as clearEntries,Ki as copyToClipboard,tg as countBuoyListener,Fi as createAutoDetectedClipboard,Tf as createRestoreScope,Jg as createSyncAdapter,sf as createToolFactory,Rg as createToolStore,Po as cycleIndexes,Yf as definePersistedSetting,rf as defineToolPreset,Kg as detailByIdAction,xe as devToolsStorageKeys,Qh as dialColors,_l as dismissFloatingTool,df as dispatchToolAction,zl as displayValue,xf as emptyRestoreResult,Of as entityColor,Ft as expandKeyedArrays,kf as failedRestore,Ga as findKeyPath,Io as flatColors,Hs as flattenObject,ir as formatBytes,Lf as formatDuration,Bf as formatHttpStatus,Mf as formatNumber,js as formatPath,xo as formatRelativeTime,Ds as formatValue,_f as formatValuePreview,w as gameUIColors,fe as getAccountAccess,Ui as getAutoDetectedClipboard,Il as getBubbleAnchorPosition,Gf as getBubbleVisibilitySettings,Us as getCachedOptionalModule,Ls as getConstructorName,fs as getDevServerOrigin,is as getDeviceInfo,Ff as getEntries,Al as getFloatingTools,Df as getMethodColor,Ln as getPreset,ag as getRealAppState,Es as getRegisteredToolModule,Gs as getRenderCaptureProvider,Zh as getSafeAreaInsets,Ts as getSafeCurrentPathname,xs as getSafeCurrentRoute,ws as getSafeRouter,Cl as getScreenCenterY,tn as getSkyScrub,Js as getStateSnapshotProvider,Ks as getStateSnapshotProviders,ng as getStorageBackendType,Oe as getToolAdapters,bf as getToolAttention,ls as getToolModuleVersion,zs as getTypeColor,Oa as getUseAccountAccess,Gn as getUseIsPro,Jn as getUseLicense,Zn as getUseTier,Ns as getValueSize,Os as getValueType,To as gridKey,rr as guardToolAdapter,q as hasAccountAccess,zt as identityField,Z as ignoredPatternsStore,sg as isDevToolsStorageKey,Ms as isEmpty,ks as isExpoRouterAvailable,Ra as isJsonSerializable,Wg as isOnDeviceMarker,Wt as isOverWireBudget,$s as isPlainObjectUtil,_s as isPrimitive,rl as isProNow,Kt as isToolRegistryReady,bg as isUrlIgnored,ig as isUsingPersistentStorage,Ps as isValidJson,Re as listShapes,cf as listSnapshotToolIds,lf as listToolActions,nf as listToolIds,Ws as loadOptionalModule,ns as logDeviceInfo,ot as macOSColors,Vg as memoByIdentity,Xa as mergeChangeSources,Nh as monoFont,Ho as motionUnits,Gg as newestFitting,d as night,Qo as noWindowDragProps,Lt as normalizeEnvironment,ze as notifySubscriberCountChange,jg as onDeviceMarker,Xg as onSettingsApplied,ff as openBuoyTool,Ol as openFloatingTool,Ro as ottoCycle,cl as ottoReel,fl as ottoRuns,Ii as ottoSceneBounds,Ti as ottoSceneRuns,Do as ottoSheets,_n as ottoWaterRows,Fl as parseDisplayValue,Ht as parsePath,zf as parseUrl,Bs as parseValue,Dg as patchFromPath,F as persistentStorage,Rn as presetAt,kn as presetIndex,qa as readParams,Bg as readPath,uf as readToolSnapshot,Pt as realNow,No as rectsOf,Xh as refreshGameUIColors,Hg as refusalText,ps as registerBrowserRouter,Pl as registerPersistentFloatingTool,Ys as registerStateSnapshotProvider,of as registerToolAdapters,Is as registerToolModules,gf as registerToolOpener,ds as reloadApp,dl as renderOttoFrame,vi as renderOttoScene,ts as resetPersistedStateCache,Ao as resolveEffectiveTier,hn as resolveListEmptyState,us as resolveReloadStrategy,so as retryAccountAccess,$l as safeStringify,xi as scatter,gs as scheduleReloadApp,Wf as sentryLogger,Xn as setExpandableWindowControls,Vs as setRenderCaptureProvider,on as setSkyScrub,mf as setToolAttention,Pf as shallowDiffSummary,Ve as shapeKind,We as shapeOf,Ng as shapeSummary,Lg as shapesWereTruncated,no as signOutOfBuoy,Yg as sizeOrStub,yi as sizeWarningLevel,If as skippedRestore,tf as startSettingsSync,Fe as subscribeAccountAccess,ms as subscribeBrowserNavigation,Rl as subscribeFloatingTools,rg as subscribeRealAppState,cs as subscribeToStateSnapshotProviders,Rs as subscribeToSubscriberCountChanges,yf as subscribeToolAttention,As as subscriberCountNotifier,zg as suggestedPatch,Dl as superJsonDeserialize,Bl as superJsonSerialize,af as syncSettingsNow,lt as teamSettingsStore,Ug as toWire,ll as toolTheme,$f as truncateMiddle,Nf as truncatePayload,Fs as truncateText,Ka as truncatedNote,jt as typedEditViolations,Rf as unionKeys,Mg as unshapedLists,za as urlMatchesIgnoredPattern,Jr as useAllHistoryEntries,as as useChangeLog,hi as useChipTap,os as useDeviceInfo,ss as useEventStoreEvents,Mn as useFeatureGate,Ml as useFilterManager,Yl as useGameUIAlertState,un as useHintsContext,Pa as useHintsDisabled,Kr as useHistoryAdapter,Yr as useHistoryAdapters,Gr as useHistoryContext,qr as useHistoryEntryCounts,xg as useIgnoredPatterns,_o as useLimit,eo as useLoop,ai as useOttoAnchorMotion,qo as useOttoReel,es as usePersistedState,_i as usePulse,Lo as useRelativeTime,Nl as useSafeAreaInsets,Cs as useSafeGlobalSearchParams,Ss as useSafePathname,ys as useSafeRouter,vs as useSafeSegments,cn as useSkyScrub,rs as useSubscribedValue,Eg as useTeamList,Oo as useTick,Vn as useToolBackground,wf as useToolScreenHeader,hf as waitForToolRegistry,Jo as windowDragProps,Ei as withBgAlpha,Af as wontApply};
|
|
14
|
+
`}),Xe("div",{"data-account-launcher":"",children:Xe(Wa,{expanded:e,onPress:()=>t(n=>!n)})}),e&&Xe("section",{ref:r,className:"buoy-account-panel",role:"dialog","aria-labelledby":s,tabIndex:-1,onBlur:n=>{n.relatedTarget instanceof Node&&!a.current?.contains(n.relatedTarget)&&o(false)},children:Xe($o,{titleId:s,onClose:()=>o()})})]}),document.body)}import{useState as te,useRef as D,useEffect as ie,useLayoutEffect as Cp,useCallback as N,memo as la,isValidElement as wp,cloneElement as xp}from"react";var yt=class{static async save(e,t){this.cache.set(e,t);try{await W.setItem(e,JSON.stringify(t))}catch{}}static async load(e){if(this.cache.has(e))return this.cache.get(e);try{let t=await W.getItem(e);if(t){let a=JSON.parse(t);return this.cache.set(e,a),a}}catch{}return null}static saveMinimized(e,t){return this.save(e,{mode:t.mode,panelHeight:t.panelHeight,dimensions:t.floatingDimensions&&t.floatingPosition?{...t.floatingDimensions,top:t.floatingPosition.y,left:t.floatingPosition.x}:void 0,isVisible:false})}};yt.cache=new Map;import{Fragment as Tp,jsx as f,jsxs as z}from"react/jsx-runtime";var L={base:"#121212",card:"#1A1A1A",border:"#333333",textMuted:"#888888",primary:"#20C997"},F={primary:"#F5F5F7",primaryLight:"#F5F5F7",secondary:"#A1A1A6",muted:"#8E8E93",success:"#34C759",info:"#00B8E6"},kp=100,Ip=400,Ar=500,Le=80,vt=()=>typeof window<"u"?window.innerWidth:0,ye=()=>typeof window<"u"?window.innerHeight:0,Rr=e=>1-Math.pow(1-e,3),Qe=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;function Ee(e,t,a,r){let s=0,o=false,n=performance.now(),i=l=>{if(o)return;let c=Math.min((l-n)/e,1);a(t(c)),c<1?s=requestAnimationFrame(i):r?.()};return s=requestAnimationFrame(i),()=>{o=true,cancelAnimationFrame(s)}}function Ep(){if(typeof document>"u")return{top:0,left:0,right:0,bottom:0};let e=document.createElement("div");e.style.cssText="position:fixed;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);visibility:hidden;pointer-events:none",document.body.appendChild(e);let t=e.getBoundingClientRect();return document.body.removeChild(e),{top:Math.max(0,t.top),left:Math.max(0,t.left),right:Math.max(0,window.innerWidth-t.right),bottom:Math.max(0,window.innerHeight-t.bottom)}}function ca(e,t,a=false){let r=Math.max(Le,window.innerWidth-t.left-t.right),s=Math.max(Le,window.innerHeight-t.top-t.bottom),o=Math.min(e.width,r),n=Math.min(e.height,s);return{width:o,height:n,left:Math.max(t.left,Math.min(e.left,window.innerWidth-t.right-o)),top:Math.max(t.top,Math.min(e.top,window.innerHeight-t.bottom-(a?Le:n)))}}var ua=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>z("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[f("line",{x1:18,y1:6,x2:6,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"}),f("line",{x1:6,y1:6,x2:18,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"})]}),da=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>f("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:f("line",{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:a,strokeLinecap:"round"})}),Or=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>z("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[f("rect",{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:a}),f("rect",{x:3,y:14,width:18,height:7,fill:t})]}),_r=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>z("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[f("rect",{x:3,y:3,width:14,height:14,rx:2,stroke:t,strokeWidth:a}),f("line",{x1:7,y1:17,x2:7,y2:21,stroke:t,strokeWidth:a}),f("line",{x1:7,y1:21,x2:21,y2:21,stroke:t,strokeWidth:a}),f("line",{x1:21,y1:21,x2:21,y2:7,stroke:t,strokeWidth:a}),f("line",{x1:17,y1:7,x2:21,y2:7,stroke:t,strokeWidth:a})]}),ue={close:"#FF5F57",minimize:"#FEBC2E",toggleMode:"#28C840"},ha=24,Ap=2,Me=8,ga=e=>({width:ha,height:ha,borderRadius:ha/2,display:"flex",alignItems:"center",justifyContent:"center",background:`radial-gradient(circle, ${e} 6px, transparent 6px)`,border:"none",padding:0,cursor:"pointer",flexShrink:0});function Rp(e){return vl()&&Ua(true)?f(Mp,{...e}):f(Op,{...e})}function Op({onClose:e,onMinimize:t,onToggleMode:a,mode:r}){let s=r==="floating"?Or:_r,o=r==="floating"?"Dock to bottom sheet":"Make floating window";return z("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:Ap},children:[t&&f("button",{type:"button",onClick:t,style:ga(ue.minimize),"aria-label":"Minimize modal",children:f(da,{size:Me,color:"#7A5A00",strokeWidth:1.5})}),a&&f("button",{type:"button",onClick:a,style:ga(ue.toggleMode),"aria-label":o,children:f(s,{size:Me,color:"#004A1A",strokeWidth:1.5})}),f("button",{type:"button",onClick:e,style:ga(ue.close),"aria-label":"Close modal",children:f(ua,{size:Me,color:"#4A0000",strokeWidth:1.5})})]})}var fa=12,_p=8,St=36,Pp=12,pa=16,Ct=8,Lp=3e3,ma=150,ba=e=>({width:fa,height:fa,borderRadius:fa/2,backgroundColor:e,display:"flex",alignItems:"center",justifyContent:"center"}),ya=(e,t,a,r)=>({width:St,height:St,borderRadius:St/2,display:"flex",alignItems:"center",justifyContent:"center",padding:0,cursor:"pointer",flexShrink:0,backgroundColor:e?a:t,border:e?`1px solid ${r}`:"none"});function Mp({onClose:e,onMinimize:t,onToggleMode:a,mode:r,variant:s="night"}){let o=s==="night",[n,i]=te(false),[l,c]=te(false),p=D(null),b=D(null),h=r==="floating"?Or:_r,m=r==="floating"?"Dock to bottom sheet":"Make floating window",v=N(()=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current),p.current=null,b.current=null},[]),I=N(()=>{v(),c(false),b.current=setTimeout(()=>i(false),ma)},[v]),U=N(()=>{v(),i(true),requestAnimationFrame(()=>requestAnimationFrame(()=>c(true))),p.current=setTimeout(I,Lp)},[v,I]);ie(()=>v,[v]);let J=B=>{I(),B()};return z(Tp,{children:[z("button",{type:"button",onClick:U,"aria-label":"Open window controls","data-testid":"tool-window-controls",style:{padding:10,margin:-8,border:"none",background:"transparent",cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",gap:_p},children:[t&&f("span",{style:ba(ue.minimize),children:f(da,{size:Me,color:"#7A5A00",strokeWidth:1.5})}),a&&f("span",{style:ba(ue.toggleMode),children:f(h,{size:Me,color:"#004A1A",strokeWidth:1.5})}),f("span",{style:ba(ue.close),children:f(ua,{size:Me,color:"#4A0000",strokeWidth:1.5})})]}),n&&f("div",{style:{position:"absolute",top:-Ct,right:-Ct,zIndex:9999,transform:`scale(${l?1:.3})`,opacity:l?1:0,transition:`transform ${ma}ms ease-out, opacity ${ma}ms ease-out`},children:z("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:Pp,padding:Ct,borderRadius:(St+Ct*2)/2,backgroundColor:o?u.color.surface:L.card,border:`1px solid ${o?u.color.border:L.border}`,boxShadow:"0 4px 12px rgba(0,0,0,0.4)"},children:[t&&f("button",{type:"button",onClick:()=>J(t),"aria-label":"Minimize modal","data-testid":"tool-window-minimize",style:ya(o,ue.minimize,u.color.warningSoft,u.color.warning+"59"),children:f(da,{size:pa,color:o?u.color.warning:"#7A5A00",strokeWidth:2})}),a&&f("button",{type:"button",onClick:()=>J(a),"aria-label":m,"data-testid":"tool-window-mode",style:ya(o,ue.toggleMode,u.color.accentSoft,u.color.accentBorderStrong),children:f(h,{size:pa,color:o?u.color.accent:"#004A1A",strokeWidth:2})}),f("button",{type:"button",onClick:()=>J(e),"aria-label":"Close modal","data-testid":"tool-window-close",style:ya(o,ue.close,u.color.dangerSoft,u.color.danger+"59"),children:f(ua,{size:pa,color:o?u.color.danger:"#4A0000",strokeWidth:2})})]})})]})}var Pr=la(function({isResizing:e,mode:t,hasCustomContent:a=false,variant:r="default"}){let s=t==="floating",o=r==="night";return z("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative",justifyContent:a?"center":void 0,minHeight:a?32:void 0,paddingTop:a?0:8,paddingBottom:a?0:8,backgroundColor:"transparent"},children:[f("div",{style:{width:o?36:e?40:s?50:40,height:o||s?5:3,backgroundColor:o?u.color.placeholder:e?L.primary:s?L.textMuted:L.primary,borderRadius:o?2.5:2,boxShadow:o?"none":`0 0 4px ${L.primary}99`}}),e&&t==="bottomSheet"&&f("div",{style:{position:"absolute",display:"flex",flexDirection:"row",gap:2,marginTop:12},children:[0,1,2].map(n=>f("div",{style:{width:12,height:1,backgroundColor:F.success,opacity:.6}},n))})]})}),Np=la(function({onAcknowledge:e}){return f("div",{style:{backgroundColor:`${F.info}15`,borderLeft:`3px solid ${F.info}`,borderRadius:8,margin:"8px 12px 4px",overflow:"hidden",boxShadow:`0 0 8px ${F.info}4D`,flexShrink:0},children:z("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:12,gap:12},children:[z("div",{style:{width:32,height:32,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:[f("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${F.info}`,opacity:.6,transform:"scale(0.8)",boxSizing:"border-box"}}),f("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${F.info}`,boxSizing:"border-box"}})]}),z("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[f("span",{style:{fontSize:13,fontWeight:600,color:F.info,letterSpacing:.3},children:"\u{1F4A1} Pro Tip"}),f("span",{style:{fontSize:12,color:F.primaryLight,lineHeight:"16px"},children:"Double-tap the header to transform this into a floating modal"})]}),f("button",{type:"button",onClick:e,style:{backgroundColor:`${F.info}30`,padding:"6px 12px",borderRadius:6,border:`1px solid ${F.info}50`,fontSize:12,fontWeight:600,color:F.info,cursor:"pointer",fontFamily:"inherit",flexShrink:0},children:"Got it!"})]})})});function Lr({header:e,isResizing:t,mode:a,onMinimize:r,variant:s="default"}){if(e?.customContent){let o=e.customContent;return wp(e.customContent)&&r&&(o=xp(e.customContent,{onMinimize:r})),z("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},children:[f(Pr,{isResizing:t,mode:a,hasCustomContent:true,variant:s}),o]})}return z("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",minWidth:0},children:[f(Pr,{isResizing:t,mode:a,variant:s}),z("div",{style:{padding:"0 16px",display:"flex",flexDirection:"column",alignItems:"center"},children:[e?.title&&f("span",{style:{fontSize:16,fontWeight:600,color:F.primary},children:e.title}),e?.subtitle&&f("span",{style:{fontSize:12,color:F.secondary,paddingTop:4},children:e.subtitle})]}),f("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:f("span",{style:{fontSize:10,color:F.muted,fontStyle:"italic"},children:"Double tap: Toggle \u2022 Triple tap: Close"})})]})}var $p=({visible:e,onClose:t,children:a,header:r,styles:s={},minHeight:o=kp,maxHeight:n,initialHeight:i=Ip,animatedHeight:l,benchMotion:c,initialMode:p="bottomSheet",onModeChange:b,persistenceKey:h,enablePersistence:m=true,initialFloatingPosition:v,footer:I,footerHeight:U=0,onBack:J,onMinimize:B,minimizeRequest:S=0,minimizeTargetPosition:ne,initialModalState:M,zIndex:Ze,disableScrollWrapper:Wr=false,background:Ta=true,variant:et="night"})=>{let[Q]=te(Ep),[ka,Ia]=te(!m),[P,At]=te(p),tt=D(b);tt.current=b;let[$e,ve]=te(false),[Rt,Be]=te(false),[jr,Ot]=te(i),[le,De]=te(()=>ca({width:vt(),height:Ar,top:v?.y??(ye()-Ar)/2,left:v?.x??0},Q)),[Ur,at]=te(false),[Vr,Ea]=te(false),Gr=ja(),Se=D(i),Z=D(le),V=D({x:le.left,y:le.top}),rt=D(null),_t=D(null),ce=D(null),Ce=D([]),se=N(()=>{Ce.current.forEach(d=>d()),Ce.current=[]},[]);ie(()=>{Z.current=le},[le]),ie(()=>se,[se]);let Aa=n||ye()-Q.top;ie(()=>{if(!m||!h){Ia(true);return}let d=true;return(async()=>{let g=await yt.load(h);if(d&&g&&(g.mode&&(At(g.mode),tt.current?.(g.mode)),g.panelHeight&&(Ot(g.panelHeight),Se.current=g.panelHeight),g.dimensions)){let C=ca(g.dimensions,Q,true);De(C),V.current={x:C.left,y:C.top}}d&&Ia(true)})(),()=>{d=false}},[h,m]),ie(()=>{if(!m||!h||!ka)return;let d=setTimeout(()=>{yt.save(h,{mode:P,panelHeight:Se.current,dimensions:le,isVisible:e})},500);return()=>clearTimeout(d)},[P,jr,le,e,h,m,ka]),ie(()=>{let d=true;return(async()=>{try{let g=ke.modal.hintAcknowledged(),C=await W.getItem(g);d&&(at(C!=="true"),Ea(true))}catch{d&&(at(true),Ea(true))}})(),()=>{d=false}},[]);let Yr=N(async()=>{try{let d=ke.modal.hintAcknowledged();await W.setItem(d,"true"),at(false)}catch{at(false)}},[]),Pt=N(()=>{Be(false),ve(false);let d=P==="bottomSheet"?"floating":"bottomSheet";At(d),tt.current?.(d)},[P]);ie(()=>{Be(false),ve(false)},[P]);let we=N(()=>{if(!B)return;let d={mode:P,panelHeight:Se.current,floatingPosition:{x:Z.current.left,y:Z.current.top},floatingDimensions:{width:Z.current.width,height:Z.current.height}};m&&h&&yt.saveMinimized(h,d);let g=ne?.x??vt()-50,C=ne?.y??ye()-150;if(se(),P==="bottomSheet"){let E=rt.current;if(!E){B(d);return}let k=ye();Ce.current.push(Ee(300,Qe,O=>{E.style.opacity=String(1-O),E.style.transform=`translateY(${O*k}px)`},()=>B(d)))}else{let E=ce.current;if(!E){B(d);return}let k={...V.current};Ce.current.push(Ee(300,Qe,O=>{E.style.opacity=String(1-O);let xe=k.x+(g-k.x)*O,Te=k.y+(C-k.y)*O;E.style.transform=`translate(${xe}px, ${Te}px)`},()=>B(d)))}},[P,B,ne,se,m,h]),Ra=D(S);ie(()=>{Ra.current!==S&&(Ra.current=S,we())},[S,we]),ie(()=>{if(M&&(M.mode&&(At(M.mode),tt.current?.(M.mode)),M.panelHeight&&(Ot(M.panelHeight),Se.current=M.panelHeight),M.floatingDimensions&&M.floatingPosition)){let d={width:M.floatingDimensions.width,height:M.floatingDimensions.height,top:M.floatingPosition.y,left:M.floatingPosition.x};De(d),V.current={x:M.floatingPosition.x,y:M.floatingPosition.y}}},[M]),Cp(()=>{if(e)if(se(),P==="bottomSheet"){let d=rt.current;if(!d)return;let g=ye();d.style.transform=`translateY(${g}px)`,d.style.opacity="0",Ce.current.push(Ee(300,Rr,C=>{d.style.transform=`translateY(${(1-C)*g}px)`}),Ee(200,Qe,C=>{d.style.opacity=String(C)}))}else{let d=ce.current;if(!d)return;V.current={x:Z.current.left,y:Z.current.top},d.style.transform=`translate(${V.current.x}px, ${V.current.y}px)`,d.style.opacity="0",Ce.current.push(Ee(200,Qe,g=>{d.style.opacity=String(g)}))}},[e,P,se]);let Oa=D(0),ze=D(0),Fe=D(null),st=N(()=>{let d=Date.now();d-Oa.current>500&&(ze.current=0),ze.current++,Oa.current=d,Fe.current&&clearTimeout(Fe.current),Fe.current=setTimeout(()=>{ze.current===2?Pt():ze.current>=3&&B&&we(),ze.current=0},300)},[Pt,B,we]);ie(()=>()=>{Fe.current&&clearTimeout(Fe.current)},[]);let ot=D({active:false,resizing:false,startY:0,headerOffsetY:0,samples:[]}),Kr=N(d=>{if(P!=="bottomSheet"||d.button!==0||d.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let g=ot.current;g.active=true,g.resizing=false,g.startY=d.clientY;let C=d.currentTarget.getBoundingClientRect();g.headerOffsetY=d.clientY-C.top,g.samples=[{t:performance.now(),y:d.clientY}],d.currentTarget.setPointerCapture(d.pointerId)},[P]),qr=N(d=>{let g=ot.current;if(!g.active)return;let C=d.clientY-g.startY;if(!g.resizing&&Math.abs(C)>3&&(g.resizing=true,se(),ve(true)),!g.resizing)return;let E=d.clientY-g.headerOffsetY,k=ye()-E;k=Math.max(o,Math.min(k,Aa)),Se.current=k,_t.current&&(_t.current.style.height=`${k}px`);let O=performance.now();for(g.samples.push({t:O,y:d.clientY});g.samples.length>2&&O-g.samples[0].t>100;)g.samples.shift()},[o,Aa,se]),Jr=N(d=>{let g=ot.current;if(!g.active)return;if(g.active=false,!g.resizing){st();return}ve(false);let C=Se.current,E=d.clientY-g.startY,k=g.samples[0],O=g.samples[g.samples.length-1];if((O&&k&&O.t>k.t?(O.y-k.y)/(O.t-k.t):0)>.8&&E>50||E>150&&C<=o){let xe=rt.current;if(se(),xe){let Te=ye();Ce.current.push(Ee(200,Qe,G=>{xe.style.opacity=String(1-G)}),Ee(300,Rr,G=>{xe.style.transform=`translateY(${G*Te}px)`},()=>t()))}else t();return}Ot(C)},[o,t,st,se]),Xr=N(()=>{let d=ot.current;d.active&&(d.active=false,d.resizing=false,ve(false))},[]),it=D({active:false,dragging:false,startX:0,startY:0,startPos:{x:0,y:0}}),Qr=N(d=>{if(P!=="floating"||$e||d.button!==0||d.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let g=it.current;g.active=true,g.dragging=false,g.startX=d.clientX,g.startY=d.clientY,g.startPos={...V.current},d.currentTarget.setPointerCapture(d.pointerId)},[P,$e]),Zr=N(d=>{let g=it.current;if(!g.active)return;let C=d.clientX-g.startX,E=d.clientY-g.startY;if(!g.dragging&&Math.abs(C)+Math.abs(E)>5&&(g.dragging=true,Be(true)),!g.dragging)return;let k=g.startPos.x+C,O=g.startPos.y+E;V.current={x:k,y:O},ce.current&&(ce.current.style.transform=`translate(${k}px, ${O}px)`)},[]),es=N(()=>{let d=it.current;if(!d.active)return;if(d.active=false,!d.dragging){st();return}Be(false);let g=Z.current,C=ca({...g,left:V.current.x,top:V.current.y},Q),E=C.left,k=C.top;V.current={x:E,y:k},ce.current&&(ce.current.style.transform=`translate(${E}px, ${k}px)`),De(O=>({...O,left:E,top:k}))},[Q,st]),ts=N(()=>{let d=it.current;d.active&&(d.active=false,d.dragging=false,Be(false))},[]),Lt=D({active:false,corner:"bottomRight",startX:0,startY:0,start:{width:0,height:0,top:0,left:0}}),as=N(d=>g=>{if(P!=="floating")return;g.stopPropagation();let C=Lt.current;C.active=true,C.corner=d,C.startX=g.clientX,C.startY=g.clientY,C.start={...Z.current},ve(true),g.currentTarget.setPointerCapture(g.pointerId)},[P]),rs=N(d=>{let g=Lt.current;if(!g.active)return;let C=d.clientX-g.startX,E=d.clientY-g.startY;if(Math.abs(C)<.5&&Math.abs(E)<.5)return;let k=Math.max(0,Q.left),O=ye()-Math.max(0,Q.bottom),xe=vt()-Math.max(0,Q.right),Te=vt()*.25,G=g.start,Mt=G.left+G.width,Nt=G.top+G.height,He=G.left,lt=G.top,Ba=Mt,$t=Nt;g.corner==="bottomLeft"?(He=Math.max(k,Math.min(G.left+C,Mt-Te)),$t=Math.min(O,Math.max(Nt+E,G.top+Le))):(Ba=Math.min(xe,Math.max(Mt+C,G.left+Te)),$t=Math.min(O,Math.max(Nt+E,G.top+Le)));let ss=Math.max(Te,Ba-He),os=Math.max(Le,$t-lt),Da={width:ss,height:os,left:He,top:lt};Z.current=Da,V.current={x:He,y:lt},De(Da),ce.current&&(ce.current.style.transform=`translate(${He}px, ${lt}px)`)},[Q.left,Q.right,Q.bottom]),_a=N(()=>{let d=Lt.current;d.active&&(d.active=false,ve(false),De(Z.current))},[]),nt=!e,Pa=nt?{left:-9999,top:-9999,opacity:0,visibility:"hidden",pointerEvents:"none"}:{},La=r?.title||"Dev tool panel",R=et==="night",Ma=Ta&&R?f("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},"aria-hidden":true,children:f(zt,{})}):null,Na=z("div",{style:{flex:1,minHeight:0,position:"relative",display:"flex",flexDirection:"column",backgroundColor:R?"transparent":L.base,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden",...s.content},children:[Ta&&!R?f(zt,{}):null,Wr?f("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",paddingBottom:U},children:a}):f("div",{style:{flex:1,minHeight:0,overflowY:"auto",paddingBottom:U},children:a}),I?f("div",{style:{position:"absolute",left:0,right:0,bottom:0,backgroundColor:L.base,borderBottomLeftRadius:16,borderBottomRightRadius:16},children:I}):null]}),$a=f("div",{style:{position:"absolute",top:4,right:4,zIndex:10},children:f(Rp,{onClose:t,onMinimize:B?we:void 0,onToggleMode:Pt,mode:P,variant:et})});if(P==="floating"){let d=Rt||$e;return z("div",{ref:ce,role:"dialog","aria-label":La,"aria-hidden":nt||void 0,style:{position:"fixed",pointerEvents:"auto",left:0,top:0,width:le.width,height:le.height,transform:`translate(${V.current.x}px, ${V.current.y}px)`,display:"flex",flexDirection:"column",backgroundColor:R?u.color.bg:L.card,borderRadius:R?u.radius.sheet:6,border:R?`1px solid ${u.color.accent}55`:d?`2px solid ${L.primary}`:`1px solid ${L.border}`,boxShadow:R?`0 0 14px ${u.color.accent}38`:d?`0 0 12px ${L.primary}7A`:`0 0 20px ${L.primary}4D`,...R?{overflow:"hidden"}:null,boxSizing:"border-box",zIndex:Ze??1e3,...s.container,...Pa},children:[Ma,f("div",{onPointerDown:Qr,onPointerMove:Zr,onPointerUp:es,onPointerCancel:ts,style:{borderTopLeftRadius:R?u.radius.sheet:6,borderTopRightRadius:R?u.radius.sheet:6,backgroundColor:R?"transparent":L.card,minHeight:56,border:R?"none":`1px solid ${L.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:Rt?"grabbing":"grab",position:"relative"},children:f(Lr,{header:r,isResizing:Rt||$e,mode:P,onMinimize:B?we:void 0,variant:et})}),$a,Na,["bottomLeft","bottomRight"].map(g=>f("div",{onPointerDown:as(g),onPointerMove:rs,onPointerUp:_a,onPointerCancel:_a,style:{position:"absolute",width:30,height:30,bottom:4,...g==="bottomLeft"?{left:4}:{right:4},zIndex:1e3,touchAction:"none",cursor:g==="bottomLeft"?"nesw-resize":"nwse-resize"},children:f("div",{style:{width:20,height:20,borderRadius:10,boxSizing:"border-box",backgroundColor:d?`${F.success}1A`:"transparent",border:d?`2px solid ${F.success}`:"none",boxShadow:d?`0 0 8px ${F.success}99`:"none"}})},g))]},"floating")}return f("div",{"aria-hidden":nt||void 0,style:{position:"fixed",inset:0,zIndex:Ze??1e3,pointerEvents:"none",...nt?{...Pa,inset:"auto",width:"100vw",height:"100vh"}:null},children:f("div",{ref:rt,style:{position:"absolute",bottom:0,left:0,right:0,pointerEvents:"auto"},children:z("div",{ref:_t,role:"dialog","aria-label":La,style:{height:Se.current,display:"flex",flexDirection:"column",backgroundColor:R?u.color.bg:L.card,borderTopLeftRadius:R?u.radius.sheet:6,borderTopRightRadius:R?u.radius.sheet:6,border:R?`1px solid ${u.color.accent}55`:`1px solid ${L.border}`,boxShadow:R?`0 -4px 10px ${u.color.accent}38`:`0 -4px 12px ${L.primary}33`,...R?{overflow:"hidden"}:null,boxSizing:"border-box",position:"relative",...s.container},children:[Ma,f("div",{onPointerDown:Kr,onPointerMove:qr,onPointerUp:Jr,onPointerCancel:Xr,style:{borderTopLeftRadius:R?u.radius.sheet:6,borderTopRightRadius:R?u.radius.sheet:6,backgroundColor:R?"transparent":L.card,minHeight:56,border:R?"none":`1px solid ${L.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:"ns-resize",position:"relative"},children:f(Lr,{header:r,isResizing:$e,mode:P,onMinimize:B?we:void 0,variant:et})}),$a,Vr&&Ur&&!Gr&&f(Np,{onAcknowledge:Yr}),Na]})})},"bottomSheet")},Bp=la(e=>Ha()().status!=="admitted"?e.visible?f(Er,{}):null:f($p,{...e}));import{memo as Dp,useMemo as zp}from"react";var de=class Um{constructor(t,a){this.ordinal=t;this.formatBits=a}};de.LOW=new de(0,1),de.MEDIUM=new de(1,0),de.QUARTILE=new de(2,3),de.HIGH=new de(3,2);var wt=de,ae=class Vm{constructor(t,a){this.modeBits=t;this.numBitsCharCount=a}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}};ae.NUMERIC=new ae(1,[10,12,14]),ae.ALPHANUMERIC=new ae(2,[9,11,13]),ae.BYTE=new ae(4,[8,16,16]),ae.KANJI=new ae(8,[8,10,12]),ae.ECI=new ae(7,[0,0,0]);var xt=ae,he=class x{constructor(t,a,r,s){this.version=t;this.errorCorrectionLevel=a;this.modules=[];this.isFunction=[];if(t<x.MIN_VERSION||t>x.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let o=[];for(let i=0;i<this.size;i++)o.push(false);for(let i=0;i<this.size;i++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let n=this.addEccAndInterleave(r);if(this.drawCodewords(n),s==-1){let i=1e9;for(let l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);let c=this.getPenaltyScore();c<i&&(s=l,i=c),this.applyMask(l)}}q(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}static encodeText(t,a){let r=va.makeSegments(t);return x.encodeSegments(r,a)}static encodeBinary(t,a){let r=va.makeBytes(t);return x.encodeSegments([r],a)}static encodeSegments(t,a,r=1,s=40,o=-1,n=true){if(!(x.MIN_VERSION<=r&&r<=s&&s<=x.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");let i,l;for(i=r;;i++){let h=x.getNumDataCodewords(i,a)*8,m=va.getTotalBits(t,i);if(m<=h){l=m;break}if(i>=s)throw new RangeError("Data too long")}for(let h of[wt.MEDIUM,wt.QUARTILE,wt.HIGH])n&&l<=x.getNumDataCodewords(i,h)*8&&(a=h);let c=[];for(let h of t){Y(h.mode.modeBits,4,c),Y(h.numChars,h.mode.numCharCountBits(i),c);for(let m of h.getData())c.push(m)}q(c.length==l);let p=x.getNumDataCodewords(i,a)*8;q(c.length<=p),Y(0,Math.min(4,p-c.length),c),Y(0,(8-c.length%8)%8,c),q(c.length%8==0);for(let h=236;c.length<p;h^=253)Y(h,8,c);let b=[];for(;b.length*8<c.length;)b.push(0);return c.forEach((h,m)=>b[m>>>3]|=h<<7-(m&7)),new x(i,a,b,o)}getModule(t,a){return 0<=t&&t<this.size&&0<=a&&a<this.size&&this.modules[a][t]}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2==0),this.setFunctionModule(r,6,r%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),a=t.length;for(let r=0;r<a;r++)for(let s=0;s<a;s++)r==0&&s==0||r==0&&s==a-1||r==a-1&&s==0||this.drawAlignmentPattern(t[r],t[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let a=this.errorCorrectionLevel.formatBits<<3|t,r=a;for(let o=0;o<10;o++)r=r<<1^(r>>>9)*1335;let s=(a<<10|r)^21522;q(s>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,ge(s,o));this.setFunctionModule(8,7,ge(s,6)),this.setFunctionModule(8,8,ge(s,7)),this.setFunctionModule(7,8,ge(s,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,ge(s,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,ge(s,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,ge(s,o));this.setFunctionModule(8,this.size-8,true)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;let a=this.version<<12|t;q(a>>>18==0);for(let r=0;r<18;r++){let s=ge(a,r),o=this.size-11+r%3,n=Math.floor(r/3);this.setFunctionModule(o,n,s),this.setFunctionModule(n,o,s)}}drawFinderPattern(t,a){for(let r=-4;r<=4;r++)for(let s=-4;s<=4;s++){let o=Math.max(Math.abs(s),Math.abs(r)),n=t+s,i=a+r;0<=n&&n<this.size&&0<=i&&i<this.size&&this.setFunctionModule(n,i,o!=2&&o!=4)}}drawAlignmentPattern(t,a){for(let r=-2;r<=2;r++)for(let s=-2;s<=2;s++)this.setFunctionModule(t+s,a+r,Math.max(Math.abs(s),Math.abs(r))!=1)}setFunctionModule(t,a,r){this.modules[a][t]=r,this.isFunction[a][t]=true}addEccAndInterleave(t){let a=this.version,r=this.errorCorrectionLevel;if(t.length!=x.getNumDataCodewords(a,r))throw new RangeError("Invalid argument");let s=x.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][a],o=x.ECC_CODEWORDS_PER_BLOCK[r.ordinal][a],n=Math.floor(x.getNumRawDataModules(a)/8),i=s-n%s,l=Math.floor(n/s),c=[],p=x.reedSolomonComputeDivisor(o);for(let h=0,m=0;h<s;h++){let v=t.slice(m,m+l-o+(h<i?0:1));m+=v.length;let I=x.reedSolomonComputeRemainder(v,p);h<i&&v.push(0),c.push(v.concat(I))}let b=[];for(let h=0;h<c[0].length;h++)c.forEach((m,v)=>{(h!=l-o||v>=i)&&b.push(m[h])});return q(b.length==n),b}drawCodewords(t){if(t.length!=Math.floor(x.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let a=0;for(let r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(let s=0;s<this.size;s++)for(let o=0;o<2;o++){let n=r-o,i=(r+1&2)==0?this.size-1-s:s;!this.isFunction[i][n]&&a<t.length*8&&(this.modules[i][n]=ge(t[a>>>3],7-(a&7)),a++)}}q(a==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let a=0;a<this.size;a++)for(let r=0;r<this.size;r++){let s;switch(t){case 0:s=(r+a)%2==0;break;case 1:s=a%2==0;break;case 2:s=r%3==0;break;case 3:s=(r+a)%3==0;break;case 4:s=(Math.floor(r/3)+Math.floor(a/2))%2==0;break;case 5:s=r*a%2+r*a%3==0;break;case 6:s=(r*a%2+r*a%3)%2==0;break;case 7:s=((r+a)%2+r*a%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[a][r]&&s&&(this.modules[a][r]=!this.modules[a][r])}}getPenaltyScore(){let t=0;for(let o=0;o<this.size;o++){let n=false,i=0,l=[0,0,0,0,0,0,0];for(let c=0;c<this.size;c++)this.modules[o][c]==n?(i++,i==5?t+=x.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,l),n||(t+=this.finderPenaltyCountPatterns(l)*x.PENALTY_N3),n=this.modules[o][c],i=1);t+=this.finderPenaltyTerminateAndCount(n,i,l)*x.PENALTY_N3}for(let o=0;o<this.size;o++){let n=false,i=0,l=[0,0,0,0,0,0,0];for(let c=0;c<this.size;c++)this.modules[c][o]==n?(i++,i==5?t+=x.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,l),n||(t+=this.finderPenaltyCountPatterns(l)*x.PENALTY_N3),n=this.modules[c][o],i=1);t+=this.finderPenaltyTerminateAndCount(n,i,l)*x.PENALTY_N3}for(let o=0;o<this.size-1;o++)for(let n=0;n<this.size-1;n++){let i=this.modules[o][n];i==this.modules[o][n+1]&&i==this.modules[o+1][n]&&i==this.modules[o+1][n+1]&&(t+=x.PENALTY_N2)}let a=0;for(let o of this.modules)a=o.reduce((n,i)=>n+(i?1:0),a);let r=this.size*this.size,s=Math.ceil(Math.abs(a*20-r*10)/r)-1;return q(0<=s&&s<=9),t+=s*x.PENALTY_N4,q(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let t=Math.floor(this.version/7)+2,a=Math.floor((this.version*8+t*3+5)/(t*4-4))*2,r=[6];for(let s=this.size-7;r.length<t;s-=a)r.splice(1,0,s);return r}}static getNumRawDataModules(t){if(t<x.MIN_VERSION||t>x.MAX_VERSION)throw new RangeError("Version number out of range");let a=(16*t+128)*t+64;if(t>=2){let r=Math.floor(t/7)+2;a-=(25*r-10)*r-55,t>=7&&(a-=36)}return q(208<=a&&a<=29648),a}static getNumDataCodewords(t,a){return Math.floor(x.getNumRawDataModules(t)/8)-x.ECC_CODEWORDS_PER_BLOCK[a.ordinal][t]*x.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let a=[];for(let s=0;s<t-1;s++)a.push(0);a.push(1);let r=1;for(let s=0;s<t;s++){for(let o=0;o<a.length;o++)a[o]=x.reedSolomonMultiply(a[o],r),o+1<a.length&&(a[o]^=a[o+1]);r=x.reedSolomonMultiply(r,2)}return a}static reedSolomonComputeRemainder(t,a){let r=a.map(s=>0);for(let s of t){let o=s^r.shift();r.push(0),a.forEach((n,i)=>r[i]^=x.reedSolomonMultiply(n,o))}return r}static reedSolomonMultiply(t,a){if(t>>>8||a>>>8)throw new RangeError("Byte out of range");let r=0;for(let s=7;s>=0;s--)r=r<<1^(r>>>7)*285,r^=(a>>>s&1)*t;return q(r>>>8==0),r}finderPenaltyCountPatterns(t){let a=t[1];q(a<=this.size*3);let r=a>0&&t[2]==a&&t[3]==a*3&&t[4]==a&&t[5]==a;return(r&&t[0]>=a*4&&t[6]>=a?1:0)+(r&&t[6]>=a*4&&t[0]>=a?1:0)}finderPenaltyTerminateAndCount(t,a,r){return t&&(this.finderPenaltyAddHistory(a,r),a=0),a+=this.size,this.finderPenaltyAddHistory(a,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,a){a[0]==0&&(t+=this.size),a.pop(),a.unshift(t)}};he.MIN_VERSION=1,he.MAX_VERSION=40,he.PENALTY_N1=3,he.PENALTY_N2=3,he.PENALTY_N3=40,he.PENALTY_N4=10,he.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],he.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];var Fp=he;function Y(e,t,a){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)a.push(e>>>r&1)}function ge(e,t){return(e>>>t&1)!=0}function q(e){if(!e)throw new Error("Assertion error")}var Tt=class ${constructor(t,a,r){this.mode=t;this.numChars=a;this.bitData=r;if(a<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let a=[];for(let r of t)Y(r,8,a);return new $(xt.BYTE,t.length,a)}static makeNumeric(t){if(!$.isNumeric(t))throw new RangeError("String contains non-numeric characters");let a=[];for(let r=0;r<t.length;){let s=Math.min(t.length-r,3);Y(parseInt(t.substring(r,r+s),10),s*3+1,a),r+=s}return new $(xt.NUMERIC,t.length,a)}static makeAlphanumeric(t){if(!$.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let a=[],r;for(r=0;r+2<=t.length;r+=2){let s=$.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;s+=$.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),Y(s,11,a)}return r<t.length&&Y($.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,a),new $(xt.ALPHANUMERIC,t.length,a)}static makeSegments(t){return t==""?[]:$.isNumeric(t)?[$.makeNumeric(t)]:$.isAlphanumeric(t)?[$.makeAlphanumeric(t)]:[$.makeBytes($.toUtf8ByteArray(t))]}static makeEci(t){let a=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)Y(t,8,a);else if(t<16384)Y(2,2,a),Y(t,14,a);else if(t<1e6)Y(6,3,a),Y(t,21,a);else throw new RangeError("ECI assignment value out of range");return new $(xt.ECI,0,a)}static isNumeric(t){return $.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return $.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(t,a){let r=0;for(let s of t){let o=s.mode.numCharCountBits(a);if(s.numChars>=1<<o)return 1/0;r+=4+o+s.bitData.length}return r}static toUtf8ByteArray(t){t=encodeURI(t);let a=[];for(let r=0;r<t.length;r++)t.charAt(r)!="%"?a.push(t.charCodeAt(r)):(a.push(parseInt(t.substring(r+1,r+3),16)),r+=2);return a}};Tt.NUMERIC_REGEX=/^[0-9]*$/,Tt.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,Tt.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";var va=Tt;import{jsx as Sa}from"react/jsx-runtime";var Mr=2,Hp=Dp(function({value:e,size:t,color:a="#000",background:r="#fff"}){let s=zp(()=>{let i=Fp.encodeText(e,wt.MEDIUM),l=[];for(let c=0;c<i.size;c++){let p=[];for(let b=0;b<i.size;b++){let h=i.getModule(b,c),m=p[p.length-1];m&&m.dark===h?m.length+=1:p.push({dark:h,length:1})}l.push(p)}return l},[e]),o=s.length+Mr*2,n=t/o;return Sa(T,{accessibilityRole:"image",accessibilityLabel:"QR code",style:{width:t,height:t,backgroundColor:r,padding:n*Mr},children:s.map((i,l)=>Sa(T,{style:{flexDirection:"row",height:n},children:i.map((c,p)=>Sa(T,{style:{width:c.length*n,height:n,backgroundColor:c.dark?a:r}},p))},l))})});import{Children as Wp,useEffect as jp,useRef as Up}from"react";import{Fragment as Vp,jsx as j,jsxs as kt}from"react/jsx-runtime";function Gp({children:e,style:t}){return j(H,{style:[y.sectionLabel,t],children:e})}function Yp({children:e,centered:t,tone:a="tertiary",style:r}){let s=Ue.flatten(r),o=!!s&&(s.marginHorizontal!=null||s.margin!=null);return j(H,{style:[y.footnote,o?null:y.footnoteInset,a==="secondary"?y.footnoteSecondary:null,a==="warning"?y.footnoteWarning:null,a==="danger"?y.footnoteDanger:null,t?y.footnoteCentered:null,r],children:e})}function Kp({children:e,padded:t,glass:a,style:r}){return j(T,{style:[y.card,a?y.cardGlass:null,t?y.cardPadded:null,r],children:e})}function Nr({inset:e=u.rowPadH}){return j(T,{style:[y.separator,{marginLeft:e}]})}function qp({children:e,inset:t=u.rowPadH}){let a=Wp.toArray(e);return j(Vp,{children:a.map((r,s)=>kt(T,{children:[s>0?j(Nr,{inset:t}):null,r]},r.key??s))})}var $r=56,Br=32,It=22,Dr=5,Jp=$r-It-Dr*2;function Xp({value:e,onValueChange:t,disabled:a,testID:r,accessibilityLabel:s}){let o=Up(new Ht.Value(e?1:0)).current;return jp(()=>{Ht.timing(o,{toValue:e?1:0,duration:200,useNativeDriver:Tg.OS!=="web"}).start()},[e,o]),j(ut,{activeOpacity:.8,disabled:a,onPress:()=>t(!e),testID:r,accessibilityLabel:s,accessibilityRole:"switch",accessibilityState:{checked:e,disabled:a},hitSlop:{top:8,bottom:8,left:8,right:8},style:[y.switchTrack,e?y.switchTrackOn:null,a?y.switchDisabled:null],children:j(Ht.View,{style:[y.switchThumb,e?y.switchThumbOn:null,{transform:[{translateX:o.interpolate({inputRange:[0,1],outputRange:[0,Jp]})}]}]})})}function Qp({label:e,selected:t,onPress:a,disabled:r,icon:s,testID:o}){return kt(ut,{activeOpacity:.7,disabled:r||!a,onPress:a,testID:o,style:[y.chip,t?y.chipSelected:null,r?y.chipDisabled:null],children:[s,j(H,{style:[y.chipText,t?y.chipTextSelected:null],children:e})]})}function Zp({label:e,onPress:t,variant:a="secondary",size:r="lg",icon:s,disabled:o,fullWidth:n=true,testID:i,accessibilityLabel:l}){let c=a==="primary"?u.color.onAccent:a==="tertiary"?u.color.text:a==="destructive"?u.color.danger:u.color.accent;return kt(ut,{activeOpacity:.7,disabled:o,onPress:t,testID:i,accessibilityRole:"button",accessibilityLabel:l??e,accessibilityState:{disabled:!!o},style:[y.button,r==="md"?y.buttonMd:y.buttonLg,a==="primary"?y.buttonPrimary:a==="ghost"?y.buttonGhost:y.buttonPlate,n?y.buttonFullWidth:null,o?y.buttonDisabled:null],children:[s,j(H,{style:[r==="md"?y.buttonTextMd:y.buttonTextLg,{color:c}],children:e})]})}function em({tabs:e,activeKey:t,onChange:a,size:r="md",glass:s,testIDPrefix:o}){let n=r==="sm";return j(T,{style:[y.segmentTrack,s?y.segmentTrackGlass:null],children:e.map(i=>{let l=i.key===t;return kt(ut,{activeOpacity:.7,testID:o?`${o}-${i.key}`:void 0,accessibilityRole:"tab",accessibilityState:{selected:l},accessibilityLabel:i.label,onPress:()=>a(i.key),style:[y.segment,n?y.segmentSm:null,l?s?y.segmentActiveGlass:y.segmentActive:null],children:[j(H,{style:[y.segmentText,n?y.segmentTextSm:null,l?y.segmentTextActive:null],children:i.label}),l?j(T,{style:[y.segmentUnderline,n?y.segmentUnderlineSm:null]}):null]},i.key)})})}function tm({label:e,tone:t="neutral"}){let a=t==="accent"?y.badgeAccent:t==="warning"?y.badgeWarning:t==="danger"?y.badgeDanger:t==="info"?y.badgeInfo:y.badgeNeutral,r=t==="accent"?y.badgeTextAccent:t==="warning"?y.badgeTextWarning:t==="danger"?y.badgeTextDanger:t==="info"?y.badgeTextInfo:y.badgeTextNeutral;return j(T,{style:[y.badge,a],children:j(H,{style:[y.badgeText,r],children:e})})}var y=Ue.create({sectionLabel:{color:u.color.textSecondary,fontSize:u.font.label,fontWeight:"600",letterSpacing:Ya,textTransform:"uppercase",marginBottom:8,marginLeft:u.labelInset},footnote:{color:u.color.textTertiary,fontSize:u.font.caption,fontWeight:"500",lineHeight:u.font.caption*1.4,marginTop:8},footnoteInset:{marginLeft:u.labelInset},footnoteSecondary:{color:u.color.textSecondary},footnoteWarning:{color:u.color.warning},footnoteDanger:{color:u.color.danger},footnoteCentered:{textAlign:"center",marginLeft:0},card:{backgroundColor:u.color.surface,borderRadius:u.radius.card,borderWidth:1,borderColor:u.color.border,overflow:"hidden"},cardGlass:{backgroundColor:u.color.glass,borderColor:u.color.glassBorder},cardPadded:{padding:u.cardPad,gap:10},separator:{height:Ue.hairlineWidth,backgroundColor:u.color.separator},switchTrack:{width:$r,height:Br,borderRadius:Br/2,borderWidth:1,borderColor:u.color.fillTertiary,backgroundColor:u.color.surfaceElevated,paddingHorizontal:Dr,justifyContent:"center",overflow:"hidden"},switchTrackOn:{backgroundColor:u.color.accentFill,borderColor:u.color.accentBorderStrong},switchDisabled:{opacity:.4},switchThumb:{width:It,height:It,borderRadius:It/2,backgroundColor:u.color.knob},switchThumbOn:{backgroundColor:u.color.accent},chip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:14,paddingVertical:9,borderRadius:u.radius.chip,borderWidth:1.5,backgroundColor:u.color.buttonSurface,borderColor:u.color.fillTertiary},chipSelected:{borderColor:u.color.accentBorderStrong},chipDisabled:{opacity:.4},chipText:{fontSize:u.font.body,fontWeight:"500",color:u.color.textSecondary},chipTextSelected:{color:u.color.accent},button:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},buttonMd:{height:34,paddingHorizontal:16,borderRadius:17},buttonLg:{height:50,paddingHorizontal:20,borderRadius:25},buttonPrimary:{backgroundColor:u.color.accent},buttonPlate:{backgroundColor:u.color.button},buttonGhost:{backgroundColor:"transparent"},buttonFullWidth:{alignSelf:"stretch"},buttonDisabled:{opacity:.4},buttonTextMd:{fontSize:15,fontWeight:"600"},buttonTextLg:{fontSize:17,fontWeight:"600"},segmentTrack:{flex:1,flexDirection:"row",backgroundColor:u.color.bg,borderRadius:u.radius.row,borderWidth:1,borderColor:u.color.border,padding:3},segment:{flex:1,paddingVertical:8,alignItems:"center",justifyContent:"center",borderRadius:u.radius.segment},segmentTrackGlass:{backgroundColor:u.color.glass,borderColor:u.color.glassBorder},segmentActive:{backgroundColor:u.color.surfaceElevated},segmentActiveGlass:{backgroundColor:u.color.glassElevated},segmentText:{fontSize:u.font.caption,fontWeight:"500",color:u.color.textSecondary},segmentTextActive:{fontWeight:"600",color:u.color.text},segmentUnderline:{position:"absolute",bottom:2,width:24,height:2.5,borderRadius:1.25,backgroundColor:u.color.accent,shadowColor:u.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:6},segmentSm:{paddingVertical:5},segmentTextSm:{fontSize:12},segmentUnderlineSm:{bottom:1.5,width:20,height:2,borderRadius:1},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:u.radius.badge,alignSelf:"flex-start"},badgeText:{fontSize:u.font.micro,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"},badgeAccent:{backgroundColor:u.color.accentSoft},badgeTextAccent:{color:u.color.accent},badgeWarning:{backgroundColor:u.color.warningSoft},badgeTextWarning:{color:u.color.warning},badgeDanger:{backgroundColor:u.color.dangerSoft},badgeTextDanger:{color:u.color.danger},badgeInfo:{backgroundColor:u.color.infoSoft},badgeTextInfo:{color:u.color.info},badgeNeutral:{backgroundColor:u.color.fillSecondary},badgeTextNeutral:{color:u.color.textSecondary}});import{jsx as Ne,jsxs as am}from"react/jsx-runtime";function Ca(e){switch(Dt(String(e))){case"dev":return{label:"DEV",backgroundColor:w.warning};case"qa":return{label:"QA",backgroundColor:w.optional};case"staging":return{label:"STAGING",backgroundColor:w.success};case"prod":return{label:"PROD",backgroundColor:w.error};case"local":default:return{label:"LOCAL",backgroundColor:w.info}}}function rm({color:e}){return Ne("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:Ne("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function sm({environment:e,interactive:t=false,onPress:a}){let r=Ca(e);return am("button",{onClick:t?a:void 0,"aria-label":`Environment: ${r.label}`,style:{display:"flex",flexDirection:"row",alignItems:"center",padding:`6px ${t?4:8}px 6px 8px`,flexShrink:0,background:"none",border:"none",cursor:t?"pointer":"default"},children:[Ne("div",{style:{width:8,height:8,borderRadius:4,backgroundColor:r.backgroundColor,marginRight:6,boxShadow:`0 0 4px ${r.backgroundColor}99`}}),Ne("span",{style:{fontSize:11,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:r.label}),t&&Ne("span",{style:{marginLeft:2,display:"flex"},children:Ne(rm,{color:"#7A8599"})})]})}import{jsx as Ae,jsxs as wa}from"react/jsx-runtime";var om=140,im=28,zr=44,nm=8,lm=24;function xa(e){switch(Dt(e)){case"local":return{label:"LOCAL",backgroundColor:w.info};case"dev":return{label:"DEV",backgroundColor:w.warning};case"qa":return{label:"QA",backgroundColor:w.optional};case"staging":return{label:"STAGING",backgroundColor:w.success};case"prod":return{label:"PROD",backgroundColor:w.error};default:return{label:"LOCAL",backgroundColor:w.info}}}function cm({environment:e,isSelected:t,onPress:a}){let r=xa(e);return wa(kg,{onPress:a,style:({pressed:s})=>[fe.optionContainer,t&&fe.optionContainerSelected,s&&fe.optionContainerPressed],children:[wa(T,{style:fe.optionLeft,children:[Ae(T,{style:[fe.optionDot,{backgroundColor:r.backgroundColor},{shadowColor:r.backgroundColor,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4,elevation:2}]}),Ae(H,{style:fe.optionLabel,children:r.label})]}),t&&Ae(Ka,{size:14,color:w.success,strokeWidth:3})]})}function um({hasItems:e,currentEnvironment:t,availableEnvironments:a,onSelect:r,width:s=om,collapsedContent:o}){let n=nm+a.length*zr+lm+4,i=wa(T,{style:fe.collapsedEnvBadge,children:[Ae(T,{style:[fe.collapsedDot,{backgroundColor:xa(t).backgroundColor}]}),Ae(H,{style:fe.collapsedLabel,children:xa(t).label})]});return Ae(Va,{hasItems:e,width:s,expandedHeight:n,peekHeight:im,showCount:false,collapsedContent:o||i,collapsedLabel:`Switch environment from ${t}`,children:a.map(l=>Ae(cm,{environment:l,isSelected:l===t,onPress:()=>r(l)},l))})}var fe=Ue.create({collapsedEnvBadge:{flexDirection:"row",alignItems:"center",gap:6},collapsedDot:{width:8,height:8,borderRadius:4},collapsedLabel:{fontSize:11,fontWeight:"600",color:w.primaryLight,letterSpacing:.5},optionContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,height:zr,width:"100%"},optionContainerSelected:{backgroundColor:"rgba(128, 128, 128, 0.1)"},optionContainerPressed:{backgroundColor:"rgba(128, 128, 128, 0.2)"},optionLeft:{flexDirection:"row",alignItems:"center",flex:1},optionDot:{width:8,height:8,borderRadius:4,marginRight:10},optionLabel:{fontSize:12,fontWeight:"600",color:w.primaryLight,letterSpacing:.5}});import{useState as Fr}from"react";import{jsx as re,jsxs as Et}from"react/jsx-runtime";var Hr=36;function dm({color:e,flipped:t}){return re("svg",{width:10,height:10,viewBox:"0 0 24 24","aria-hidden":"true",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:re("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function hm(){return re("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:re("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"#4AFF9F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function gm({currentEnvironment:e,availableEnvironments:t,onSelect:a}){let[r,s]=Fr(false),[o,n]=Fr(null),i=Ca(e),l=t.length*Hr;return Et("div",{style:{position:"relative",zIndex:1e3,flexShrink:0},children:[re("div",{style:{position:"absolute",bottom:"100%",left:0,right:0,height:r?l:0,opacity:r?1:0,overflow:"hidden",transition:"height 200ms ease, opacity 200ms ease",backgroundColor:"rgba(8,12,21,0.95)",border:"1px solid #00B8E666",borderBottomWidth:0,borderTopLeftRadius:6,borderTopRightRadius:6,boxShadow:"0 -4px 8px rgba(0,0,0,0.3)"},children:t.map(c=>{let p=Ca(c),b=String(c).toLowerCase()===String(e).toLowerCase();return Et("button",{onClick:()=>{s(false),a(c)},onPointerEnter:h=>h.pointerType==="mouse"&&n(String(c)),onPointerLeave:()=>n(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:Hr,padding:"0 10px",background:b?"rgba(128,128,128,0.1)":o===String(c)?"rgba(128,128,128,0.2)":"none",border:"none",cursor:"pointer"},children:[Et("span",{style:{display:"flex",alignItems:"center"},children:[re("span",{style:{width:6,height:6,borderRadius:3,backgroundColor:p.backgroundColor,marginRight:8}}),re("span",{style:{fontSize:10,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:p.label})]}),b&&re(hm,{})]},String(c))})}),Et("button",{onClick:()=>s(c=>!c),"aria-expanded":r,"aria-label":`Environment: ${i.label}. Click to switch.`,style:{display:"flex",alignItems:"center",gap:6,padding:"6px 6px 6px 8px",borderRadius:6,borderTopLeftRadius:r?0:6,borderTopRightRadius:r?0:6,backgroundColor:r?"rgba(8,12,21,0.95)":"transparent",border:"none",cursor:"pointer"},children:[re("span",{style:{width:8,height:8,borderRadius:4,backgroundColor:i.backgroundColor,boxShadow:`0 0 4px ${i.backgroundColor}99`}}),re("span",{style:{fontSize:11,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:i.label}),re(dm,{color:"#7A8599",flipped:r})]})]})}export{Ml as ARROW_BOTTOM_OFFSET,Nl as ARROW_HEIGHT,Bc as ASSETS_ICON_COLOR,Er as AccountSetup,Wa as AccountSetupButton,ii as ActionCopyButton,hu as Activity,Iu as ActivityIcon,zi as AddFilterButton,$i as AddFilterInput,mu as AlertCircle,Dd as AlertCircleIcon,yu as AlertOctagon,Su as AlertTriangle,Ou as AlertTriangleIcon,Cd as AskBuoyIcon,Mc as AssetsIcon,Wn as BACKGROUND_PRESETS,ll as BACKGROUND_STORAGE_KEY,Jd as BENCHMARK_ICON_COLOR,mg as BUOY_SYNTHETIC_MARK,Vi as BackButton,wl as BackgroundSwitcher,Gi as Badge,eu as BarChart3,ru as BarChart3Icon,Ag as BaseEventStore,Vd as BenchmarkIcon,Yh as BenchmarkLegacyIcon,Tu as Bookmark,Au as Box,Mu as BoxIcon,np as BubbleSettingsDetail,ip as BubbleSettingsSection,Pu as Bug,vd as BugIcon,bo as CELLS,vo as CLIP_OFFSCREEN_CELLS,mh as CLOCK_TOOL_ICON_COLOR,pc as CONSOLE_ICON_COLOR,vr as COPY_PAYLOAD_MAX_BYTES,gc as CameraIcon,Gg as ChangeLog,li as ChangeRow,Ka as Check,$u as CheckCircle,zc as CheckCircle2,jd as CheckCircle2Icon,Hu as CheckCircleIcon,Du as CheckIcon,uu as CheckSquare,Lc as CheckSquareIcon,ju as ChevronDown,Vu as ChevronDownIcon,Yu as ChevronLeft,qu as ChevronLeftIcon,Xu as ChevronRight,Zu as ChevronRightIcon,td as ChevronUp,uc as ChevronUpIcon,Di as ChipStrip,mn as ClipboardHintBanner,hc as Clock,sd as ClockIcon,dh as ClockToolIcon,nu as Cloud,du as CloudIcon,Zn as CollapsibleSection,fo as CompactFilterChips,Ll as CompactRow,Lo as CompareBar,dg as ConsoleIcon,id as Copy,Xo as CopyButton,cd as CopyIcon,en as CountBadge,Ga as CyberpunkSectionButton,Gn as DEFAULT_BACKGROUND,An as DEVTOOLS_CARD_CONSTANTS,rl as DataInspector,qa as Database,Td as DatabaseIcon,Al as DaylightTunable,vn as DeepFieldTunable,Hn as DetailView,Uo as DetailViewToggle,Pn as DevToolsCard,Oo as DiffModeTabs,pd as DockBottom,Sd as Download,ch as DownloadIcon,Vn as DraggableHeader,dl as DynamicFilterView,lg as ENV_ICON_COLOR,xo as EVENT_LIST_PRESET,kd as Edit3,gd as Edit3Icon,un as EmptyState,Ri as EntityFilterView,og as EnvIcon,$d as EnvLaptopIcon,sm as EnvironmentIndicator,um as EnvironmentSelector,gm as EnvironmentSelectorInline,No as EventHistoryViewer,Cn as EventListItem,Do as EventPickerModal,El as EventStepperFooter,Bu as EventsIcon,Va as ExpandablePopover,yo as ExpandedInfoRow,Ui as ExportPreview,Md as Eye,yd as EyeIcon,Ja as EyeOff,xd as EyeOffIcon,Yn as FeatureGate,Cc as FileCode,Ad as FileCodeIcon,zd as FileJson,Th as FileJsonIcon,Ud as FileText,Pd as FileTextIcon,qd as Film,pu as FilmIcon,eh as Filter,Li as FilterBadge,Bd as FilterIcon,Wi as FilterList,Oi as FilterSection,oh as FlaskConical,Wd as FlaskConicalIcon,uh as FloatWindow,jl as FloatingTool,Fl as FloatingToolDivider,ql as FloatingToolHost,Hl as FloatingToolUserStatus,Ii as FooterButton,Si as FooterCaption,xi as FooterMessage,bi as FooterRow,zo as FreeAccountPrompt,lc as GAME_UI_ALERT_STATES,rc as GameUICollapsibleSection,ic as GameUICompactStats,nc as GameUIIssuesList,oc as GameUIStatusHeader,ph as GitBranch,Yd as GitBranchIcon,Sh as Globe,Rd as GlobeIcon,qn as GripVerticalIcon,Uc as Hand,Mh as HandIcon,kc as HardDrive,Qd as HardDriveIcon,kh as Hash,rh as HashIcon,$n as HeaderSearchButton,wu as HelpCircle,nd as HighlightIcon,Bh as HighlightUpdatesIcon,Id as HighlighterIcon,Sn as HintsProvider,hs as HistoryEntryRow,gs as HistoryList,is as HistoryProvider,Oh as Home,Wc as HomeIcon,Oc as IMAGES_ICON_COLOR,qc as IMAGE_OVERLAY_ICON_COLOR,jc as IMPERSONATE_ICON_COLOR,_d as IconBackground,ld as IconCircle,rd as IconContainer,bd as IconLine,hd as IconRect,Nh as Image,vu as ImageIcon,Vc as ImageOverlayIcon,Ec as ImagesIcon,Fc as ImpersonateIcon,Fh as Info,lh as InfoIcon,Ho as InfoRow,ei as InlineCopyButton,lu as JOTAI_ICON_COLOR,su as JotaiIcon,Bp as JsModal,Vh as Key,gh as KeyIcon,$h as LIFECYCLE_TOOL_ICON_COLOR,Gh as LOCATION_TOOL_ICON_COLOR,_o as LOGIN_COMMAND,Eo as LOG_LIST_PRESET,Hd as LaptopIcon,Jh as Layers,yh as LayersIcon,_n as LicenseEntryModal,_h as LifecycleToolIcon,pn as LinearFade,eg as Link,Rh as LinkIcon,Ei as ListItem,Dn as LiveSkyTunable,Hh as LocationToolIcon,rg as Lock,fh as LockIcon,sa as LogLevel,sa as LogLevelEnum,oa as LogType,oa as LogTypeEnum,Bo as MAX_PERIOD,Pc as Maximize2,xh as Maximize2Icon,cn as MethodBadge,ig as Minus,Ah as MinusIcon,yi as ModalHeader,Ci as ModalHintBanner,kl as MoonlightTunable,cg as Music,xu as MusicIcon,ag as NETWORK_ICON_COLOR,Ya as NIGHT_LABEL_TRACKING,ih as NOTIFICATIONS_ICON_COLOR,hg as Navigation,wh as NavigationIcon,Ed as NetworkGlobeIcon,Zh as NetworkIcon,tm as NightBadge,Zp as NightButton,Kp as NightCard,Qp as NightChip,Yp as NightFootnote,qp as NightRows,Gp as NightSectionLabel,em as NightSegmented,Nr as NightSeparator,Xp as NightSwitch,fn as NoDataEmptyState,yn as NoResultsEmptyState,wn as NoSearchResultsEmptyState,th as NotificationsIcon,al as OTTO_ANCHORS,il as OTTO_ANCHOR_SIZE,Fn as OTTO_GRID,yl as OTTO_GROUPS,ul as OTTO_NOTES,Un as OTTO_PALETTE,xl as OTTO_REEL,po as OTTO_SCENES,Yi as OTTO_SCENE_BY_ID,Xi as OTTO_SCENE_CROP_H,_i as OTTO_SCENE_H,Mi as OTTO_SCENE_OTTO,ki as OTTO_SCENE_PALETTE,Ai as OTTO_SCENE_W,Qn as OTTO_STATES,fl as OTTO_STATE_NAMES,Cl as OTTO_USES,wi as Otto,mi as OttoMotionView,ni as OttoPixels,tn as OttoSceneFrame,on as OttoSceneStill,ui as OttoStill,Ih as PERMISSIONS_ICON_COLOR,mt as PERSONAL_SETTING_KEYS,br as PREVIEW_ITEM_RENDER_BYTE_LIMIT,mc as Palette,Lh as PaletteIcon,Sc as Pause,Dh as PauseIcon,Ch as PermissionsIcon,Eu as Phone,_u as PhoneIcon,di as Pill,wo as PillBadge,bc as Pin,Tc as Play,jh as PlayIcon,Ac as Plus,Kh as PlusIcon,_c as Power,Zd as PowerIcon,Pl as PowerToggleButton,wd as PrimitiveGlobeIcon,Nn as ProBadge,tl as ProFeatureBanner,zn as ProUpgradeModal,Hp as QrCodeView,Od as QueryIcon,Es as REMOTE_RELOAD_DELAY_MS,dn as RadialGlow,nn as RasterLayer,Gd as ReactQueryIcon,dd as ReduxIcon,Nc as RefreshCw,Qh as RefreshCwIcon,oi as RelativeTime,Wh as RenderCountIcon,Ph as RenderPulseIcon,Kc as Route,Qu as RouteDotIcon,bh as RouteIcon,hh as RouteMapIcon,Ku as RoutePathIcon,Uu as RoutePinIcon,ad as RouteTwoPinsIcon,Fu as RoutesIcon,$l as SPACING_GAP,Nd as ScenariosIcon,Dc as Search,nl as SearchBar,tg as SearchIcon,Ti as SectionHeader,Xd as SentryBugIcon,Lu as SentryIcon,Cr as SentryLogger,Hc as Server,Kd as ServerIcon,Ft as Settings,sg as SettingsIcon,Gc as SettingsSolid,fr as SettingsSync,Jc as Shield,ng as ShieldIcon,Nu as Smartphone,zu as SmartphoneIcon,iu as Square,fu as SquareDashed,$c as SquareDashedIcon,Rc as SquareIcon,Eh as StackPulseIcon,fs as StandaloneHistoryList,Tn as StatsCard,Ji as StatusBadge,Ln as StatusIndicator,md as StorageIcon,ah as StorageStackIcon,Zi as StorageTypeBadge,za as Subscribable,ur as TEAM_SETTING_KEYS,Wo as TIER_LIMITS,xc as TIME_MACHINE_ICON_COLOR,Mo as TRANSPARENT,gn as TabSelector,Yc as TestTube2,ug as TestTube2Icon,Jo as TickProvider,Bn as TimeDisplay,vc as TimeMachineIcon,Wu as Timer,Gu as TimerIcon,Pi as ToggleRow,zt as ToolBackground,bn as ToolButton,kn as ToolEmptyState,fi as ToolFooter,mr as ToolScreenHeaderContext,ci as ToolbarClearButton,ri as ToolbarCopyButton,Ju as Touchpad,ed as TouchpadIcon,au as Trash,Zc as Trash2,fc as Trash2Icon,zh as TrashIcon,Xc as TriangleAlert,Uh as TriangleAlertIcon,sn as TypeBadge,ou as Unlock,vh as UnlockIcon,ol as UpgradeModal,jn as UpgradePrompt,cu as Upload,sh as UploadIcon,gu as User,qh as UserIcon,dc as Users,od as UsersIcon,qi as ValueTypeBadge,Io as ViewToggleCards,ud as Volume,fd as VolumeIcon,Ro as WATER_CELLS,Po as WATER_FRAMES,Co as WATER_ROW0,ko as WATER_ROWS,pt as WIRE_DETAIL_LIMIT_BYTES,or as WIRE_INLINE_LIMIT_BYTES,bu as Wifi,Fd as WifiBifIcon,nh as WifiCircuitIcon,Ld as WifiIcon,Tl as WindowControls,xn as Wormhole,ku as X,Cu as XCircle,wc as XCircleIcon,yc as XIcon,tu as ZUSTAND_ICON_COLOR,Ru as Zap,Ic as ZapIcon,Qc as ZustandIcon,sc as absoluteFill,Sr as add,ft as approxJsonSize,Re as assertAccountAccess,hl as backgroundStore,Ps as browserRouter,K as buoyColors,zl as calculateTargetPosition,Dl as calculateTooltipPosition,gp as callCapacitorNative,_f as canOpenBuoyTools,nr as capDetail,jf as classifyPreviewItem,rp as clearEntries,hn as copyToClipboard,bg as countBuoyListener,rn as createAutoDetectedClipboard,zf as createRestoreScope,hf as createSyncAdapter,Cf as createToolFactory,Vg as createToolStore,qo as cycleIndexes,cp as definePersistedSetting,Sf as defineToolPreset,df as detailByIdAction,ke as devToolsStorageKeys,fg as dialColors,Yl as dismissFloatingTool,Ef as dispatchToolAction,tc as displayValue,Ff as emptyRestoreResult,Gf as entityColor,Vt as expandKeyedArrays,Ua as expandableWindowControlsSupported,Hf as failedRestore,sr as findKeyPath,jo as flatColors,ao as flattenObject,yr as formatBytes,qf as formatDuration,Zf as formatHttpStatus,Jf as formatNumber,ro as formatPath,Yo as formatRelativeTime,Zs as formatValue,Yf as formatValuePreview,w as gameUIColors,pe as getAccountAccess,ln as getAutoDetectedClipboard,Wl as getBubbleAnchorPosition,lp as getBubbleVisibilitySettings,oo as getCachedOptionalModule,hp as getCapacitorAppStorage,Ks as getConstructorName,Rs as getDevServerOrigin,Cs as getDeviceInfo,ap as getEntries,Ul as getFloatingTools,ep as getMethodColor,sl as getPreset,yg as getRealAppState,Ws as getRegisteredToolModule,no as getRenderCaptureProvider,pg as getSafeAreaInsets,Ds as getSafeCurrentPathname,zs as getSafeCurrentRoute,Bs as getSafeRouter,Bl as getScreenCenterY,In as getSkyScrub,uo as getStateSnapshotProvider,co as getStateSnapshotProviders,xg as getStorageBackendType,_e as getToolAdapters,Lf as getToolAttention,xs as getToolModuleVersion,eo as getTypeColor,Ha as getUseAccountAccess,cl as getUseIsPro,gl as getUseLicense,bl as getUseTier,Js as getValueSize,Vs as getValueType,Fo as gridKey,pr as guardToolAdapter,X as hasAccountAccess,fp as hasCapacitorPlugin,Ut as identityField,ee as ignoredPatternsStore,pp as isCapacitorNative,Sg as isDevToolsStorageKey,qs as isEmpty,Fs as isExpoRouterAvailable,Fa as isJsonSerializable,of as isOnDeviceMarker,Kt as isOverWireBudget,Xs as isPlainObjectUtil,Gs as isPrimitive,Sl as isProNow,Zt as isToolRegistryReady,Lg as isUrlIgnored,wg as isUsingPersistentStorage,Ys as isValidJson,Oe as listShapes,kf as listSnapshotToolIds,Tf as listToolActions,xf as listToolIds,so as loadOptionalModule,ws as logDeviceInfo,ct as macOSColors,lf as memoByIdentity,cr as mergeChangeSources,Xh as monoFont,si as motionUnits,cf as newestFitting,u as night,pi as noWindowDragProps,Dt as normalizeEnvironment,We as notifySubscriberCountChange,sf as onDeviceMarker,ff as onSettingsApplied,Of as openBuoyTool,Gl as openFloatingTool,Go as ottoCycle,Il as ottoReel,_l as ottoRuns,ji as ottoSceneBounds,Fi as ottoSceneRuns,ti as ottoSheets,Kn as ottoWaterRows,ac as parseDisplayValue,Gt as parsePath,tp as parseUrl,Qs as parseValue,ef as patchFromPath,W as persistentStorage,el as presetAt,Jn as presetIndex,lr as readParams,Zg as readPath,If as readToolSnapshot,Bt as realNow,Qo as rectsOf,gg as refreshGameUIColors,rf as refusalText,Os as registerBrowserRouter,Kl as registerPersistentFloatingTool,lo as registerStateSnapshotProvider,wf as registerToolAdapters,Hs as registerToolModules,Rf as registerToolOpener,Is as reloadApp,Rl as renderOttoFrame,Bi as renderOttoScene,ms as resetPersistedStateCache,Vo as resolveEffectiveTier,Rn as resolveListEmptyState,ks as resolveReloadStrategy,So as retryAccountAccess,Ql as safeStringify,mo as scatter,As as scheduleReloadApp,op as sentryLogger,pl as setExpandableWindowControls,io as setRenderCaptureProvider,On as setSkyScrub,Pf as setToolAttention,Kf as shallowDiffSummary,Ke as shapeKind,Ge as shapeOf,Xg as shapeSummary,qg as shapesWereTruncated,To as signOutOfBuoy,uf as sizeOrStub,Hi as sizeWarningLevel,Wf as skippedRestore,yf as startSettingsSync,je as subscribeAccountAccess,_s as subscribeBrowserNavigation,Vl as subscribeFloatingTools,vg as subscribeRealAppState,Ts as subscribeToStateSnapshotProviders,Us as subscribeToSubscriberCountChanges,Mf as subscribeToolAttention,js as subscriberCountNotifier,tf as suggestedPatch,ec as superJsonDeserialize,Zl as superJsonSerialize,vf as syncSettingsNow,ht as teamSettingsStore,nf as toWire,Ol as toolTheme,Qf as truncateMiddle,Xf as truncatePayload,to as truncateText,ir as truncatedNote,Yt as typedEditViolations,Vf as unionKeys,Jg as unshapedLists,Xa as urlMatchesIgnoredPattern,us as useAllHistoryEntries,bs as useChangeLog,Ni as useChipTap,Ss as useDeviceInfo,vs as useEventStoreEvents,Xn as useFeatureGate,Jl as useFilterManager,cc as useGameUIAlertState,En as useHintsContext,ja as useHintsDisabled,cs as useHistoryAdapter,ls as useHistoryAdapters,ns as useHistoryContext,ds as useHistoryEntryCounts,Fg as useIgnoredPatterns,Ko as useLimit,Qi as useLoop,vi as useOttoAnchorMotion,gi as useOttoReel,ps as usePersistedState,an as usePulse,ai as useRelativeTime,Xl as useSafeAreaInsets,$s as useSafeGlobalSearchParams,Ms as useSafePathname,Ls as useSafeRouter,Ns as useSafeSegments,Mn as useSkyScrub,ys as useSubscribedValue,jg as useTeamList,Zo as useTick,ml as useToolBackground,Df as useToolScreenHeader,Af as waitForToolRegistry,hi as windowDragProps,Ki as withBgAlpha,Uf as wontApply};
|
package/lib/web/native.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{$ as a,A as s,B as e,C as t,D as i,E as o,F as n,G as r,H as l,I as c,J as d,K as u,L as b,M as g,N as h,O as m,P as p,Q as A,R as S,S as v,T as x,U as y,V as B,W as I,X as k,Y as w,Z as L,_ as T,a as f,aa as E,b as P,ba as V,c as C,ca as M,d as N,da as R,e as D,f as F,g as H,h as K,i as W,j as z,k as O,l as U,m as Y,n as _,o as j,p as q,q as G,r as J,s as Q,t as X,u as Z,v as $,w as aa,x as sa,y as ea,z as ta}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-
|
|
1
|
+
"use client";import{$ as a,A as s,B as e,C as t,D as i,E as o,F as n,G as r,H as l,I as c,J as d,K as u,L as b,M as g,N as h,O as m,P as p,Q as A,R as S,S as v,T as x,U as y,V as B,W as I,X as k,Y as w,Z as L,_ as T,a as f,aa as E,b as P,ba as V,c as C,ca as M,d as N,da as R,e as D,f as F,g as H,h as K,i as W,j as z,k as O,l as U,m as Y,n as _,o as j,p as q,q as G,r as J,s as Q,t as X,u as Z,v as $,w as aa,x as sa,y as ea,z as ta}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-L63X3LPR.mjs";export{G as AccessibilityInfo,O as ActivityIndicator,_ as Alert,J as Animated,X as AppRegistry,Z as AppState,Q as Appearance,$ as BackHandler,U as Button,g as CheckBox,aa as Clipboard,E as DeviceEventEmitter,sa as Dimensions,ea as Easing,h as FlatList,ta as I18nManager,m as Image,p as ImageBackground,e as InteractionManager,s as Keyboard,A as KeyboardAvoidingView,t as LayoutAnimation,i as Linking,a as LogBox,W as Modal,o as NativeEventEmitter,q as NativeModules,n as PanResponder,S as Picker,r as PixelRatio,l as Platform,H as Pressable,v as ProgressBar,x as RefreshControl,y as SafeAreaView,K as ScrollView,B as SectionList,c as Share,I as StatusBar,d as StyleSheet,z as Switch,P as Text,C as TextInput,k as Touchable,D as TouchableHighlight,w as TouchableNativeFeedback,N as TouchableOpacity,F as TouchableWithoutFeedback,u as UIManager,b as Vibration,f as View,L as VirtualizedList,T as YellowBox,Y as findNodeHandle,j as unstable_createElement,V as useColorScheme,M as useLocaleContext,R as useWindowDimensions};
|