@buoy-gg/shared-ui 7.0.43 → 7.0.45

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.
Files changed (185) hide show
  1. package/lib/commonjs/hooks/useDeviceInfo.js +1 -1
  2. package/lib/commonjs/icons/index.js +1 -1
  3. package/lib/commonjs/index.js +1 -1
  4. package/lib/commonjs/license/index.js +1 -1
  5. package/lib/commonjs/license/licenseModule.js +1 -1
  6. package/lib/commonjs/storage/devToolsStorageKeys.js +1 -1
  7. package/lib/commonjs/sync/toolScreenHeader.js +1 -0
  8. package/lib/commonjs/ui/backgrounds/primitives.js +1 -1
  9. package/lib/commonjs/ui/backgrounds/variants/liveSky.js +1 -1
  10. package/lib/commonjs/ui/components/CompactRow.js +1 -1
  11. package/lib/commonjs/utils/index.js +1 -1
  12. package/lib/commonjs/utils/loadToolModule.js +1 -1
  13. package/lib/commonjs/utils/realAppState.js +1 -0
  14. package/lib/module/hooks/useDeviceInfo.js +1 -1
  15. package/lib/module/icons/index.js +1 -1
  16. package/lib/module/index.js +1 -1
  17. package/lib/module/license/index.js +1 -1
  18. package/lib/module/license/licenseModule.js +1 -1
  19. package/lib/module/storage/devToolsStorageKeys.js +1 -1
  20. package/lib/module/sync/toolScreenHeader.js +1 -0
  21. package/lib/module/ui/backgrounds/primitives.js +1 -1
  22. package/lib/module/ui/backgrounds/variants/liveSky.js +1 -1
  23. package/lib/module/ui/components/CompactRow.js +1 -1
  24. package/lib/module/utils/index.js +1 -1
  25. package/lib/module/utils/loadToolModule.js +1 -1
  26. package/lib/module/utils/realAppState.js +1 -0
  27. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  28. package/lib/typescript/commonjs/icons/index.d.ts +3 -0
  29. package/lib/typescript/commonjs/index.d.ts +4 -3
  30. package/lib/typescript/commonjs/license/index.d.ts +1 -1
  31. package/lib/typescript/commonjs/license/licenseModule.d.ts +11 -0
  32. package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts +26 -0
  33. package/lib/typescript/commonjs/sync/toolScreenHeader.d.ts +26 -0
  34. package/lib/typescript/commonjs/utils/index.d.ts +1 -0
  35. package/lib/typescript/commonjs/utils/realAppState.d.ts +21 -0
  36. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  37. package/lib/typescript/module/icons/index.d.ts +3 -0
  38. package/lib/typescript/module/index.d.ts +4 -3
  39. package/lib/typescript/module/license/index.d.ts +1 -1
  40. package/lib/typescript/module/license/licenseModule.d.ts +11 -0
  41. package/lib/typescript/module/storage/devToolsStorageKeys.d.ts +26 -0
  42. package/lib/typescript/module/sync/toolScreenHeader.d.ts +26 -0
  43. package/lib/typescript/module/utils/index.d.ts +1 -0
  44. package/lib/typescript/module/utils/realAppState.d.ts +21 -0
  45. package/lib/web/chunks/chunk-26OV3QDY.mjs +1 -1
  46. package/lib/web/chunks/chunk-2MHKRRQW.mjs +1 -0
  47. package/lib/web/chunks/chunk-2Q3SDPH2.mjs +13 -0
  48. package/lib/web/chunks/chunk-34YQ42KI.mjs +1 -0
  49. package/lib/web/chunks/chunk-3NNNCQYP.mjs +13 -0
  50. package/lib/web/chunks/chunk-46CXXOQB.mjs +1 -0
  51. package/lib/web/chunks/chunk-46TKOKMV.mjs +1 -0
  52. package/lib/web/chunks/chunk-475BSDCB.mjs +1 -0
  53. package/lib/web/chunks/chunk-552W4COI.mjs +1 -0
  54. package/lib/web/chunks/chunk-55EIUPOI.mjs +14 -0
  55. package/lib/web/chunks/chunk-56TTTMX4.mjs +1 -0
  56. package/lib/web/chunks/chunk-5KWAGM5V.mjs +1 -1
  57. package/lib/web/chunks/chunk-5LOQZINQ.mjs +13 -0
  58. package/lib/web/chunks/chunk-5NOIO6ZM.mjs +15 -0
  59. package/lib/web/chunks/chunk-6CCRCSA2.mjs +1 -0
  60. package/lib/web/chunks/chunk-6Q52HRBL.mjs +1 -0
  61. package/lib/web/chunks/chunk-6TEDFSNM.mjs +1 -0
  62. package/lib/web/chunks/chunk-7BLJTQ4U.mjs +1 -0
  63. package/lib/web/chunks/chunk-7BMRSMHN.mjs +1 -0
  64. package/lib/web/chunks/chunk-7PRKERDN.mjs +1 -1
  65. package/lib/web/chunks/chunk-7YVWZ4ZK.mjs +1 -0
  66. package/lib/web/chunks/chunk-A2SOFE47.mjs +1 -0
  67. package/lib/web/chunks/chunk-A7KJCK4R.mjs +13 -0
  68. package/lib/web/chunks/chunk-AEXGGXS7.mjs +1 -0
  69. package/lib/web/chunks/chunk-AGD7ZT6O.mjs +14 -0
  70. package/lib/web/chunks/chunk-AIEOQWNG.mjs +1 -0
  71. package/lib/web/chunks/chunk-ASEPWYDC.mjs +14 -0
  72. package/lib/web/chunks/chunk-ASTM35HG.mjs +15 -0
  73. package/lib/web/chunks/chunk-AZBMFPMX.mjs +1 -0
  74. package/lib/web/chunks/chunk-B2V2UDCU.mjs +15 -0
  75. package/lib/web/chunks/chunk-BFGKGTAC.mjs +1 -0
  76. package/lib/web/chunks/chunk-BHW6AFO6.mjs +1 -0
  77. package/lib/web/chunks/chunk-BWRW3NJ2.mjs +15 -0
  78. package/lib/web/chunks/chunk-CBM2IZAK.mjs +1 -0
  79. package/lib/web/chunks/chunk-CDLCFF44.mjs +1 -0
  80. package/lib/web/chunks/chunk-CI5CO7FQ.mjs +1 -0
  81. package/lib/web/chunks/chunk-CIB4U2YK.mjs +1 -0
  82. package/lib/web/chunks/chunk-CLLTZQGD.mjs +1 -0
  83. package/lib/web/chunks/chunk-D4RXBAOO.mjs +2 -2
  84. package/lib/web/chunks/chunk-D5HQLRFW.mjs +1 -0
  85. package/lib/web/chunks/chunk-DEJNSL6V.mjs +1 -0
  86. package/lib/web/chunks/chunk-DZDTNXXK.mjs +1 -0
  87. package/lib/web/chunks/chunk-EMEAL3L5.mjs +1 -0
  88. package/lib/web/chunks/chunk-ER3T3IDI.mjs +1 -1
  89. package/lib/web/chunks/chunk-F6SJ5CLB.mjs +1 -0
  90. package/lib/web/chunks/chunk-FDOZ6YSS.mjs +1 -0
  91. package/lib/web/chunks/chunk-FMEWNGQO.mjs +1 -0
  92. package/lib/web/chunks/chunk-G4DH7GMT.mjs +1 -0
  93. package/lib/web/chunks/chunk-GBUZCZE4.mjs +1 -0
  94. package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +1 -0
  95. package/lib/web/chunks/chunk-GNGMIA7V.mjs +1 -0
  96. package/lib/web/chunks/chunk-GTYIS7H7.mjs +14 -0
  97. package/lib/web/chunks/chunk-GZE3FIOX.mjs +1 -0
  98. package/lib/web/chunks/chunk-HGA3GJA6.mjs +1 -0
  99. package/lib/web/chunks/chunk-HJ36IONA.mjs +14 -0
  100. package/lib/web/chunks/chunk-HXPTZMAZ.mjs +1 -0
  101. package/lib/web/chunks/chunk-I27M4JCS.mjs +1 -0
  102. package/lib/web/chunks/chunk-IVCT27JB.mjs +1 -0
  103. package/lib/web/chunks/chunk-JG4QSK5B.mjs +1 -0
  104. package/lib/web/chunks/chunk-JR7BJW6B.mjs +1 -0
  105. package/lib/web/chunks/chunk-JYM7MCKQ.mjs +1 -0
  106. package/lib/web/chunks/chunk-K46ZJUXJ.mjs +1 -0
  107. package/lib/web/chunks/chunk-K4EGHHD6.mjs +1 -0
  108. package/lib/web/chunks/chunk-K4LXMO4D.mjs +1 -0
  109. package/lib/web/chunks/chunk-K7CGIEFU.mjs +1 -1
  110. package/lib/web/chunks/chunk-KBTYK5YE.mjs +1 -0
  111. package/lib/web/chunks/chunk-KHP6CSSM.mjs +1 -0
  112. package/lib/web/chunks/chunk-KRDRIW7T.mjs +13 -0
  113. package/lib/web/chunks/chunk-L2DTKDER.mjs +1 -0
  114. package/lib/web/chunks/chunk-L3AFTHWX.mjs +6 -6
  115. package/lib/web/chunks/chunk-LFDFDGHY.mjs +1 -0
  116. package/lib/web/chunks/chunk-MAIUUK4E.mjs +1 -0
  117. package/lib/web/chunks/chunk-MKJKS3IG.mjs +1 -0
  118. package/lib/web/chunks/chunk-MRQKVLXG.mjs +1 -0
  119. package/lib/web/chunks/chunk-NK3OISOL.mjs +13 -0
  120. package/lib/web/chunks/chunk-NLJDDIXW.mjs +1 -0
  121. package/lib/web/chunks/chunk-OENR3XFI.mjs +1 -0
  122. package/lib/web/chunks/chunk-OPTY6SMO.mjs +1 -0
  123. package/lib/web/chunks/chunk-OZB3VKZE.mjs +1 -0
  124. package/lib/web/chunks/chunk-P64PFJT3.mjs +5 -0
  125. package/lib/web/chunks/chunk-PACPGYH7.mjs +1 -0
  126. package/lib/web/chunks/chunk-PART6HOE.mjs +13 -0
  127. package/lib/web/chunks/chunk-PMRXUQRH.mjs +1 -0
  128. package/lib/web/chunks/chunk-PTK5FO6C.mjs +1 -1
  129. package/lib/web/chunks/chunk-PZ45TQ55.mjs +13 -0
  130. package/lib/web/chunks/chunk-Q5LN7GET.mjs +5 -0
  131. package/lib/web/chunks/chunk-QCD6T6L4.mjs +1 -0
  132. package/lib/web/chunks/chunk-QD5EUANU.mjs +1 -0
  133. package/lib/web/chunks/chunk-QJTECJCO.mjs +1 -0
  134. package/lib/web/chunks/chunk-QPIZURPZ.mjs +1 -0
  135. package/lib/web/chunks/chunk-QPY45R5F.mjs +1 -0
  136. package/lib/web/chunks/chunk-QQTJ463K.mjs +1 -0
  137. package/lib/web/chunks/chunk-R2SGZIG5.mjs +1 -0
  138. package/lib/web/chunks/chunk-RJO7RXQQ.mjs +1 -0
  139. package/lib/web/chunks/chunk-S3GYQYVJ.mjs +15 -0
  140. package/lib/web/chunks/chunk-SCCXVTDM.mjs +1 -0
  141. package/lib/web/chunks/chunk-SHJHD646.mjs +1 -0
  142. package/lib/web/chunks/chunk-T2SPCEHP.mjs +1 -0
  143. package/lib/web/chunks/chunk-T3WLUEET.mjs +1 -0
  144. package/lib/web/chunks/chunk-T6KN54NS.mjs +1 -0
  145. package/lib/web/chunks/chunk-TCRVZ55E.mjs +1 -0
  146. package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +14 -0
  147. package/lib/web/chunks/chunk-TJUBBXXK.mjs +1 -1
  148. package/lib/web/chunks/chunk-TPSY4RC3.mjs +13 -0
  149. package/lib/web/chunks/chunk-U5KNX5O6.mjs +5 -0
  150. package/lib/web/chunks/chunk-UCKELQSM.mjs +1 -0
  151. package/lib/web/chunks/chunk-UGGCYHRH.mjs +1 -0
  152. package/lib/web/chunks/chunk-UKYVRCMZ.mjs +1 -1
  153. package/lib/web/chunks/chunk-UNYQJZET.mjs +15 -0
  154. package/lib/web/chunks/chunk-VE72SWLV.mjs +14 -0
  155. package/lib/web/chunks/chunk-VKONO6MI.mjs +1 -0
  156. package/lib/web/chunks/chunk-VOS562HW.mjs +14 -0
  157. package/lib/web/chunks/chunk-W4BGMPJO.mjs +1 -0
  158. package/lib/web/chunks/chunk-WHNEEKLR.mjs +1 -0
  159. package/lib/web/chunks/chunk-WIFX6XNL.mjs +15 -0
  160. package/lib/web/chunks/chunk-WLGUP3KY.mjs +15 -0
  161. package/lib/web/chunks/chunk-WY7D4WBZ.mjs +1 -0
  162. package/lib/web/chunks/chunk-XD2BEYMM.mjs +15 -0
  163. package/lib/web/chunks/chunk-XMDNJJS5.mjs +14 -0
  164. package/lib/web/chunks/chunk-XRNB2MHO.mjs +1 -0
  165. package/lib/web/chunks/chunk-XUHVHSSG.mjs +14 -0
  166. package/lib/web/chunks/chunk-XXTIAXQY.mjs +1 -0
  167. package/lib/web/chunks/chunk-YG6DIKQD.mjs +1 -0
  168. package/lib/web/chunks/chunk-YIZFMU66.mjs +1 -0
  169. package/lib/web/chunks/chunk-YOGAPOGC.mjs +1 -0
  170. package/lib/web/chunks/chunk-Z7373DS5.mjs +1 -0
  171. package/lib/web/chunks/chunk-Z76GRN66.mjs +5 -0
  172. package/lib/web/chunks/chunk-ZFPRFFDY.mjs +1 -0
  173. package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +1 -0
  174. package/lib/web/chunks/persistentStorage.web-6S5TDRE4.mjs +1 -0
  175. package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +1 -0
  176. package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +1 -0
  177. package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +1 -0
  178. package/lib/web/chunks/persistentStorage.web-SOPYL5VC.mjs +1 -0
  179. package/lib/web/dataViewer.mjs +1 -1
  180. package/lib/web/history.mjs +1 -1
  181. package/lib/web/hooks.mjs +1 -1
  182. package/lib/web/index.mjs +2 -2
  183. package/lib/web/ui.mjs +1 -1
  184. package/lib/web/utils.mjs +1 -1
  185. package/package.json +5 -5
package/lib/web/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- "use client";import{a as gr,b as pr,c as fr,d as br,e as mr,f as yr,g as Sr,h as vr,i as xr}from"./chunks/chunk-ER3T3IDI.mjs";import{a as Cr,b as wr,c as kr,d as Tr,e as Ir,f as Er,g as Ar,h as Rr}from"./chunks/chunk-D4RXBAOO.mjs";import{$ as Or,A as Lr,B as $r,C as Pr,D as Br,E as Mr,F as Dr,G as Nr,J as zr,K as _r,L as Wr,M as Fr,N as jr,O as Hr,P as Ur,Q as Vr,R as Gr,S as Yr,Z as Kr,_ as Jr,a as oa,b as qr,c as Xr,d as Oe,e as Qr,f as Zr,g as na,h as es,i as ts,j as as,k as rs,l as ss,m as ft,n as os,o as ns,p as is,q as ls,r as cs,s as ds,t as us,u as hs,v as gs,w as ps,x as fs,y as bs,z as ms}from"./chunks/chunk-26OV3QDY.mjs";import"./chunks/chunk-LZ7FZZ7R.mjs";import{a as ys,d as Ss,f as bt}from"./chunks/chunk-53J2FMUD.mjs";import{$ as vs,$a as xs,$b as Cs,A as ws,Aa as ks,Ab as Ts,B as Is,Ba as Es,Bb as As,C as Rs,Ca as Os,Cb as Ls,D as $s,Da as Ps,Db as Bs,E as Ms,Ea as Ds,Eb as Ns,F as zs,Fa as _s,Fb as Ws,G as Fs,Ga as js,Gb as Hs,H as Us,Ha as Vs,Hb as Gs,I as Ys,Ia as Ks,Ib as Js,J as qs,Ja as Xs,Jb as Qs,K as Zs,Ka as eo,Kb as to,L as ao,La as ro,Lb as so,M as oo,Ma as no,Mb as io,N as lo,Na as co,Nb as uo,O as ho,Oa as go,Ob as po,P as fo,Pa as bo,Pb as mo,Q as yo,Qa as So,Qb as vo,R as xo,Ra as Co,Rb as wo,S as ko,Sa as To,Sb as Io,T as Eo,Ta as Ao,Tb as Ro,U as Oo,Ua as Lo,Ub as $o,V as Po,Va as Bo,Vb as Mo,W as Do,Wa as No,Wb as zo,X as _o,Xa as Wo,Xb as Fo,Y as jo,Ya as Ho,Yb as Uo,Z as Vo,Za as Go,Zb as Yo,_ as Ko,_a as Jo,_b as qo,a as Xo,aa as Qo,ab as Zo,ac as en,b as tn,ba as an,bb as rn,bc as sn,c as on,ca as nn,cb as ln,cc as cn,d as dn,da as un,db as hn,dc as gn,e as pn,ea as fn,eb as bn,ec as mn,f as yn,fa as Sn,fb as vn,fc as xn,g as Cn,ga as wn,gb as kn,gc as Tn,h as In,ha as En,hb as An,hc as Rn,i as ia,ia as On,ib as Ln,ic as $n,j as Pn,ja as Bn,jb as Mn,jc as Dn,k as Nn,ka as zn,kb as _n,kc as Wn,l as Fn,la as jn,lb as Hn,lc as Un,m as Vn,ma as Gn,mb as Yn,mc as Kn,n as Jn,na as qn,nb as Xn,nc as Qn,o as Zn,oa as ei,ob as ti,oc as ai,p as ri,pa as si,pb as oi,pc as mt,q as ni,qa as ii,qb as li,qc as ci,r as di,ra as ui,rb as hi,rc as gi,s as pi,sa as fi,sb as bi,sc as mi,t as yi,ta as Si,tb as la,tc as vi,u as xi,ua as Ci,ub as wi,uc as ca,v as oe,va as ki,vb as Ti,vc as Ii,w as G,wa as Ei,wb as Ai,wc as Ri,x as Se,xa as Oi,xb as Li,xc as $i,y as Le,ya as Pi,yb as Bi,z as da,za as Mi,zb as Di}from"./chunks/chunk-L3AFTHWX.mjs";import{a as Ni}from"./chunks/chunk-TJUBBXXK.mjs";import{a as zi,b as _i,c as Wi,d as Fi,e as ji,f as Hi,g as Ui,h as Vi,i as Gi,j as Yi,k as Ki,l as Ji,m as qi,n as Xi,o as Qi,p as Zi}from"./chunks/chunk-XYUAUO57.mjs";import{a as d,b as ua}from"./chunks/chunk-GF5C5DVX.mjs";import{a as el,b as tl}from"./chunks/chunk-K7CGIEFU.mjs";import{a as al,b as rl,c as sl,d as ol,e as nl,f as il,g as ll,h as cl,i as dl,j as ul,k as hl,l as gl}from"./chunks/chunk-7PRKERDN.mjs";import{$ as pl,$a as fl,$b as bl,$c as ml,Aa as yl,Ab as Sl,Ac as vl,B as xl,Ba as Cl,Bb as wl,Bc as kl,C as Tl,Ca as Il,Cb as El,Cc as Al,D as Rl,Da as Ol,Db as Ll,Dc as $l,Ea as Pl,Eb as Bl,Ec as Ml,F as Dl,Fa as Nl,Fb as zl,Fc as _l,Ga as Wl,Gb as Fl,Gc as jl,Ha as Hl,Hb as Ul,Hc as Vl,I as Gl,Ib as Yl,Ic as yt,Ja as Kl,Jb as Jl,Jc as ql,K as Xl,Ka as Ql,Kb as Zl,Kc as ec,La as tc,Lb as ac,Lc as rc,Ma as sc,Mb as oc,Mc as nc,Na as ic,Nb as lc,Nc as cc,O as dc,Oa as uc,Ob as hc,Oc as gc,P as pc,Pa as fc,Pb as bc,Pc as mc,Q as yc,Qa as Sc,Qb as vc,Qc as xc,R as Cc,Ra as wc,Rb as kc,Rc as Tc,S as Ic,Sa as Ec,Sb as Ac,Sc as Rc,T as Oc,Ta as Lc,Tb as $c,Tc as Pc,U as Bc,Ua as Mc,Ub as Dc,Uc as Nc,V as zc,Va as _c,Vb as Wc,Vc as Fc,W as jc,Wa as Hc,Wb as ha,Wc as Uc,X as Vc,Xa as Gc,Xb as Yc,Xc as Kc,Y as Jc,Ya as qc,Yb as Xc,Yc as Qc,Z as Zc,Za as ed,Zb as td,Zc as ad,_ as rd,_a as sd,_b as od,_c as nd,a as id,aa as ld,ab as cd,ac as dd,ad as ud,b as hd,ba as gd,bb as pd,bc as ga,bd as fd,c as bd,ca as md,cb as yd,cc as Sd,cd as vd,d as xd,da as Cd,db as wd,dc as kd,dd as Td,e as Id,ea as Ed,eb as Ad,ec as Rd,ed as Od,f as Ld,fa as $d,fb as Pd,fc as pa,fd as Bd,g as Md,ga as Dd,gb as Nd,gc as zd,gd as _d,h as Wd,ha as Fd,hb as jd,hc as Hd,hd as Ud,i as Vd,ia as Gd,ib as Yd,ic as Kd,id as Jd,j as qd,ja as Xd,jb as Qd,jc as Zd,jd as eu,k as tu,ka as au,kb as ru,kc as su,kd as ou,l as nu,la as iu,lb as lu,lc as cu,ld as du,m as uu,ma as hu,mb as gu,mc as pu,md as fu,n as bu,na as mu,nb as yu,nc as Su,nd as vu,o as xu,oa as Cu,ob as wu,oc as ku,od as Tu,p as Iu,pa as Eu,pb as Au,pc as Ru,q as Ou,qa as Lu,qb as $u,qc as Pu,r as Bu,ra as Mu,rb as Du,rc as Nu,s as zu,sa as _u,sb as Wu,sc as Fu,t as ju,ta as Hu,tb as Uu,tc as Vu,u as Gu,ua as Yu,ub as Ku,uc as Ju,va as qu,vb as Xu,vc as Qu,wa as Zu,wb as eh,wc as th,xa as ah,xb as rh,xc as sh,ya as oh,yb as nh,yc as ih,za as lh,zb as ch,zc as dh}from"./chunks/chunk-UKYVRCMZ.mjs";import{a as Ke,d as x,e as uh,f as U,g as hh}from"./chunks/chunk-CE5U3CSQ.mjs";import{a as gh}from"./chunks/chunk-PTK5FO6C.mjs";import{a as fe,b as ph,c as j,d as fh,e as bh}from"./chunks/chunk-5KWAGM5V.mjs";import{H as mh,J as $e,a as k,b as M,d as Je,g as yh,h as Sh,j as vh,r as St}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";var xh=class extends oa{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=()=>{oe().status==="locked"?(this.stopCapturing(),this.events=[],this.notifyArrayListeners()):this.getTotalSubscriberCount()>0&&!this.captureSuppressed&&!this.isCapturing()&&this.startCapturing()};Le(t),t()})}onSubscribe(){this.getTotalSubscriberCount()===1&&!this.captureSuppressed&&oe().status!=="locked"&&this.startCapturing(),Oe(this.storeName)}onUnsubscribe(){this.getTotalSubscriberCount()===0&&this.stopCapturing(),Oe(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&&oe().status!=="locked"&&this.startCapturing(),Oe(this.storeName),e(this.getEvents()),()=>{this.arrayListeners.delete(e),this.getTotalSubscriberCount()===0&&this.stopCapturing(),Oe(this.storeName)}}onEvent(e){return this.subscribe(e)}addEvent(e){oe().status!=="locked"&&(this.events=[e,...this.events].slice(0,this.maxEvents),G()&&this.notify(e),this.notifyArrayListeners())}notifyArrayListeners(){let e=this.getEvents();this.arrayListeners.forEach(t=>{try{t(e)}catch{}})}getEvents(){return G()?this.events:[]}getEventCount(){return G()?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 Ch,useMemo as wh,useState as kh}from"react";var Th=[{value:"buoy.gg/api/license",mode:"contains"},{value:"api.keygen.sh",mode:"contains"}];function fa(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 Ih(e,t){return!e||t.length===0?false:t.some(a=>fa(e,a))}var ba=Th;function Eh(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 ma(e){let t=[...e];for(let a of ba)t.some(r=>r.value===a.value)||t.push({...a});return t}var Ah=class{constructor(){this.patterns=ma(ba.map(e=>({...e})));this.listeners=new Set;this.loaded=false;this.loadPromise=null;this.dirty=false}getPatterns(){return 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 j.getItem(fe.network.ignoredDomains());if(e&&!this.dirty){let t=ma(Eh(JSON.parse(e)));this.patterns=t}}catch{}finally{this.loaded=true,this.emit()}})(),this.loadPromise)}persist(){j.setItem(fe.network.ignoredDomains(),JSON.stringify(this.patterns)).catch(()=>{})}commit(e){this.dirty=true,this.patterns=e,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))}},ne=new Ah,Rh=e=>ne.add(e),Oh=e=>ne.remove(e),Lh=e=>ne.toggle(e),$h=e=>ne.toggleMode(e);function Ph(){let[e,t]=kh(()=>ne.getPatterns());Ch(()=>ne.subscribe(()=>{t(ne.getPatterns())}),[]);let a=wh(()=>new Set(e.map(r=>r.value)),[e]);return{patterns:e,values:a,add:Rh,remove:Oh,toggle:Lh,toggleMode:$h}}function Bh(e){typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):setTimeout(e,0)}function Mh(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,h=0,b=false,S=[],f=false;function m(){f||(f=true,Le(()=>{oe().status==="locked"&&(n=[]),se()}))}let C=new Set,$=new Set;function V(){for(let y of C)try{y()}catch{}}function se(){if(r==="sync"){V();return}b||(b=true,Bh(()=>{b=false,V()}))}function N(y){return y.length<=o?y:a==="append"?y.slice(y.length-o):y.slice(0,o)}return{id:t,subscribe(y){return m(),C.add(y),()=>{C.delete(y)}},getSnapshot(){return m(),G()?n:S},size(){return G()?n.length:0},add(y){m(),!(i||oe().status==="locked")&&(a==="append"?n=n.length>=o?[...n.slice(n.length-o+1),y]:[...n,y]:n=n.length>=o?[y,...n.slice(0,o-1)]:[y,...n],se())},set(y){m(),G()&&(n=N(y),se())},update(y){m(),oe().status!=="locked"&&(n=N(y(n)),se())},clear(){for(let y of $)try{y()}catch{}n.length!==0&&(n=[],se())},onClear(y){return $.add(y),()=>{$.delete(y)}},notify(){se()},flushSync(y=false){let Q=Date.now();if(!(!y&&Q-h<s)){h=Q;try{let L=globalThis.__buoyFlushToolSync;if(!L)return;for(let We of L)We(t)}catch{}}},setPaused(y){i=y},isPaused(){return i},setMax(y){o=y;let Q=N(n);Q!==n&&(n=Q,se())},getMax(){return o},allocId(){return l++},bumpIdAbove(y){y+1>l&&(l=y+1)},listenerCount(){return C.size}}}var Dh=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 be=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Nh=["id","lineId","key","uuid","_id","slug","name"];function vt(e){if(!e.length||!e.every(be))return;let t=e[0];for(let a of Nh){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 zh(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 xt(e,t,a="",r=[]){if(Array.isArray(e)&&be(t)){let s=vt(e);if(!s)return{patch:t,notes:r};let o=new Map(e.map(b=>[String(b[s]),b])),n=e.slice(),i=0,l=0,h=0;for(let[b,S]of Object.entries(t)){let f=n.findIndex(m=>String(m[s])===b);if(S===null){if(f===-1)return{patch:t,notes:r};n.splice(f,1),i++}else if(f===-1){if(!be(S))return{patch:t,notes:r};let m=zh(e,s,b,S);if(!m.ok)return{patch:t,notes:r,error:m.error};n.push({...S,[s]:m.value}),h++}else{let m=xt(o.get(b),S,`${a}[${b}]`,r);if(m.error)return{patch:t,notes:r,error:m.error};let C=n[f];n[f]=be(C)&&be(m.patch)?{...C,...m.patch}:m.patch,l++}}return r.push(`${a||"(root)"}: addressed by \`${s}\` \u2014 ${l} changed, ${h} added, ${i} removed, ${n.length} item(s) remain`),{patch:n,notes:r}}if(be(e)&&be(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=xt(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 qe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Pe(e,t=0){if(e===null)return"null";if(Array.isArray(e)){if(!e.length)return"unknown[]";if(t>=3)return"\u2026[]";let r=Pe(e[0],t+1);return r.includes(" ")||r.endsWith("]")?`(${r})[]`:`${r}[]`}if(qe(e)){if(t>=3)return"{\u2026}";let r=Object.keys(e),s=r.slice(0,24),o=s.map(i=>`${i}: ${Pe(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 ve(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:Pe(o)}:{}}),e.length&&qe(o))for(let[n,i]of Object.entries(o)){if(++s.visited>=600)break;ve(i,t?`${t}[].${n}`:`[].${n}`,a,r+1,s)}return a}if(qe(e))for(let[o,n]of Object.entries(e)){if(++s.visited>=600)break;ve(n,t?`${t}.${o}`:o,a,r+1,s)}return a}function _h(e){let t={visited:0};return ve(e,"",[],0,t).length>=40||t.visited>=600}function Wh(e){return ve(e).filter(t=>t.item===void 0).map(t=>t.path)}function Fh(e){if(e===void 0)return;let t=ve(e),a=Pe(e);if(!(!t.length&&!qe(e)&&!Array.isArray(e)))return t.length?{shape:a,lists:t}:{shape:a}}var X=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function jh(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(X(o))for(let[i,l]of Object.entries(o)){let h=n?`${n}.${i}`:i;if(i===t)return h;(X(l)||Array.isArray(l))&&r.push({node:l,path:h})}}}function ya(e,t,a,r,s){let o=jh(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 Sa(e,t){let a=e;for(let r of t.split(".")){if(!X(a))return;a=a[r]}return a}function Ct(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 Hh(e,t){let a=Ct(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(!X(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:ya(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=>X(i)&&String(Sa(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 Uh(e,t,a){let r=Ct(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(X(n)&&!(l.key in n)&&i+1<r.length){let V=r[r.length-1];return{ok:false,error:ya(e,Be(r,i),l.key,Object.keys(n),V?.kind==="key"?V.key:void 0)}}let C=X(n)?n[l.key]:void 0,$=s(C,i+1);return $.ok?{ok:true,patch:{[l.key]:$.patch}}:$}if(!Array.isArray(n))return{ok:false,error:`"${Be(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 h=l.kind==="index"?l.index:n.findIndex(C=>X(C)&&String(Sa(C,l.field))===l.value),b=h>=0?n[h]:void 0;if(l.kind==="index"?h<0||h>=n.length:h<0)return{ok:false,error:l.kind==="index"?`"${Be(r,i)}" has ${n.length} item(s), so there is nothing at [${l.index}].`:`No item with ${l.field}="${l.value}" in "${Be(r,i)}".`};if(!X(b)){if(i<r.length-1)return{ok:false,error:`"${Be(r,i)}[${l.kind==="index"?l.index:`${l.field}=${l.value}`}]" holds ${b===null?"null":typeof b}, not an object, so "${t}" cannot go any deeper. Set the item itself.`};let C=n.slice();return C[h]=a,{ok:true,patch:C}}let S=s(b,i+1);if(!S.ok)return S;let f=vt(n);if(f)return{ok:true,patch:{[String(b[f])]:S.patch}};let m=n.slice();return m[h]=X(S.patch)?{...b,...S.patch}:S.patch,{ok:true,patch:m}},o=s(e,0);return o.ok?{ok:true,patch:o.patch}:o}function Be(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 ie=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function Me(e){return Array.isArray(e)?"array":e===null?"null":typeof e=="object"?"object":typeof e}var va=["string","number","boolean"];function xa(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(ie(o))for(let[i,l]of Object.entries(o)){let h=n?`${n}.${i}`:i;if(i===t&&n)return h;(ie(l)||Array.isArray(l))&&r.push({node:l,path:h})}}}function wt(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:`${Me(e)} \u2192 array`}),o;let f=e.length?e[0]:void 0;return f!==void 0&&(ie(f)||Array.isArray(f))&&t.forEach((m,C)=>{let $=`${s}[${C}]`;if(ie(f)&&ie(m))for(let V of Object.keys(f))V in m||o.push({path:`${$}.${V}`,kind:"missing-key",detail:`list items need \`${V}\` \u2014 the items already in the list have it`});wt(f,m,a,r,$,o)}),o}if(ie(t)){if(!ie(e))return o.push({path:i,kind:"type-change",detail:`${Me(e)} \u2192 object`}),o;for(let[f,m]of Object.entries(t)){let C=s?`${s}.${f}`:f;if(f in e)wt(e[f],m,a,r,C,o);else{let $=xa(r,f);o.push({path:C,kind:"add-key",detail:$?`no such field here \u2014 did you mean \`${$}\`?`:`no field named \`${f}\` exists in this ${n}`,...$?{movedTo:$}:{}})}}return o}let l=Me(e),h=Me(t),b=l==="null"&&va.includes(h),S=h==="null"&&va.includes(l);return l!==h&&!b&&!S&&o.push({path:i,kind:"type-change",detail:`${l} \u2192 ${h}`}),o}function Vh(e,t){if(!t.length||!t.every(r=>r.kind==="add-key"&&r.movedTo))return;let a={};for(let r of t){let s=Gh(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 Gh(e,t){let a=e;for(let r of t.split(".")){if(!ie(a))return;a=a[r]}return a}function Yh(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 Xe(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=Xe(e,t);return a.bytes>t?true:!a.sawRepeat&&!a.sawBigInt?false:!na(e)}var Ca=16*1024,Qe=8*1024*1024;function Kh(e,t){return Object.freeze({[`__buoy${e}OnDevice`]:true,note:t})}function Jh(e,t){return typeof e=="object"&&e!==null&&e[`__buoy${t}OnDevice`]===true}function wa(e=Qe){return{__buoyTruncated:true,note:`Exceeds the ${e/1048576}MB detail limit \u2014 inspect it on-device.`}}function qh(e,t,a=Ca){return e===void 0?e:kt(e,a)?t:e}function ka(e,t=Qe){return kt(e,t)?wa(t):e}function Xh(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 Qh(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 Zh(e,t,a){let r=Xe(e,t);if(r.bytes<=t)return{value:e,bytes:r.bytes};let s=a();return{value:s,bytes:Xe(s,t).bytes}}function Ta(e){return e??{}}function eg(e,t,a=Qe){let r=s=>ka(s,a);return s=>{let{id:o}=Ta(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 Ia(e){return e.length===1?e[0]:t=>{let a=e.map(r=>r(t));return()=>{for(let r of a)r()}}}function tg(e){let t=Array.isArray(e.subscribe)?Ia(e.subscribe):e.subscribe;return{version:e.version,getSnapshot:e.getSnapshot,subscribe:t,...e.actions?{actions:e.actions}:{}}}function ag(e){return e}function rg(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 Tt="__buoyToolActionRegistry";function It(){let e=globalThis;return e[Tt]||(e[Tt]=new Set),e[Tt]}function sg(e){let t=It();t.add(e);let a=false,r=()=>{if(a)return;a=true;let o=e(),n=async(i,l,h)=>{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 b=o[i]?.actions?.[l];if(!b)throw new Error(`Cleanup unavailable for ${i}`);return b(h)};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=Le(()=>{G()?a=false:r()});return()=>{s(),t.delete(e),Promise.resolve().then(()=>{t.size===0&&r()})}}function xe(){if(!G())return{};let e={};for(let t of It())try{Object.assign(e,t())}catch{}return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,Ea(a)]))}function og(){return Object.keys(xe())}function ng(){let e={};for(let[t,a]of Object.entries(xe()))e[t]=Object.keys(a.actions??{});return e}function ig(){return Object.entries(xe()).filter(([,e])=>typeof e.getSnapshot=="function").map(([e])=>e)}async function lg(e){Se();let t=xe()[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 Et(){return G()&&It().size>0}async function cg(e,t,a){Se();let r=xe()[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 dg(e=2e3){if(Et())return true;let t=ft()+e;for(;ft()<t;)if(await new Promise(a=>setTimeout(a,50)),Et())return true;return false}function Ea(e){let t=a=>(...r)=>{Se();let s=false,o=Le(()=>{G()||(s=true)}),n=()=>{if(s)throw new Error("Buoy account access ended while the operation was pending.");Se()};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=>(Se(),e.subscribe(()=>{G()&&a()}))}:{}}}var At="__buoyToolUiBridge";function Rt(){let e=globalThis;return e[At]||(e[At]=new Set),e[At]}function ug(e){let t=Rt();return t.add(e),()=>{t.delete(e)}}function hg(e){for(let t of Rt())try{if(t(e))return true}catch{}return false}function gg(){return Rt().size>0}var Ot="__buoyToolAttention";function Lt(){let e=globalThis;return e[Ot]||(e[Ot]={byTool:new Map,listeners:new Set}),e[Ot]}function pg(e,t){let a=Lt(),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 fg(e){return Lt().byTool.get(e)??null}function bg(e){let t=Lt();return t.listeners.add(e),()=>{t.listeners.delete(e)}}var Aa=256*1024;function mg(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 yg(){return{ok:true,applied:0,skipped:[],warnings:[]}}function Sg(e){return{ok:false,applied:0,skipped:[],warnings:[e]}}function vg(e,t){return{ok:false,applied:0,skipped:[{id:e,reason:t}],warnings:[]}}function xg(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??ys)(s,o))return{key:a,label:r,verdict:"unchanged"};let l=t.tooLarge??(h=>Ss(h,Aa));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 Cg(e,t){return e.verdict==="unchanged"?e:{...e,verdict:"wont-apply",reason:t}}function wg(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 kg(e,t={}){let a=e.toLowerCase();if(t[a])return t[a];for(let[m,C]of Object.entries(t))if(a.includes(m))return C;let r=e.split("").reduce((m,C)=>m+C.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,h=0,b=0,S=0;r<60?(h=n,b=i):r<120?(h=i,b=n):r<180?(b=n,S=i):r<240?(b=i,S=n):r<300?(h=i,S=n):(h=n,S=i);let f=m=>Math.round((m+l)*255).toString(16).padStart(2,"0");return`#${f(h)}${f(b)}${f(S)}`}function Tg(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 Ig(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(f=>!s.includes(f)),i=s.filter(f=>!o.includes(f)),l=[];for(let f of s)o.includes(f)&&a[f]!==r[f]&&l.push(f);let h=[...n,...i,...l],b=[];if(n.length>0&&b.push(`+${n.length}`),i.length>0&&b.push(`-${i.length}`),l.length>0&&b.push(`~${l.length}`),b.length===0)return{summary:"nested change",changedKeys:[],changedCount:0};let S=h.length;return{summary:`${b.join(" ")} ${S===1?"key":"keys"}`,changedKeys:h,changedCount:S}}function Ra(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 Eg(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 Ag(e){return e.toLocaleString()}var Oa=5e4;function Rg(e,t=Oa){try{let a=JSON.stringify(e);return a.length>t?`[omitted: ${Ra(a.length)} \u2014 too large to copy]`:e}catch{return"[omitted: could not serialize]"}}function Og(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 Lg(e){if(e>=100&&e<200)return{text:String(e),color:x.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:x.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:x.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:x.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:x.error,meaning:t[e]||"Server Error"}}return{text:String(e),color:x.muted,meaning:"Unknown"}}function $g(e){return{GET:x.success,POST:x.info,PUT:x.warning,DELETE:x.error,PATCH:x.network,HEAD:x.muted,OPTIONS:x.secondary,CONNECT:x.critical,TRACE:x.env}[e.toUpperCase()]||x.muted}function Pg(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 De=[];function La(e){De.unshift(e),De=De.slice(0,500)}function Bg(){return De}function Mg(){De=[]}var $t=(e=>(e.Debug="debug",e.Info="info",e.Log="log",e.Warn="warn",e.Error="error",e))($t||{}),Pt=(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))(Pt||{});var Dg=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,$a=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:Dg(),timestamp:Date.now(),level:this.getSentryLevel(t),message:this.getSentryMessage(t),metadata:this.getSentryMetadata(t),type:a};La(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}},Ng=new $a;import{useState as Bt,useEffect as Pa}from"react";import{jsx as R,jsxs as Ce}from"react/jsx-runtime";var Ze=fe.bubble.settings(),Ba=fe.bubble.userPreferences(),Mt={showEnvironment:true,showQueryButton:true,showWifiToggle:true,showEnvButton:false,showSentryButton:false,showStorageButton:false};function zg({onPress:e}){let[t,a]=Bt(Mt);Pa(()=>{r()},[]);let r=async()=>{try{let s=await j.getItem(Ze);s&&a(JSON.parse(s))}catch(s){console.error("Failed to load bubble settings:",s)}};return R(ca,{id:"bubble-settings",title:"SETTINGS",subtitle:`${Object.values(t).filter(Boolean).length}/6 visible`,icon:yt,iconColor:"#10B981",iconBackgroundColor:"rgba(16, 185, 129, 0.1)",onPress:e||(()=>{}),index:5})}function _g({onSettingsChange:e}){let[t,a]=Bt(Mt),[r,s]=Bt(true);Pa(()=>{o()},[]);let o=async()=>{try{let h=await j.getItem(Ze);h&&a(JSON.parse(h))}catch(h){console.error("Failed to load bubble settings:",h)}finally{s(false)}},n=async h=>{try{await j.setItem(Ze,JSON.stringify(h)),a(h),e?.(h)}catch(b){console.error("Failed to save bubble settings:",b)}},i=async h=>{let b={...t,[h]:!t[h]};try{let S=await j.getItem(Ba),f=S?JSON.parse(S):{},m=h.replace("show","hasSet"),C={...f,[m]:true};await j.setItem(Ba,JSON.stringify(C))}catch(S){console.error("Failed to save user preference marker:",S)}n(b)};if(r)return R(k,{style:I.detailContainer,children:R(M,{style:I.loadingText,children:"Loading settings..."})});let l=[{key:"showEnvironment",label:"Environment Indicator",description:"Shows current environment (dev, staging, prod)",icon:R(k,{style:[I.indicator,{backgroundColor:"#10B981"}]})},{key:"showQueryButton",label:"React Query Button",description:"Opens React Query dev tools",icon:R(k,{style:[I.indicator,{backgroundColor:"#F59E0B"}]})},{key:"showWifiToggle",label:"WiFi",description:"Toggle WiFi for testing offline scenarios",icon:R(k,{style:[I.indicator,{backgroundColor:"#8B5CF6"}]})},{key:"showEnvButton",label:"Environment Variables",description:"View and check environment variables",icon:R(yt,{size:16,color:"#10B981"})},{key:"showSentryButton",label:"Sentry Events",description:"View captured Sentry events and errors",icon:R(k,{style:[I.indicator,{backgroundColor:"#a855f7"}]})},{key:"showStorageButton",label:"Storage Browser",description:"Browse and inspect AsyncStorage data",icon:R(ga,{size:16,color:"#3B82F6"})}];return R(k,{style:I.detailContainer,children:Ce(Sh,{showsVerticalScrollIndicator:false,contentContainerStyle:I.scrollContent,"sentry-label":"ignore bubble settings scroll",children:[Ce(k,{style:I.header,children:[R(M,{style:I.headerTitle,children:"Developer Tools Settings"}),R(M,{style:I.headerDescription,children:"Configure bubble button visibility"})]}),R(k,{style:I.sectionDivider,children:R(M,{style:I.sectionTitle,children:"Bubble Button Visibility"})}),R(k,{style:I.settingsList,children:l.map(h=>Ce(k,{style:I.settingItem,children:[R(k,{style:I.settingIconContainer,children:h.icon}),Ce(k,{style:I.settingContent,children:[R(M,{style:I.settingLabel,children:h.label}),R(M,{style:I.settingDescription,children:h.description})]}),R(vh,{"sentry-label":"ignore bubble settings section",value:t[h.key],onValueChange:()=>i(h.key),trackColor:{false:"#4B5563",true:"#10B981"},thumbColor:t[h.key]?"#fff":U.textSecondary})]},h.key))}),Ce(k,{style:I.footer,children:[Ce(k,{style:I.noteContainer,children:[R(pa,{size:16,color:U.textSecondary}),R(M,{style:I.noteText,children:"User status indicator is always visible and cannot be disabled"})]}),R(M,{style:I.restartNote,children:"Changes are saved automatically and will persist across app restarts"})]})]})})}async function Wg(){try{let e=await j.getItem(Ze);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bubble settings:",e)}return Mt}var I=$e.create({scrollContent:{flexGrow:1},sectionCard:{backgroundColor:U.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:U.text,fontSize:14,fontWeight:"600",marginBottom:2},subtitle:{color:U.textSecondary,fontSize:12},chevron:{color:Ke.text.icon,fontSize:20},detailContainer:{flex:1,backgroundColor:U.card},loadingText:{color:U.textSecondary,fontSize:14,textAlign:"center",marginTop:20},header:{padding:16,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.2)"},headerTitle:{color:U.text,fontSize:16,fontWeight:"600",marginBottom:4},headerDescription:{color:U.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:U.text,fontSize:14,fontWeight:"500",marginBottom:2},settingDescription:{color:Ke.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:U.textSecondary,fontSize:12,flex:1},restartNote:{color:Ke.text.icon,fontSize:11,fontStyle:"italic"},sectionDivider:{paddingHorizontal:16,paddingVertical:8,marginTop:8,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.12)"},sectionTitle:{color:U.textSecondary,fontSize:12,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"}});function Ma(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Fg(e,t,a={}){let r=a.storage??j,s=a.parse??(l=>JSON.parse(l)),o=a.serialize??(l=>JSON.stringify(l));function n(l){let h=Ma(t)&&Ma(l)?{...t,...l}:l;return a.sanitize?a.sanitize(h,l):h}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 jg,useId as Hg,useRef as Da,useState as Ug}from"react";import{createPortal as Vg}from"react-dom";import{jsx as Ne,jsxs as Gg}from"react/jsx-runtime";function Na(){let[e,t]=Ug(false),a=Da(null),r=Da(null),s=Hg(),o=(n=true)=>{t(false),n&&a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true})};return jg(()=>{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:Vg(Gg("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:[Ne("style",{children:`
1
+ "use client";import{a as fr,b as pr,c as br,d as mr,e as yr,f as Sr,g as vr,h as xr,i as Cr}from"./chunks/chunk-JYM7MCKQ.mjs";import{a as wr,b as kr,c as Tr,d as Ir,e as Or,f as Er,g as Rr,h as Ar}from"./chunks/chunk-XD2BEYMM.mjs";import{$ as Lr,A as $r,B as Pr,C as Br,D as Mr,E as Dr,F as Nr,G as _r,J as zr,K as Fr,L as Wr,M as jr,N as Hr,O as Ur,P as Vr,Q as Gr,R as Yr,S as Kr,Z as qr,_ as Jr,a as oa,b as Xr,c as Qr,d as Ae,e as Zr,f as es,g as na,h as ts,i as as,j as rs,k as ss,l as os,m as pt,n as ns,o as is,p as ls,q as cs,r as ds,s as us,t as hs,u as gs,v as fs,w as ps,x as bs,y as ms,z as ys}from"./chunks/chunk-T6KN54NS.mjs";import"./chunks/chunk-LZ7FZZ7R.mjs";import{a as Ss,d as vs,f as bt}from"./chunks/chunk-53J2FMUD.mjs";import{$ as xs,$a as Cs,$b as ws,A as ia,Aa as ks,Ab as Ts,B as Is,Ba as Os,Bb as Es,C as Rs,Ca as As,Cb as Ls,D as $s,Da as Ps,Db as Bs,E as Ms,Ea as Ds,Eb as Ns,F as _s,Fa as zs,Fb as Fs,G as Ws,Ga as js,Gb as Hs,H as Us,Ha as Vs,Hb as Gs,I as Ys,Ia as Ks,Ib as qs,J as Js,Ja as Xs,Jb as Qs,K as Zs,Ka as eo,Kb as to,L as ao,La as ro,Lb as so,M as oo,Ma as no,Mb as io,N as lo,Na as co,Nb as uo,O as ho,Oa as go,Ob as fo,P as po,Pa as bo,Pb as mo,Q as yo,Qa as So,Qb as vo,R as xo,Ra as Co,Rb as wo,S as ko,Sa as To,Sb as Io,T as Oo,Ta as Eo,Tb as Ro,U as Ao,Ua as Lo,Ub as $o,V as Po,Va as Bo,Vb as Mo,W as Do,Wa as No,Wb as _o,X as zo,Xa as Fo,Xb as Wo,Y as jo,Ya as Ho,Yb as Uo,Z as Vo,Za as Go,Zb as Yo,_ as Ko,_a as qo,_b as Jo,a as Xo,aa as Qo,ab as Zo,ac as en,b as tn,ba as an,bb as rn,bc as sn,c as on,ca as nn,cb as ln,cc as cn,d as dn,da as un,db as hn,dc as gn,e as fn,ea as pn,eb as bn,ec as mn,f as yn,fa as Sn,fb as vn,fc as xn,g as Cn,ga as wn,gb as kn,gc as Tn,h as In,ha as On,hb as En,hc as Rn,i as la,ia as An,ib as Ln,ic as $n,j as Pn,ja as Bn,jb as Mn,jc as Dn,k as Nn,ka as _n,kb as zn,kc as Fn,l as Wn,la as jn,lb as Hn,lc as Un,m as Vn,ma as Gn,mb as Yn,mc as Kn,n as qn,na as Jn,nb as Xn,nc as Qn,o as Zn,oa as ei,ob as ti,oc as ai,p as ri,pa as si,pb as oi,pc as ni,q as ii,qa as li,qb as ci,qc as di,r as ui,ra as hi,rb as gi,rc as mt,s as fi,sa as pi,sb as bi,sc as mi,t as yi,ta as Si,tb as vi,tc as xi,u as Ci,ua as wi,ub as ki,uc as Ti,v as Ii,va as Oi,vb as ca,vc as Ei,w as oe,wa as Ri,wb as Ai,wc as da,x as G,xa as Li,xb as $i,xc as Pi,y as Se,ya as Bi,yb as Mi,yc as Di,z as Le,za as Ni,zb as _i,zc as zi}from"./chunks/chunk-ASEPWYDC.mjs";import{a as Fi}from"./chunks/chunk-OPTY6SMO.mjs";import{a as Wi,b as ji,c as Hi,d as Ui,e as Vi,f as Gi,g as Yi,h as Ki,i as qi,j as Ji,k as Xi,l as Qi,m as Zi,n as el,o as tl,p as al}from"./chunks/chunk-XYUAUO57.mjs";import{a as d,b as ua}from"./chunks/chunk-GF5C5DVX.mjs";import{a as rl,b as sl}from"./chunks/chunk-T3WLUEET.mjs";import{a as ol,b as nl,c as il,d as ll,e as cl,f as dl,g as ul,h as hl,i as gl,j as fl,k as pl,l as bl}from"./chunks/chunk-T2SPCEHP.mjs";import{$ as ml,$a as yl,$b as Sl,$c as vl,Aa as xl,Ab as Cl,Ac as wl,B as kl,Ba as Tl,Bb as Il,Bc as Ol,C as El,Ca as Rl,Cb as Al,Cc as Ll,D as $l,Da as Pl,Db as Bl,Dc as Ml,Ea as Dl,Eb as Nl,Ec as _l,F as zl,Fa as Fl,Fb as Wl,Fc as jl,Ga as Hl,Gb as Ul,Gc as Vl,Ha as Gl,Hb as Yl,Hc as Kl,I as ql,Ib as Jl,Ic as yt,Ja as Xl,Jb as Ql,Jc as Zl,K as ec,Ka as tc,Kb as ac,Kc as rc,La as sc,Lb as oc,Lc as nc,Ma as ic,Mb as lc,Mc as cc,Na as dc,Nb as uc,Nc as hc,O as gc,Oa as fc,Ob as pc,Oc as bc,P as mc,Pa as yc,Pb as Sc,Pc as vc,Q as xc,Qa as Cc,Qb as wc,Qc as kc,R as Tc,Ra as Ic,Rb as Oc,Rc as Ec,S as Rc,Sa as Ac,Sb as Lc,Sc as $c,T as Pc,Ta as Bc,Tb as Mc,Tc as Dc,U as Nc,Ua as _c,Ub as zc,Uc as Fc,V as Wc,Va as jc,Vb as Hc,Vc as Uc,W as Vc,Wa as Gc,Wb as ha,Wc as Yc,X as Kc,Xa as qc,Xb as Jc,Xc,Y as Qc,Ya as Zc,Yb as ed,Yc as td,Z as ad,Za as rd,Zb as sd,Zc as od,_ as nd,_a as id,_b as ld,_c as cd,a as dd,aa as ud,ab as hd,ac as gd,ad as fd,b as pd,ba as bd,bb as md,bc as ga,bd as yd,c as Sd,ca as vd,cb as xd,cc as Cd,cd as wd,d as kd,da as Td,db as Id,dc as Od,dd as Ed,e as Rd,ea as Ad,eb as Ld,ec as $d,ed as Pd,f as Bd,fa as Md,fb as Dd,fc as fa,fd as Nd,g as _d,ga as zd,gb as Fd,gc as Wd,gd as jd,h as Hd,ha as Ud,hb as Vd,hc as Gd,hd as Yd,i as Kd,ia as qd,ib as Jd,ic as Xd,id as Qd,j as Zd,ja as eu,jb as tu,jc as au,jd as ru,k as su,ka as ou,kb as nu,kc as iu,kd as lu,l as cu,la as du,lb as uu,lc as hu,ld as gu,m as fu,ma as pu,mb as bu,mc as mu,md as yu,n as Su,na as vu,nb as xu,nc as Cu,nd as wu,o as ku,oa as Tu,ob as Iu,oc as Ou,od as Eu,p as Ru,pa as Au,pb as Lu,pc as $u,pd as Pu,q as Bu,qa as Mu,qb as Du,qc as Nu,qd as _u,r as zu,ra as Fu,rb as Wu,rc as ju,rd as Hu,s as Uu,sa as Vu,sb as Gu,sc as Yu,sd as Ku,t as qu,ta as Ju,tb as Xu,tc as Qu,td as Zu,u as eh,ua as th,ub as ah,uc as rh,ud as sh,va as oh,vb as nh,vc as ih,wa as lh,wb as ch,wc as dh,xa as uh,xb as hh,xc as gh,ya as fh,yb as ph,yc as bh,za as mh,zb as yh,zc as Sh}from"./chunks/chunk-7YVWZ4ZK.mjs";import{a as Ke,d as x,e as vh,f as U,g as xh}from"./chunks/chunk-CE5U3CSQ.mjs";import{a as Ch,b as wh,c as kh,d as Th,e as Ih}from"./chunks/chunk-46TKOKMV.mjs";import{a as pe,b as Oh,c as j,d as Eh,e as Rh}from"./chunks/chunk-DEJNSL6V.mjs";import{H as Ah,J as $e,a as k,b as M,d as qe,g as Lh,h as $h,j as Ph,r as St}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";var Bh=class extends oa{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=()=>{oe().status==="locked"?(this.stopCapturing(),this.events=[],this.notifyArrayListeners()):this.getTotalSubscriberCount()>0&&!this.captureSuppressed&&!this.isCapturing()&&this.startCapturing()};Le(t),t()})}onSubscribe(){this.getTotalSubscriberCount()===1&&!this.captureSuppressed&&oe().status!=="locked"&&this.startCapturing(),Ae(this.storeName)}onUnsubscribe(){this.getTotalSubscriberCount()===0&&this.stopCapturing(),Ae(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&&oe().status!=="locked"&&this.startCapturing(),Ae(this.storeName),e(this.getEvents()),()=>{this.arrayListeners.delete(e),this.getTotalSubscriberCount()===0&&this.stopCapturing(),Ae(this.storeName)}}onEvent(e){return this.subscribe(e)}addEvent(e){oe().status!=="locked"&&(this.events=[e,...this.events].slice(0,this.maxEvents),G()&&this.notify(e),this.notifyArrayListeners())}notifyArrayListeners(){let e=this.getEvents();this.arrayListeners.forEach(t=>{try{t(e)}catch{}})}getEvents(){return G()?this.events:[]}getEventCount(){return G()?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 Mh,useMemo as Dh,useState as Nh}from"react";var _h=[{value:"buoy.gg/api/license",mode:"contains"},{value:"api.keygen.sh",mode:"contains"}];function pa(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 zh(e,t){return!e||t.length===0?false:t.some(a=>pa(e,a))}var ba=_h;function Fh(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 ma(e){let t=[...e];for(let a of ba)t.some(r=>r.value===a.value)||t.push({...a});return t}var Wh=class{constructor(){this.patterns=ma(ba.map(e=>({...e})));this.listeners=new Set;this.loaded=false;this.loadPromise=null;this.dirty=false}getPatterns(){return 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 j.getItem(pe.network.ignoredDomains());if(e&&!this.dirty){let t=ma(Fh(JSON.parse(e)));this.patterns=t}}catch{}finally{this.loaded=true,this.emit()}})(),this.loadPromise)}persist(){j.setItem(pe.network.ignoredDomains(),JSON.stringify(this.patterns)).catch(()=>{})}commit(e){this.dirty=true,this.patterns=e,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))}},ne=new Wh,jh=e=>ne.add(e),Hh=e=>ne.remove(e),Uh=e=>ne.toggle(e),Vh=e=>ne.toggleMode(e);function Gh(){let[e,t]=Nh(()=>ne.getPatterns());Mh(()=>ne.subscribe(()=>{t(ne.getPatterns())}),[]);let a=Dh(()=>new Set(e.map(r=>r.value)),[e]);return{patterns:e,values:a,add:jh,remove:Hh,toggle:Uh,toggleMode:Vh}}function Yh(e){typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):setTimeout(e,0)}function Kh(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,h=0,b=false,S=[],p=false;function m(){p||(p=true,Le(()=>{oe().status==="locked"&&(n=[]),se()}))}let C=new Set,$=new Set;function V(){for(let y of C)try{y()}catch{}}function se(){if(r==="sync"){V();return}b||(b=true,Yh(()=>{b=false,V()}))}function N(y){return y.length<=o?y:a==="append"?y.slice(y.length-o):y.slice(0,o)}return{id:t,subscribe(y){return m(),C.add(y),()=>{C.delete(y)}},getSnapshot(){return m(),G()?n:S},size(){return G()?n.length:0},add(y){m(),!(i||oe().status==="locked")&&(a==="append"?n=n.length>=o?[...n.slice(n.length-o+1),y]:[...n,y]:n=n.length>=o?[y,...n.slice(0,o-1)]:[y,...n],se())},set(y){m(),G()&&(n=N(y),se())},update(y){m(),oe().status!=="locked"&&(n=N(y(n)),se())},clear(){for(let y of $)try{y()}catch{}n.length!==0&&(n=[],se())},onClear(y){return $.add(y),()=>{$.delete(y)}},notify(){se()},flushSync(y=false){let Q=Date.now();if(!(!y&&Q-h<s)){h=Q;try{let L=globalThis.__buoyFlushToolSync;if(!L)return;for(let Fe of L)Fe(t)}catch{}}},setPaused(y){i=y},isPaused(){return i},setMax(y){o=y;let Q=N(n);Q!==n&&(n=Q,se())},getMax(){return o},allocId(){return l++},bumpIdAbove(y){y+1>l&&(l=y+1)},listenerCount(){return C.size}}}var qh=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 be=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Jh=["id","lineId","key","uuid","_id","slug","name"];function vt(e){if(!e.length||!e.every(be))return;let t=e[0];for(let a of Jh){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 Xh(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 xt(e,t,a="",r=[]){if(Array.isArray(e)&&be(t)){let s=vt(e);if(!s)return{patch:t,notes:r};let o=new Map(e.map(b=>[String(b[s]),b])),n=e.slice(),i=0,l=0,h=0;for(let[b,S]of Object.entries(t)){let p=n.findIndex(m=>String(m[s])===b);if(S===null){if(p===-1)return{patch:t,notes:r};n.splice(p,1),i++}else if(p===-1){if(!be(S))return{patch:t,notes:r};let m=Xh(e,s,b,S);if(!m.ok)return{patch:t,notes:r,error:m.error};n.push({...S,[s]:m.value}),h++}else{let m=xt(o.get(b),S,`${a}[${b}]`,r);if(m.error)return{patch:t,notes:r,error:m.error};let C=n[p];n[p]=be(C)&&be(m.patch)?{...C,...m.patch}:m.patch,l++}}return r.push(`${a||"(root)"}: addressed by \`${s}\` \u2014 ${l} changed, ${h} added, ${i} removed, ${n.length} item(s) remain`),{patch:n,notes:r}}if(be(e)&&be(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=xt(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 Je=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Pe(e,t=0){if(e===null)return"null";if(Array.isArray(e)){if(!e.length)return"unknown[]";if(t>=3)return"\u2026[]";let r=Pe(e[0],t+1);return r.includes(" ")||r.endsWith("]")?`(${r})[]`:`${r}[]`}if(Je(e)){if(t>=3)return"{\u2026}";let r=Object.keys(e),s=r.slice(0,24),o=s.map(i=>`${i}: ${Pe(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 ve(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:Pe(o)}:{}}),e.length&&Je(o))for(let[n,i]of Object.entries(o)){if(++s.visited>=600)break;ve(i,t?`${t}[].${n}`:`[].${n}`,a,r+1,s)}return a}if(Je(e))for(let[o,n]of Object.entries(e)){if(++s.visited>=600)break;ve(n,t?`${t}.${o}`:o,a,r+1,s)}return a}function Qh(e){let t={visited:0};return ve(e,"",[],0,t).length>=40||t.visited>=600}function Zh(e){return ve(e).filter(t=>t.item===void 0).map(t=>t.path)}function eg(e){if(e===void 0)return;let t=ve(e),a=Pe(e);if(!(!t.length&&!Je(e)&&!Array.isArray(e)))return t.length?{shape:a,lists:t}:{shape:a}}var X=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function tg(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(X(o))for(let[i,l]of Object.entries(o)){let h=n?`${n}.${i}`:i;if(i===t)return h;(X(l)||Array.isArray(l))&&r.push({node:l,path:h})}}}function ya(e,t,a,r,s){let o=tg(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 Sa(e,t){let a=e;for(let r of t.split(".")){if(!X(a))return;a=a[r]}return a}function Ct(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 ag(e,t){let a=Ct(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(!X(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:ya(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=>X(i)&&String(Sa(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 rg(e,t,a){let r=Ct(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(X(n)&&!(l.key in n)&&i+1<r.length){let V=r[r.length-1];return{ok:false,error:ya(e,Be(r,i),l.key,Object.keys(n),V?.kind==="key"?V.key:void 0)}}let C=X(n)?n[l.key]:void 0,$=s(C,i+1);return $.ok?{ok:true,patch:{[l.key]:$.patch}}:$}if(!Array.isArray(n))return{ok:false,error:`"${Be(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 h=l.kind==="index"?l.index:n.findIndex(C=>X(C)&&String(Sa(C,l.field))===l.value),b=h>=0?n[h]:void 0;if(l.kind==="index"?h<0||h>=n.length:h<0)return{ok:false,error:l.kind==="index"?`"${Be(r,i)}" has ${n.length} item(s), so there is nothing at [${l.index}].`:`No item with ${l.field}="${l.value}" in "${Be(r,i)}".`};if(!X(b)){if(i<r.length-1)return{ok:false,error:`"${Be(r,i)}[${l.kind==="index"?l.index:`${l.field}=${l.value}`}]" holds ${b===null?"null":typeof b}, not an object, so "${t}" cannot go any deeper. Set the item itself.`};let C=n.slice();return C[h]=a,{ok:true,patch:C}}let S=s(b,i+1);if(!S.ok)return S;let p=vt(n);if(p)return{ok:true,patch:{[String(b[p])]:S.patch}};let m=n.slice();return m[h]=X(S.patch)?{...b,...S.patch}:S.patch,{ok:true,patch:m}},o=s(e,0);return o.ok?{ok:true,patch:o.patch}:o}function Be(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 ie=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function Me(e){return Array.isArray(e)?"array":e===null?"null":typeof e=="object"?"object":typeof e}var va=["string","number","boolean"];function xa(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(ie(o))for(let[i,l]of Object.entries(o)){let h=n?`${n}.${i}`:i;if(i===t&&n)return h;(ie(l)||Array.isArray(l))&&r.push({node:l,path:h})}}}function wt(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:`${Me(e)} \u2192 array`}),o;let p=e.length?e[0]:void 0;return p!==void 0&&(ie(p)||Array.isArray(p))&&t.forEach((m,C)=>{let $=`${s}[${C}]`;if(ie(p)&&ie(m))for(let V of Object.keys(p))V in m||o.push({path:`${$}.${V}`,kind:"missing-key",detail:`list items need \`${V}\` \u2014 the items already in the list have it`});wt(p,m,a,r,$,o)}),o}if(ie(t)){if(!ie(e))return o.push({path:i,kind:"type-change",detail:`${Me(e)} \u2192 object`}),o;for(let[p,m]of Object.entries(t)){let C=s?`${s}.${p}`:p;if(p in e)wt(e[p],m,a,r,C,o);else{let $=xa(r,p);o.push({path:C,kind:"add-key",detail:$?`no such field here \u2014 did you mean \`${$}\`?`:`no field named \`${p}\` exists in this ${n}`,...$?{movedTo:$}:{}})}}return o}let l=Me(e),h=Me(t),b=l==="null"&&va.includes(h),S=h==="null"&&va.includes(l);return l!==h&&!b&&!S&&o.push({path:i,kind:"type-change",detail:`${l} \u2192 ${h}`}),o}function sg(e,t){if(!t.length||!t.every(r=>r.kind==="add-key"&&r.movedTo))return;let a={};for(let r of t){let s=og(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 og(e,t){let a=e;for(let r of t.split(".")){if(!ie(a))return;a=a[r]}return a}function ng(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 Xe(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=Xe(e,t);return a.bytes>t?true:!a.sawRepeat&&!a.sawBigInt?false:!na(e)}var Ca=16*1024,Qe=8*1024*1024;function ig(e,t){return Object.freeze({[`__buoy${e}OnDevice`]:true,note:t})}function lg(e,t){return typeof e=="object"&&e!==null&&e[`__buoy${t}OnDevice`]===true}function wa(e=Qe){return{__buoyTruncated:true,note:`Exceeds the ${e/1048576}MB detail limit \u2014 inspect it on-device.`}}function cg(e,t,a=Ca){return e===void 0?e:kt(e,a)?t:e}function ka(e,t=Qe){return kt(e,t)?wa(t):e}function dg(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 ug(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 hg(e,t,a){let r=Xe(e,t);if(r.bytes<=t)return{value:e,bytes:r.bytes};let s=a();return{value:s,bytes:Xe(s,t).bytes}}function Ta(e){return e??{}}function gg(e,t,a=Qe){let r=s=>ka(s,a);return s=>{let{id:o}=Ta(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 Ia(e){return e.length===1?e[0]:t=>{let a=e.map(r=>r(t));return()=>{for(let r of a)r()}}}function fg(e){let t=Array.isArray(e.subscribe)?Ia(e.subscribe):e.subscribe;return{version:e.version,getSnapshot:e.getSnapshot,subscribe:t,...e.actions?{actions:e.actions}:{}}}function pg(e){return e}function bg(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 Tt="__buoyToolActionRegistry";function It(){let e=globalThis;return e[Tt]||(e[Tt]=new Set),e[Tt]}function mg(e){let t=It();t.add(e);let a=false,r=()=>{if(a)return;a=true;let o=e(),n=async(i,l,h)=>{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 b=o[i]?.actions?.[l];if(!b)throw new Error(`Cleanup unavailable for ${i}`);return b(h)};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=Le(()=>{G()?a=false:r()});return()=>{s(),t.delete(e),Promise.resolve().then(()=>{t.size===0&&r()})}}function xe(){if(!G())return{};let e={};for(let t of It())try{Object.assign(e,t())}catch{}return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,Oa(a)]))}function yg(){return Object.keys(xe())}function Sg(){let e={};for(let[t,a]of Object.entries(xe()))e[t]=Object.keys(a.actions??{});return e}function vg(){return Object.entries(xe()).filter(([,e])=>typeof e.getSnapshot=="function").map(([e])=>e)}async function xg(e){Se();let t=xe()[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 Ot(){return G()&&It().size>0}async function Cg(e,t,a){Se();let r=xe()[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 wg(e=2e3){if(Ot())return true;let t=pt()+e;for(;pt()<t;)if(await new Promise(a=>setTimeout(a,50)),Ot())return true;return false}function Oa(e){let t=a=>(...r)=>{Se();let s=false,o=Le(()=>{G()||(s=true)}),n=()=>{if(s)throw new Error("Buoy account access ended while the operation was pending.");Se()};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=>(Se(),e.subscribe(()=>{G()&&a()}))}:{}}}var Et="__buoyToolUiBridge";function Rt(){let e=globalThis;return e[Et]||(e[Et]=new Set),e[Et]}function kg(e){let t=Rt();return t.add(e),()=>{t.delete(e)}}function Tg(e){for(let t of Rt())try{if(t(e))return true}catch{}return false}function Ig(){return Rt().size>0}var At="__buoyToolAttention";function Lt(){let e=globalThis;return e[At]||(e[At]={byTool:new Map,listeners:new Set}),e[At]}function Og(e,t){let a=Lt(),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 Eg(e){return Lt().byTool.get(e)??null}function Rg(e){let t=Lt();return t.listeners.add(e),()=>{t.listeners.delete(e)}}import{createContext as Ag,useContext as Lg,useEffect as $g}from"react";var Ea=Ag(null);function Pg(e,t){let a=Lg(Ea);return $g(()=>{if(a)return a(e),()=>a(null)},[a,...t]),a!==null}var Ra=256*1024;function Bg(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 Mg(){return{ok:true,applied:0,skipped:[],warnings:[]}}function Dg(e){return{ok:false,applied:0,skipped:[],warnings:[e]}}function Ng(e,t){return{ok:false,applied:0,skipped:[{id:e,reason:t}],warnings:[]}}function _g(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??Ss)(s,o))return{key:a,label:r,verdict:"unchanged"};let l=t.tooLarge??(h=>vs(h,Ra));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 zg(e,t){return e.verdict==="unchanged"?e:{...e,verdict:"wont-apply",reason:t}}function Fg(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 Wg(e,t={}){let a=e.toLowerCase();if(t[a])return t[a];for(let[m,C]of Object.entries(t))if(a.includes(m))return C;let r=e.split("").reduce((m,C)=>m+C.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,h=0,b=0,S=0;r<60?(h=n,b=i):r<120?(h=i,b=n):r<180?(b=n,S=i):r<240?(b=i,S=n):r<300?(h=i,S=n):(h=n,S=i);let p=m=>Math.round((m+l)*255).toString(16).padStart(2,"0");return`#${p(h)}${p(b)}${p(S)}`}function jg(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 Hg(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(p=>!s.includes(p)),i=s.filter(p=>!o.includes(p)),l=[];for(let p of s)o.includes(p)&&a[p]!==r[p]&&l.push(p);let h=[...n,...i,...l],b=[];if(n.length>0&&b.push(`+${n.length}`),i.length>0&&b.push(`-${i.length}`),l.length>0&&b.push(`~${l.length}`),b.length===0)return{summary:"nested change",changedKeys:[],changedCount:0};let S=h.length;return{summary:`${b.join(" ")} ${S===1?"key":"keys"}`,changedKeys:h,changedCount:S}}function Aa(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 Ug(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 Vg(e){return e.toLocaleString()}var La=5e4;function Gg(e,t=La){try{let a=JSON.stringify(e);return a.length>t?`[omitted: ${Aa(a.length)} \u2014 too large to copy]`:e}catch{return"[omitted: could not serialize]"}}function Yg(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 Kg(e){if(e>=100&&e<200)return{text:String(e),color:x.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:x.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:x.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:x.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:x.error,meaning:t[e]||"Server Error"}}return{text:String(e),color:x.muted,meaning:"Unknown"}}function qg(e){return{GET:x.success,POST:x.info,PUT:x.warning,DELETE:x.error,PATCH:x.network,HEAD:x.muted,OPTIONS:x.secondary,CONNECT:x.critical,TRACE:x.env}[e.toUpperCase()]||x.muted}function Jg(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 De=[];function $a(e){De.unshift(e),De=De.slice(0,500)}function Xg(){return De}function Qg(){De=[]}var $t=(e=>(e.Debug="debug",e.Info="info",e.Log="log",e.Warn="warn",e.Error="error",e))($t||{}),Pt=(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))(Pt||{});var Zg=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,Pa=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:Zg(),timestamp:Date.now(),level:this.getSentryLevel(t),message:this.getSentryMessage(t),metadata:this.getSentryMetadata(t),type:a};$a(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}},ef=new Pa;import{useState as Bt,useEffect as Ba}from"react";import{jsx as R,jsxs as Ce}from"react/jsx-runtime";var Ze=pe.bubble.settings(),Ma=pe.bubble.userPreferences(),Mt={showEnvironment:true,showQueryButton:true,showWifiToggle:true,showEnvButton:false,showSentryButton:false,showStorageButton:false};function tf({onPress:e}){let[t,a]=Bt(Mt);Ba(()=>{r()},[]);let r=async()=>{try{let s=await j.getItem(Ze);s&&a(JSON.parse(s))}catch(s){console.error("Failed to load bubble settings:",s)}};return R(da,{id:"bubble-settings",title:"SETTINGS",subtitle:`${Object.values(t).filter(Boolean).length}/6 visible`,icon:yt,iconColor:"#10B981",iconBackgroundColor:"rgba(16, 185, 129, 0.1)",onPress:e||(()=>{}),index:5})}function af({onSettingsChange:e}){let[t,a]=Bt(Mt),[r,s]=Bt(true);Ba(()=>{o()},[]);let o=async()=>{try{let h=await j.getItem(Ze);h&&a(JSON.parse(h))}catch(h){console.error("Failed to load bubble settings:",h)}finally{s(false)}},n=async h=>{try{await j.setItem(Ze,JSON.stringify(h)),a(h),e?.(h)}catch(b){console.error("Failed to save bubble settings:",b)}},i=async h=>{let b={...t,[h]:!t[h]};try{let S=await j.getItem(Ma),p=S?JSON.parse(S):{},m=h.replace("show","hasSet"),C={...p,[m]:true};await j.setItem(Ma,JSON.stringify(C))}catch(S){console.error("Failed to save user preference marker:",S)}n(b)};if(r)return R(k,{style:I.detailContainer,children:R(M,{style:I.loadingText,children:"Loading settings..."})});let l=[{key:"showEnvironment",label:"Environment Indicator",description:"Shows current environment (dev, staging, prod)",icon:R(k,{style:[I.indicator,{backgroundColor:"#10B981"}]})},{key:"showQueryButton",label:"React Query Button",description:"Opens React Query dev tools",icon:R(k,{style:[I.indicator,{backgroundColor:"#F59E0B"}]})},{key:"showWifiToggle",label:"WiFi",description:"Toggle WiFi for testing offline scenarios",icon:R(k,{style:[I.indicator,{backgroundColor:"#8B5CF6"}]})},{key:"showEnvButton",label:"Environment Variables",description:"View and check environment variables",icon:R(yt,{size:16,color:"#10B981"})},{key:"showSentryButton",label:"Sentry Events",description:"View captured Sentry events and errors",icon:R(k,{style:[I.indicator,{backgroundColor:"#a855f7"}]})},{key:"showStorageButton",label:"Storage Browser",description:"Browse and inspect AsyncStorage data",icon:R(ga,{size:16,color:"#3B82F6"})}];return R(k,{style:I.detailContainer,children:Ce($h,{showsVerticalScrollIndicator:false,contentContainerStyle:I.scrollContent,"sentry-label":"ignore bubble settings scroll",children:[Ce(k,{style:I.header,children:[R(M,{style:I.headerTitle,children:"Developer Tools Settings"}),R(M,{style:I.headerDescription,children:"Configure bubble button visibility"})]}),R(k,{style:I.sectionDivider,children:R(M,{style:I.sectionTitle,children:"Bubble Button Visibility"})}),R(k,{style:I.settingsList,children:l.map(h=>Ce(k,{style:I.settingItem,children:[R(k,{style:I.settingIconContainer,children:h.icon}),Ce(k,{style:I.settingContent,children:[R(M,{style:I.settingLabel,children:h.label}),R(M,{style:I.settingDescription,children:h.description})]}),R(Ph,{"sentry-label":"ignore bubble settings section",value:t[h.key],onValueChange:()=>i(h.key),trackColor:{false:"#4B5563",true:"#10B981"},thumbColor:t[h.key]?"#fff":U.textSecondary})]},h.key))}),Ce(k,{style:I.footer,children:[Ce(k,{style:I.noteContainer,children:[R(fa,{size:16,color:U.textSecondary}),R(M,{style:I.noteText,children:"User status indicator is always visible and cannot be disabled"})]}),R(M,{style:I.restartNote,children:"Changes are saved automatically and will persist across app restarts"})]})]})})}async function rf(){try{let e=await j.getItem(Ze);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bubble settings:",e)}return Mt}var I=$e.create({scrollContent:{flexGrow:1},sectionCard:{backgroundColor:U.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:U.text,fontSize:14,fontWeight:"600",marginBottom:2},subtitle:{color:U.textSecondary,fontSize:12},chevron:{color:Ke.text.icon,fontSize:20},detailContainer:{flex:1,backgroundColor:U.card},loadingText:{color:U.textSecondary,fontSize:14,textAlign:"center",marginTop:20},header:{padding:16,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.2)"},headerTitle:{color:U.text,fontSize:16,fontWeight:"600",marginBottom:4},headerDescription:{color:U.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:U.text,fontSize:14,fontWeight:"500",marginBottom:2},settingDescription:{color:Ke.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:U.textSecondary,fontSize:12,flex:1},restartNote:{color:Ke.text.icon,fontSize:11,fontStyle:"italic"},sectionDivider:{paddingHorizontal:16,paddingVertical:8,marginTop:8,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.12)"},sectionTitle:{color:U.textSecondary,fontSize:12,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"}});function Da(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function sf(e,t,a={}){let r=a.storage??j,s=a.parse??(l=>JSON.parse(l)),o=a.serialize??(l=>JSON.stringify(l));function n(l){let h=Da(t)&&Da(l)?{...t,...l}:l;return a.sanitize?a.sanitize(h,l):h}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 of,useId as nf,useRef as Na,useState as lf}from"react";import{createPortal as cf}from"react-dom";import{jsx as Ne,jsxs as df}from"react/jsx-runtime";function _a(){let[e,t]=lf(false),a=Na(null),r=Na(null),s=nf(),o=(n=true)=>{t(false),n&&a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true})};return of(()=>{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:cf(df("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:[Ne("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
4
  [data-buoy-account] [role="button"]:focus-visible, [data-buoy-account] [role="link"]:focus-visible { outline: 2px solid ${d.color.accent}; outline-offset: 3px; }
@@ -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
- `}),Ne("div",{"data-account-launcher":"",children:Ne(Rs,{expanded:e,onPress:()=>t(n=>!n)})}),e&&Ne("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:Ne($s,{titleId:s,onClose:()=>o()})})]}),document.body)}import{useState as te,useRef as z,useEffect as ae,useLayoutEffect as Yg,useCallback as D,memo as Dt,isValidElement as Kg,cloneElement as Jg}from"react";var et=class{static async save(e,t){this.cache.set(e,t);try{await j.setItem(e,JSON.stringify(t))}catch{}}static async load(e){if(this.cache.has(e))return this.cache.get(e);try{let t=await j.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})}};et.cache=new Map;import{jsx as p,jsxs as H}from"react/jsx-runtime";var P={base:"#121212",card:"#1A1A1A",border:"#333333",textMuted:"#888888",primary:"#20C997"},B={primary:"#F5F5F7",primaryLight:"#F5F5F7",secondary:"#A1A1A6",muted:"#8E8E93",success:"#34C759",info:"#00B8E6"},qg=100,Xg=400,za=500,ze=80,tt=()=>typeof window<"u"?window.innerWidth:0,le=()=>typeof window<"u"?window.innerHeight:0,_a=e=>1-Math.pow(1-e,3),_e=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;function me(e,t,a,r){let s=0,o=false,n=performance.now(),i=l=>{if(o)return;let h=Math.min((l-n)/e,1);a(t(h)),h<1?s=requestAnimationFrame(i):r?.()};return s=requestAnimationFrame(i),()=>{o=true,cancelAnimationFrame(s)}}function Qg(){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 Nt(e,t){let a=Math.max(ze,window.innerWidth-t.left-t.right),r=Math.max(ze,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 Zg=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[p("line",{x1:18,y1:6,x2:6,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"}),p("line",{x1:6,y1:6,x2:18,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"})]}),ep=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>p("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:p("line",{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:a,strokeLinecap:"round"})}),tp=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[p("rect",{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:a}),p("rect",{x:3,y:14,width:18,height:7,fill:t})]}),ap=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[p("rect",{x:3,y:3,width:14,height:14,rx:2,stroke:t,strokeWidth:a}),p("line",{x1:7,y1:17,x2:7,y2:21,stroke:t,strokeWidth:a}),p("line",{x1:7,y1:21,x2:21,y2:21,stroke:t,strokeWidth:a}),p("line",{x1:21,y1:21,x2:21,y2:7,stroke:t,strokeWidth:a}),p("line",{x1:17,y1:7,x2:21,y2:7,stroke:t,strokeWidth:a})]}),zt={close:"#FF5F57",minimize:"#FEBC2E",toggleMode:"#28C840"},_t=24,rp=2,Wt=8,Ft=e=>({width:_t,height:_t,borderRadius:_t/2,display:"flex",alignItems:"center",justifyContent:"center",background:`radial-gradient(circle, ${e} 6px, transparent 6px)`,border:"none",padding:0,cursor:"pointer",flexShrink:0});function sp({onClose:e,onMinimize:t,onToggleMode:a,mode:r}){let s=r==="floating"?tp:ap,o=r==="floating"?"Dock to bottom sheet":"Make floating window";return H("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:rp},children:[t&&p("button",{type:"button",onClick:t,style:Ft(zt.minimize),"aria-label":"Minimize modal",children:p(ep,{size:Wt,color:"#7A5A00",strokeWidth:1.5})}),a&&p("button",{type:"button",onClick:a,style:Ft(zt.toggleMode),"aria-label":o,children:p(s,{size:Wt,color:"#004A1A",strokeWidth:1.5})}),p("button",{type:"button",onClick:e,style:Ft(zt.close),"aria-label":"Close modal",children:p(Zg,{size:Wt,color:"#4A0000",strokeWidth:1.5})})]})}var Wa=Dt(function({isResizing:e,mode:t,hasCustomContent:a=false,variant:r="default"}){let s=t==="floating",o=r==="night";return H("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:[p("div",{style:{width:o?36:e?40:s?50:40,height:o||s?5:3,backgroundColor:o?d.color.placeholder:e?P.primary:s?P.textMuted:P.primary,borderRadius:o?2.5:2,boxShadow:o?"none":`0 0 4px ${P.primary}99`}}),e&&t==="bottomSheet"&&p("div",{style:{position:"absolute",display:"flex",flexDirection:"row",gap:2,marginTop:12},children:[0,1,2].map(n=>p("div",{style:{width:12,height:1,backgroundColor:B.success,opacity:.6}},n))})]})}),op=Dt(function({onAcknowledge:e}){return p("div",{style:{backgroundColor:`${B.info}15`,borderLeft:`3px solid ${B.info}`,borderRadius:8,margin:"8px 12px 4px",overflow:"hidden",boxShadow:`0 0 8px ${B.info}4D`,flexShrink:0},children:H("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:12,gap:12},children:[H("div",{style:{width:32,height:32,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:[p("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${B.info}`,opacity:.6,transform:"scale(0.8)",boxSizing:"border-box"}}),p("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${B.info}`,boxSizing:"border-box"}})]}),H("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:13,fontWeight:600,color:B.info,letterSpacing:.3},children:"\u{1F4A1} Pro Tip"}),p("span",{style:{fontSize:12,color:B.primaryLight,lineHeight:"16px"},children:"Double-tap the header to transform this into a floating modal"})]}),p("button",{type:"button",onClick:e,style:{backgroundColor:`${B.info}30`,padding:"6px 12px",borderRadius:6,border:`1px solid ${B.info}50`,fontSize:12,fontWeight:600,color:B.info,cursor:"pointer",fontFamily:"inherit",flexShrink:0},children:"Got it!"})]})})});function Fa({header:e,isResizing:t,mode:a,onMinimize:r,variant:s="default"}){if(e?.customContent){let o=e.customContent;return Kg(e.customContent)&&r&&(o=Jg(e.customContent,{onMinimize:r})),H("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},children:[p(Wa,{isResizing:t,mode:a,hasCustomContent:true,variant:s}),o]})}return H("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",minWidth:0},children:[p(Wa,{isResizing:t,mode:a,variant:s}),H("div",{style:{padding:"0 16px",display:"flex",flexDirection:"column",alignItems:"center"},children:[e?.title&&p("span",{style:{fontSize:16,fontWeight:600,color:B.primary},children:e.title}),e?.subtitle&&p("span",{style:{fontSize:12,color:B.secondary,paddingTop:4},children:e.subtitle})]}),p("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:p("span",{style:{fontSize:10,color:B.muted,fontStyle:"italic"},children:"Double tap: Toggle \u2022 Triple tap: Close"})})]})}var np=({visible:e,onClose:t,children:a,header:r,styles:s={},minHeight:o=qg,maxHeight:n,initialHeight:i=Xg,animatedHeight:l,benchMotion:h,initialMode:b="bottomSheet",onModeChange:S,persistenceKey:f,enablePersistence:m=true,initialFloatingPosition:C,footer:$,footerHeight:V=0,onBack:se,onMinimize:N,minimizeRequest:y=0,minimizeTargetPosition:Q,initialModalState:L,zIndex:We,disableScrollWrapper:Ja=false,background:Vt=true,variant:ot="night"})=>{let[Y]=te(Qg),[Gt,Yt]=te(!m),[O,nt]=te(b),Fe=z(S);Fe.current=S;let[ke,ce]=te(false),[it,Te]=te(false),[qa,lt]=te(i),[Z,Ie]=te(()=>Nt({width:tt(),height:za,top:C?.y??(le()-za)/2,left:C?.x??0},Y)),[Xa,je]=te(false),[Qa,Kt]=te(false),Za=ia(),de=z(i),K=z(Z),W=z({x:Z.left,y:Z.top}),He=z(null),ct=z(null),ee=z(null),ue=z([]),q=D(()=>{ue.current.forEach(c=>c()),ue.current=[]},[]);ae(()=>{K.current=Z},[Z]),ae(()=>q,[q]);let Jt=n||le()-Y.top;ae(()=>{if(!m||!f){Yt(true);return}let c=true;return(async()=>{let u=await et.load(f);if(c&&u&&(u.mode&&(nt(u.mode),Fe.current?.(u.mode)),u.panelHeight&&(lt(u.panelHeight),de.current=u.panelHeight),u.dimensions)){let v=Nt(u.dimensions,Y);Ie(v),W.current={x:v.left,y:v.top}}c&&Yt(true)})(),()=>{c=false}},[f,m]),ae(()=>{if(!m||!f||!Gt)return;let c=setTimeout(()=>{et.save(f,{mode:O,panelHeight:de.current,dimensions:Z,isVisible:e})},500);return()=>clearTimeout(c)},[O,qa,Z,e,f,m,Gt]),ae(()=>{let c=true;return(async()=>{try{let u=fe.modal.hintAcknowledged(),v=await j.getItem(u);c&&(je(v!=="true"),Kt(true))}catch{c&&(je(true),Kt(true))}})(),()=>{c=false}},[]);let er=D(async()=>{try{let c=fe.modal.hintAcknowledged();await j.setItem(c,"true"),je(false)}catch{je(false)}},[]),dt=D(()=>{Te(false),ce(false);let c=O==="bottomSheet"?"floating":"bottomSheet";nt(c),Fe.current?.(c)},[O]);ae(()=>{Te(false),ce(false)},[O]);let he=D(()=>{if(!N)return;let c={mode:O,panelHeight:de.current,floatingPosition:{x:K.current.left,y:K.current.top},floatingDimensions:{width:K.current.width,height:K.current.height}};m&&f&&et.saveMinimized(f,c);let u=Q?.x??tt()-50,v=Q?.y??le()-150;if(q(),O==="bottomSheet"){let T=He.current;if(!T){N(c);return}let w=le();ue.current.push(me(300,_e,A=>{T.style.opacity=String(1-A),T.style.transform=`translateY(${A*w}px)`},()=>N(c)))}else{let T=ee.current;if(!T){N(c);return}let w={...W.current};ue.current.push(me(300,_e,A=>{T.style.opacity=String(1-A);let ge=w.x+(u-w.x)*A,pe=w.y+(v-w.y)*A;T.style.transform=`translate(${ge}px, ${pe}px)`},()=>N(c)))}},[O,N,Q,q,m,f]),qt=z(y);ae(()=>{qt.current!==y&&(qt.current=y,he())},[y,he]),ae(()=>{if(L&&(L.mode&&(nt(L.mode),Fe.current?.(L.mode)),L.panelHeight&&(lt(L.panelHeight),de.current=L.panelHeight),L.floatingDimensions&&L.floatingPosition)){let c={width:L.floatingDimensions.width,height:L.floatingDimensions.height,top:L.floatingPosition.y,left:L.floatingPosition.x};Ie(c),W.current={x:L.floatingPosition.x,y:L.floatingPosition.y}}},[L]),Yg(()=>{if(e)if(q(),O==="bottomSheet"){let c=He.current;if(!c)return;let u=le();c.style.transform=`translateY(${u}px)`,c.style.opacity="0",ue.current.push(me(300,_a,v=>{c.style.transform=`translateY(${(1-v)*u}px)`}),me(200,_e,v=>{c.style.opacity=String(v)}))}else{let c=ee.current;if(!c)return;W.current={x:K.current.left,y:K.current.top},c.style.transform=`translate(${W.current.x}px, ${W.current.y}px)`,c.style.opacity="0",ue.current.push(me(200,_e,u=>{c.style.opacity=String(u)}))}},[e,O,q]);let Xt=z(0),Ee=z(0),Ae=z(null),Ue=D(()=>{let c=Date.now();c-Xt.current>500&&(Ee.current=0),Ee.current++,Xt.current=c,Ae.current&&clearTimeout(Ae.current),Ae.current=setTimeout(()=>{Ee.current===2?dt():Ee.current>=3&&N&&he(),Ee.current=0},300)},[dt,N,he]);ae(()=>()=>{Ae.current&&clearTimeout(Ae.current)},[]);let Ve=z({active:false,resizing:false,startY:0,headerOffsetY:0,samples:[]}),tr=D(c=>{if(O!=="bottomSheet"||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let u=Ve.current;u.active=true,u.resizing=false,u.startY=c.clientY;let v=c.currentTarget.getBoundingClientRect();u.headerOffsetY=c.clientY-v.top,u.samples=[{t:performance.now(),y:c.clientY}],c.currentTarget.setPointerCapture(c.pointerId)},[O]),ar=D(c=>{let u=Ve.current;if(!u.active)return;let v=c.clientY-u.startY;if(!u.resizing&&Math.abs(v)>3&&(u.resizing=true,q(),ce(true)),!u.resizing)return;let T=c.clientY-u.headerOffsetY,w=le()-T;w=Math.max(o,Math.min(w,Jt)),de.current=w,ct.current&&(ct.current.style.height=`${w}px`);let A=performance.now();for(u.samples.push({t:A,y:c.clientY});u.samples.length>2&&A-u.samples[0].t>100;)u.samples.shift()},[o,Jt,q]),rr=D(c=>{let u=Ve.current;if(!u.active)return;if(u.active=false,!u.resizing){Ue();return}ce(false);let v=de.current,T=c.clientY-u.startY,w=u.samples[0],A=u.samples[u.samples.length-1];if((A&&w&&A.t>w.t?(A.y-w.y)/(A.t-w.t):0)>.8&&T>50||T>150&&v<=o){let ge=He.current;if(q(),ge){let pe=le();ue.current.push(me(200,_e,F=>{ge.style.opacity=String(1-F)}),me(300,_a,F=>{ge.style.transform=`translateY(${F*pe}px)`},()=>t()))}else t();return}lt(v)},[o,t,Ue,q]),sr=D(()=>{let c=Ve.current;c.active&&(c.active=false,c.resizing=false,ce(false))},[]),Ge=z({active:false,dragging:false,startX:0,startY:0,startPos:{x:0,y:0}}),or=D(c=>{if(O!=="floating"||ke||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let u=Ge.current;u.active=true,u.dragging=false,u.startX=c.clientX,u.startY=c.clientY,u.startPos={...W.current},c.currentTarget.setPointerCapture(c.pointerId)},[O,ke]),nr=D(c=>{let u=Ge.current;if(!u.active)return;let v=c.clientX-u.startX,T=c.clientY-u.startY;if(!u.dragging&&Math.abs(v)+Math.abs(T)>5&&(u.dragging=true,Te(true)),!u.dragging)return;let w=u.startPos.x+v,A=u.startPos.y+T;W.current={x:w,y:A},ee.current&&(ee.current.style.transform=`translate(${w}px, ${A}px)`)},[]),ir=D(()=>{let c=Ge.current;if(!c.active)return;if(c.active=false,!c.dragging){Ue();return}Te(false);let u=K.current,v=Nt({...u,left:W.current.x,top:W.current.y},Y),T=v.left,w=v.top;W.current={x:T,y:w},ee.current&&(ee.current.style.transform=`translate(${T}px, ${w}px)`),Ie(A=>({...A,left:T,top:w}))},[Y,Ue]),lr=D(()=>{let c=Ge.current;c.active&&(c.active=false,c.dragging=false,Te(false))},[]),ut=z({active:false,corner:"bottomRight",startX:0,startY:0,start:{width:0,height:0,top:0,left:0}}),cr=D(c=>u=>{if(O!=="floating")return;u.stopPropagation();let v=ut.current;v.active=true,v.corner=c,v.startX=u.clientX,v.startY=u.clientY,v.start={...K.current},ce(true),u.currentTarget.setPointerCapture(u.pointerId)},[O]),dr=D(c=>{let u=ut.current;if(!u.active)return;let v=c.clientX-u.startX,T=c.clientY-u.startY;if(Math.abs(v)<.5&&Math.abs(T)<.5)return;let w=Math.max(0,Y.left),A=le()-Math.max(0,Y.bottom),ge=tt()-Math.max(0,Y.right),pe=tt()*.25,F=u.start,ht=F.left+F.width,gt=F.top+F.height,Re=F.left,Ye=F.top,ra=ht,pt=gt;u.corner==="bottomLeft"?(Re=Math.max(w,Math.min(F.left+v,ht-pe)),pt=Math.min(A,Math.max(gt+T,F.top+ze))):(ra=Math.min(ge,Math.max(ht+v,F.left+pe)),pt=Math.min(A,Math.max(gt+T,F.top+ze)));let ur=Math.max(pe,ra-Re),hr=Math.max(ze,pt-Ye),sa={width:ur,height:hr,left:Re,top:Ye};K.current=sa,W.current={x:Re,y:Ye},Ie(sa),ee.current&&(ee.current.style.transform=`translate(${Re}px, ${Ye}px)`)},[Y.left,Y.right,Y.bottom]),Qt=D(()=>{let c=ut.current;c.active&&(c.active=false,ce(false),Ie(K.current))},[]);if(!e)return p("div",{style:{display:"none"},"aria-hidden":true,children:a},"hidden");let Zt=r?.title||"Dev tool panel",E=ot==="night",ea=Vt&&E?p("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},"aria-hidden":true,children:p(mt,{})}):null,ta=H("div",{style:{flex:1,minHeight:0,position:"relative",display:"flex",flexDirection:"column",backgroundColor:E?"transparent":P.base,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden",...s.content},children:[Vt&&!E?p(mt,{}):null,Ja?p("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",paddingBottom:V},children:a}):p("div",{style:{flex:1,minHeight:0,overflowY:"auto",paddingBottom:V},children:a}),$?p("div",{style:{position:"absolute",left:0,right:0,bottom:0,backgroundColor:P.base,borderBottomLeftRadius:16,borderBottomRightRadius:16},children:$}):null]}),aa=p("div",{style:{position:"absolute",top:4,right:4,zIndex:10},children:p(sp,{onClose:t,onMinimize:N?he:void 0,onToggleMode:dt,mode:O})});if(O==="floating"){let c=it||ke;return H("div",{ref:ee,role:"dialog","aria-label":Zt,style:{position:"fixed",left:0,top:0,width:Z.width,height:Z.height,transform:`translate(${W.current.x}px, ${W.current.y}px)`,display:"flex",flexDirection:"column",backgroundColor:E?d.color.bg:P.card,borderRadius:E?d.radius.sheet:6,border:E?`1px solid ${d.color.accent}55`:c?`2px solid ${P.primary}`:`1px solid ${P.border}`,boxShadow:E?`0 0 14px ${d.color.accent}38`:c?`0 0 12px ${P.primary}7A`:`0 0 20px ${P.primary}4D`,...E?{overflow:"hidden"}:null,boxSizing:"border-box",zIndex:We??1e3,...s.container},children:[ea,p("div",{onPointerDown:or,onPointerMove:nr,onPointerUp:ir,onPointerCancel:lr,style:{borderTopLeftRadius:E?d.radius.sheet:6,borderTopRightRadius:E?d.radius.sheet:6,backgroundColor:E?"transparent":P.card,minHeight:56,border:E?"none":`1px solid ${P.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:it?"grabbing":"grab",position:"relative"},children:p(Fa,{header:r,isResizing:it||ke,mode:O,onMinimize:N?he:void 0,variant:ot})}),aa,ta,["bottomLeft","bottomRight"].map(u=>p("div",{onPointerDown:cr(u),onPointerMove:dr,onPointerUp:Qt,onPointerCancel:Qt,style:{position:"absolute",width:30,height:30,bottom:4,...u==="bottomLeft"?{left:4}:{right:4},zIndex:1e3,touchAction:"none",cursor:u==="bottomLeft"?"nesw-resize":"nwse-resize"},children:p("div",{style:{width:20,height:20,borderRadius:10,boxSizing:"border-box",backgroundColor:c?`${B.success}1A`:"transparent",border:c?`2px solid ${B.success}`:"none",boxShadow:c?`0 0 8px ${B.success}99`:"none"}})},u))]},"floating")}return p("div",{style:{position:"fixed",inset:0,zIndex:We??1e3,pointerEvents:"none"},children:p("div",{ref:He,style:{position:"absolute",bottom:0,left:0,right:0,pointerEvents:"auto"},children:H("div",{ref:ct,role:"dialog","aria-label":Zt,style:{height:de.current,display:"flex",flexDirection:"column",backgroundColor:E?d.color.bg:P.card,borderTopLeftRadius:E?d.radius.sheet:6,borderTopRightRadius:E?d.radius.sheet:6,border:E?`1px solid ${d.color.accent}55`:`1px solid ${P.border}`,boxShadow:E?`0 -4px 10px ${d.color.accent}38`:`0 -4px 12px ${P.primary}33`,...E?{overflow:"hidden"}:null,boxSizing:"border-box",position:"relative",...s.container},children:[ea,p("div",{onPointerDown:tr,onPointerMove:ar,onPointerUp:rr,onPointerCancel:sr,style:{borderTopLeftRadius:E?d.radius.sheet:6,borderTopRightRadius:E?d.radius.sheet:6,backgroundColor:E?"transparent":P.card,minHeight:56,border:E?"none":`1px solid ${P.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:"ns-resize",position:"relative"},children:p(Fa,{header:r,isResizing:ke,mode:O,onMinimize:N?he:void 0,variant:ot})}),aa,Qa&&Xa&&!Za&&p(op,{onAcknowledge:er}),ta]})})},"bottomSheet")},ip=Dt(e=>da()().status!=="admitted"?e.visible?p(Na,{}):null:p(np,{...e}));import{Children as lp,useEffect as cp,useRef as dp}from"react";import{Fragment as up,jsx as _,jsxs as at}from"react/jsx-runtime";function hp({children:e,style:t}){return _(M,{style:[g.sectionLabel,t],children:e})}function gp({children:e,centered:t,tone:a="tertiary",style:r}){let s=$e.flatten(r),o=!!s&&(s.marginHorizontal!=null||s.margin!=null);return _(M,{style:[g.footnote,o?null:g.footnoteInset,a==="secondary"?g.footnoteSecondary:null,a==="warning"?g.footnoteWarning:null,a==="danger"?g.footnoteDanger:null,t?g.footnoteCentered:null,r],children:e})}function pp({children:e,padded:t,glass:a,style:r}){return _(k,{style:[g.card,a?g.cardGlass:null,t?g.cardPadded:null,r],children:e})}function ja({inset:e=d.rowPadH}){return _(k,{style:[g.separator,{marginLeft:e}]})}function fp({children:e,inset:t=d.rowPadH}){let a=lp.toArray(e);return _(up,{children:a.map((r,s)=>at(k,{children:[s>0?_(ja,{inset:t}):null,r]},r.key??s))})}var Ha=56,Ua=32,rt=22,Va=5,bp=Ha-rt-Va*2;function mp({value:e,onValueChange:t,disabled:a,testID:r,accessibilityLabel:s}){let o=dp(new St.Value(e?1:0)).current;return cp(()=>{St.timing(o,{toValue:e?1:0,duration:200,useNativeDriver:mh.OS!=="web"}).start()},[e,o]),_(Je,{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:[g.switchTrack,e?g.switchTrackOn:null,a?g.switchDisabled:null],children:_(St.View,{style:[g.switchThumb,e?g.switchThumbOn:null,{transform:[{translateX:o.interpolate({inputRange:[0,1],outputRange:[0,bp]})}]}]})})}function yp({label:e,selected:t,onPress:a,disabled:r,icon:s,testID:o}){return at(Je,{activeOpacity:.7,disabled:r||!a,onPress:a,testID:o,style:[g.chip,t?g.chipSelected:null,r?g.chipDisabled:null],children:[s,_(M,{style:[g.chipText,t?g.chipTextSelected:null],children:e})]})}function Sp({label:e,onPress:t,variant:a="secondary",size:r="lg",icon:s,disabled:o,fullWidth:n=true,testID:i,accessibilityLabel:l}){let h=a==="primary"?d.color.onAccent:a==="tertiary"?d.color.text:a==="destructive"?d.color.danger:d.color.accent;return at(Je,{activeOpacity:.7,disabled:o,onPress:t,testID:i,accessibilityRole:"button",accessibilityLabel:l??e,accessibilityState:{disabled:!!o},style:[g.button,r==="md"?g.buttonMd:g.buttonLg,a==="primary"?g.buttonPrimary:a==="ghost"?g.buttonGhost:g.buttonPlate,n?g.buttonFullWidth:null,o?g.buttonDisabled:null],children:[s,_(M,{style:[r==="md"?g.buttonTextMd:g.buttonTextLg,{color:h}],children:e})]})}function vp({tabs:e,activeKey:t,onChange:a,size:r="md",glass:s,testIDPrefix:o}){let n=r==="sm";return _(k,{style:[g.segmentTrack,s?g.segmentTrackGlass:null],children:e.map(i=>{let l=i.key===t;return at(Je,{activeOpacity:.7,testID:o?`${o}-${i.key}`:void 0,accessibilityRole:"tab",accessibilityState:{selected:l},accessibilityLabel:i.label,onPress:()=>a(i.key),style:[g.segment,n?g.segmentSm:null,l?s?g.segmentActiveGlass:g.segmentActive:null],children:[_(M,{style:[g.segmentText,n?g.segmentTextSm:null,l?g.segmentTextActive:null],children:i.label}),l?_(k,{style:[g.segmentUnderline,n?g.segmentUnderlineSm:null]}):null]},i.key)})})}function xp({label:e,tone:t="neutral"}){let a=t==="accent"?g.badgeAccent:t==="warning"?g.badgeWarning:t==="danger"?g.badgeDanger:t==="info"?g.badgeInfo:g.badgeNeutral,r=t==="accent"?g.badgeTextAccent:t==="warning"?g.badgeTextWarning:t==="danger"?g.badgeTextDanger:t==="info"?g.badgeTextInfo:g.badgeTextNeutral;return _(k,{style:[g.badge,a],children:_(M,{style:[g.badgeText,r],children:e})})}var g=$e.create({sectionLabel:{color:d.color.textSecondary,fontSize:d.font.label,fontWeight:"600",letterSpacing:ua,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:$e.hairlineWidth,backgroundColor:d.color.separator},switchTrack:{width:Ha,height:Ua,borderRadius:Ua/2,borderWidth:1,borderColor:d.color.fillTertiary,backgroundColor:d.color.surfaceElevated,paddingHorizontal:Va,justifyContent:"center",overflow:"hidden"},switchTrackOn:{backgroundColor:d.color.accentFill,borderColor:d.color.accentBorderStrong},switchDisabled:{opacity:.4},switchThumb:{width:rt,height:rt,borderRadius:rt/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 we,jsxs as Cp}from"react/jsx-runtime";function jt(e){switch(bt(String(e))){case"dev":return{label:"DEV",backgroundColor:x.warning};case"qa":return{label:"QA",backgroundColor:x.optional};case"staging":return{label:"STAGING",backgroundColor:x.success};case"prod":return{label:"PROD",backgroundColor:x.error};case"local":default:return{label:"LOCAL",backgroundColor:x.info}}}function wp({color:e}){return we("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:we("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function kp({environment:e,interactive:t=false,onPress:a}){let r=jt(e);return Cp("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:[we("div",{style:{width:8,height:8,borderRadius:4,backgroundColor:r.backgroundColor,marginRight:6,boxShadow:`0 0 4px ${r.backgroundColor}99`}}),we("span",{style:{fontSize:11,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:r.label}),t&&we("span",{style:{marginLeft:2,display:"flex"},children:we(wp,{color:"#7A8599"})})]})}import{jsx as ye,jsxs as Ht}from"react/jsx-runtime";var Tp=140,Ip=28,Ga=44,Ep=8,Ap=24;function Ut(e){switch(bt(e)){case"local":return{label:"LOCAL",backgroundColor:x.info};case"dev":return{label:"DEV",backgroundColor:x.warning};case"qa":return{label:"QA",backgroundColor:x.optional};case"staging":return{label:"STAGING",backgroundColor:x.success};case"prod":return{label:"PROD",backgroundColor:x.error};default:return{label:"LOCAL",backgroundColor:x.info}}}function Rp({environment:e,isSelected:t,onPress:a}){let r=Ut(e);return Ht(yh,{onPress:a,style:({pressed:s})=>[re.optionContainer,t&&re.optionContainerSelected,s&&re.optionContainerPressed],children:[Ht(k,{style:re.optionLeft,children:[ye(k,{style:[re.optionDot,{backgroundColor:r.backgroundColor},{shadowColor:r.backgroundColor,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4,elevation:2}]}),ye(M,{style:re.optionLabel,children:r.label})]}),t&&ye(ha,{size:14,color:x.success,strokeWidth:3})]})}function Op({hasItems:e,currentEnvironment:t,availableEnvironments:a,onSelect:r,width:s=Tp,collapsedContent:o}){let n=Ep+a.length*Ga+Ap+4,i=Ht(k,{style:re.collapsedEnvBadge,children:[ye(k,{style:[re.collapsedDot,{backgroundColor:Ut(t).backgroundColor}]}),ye(M,{style:re.collapsedLabel,children:Ut(t).label})]});return ye(la,{hasItems:e,width:s,expandedHeight:n,peekHeight:Ip,showCount:false,collapsedContent:o||i,collapsedLabel:`Switch environment from ${t}`,children:a.map(l=>ye(Rp,{environment:l,isSelected:l===t,onPress:()=>r(l)},l))})}var re=$e.create({collapsedEnvBadge:{flexDirection:"row",alignItems:"center",gap:6},collapsedDot:{width:8,height:8,borderRadius:4},collapsedLabel:{fontSize:11,fontWeight:"600",color:x.primaryLight,letterSpacing:.5},optionContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,height:Ga,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:x.primaryLight,letterSpacing:.5}});import{useState as Ya}from"react";import{jsx as J,jsxs as st}from"react/jsx-runtime";var Ka=36;function Lp({color:e,flipped:t}){return J("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:J("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function $p(){return J("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:J("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"#4AFF9F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function Pp({currentEnvironment:e,availableEnvironments:t,onSelect:a}){let[r,s]=Ya(false),[o,n]=Ya(null),i=jt(e),l=t.length*Ka;return st("div",{style:{position:"relative",zIndex:1e3,flexShrink:0},children:[J("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(h=>{let b=jt(h),S=String(h).toLowerCase()===String(e).toLowerCase();return st("button",{onClick:()=>{s(false),a(h)},onMouseEnter:()=>n(String(h)),onMouseLeave:()=>n(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:Ka,padding:"0 10px",background:S?"rgba(128,128,128,0.1)":o===String(h)?"rgba(128,128,128,0.2)":"none",border:"none",cursor:"pointer"},children:[st("span",{style:{display:"flex",alignItems:"center"},children:[J("span",{style:{width:6,height:6,borderRadius:3,backgroundColor:b.backgroundColor,marginRight:8}}),J("span",{style:{fontSize:10,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:b.label})]}),S&&J($p,{})]},String(h))})}),st("button",{onClick:()=>s(h=>!h),"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:[J("span",{style:{width:8,height:8,borderRadius:4,backgroundColor:i.backgroundColor,boxShadow:`0 0 4px ${i.backgroundColor}99`}}),J("span",{style:{fontSize:11,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:i.label}),J(Lp,{color:"#7A8599",flipped:r})]})]})}export{zi as ARROW_BOTTOM_OFFSET,_i as ARROW_HEIGHT,Fl as ASSETS_ICON_COLOR,Na as AccountSetup,ao as ActionCopyButton,bc as Activity,Oc as ActivityIcon,Do as AddFilterButton,Po as AddFilterInput,vc as AlertCircle,jd as AlertCircleIcon,Cc as AlertOctagon,kc as AlertTriangle,Bc as AlertTriangleIcon,Td as AskBuoyIcon,zl as AssetsIcon,Rn as BACKGROUND_PRESETS,Kn as BACKGROUND_STORAGE_KEY,eu as BENCHMARK_ICON_COLOR,Xo as BackButton,ci as BackgroundSwitcher,Vo as Badge,sc as BarChart3,ic as BarChart3Icon,xh as BaseEventStore,Jd as BenchmarkIcon,Gu as BenchmarkLegacyIcon,Ac as Bookmark,$c as Box,zc as BoxIcon,_g as BubbleSettingsDetail,zg as BubbleSettingsSection,Dc as Bug,wd as BugIcon,Oi as CELLS,Ii as CLIP_OFFSCREEN_CELLS,vu as CLOCK_TOOL_ICON_COLOR,Sl as CONSOLE_ICON_COLOR,Oa as COPY_PAYLOAD_MAX_BYTES,ml as CameraIcon,Dh as ChangeLog,Qs as ChangeRow,ha as Check,Wc as CheckCircle,Hl as CheckCircle2,Yd as CheckCircle2Icon,Vc as CheckCircleIcon,jc as CheckIcon,pc as CheckSquare,Nl as CheckSquareIcon,Yc as ChevronDown,Jc as ChevronDownIcon,Xc as ChevronLeft,Zc as ChevronLeftIcon,td as ChevronRight,rd as ChevronRightIcon,od as ChevronUp,pl as ChevronUpIcon,Ro as ChipStrip,Cn as ClipboardHintBanner,bl as Clock,ld as ClockIcon,fu as ClockToolIcon,uc as Cloud,fc as CloudIcon,Yn as CollapsibleSection,jo as CompactFilterChips,Ni as CompactRow,Di as CompareBar,ch as ConsoleIcon,dd as Copy,Ys as CopyButton,gd as CopyIcon,vs as CountBadge,ca as CyberpunkSectionButton,$n as DEFAULT_BACKGROUND,wn as DEVTOOLS_CARD_CONSTANTS,Xn as DataInspector,ga as Database,Ad as DatabaseIcon,mi as DaylightTunable,sn as DeepFieldTunable,Mn as DetailView,Bs as DetailViewToggle,En as DevToolsCard,Bi as DiffModeTabs,Sd as DockBottom,kd as Download,gu as DownloadIcon,_n as DraggableHeader,oi as DynamicFilterView,nh as ENV_ICON_COLOR,Ri as EVENT_LIST_PRESET,Rd as Edit3,md as Edit3Icon,rn as EmptyState,vo as EntityFilterView,rh as EnvIcon,Wd as EnvLaptopIcon,kp as EnvironmentIndicator,Op as EnvironmentSelector,Pp as EnvironmentSelectorInline,Ts as EventHistoryViewer,fn as EventListItem,As as EventPickerModal,bi as EventStepperFooter,Fc as EventsIcon,la as ExpandablePopover,Ti as ExpandedInfoRow,Mo as ExportPreview,zd as Eye,Cd as EyeIcon,pa as EyeOff,Ed as EyeOffIcon,Zn as FeatureGate,Tl as FileCode,$d as FileCodeIcon,Hd as FileJson,Au as FileJsonIcon,Kd as FileText,Dd as FileTextIcon,Zd as Film,Sc as FilmIcon,su as Filter,Oo as FilterBadge,Fd as FilterIcon,_o as FilterList,Eo as FilterSection,cu as FlaskConical,Gd as FlaskConicalIcon,pu as FloatWindow,Yi as FloatingTool,Ui as FloatingToolDivider,Zi as FloatingToolHost,Vi as FloatingToolUserStatus,mo as FooterButton,uo as FooterCaption,po as FooterMessage,io as FooterRow,Ms as FreeAccountPrompt,hl as GAME_UI_ALERT_STATES,il as GameUICollapsibleSection,dl as GameUICompactStats,ul as GameUIIssuesList,cl as GameUIStatusHeader,Su as GitBranch,Xd as GitBranchIcon,ku as Globe,Pd as GlobeIcon,Hn as GripVerticalIcon,Kl as Hand,Du as HandIcon,Rl as HardDrive,au as HardDriveIcon,Ru as Hash,iu as HashIcon,On as HeaderSearchButton,Ic as HelpCircle,ud as HighlightIcon,zu as HighlightUpdatesIcon,Od as HighlighterIcon,In as HintsProvider,Sr as HistoryEntryRow,vr as HistoryList,gr as HistoryProvider,Pu as Home,Gl as HomeIcon,Bl as IMAGES_ICON_COLOR,Zl as IMAGE_OVERLAY_ICON_COLOR,Yl as IMPERSONATE_ICON_COLOR,Md as IconBackground,hd as IconCircle,id as IconContainer,xd as IconLine,bd as IconRect,Nu as Image,wc as ImageIcon,Jl as ImageOverlayIcon,Ll as ImagesIcon,Ul as ImpersonateIcon,Fu as Info,hu as InfoIcon,Ls as InfoRow,qs as InlineCopyButton,hc as JOTAI_ICON_COLOR,lc as JotaiIcon,ip as JsModal,Vu as Key,mu as KeyIcon,Is as LOGIN_COMMAND,$i as LOG_LIST_PRESET,Vd as LaptopIcon,Ju as Layers,Cu as LayersIcon,Nn as LicenseEntryModal,en as LinearFade,Qu as Link,$u as LinkIcon,ko as ListItem,Tn as LiveSkyTunable,th as Lock,yu as LockIcon,$t as LogLevel,$t as LogLevelEnum,Pt as LogType,Pt as LogTypeEnum,Ps as MAX_PERIOD,Dl as Maximize2,Eu as Maximize2Icon,an as MethodBadge,sh as Minus,Lu as MinusIcon,fo as ModalHeader,yo as ModalHintBanner,gi as MoonlightTunable,ih as Music,Ec as MusicIcon,eh as NETWORK_ICON_COLOR,ua as NIGHT_LABEL_TRACKING,du as NOTIFICATIONS_ICON_COLOR,dh as Navigation,Iu as NavigationIcon,Ld as NetworkGlobeIcon,Xu as NetworkIcon,xp as NightBadge,Sp as NightButton,pp as NightCard,yp as NightChip,gp as NightFootnote,fp as NightRows,hp as NightSectionLabel,vp as NightSegmented,ja as NightSeparator,mp as NightSwitch,ln as NoDataEmptyState,hn as NoResultsEmptyState,bn as NoSearchResultsEmptyState,ou as NotificationsIcon,qn as OTTO_ANCHORS,ei as OTTO_ANCHOR_SIZE,Bn as OTTO_GRID,ui as OTTO_GROUPS,si as OTTO_NOTES,zn as OTTO_PALETTE,Si as OTTO_REEL,Ho as OTTO_SCENES,Go as OTTO_SCENE_BY_ID,Jo as OTTO_SCENE_CROP_H,Ao as OTTO_SCENE_H,Lo as OTTO_SCENE_OTTO,Co as OTTO_SCENE_PALETTE,To as OTTO_SCENE_W,Gn as OTTO_STATES,ii as OTTO_STATE_NAMES,fi as OTTO_USES,So as Otto,go as OttoMotionView,ro as OttoPixels,xs as OttoSceneFrame,Zo as OttoSceneStill,no as OttoStill,Aa as PREVIEW_ITEM_RENDER_BYTE_LIMIT,vl as Palette,Mu as PaletteIcon,kl as Pause,_u as PauseIcon,Lc as Phone,Mc as PhoneIcon,to as Pill,Ai as PillBadge,xl as Pin,Al as Play,Hu as PlayIcon,$l as Plus,Yu as PlusIcon,Ml as Power,ru as PowerIcon,wi as PowerToggleButton,Id as PrimitiveGlobeIcon,Fn as ProBadge,ni as ProFeatureBanner,Vn as ProUpgradeModal,Bd as QueryIcon,Br as REMOTE_RELOAD_DELAY_MS,Cs as RadialGlow,qo as RasterLayer,qd as ReactQueryIcon,fd as ReduxIcon,_l as RefreshCw,qu as RefreshCwIcon,Js as RelativeTime,ju as RenderCountIcon,Bu as RenderPulseIcon,Ql as Route,ad as RouteDotIcon,xu as RouteIcon,bu as RouteMapIcon,Qc as RoutePathIcon,Kc as RoutePinIcon,nd as RouteTwoPinsIcon,Uc as RoutesIcon,Wi as SPACING_GAP,_d as ScenariosIcon,jl as Search,ti as SearchBar,Zu as SearchIcon,xo as SectionHeader,tu as SentryBugIcon,Nc as SentryIcon,$a as SentryLogger,Vl as Server,Qd as ServerIcon,yt as Settings,ah as SettingsIcon,ql as SettingsSolid,ec as Shield,oh as ShieldIcon,_c as Smartphone,Hc as SmartphoneIcon,dc as Square,yc as SquareDashed,Wl as SquareDashedIcon,Pl as SquareIcon,Ou as StackPulseIcon,xr as StandaloneHistoryList,Sn as StatsCard,Ko as StatusBadge,An as StatusIndicator,vd as StorageIcon,nu as StorageStackIcon,on as StorageTypeBadge,oa as Subscribable,zs as TIER_LIMITS,El as TIME_MACHINE_ICON_COLOR,Os as TRANSPARENT,nn as TabSelector,Xl as TestTube2,lh as TestTube2Icon,Ws as TickProvider,Ln as TimeDisplay,wl as TimeMachineIcon,Gc as Timer,qc as TimerIcon,wo as ToggleRow,mt as ToolBackground,un as ToolButton,vn as ToolEmptyState,so as ToolFooter,oo as ToolbarClearButton,Zs as ToolbarCopyButton,ed as Touchpad,sd as TouchpadIcon,nc as Trash,rc as Trash2,yl as Trash2Icon,Wu as TrashIcon,tc as TriangleAlert,Uu as TriangleAlertIcon,Qo as TypeBadge,cc as Unlock,wu as UnlockIcon,di as UpgradeModal,Jn as UpgradePrompt,gc as Upload,lu as UploadIcon,mc as User,Ku as UserIcon,fl as Users,cd as UsersIcon,tn as ValueTypeBadge,Li as ViewToggleCards,pd as Volume,yd as VolumeIcon,ks as WATER_CELLS,Es as WATER_FRAMES,Pi as WATER_ROW0,Mi as WATER_ROWS,Qe as WIRE_DETAIL_LIMIT_BYTES,Ca as WIRE_INLINE_LIMIT_BYTES,xc as Wifi,Ud as WifiBifIcon,uu as WifiCircuitIcon,Nd as WifiIcon,hi as WindowControls,cn as Wormhole,Rc as X,Tc as XCircle,Il as XCircleIcon,Cl as XIcon,oc as ZUSTAND_ICON_COLOR,Pc as Zap,Ol as ZapIcon,ac as ZustandIcon,ll as absoluteFill,La as add,Xe as approxJsonSize,Se as assertAccountAccess,Qn as backgroundStore,_r as browserRouter,U as buoyColors,Hi as calculateTargetPosition,ji as calculateTooltipPosition,gg as canOpenBuoyTools,ka as capDetail,xg as classifyPreviewItem,Mg as clearEntries,yn as copyToClipboard,dn as createAutoDetectedClipboard,mg as createRestoreScope,tg as createSyncAdapter,rg as createToolFactory,Mh as createToolStore,Vs as cycleIndexes,Fg as definePersistedSetting,ag as defineToolPreset,eg as detailByIdAction,fe as devToolsStorageKeys,hh as dialColors,Xi as dismissFloatingTool,cg as dispatchToolAction,ol as displayValue,yg as emptyRestoreResult,kg as entityColor,xt as expandKeyedArrays,Sg as failedRestore,xa as findKeyPath,_s as flatColors,cs as flattenObject,Ra as formatBytes,Eg as formatDuration,Lg as formatHttpStatus,Ag as formatNumber,ds as formatPath,Ns as formatRelativeTime,ns as formatValue,Tg as formatValuePreview,x as gameUIColors,oe as getAccountAccess,pn as getAutoDetectedClipboard,Gi as getBubbleAnchorPosition,Wg as getBubbleVisibilitySettings,hs as getCachedOptionalModule,ts as getConstructorName,Dr as getDevServerOrigin,Ar as getDeviceInfo,Bg as getEntries,Ki as getFloatingTools,$g as getMethodColor,Un as getPreset,Jr as getRegisteredToolModule,ps as getRenderCaptureProvider,gh as getSafeAreaInsets,Vr as getSafeCurrentPathname,Gr as getSafeCurrentRoute,Ur as getSafeRouter,Fi as getScreenCenterY,gn as getSkyScrub,ms as getStateSnapshotProvider,bs as getStateSnapshotProviders,bh as getStorageBackendType,xe as getToolAdapters,fg as getToolAttention,Or as getToolModuleVersion,is as getTypeColor,da as getUseAccountAccess,pi as getUseIsPro,yi as getUseLicense,xi as getUseTier,rs as getValueSize,Qr as getValueType,Ds as gridKey,Ea as guardToolAdapter,G as hasAccountAccess,vt as identityField,ne as ignoredPatternsStore,ph as isDevToolsStorageKey,as as isEmpty,Yr as isExpoRouterAvailable,na as isJsonSerializable,Jh as isOnDeviceMarker,kt as isOverWireBudget,ss as isPlainObjectUtil,Zr as isPrimitive,Et as isToolRegistryReady,Ih as isUrlIgnored,fh as isUsingPersistentStorage,es as isValidJson,ve as listShapes,ig as listSnapshotToolIds,ng as listToolActions,og as listToolIds,us as loadOptionalModule,Rr as logDeviceInfo,Ke as macOSColors,Xh as memoByIdentity,Ia as mergeChangeSources,Tu as monoFont,eo as motionUnits,Qh as newestFitting,d as night,ho as noWindowDragProps,bt as normalizeEnvironment,Oe as notifySubscriberCountChange,Kh as onDeviceMarker,hg as openBuoyTool,qi as openFloatingTool,js as ottoCycle,Ci as ottoReel,Ei as ottoRuns,Wo as ottoSceneBounds,No as ottoSceneRuns,Xs as ottoSheets,jn as ottoWaterRows,nl as parseDisplayValue,Ct as parsePath,Pg as parseUrl,os as parseValue,Uh as patchFromPath,j as persistentStorage,Wn as presetAt,Dn as presetIndex,Ta as readParams,Hh as readPath,lg as readToolSnapshot,ft as realNow,Ks as rectsOf,uh as refreshGameUIColors,Yh as refusalText,Nr as registerBrowserRouter,Qi as registerPersistentFloatingTool,fs as registerStateSnapshotProvider,sg as registerToolAdapters,Kr as registerToolModules,ug as registerToolOpener,Pr as reloadApp,ki as renderOttoFrame,Bo as renderOttoScene,wr as resetPersistedStateCache,Fs as resolveEffectiveTier,kn as resolveListEmptyState,$r as resolveReloadStrategy,ws as retryAccountAccess,al as safeStringify,zo as scatter,Mr as scheduleReloadApp,Ng as sentryLogger,li as setExpandableWindowControls,gs as setRenderCaptureProvider,mn as setSkyScrub,pg as setToolAttention,Ig as shallowDiffSummary,Me as shapeKind,Pe as shapeOf,Fh as shapeSummary,_h as shapesWereTruncated,Zh as sizeOrStub,$o as sizeWarningLevel,vg as skippedRestore,Le as subscribeAccountAccess,zr as subscribeBrowserNavigation,Ji as subscribeFloatingTools,Lr as subscribeToStateSnapshotProviders,Xr as subscribeToSubscriberCountChanges,bg as subscribeToolAttention,qr as subscriberCountNotifier,Vh as suggestedPatch,sl as superJsonDeserialize,rl as superJsonSerialize,qh as toWire,vi as toolTheme,Og as truncateMiddle,Rg as truncatePayload,ls as truncateText,wa as truncatedNote,wt as typedEditViolations,wg as unionKeys,Wh as unshapedLists,fa as urlMatchesIgnoredPattern,mr as useAllHistoryEntries,kr as useChangeLog,Io as useChipTap,Er as useDeviceInfo,Ir as useEventStoreEvents,ri as useFeatureGate,el as useFilterManager,gl as useGameUIAlertState,Pn as useHintsContext,ia as useHintsDisabled,br as useHistoryAdapter,fr as useHistoryAdapters,pr as useHistoryContext,yr as useHistoryEntryCounts,Ph as useIgnoredPatterns,Us as useLimit,Uo as useLoop,bo as useOttoAnchorMotion,co as useOttoReel,Cr as usePersistedState,Yo as usePulse,Gs as useRelativeTime,tl as useSafeAreaInsets,Hr as useSafeGlobalSearchParams,Fr as useSafePathname,Wr as useSafeRouter,jr as useSafeSegments,xn as useSkyScrub,Tr as useSubscribedValue,Hs as useTick,ai as useToolBackground,dg as waitForToolRegistry,lo as windowDragProps,Fo as withBgAlpha,Cg as wontApply};
14
+ `}),Ne("div",{"data-account-launcher":"",children:Ne(Ms,{expanded:e,onPress:()=>t(n=>!n)})}),e&&Ne("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:Ne(_s,{titleId:s,onClose:()=>o()})})]}),document.body)}import{useState as te,useRef as _,useEffect as ae,useLayoutEffect as uf,useCallback as D,memo as Dt,isValidElement as hf,cloneElement as gf}from"react";var et=class{static async save(e,t){this.cache.set(e,t);try{await j.setItem(e,JSON.stringify(t))}catch{}}static async load(e){if(this.cache.has(e))return this.cache.get(e);try{let t=await j.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})}};et.cache=new Map;import{jsx as f,jsxs as H}from"react/jsx-runtime";var P={base:"#121212",card:"#1A1A1A",border:"#333333",textMuted:"#888888",primary:"#20C997"},B={primary:"#F5F5F7",primaryLight:"#F5F5F7",secondary:"#A1A1A6",muted:"#8E8E93",success:"#34C759",info:"#00B8E6"},ff=100,pf=400,za=500,_e=80,tt=()=>typeof window<"u"?window.innerWidth:0,le=()=>typeof window<"u"?window.innerHeight:0,Fa=e=>1-Math.pow(1-e,3),ze=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;function me(e,t,a,r){let s=0,o=false,n=performance.now(),i=l=>{if(o)return;let h=Math.min((l-n)/e,1);a(t(h)),h<1?s=requestAnimationFrame(i):r?.()};return s=requestAnimationFrame(i),()=>{o=true,cancelAnimationFrame(s)}}function bf(){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 Nt(e,t){let a=Math.max(_e,window.innerWidth-t.left-t.right),r=Math.max(_e,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 mf=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("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"})]}),yf=({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"})}),Sf=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("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})]}),vf=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("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})]}),_t={close:"#FF5F57",minimize:"#FEBC2E",toggleMode:"#28C840"},zt=24,xf=2,Ft=8,Wt=e=>({width:zt,height:zt,borderRadius:zt/2,display:"flex",alignItems:"center",justifyContent:"center",background:`radial-gradient(circle, ${e} 6px, transparent 6px)`,border:"none",padding:0,cursor:"pointer",flexShrink:0});function Cf({onClose:e,onMinimize:t,onToggleMode:a,mode:r}){let s=r==="floating"?Sf:vf,o=r==="floating"?"Dock to bottom sheet":"Make floating window";return H("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:xf},children:[t&&f("button",{type:"button",onClick:t,style:Wt(_t.minimize),"aria-label":"Minimize modal",children:f(yf,{size:Ft,color:"#7A5A00",strokeWidth:1.5})}),a&&f("button",{type:"button",onClick:a,style:Wt(_t.toggleMode),"aria-label":o,children:f(s,{size:Ft,color:"#004A1A",strokeWidth:1.5})}),f("button",{type:"button",onClick:e,style:Wt(_t.close),"aria-label":"Close modal",children:f(mf,{size:Ft,color:"#4A0000",strokeWidth:1.5})})]})}var Wa=Dt(function({isResizing:e,mode:t,hasCustomContent:a=false,variant:r="default"}){let s=t==="floating",o=r==="night";return H("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?d.color.placeholder:e?P.primary:s?P.textMuted:P.primary,borderRadius:o?2.5:2,boxShadow:o?"none":`0 0 4px ${P.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:B.success,opacity:.6}},n))})]})}),wf=Dt(function({onAcknowledge:e}){return f("div",{style:{backgroundColor:`${B.info}15`,borderLeft:`3px solid ${B.info}`,borderRadius:8,margin:"8px 12px 4px",overflow:"hidden",boxShadow:`0 0 8px ${B.info}4D`,flexShrink:0},children:H("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:12,gap:12},children:[H("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 ${B.info}`,opacity:.6,transform:"scale(0.8)",boxSizing:"border-box"}}),f("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${B.info}`,boxSizing:"border-box"}})]}),H("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[f("span",{style:{fontSize:13,fontWeight:600,color:B.info,letterSpacing:.3},children:"\u{1F4A1} Pro Tip"}),f("span",{style:{fontSize:12,color:B.primaryLight,lineHeight:"16px"},children:"Double-tap the header to transform this into a floating modal"})]}),f("button",{type:"button",onClick:e,style:{backgroundColor:`${B.info}30`,padding:"6px 12px",borderRadius:6,border:`1px solid ${B.info}50`,fontSize:12,fontWeight:600,color:B.info,cursor:"pointer",fontFamily:"inherit",flexShrink:0},children:"Got it!"})]})})});function ja({header:e,isResizing:t,mode:a,onMinimize:r,variant:s="default"}){if(e?.customContent){let o=e.customContent;return hf(e.customContent)&&r&&(o=gf(e.customContent,{onMinimize:r})),H("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},children:[f(Wa,{isResizing:t,mode:a,hasCustomContent:true,variant:s}),o]})}return H("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",minWidth:0},children:[f(Wa,{isResizing:t,mode:a,variant:s}),H("div",{style:{padding:"0 16px",display:"flex",flexDirection:"column",alignItems:"center"},children:[e?.title&&f("span",{style:{fontSize:16,fontWeight:600,color:B.primary},children:e.title}),e?.subtitle&&f("span",{style:{fontSize:12,color:B.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:B.muted,fontStyle:"italic"},children:"Double tap: Toggle \u2022 Triple tap: Close"})})]})}var kf=({visible:e,onClose:t,children:a,header:r,styles:s={},minHeight:o=ff,maxHeight:n,initialHeight:i=pf,animatedHeight:l,benchMotion:h,initialMode:b="bottomSheet",onModeChange:S,persistenceKey:p,enablePersistence:m=true,initialFloatingPosition:C,footer:$,footerHeight:V=0,onBack:se,onMinimize:N,minimizeRequest:y=0,minimizeTargetPosition:Q,initialModalState:L,zIndex:Fe,disableScrollWrapper:Ja=false,background:Vt=true,variant:ot="night"})=>{let[Y]=te(bf),[Gt,Yt]=te(!m),[A,nt]=te(b),We=_(S);We.current=S;let[ke,ce]=te(false),[it,Te]=te(false),[Xa,lt]=te(i),[Z,Ie]=te(()=>Nt({width:tt(),height:za,top:C?.y??(le()-za)/2,left:C?.x??0},Y)),[Qa,je]=te(false),[Za,Kt]=te(false),er=la(),de=_(i),K=_(Z),F=_({x:Z.left,y:Z.top}),He=_(null),ct=_(null),ee=_(null),ue=_([]),J=D(()=>{ue.current.forEach(c=>c()),ue.current=[]},[]);ae(()=>{K.current=Z},[Z]),ae(()=>J,[J]);let qt=n||le()-Y.top;ae(()=>{if(!m||!p){Yt(true);return}let c=true;return(async()=>{let u=await et.load(p);if(c&&u&&(u.mode&&(nt(u.mode),We.current?.(u.mode)),u.panelHeight&&(lt(u.panelHeight),de.current=u.panelHeight),u.dimensions)){let v=Nt(u.dimensions,Y);Ie(v),F.current={x:v.left,y:v.top}}c&&Yt(true)})(),()=>{c=false}},[p,m]),ae(()=>{if(!m||!p||!Gt)return;let c=setTimeout(()=>{et.save(p,{mode:A,panelHeight:de.current,dimensions:Z,isVisible:e})},500);return()=>clearTimeout(c)},[A,Xa,Z,e,p,m,Gt]),ae(()=>{let c=true;return(async()=>{try{let u=pe.modal.hintAcknowledged(),v=await j.getItem(u);c&&(je(v!=="true"),Kt(true))}catch{c&&(je(true),Kt(true))}})(),()=>{c=false}},[]);let tr=D(async()=>{try{let c=pe.modal.hintAcknowledged();await j.setItem(c,"true"),je(false)}catch{je(false)}},[]),dt=D(()=>{Te(false),ce(false);let c=A==="bottomSheet"?"floating":"bottomSheet";nt(c),We.current?.(c)},[A]);ae(()=>{Te(false),ce(false)},[A]);let he=D(()=>{if(!N)return;let c={mode:A,panelHeight:de.current,floatingPosition:{x:K.current.left,y:K.current.top},floatingDimensions:{width:K.current.width,height:K.current.height}};m&&p&&et.saveMinimized(p,c);let u=Q?.x??tt()-50,v=Q?.y??le()-150;if(J(),A==="bottomSheet"){let T=He.current;if(!T){N(c);return}let w=le();ue.current.push(me(300,ze,E=>{T.style.opacity=String(1-E),T.style.transform=`translateY(${E*w}px)`},()=>N(c)))}else{let T=ee.current;if(!T){N(c);return}let w={...F.current};ue.current.push(me(300,ze,E=>{T.style.opacity=String(1-E);let ge=w.x+(u-w.x)*E,fe=w.y+(v-w.y)*E;T.style.transform=`translate(${ge}px, ${fe}px)`},()=>N(c)))}},[A,N,Q,J,m,p]),Jt=_(y);ae(()=>{Jt.current!==y&&(Jt.current=y,he())},[y,he]),ae(()=>{if(L&&(L.mode&&(nt(L.mode),We.current?.(L.mode)),L.panelHeight&&(lt(L.panelHeight),de.current=L.panelHeight),L.floatingDimensions&&L.floatingPosition)){let c={width:L.floatingDimensions.width,height:L.floatingDimensions.height,top:L.floatingPosition.y,left:L.floatingPosition.x};Ie(c),F.current={x:L.floatingPosition.x,y:L.floatingPosition.y}}},[L]),uf(()=>{if(e)if(J(),A==="bottomSheet"){let c=He.current;if(!c)return;let u=le();c.style.transform=`translateY(${u}px)`,c.style.opacity="0",ue.current.push(me(300,Fa,v=>{c.style.transform=`translateY(${(1-v)*u}px)`}),me(200,ze,v=>{c.style.opacity=String(v)}))}else{let c=ee.current;if(!c)return;F.current={x:K.current.left,y:K.current.top},c.style.transform=`translate(${F.current.x}px, ${F.current.y}px)`,c.style.opacity="0",ue.current.push(me(200,ze,u=>{c.style.opacity=String(u)}))}},[e,A,J]);let Xt=_(0),Oe=_(0),Ee=_(null),Ue=D(()=>{let c=Date.now();c-Xt.current>500&&(Oe.current=0),Oe.current++,Xt.current=c,Ee.current&&clearTimeout(Ee.current),Ee.current=setTimeout(()=>{Oe.current===2?dt():Oe.current>=3&&N&&he(),Oe.current=0},300)},[dt,N,he]);ae(()=>()=>{Ee.current&&clearTimeout(Ee.current)},[]);let Ve=_({active:false,resizing:false,startY:0,headerOffsetY:0,samples:[]}),ar=D(c=>{if(A!=="bottomSheet"||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let u=Ve.current;u.active=true,u.resizing=false,u.startY=c.clientY;let v=c.currentTarget.getBoundingClientRect();u.headerOffsetY=c.clientY-v.top,u.samples=[{t:performance.now(),y:c.clientY}],c.currentTarget.setPointerCapture(c.pointerId)},[A]),rr=D(c=>{let u=Ve.current;if(!u.active)return;let v=c.clientY-u.startY;if(!u.resizing&&Math.abs(v)>3&&(u.resizing=true,J(),ce(true)),!u.resizing)return;let T=c.clientY-u.headerOffsetY,w=le()-T;w=Math.max(o,Math.min(w,qt)),de.current=w,ct.current&&(ct.current.style.height=`${w}px`);let E=performance.now();for(u.samples.push({t:E,y:c.clientY});u.samples.length>2&&E-u.samples[0].t>100;)u.samples.shift()},[o,qt,J]),sr=D(c=>{let u=Ve.current;if(!u.active)return;if(u.active=false,!u.resizing){Ue();return}ce(false);let v=de.current,T=c.clientY-u.startY,w=u.samples[0],E=u.samples[u.samples.length-1];if((E&&w&&E.t>w.t?(E.y-w.y)/(E.t-w.t):0)>.8&&T>50||T>150&&v<=o){let ge=He.current;if(J(),ge){let fe=le();ue.current.push(me(200,ze,W=>{ge.style.opacity=String(1-W)}),me(300,Fa,W=>{ge.style.transform=`translateY(${W*fe}px)`},()=>t()))}else t();return}lt(v)},[o,t,Ue,J]),or=D(()=>{let c=Ve.current;c.active&&(c.active=false,c.resizing=false,ce(false))},[]),Ge=_({active:false,dragging:false,startX:0,startY:0,startPos:{x:0,y:0}}),nr=D(c=>{if(A!=="floating"||ke||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let u=Ge.current;u.active=true,u.dragging=false,u.startX=c.clientX,u.startY=c.clientY,u.startPos={...F.current},c.currentTarget.setPointerCapture(c.pointerId)},[A,ke]),ir=D(c=>{let u=Ge.current;if(!u.active)return;let v=c.clientX-u.startX,T=c.clientY-u.startY;if(!u.dragging&&Math.abs(v)+Math.abs(T)>5&&(u.dragging=true,Te(true)),!u.dragging)return;let w=u.startPos.x+v,E=u.startPos.y+T;F.current={x:w,y:E},ee.current&&(ee.current.style.transform=`translate(${w}px, ${E}px)`)},[]),lr=D(()=>{let c=Ge.current;if(!c.active)return;if(c.active=false,!c.dragging){Ue();return}Te(false);let u=K.current,v=Nt({...u,left:F.current.x,top:F.current.y},Y),T=v.left,w=v.top;F.current={x:T,y:w},ee.current&&(ee.current.style.transform=`translate(${T}px, ${w}px)`),Ie(E=>({...E,left:T,top:w}))},[Y,Ue]),cr=D(()=>{let c=Ge.current;c.active&&(c.active=false,c.dragging=false,Te(false))},[]),ut=_({active:false,corner:"bottomRight",startX:0,startY:0,start:{width:0,height:0,top:0,left:0}}),dr=D(c=>u=>{if(A!=="floating")return;u.stopPropagation();let v=ut.current;v.active=true,v.corner=c,v.startX=u.clientX,v.startY=u.clientY,v.start={...K.current},ce(true),u.currentTarget.setPointerCapture(u.pointerId)},[A]),ur=D(c=>{let u=ut.current;if(!u.active)return;let v=c.clientX-u.startX,T=c.clientY-u.startY;if(Math.abs(v)<.5&&Math.abs(T)<.5)return;let w=Math.max(0,Y.left),E=le()-Math.max(0,Y.bottom),ge=tt()-Math.max(0,Y.right),fe=tt()*.25,W=u.start,ht=W.left+W.width,gt=W.top+W.height,Re=W.left,Ye=W.top,ra=ht,ft=gt;u.corner==="bottomLeft"?(Re=Math.max(w,Math.min(W.left+v,ht-fe)),ft=Math.min(E,Math.max(gt+T,W.top+_e))):(ra=Math.min(ge,Math.max(ht+v,W.left+fe)),ft=Math.min(E,Math.max(gt+T,W.top+_e)));let hr=Math.max(fe,ra-Re),gr=Math.max(_e,ft-Ye),sa={width:hr,height:gr,left:Re,top:Ye};K.current=sa,F.current={x:Re,y:Ye},Ie(sa),ee.current&&(ee.current.style.transform=`translate(${Re}px, ${Ye}px)`)},[Y.left,Y.right,Y.bottom]),Qt=D(()=>{let c=ut.current;c.active&&(c.active=false,ce(false),Ie(K.current))},[]);if(!e)return f("div",{style:{display:"none"},"aria-hidden":true,children:a},"hidden");let Zt=r?.title||"Dev tool panel",O=ot==="night",ea=Vt&&O?f("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},"aria-hidden":true,children:f(mt,{})}):null,ta=H("div",{style:{flex:1,minHeight:0,position:"relative",display:"flex",flexDirection:"column",backgroundColor:O?"transparent":P.base,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden",...s.content},children:[Vt&&!O?f(mt,{}):null,Ja?f("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",paddingBottom:V},children:a}):f("div",{style:{flex:1,minHeight:0,overflowY:"auto",paddingBottom:V},children:a}),$?f("div",{style:{position:"absolute",left:0,right:0,bottom:0,backgroundColor:P.base,borderBottomLeftRadius:16,borderBottomRightRadius:16},children:$}):null]}),aa=f("div",{style:{position:"absolute",top:4,right:4,zIndex:10},children:f(Cf,{onClose:t,onMinimize:N?he:void 0,onToggleMode:dt,mode:A})});if(A==="floating"){let c=it||ke;return H("div",{ref:ee,role:"dialog","aria-label":Zt,style:{position:"fixed",left:0,top:0,width:Z.width,height:Z.height,transform:`translate(${F.current.x}px, ${F.current.y}px)`,display:"flex",flexDirection:"column",backgroundColor:O?d.color.bg:P.card,borderRadius:O?d.radius.sheet:6,border:O?`1px solid ${d.color.accent}55`:c?`2px solid ${P.primary}`:`1px solid ${P.border}`,boxShadow:O?`0 0 14px ${d.color.accent}38`:c?`0 0 12px ${P.primary}7A`:`0 0 20px ${P.primary}4D`,...O?{overflow:"hidden"}:null,boxSizing:"border-box",zIndex:Fe??1e3,...s.container},children:[ea,f("div",{onPointerDown:nr,onPointerMove:ir,onPointerUp:lr,onPointerCancel:cr,style:{borderTopLeftRadius:O?d.radius.sheet:6,borderTopRightRadius:O?d.radius.sheet:6,backgroundColor:O?"transparent":P.card,minHeight:56,border:O?"none":`1px solid ${P.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:it?"grabbing":"grab",position:"relative"},children:f(ja,{header:r,isResizing:it||ke,mode:A,onMinimize:N?he:void 0,variant:ot})}),aa,ta,["bottomLeft","bottomRight"].map(u=>f("div",{onPointerDown:dr(u),onPointerMove:ur,onPointerUp:Qt,onPointerCancel:Qt,style:{position:"absolute",width:30,height:30,bottom:4,...u==="bottomLeft"?{left:4}:{right:4},zIndex:1e3,touchAction:"none",cursor:u==="bottomLeft"?"nesw-resize":"nwse-resize"},children:f("div",{style:{width:20,height:20,borderRadius:10,boxSizing:"border-box",backgroundColor:c?`${B.success}1A`:"transparent",border:c?`2px solid ${B.success}`:"none",boxShadow:c?`0 0 8px ${B.success}99`:"none"}})},u))]},"floating")}return f("div",{style:{position:"fixed",inset:0,zIndex:Fe??1e3,pointerEvents:"none"},children:f("div",{ref:He,style:{position:"absolute",bottom:0,left:0,right:0,pointerEvents:"auto"},children:H("div",{ref:ct,role:"dialog","aria-label":Zt,style:{height:de.current,display:"flex",flexDirection:"column",backgroundColor:O?d.color.bg:P.card,borderTopLeftRadius:O?d.radius.sheet:6,borderTopRightRadius:O?d.radius.sheet:6,border:O?`1px solid ${d.color.accent}55`:`1px solid ${P.border}`,boxShadow:O?`0 -4px 10px ${d.color.accent}38`:`0 -4px 12px ${P.primary}33`,...O?{overflow:"hidden"}:null,boxSizing:"border-box",position:"relative",...s.container},children:[ea,f("div",{onPointerDown:ar,onPointerMove:rr,onPointerUp:sr,onPointerCancel:or,style:{borderTopLeftRadius:O?d.radius.sheet:6,borderTopRightRadius:O?d.radius.sheet:6,backgroundColor:O?"transparent":P.card,minHeight:56,border:O?"none":`1px solid ${P.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:"ns-resize",position:"relative"},children:f(ja,{header:r,isResizing:ke,mode:A,onMinimize:N?he:void 0,variant:ot})}),aa,Za&&Qa&&!er&&f(wf,{onAcknowledge:tr}),ta]})})},"bottomSheet")},Tf=Dt(e=>ia()().status!=="admitted"?e.visible?f(_a,{}):null:f(kf,{...e}));import{Children as If,useEffect as Of,useRef as Ef}from"react";import{Fragment as Rf,jsx as z,jsxs as at}from"react/jsx-runtime";function Af({children:e,style:t}){return z(M,{style:[g.sectionLabel,t],children:e})}function Lf({children:e,centered:t,tone:a="tertiary",style:r}){let s=$e.flatten(r),o=!!s&&(s.marginHorizontal!=null||s.margin!=null);return z(M,{style:[g.footnote,o?null:g.footnoteInset,a==="secondary"?g.footnoteSecondary:null,a==="warning"?g.footnoteWarning:null,a==="danger"?g.footnoteDanger:null,t?g.footnoteCentered:null,r],children:e})}function $f({children:e,padded:t,glass:a,style:r}){return z(k,{style:[g.card,a?g.cardGlass:null,t?g.cardPadded:null,r],children:e})}function Ha({inset:e=d.rowPadH}){return z(k,{style:[g.separator,{marginLeft:e}]})}function Pf({children:e,inset:t=d.rowPadH}){let a=If.toArray(e);return z(Rf,{children:a.map((r,s)=>at(k,{children:[s>0?z(Ha,{inset:t}):null,r]},r.key??s))})}var Ua=56,Va=32,rt=22,Ga=5,Bf=Ua-rt-Ga*2;function Mf({value:e,onValueChange:t,disabled:a,testID:r,accessibilityLabel:s}){let o=Ef(new St.Value(e?1:0)).current;return Of(()=>{St.timing(o,{toValue:e?1:0,duration:200,useNativeDriver:Ah.OS!=="web"}).start()},[e,o]),z(qe,{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:[g.switchTrack,e?g.switchTrackOn:null,a?g.switchDisabled:null],children:z(St.View,{style:[g.switchThumb,e?g.switchThumbOn:null,{transform:[{translateX:o.interpolate({inputRange:[0,1],outputRange:[0,Bf]})}]}]})})}function Df({label:e,selected:t,onPress:a,disabled:r,icon:s,testID:o}){return at(qe,{activeOpacity:.7,disabled:r||!a,onPress:a,testID:o,style:[g.chip,t?g.chipSelected:null,r?g.chipDisabled:null],children:[s,z(M,{style:[g.chipText,t?g.chipTextSelected:null],children:e})]})}function Nf({label:e,onPress:t,variant:a="secondary",size:r="lg",icon:s,disabled:o,fullWidth:n=true,testID:i,accessibilityLabel:l}){let h=a==="primary"?d.color.onAccent:a==="tertiary"?d.color.text:a==="destructive"?d.color.danger:d.color.accent;return at(qe,{activeOpacity:.7,disabled:o,onPress:t,testID:i,accessibilityRole:"button",accessibilityLabel:l??e,accessibilityState:{disabled:!!o},style:[g.button,r==="md"?g.buttonMd:g.buttonLg,a==="primary"?g.buttonPrimary:a==="ghost"?g.buttonGhost:g.buttonPlate,n?g.buttonFullWidth:null,o?g.buttonDisabled:null],children:[s,z(M,{style:[r==="md"?g.buttonTextMd:g.buttonTextLg,{color:h}],children:e})]})}function _f({tabs:e,activeKey:t,onChange:a,size:r="md",glass:s,testIDPrefix:o}){let n=r==="sm";return z(k,{style:[g.segmentTrack,s?g.segmentTrackGlass:null],children:e.map(i=>{let l=i.key===t;return at(qe,{activeOpacity:.7,testID:o?`${o}-${i.key}`:void 0,accessibilityRole:"tab",accessibilityState:{selected:l},accessibilityLabel:i.label,onPress:()=>a(i.key),style:[g.segment,n?g.segmentSm:null,l?s?g.segmentActiveGlass:g.segmentActive:null],children:[z(M,{style:[g.segmentText,n?g.segmentTextSm:null,l?g.segmentTextActive:null],children:i.label}),l?z(k,{style:[g.segmentUnderline,n?g.segmentUnderlineSm:null]}):null]},i.key)})})}function zf({label:e,tone:t="neutral"}){let a=t==="accent"?g.badgeAccent:t==="warning"?g.badgeWarning:t==="danger"?g.badgeDanger:t==="info"?g.badgeInfo:g.badgeNeutral,r=t==="accent"?g.badgeTextAccent:t==="warning"?g.badgeTextWarning:t==="danger"?g.badgeTextDanger:t==="info"?g.badgeTextInfo:g.badgeTextNeutral;return z(k,{style:[g.badge,a],children:z(M,{style:[g.badgeText,r],children:e})})}var g=$e.create({sectionLabel:{color:d.color.textSecondary,fontSize:d.font.label,fontWeight:"600",letterSpacing:ua,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:$e.hairlineWidth,backgroundColor:d.color.separator},switchTrack:{width:Ua,height:Va,borderRadius:Va/2,borderWidth:1,borderColor:d.color.fillTertiary,backgroundColor:d.color.surfaceElevated,paddingHorizontal:Ga,justifyContent:"center",overflow:"hidden"},switchTrackOn:{backgroundColor:d.color.accentFill,borderColor:d.color.accentBorderStrong},switchDisabled:{opacity:.4},switchThumb:{width:rt,height:rt,borderRadius:rt/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 we,jsxs as Ff}from"react/jsx-runtime";function jt(e){switch(bt(String(e))){case"dev":return{label:"DEV",backgroundColor:x.warning};case"qa":return{label:"QA",backgroundColor:x.optional};case"staging":return{label:"STAGING",backgroundColor:x.success};case"prod":return{label:"PROD",backgroundColor:x.error};case"local":default:return{label:"LOCAL",backgroundColor:x.info}}}function Wf({color:e}){return we("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:we("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function jf({environment:e,interactive:t=false,onPress:a}){let r=jt(e);return Ff("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:[we("div",{style:{width:8,height:8,borderRadius:4,backgroundColor:r.backgroundColor,marginRight:6,boxShadow:`0 0 4px ${r.backgroundColor}99`}}),we("span",{style:{fontSize:11,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:r.label}),t&&we("span",{style:{marginLeft:2,display:"flex"},children:we(Wf,{color:"#7A8599"})})]})}import{jsx as ye,jsxs as Ht}from"react/jsx-runtime";var Hf=140,Uf=28,Ya=44,Vf=8,Gf=24;function Ut(e){switch(bt(e)){case"local":return{label:"LOCAL",backgroundColor:x.info};case"dev":return{label:"DEV",backgroundColor:x.warning};case"qa":return{label:"QA",backgroundColor:x.optional};case"staging":return{label:"STAGING",backgroundColor:x.success};case"prod":return{label:"PROD",backgroundColor:x.error};default:return{label:"LOCAL",backgroundColor:x.info}}}function Yf({environment:e,isSelected:t,onPress:a}){let r=Ut(e);return Ht(Lh,{onPress:a,style:({pressed:s})=>[re.optionContainer,t&&re.optionContainerSelected,s&&re.optionContainerPressed],children:[Ht(k,{style:re.optionLeft,children:[ye(k,{style:[re.optionDot,{backgroundColor:r.backgroundColor},{shadowColor:r.backgroundColor,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4,elevation:2}]}),ye(M,{style:re.optionLabel,children:r.label})]}),t&&ye(ha,{size:14,color:x.success,strokeWidth:3})]})}function Kf({hasItems:e,currentEnvironment:t,availableEnvironments:a,onSelect:r,width:s=Hf,collapsedContent:o}){let n=Vf+a.length*Ya+Gf+4,i=Ht(k,{style:re.collapsedEnvBadge,children:[ye(k,{style:[re.collapsedDot,{backgroundColor:Ut(t).backgroundColor}]}),ye(M,{style:re.collapsedLabel,children:Ut(t).label})]});return ye(ca,{hasItems:e,width:s,expandedHeight:n,peekHeight:Uf,showCount:false,collapsedContent:o||i,collapsedLabel:`Switch environment from ${t}`,children:a.map(l=>ye(Yf,{environment:l,isSelected:l===t,onPress:()=>r(l)},l))})}var re=$e.create({collapsedEnvBadge:{flexDirection:"row",alignItems:"center",gap:6},collapsedDot:{width:8,height:8,borderRadius:4},collapsedLabel:{fontSize:11,fontWeight:"600",color:x.primaryLight,letterSpacing:.5},optionContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,height:Ya,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:x.primaryLight,letterSpacing:.5}});import{useState as Ka}from"react";import{jsx as q,jsxs as st}from"react/jsx-runtime";var qa=36;function qf({color:e,flipped:t}){return q("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:q("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Jf(){return q("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:q("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"#4AFF9F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function Xf({currentEnvironment:e,availableEnvironments:t,onSelect:a}){let[r,s]=Ka(false),[o,n]=Ka(null),i=jt(e),l=t.length*qa;return st("div",{style:{position:"relative",zIndex:1e3,flexShrink:0},children:[q("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(h=>{let b=jt(h),S=String(h).toLowerCase()===String(e).toLowerCase();return st("button",{onClick:()=>{s(false),a(h)},onMouseEnter:()=>n(String(h)),onMouseLeave:()=>n(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:qa,padding:"0 10px",background:S?"rgba(128,128,128,0.1)":o===String(h)?"rgba(128,128,128,0.2)":"none",border:"none",cursor:"pointer"},children:[st("span",{style:{display:"flex",alignItems:"center"},children:[q("span",{style:{width:6,height:6,borderRadius:3,backgroundColor:b.backgroundColor,marginRight:8}}),q("span",{style:{fontSize:10,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:b.label})]}),S&&q(Jf,{})]},String(h))})}),st("button",{onClick:()=>s(h=>!h),"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:[q("span",{style:{width:8,height:8,borderRadius:4,backgroundColor:i.backgroundColor,boxShadow:`0 0 4px ${i.backgroundColor}99`}}),q("span",{style:{fontSize:11,fontWeight:600,color:x.primaryLight,letterSpacing:.5},children:i.label}),q(qf,{color:"#7A8599",flipped:r})]})]})}export{Wi as ARROW_BOTTOM_OFFSET,ji as ARROW_HEIGHT,Ul as ASSETS_ICON_COLOR,_a as AccountSetup,lo as ActionCopyButton,Sc as Activity,Pc as ActivityIcon,jo as AddFilterButton,zo as AddFilterInput,wc as AlertCircle,Vd as AlertCircleIcon,Tc as AlertOctagon,Oc as AlertTriangle,Nc as AlertTriangleIcon,Ed as AskBuoyIcon,Wl as AssetsIcon,Dn as BACKGROUND_PRESETS,ai as BACKGROUND_STORAGE_KEY,ru as BENCHMARK_ICON_COLOR,wh as BUOY_SYNTHETIC_MARK,Xo as BackButton,mi as BackgroundSwitcher,xs as Badge,ic as BarChart3,dc as BarChart3Icon,Bh as BaseEventStore,Qd as BenchmarkIcon,eh as BenchmarkLegacyIcon,Lc as Bookmark,Mc as Box,Wc as BoxIcon,af as BubbleSettingsDetail,tf as BubbleSettingsSection,zc as Bug,Id as BugIcon,Ni as CELLS,Pi as CLIP_OFFSCREEN_CELLS,wu as CLOCK_TOOL_ICON_COLOR,Cl as CONSOLE_ICON_COLOR,La as COPY_PAYLOAD_MAX_BYTES,vl as CameraIcon,qh as ChangeLog,so as ChangeRow,ha as Check,Hc as CheckCircle,Gl as CheckCircle2,Jd as CheckCircle2Icon,Kc as CheckCircleIcon,Vc as CheckIcon,mc as CheckSquare,Fl as CheckSquareIcon,Jc as ChevronDown,Qc as ChevronDownIcon,ed as ChevronLeft,ad as ChevronLeftIcon,sd as ChevronRight,nd as ChevronRightIcon,ld as ChevronUp,ml as ChevronUpIcon,Mo as ChipStrip,Cn as ClipboardHintBanner,Sl as Clock,ud as ClockIcon,yu as ClockToolIcon,fc as Cloud,yc as CloudIcon,ti as CollapsibleSection,Ko as CompactFilterChips,Fi as CompactRow,Es as CompareBar,yh as ConsoleIcon,gd as Copy,Zs as CopyButton,bd as CopyIcon,an as CountBadge,da as CyberpunkSectionButton,Fn as DEFAULT_BACKGROUND,An as DEVTOOLS_CARD_CONSTANTS,oi as DataInspector,ga as Database,Ld as DatabaseIcon,Ti as DaylightTunable,gn as DeepFieldTunable,Hn as DetailView,Fs as DetailViewToggle,Bn as DevToolsCard,Ts as DiffModeTabs,Cd as DockBottom,Od as Download,bu as DownloadIcon,Yn as DraggableHeader,gi as DynamicFilterView,ph as ENV_ICON_COLOR,Di as EVENT_LIST_PRESET,$d as Edit3,vd as Edit3Icon,hn as EmptyState,Io as EntityFilterView,hh as EnvIcon,Hd as EnvLaptopIcon,jf as EnvironmentIndicator,Kf as EnvironmentSelector,Xf as EnvironmentSelectorInline,Ls as EventHistoryViewer,wn as EventListItem,Bs as EventPickerModal,ki as EventStepperFooter,Uc as EventsIcon,ca as ExpandablePopover,$i as ExpandedInfoRow,Wo as ExportPreview,Wd as Eye,Td as EyeIcon,fa as EyeOff,Ad as EyeOffIcon,Zn as FeatureGate,El as FileCode,Md as FileCodeIcon,Gd as FileJson,Lu as FileJsonIcon,Xd as FileText,zd as FileTextIcon,au as Film,Cc as FilmIcon,iu as Filter,Do as FilterBadge,Ud as FilterIcon,Vo as FilterList,Po as FilterSection,hu as FlaskConical,qd as FlaskConicalIcon,mu as FloatWindow,Ji as FloatingTool,Yi as FloatingToolDivider,al as FloatingToolHost,Ki as FloatingToolUserStatus,wo as FooterButton,mo as FooterCaption,vo as FooterMessage,fo as FooterRow,Ws as FreeAccountPrompt,pl as GAME_UI_ALERT_STATES,dl as GameUICollapsibleSection,gl as GameUICompactStats,fl as GameUIIssuesList,hl as GameUIStatusHeader,Cu as GitBranch,eu as GitBranchIcon,Ou as Globe,Dd as GlobeIcon,Xn as GripVerticalIcon,Xl as Hand,Wu as HandIcon,$l as HardDrive,ou as HardDriveIcon,$u as Hash,du as HashIcon,_n as HeaderSearchButton,Rc as HelpCircle,fd as HighlightIcon,Uu as HighlightUpdatesIcon,Pd as HighlighterIcon,In as HintsProvider,vr as HistoryEntryRow,xr as HistoryList,fr as HistoryProvider,Nu as Home,ql as HomeIcon,Nl as IMAGES_ICON_COLOR,ac as IMAGE_OVERLAY_ICON_COLOR,Jl as IMPERSONATE_ICON_COLOR,_d as IconBackground,pd as IconCircle,dd as IconContainer,kd as IconLine,Sd as IconRect,ju as Image,Ic as ImageIcon,Ql as ImageOverlayIcon,Bl as ImagesIcon,Yl as ImpersonateIcon,Yu as Info,pu as InfoIcon,Ns as InfoRow,ao as InlineCopyButton,pc as JOTAI_ICON_COLOR,uc as JotaiIcon,Tf as JsModal,Qu as Key,vu as KeyIcon,Hu as LIFECYCLE_TOOL_ICON_COLOR,Zu as LOCATION_TOOL_ICON_COLOR,$s as LOGIN_COMMAND,zi as LOG_LIST_PRESET,Kd as LaptopIcon,rh as Layers,Tu as LayersIcon,Nn as LicenseEntryModal,_u as LifecycleToolIcon,cn as LinearFade,ih as Link,Du as LinkIcon,Ao as ListItem,$n as LiveSkyTunable,Ku as LocationToolIcon,dh as Lock,xu as LockIcon,$t as LogLevel,$t as LogLevelEnum,Pt as LogType,Pt as LogTypeEnum,zs as MAX_PERIOD,zl as Maximize2,Au as Maximize2Icon,un as MethodBadge,gh as Minus,Mu as MinusIcon,xo as ModalHeader,ko as ModalHintBanner,xi as MoonlightTunable,bh as Music,Ac as MusicIcon,ch as NETWORK_ICON_COLOR,ua as NIGHT_LABEL_TRACKING,gu as NOTIFICATIONS_ICON_COLOR,Sh as Navigation,Ru as NavigationIcon,Bd as NetworkGlobeIcon,nh as NetworkIcon,zf as NightBadge,Nf as NightButton,$f as NightCard,Df as NightChip,Lf as NightFootnote,Pf as NightRows,Af as NightSectionLabel,_f as NightSegmented,Ha as NightSeparator,Mf as NightSwitch,bn as NoDataEmptyState,vn as NoResultsEmptyState,kn as NoSearchResultsEmptyState,lu as NotificationsIcon,si as OTTO_ANCHORS,li as OTTO_ANCHOR_SIZE,jn as OTTO_GRID,Si as OTTO_GROUPS,hi as OTTO_NOTES,Gn as OTTO_PALETTE,Oi as OTTO_REEL,qo as OTTO_SCENES,Cs as OTTO_SCENE_BY_ID,Zo as OTTO_SCENE_CROP_H,Bo as OTTO_SCENE_H,No as OTTO_SCENE_OTTO,Eo as OTTO_SCENE_PALETTE,Lo as OTTO_SCENE_W,ei as OTTO_STATES,pi as OTTO_STATE_NAMES,wi as OTTO_USES,To as Otto,So as OttoMotionView,co as OttoPixels,rn as OttoSceneFrame,ln as OttoSceneStill,go as OttoStill,Pu as PERMISSIONS_ICON_COLOR,Ra as PREVIEW_ITEM_RENDER_BYTE_LIMIT,wl as Palette,Fu as PaletteIcon,Ol as Pause,Vu as PauseIcon,Eu as PermissionsIcon,Bc as Phone,_c as PhoneIcon,io as Pill,Mi as PillBadge,kl as Pin,Ll as Play,Ju as PlayIcon,Ml as Plus,th as PlusIcon,_l as Power,nu as PowerIcon,Ai as PowerToggleButton,Rd as PrimitiveGlobeIcon,Wn as ProBadge,ii as ProFeatureBanner,Vn as ProUpgradeModal,Nd as QueryIcon,Mr as REMOTE_RELOAD_DELAY_MS,sn as RadialGlow,en as RasterLayer,Zd as ReactQueryIcon,yd as ReduxIcon,jl as RefreshCw,oh as RefreshCwIcon,to as RelativeTime,qu as RenderCountIcon,zu as RenderPulseIcon,tc as Route,od as RouteDotIcon,ku as RouteIcon,Su as RouteMapIcon,td as RoutePathIcon,Xc as RoutePinIcon,cd as RouteTwoPinsIcon,Yc as RoutesIcon,Hi as SPACING_GAP,jd as ScenariosIcon,Vl as Search,ci as SearchBar,lh as SearchIcon,Oo as SectionHeader,su as SentryBugIcon,Fc as SentryIcon,Pa as SentryLogger,Kl as Server,tu as ServerIcon,yt as Settings,uh as SettingsIcon,Zl as SettingsSolid,rc as Shield,fh as ShieldIcon,jc as Smartphone,Gc as SmartphoneIcon,gc as Square,xc as SquareDashed,Hl as SquareDashedIcon,Dl as SquareIcon,Bu as StackPulseIcon,Cr as StandaloneHistoryList,On as StatsCard,Qo as StatusBadge,Mn as StatusIndicator,wd as StorageIcon,cu as StorageStackIcon,on as StorageTypeBadge,oa as Subscribable,Us as TIER_LIMITS,Al as TIME_MACHINE_ICON_COLOR,Ds as TRANSPARENT,pn as TabSelector,ec as TestTube2,mh as TestTube2Icon,Gs as TickProvider,zn as TimeDisplay,Il as TimeMachineIcon,qc as Timer,Zc as TimerIcon,Ro as ToggleRow,mt as ToolBackground,Sn as ToolButton,En as ToolEmptyState,uo as ToolFooter,Ea as ToolScreenHeaderContext,ho as ToolbarClearButton,oo as ToolbarCopyButton,rd as Touchpad,id as TouchpadIcon,cc as Trash,nc as Trash2,xl as Trash2Icon,Gu as TrashIcon,sc as TriangleAlert,Xu as TriangleAlertIcon,nn as TypeBadge,hc as Unlock,Iu as UnlockIcon,ui as UpgradeModal,qn as UpgradePrompt,bc as Upload,uu as UploadIcon,vc as User,ah as UserIcon,yl as Users,hd as UsersIcon,tn as ValueTypeBadge,_i as ViewToggleCards,md as Volume,xd as VolumeIcon,As as WATER_CELLS,Ps as WATER_FRAMES,ks as WATER_ROW0,Os as WATER_ROWS,Qe as WIRE_DETAIL_LIMIT_BYTES,Ca as WIRE_INLINE_LIMIT_BYTES,kc as Wifi,Yd as WifiBifIcon,fu as WifiCircuitIcon,Fd as WifiIcon,vi as WindowControls,mn as Wormhole,$c as X,Ec as XCircle,Rl as XCircleIcon,Tl as XIcon,lc as ZUSTAND_ICON_COLOR,Dc as Zap,Pl as ZapIcon,oc as ZustandIcon,ul as absoluteFill,$a as add,Xe as approxJsonSize,Se as assertAccountAccess,ni as backgroundStore,Fr as browserRouter,U as buoyColors,Gi as calculateTargetPosition,Vi as calculateTooltipPosition,Ig as canOpenBuoyTools,ka as capDetail,_g as classifyPreviewItem,Qg as clearEntries,yn as copyToClipboard,kh as countBuoyListener,dn as createAutoDetectedClipboard,Bg as createRestoreScope,fg as createSyncAdapter,bg as createToolFactory,Kh as createToolStore,Xs as cycleIndexes,sf as definePersistedSetting,pg as defineToolPreset,gg as detailByIdAction,pe as devToolsStorageKeys,xh as dialColors,el as dismissFloatingTool,Cg as dispatchToolAction,ll as displayValue,Mg as emptyRestoreResult,Wg as entityColor,xt as expandKeyedArrays,Dg as failedRestore,xa as findKeyPath,Vs as flatColors,ds as flattenObject,Aa as formatBytes,Ug as formatDuration,Kg as formatHttpStatus,Vg as formatNumber,us as formatPath,Hs as formatRelativeTime,is as formatValue,jg as formatValuePreview,x as gameUIColors,oe as getAccountAccess,fn as getAutoDetectedClipboard,qi as getBubbleAnchorPosition,rf as getBubbleVisibilitySettings,gs as getCachedOptionalModule,as as getConstructorName,Nr as getDevServerOrigin,Rr as getDeviceInfo,Xg as getEntries,Xi as getFloatingTools,qg as getMethodColor,Qn as getPreset,Th as getRealAppState,Jr as getRegisteredToolModule,ps as getRenderCaptureProvider,Ch as getSafeAreaInsets,Gr as getSafeCurrentPathname,Yr as getSafeCurrentRoute,Vr as getSafeRouter,Ui as getScreenCenterY,xn as getSkyScrub,ys as getStateSnapshotProvider,ms as getStateSnapshotProviders,Rh as getStorageBackendType,xe as getToolAdapters,Eg as getToolAttention,Lr as getToolModuleVersion,ls as getTypeColor,ia as getUseAccountAccess,fi as getUseIsPro,yi as getUseLicense,Ci as getUseTier,ss as getValueSize,Zr as getValueType,js as gridKey,Oa as guardToolAdapter,G as hasAccountAccess,vt as identityField,ne as ignoredPatternsStore,Oh as isDevToolsStorageKey,rs as isEmpty,Kr as isExpoRouterAvailable,na as isJsonSerializable,lg as isOnDeviceMarker,kt as isOverWireBudget,os as isPlainObjectUtil,es as isPrimitive,Ii as isProNow,Ot as isToolRegistryReady,zh as isUrlIgnored,Eh as isUsingPersistentStorage,ts as isValidJson,ve as listShapes,vg as listSnapshotToolIds,Sg as listToolActions,yg as listToolIds,hs as loadOptionalModule,Ar as logDeviceInfo,Ke as macOSColors,dg as memoByIdentity,Ia as mergeChangeSources,sh as monoFont,no as motionUnits,ug as newestFitting,d as night,yo as noWindowDragProps,bt as normalizeEnvironment,Ae as notifySubscriberCountChange,ig as onDeviceMarker,Tg as openBuoyTool,Zi as openFloatingTool,Ks as ottoCycle,Ri as ottoReel,Bi as ottoRuns,Go as ottoSceneBounds,Ho as ottoSceneRuns,ro as ottoSheets,Jn as ottoWaterRows,cl as parseDisplayValue,Ct as parsePath,Jg as parseUrl,ns as parseValue,rg as patchFromPath,j as persistentStorage,Kn as presetAt,Un as presetIndex,Ta as readParams,ag as readPath,xg as readToolSnapshot,pt as realNow,eo as rectsOf,vh as refreshGameUIColors,ng as refusalText,_r as registerBrowserRouter,tl as registerPersistentFloatingTool,bs as registerStateSnapshotProvider,mg as registerToolAdapters,qr as registerToolModules,kg as registerToolOpener,Br as reloadApp,Li as renderOttoFrame,Fo as renderOttoScene,kr as resetPersistedStateCache,Ys as resolveEffectiveTier,Ln as resolveListEmptyState,Pr as resolveReloadStrategy,Is as retryAccountAccess,ol as safeStringify,Uo as scatter,Dr as scheduleReloadApp,ef as sentryLogger,bi as setExpandableWindowControls,fs as setRenderCaptureProvider,Tn as setSkyScrub,Og as setToolAttention,Hg as shallowDiffSummary,Me as shapeKind,Pe as shapeOf,eg as shapeSummary,Qh as shapesWereTruncated,Rs as signOutOfBuoy,hg as sizeOrStub,_o as sizeWarningLevel,Ng as skippedRestore,Le as subscribeAccountAccess,zr as subscribeBrowserNavigation,Qi as subscribeFloatingTools,Ih as subscribeRealAppState,$r as subscribeToStateSnapshotProviders,Qr as subscribeToSubscriberCountChanges,Rg as subscribeToolAttention,Xr as subscriberCountNotifier,sg as suggestedPatch,il as superJsonDeserialize,nl as superJsonSerialize,cg as toWire,Ei as toolTheme,Yg as truncateMiddle,Gg as truncatePayload,cs as truncateText,wa as truncatedNote,wt as typedEditViolations,Fg as unionKeys,Zh as unshapedLists,pa as urlMatchesIgnoredPattern,yr as useAllHistoryEntries,Tr as useChangeLog,$o as useChipTap,Er as useDeviceInfo,Or as useEventStoreEvents,ri as useFeatureGate,rl as useFilterManager,bl as useGameUIAlertState,Pn as useHintsContext,la as useHintsDisabled,mr as useHistoryAdapter,br as useHistoryAdapters,pr as useHistoryContext,Sr as useHistoryEntryCounts,Gh as useIgnoredPatterns,Js as useLimit,Jo as useLoop,Co as useOttoAnchorMotion,bo as useOttoReel,wr as usePersistedState,ws as usePulse,Qs as useRelativeTime,sl as useSafeAreaInsets,Ur as useSafeGlobalSearchParams,jr as useSafePathname,Wr as useSafeRouter,Hr as useSafeSegments,Rn as useSkyScrub,Ir as useSubscribedValue,qs as useTick,di as useToolBackground,Pg as useToolScreenHeader,wg as waitForToolRegistry,po as windowDragProps,Yo as withBgAlpha,zg as wontApply};
package/lib/web/ui.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{$ as a,$a as s,$b as o,Aa as t,Ab as e,Ba as b,Bb as r,Ca as i,Cb as l,Da as T,Db as n,Ea as c,Fa as S,Ga as O,Ha as E,I as p,Ia as d,J as g,Ja as u,Jb as C,K as _,Ka as m,Kb as R,L as A,La as B,Lb as F,M as y,Ma as I,Mb as P,N as L,Na as w,Nb as N,O as D,Oa as h,Ob as f,P as G,Pa as U,Pb as W,Q as k,Qa as M,Qb as H,R as v,Ra as V,Rb as x,S as K,Sa as j,Sb as Y,T as q,Ta as X,Tb as Z,U as z,Ua as J,Ub as Q,V as $,Va as aa,Vb as sa,W as oa,Wa as ta,Wb as ea,X as ba,Xa as ra,Xb as ia,Y as la,Ya as Ta,Yb as na,Z as ca,Za as Sa,Zb as Oa,_ as Ea,_a as pa,_b as da,a as ga,aa as ua,ab as Ca,ac as _a,b as ma,ba as Ra,bb as Aa,bc as Ba,c as Fa,ca as ya,cb as Ia,cc as Pa,da as La,db as wa,dc as Na,ea as Da,eb as ha,ec as fa,fa as Ga,fb as Ua,fc as Wa,g as ka,ga as Ma,gb as Ha,gc as va,ha as Va,hb as xa,hc as Ka,ia as ja,ib as Ya,ic as qa,ja as Xa,jb as Za,jc as za,ka as Ja,kb as Qa,kc as $a,la as as,lb as ss,lc as os,ma as ts,mb as es,mc as bs,na as rs,nb as is,nc as ls,oa as Ts,ob as ns,oc as cs,pa as Ss,pb as Os,pc as Es,qa as ps,qb as ds,qc as gs,ra as us,rb as Cs,rc as _s,sa as ms,sb as Rs,sc as As,ta as Bs,tb as Fs,tc as ys,ua as Is,ub as Ps,uc as Ls,va as ws,vb as Ns,vc as Ds,wa as hs,wb as fs,wc as Gs,xa as Us,xb as Ws,xc as ks,ya as Ms,yb as Hs,za as vs,zb as Vs}from"./chunks/chunk-L3AFTHWX.mjs";import{a as xs}from"./chunks/chunk-TJUBBXXK.mjs";import{a as Ks,b as js,c as Ys,d as qs,e as Xs,f as Zs,g as zs,h as Js,i as Qs,j as $s,k as ao,l as so,m as oo,n as to,o as eo,p as bo}from"./chunks/chunk-XYUAUO57.mjs";import"./chunks/chunk-GF5C5DVX.mjs";import"./chunks/chunk-K7CGIEFU.mjs";import{f as ro,h as io,i as lo,j as To,k as no,l as co}from"./chunks/chunk-7PRKERDN.mjs";import{od as So}from"./chunks/chunk-UKYVRCMZ.mjs";import{a as Oo,d as Eo,f as po,g as go}from"./chunks/chunk-CE5U3CSQ.mjs";import"./chunks/chunk-PTK5FO6C.mjs";import"./chunks/chunk-5KWAGM5V.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{Ks as ARROW_BOTTOM_OFFSET,js as ARROW_HEIGHT,A as ActionCopyButton,oa as AddFilterButton,$ as AddFilterInput,Ka as BACKGROUND_PRESETS,bs as BACKGROUND_STORAGE_KEY,ga as BackButton,gs as BackgroundSwitcher,ca as Badge,Us as CELLS,Ds as CLIP_OFFSCREEN_CELLS,C as ChangeRow,Z as ChipStrip,ka as ClipboardHintBanner,es as CollapsibleSection,la as CompactFilterChips,xs as CompactRow,Vs as CompareBar,p as CopyButton,a as CountBadge,Ls as CyberpunkSectionButton,qa as DEFAULT_BACKGROUND,Ma as DEVTOOLS_CARD_CONSTANTS,is as DataInspector,As as DaylightTunable,Ba as DeepFieldTunable,Za as DetailView,n as DetailViewToggle,Va as DevToolsCard,Hs as DiffModeTabs,Qa as DraggableHeader,Os as DynamicFilterView,Gs as EVENT_LIST_PRESET,Aa as EmptyState,H as EntityFilterView,e as EventHistoryViewer,Da as EventListItem,r as EventPickerModal,Rs as EventStepperFooter,Fs as ExpandablePopover,Ns as ExpandedInfoRow,sa as ExportPreview,z as FilterBadge,ba as FilterList,q as FilterSection,$s as FloatingTool,zs as FloatingToolDivider,bo as FloatingToolHost,Js as FloatingToolUserStatus,W as FooterButton,N as FooterCaption,f as FooterMessage,P as FooterRow,no as GAME_UI_ALERT_STATES,ro as GameUICollapsibleSection,lo as GameUICompactStats,To as GameUIIssuesList,io as GameUIStatusHeader,ss as GripVerticalIcon,ja as HeaderSearchButton,l as InfoRow,g as InlineCopyButton,ks as LOG_LIST_PRESET,_a as LinearFade,K as ListItem,va as LiveSkyTunable,T as MAX_PERIOD,Ra as MethodBadge,G as ModalHeader,k as ModalHintBanner,_s as MoonlightTunable,Ia as NoDataEmptyState,wa as NoResultsEmptyState,ha as NoSearchResultsEmptyState,rs as OTTO_ANCHORS,Ts as OTTO_ANCHOR_SIZE,Xa as OTTO_GRID,us as OTTO_GROUPS,Ss as OTTO_NOTES,Ja as OTTO_PALETTE,Bs as OTTO_REEL,Ta as OTTO_SCENES,Sa as OTTO_SCENE_BY_ID,pa as OTTO_SCENE_CROP_H,X as OTTO_SCENE_H,J as OTTO_SCENE_OTTO,V as OTTO_SCENE_PALETTE,j as OTTO_SCENE_W,ts as OTTO_STATES,ps as OTTO_STATE_NAMES,ms as OTTO_USES,M as Otto,h as OttoMotionView,B as OttoPixels,s as OttoSceneFrame,Ca as OttoSceneStill,I as OttoStill,R as Pill,fs as PillBadge,Ps as PowerToggleButton,o as RadialGlow,da as RasterLayer,Ys as SPACING_GAP,ns as SearchBar,v as SectionHeader,Ga as StatsCard,Ea as StatusBadge,xa as StatusIndicator,Fa as StorageTypeBadge,i as TRANSPARENT,ya as TabSelector,Ya as TimeDisplay,x as ToggleRow,Es as ToolBackground,La as ToolButton,Ua as ToolEmptyState,F as ToolFooter,y as ToolbarClearButton,_ as ToolbarCopyButton,ua as TypeBadge,ma as ValueTypeBadge,Ws as ViewToggleCards,t as WATER_CELLS,b as WATER_FRAMES,Ms as WATER_ROW0,vs as WATER_ROWS,Cs as WindowControls,Pa as Wormhole,ls as backgroundStore,po as buoyColors,Zs as calculateTargetPosition,Xs as calculateTooltipPosition,E as cycleIndexes,go as dialColors,to as dismissFloatingTool,S as flatColors,Eo as gameUIColors,Qs as getBubbleAnchorPosition,ao as getFloatingTools,os as getPreset,qs as getScreenCenterY,Na as getSkyScrub,c as gridKey,Oo as macOSColors,So as monoFont,m as motionUnits,D as noWindowDragProps,oo as openFloatingTool,O as ottoCycle,Is as ottoReel,hs as ottoRuns,ra as ottoSceneBounds,ta as ottoSceneRuns,u as ottoSheets,as as ottoWaterRows,$a as presetAt,za as presetIndex,d as rectsOf,eo as registerPersistentFloatingTool,ws as renderOttoFrame,aa as renderOttoScene,Ha as resolveListEmptyState,ea as scatter,ds as setExpandableWindowControls,fa as setSkyScrub,Q as sizeWarningLevel,so as subscribeFloatingTools,ys as toolTheme,Y as useChipTap,co as useGameUIAlertState,na as useLoop,U as useOttoAnchorMotion,w as useOttoReel,Oa as usePulse,Wa as useSkyScrub,cs as useToolBackground,L as windowDragProps,ia as withBgAlpha};
1
+ "use client";import{$ as a,$a as s,$b as o,Aa as t,Ab as e,Ba as b,Bb as r,Ca as i,Cb as l,Da as T,Db as n,Ea as c,Eb as S,Fa as O,Fb as E,Ga as p,Ha as d,Ia as g,Ja as u,K as C,Ka as _,L as m,La as R,Lb as A,M as B,Ma as F,Mb as y,N as P,Na as I,Nb as L,O as w,Oa as N,Ob as D,P as h,Pa as f,Pb as G,Q as U,Qa as W,Qb as k,R as M,Ra as H,Rb as v,S as V,Sa as x,Sb as K,T as j,Ta as Y,Tb as q,U as z,Ua as X,Ub as Z,V as Q,Va as $,Vb as J,W as aa,Wa as sa,Wb as oa,X as ta,Xa as ea,Xb as ba,Y as ra,Ya as ia,Yb as la,Z as Ta,Za as na,Zb as ca,_ as Sa,_a as Oa,_b as Ea,a as pa,aa as da,ab as ga,ac as ua,b as Ca,ba as _a,bb as ma,bc as Ra,c as Aa,ca as Ba,cb as Fa,cc as ya,da as Pa,db as Ia,dc as La,ea as wa,eb as Na,ec as Da,fa as ha,fb as fa,fc as Ga,g as Ua,ga as Wa,gb as ka,gc as Ma,ha as Ha,hb as va,hc as Va,ia as xa,ib as Ka,ic as ja,ja as Ya,jb as qa,jc as za,ka as Xa,kb as Za,kc as Qa,la as $a,lb as Ja,lc as as,ma as ss,mb as os,mc as ts,na as es,nb as bs,nc as rs,oa as is,ob as ls,oc as Ts,pa as ns,pb as cs,pc as Ss,qa as Os,qb as Es,qc as ps,ra as ds,rb as gs,rc as us,sa as Cs,sb as _s,sc as ms,ta as Rs,tb as As,tc as Bs,ua as Fs,ub as ys,uc as Ps,va as Is,vb as Ls,vc as ws,wa as Ns,wb as Ds,wc as hs,xa as fs,xb as Gs,xc as Us,ya as Ws,yb as ks,yc as Ms,za as Hs,zb as vs,zc as Vs}from"./chunks/chunk-ASEPWYDC.mjs";import{a as xs}from"./chunks/chunk-OPTY6SMO.mjs";import{a as Ks,b as js,c as Ys,d as qs,e as zs,f as Xs,g as Zs,h as Qs,i as $s,j as Js,k as ao,l as so,m as oo,n as to,o as eo,p as bo}from"./chunks/chunk-XYUAUO57.mjs";import"./chunks/chunk-GF5C5DVX.mjs";import"./chunks/chunk-T3WLUEET.mjs";import{f as ro,h as io,i as lo,j as To,k as no,l as co}from"./chunks/chunk-T2SPCEHP.mjs";import{ud as So}from"./chunks/chunk-7YVWZ4ZK.mjs";import{a as Oo,d as Eo,f as po,g as go}from"./chunks/chunk-CE5U3CSQ.mjs";import"./chunks/chunk-46TKOKMV.mjs";import"./chunks/chunk-DEJNSL6V.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{Ks as ARROW_BOTTOM_OFFSET,js as ARROW_HEIGHT,P as ActionCopyButton,ra as AddFilterButton,ta as AddFilterInput,za as BACKGROUND_PRESETS,Ts as BACKGROUND_STORAGE_KEY,pa as BackButton,ms as BackgroundSwitcher,a as Badge,Hs as CELLS,Us as CLIP_OFFSCREEN_CELLS,A as ChangeRow,J as ChipStrip,Ua as ClipboardHintBanner,ls as CollapsibleSection,Sa as CompactFilterChips,xs as CompactRow,r as CompareBar,C as CopyButton,_a as CountBadge,hs as CyberpunkSectionButton,Qa as DEFAULT_BACKGROUND,xa as DEVTOOLS_CARD_CONSTANTS,cs as DataInspector,Ps as DaylightTunable,La as DeepFieldTunable,Ja as DetailView,E as DetailViewToggle,Ya as DevToolsCard,e as DiffModeTabs,os as DraggableHeader,gs as DynamicFilterView,Ms as EVENT_LIST_PRESET,Ia as EmptyState,K as EntityFilterView,l as EventHistoryViewer,Wa as EventListItem,n as EventPickerModal,ys as EventStepperFooter,Ls as ExpandablePopover,Gs as ExpandedInfoRow,ba as ExportPreview,aa as FilterBadge,Ta as FilterList,Q as FilterSection,Js as FloatingTool,Zs as FloatingToolDivider,bo as FloatingToolHost,Qs as FloatingToolUserStatus,v as FooterButton,G as FooterCaption,k as FooterMessage,D as FooterRow,no as GAME_UI_ALERT_STATES,ro as GameUICollapsibleSection,lo as GameUICompactStats,To as GameUIIssuesList,io as GameUIStatusHeader,bs as GripVerticalIcon,Xa as HeaderSearchButton,S as InfoRow,m as InlineCopyButton,Vs as LOG_LIST_PRESET,ya as LinearFade,z as ListItem,ja as LiveSkyTunable,O as MAX_PERIOD,Pa as MethodBadge,M as ModalHeader,V as ModalHintBanner,Bs as MoonlightTunable,Na as NoDataEmptyState,fa as NoResultsEmptyState,ka as NoSearchResultsEmptyState,ns as OTTO_ANCHORS,Os as OTTO_ANCHOR_SIZE,$a as OTTO_GRID,Rs as OTTO_GROUPS,ds as OTTO_NOTES,ss as OTTO_PALETTE,Is as OTTO_REEL,Oa as OTTO_SCENES,s as OTTO_SCENE_BY_ID,ga as OTTO_SCENE_CROP_H,$ as OTTO_SCENE_H,sa as OTTO_SCENE_OTTO,Y as OTTO_SCENE_PALETTE,X as OTTO_SCENE_W,is as OTTO_STATES,Cs as OTTO_STATE_NAMES,Fs as OTTO_USES,x as Otto,W as OttoMotionView,I as OttoPixels,ma as OttoSceneFrame,Fa as OttoSceneStill,N as OttoStill,y as Pill,ks as PillBadge,Ds as PowerToggleButton,Ra as RadialGlow,ua as RasterLayer,Ys as SPACING_GAP,Es as SearchBar,j as SectionHeader,Ha as StatsCard,da as StatusBadge,qa as StatusIndicator,Aa as StorageTypeBadge,c as TRANSPARENT,wa as TabSelector,Za as TimeDisplay,q as ToggleRow,us as ToolBackground,ha as ToolButton,va as ToolEmptyState,L as ToolFooter,w as ToolbarClearButton,B as ToolbarCopyButton,Ba as TypeBadge,Ca as ValueTypeBadge,vs as ViewToggleCards,i as WATER_CELLS,T as WATER_FRAMES,t as WATER_ROW0,b as WATER_ROWS,As as WindowControls,Da as Wormhole,Ss as backgroundStore,po as buoyColors,Xs as calculateTargetPosition,zs as calculateTooltipPosition,u as cycleIndexes,go as dialColors,to as dismissFloatingTool,d as flatColors,Eo as gameUIColors,$s as getBubbleAnchorPosition,ao as getFloatingTools,rs as getPreset,qs as getScreenCenterY,Ga as getSkyScrub,p as gridKey,Oo as macOSColors,So as monoFont,F as motionUnits,U as noWindowDragProps,oo as openFloatingTool,g as ottoCycle,Ns as ottoReel,Ws as ottoRuns,na as ottoSceneBounds,ia as ottoSceneRuns,R as ottoSheets,es as ottoWaterRows,ts as presetAt,as as presetIndex,_ as rectsOf,eo as registerPersistentFloatingTool,fs as renderOttoFrame,ea as renderOttoScene,Ka as resolveListEmptyState,la as scatter,_s as setExpandableWindowControls,Ma as setSkyScrub,oa as sizeWarningLevel,so as subscribeFloatingTools,ws as toolTheme,Z as useChipTap,co as useGameUIAlertState,Ea as useLoop,H as useOttoAnchorMotion,f as useOttoReel,o as usePulse,Va as useSkyScrub,ps as useToolBackground,h as windowDragProps,ca as withBgAlpha};
package/lib/web/utils.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{$ as a,A as s,B as e,C as r,D as t,E as o,F as i,G as l,H as u,I as g,J as n,K as p,L as S,M as d,N as b,O as m,P as f,Q as c,R,S as v,T as M,U as P,V as h,W as C,X as O,Y as T,Z as D,_ as y,a as E,aa as w,b as V,c as B,d as A,e as N,f as z,g as J,h as x,i as L,j as _,k as j,m as k,n as F,o as H,p as I,q as U,r as G,s as Y,t as q,u as K,v as Q,w as W,x as X,y as Z,z as $}from"./chunks/chunk-26OV3QDY.mjs";import{a as aa,b as sa}from"./chunks/chunk-LZ7FZZ7R.mjs";import{a as ea,b as ra,c as ta,d as oa,e as ia,g as la}from"./chunks/chunk-7PRKERDN.mjs";import"./chunks/chunk-UKYVRCMZ.mjs";import"./chunks/chunk-CE5U3CSQ.mjs";import{a as ua}from"./chunks/chunk-PTK5FO6C.mjs";import{c as ga,d as na,e as pa}from"./chunks/chunk-5KWAGM5V.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{t as REMOTE_RELOAD_DELAY_MS,E as Subscribable,la as absoluteFill,p as browserRouter,oa as displayValue,G as flattenObject,Y as formatPath,H as formatValue,u as getBrowserHref,g as getBrowserRouteURL,aa as getBrowserStorage,K as getCachedOptionalModule,L as getConstructorName,C as getDOMControlProps,h as getDOMFiber,P as getDOMNodeHandle,O as getDOMPublicInstance,i as getDevServerOrigin,y as getRegisteredToolModule,W as getRenderCaptureProvider,ua as getSafeAreaInsets,c as getSafeCurrentPathname,R as getSafeCurrentRoute,f as getSafeRouter,$ as getStateSnapshotProvider,Z as getStateSnapshotProviders,pa as getStorageBackendType,a as getToolModuleVersion,I as getTypeColor,j as getValueSize,N as getValueType,M as isDOMElement,_ as isEmpty,v as isExpoRouterAvailable,J as isJsonSerializable,z as isPrimitive,na as isUsingPersistentStorage,x as isValidJson,q as loadOptionalModule,w as loadToolModule,A as notifySubscriberCountChange,ia as parseDisplayValue,F as parseValue,ga as persistentStorage,k as realNow,l as registerBrowserRouter,X as registerStateSnapshotProvider,D as registerToolModules,r as reloadApp,T as resolveDOMEventEmitter,e as resolveReloadStrategy,ea as safeStringify,o as scheduleReloadApp,Q as setRenderCaptureProvider,n as subscribeBrowserNavigation,sa as subscribeToBrowserStorage,s as subscribeToStateSnapshotProviders,B as subscribeToSubscriberCountChanges,V as subscriberCountNotifier,ta as superJsonDeserialize,ra as superJsonSerialize,U as truncateText,m as useSafeGlobalSearchParams,d as useSafePathname,S as useSafeRouter,b as useSafeSegments};
1
+ "use client";import{$ as a,A as s,B as e,C as r,D as t,E as o,F as i,G as l,H as u,I as n,J as g,K as p,L as S,M as d,N as b,O as m,P as c,Q as f,R,S as M,T as v,U as C,V as P,W as T,X as h,Y as O,Z as D,_ as y,a as E,aa as A,b as B,c as w,d as V,e as N,f as _,g as z,h as J,i as L,j as x,k as H,m as I,n as U,o as Y,p as j,q as k,r as F,s as G,t as K,u as q,v as Q,w as W,x as X,y as Z,z as $}from"./chunks/chunk-T6KN54NS.mjs";import{a as aa,b as sa}from"./chunks/chunk-LZ7FZZ7R.mjs";import{a as ea,b as ra,c as ta,d as oa,e as ia,g as la}from"./chunks/chunk-T2SPCEHP.mjs";import"./chunks/chunk-7YVWZ4ZK.mjs";import"./chunks/chunk-CE5U3CSQ.mjs";import{a as ua,b as na,c as ga,d as pa,e as Sa}from"./chunks/chunk-46TKOKMV.mjs";import{c as da,d as ba,e as ma}from"./chunks/chunk-DEJNSL6V.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";export{na as BUOY_SYNTHETIC_MARK,t as REMOTE_RELOAD_DELAY_MS,E as Subscribable,la as absoluteFill,p as browserRouter,ga as countBuoyListener,oa as displayValue,F as flattenObject,G as formatPath,Y as formatValue,u as getBrowserHref,n as getBrowserRouteURL,aa as getBrowserStorage,q as getCachedOptionalModule,L as getConstructorName,T as getDOMControlProps,P as getDOMFiber,C as getDOMNodeHandle,h as getDOMPublicInstance,i as getDevServerOrigin,pa as getRealAppState,y as getRegisteredToolModule,W as getRenderCaptureProvider,ua as getSafeAreaInsets,f as getSafeCurrentPathname,R as getSafeCurrentRoute,c as getSafeRouter,$ as getStateSnapshotProvider,Z as getStateSnapshotProviders,ma as getStorageBackendType,a as getToolModuleVersion,j as getTypeColor,H as getValueSize,N as getValueType,v as isDOMElement,x as isEmpty,M as isExpoRouterAvailable,z as isJsonSerializable,_ as isPrimitive,ba as isUsingPersistentStorage,J as isValidJson,K as loadOptionalModule,A as loadToolModule,V as notifySubscriberCountChange,ia as parseDisplayValue,U as parseValue,da as persistentStorage,I as realNow,l as registerBrowserRouter,X as registerStateSnapshotProvider,D as registerToolModules,r as reloadApp,O as resolveDOMEventEmitter,e as resolveReloadStrategy,ea as safeStringify,o as scheduleReloadApp,Q as setRenderCaptureProvider,g as subscribeBrowserNavigation,Sa as subscribeRealAppState,sa as subscribeToBrowserStorage,s as subscribeToStateSnapshotProviders,w as subscribeToSubscriberCountChanges,B as subscriberCountNotifier,ta as superJsonDeserialize,ra as superJsonSerialize,k as truncateText,m as useSafeGlobalSearchParams,d as useSafePathname,S as useSafeRouter,b as useSafeSegments};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/shared-ui",
3
- "version": "7.0.43",
3
+ "version": "7.0.45",
4
4
  "description": "Shared UI components, hooks, and utilities",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -225,11 +225,11 @@
225
225
  ],
226
226
  "sideEffects": false,
227
227
  "dependencies": {
228
- "@buoy-gg/floating-tools-core": "^7.0.43",
229
- "@buoy-gg/floating-tools-react": "^7.0.43"
228
+ "@buoy-gg/floating-tools-core": "^7.0.45",
229
+ "@buoy-gg/floating-tools-react": "^7.0.45"
230
230
  },
231
231
  "peerDependencies": {
232
- "@buoy-gg/license": "7.0.43",
232
+ "@buoy-gg/license": "7.0.45",
233
233
  "react": "*"
234
234
  },
235
235
  "peerDependenciesMeta": {
@@ -262,7 +262,7 @@
262
262
  "expo-clipboard": "~7.1.5",
263
263
  "react-native-safe-area-context": "^5.6.2",
264
264
  "typescript": "~5.8.3",
265
- "@buoy-gg/license": "^7.0.43"
265
+ "@buoy-gg/license": "^7.0.45"
266
266
  },
267
267
  "react-native-builder-bob": {
268
268
  "source": "src",