@buoy-gg/shared-ui 7.0.46 → 7.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/stores/ignoredPatternsStore.shared.js +1 -1
- package/lib/commonjs/sync/settingsSync.js +1 -1
- package/lib/module/stores/ignoredPatternsStore.shared.js +1 -1
- package/lib/module/sync/settingsSync.js +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts +2 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts +2 -0
- package/lib/web/index.mjs +2 -2
- package/package.json +5 -5
- package/lib/web/chunks/chunk-26OV3QDY.mjs +0 -1
- package/lib/web/chunks/chunk-2MHKRRQW.mjs +0 -1
- package/lib/web/chunks/chunk-2Q3SDPH2.mjs +0 -13
- package/lib/web/chunks/chunk-34YQ42KI.mjs +0 -1
- package/lib/web/chunks/chunk-3NNNCQYP.mjs +0 -13
- package/lib/web/chunks/chunk-46CXXOQB.mjs +0 -1
- package/lib/web/chunks/chunk-475BSDCB.mjs +0 -1
- package/lib/web/chunks/chunk-552W4COI.mjs +0 -1
- package/lib/web/chunks/chunk-55EIUPOI.mjs +0 -14
- package/lib/web/chunks/chunk-56TTTMX4.mjs +0 -1
- package/lib/web/chunks/chunk-5KWAGM5V.mjs +0 -1
- package/lib/web/chunks/chunk-5LOQZINQ.mjs +0 -13
- package/lib/web/chunks/chunk-5NOIO6ZM.mjs +0 -15
- package/lib/web/chunks/chunk-6CCRCSA2.mjs +0 -1
- package/lib/web/chunks/chunk-6Q52HRBL.mjs +0 -1
- package/lib/web/chunks/chunk-6TEDFSNM.mjs +0 -1
- package/lib/web/chunks/chunk-7BLJTQ4U.mjs +0 -1
- package/lib/web/chunks/chunk-7BMRSMHN.mjs +0 -1
- package/lib/web/chunks/chunk-7PRKERDN.mjs +0 -1
- package/lib/web/chunks/chunk-A2SOFE47.mjs +0 -1
- package/lib/web/chunks/chunk-A7KJCK4R.mjs +0 -13
- package/lib/web/chunks/chunk-AEXGGXS7.mjs +0 -1
- package/lib/web/chunks/chunk-AGD7ZT6O.mjs +0 -14
- package/lib/web/chunks/chunk-AIEOQWNG.mjs +0 -1
- package/lib/web/chunks/chunk-ASEPWYDC.mjs +0 -14
- package/lib/web/chunks/chunk-ASTM35HG.mjs +0 -15
- package/lib/web/chunks/chunk-AZBMFPMX.mjs +0 -1
- package/lib/web/chunks/chunk-B2V2UDCU.mjs +0 -15
- package/lib/web/chunks/chunk-BFGKGTAC.mjs +0 -1
- package/lib/web/chunks/chunk-BHW6AFO6.mjs +0 -1
- package/lib/web/chunks/chunk-BWRW3NJ2.mjs +0 -15
- package/lib/web/chunks/chunk-CBM2IZAK.mjs +0 -1
- package/lib/web/chunks/chunk-CDLCFF44.mjs +0 -1
- package/lib/web/chunks/chunk-CI5CO7FQ.mjs +0 -1
- package/lib/web/chunks/chunk-CIB4U2YK.mjs +0 -1
- package/lib/web/chunks/chunk-CLLTZQGD.mjs +0 -1
- package/lib/web/chunks/chunk-D4RXBAOO.mjs +0 -15
- package/lib/web/chunks/chunk-D5HQLRFW.mjs +0 -1
- package/lib/web/chunks/chunk-DEJNSL6V.mjs +0 -1
- package/lib/web/chunks/chunk-DZDTNXXK.mjs +0 -1
- package/lib/web/chunks/chunk-EMEAL3L5.mjs +0 -1
- package/lib/web/chunks/chunk-ER3T3IDI.mjs +0 -1
- package/lib/web/chunks/chunk-F6SJ5CLB.mjs +0 -1
- package/lib/web/chunks/chunk-FDOZ6YSS.mjs +0 -1
- package/lib/web/chunks/chunk-FMEWNGQO.mjs +0 -1
- package/lib/web/chunks/chunk-G4DH7GMT.mjs +0 -1
- package/lib/web/chunks/chunk-GBUZCZE4.mjs +0 -1
- package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +0 -1
- package/lib/web/chunks/chunk-GNGMIA7V.mjs +0 -1
- package/lib/web/chunks/chunk-GTYIS7H7.mjs +0 -14
- package/lib/web/chunks/chunk-GZE3FIOX.mjs +0 -1
- package/lib/web/chunks/chunk-HGA3GJA6.mjs +0 -1
- package/lib/web/chunks/chunk-HJ36IONA.mjs +0 -14
- package/lib/web/chunks/chunk-HXPTZMAZ.mjs +0 -1
- package/lib/web/chunks/chunk-I27M4JCS.mjs +0 -1
- package/lib/web/chunks/chunk-IVCT27JB.mjs +0 -1
- package/lib/web/chunks/chunk-JG4QSK5B.mjs +0 -1
- package/lib/web/chunks/chunk-JR7BJW6B.mjs +0 -1
- package/lib/web/chunks/chunk-K46ZJUXJ.mjs +0 -1
- package/lib/web/chunks/chunk-K4EGHHD6.mjs +0 -1
- package/lib/web/chunks/chunk-K4LXMO4D.mjs +0 -1
- package/lib/web/chunks/chunk-K7CGIEFU.mjs +0 -1
- package/lib/web/chunks/chunk-KBTYK5YE.mjs +0 -1
- package/lib/web/chunks/chunk-KHP6CSSM.mjs +0 -1
- package/lib/web/chunks/chunk-KRDRIW7T.mjs +0 -13
- package/lib/web/chunks/chunk-L2DTKDER.mjs +0 -1
- package/lib/web/chunks/chunk-L3AFTHWX.mjs +0 -14
- package/lib/web/chunks/chunk-LFDFDGHY.mjs +0 -1
- package/lib/web/chunks/chunk-MAIUUK4E.mjs +0 -1
- package/lib/web/chunks/chunk-MKJKS3IG.mjs +0 -1
- package/lib/web/chunks/chunk-MRQKVLXG.mjs +0 -1
- package/lib/web/chunks/chunk-NK3OISOL.mjs +0 -13
- package/lib/web/chunks/chunk-NLJDDIXW.mjs +0 -1
- package/lib/web/chunks/chunk-OENR3XFI.mjs +0 -1
- package/lib/web/chunks/chunk-OZB3VKZE.mjs +0 -1
- package/lib/web/chunks/chunk-P64PFJT3.mjs +0 -5
- package/lib/web/chunks/chunk-PACPGYH7.mjs +0 -1
- package/lib/web/chunks/chunk-PART6HOE.mjs +0 -13
- package/lib/web/chunks/chunk-PMRXUQRH.mjs +0 -1
- package/lib/web/chunks/chunk-PTK5FO6C.mjs +0 -1
- package/lib/web/chunks/chunk-PZ45TQ55.mjs +0 -13
- package/lib/web/chunks/chunk-Q5LN7GET.mjs +0 -5
- package/lib/web/chunks/chunk-QCD6T6L4.mjs +0 -1
- package/lib/web/chunks/chunk-QD5EUANU.mjs +0 -1
- package/lib/web/chunks/chunk-QJTECJCO.mjs +0 -1
- package/lib/web/chunks/chunk-QPIZURPZ.mjs +0 -1
- package/lib/web/chunks/chunk-QPY45R5F.mjs +0 -1
- package/lib/web/chunks/chunk-QQTJ463K.mjs +0 -1
- package/lib/web/chunks/chunk-R2SGZIG5.mjs +0 -1
- package/lib/web/chunks/chunk-RJO7RXQQ.mjs +0 -1
- package/lib/web/chunks/chunk-S3GYQYVJ.mjs +0 -15
- package/lib/web/chunks/chunk-SCCXVTDM.mjs +0 -1
- package/lib/web/chunks/chunk-SHJHD646.mjs +0 -1
- package/lib/web/chunks/chunk-TCRVZ55E.mjs +0 -1
- package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +0 -14
- package/lib/web/chunks/chunk-TJUBBXXK.mjs +0 -1
- package/lib/web/chunks/chunk-TPSY4RC3.mjs +0 -13
- package/lib/web/chunks/chunk-U5KNX5O6.mjs +0 -5
- package/lib/web/chunks/chunk-UCKELQSM.mjs +0 -1
- package/lib/web/chunks/chunk-UGGCYHRH.mjs +0 -1
- package/lib/web/chunks/chunk-UKYVRCMZ.mjs +0 -1
- package/lib/web/chunks/chunk-UNYQJZET.mjs +0 -15
- package/lib/web/chunks/chunk-VE72SWLV.mjs +0 -14
- package/lib/web/chunks/chunk-VKONO6MI.mjs +0 -1
- package/lib/web/chunks/chunk-VOS562HW.mjs +0 -14
- package/lib/web/chunks/chunk-W4BGMPJO.mjs +0 -1
- package/lib/web/chunks/chunk-WHNEEKLR.mjs +0 -1
- package/lib/web/chunks/chunk-WIFX6XNL.mjs +0 -15
- package/lib/web/chunks/chunk-WLGUP3KY.mjs +0 -15
- package/lib/web/chunks/chunk-WY7D4WBZ.mjs +0 -1
- package/lib/web/chunks/chunk-XD2BEYMM.mjs +0 -15
- package/lib/web/chunks/chunk-XMDNJJS5.mjs +0 -14
- package/lib/web/chunks/chunk-XRNB2MHO.mjs +0 -1
- package/lib/web/chunks/chunk-XUHVHSSG.mjs +0 -14
- package/lib/web/chunks/chunk-XXTIAXQY.mjs +0 -1
- package/lib/web/chunks/chunk-YG6DIKQD.mjs +0 -1
- package/lib/web/chunks/chunk-YIZFMU66.mjs +0 -1
- package/lib/web/chunks/chunk-YOGAPOGC.mjs +0 -1
- package/lib/web/chunks/chunk-Z7373DS5.mjs +0 -1
- package/lib/web/chunks/chunk-Z76GRN66.mjs +0 -5
- package/lib/web/chunks/chunk-ZFPRFFDY.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-6OAJAVRK.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-6S5TDRE4.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-SOPYL5VC.mjs +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";import{c as W}from"./chunk-GBUZCZE4.mjs";import{A as Y,G as $,H as r,W as te,p as C,q as m,s as A,u as I,x as R,z as L}from"./chunk-UCKELQSM.mjs";import{useCallback as ae,useEffect as ne,useRef as j,useState as q}from"react";var T=new Map;function se(e){try{return JSON.parse(e)}catch{return}}function ie(e,t,a={}){let[i,l]=q(()=>T.has(e)?T.get(e):t),[y,g]=q(()=>T.has(e)),c=j(e);c.current=e;let d=j(a);d.current=a,ne(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??se;return S.getItem(e).then(h=>{if(!o){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),l(u))}g(true)}}).catch(()=>{o||g(true)}),()=>{o=true}},[e]);let v=ae(o=>{l(S=>{let p=typeof o=="function"?o(S):o;T.set(c.current,p);let h=d.current.storage??W,u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(p)).catch(()=>{})}catch{}return p})},[]);return[i,v,y]}function re(){T.clear()}import{useCallback as P,useEffect as z,useMemo as le,useState as O}from"react";function oe(e,t={}){let[a,i]=O(()=>e.getAll()),[l,y]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(i),[e]);let d=t.filterItems,v=le(()=>d?d(a,l):a,[a,l,d]),o=P(()=>{e.clear()},[e]),S=P(()=>{let h=!g;e.setEnabled(h),c(h)},[e,g]),p=P(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:l,setFilter:y,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function ce(e,t){let[a,i]=O(e);return z(()=>t(i),[t]),a}import{useCallback as de,useEffect as ue,useState as K}from"react";function fe(e,t={}){let{enabled:a=true,maxEvents:i=500,select:l}=t,[y,g]=K([]),[c,d]=K(a);ue(()=>{if(!a){d(false);return}let o=null,S=null,p=e.subscribeToEvents(h=>{S=h,o==null&&(o=requestAnimationFrame(()=>{if(o=null,!S)return;let u=S;S=null,l&&(u=l(u)),u.length>i&&(u=u.slice(0,i)),g(u)}))});return d(true),()=>{p(),o!=null&&cancelAnimationFrame(o)}},[e,a,i,l]);let v=de(()=>{e.clearEvents()},[e]);return{events:y,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as ge}from"react";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),i={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[l,y,g,c,d]=await Promise.all([m.isBoldTextEnabled?.()??Promise.resolve(false),m.isGrayscaleEnabled?.()??Promise.resolve(false),m.isInvertColorsEnabled?.()??Promise.resolve(false),m.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),m.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);i.isBoldTextEnabled=l,i.isGrayscaleEnabled=y,i.isInvertColorsEnabled=g,i.isDarkerSystemColorsEnabled=c,i.prefersCrossFadeTransitions=d}if(r.OS==="android"){let l=await m.isHighTextContrastEnabled?.()??false;i.isHighTextContrastEnabled=l}return i}function k(){let e=r.constants,t={os:r.OS,version:r.Version,reactNativeVersion:e.reactNativeVersion,isTesting:r.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};return r.OS==="ios"?{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:r.isPad,isTV:r.isTV,isVision:r.isVision??false,isMacCatalyst:r.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}:r.OS==="android"?{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}:t}function M(){let e=R.get("window"),t=R.get("screen"),a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:$.get(),fontScale:$.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(r.OS==="ios")try{let i=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=i?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let i=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=i?.isEdgeToEdge??false,a.densityDpi=Math.round(e.scale*160)}catch{}return a}async function X(){return new Promise(e=>{let t=false;r.OS==="ios"?C.StatusBarManager?.getHeight?.(a=>{t||(t=true,e(a?.height??null))})??e(null):r.OS==="android"?(t=true,e(te.currentHeight??null)):(t=true,e(null)),setTimeout(()=>{t||(t=true,e(null))},100)})}function N(){let e={isRTL:L.isRTL,doLeftAndRightSwapInRTL:L.doLeftAndRightSwapInRTL};return r.OS==="android"&&(e.localeIdentifier=L.localeIdentifier),e}function V(){if(r.OS==="ios")try{return{userDefaults:C.SettingsManager?.getConstants?.()?.settings??{}}}catch{return{}}return{}}function B(){let e={};if(r.OS==="android"){let t=r.constants;e.serial=t.Serial,e.fingerprint=t.Fingerprint;try{let a=C.PlatformConstants;a?.getAndroidID&&(e.androidId=a.getAndroidID())}catch{}}return e}function he(e){let t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""].join("|"),a=0;for(let i=0;i<t.length;i++){let l=t.charCodeAt(i);a=(a<<5)-a+l,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function me(){let[e,t]=b(true),[a,i]=b(k()),[l,y]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=A.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}}),[o,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:I.currentState,isActive:I.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=ge(async()=>{t(true);let[f,n]=await Promise.all([U(),X()]);i(k()),y(M()),c(f);let s=A.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(E=>({...E,height:n})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:n,screen:s})=>{y(E=>({...E,window:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},screen:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},isLandscape:n.width>n.height,isPortrait:n.height>n.width}))});return()=>f.remove()},[]),w(()=>{let f=A.addChangeListener(({colorScheme:n})=>{let s=n??null;v({colorScheme:s,prefersDarkMode:s==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",s=>{F({isVisible:true,height:s.endCoordinates.height,animationDuration:s.duration??0})}),n=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",s=>{F({isVisible:false,height:0,animationDuration:s.duration??0})});return()=>{f.remove(),n.remove()}},[]),w(()=>{let f=I.addEventListener("change",n=>{_({currentState:n,isActive:n==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",n=>{c(s=>({...s,isScreenReaderEnabled:n}))}),m.addEventListener("reduceMotionChanged",n=>{c(s=>({...s,isReduceMotionEnabled:n}))}),m.addEventListener("reduceTransparencyChanged",n=>{c(s=>({...s,isReduceTransparencyEnabled:n}))})];if(r.OS==="ios"){let n=(s,E)=>m.addEventListener(s,E);f.push(n("boldTextChanged",s=>{c(E=>({...E,isBoldTextEnabled:s}))}),n("grayscaleChanged",s=>{c(E=>({...E,isGrayscaleEnabled:s}))}),n("invertColorsChanged",s=>{c(E=>({...E,isInvertColorsEnabled:s}))}))}return()=>{f.forEach(n=>n.remove())}},[]),{platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>he({platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function Se(){let[e,t]=await Promise.all([U(),X()]),a=A.getColorScheme()??null;return{platform:k(),display:M(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:I.currentState,isActive:I.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function pe(e){console.log(`
|
|
2
|
-
========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
|
|
3
|
-
`),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
|
|
4
|
-
--- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
|
|
5
|
-
--- ACCESSIBILITY ---`),console.log(JSON.stringify(e.accessibility,null,2)),console.log(`
|
|
6
|
-
--- APPEARANCE ---`),console.log(JSON.stringify(e.appearance,null,2)),console.log(`
|
|
7
|
-
--- LOCALE ---`),console.log(JSON.stringify(e.locale,null,2)),console.log(`
|
|
8
|
-
--- STATUS BAR ---`),console.log(JSON.stringify(e.statusBar,null,2)),console.log(`
|
|
9
|
-
--- KEYBOARD ---`),console.log(JSON.stringify(e.keyboard,null,2)),console.log(`
|
|
10
|
-
--- APP STATE ---`),console.log(JSON.stringify(e.appState,null,2)),console.log(`
|
|
11
|
-
--- IDENTIFIERS ---`),console.log(JSON.stringify(e.identifiers,null,2)),console.log(`
|
|
12
|
-
--- SETTINGS ---`);let t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`),t.length>0&&t.length<=20&&console.log(JSON.stringify(e.settings,null,2)),console.log(`
|
|
13
|
-
--- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
|
|
14
|
-
========================================
|
|
15
|
-
`)}export{ie as a,re as b,oe as c,ce as d,fe as e,me as f,Se as g,pe as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{ActivityGlyph as fe,AlertCircleGlyph as pe,AlertOctagon as $,AlertTriangleGlyph as H,CheckCircleGlyph as ye,ChevronDownGlyph as J,ChevronUpGlyph as Y,HelpCircle as ge,monoFont as y}from"./chunk-56TTTMX4.mjs";import{gameUIColors as o}from"./chunk-QPY45R5F.mjs";var he="[Circular]";var K="[...]";function me(e,t,n={}){const{depthLimit:s=Number.MAX_SAFE_INTEGER,edgesLimit:u=Number.MAX_SAFE_INTEGER}=n;const c=[];function a(i,l,p,r,b,C){C+=1;if(typeof i==="object"&&i!==null){for(let A=0;A<r.length;A++){if(r[A]===i){f(he,i,l,b);return}}if(C>s){f(K,i,l,b);return}if(p+1>u){f(K,i,l,b);return}r.push(i);if(Array.isArray(i)){const A=i;for(let I=0;I<i.length;I++){a(i[I],I,I,r,A,C)}}else if(i instanceof Map||i instanceof Set||i instanceof RegExp||i instanceof Date||i instanceof Error){r.pop();return}else{const A=i;const I=Object.keys(A);for(let D=0;D<I.length;D++){const U=I[D];a(A[U],U,D,r,A,C)}}r.pop()}}function f(i,l,p,r){if(!r)return;const b=Object.getOwnPropertyDescriptor(r,p);if(b?.get!==void 0){if(b.configurable){Object.defineProperty(r,p,{value:i});c.push([r,p,l,b])}else{return}}else{r[p]=i;c.push([r,p,l])}}const x=(i,l)=>{if(typeof l==="bigint")return`${l.toString()}n`;if(typeof l==="symbol")return l.toString();if(typeof l==="undefined")return"undefined";if(typeof l==="function"){return`[Function: ${l.name||"anonymous"}]`}if(typeof l==="number"){if(l===Infinity)return"Infinity";if(l===-Infinity)return"-Infinity";if(Number.isNaN(l))return"NaN"}if(l instanceof Error){const p={name:l.name,message:l.message,stack:l.stack};Object.getOwnPropertyNames(l).forEach(r=>{if(!["name","message","stack"].includes(r)){try{const b=l[r];if(b!==void 0){p[r]=b}}catch{}}});return p}if(l instanceof Date)return l.toISOString();if(l instanceof RegExp)return l.toString();if(l instanceof Map){try{const p=Array.from(l.entries()).map(([r,b])=>[String(r),b]);return{__type:"Map",entries:p}}catch{return{__type:"Map",entries:"[Map iteration failed]"}}}if(l instanceof Set){try{return{__type:"Set",values:Array.from(l)}}catch{return{__type:"Set",values:"[Set iteration failed]"}}}return l};try{a(e,"",0,[],null,0);const i=JSON.stringify(e,x,t);return i}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(c.length!==0){const i=c.pop();if(i&&i.length===4){const[l,p,,r]=i;if(l&&typeof l==="object"&&r){Object.defineProperty(l,p,r)}}else if(i){const[l,p,r]=i;if(l&&typeof l==="object"&&(typeof p==="string"||typeof p==="number")){l[p]=r}}}}}var be=e=>typeof e==="undefined";var Se=e=>{if(typeof e!=="object"||e===null)return false;if(e===Object.prototype)return false;if(Object.getPrototypeOf(e)===null)return true;return Object.getPrototypeOf(e)===Object.prototype};var B=e=>Array.isArray(e);var we=e=>typeof e==="boolean"||e===null||typeof e==="undefined"||typeof e==="number"||typeof e==="string"||typeof e==="symbol";var ve=e=>e instanceof Date&&!isNaN(e.valueOf());var X=e=>e instanceof Error;var xe=e=>e instanceof RegExp;var q=e=>e instanceof Set;var Q=e=>e instanceof Map;var Ce=e=>typeof e==="bigint";var Z=e=>typeof e==="number"&&isNaN(e);var Ae=e=>e===Infinity||e===-Infinity;var Ie=e=>e===0&&1/e===-Infinity;var Te=e=>e instanceof URL;var Re=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView);var Oe={Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray};var ee=[{isApplicable:be,annotation:"undefined",transform:()=>null,untransform:()=>void 0},{isApplicable:Ce,annotation:"bigint",transform:e=>e.toString(),untransform:e=>{if(typeof BigInt!=="undefined"){return BigInt(e)}console.error("BigInt is not supported in this environment");return e}},{isApplicable:ve,annotation:"Date",transform:e=>e.toISOString(),untransform:e=>new Date(e)},{isApplicable:X,annotation:"Error",transform:e=>({name:e.name,message:e.message,stack:e.stack,cause:"cause"in e?e.cause:void 0}),untransform:e=>{const t=new Error(e.message);t.name=e.name;t.stack=e.stack;if(e.cause!==void 0){t.cause=e.cause}return t}},{isApplicable:xe,annotation:"regexp",transform:e=>""+e,untransform:e=>{const t=e.slice(1,e.lastIndexOf("/"));const n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}},{isApplicable:q,annotation:"set",transform:e=>[...e.values()],untransform:e=>new Set(e)},{isApplicable:Q,annotation:"map",transform:e=>[...e.entries()],untransform:e=>new Map(e)},{isApplicable:e=>Z(e)||Ae(e),annotation:"number",transform:e=>{if(Z(e))return"NaN";return e>0?"Infinity":"-Infinity"},untransform:e=>Number(e)},{isApplicable:Ie,annotation:"number",transform:()=>"-0",untransform:()=>-0},{isApplicable:Te,annotation:"URL",transform:e=>e.toString(),untransform:e=>new URL(e)},{isApplicable:Re,annotation:e=>["typed-array",e.constructor.name],transform:e=>[...e],untransform:(e,t)=>{const n=Array.isArray(t)?t[1]:"Uint8Array";const s=Oe[n];if(!s){throw new Error(`Unknown typed array: ${n}`)}return new s(e)}}];function W(e){for(const t of ee){if(t.isApplicable(e)){const n=typeof t.annotation==="function"?t.annotation(e):t.annotation;return{value:t.transform(e),type:n}}}return void 0}function te(e,t){for(const n of ee){const s=typeof n.annotation==="function"?Array.isArray(t)?t[0]:t:n.annotation;const u=Array.isArray(t)&&Array.isArray(s)?t[0]===s[0]:s===t;if(u){return n.untransform(e,t)}}throw new Error(`Unknown transformation: ${t}`)}var re=e=>Se(e)||B(e)||Q(e)||q(e)||X(e);function _(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function ne(e,t=[],n=[]){const s=we(e);if(!s&&!re(e)){const i=W(e);return i?{transformedValue:i.value,annotations:{[t.map(String).map(_).join(".")]:i.type}}:{transformedValue:e}}if(!s&&n.indexOf(e)!==-1){return{transformedValue:null}}if(!re(e)){const i=W(e);return i?{transformedValue:i.value,annotations:t.length>0?{[t.map(String).map(_).join(".")]:i.type}:{"":i.type}}:{transformedValue:e}}const u=W(e);const c=u?.value??e;const a=B(c)?[]:{};const f={};if(u){const i=t.length>0?t.map(String).map(_).join("."):"";f[i]=u.type}const x=B(c)?c.map((i,l)=>[l,i]):Object.entries(c);for(const[i,l]of x){const p=String(i);if(p==="__proto__"||p==="constructor"||p==="prototype"){throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`)}const r=ne(l,[...t,i],[...n,e]);a[i]=r.transformedValue;if(r.annotations){Object.assign(f,r.annotations)}}return{transformedValue:a,annotations:Object.keys(f).length>0?f:void 0}}function ke(e){if(e==="")return[];const t=[];let n="";for(let s=0;s<e.length;s++){const u=e.charAt(s);if(u==="\\"){const c=e.charAt(s+1);if(c==="\\"){n+="\\";s++;continue}else if(c==="."){n+=".";s++;continue}}if(u==="."){t.push(n);n="";continue}n+=u}if(n){t.push(n)}return t}function Fe(e,t,n){if(t.length===0){return}let s=e;for(let u=0;u<t.length-1;u++){s=s[t[u]]}s[t[t.length-1]]=n}function Ne(e,t){let n=e;for(const s of t){n=n[s]}return n}function oe(e){const t=ne(e);const n={json:t.transformedValue};if(t.annotations){n.meta={values:t.annotations}}return n}function ie(e){const{json:t,meta:n}=e;if(!n?.values){return t}let s=B(t)?[...t]:{...t};const u=Object.entries(n.values).map(([c,a])=>({pathString:c,type:a,path:ke(c)})).sort((c,a)=>a.path.length-c.path.length);for(const{type:c,path:a}of u){if(a.length===0){s=te(s,c)}else{const f=Ne(s,a);const x=te(f,c);Fe(s,a,x)}}return s}var ze=(e,t=false)=>{const{json:n}=oe(e);return JSON.stringify(n,null,t?2:void 0)};var Ve=e=>{try{const t=JSON.parse(e);return ie({json:t,meta:void 0})}catch{return JSON.parse(e)}};import{StyleSheet as De,Text as G,View as E,TouchableOpacity as Le,Animated as Be}from"react-native-web";import{jsx as N,jsxs as j}from"react/jsx-runtime";function Ee({icon:e,iconColor:t,title:n,count:s,subtitle:u,expanded:c,onToggle:a,children:f,style:x,titleStyle:i}){return j(E,{style:[z.container,x],children:[j(Le,{onPress:a,activeOpacity:.7,style:z.headerTouchable,children:[j(E,{style:z.header,children:[j(E,{style:z.headerLeft,children:[N(e,{size:14,color:t}),N(G,{style:[z.title,i],children:n}),N(E,{style:[z.badge,{backgroundColor:t+"20"}],children:N(G,{style:[z.badgeText,{color:t}],children:s})})]}),c?N(Y,{size:14,color:o.muted}):N(J,{size:14,color:o.muted})]}),N(G,{style:z.subtitle,children:u})]}),c&&N(Be.View,{style:{opacity:1},children:f})]})}var z=De.create({container:{marginBottom:20},headerTouchable:{marginBottom:12},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:4,paddingHorizontal:4},headerLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1},title:{fontSize:11,color:o.primary,fontFamily:y,fontWeight:"700",letterSpacing:2,opacity:.9},subtitle:{fontSize:9,color:o.secondary,fontFamily:y,paddingHorizontal:4,marginTop:2,opacity:.7},badge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},badgeText:{fontSize:10,fontFamily:y,fontWeight:"700"}});var ae={position:"absolute",top:0,left:0,right:0,bottom:0};import{StyleSheet as je,Text as M,View as V,Animated as We}from"react-native-web";import{jsx as k,jsxs as P}from"react/jsx-runtime";function _e({alertConfig:e,badgeText:t,animatedStyle:n,style:s,indicatorCount:u=3}){const c=e.icon;return P(We.View,{style:[T.container,{borderColor:e.color+"40"},s,n],children:[k(V,{style:[T.glow,{backgroundColor:e.color+"10"}]}),P(V,{style:T.content,children:[k(V,{style:[T.iconWrapper,{backgroundColor:e.color+"15"}],children:k(c,{size:20,color:e.color})}),P(V,{style:T.textContainer,children:[k(M,{style:[T.label,{color:e.color}],children:e.label}),k(M,{style:T.subtitle,children:e.subtitle})]}),k(V,{style:[T.badge,{backgroundColor:e.color+"20"}],children:k(M,{style:[T.badgeText,{color:e.color}],children:t})})]}),k(V,{style:T.indicators,children:[...Array(u)].map((a,f)=>k(V,{style:[T.indicatorDot,{backgroundColor:e.color,opacity:e.pulse?f===0?1:.5-f*.2:.3-f*.1}]},f))})]})}var T=je.create({container:{backgroundColor:o.panel,borderRadius:12,borderWidth:1,padding:16,marginBottom:16,position:"relative",overflow:"hidden"},glow:{...ae,opacity:.5},content:{flexDirection:"row",alignItems:"center",gap:12},iconWrapper:{width:36,height:36,borderRadius:8,justifyContent:"center",alignItems:"center"},textContainer:{flex:1,gap:2},label:{fontSize:13,fontWeight:"700",fontFamily:y,letterSpacing:1.5,textShadowOffset:{width:0,height:0},textShadowRadius:8},subtitle:{fontSize:10,color:o.secondary,fontFamily:y},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:4},badgeText:{fontSize:9,fontWeight:"700",fontFamily:y,letterSpacing:1},indicators:{position:"absolute",top:8,right:8,flexDirection:"row",gap:3},indicatorDot:{width:4,height:4,borderRadius:2}});import{Fragment as Ge}from"react";import{StyleSheet as Me,Text as R,View as m,Animated as le}from"react-native-web";import{jsx as h,jsxs as v}from"react/jsx-runtime";function Pe({statsConfig:e,totalCount:t,header:n,bottomStats:s,style:u,hideInactive:c=true}){return v(m,{style:[d.container,u],children:[n&&v(m,{style:d.header,children:[v(m,{style:d.headerLeft,children:[h(R,{style:d.headerTitle,children:n.title}),h(R,{style:d.headerSubtitle,children:n.subtitle})]}),n.healthPercentage!==void 0&&h(m,{style:d.headerRight,children:v(m,{style:d.statusIndicator,children:[h(m,{style:[d.statusDot,{backgroundColor:n.healthColor||o.success}]}),h(R,{style:[d.statusText,{color:n.healthColor||o.success}],children:n.healthStatus||"OPTIMAL"})]})})]}),n?.healthPercentage!==void 0&&v(m,{style:d.healthSection,children:[h(R,{style:d.healthLabel,children:"SYSTEM HEALTH"}),h(m,{style:d.healthBarWrapper,children:h(m,{style:d.healthBarBg,children:h(le.View,{style:[d.healthBarFill,{width:`${n.healthPercentage}%`,backgroundColor:n.healthColor||o.success}]})})}),v(R,{style:[d.healthPercentage,{color:n.healthColor||o.success}],children:[n.healthPercentage,"%"]})]}),h(m,{style:d.statsGrid,children:e.map(a=>{const f=a.value>0;if(c&&!f)return null;const x=a.icon;const i=t?a.value/t*100:0;return v(le.View,{style:[d.statCard,{borderColor:a.color+"30"}],children:[v(m,{style:d.cardContent,children:[h(m,{style:[d.iconBadge,{backgroundColor:a.color+"1A",borderColor:a.color+"33"}],children:h(x,{size:12,color:a.color})}),v(m,{style:d.cardInfo,children:[h(R,{style:d.cardLabel,children:a.label}),h(R,{style:d.cardSubtitle,children:a.subtitle})]}),v(m,{style:d.valueBlock,children:[h(R,{style:[d.statNumber,{color:a.color}],children:a.value.toString().padStart(2,"0")}),t?v(R,{style:d.percentText,children:[Math.round(i),"%"]}):null]})]}),a.showBar!==false&&t&&h(m,{style:[d.statBar,{backgroundColor:a.color+"10"}],children:h(m,{style:[d.statBarFill,{width:`${i}%`,backgroundColor:a.color}]})})]},a.key)})}),s&&s.length>0&&h(m,{style:d.bottomBar,children:s.map((a,f)=>v(Ge,{children:[v(m,{style:d.bottomStat,children:[h(R,{style:d.bottomStatLabel,children:a.label}),h(R,{style:[d.bottomStatValue,a.color&&{color:a.color}],children:a.value})]}),f<s.length-1&&h(m,{style:d.bottomDivider})]},a.label))})]})}var d=Me.create({container:{backgroundColor:o.panel,borderRadius:12,padding:12,marginBottom:12,borderWidth:1,borderColor:o.border+"40",overflow:"hidden",position:"relative"},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8,paddingBottom:8,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},headerLeft:{gap:1},headerRight:{alignItems:"flex-end"},headerTitle:{fontSize:11,fontWeight:"700",color:o.primary,fontFamily:y,letterSpacing:1.5},headerSubtitle:{fontSize:8,color:o.secondary,fontFamily:y,opacity:.7},statusIndicator:{flexDirection:"row",alignItems:"center",gap:4},statusDot:{width:5,height:5,borderRadius:2.5},statusText:{fontSize:9,fontWeight:"600",fontFamily:y,letterSpacing:.5},healthSection:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:8},healthLabel:{fontSize:8,color:o.secondary,fontFamily:y,letterSpacing:.5},healthBarWrapper:{flex:1},healthBarBg:{height:4,backgroundColor:"rgba(128, 128, 128, 0.1)",borderRadius:2,overflow:"hidden"},healthBarFill:{height:"100%",borderRadius:2},healthPercentage:{fontSize:11,fontWeight:"700",fontFamily:y},statsGrid:{gap:6,marginBottom:8},statCard:{backgroundColor:o.blackTint2,borderRadius:8,borderWidth:1,borderColor:o.border,padding:10,marginBottom:4},cardContent:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:4},cardInfo:{flex:1},cardLabel:{fontSize:11,fontWeight:"700",fontFamily:y,letterSpacing:.5,color:o.primary},cardSubtitle:{fontSize:8,color:o.secondary,fontFamily:y,opacity:.7},statNumber:{fontSize:16,fontWeight:"700",fontFamily:y,minWidth:28},valueBlock:{alignItems:"flex-end"},percentText:{fontSize:9,color:o.secondary,fontFamily:y},statBar:{height:3,borderRadius:1.5,overflow:"hidden"},statBarFill:{height:"100%",borderRadius:1.5},bottomBar:{flexDirection:"row",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:o.border+"40"},bottomStat:{flex:1,alignItems:"center"},bottomStatLabel:{fontSize:7,color:o.muted,fontFamily:y,letterSpacing:.5,marginBottom:1},bottomStatValue:{fontSize:11,fontWeight:"700",color:o.primary,fontFamily:y},bottomDivider:{width:1,height:16,backgroundColor:o.border+"40"},iconBadge:{width:24,height:24,borderRadius:6,borderWidth:1,alignItems:"center",justifyContent:"center"}});import{useState as Ue,useCallback as $e}from"react";import{StyleSheet as He,Text as w,View as F,TouchableOpacity as Je,Animated as Ye}from"react-native-web";import{jsx as S,jsxs as O}from"react/jsx-runtime";function Ke({issues:e,onIssueClick:t,hintText:n="Tap any issue to view details",style:s,expandable:u=true,statusLabels:c={missing:"Not found",wrong_type:"Type error",wrong_value:"Invalid value"}}){const[a,f]=Ue(new Set);const x=$e(r=>{if(!u)return;f(b=>{const C=new Set(b);if(C.has(r)){C.delete(r)}else{C.add(r)}return C})},[u]);const i=r=>{return r==="missing"?o.warning:o.info};const l=r=>{return r==="missing"?$:H};const p=r=>{switch(r.status){case"missing":return`\u2022 ${c.missing}`;case"wrong_type":return`\u2022 ${c.wrong_type}${r.expectedType?`: Expected ${r.expectedType}`:""}`;case"wrong_value":return`\u2022 ${c.wrong_value}${r.value?`: ${String(r.value).substring(0,20)}`:""}`;default:return""}};if(e.length===0)return null;return O(F,{style:[g.container,s],children:[e.map((r,b)=>{const C=i(r.status);const A=l(r.status);const I=a.has(r.key);const D=I?Y:J;return O(F,{children:[O(Je,{onPress:()=>{if(u){x(r.key)}t?.(r)},style:g.issueRow,activeOpacity:.7,children:[S(A,{size:14,color:C}),O(F,{style:g.issueContent,children:[S(w,{style:[g.issueKey,{color:o.primary}],children:r.key}),S(w,{style:g.issueDesc,children:p(r)})]}),u&&S(D,{size:12,color:o.muted})]}),u&&I&&O(Ye.View,{style:g.issueDetails,children:[O(F,{style:g.detailRow,children:[S(w,{style:g.detailLabel,children:"Status:"}),O(w,{style:[g.detailValue,{color:o.primary,fontWeight:"600"}],children:[r.status==="missing"&&"MISSING",r.status==="wrong_type"&&"TYPE ERROR",r.status==="wrong_value"&&"INVALID VALUE"]})]}),r.value!==void 0&&r.status!=="missing"&&O(F,{style:g.detailRow,children:[S(w,{style:g.detailLabel,children:"Current:"}),S(w,{style:[g.detailValue,{color:o.warning}],children:`"${String(r.value)}"`})]}),r.expectedType&&r.status==="wrong_type"&&O(F,{style:g.detailRow,children:[S(w,{style:g.detailLabel,children:"Expected:"}),S(w,{style:[g.detailValue,{color:o.success}],children:r.expectedType})]}),r.expectedValue&&r.status==="wrong_value"&&O(F,{style:g.detailRow,children:[S(w,{style:g.detailLabel,children:"Expected:"}),S(w,{style:[g.detailValue,{color:o.success}],children:`"${r.expectedValue}"`})]}),r.description&&S(F,{style:g.descSection,children:S(w,{style:g.descText,children:r.description})}),r.fixSuggestion&&O(F,{style:g.fixSection,children:[S(w,{style:g.fixLabel,children:"HOW TO FIX"}),S(w,{style:g.fixText,children:r.fixSuggestion})]})]})]},`${r.key}-${b}`)}),n&&S(w,{style:g.hint,children:n})]})}var g=He.create({container:{backgroundColor:o.panel,borderRadius:8,padding:8,borderWidth:1,borderColor:o.warning+"33"},issueRow:{flexDirection:"row",alignItems:"center",paddingVertical:8,paddingHorizontal:8,borderRadius:6,marginBottom:4},issueContent:{flex:1,marginLeft:8,flexDirection:"row",alignItems:"center",gap:8},issueKey:{fontSize:11,fontWeight:"600",fontFamily:y},issueDesc:{fontSize:10,color:o.secondary,fontFamily:y,flex:1},hint:{fontSize:9,color:o.muted,fontFamily:y,textAlign:"center",marginTop:8,paddingTop:8,borderTopWidth:1,borderTopColor:o.primary+"0D"},issueDetails:{marginTop:8,marginLeft:22,marginRight:8,paddingLeft:12,paddingRight:8,paddingTop:8,paddingBottom:8,backgroundColor:o.background+"4D",borderLeftWidth:2,borderLeftColor:o.primary+"1A",borderRadius:4},detailRow:{flexDirection:"row",marginTop:8,alignItems:"flex-start"},detailLabel:{fontSize:10,color:o.secondary,fontFamily:y,fontWeight:"600",width:70},detailValue:{fontSize:11,color:o.primary,fontFamily:y,flex:1,lineHeight:16},fixSection:{marginTop:12,padding:10,backgroundColor:o.info+"14",borderRadius:6,borderWidth:1,borderColor:o.info+"33"},fixLabel:{fontSize:10,color:o.info,fontFamily:y,fontWeight:"700",marginBottom:6,letterSpacing:.5},fixText:{fontSize:11,color:o.primary,fontFamily:y,lineHeight:18,backgroundColor:o.background+"66",padding:8,borderRadius:4,overflow:"hidden"},descSection:{marginTop:10,paddingTop:10,borderTopWidth:1,borderTopColor:o.primary+"0D"},descText:{fontSize:10,color:o.secondary,fontFamily:y,marginTop:4,lineHeight:14}});import{useMemo as se,useEffect as Xe,useRef as ce}from"react";import{Animated as L,Easing as de}from"react-native-web";var ue={OPTIMAL:{icon:ye,color:o.success,label:"CONFIG OK",subtitle:"All requirements met",pulse:false},WARNING:{icon:H,color:o.warning,label:"CONFIG WARNING",subtitle:"Check values and types",pulse:false},ERROR:{icon:pe,color:o.error,label:"CONFIG ERROR",subtitle:"Missing required data",pulse:false},CRITICAL:{icon:$,color:o.critical,label:"CONFIG FAILURE",subtitle:"Multiple critical issues",pulse:false},LOADING:{icon:fe,color:o.info,label:"LOADING",subtitle:"Reading configuration...",pulse:true},EMPTY:{icon:ge,color:o.muted,label:"NO DATA",subtitle:"No configuration found",pulse:false}};function qe(e,t){const n=se(()=>({...ue,...t}),[t]);const s=se(()=>{if(e.totalCount===0)return"EMPTY";if(e.missingCount>2||e.wrongTypeCount>2)return"CRITICAL";if(e.missingCount>0)return"ERROR";if(e.wrongValueCount>0||e.wrongTypeCount>0)return"WARNING";return"OPTIMAL"},[e]);const u=n[s];const c=ce(new L.Value(1)).current;const a=ce(new L.Value(1)).current;Xe(()=>{c.setValue(0);a.setValue(.95);L.parallel([L.timing(c,{toValue:1,duration:300,useNativeDriver:true}),L.timing(a,{toValue:1,duration:300,easing:de.out(de.ease),useNativeDriver:true})]).start()},[s,c,a]);const f={transform:[{scale:a}],opacity:c};return{alertState:s,alertConfig:u,alertAnimatedStyle:f,alertOpacity:c,alertScale:a}}export{me as safeStringify,oe as serialize,ie as deserialize,ze as displayValue,Ve as parseDisplayValue,Ee as GameUICollapsibleSection,ae as absoluteFill,_e as GameUIStatusHeader,Pe as GameUICompactStats,Ke as GameUIIssuesList,ue as GAME_UI_ALERT_STATES,qe as useGameUIAlertState};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";import{c as Y}from"./chunk-GBUZCZE4.mjs";import{P as te,d as C,e as m,g as O,i as I,l as R,n as L,o as $,u as j,v as r}from"./chunk-K4LXMO4D.mjs";import{useCallback as ae,useEffect as ne,useRef as W,useState as q}from"react";var T=new Map;function se(e){try{return JSON.parse(e)}catch{return}}function ie(e,t,a={}){let[i,l]=q(()=>T.has(e)?T.get(e):t),[y,g]=q(()=>T.has(e)),c=W(e);c.current=e;let d=W(a);d.current=a,ne(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??Y,p=d.current.parse??se;return S.getItem(e).then(h=>{if(!o){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),l(u))}g(true)}}).catch(()=>{o||g(true)}),()=>{o=true}},[e]);let v=ae(o=>{l(S=>{let p=typeof o=="function"?o(S):o;T.set(c.current,p);let h=d.current.storage??Y,u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(p)).catch(()=>{})}catch{}return p})},[]);return[i,v,y]}function re(){T.clear()}import{useCallback as P,useEffect as z,useMemo as le,useState as A}from"react";function oe(e,t={}){let[a,i]=A(()=>e.getAll()),[l,y]=A(()=>t.initialFilter??{}),[g,c]=A(()=>e.getEnabled());z(()=>e.subscribe(i),[e]);let d=t.filterItems,v=le(()=>d?d(a,l):a,[a,l,d]),o=P(()=>{e.clear()},[e]),S=P(()=>{let h=!g;e.setEnabled(h),c(h)},[e,g]),p=P(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:l,setFilter:y,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function ce(e,t){let[a,i]=A(e);return z(()=>t(i),[t]),a}import{useCallback as de,useEffect as ue,useState as K}from"react";function fe(e,t={}){let{enabled:a=true,maxEvents:i=500,select:l}=t,[y,g]=K([]),[c,d]=K(a);ue(()=>{if(!a){d(false);return}let o=null,S=null,p=e.subscribeToEvents(h=>{S=h,o==null&&(o=requestAnimationFrame(()=>{if(o=null,!S)return;let u=S;S=null,l&&(u=l(u)),u.length>i&&(u=u.slice(0,i)),g(u)}))});return d(true),()=>{p(),o!=null&&cancelAnimationFrame(o)}},[e,a,i,l]);let v=de(()=>{e.clearEvents()},[e]);return{events:y,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as ge}from"react";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),i={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[l,y,g,c,d]=await Promise.all([m.isBoldTextEnabled?.()??Promise.resolve(false),m.isGrayscaleEnabled?.()??Promise.resolve(false),m.isInvertColorsEnabled?.()??Promise.resolve(false),m.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),m.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);i.isBoldTextEnabled=l,i.isGrayscaleEnabled=y,i.isInvertColorsEnabled=g,i.isDarkerSystemColorsEnabled=c,i.prefersCrossFadeTransitions=d}if(r.OS==="android"){let l=await m.isHighTextContrastEnabled?.()??false;i.isHighTextContrastEnabled=l}return i}function k(){let e=r.constants,t={os:r.OS,version:r.Version,reactNativeVersion:e.reactNativeVersion,isTesting:r.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};return r.OS==="ios"?{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:r.isPad,isTV:r.isTV,isVision:r.isVision??false,isMacCatalyst:r.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}:r.OS==="android"?{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}:t}function M(){let e=R.get("window"),t=R.get("screen"),a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:j.get(),fontScale:j.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(r.OS==="ios")try{let i=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=i?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let i=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=i?.isEdgeToEdge??false,a.densityDpi=Math.round(e.scale*160)}catch{}return a}async function X(){return new Promise(e=>{let t=false;r.OS==="ios"?C.StatusBarManager?.getHeight?.(a=>{t||(t=true,e(a?.height??null))})??e(null):r.OS==="android"?(t=true,e(te.currentHeight??null)):(t=true,e(null)),setTimeout(()=>{t||(t=true,e(null))},100)})}function N(){let e={isRTL:L.isRTL,doLeftAndRightSwapInRTL:L.doLeftAndRightSwapInRTL};return r.OS==="android"&&(e.localeIdentifier=L.localeIdentifier),e}function V(){if(r.OS==="ios")try{return{userDefaults:C.SettingsManager?.getConstants?.()?.settings??{}}}catch{return{}}return{}}function B(){let e={};if(r.OS==="android"){let t=r.constants;e.serial=t.Serial,e.fingerprint=t.Fingerprint;try{let a=C.PlatformConstants;a?.getAndroidID&&(e.androidId=a.getAndroidID())}catch{}}return e}function he(e){let t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""].join("|"),a=0;for(let i=0;i<t.length;i++){let l=t.charCodeAt(i);a=(a<<5)-a+l,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function me(){let[e,t]=b(true),[a,i]=b(k()),[l,y]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=O.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}}),[o,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:I.currentState,isActive:I.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=ge(async()=>{t(true);let[f,n]=await Promise.all([U(),X()]);i(k()),y(M()),c(f);let s=O.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(E=>({...E,height:n})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:n,screen:s})=>{y(E=>({...E,window:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},screen:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},isLandscape:n.width>n.height,isPortrait:n.height>n.width}))});return()=>f.remove()},[]),w(()=>{let f=O.addChangeListener(({colorScheme:n})=>{let s=n??null;v({colorScheme:s,prefersDarkMode:s==="dark"})});return()=>f.remove()},[]),w(()=>{let f=$.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",s=>{F({isVisible:true,height:s.endCoordinates.height,animationDuration:s.duration??0})}),n=$.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",s=>{F({isVisible:false,height:0,animationDuration:s.duration??0})});return()=>{f.remove(),n.remove()}},[]),w(()=>{let f=I.addEventListener("change",n=>{_({currentState:n,isActive:n==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",n=>{c(s=>({...s,isScreenReaderEnabled:n}))}),m.addEventListener("reduceMotionChanged",n=>{c(s=>({...s,isReduceMotionEnabled:n}))}),m.addEventListener("reduceTransparencyChanged",n=>{c(s=>({...s,isReduceTransparencyEnabled:n}))})];if(r.OS==="ios"){let n=(s,E)=>m.addEventListener(s,E);f.push(n("boldTextChanged",s=>{c(E=>({...E,isBoldTextEnabled:s}))}),n("grayscaleChanged",s=>{c(E=>({...E,isGrayscaleEnabled:s}))}),n("invertColorsChanged",s=>{c(E=>({...E,isInvertColorsEnabled:s}))}))}return()=>{f.forEach(n=>n.remove())}},[]),{platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>he({platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function Se(){let[e,t]=await Promise.all([U(),X()]),a=O.getColorScheme()??null;return{platform:k(),display:M(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:I.currentState,isActive:I.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function pe(e){console.log(`
|
|
2
|
-
========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
|
|
3
|
-
`),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
|
|
4
|
-
--- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
|
|
5
|
-
--- ACCESSIBILITY ---`),console.log(JSON.stringify(e.accessibility,null,2)),console.log(`
|
|
6
|
-
--- APPEARANCE ---`),console.log(JSON.stringify(e.appearance,null,2)),console.log(`
|
|
7
|
-
--- LOCALE ---`),console.log(JSON.stringify(e.locale,null,2)),console.log(`
|
|
8
|
-
--- STATUS BAR ---`),console.log(JSON.stringify(e.statusBar,null,2)),console.log(`
|
|
9
|
-
--- KEYBOARD ---`),console.log(JSON.stringify(e.keyboard,null,2)),console.log(`
|
|
10
|
-
--- APP STATE ---`),console.log(JSON.stringify(e.appState,null,2)),console.log(`
|
|
11
|
-
--- IDENTIFIERS ---`),console.log(JSON.stringify(e.identifiers,null,2)),console.log(`
|
|
12
|
-
--- SETTINGS ---`);let t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`),t.length>0&&t.length<=20&&console.log(JSON.stringify(e.settings,null,2)),console.log(`
|
|
13
|
-
--- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
|
|
14
|
-
========================================
|
|
15
|
-
`)}export{ie as a,re as b,oe as c,ce as d,fe as e,me as f,Se as g,pe as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{Ob as le,Pb as se,Q as _,Qb as P,R as ce,Ub as de,Wb as M,Zb as $,ld as y}from"./chunk-JG4QSK5B.mjs";import{d as n}from"./chunk-CE5U3CSQ.mjs";import{J as z,a as c,b as f,d as G,r as O,y as U}from"./chunk-QPIZURPZ.mjs";var ue="[Circular]",H="[...]";function fe(e,t,o={}){let{depthLimit:s=Number.MAX_SAFE_INTEGER,edgesLimit:p=Number.MAX_SAFE_INTEGER}=o,d=[];function a(i,l,g,r,w,A){if(A+=1,typeof i=="object"&&i!==null){for(let v=0;v<r.length;v++)if(r[v]===i){m(ue,i,l,w);return}if(A>s){m(H,i,l,w);return}if(g+1>p){m(H,i,l,w);return}if(r.push(i),Array.isArray(i)){let v=i;for(let I=0;I<i.length;I++)a(i[I],I,I,r,v,A)}else if(i instanceof Map||i instanceof Set||i instanceof RegExp||i instanceof Date||i instanceof Error){r.pop();return}else{let v=i,I=Object.keys(v);for(let B=0;B<I.length;B++){let E=I[B];a(v[E],E,B,r,v,A)}}r.pop()}}function m(i,l,g,r){if(!r)return;let w=Object.getOwnPropertyDescriptor(r,g);if(w?.get!==void 0)if(w.configurable)Object.defineProperty(r,g,{value:i}),d.push([r,g,l,w]);else return;else r[g]=i,d.push([r,g,l])}let C=(i,l)=>{if(typeof l=="bigint")return`${l.toString()}n`;if(typeof l=="symbol")return l.toString();if(typeof l>"u")return"undefined";if(typeof l=="function")return`[Function: ${l.name||"anonymous"}]`;if(typeof l=="number"){if(l===1/0)return"Infinity";if(l===-1/0)return"-Infinity";if(Number.isNaN(l))return"NaN"}if(l instanceof Error){let g={name:l.name,message:l.message,stack:l.stack};return Object.getOwnPropertyNames(l).forEach(r=>{if(!["name","message","stack"].includes(r))try{let w=l[r];w!==void 0&&(g[r]=w)}catch{}}),g}if(l instanceof Date)return l.toISOString();if(l instanceof RegExp)return l.toString();if(l instanceof Map)try{return{__type:"Map",entries:Array.from(l.entries()).map(([g,r])=>[String(g),r])}}catch{return{__type:"Map",entries:"[Map iteration failed]"}}if(l instanceof Set)try{return{__type:"Set",values:Array.from(l)}}catch{return{__type:"Set",values:"[Set iteration failed]"}}return l};try{return a(e,"",0,[],null,0),JSON.stringify(e,C,t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;d.length!==0;){let i=d.pop();if(i&&i.length===4){let[l,g,,r]=i;l&&typeof l=="object"&&r&&Object.defineProperty(l,g,r)}else if(i){let[l,g,r]=i;l&&typeof l=="object"&&(typeof g=="string"||typeof g=="number")&&(l[g]=r)}}}}var pe=e=>typeof e>"u",ge=e=>typeof e!="object"||e===null||e===Object.prototype?false:Object.getPrototypeOf(e)===null?true:Object.getPrototypeOf(e)===Object.prototype,D=e=>Array.isArray(e),ye=e=>typeof e=="boolean"||e===null||typeof e>"u"||typeof e=="number"||typeof e=="string"||typeof e=="symbol",he=e=>e instanceof Date&&!isNaN(e.valueOf()),J=e=>e instanceof Error,me=e=>e instanceof RegExp,Y=e=>e instanceof Set,K=e=>e instanceof Map,be=e=>typeof e=="bigint",X=e=>typeof e=="number"&&isNaN(e),Se=e=>e===1/0||e===-1/0,we=e=>e===0&&1/e===-1/0,xe=e=>e instanceof URL,Ce=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Ae={Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray},q=[{isApplicable:pe,annotation:"undefined",transform:()=>null,untransform:()=>{}},{isApplicable:be,annotation:"bigint",transform:e=>e.toString(),untransform:e=>typeof BigInt<"u"?BigInt(e):(console.error("BigInt is not supported in this environment"),e)},{isApplicable:he,annotation:"Date",transform:e=>e.toISOString(),untransform:e=>new Date(e)},{isApplicable:J,annotation:"Error",transform:e=>({name:e.name,message:e.message,stack:e.stack,cause:"cause"in e?e.cause:void 0}),untransform:e=>{let t=new Error(e.message);return t.name=e.name,t.stack=e.stack,e.cause!==void 0&&(t.cause=e.cause),t}},{isApplicable:me,annotation:"regexp",transform:e=>""+e,untransform:e=>{let t=e.slice(1,e.lastIndexOf("/")),o=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,o)}},{isApplicable:Y,annotation:"set",transform:e=>[...e.values()],untransform:e=>new Set(e)},{isApplicable:K,annotation:"map",transform:e=>[...e.entries()],untransform:e=>new Map(e)},{isApplicable:e=>X(e)||Se(e),annotation:"number",transform:e=>X(e)?"NaN":e>0?"Infinity":"-Infinity",untransform:e=>Number(e)},{isApplicable:we,annotation:"number",transform:()=>"-0",untransform:()=>-0},{isApplicable:xe,annotation:"URL",transform:e=>e.toString(),untransform:e=>new URL(e)},{isApplicable:Ce,annotation:e=>["typed-array",e.constructor.name],transform:e=>[...e],untransform:(e,t)=>{let o=Array.isArray(t)?t[1]:"Uint8Array",s=Ae[o];if(!s)throw new Error(`Unknown typed array: ${o}`);return new s(e)}}];function j(e){for(let t of q)if(t.isApplicable(e)){let o=typeof t.annotation=="function"?t.annotation(e):t.annotation;return{value:t.transform(e),type:o}}}function Q(e,t){for(let o of q){let s=typeof o.annotation=="function"?Array.isArray(t)?t[0]:t:o.annotation;if(Array.isArray(t)&&Array.isArray(s)?t[0]===s[0]:s===t)return o.untransform(e,t)}throw new Error(`Unknown transformation: ${t}`)}var Z=e=>ge(e)||D(e)||K(e)||Y(e)||J(e);function V(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function ee(e,t=[],o=[]){let s=ye(e);if(!s&&!Z(e)){let i=j(e);return i?{transformedValue:i.value,annotations:{[t.map(String).map(V).join(".")]:i.type}}:{transformedValue:e}}if(!s&&o.indexOf(e)!==-1)return{transformedValue:null};if(!Z(e)){let i=j(e);return i?{transformedValue:i.value,annotations:t.length>0?{[t.map(String).map(V).join(".")]:i.type}:{"":i.type}}:{transformedValue:e}}let p=j(e),d=p?.value??e,a=D(d)?[]:{},m={};if(p){let i=t.length>0?t.map(String).map(V).join("."):"";m[i]=p.type}let C=D(d)?d.map((i,l)=>[l,i]):Object.entries(d);for(let[i,l]of C){let g=String(i);if(g==="__proto__"||g==="constructor"||g==="prototype")throw new Error(`Detected property ${g}. This is a prototype pollution risk, please remove it from your object.`);let r=ee(l,[...t,i],[...o,e]);a[i]=r.transformedValue,r.annotations&&Object.assign(m,r.annotations)}return{transformedValue:a,annotations:Object.keys(m).length>0?m:void 0}}function ve(e){if(e==="")return[];let t=[],o="";for(let s=0;s<e.length;s++){let p=e.charAt(s);if(p==="\\"){let d=e.charAt(s+1);if(d==="\\"){o+="\\",s++;continue}else if(d==="."){o+=".",s++;continue}}if(p==="."){t.push(o),o="";continue}o+=p}return o&&t.push(o),t}function Ie(e,t,o){if(t.length===0)return;let s=e;for(let p=0;p<t.length-1;p++)s=s[t[p]];s[t[t.length-1]]=o}function Re(e,t){let o=e;for(let s of t)o=o[s];return o}function te(e){let t=ee(e),o={json:t.transformedValue};return t.annotations&&(o.meta={values:t.annotations}),o}function re(e){let{json:t,meta:o}=e;if(!o?.values)return t;let s=D(t)?[...t]:{...t},p=Object.entries(o.values).map(([d,a])=>({pathString:d,type:a,path:ve(d)})).sort((d,a)=>a.path.length-d.path.length);for(let{type:d,path:a}of p)if(a.length===0)s=Q(s,d);else{let m=Re(s,a),C=Q(m,d);Ie(s,a,C)}return s}var Te=(e,t=false)=>{let{json:o}=te(e);return JSON.stringify(o,null,t?2:void 0)},Oe=e=>{try{let t=JSON.parse(e);return re({json:t,meta:void 0})}catch{return JSON.parse(e)}};import{jsx as N,jsxs as L}from"react/jsx-runtime";function ke({icon:e,iconColor:t,title:o,count:s,subtitle:p,expanded:d,onToggle:a,children:m,style:C,titleStyle:i}){return L(c,{style:[F.container,C],children:[L(G,{onPress:a,activeOpacity:.7,style:F.headerTouchable,children:[L(c,{style:F.header,children:[L(c,{style:F.headerLeft,children:[N(e,{size:14,color:t}),N(f,{style:[F.title,i],children:o}),N(c,{style:[F.badge,{backgroundColor:t+"20"}],children:N(f,{style:[F.badgeText,{color:t}],children:s})})]}),d?N($,{size:14,color:n.muted}):N(M,{size:14,color:n.muted})]}),N(f,{style:F.subtitle,children:p})]}),d&&N(O.View,{style:{opacity:1},children:m})]})}var F=z.create({container:{marginBottom:20},headerTouchable:{marginBottom:12},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:4,paddingHorizontal:4},headerLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1},title:{fontSize:11,color:n.primary,fontFamily:y,fontWeight:"700",letterSpacing:2,opacity:.9},subtitle:{fontSize:9,color:n.secondary,fontFamily:y,paddingHorizontal:4,marginTop:2,opacity:.7},badge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},badgeText:{fontSize:10,fontFamily:y,fontWeight:"700"}});var oe={position:"absolute",top:0,left:0,right:0,bottom:0};import{jsx as k,jsxs as W}from"react/jsx-runtime";function Ne({alertConfig:e,badgeText:t,animatedStyle:o,style:s,indicatorCount:p=3}){let d=e.icon;return W(O.View,{style:[R.container,{borderColor:e.color+"40"},s,o],children:[k(c,{style:[R.glow,{backgroundColor:e.color+"10"}]}),W(c,{style:R.content,children:[k(c,{style:[R.iconWrapper,{backgroundColor:e.color+"15"}],children:k(d,{size:20,color:e.color})}),W(c,{style:R.textContainer,children:[k(f,{style:[R.label,{color:e.color}],children:e.label}),k(f,{style:R.subtitle,children:e.subtitle})]}),k(c,{style:[R.badge,{backgroundColor:e.color+"20"}],children:k(f,{style:[R.badgeText,{color:e.color}],children:t})})]}),k(c,{style:R.indicators,children:[...Array(p)].map((a,m)=>k(c,{style:[R.indicatorDot,{backgroundColor:e.color,opacity:e.pulse?m===0?1:.5-m*.2:.3-m*.1}]},m))})]})}var R=z.create({container:{backgroundColor:n.panel,borderRadius:12,borderWidth:1,padding:16,marginBottom:16,position:"relative",overflow:"hidden"},glow:{...oe,opacity:.5},content:{flexDirection:"row",alignItems:"center",gap:12},iconWrapper:{width:36,height:36,borderRadius:8,justifyContent:"center",alignItems:"center"},textContainer:{flex:1,gap:2},label:{fontSize:13,fontWeight:"700",fontFamily:y,letterSpacing:1.5,textShadowOffset:{width:0,height:0},textShadowRadius:8},subtitle:{fontSize:10,color:n.secondary,fontFamily:y},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:4},badgeText:{fontSize:9,fontWeight:"700",fontFamily:y,letterSpacing:1},indicators:{position:"absolute",top:8,right:8,flexDirection:"row",gap:3},indicatorDot:{width:4,height:4,borderRadius:2}});import{Fragment as Fe}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";function Be({statsConfig:e,totalCount:t,header:o,bottomStats:s,style:p,hideInactive:d=true}){return x(c,{style:[u.container,p],children:[o&&x(c,{style:u.header,children:[x(c,{style:u.headerLeft,children:[b(f,{style:u.headerTitle,children:o.title}),b(f,{style:u.headerSubtitle,children:o.subtitle})]}),o.healthPercentage!==void 0&&b(c,{style:u.headerRight,children:x(c,{style:u.statusIndicator,children:[b(c,{style:[u.statusDot,{backgroundColor:o.healthColor||n.success}]}),b(f,{style:[u.statusText,{color:o.healthColor||n.success}],children:o.healthStatus||"OPTIMAL"})]})})]}),o?.healthPercentage!==void 0&&x(c,{style:u.healthSection,children:[b(f,{style:u.healthLabel,children:"SYSTEM HEALTH"}),b(c,{style:u.healthBarWrapper,children:b(c,{style:u.healthBarBg,children:b(O.View,{style:[u.healthBarFill,{width:`${o.healthPercentage}%`,backgroundColor:o.healthColor||n.success}]})})}),x(f,{style:[u.healthPercentage,{color:o.healthColor||n.success}],children:[o.healthPercentage,"%"]})]}),b(c,{style:u.statsGrid,children:e.map(a=>{let m=a.value>0;if(d&&!m)return null;let C=a.icon,i=t?a.value/t*100:0;return x(O.View,{style:[u.statCard,{borderColor:a.color+"30"}],children:[x(c,{style:u.cardContent,children:[b(c,{style:[u.iconBadge,{backgroundColor:a.color+"1A",borderColor:a.color+"33"}],children:b(C,{size:12,color:a.color})}),x(c,{style:u.cardInfo,children:[b(f,{style:u.cardLabel,children:a.label}),b(f,{style:u.cardSubtitle,children:a.subtitle})]}),x(c,{style:u.valueBlock,children:[b(f,{style:[u.statNumber,{color:a.color}],children:a.value.toString().padStart(2,"0")}),t?x(f,{style:u.percentText,children:[Math.round(i),"%"]}):null]})]}),a.showBar!==false&&t&&b(c,{style:[u.statBar,{backgroundColor:a.color+"10"}],children:b(c,{style:[u.statBarFill,{width:`${i}%`,backgroundColor:a.color}]})})]},a.key)})}),s&&s.length>0&&b(c,{style:u.bottomBar,children:s.map((a,m)=>x(Fe,{children:[x(c,{style:u.bottomStat,children:[b(f,{style:u.bottomStatLabel,children:a.label}),b(f,{style:[u.bottomStatValue,a.color&&{color:a.color}],children:a.value})]}),m<s.length-1&&b(c,{style:u.bottomDivider})]},a.label))})]})}var u=z.create({container:{backgroundColor:n.panel,borderRadius:12,padding:12,marginBottom:12,borderWidth:1,borderColor:n.border+"40",overflow:"hidden",position:"relative"},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8,paddingBottom:8,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},headerLeft:{gap:1},headerRight:{alignItems:"flex-end"},headerTitle:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:y,letterSpacing:1.5},headerSubtitle:{fontSize:8,color:n.secondary,fontFamily:y,opacity:.7},statusIndicator:{flexDirection:"row",alignItems:"center",gap:4},statusDot:{width:5,height:5,borderRadius:2.5},statusText:{fontSize:9,fontWeight:"600",fontFamily:y,letterSpacing:.5},healthSection:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:8},healthLabel:{fontSize:8,color:n.secondary,fontFamily:y,letterSpacing:.5},healthBarWrapper:{flex:1},healthBarBg:{height:4,backgroundColor:"rgba(128, 128, 128, 0.1)",borderRadius:2,overflow:"hidden"},healthBarFill:{height:"100%",borderRadius:2},healthPercentage:{fontSize:11,fontWeight:"700",fontFamily:y},statsGrid:{gap:6,marginBottom:8},statCard:{backgroundColor:n.blackTint2,borderRadius:8,borderWidth:1,borderColor:n.border,padding:10,marginBottom:4},cardContent:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:4},cardInfo:{flex:1},cardLabel:{fontSize:11,fontWeight:"700",fontFamily:y,letterSpacing:.5,color:n.primary},cardSubtitle:{fontSize:8,color:n.secondary,fontFamily:y,opacity:.7},statNumber:{fontSize:16,fontWeight:"700",fontFamily:y,minWidth:28},valueBlock:{alignItems:"flex-end"},percentText:{fontSize:9,color:n.secondary,fontFamily:y},statBar:{height:3,borderRadius:1.5,overflow:"hidden"},statBarFill:{height:"100%",borderRadius:1.5},bottomBar:{flexDirection:"row",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:n.border+"40"},bottomStat:{flex:1,alignItems:"center"},bottomStatLabel:{fontSize:7,color:n.muted,fontFamily:y,letterSpacing:.5,marginBottom:1},bottomStatValue:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:y},bottomDivider:{width:1,height:16,backgroundColor:n.border+"40"},iconBadge:{width:24,height:24,borderRadius:6,borderWidth:1,alignItems:"center",justifyContent:"center"}});import{useState as ze,useCallback as De}from"react";import{jsx as S,jsxs as T}from"react/jsx-runtime";function Le({issues:e,onIssueClick:t,hintText:o="Tap any issue to view details",style:s,expandable:p=true,statusLabels:d={missing:"Not found",wrong_type:"Type error",wrong_value:"Invalid value"}}){let[a,m]=ze(new Set),C=De(r=>{p&&m(w=>{let A=new Set(w);return A.has(r)?A.delete(r):A.add(r),A})},[p]),i=r=>r==="missing"?n.warning:n.info,l=r=>r==="missing"?_:P,g=r=>{switch(r.status){case"missing":return`\u2022 ${d.missing}`;case"wrong_type":return`\u2022 ${d.wrong_type}${r.expectedType?`: Expected ${r.expectedType}`:""}`;case"wrong_value":return`\u2022 ${d.wrong_value}${r.value?`: ${String(r.value).substring(0,20)}`:""}`;default:return""}};return e.length===0?null:T(c,{style:[h.container,s],children:[e.map((r,w)=>{let A=i(r.status),v=l(r.status),I=a.has(r.key),B=I?$:M;return T(c,{children:[T(G,{onPress:()=>{p&&C(r.key),t?.(r)},style:h.issueRow,activeOpacity:.7,children:[S(v,{size:14,color:A}),T(c,{style:h.issueContent,children:[S(f,{style:[h.issueKey,{color:n.primary}],children:r.key}),S(f,{style:h.issueDesc,children:g(r)})]}),p&&S(B,{size:12,color:n.muted})]}),p&&I&&T(O.View,{style:h.issueDetails,children:[T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Status:"}),T(f,{style:[h.detailValue,{color:n.primary,fontWeight:"600"}],children:[r.status==="missing"&&"MISSING",r.status==="wrong_type"&&"TYPE ERROR",r.status==="wrong_value"&&"INVALID VALUE"]})]}),r.value!==void 0&&r.status!=="missing"&&T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Current:"}),S(f,{style:[h.detailValue,{color:n.warning}],children:`"${String(r.value)}"`})]}),r.expectedType&&r.status==="wrong_type"&&T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Expected:"}),S(f,{style:[h.detailValue,{color:n.success}],children:r.expectedType})]}),r.expectedValue&&r.status==="wrong_value"&&T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Expected:"}),S(f,{style:[h.detailValue,{color:n.success}],children:`"${r.expectedValue}"`})]}),r.description&&S(c,{style:h.descSection,children:S(f,{style:h.descText,children:r.description})}),r.fixSuggestion&&T(c,{style:h.fixSection,children:[S(f,{style:h.fixLabel,children:"HOW TO FIX"}),S(f,{style:h.fixText,children:r.fixSuggestion})]})]})]},`${r.key}-${w}`)}),o&&S(f,{style:h.hint,children:o})]})}var h=z.create({container:{backgroundColor:n.panel,borderRadius:8,padding:8,borderWidth:1,borderColor:n.warning+"33"},issueRow:{flexDirection:"row",alignItems:"center",paddingVertical:8,paddingHorizontal:8,borderRadius:6,marginBottom:4},issueContent:{flex:1,marginLeft:8,flexDirection:"row",alignItems:"center",gap:8},issueKey:{fontSize:11,fontWeight:"600",fontFamily:y},issueDesc:{fontSize:10,color:n.secondary,fontFamily:y,flex:1},hint:{fontSize:9,color:n.muted,fontFamily:y,textAlign:"center",marginTop:8,paddingTop:8,borderTopWidth:1,borderTopColor:n.primary+"0D"},issueDetails:{marginTop:8,marginLeft:22,marginRight:8,paddingLeft:12,paddingRight:8,paddingTop:8,paddingBottom:8,backgroundColor:n.background+"4D",borderLeftWidth:2,borderLeftColor:n.primary+"1A",borderRadius:4},detailRow:{flexDirection:"row",marginTop:8,alignItems:"flex-start"},detailLabel:{fontSize:10,color:n.secondary,fontFamily:y,fontWeight:"600",width:70},detailValue:{fontSize:11,color:n.primary,fontFamily:y,flex:1,lineHeight:16},fixSection:{marginTop:12,padding:10,backgroundColor:n.info+"14",borderRadius:6,borderWidth:1,borderColor:n.info+"33"},fixLabel:{fontSize:10,color:n.info,fontFamily:y,fontWeight:"700",marginBottom:6,letterSpacing:.5},fixText:{fontSize:11,color:n.primary,fontFamily:y,lineHeight:18,backgroundColor:n.background+"66",padding:8,borderRadius:4,overflow:"hidden"},descSection:{marginTop:10,paddingTop:10,borderTopWidth:1,borderTopColor:n.primary+"0D"},descText:{fontSize:10,color:n.secondary,fontFamily:y,marginTop:4,lineHeight:14}});import{useMemo as ne,useEffect as je,useRef as ie}from"react";var ae={OPTIMAL:{icon:de,color:n.success,label:"CONFIG OK",subtitle:"All requirements met",pulse:false},WARNING:{icon:P,color:n.warning,label:"CONFIG WARNING",subtitle:"Check values and types",pulse:false},ERROR:{icon:se,color:n.error,label:"CONFIG ERROR",subtitle:"Missing required data",pulse:false},CRITICAL:{icon:_,color:n.critical,label:"CONFIG FAILURE",subtitle:"Multiple critical issues",pulse:false},LOADING:{icon:le,color:n.info,label:"LOADING",subtitle:"Reading configuration...",pulse:true},EMPTY:{icon:ce,color:n.muted,label:"NO DATA",subtitle:"No configuration found",pulse:false}};function Ve(e,t){let o=ne(()=>({...ae,...t}),[t]),s=ne(()=>e.totalCount===0?"EMPTY":e.missingCount>2||e.wrongTypeCount>2?"CRITICAL":e.missingCount>0?"ERROR":e.wrongValueCount>0||e.wrongTypeCount>0?"WARNING":"OPTIMAL",[e]),p=o[s],d=ie(new O.Value(1)).current,a=ie(new O.Value(1)).current;return je(()=>{d.setValue(0),a.setValue(.95),O.parallel([O.timing(d,{toValue:1,duration:300,useNativeDriver:true}),O.timing(a,{toValue:1,duration:300,easing:U.out(U.ease),useNativeDriver:true})]).start()},[s,d,a]),{alertState:s,alertConfig:p,alertAnimatedStyle:{transform:[{scale:a}],opacity:d},alertOpacity:d,alertScale:a}}export{fe as a,te as b,re as c,Te as d,Oe as e,ke as f,oe as g,Ne as h,Be as i,Le as j,ae as k,Ve as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as V}from"./chunk-6Q52HRBL.mjs";import{f as m}from"./chunk-CE5U3CSQ.mjs";import{$ as T,A as I,G as P,U as E}from"./chunk-CI5CO7FQ.mjs";import{createContext as D,useContext as G,useState as M,useCallback as w,useMemo as B,useEffect as U}from"react";import{jsx as W}from"react/jsx-runtime";var $=D(null);function q({children:e,initialAdapters:t=[]}){let[a,s]=M(()=>{let r=new Map;return t.forEach(n=>{r.set(n.adapter.id,{...n,enabled:n.enabled??true})}),r}),[u,f]=M(null),[p,C]=M(0),d=w(()=>C(r=>r+1),[]);U(()=>{let r=[];return a.forEach(n=>{if(n.enabled){let c=n.adapter.subscribe(d);r.push(c)}}),()=>{r.forEach(n=>n())}},[a,d]);let i=B(()=>Array.from(a.values()).filter(r=>r.enabled).sort((r,n)=>(r.priority??100)-(n.priority??100)).map(r=>r.adapter),[a,p]),h=w(r=>a.get(r)?.adapter,[a]),x=w(r=>{s(n=>{let c=new Map(n);return c.set(r.adapter.id,{...r,enabled:r.enabled??true}),c})},[]),l=w(r=>{s(n=>{let c=new Map(n);return c.delete(r),c})},[]),o=w(r=>{let n=[];return(u&&r?.sources===void 0?i.filter(c=>c.id===u):i).forEach(c=>{r?.sources&&!r.sources.includes(c.id)||(n=n.concat(c.getEntries()))}),r&&(n=O(n,r)),n.sort((c,N)=>N.timestamp-c.timestamp),n},[i,u,p]),S=w(()=>{let r={};return i.forEach(n=>{r[n.id]=n.getEntryCount()}),r},[i,p]),R=B(()=>({adapters:i,getAdapter:h,registerAdapter:x,unregisterAdapter:l,getAllEntries:o,getEntryCounts:S,selectedAdapterId:u,setSelectedAdapterId:f,refresh:d}),[i,h,x,l,o,S,u,d]);return W($.Provider,{value:R,children:e})}function b(){let e=G($);if(!e)throw new Error("useHistoryContext must be used within a HistoryProvider");return e}function k(){return b().adapters}function J(e){return b().getAdapter(e)}function z(e){let{getAllEntries:t}=b();return t(e)}function K(){return b().getEntryCounts()}function O(e,t){return e.filter(a=>{if(t.searchText){let s=t.searchText.toLowerCase();if(!a.label.toLowerCase().includes(s))return false}if(t.onlyWithChanges&&!a.hasStateChange||t.onlyErrors&&a.status!=="error"||t.afterTimestamp&&a.timestamp<t.afterTimestamp||t.beforeTimestamp&&a.timestamp>t.beforeTimestamp)return false;if(t.ignoredPatterns?.length){for(let s of t.ignoredPatterns)if(new RegExp(s).test(a.label))return false}if(t.includedPatterns?.length){let s=false;for(let u of t.includedPatterns)if(new RegExp(u).test(a.label)){s=true;break}if(!s)return false}return true})}import{jsx as L}from"react/jsx-runtime";function Q(e){let t=Date.now()-e;return t<1e3?"just now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`}function X(e,t){if(t?.color)return t.color;if(e.status==="error")return m.error;if(e.status==="pending")return m.warning;if(e.status==="success")return m.success;if(e.hasStateChange)return m.success;if(e.isSkipped)return m.textMuted;if(e.isInFuture)return m.textMuted+"80";switch(e.source){case"redux":return"#764ABC";case"zustand":return"#443E38";case"mmkv":return"#4CAF50";case"async-storage":return"#2196F3";case"react-query":return"#FF4154";case"jotai":return"#000000";case"legend-state":return"#7C3AED";default:return m.textSecondary}}function Y(e){return e.isSkipped?"Skipped":e.isInFuture?"Future":e.status?e.status.charAt(0).toUpperCase()+e.status.slice(1):e.hasStateChange?"Changed":"Action"}function Z(e,t){return t?.name?t.name:e.category?e.category:e.source}function F({entry:e,adapter:t,isSelected:a,onPress:s,showSource:u=true,showDuration:f=true}){let p=X(e,t),C=Y(e),d=u?Z(e,t):void 0,i=Q(e.timestamp);f&&e.duration!==void 0&&(i=`${e.duration.toFixed(1)}ms \xB7 ${i}`);let h=e.hasStateChange?L(T,{style:H.changeBadge,children:L(E,{style:H.changeBadgeText,children:"\u26A1"})}):void 0;return L(V,{statusDotColor:p,statusLabel:C,statusSublabel:d,primaryText:e.label,bottomRightText:i,customBadge:h,isSelected:a,onPress:s?()=>s(e):void 0,showChevron:!!s})}var H=I.create({changeBadge:{paddingHorizontal:4},changeBadgeText:{fontSize:12}});import{useCallback as A,useMemo as v}from"react";import{jsx as g,jsxs as j}from"react/jsx-runtime";function _({filter:e,selectedEntryId:t,onSelectEntry:a,showSource:s=true,emptyMessage:u="No history entries yet",ListHeaderComponent:f,ListFooterComponent:p}){let C=z(e),d=k(),i=v(()=>{let o=new Map;return d.forEach(S=>o.set(S.id,S)),o},[d]),h=A(o=>`${o.source}-${o.id}`,[]),x=A(({item:o})=>{let S=i.get(o.source);return g(F,{entry:o,adapter:S,isSelected:t===o.id,onPress:a,showSource:s})},[i,t,a,s]),l=v(()=>j(T,{style:y.emptyContainer,children:[g(E,{style:y.emptyText,children:u}),g(E,{style:y.emptySubtext,children:"Actions will appear here as they happen"})]}),[u]);return g(P,{data:C,keyExtractor:h,renderItem:x,ListEmptyComponent:l,ListHeaderComponent:f,ListFooterComponent:p,contentContainerStyle:y.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15,getItemLayout:void 0})}function ee({entries:e,adapters:t=[],selectedEntryId:a,onSelectEntry:s,showSource:u=true,emptyMessage:f="No history entries yet",ListHeaderComponent:p,ListFooterComponent:C}){let d=v(()=>{let l=new Map;return t.forEach(o=>l.set(o.id,o)),l},[t]),i=A(l=>`${l.source}-${l.id}`,[]),h=A(({item:l})=>{let o=d.get(l.source);return g(F,{entry:l,adapter:o,isSelected:a===l.id,onPress:s,showSource:u})},[d,a,s,u]),x=v(()=>j(T,{style:y.emptyContainer,children:[g(E,{style:y.emptyText,children:f}),g(E,{style:y.emptySubtext,children:"Actions will appear here as they happen"})]}),[f]);return g(P,{data:e,keyExtractor:i,renderItem:h,ListEmptyComponent:x,ListHeaderComponent:p,ListFooterComponent:C,contentContainerStyle:y.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15})}var y=I.create({listContent:{flexGrow:1,paddingVertical:4},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:60,paddingHorizontal:20},emptyText:{fontSize:16,fontWeight:"600",color:m.text,marginBottom:8},emptySubtext:{fontSize:13,color:m.textMuted,textAlign:"center"}});export{q as a,b,k as c,J as d,z as e,K as f,F as g,_ as h,ee as i};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";import{c as Y}from"./chunk-GBUZCZE4.mjs";import{useCallback as te,useEffect as ae,useRef as $,useState as j}from"react";var T=new Map;function se(e){try{return JSON.parse(e)}catch{return}}function ie(e,t,a={}){let[n,l]=j(()=>T.has(e)?T.get(e):t),[E,g]=j(()=>T.has(e)),c=$(e);c.current=e;let d=$(a);d.current=a,ae(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??Y,p=d.current.parse??se;return S.getItem(e).then(h=>{if(!o){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),l(u))}g(true)}}).catch(()=>{o||g(true)}),()=>{o=true}},[e]);let v=te(o=>{l(S=>{let p=typeof o=="function"?o(S):o;T.set(c.current,p);let h=d.current.storage??Y,u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(p)).catch(()=>{})}catch{}return p})},[]);return[n,v,E]}function ne(){T.clear()}import{useCallback as R,useEffect as K,useMemo as re,useState as A}from"react";function le(e,t={}){let[a,n]=A(()=>e.getAll()),[l,E]=A(()=>t.initialFilter??{}),[g,c]=A(()=>e.getEnabled());K(()=>e.subscribe(n),[e]);let d=t.filterItems,v=re(()=>d?d(a,l):a,[a,l,d]),o=R(()=>{e.clear()},[e]),S=R(()=>{let h=!g;e.setEnabled(h),c(h)},[e,g]),p=R(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:l,setFilter:E,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function oe(e,t){let[a,n]=A(e);return K(()=>t(n),[t]),a}import{useCallback as ce,useEffect as de,useState as W}from"react";function ue(e,t={}){let{enabled:a=true,maxEvents:n=500,select:l}=t,[E,g]=W([]),[c,d]=W(a);de(()=>{if(!a){d(false);return}let o=null,S=null,p=e.subscribeToEvents(h=>{S=h,o==null&&(o=requestAnimationFrame(()=>{if(o=null,!S)return;let u=S;S=null,l&&(u=l(u)),u.length>n&&(u=u.slice(0,n)),g(u)}))});return d(true),()=>{p(),o!=null&&cancelAnimationFrame(o)}},[e,a,n,l]);let v=ce(()=>{e.clearEvents()},[e]);return{events:E,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as fe}from"react";import{Platform as r,Dimensions as L,PixelRatio as q,AccessibilityInfo as m,Appearance as O,I18nManager as P,NativeModules as C,Keyboard as z,AppState as I,StatusBar as ge}from"@buoy-gg/shared-ui/web/native";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),n={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[l,E,g,c,d]=await Promise.all([m.isBoldTextEnabled?.()??Promise.resolve(false),m.isGrayscaleEnabled?.()??Promise.resolve(false),m.isInvertColorsEnabled?.()??Promise.resolve(false),m.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),m.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);n.isBoldTextEnabled=l,n.isGrayscaleEnabled=E,n.isInvertColorsEnabled=g,n.isDarkerSystemColorsEnabled=c,n.prefersCrossFadeTransitions=d}if(r.OS==="android"){let l=await m.isHighTextContrastEnabled?.()??false;n.isHighTextContrastEnabled=l}return n}function M(){let e=r.constants,t={os:r.OS,version:r.Version,reactNativeVersion:e.reactNativeVersion,isTesting:r.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};return r.OS==="ios"?{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:r.isPad,isTV:r.isTV,isVision:r.isVision??false,isMacCatalyst:r.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}:r.OS==="android"?{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}:t}function k(){let e=L.get("window"),t=L.get("screen"),a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:q.get(),fontScale:q.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(r.OS==="ios")try{let n=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=n?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let n=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=n?.isEdgeToEdge??false,a.densityDpi=Math.round(e.scale*160)}catch{}return a}async function X(){return new Promise(e=>{let t=false;r.OS==="ios"?C.StatusBarManager?.getHeight?.(a=>{t||(t=true,e(a?.height??null))})??e(null):r.OS==="android"?(t=true,e(ge.currentHeight??null)):(t=true,e(null)),setTimeout(()=>{t||(t=true,e(null))},100)})}function N(){let e={isRTL:P.isRTL,doLeftAndRightSwapInRTL:P.doLeftAndRightSwapInRTL};return r.OS==="android"&&(e.localeIdentifier=P.localeIdentifier),e}function V(){if(r.OS==="ios")try{return{userDefaults:C.SettingsManager?.getConstants?.()?.settings??{}}}catch{return{}}return{}}function B(){let e={};if(r.OS==="android"){let t=r.constants;e.serial=t.Serial,e.fingerprint=t.Fingerprint;try{let a=C.PlatformConstants;a?.getAndroidID&&(e.androidId=a.getAndroidID())}catch{}}return e}function he(e){let t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""].join("|"),a=0;for(let n=0;n<t.length;n++){let l=t.charCodeAt(n);a=(a<<5)-a+l,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function me(){let[e,t]=b(true),[a,n]=b(M()),[l,E]=b(k()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=O.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}}),[o,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:I.currentState,isActive:I.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=fe(async()=>{t(true);let[f,s]=await Promise.all([U(),X()]);n(M()),E(k()),c(f);let i=O.getColorScheme()??null;v({colorScheme:i,prefersDarkMode:i==="dark"}),S(N()),h(y=>({...y,height:s})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=L.addEventListener("change",({window:s,screen:i})=>{E(y=>({...y,window:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},screen:{width:i.width,height:i.height,scale:i.scale,fontScale:i.fontScale},isLandscape:s.width>s.height,isPortrait:s.height>s.width}))});return()=>f.remove()},[]),w(()=>{let f=O.addChangeListener(({colorScheme:s})=>{let i=s??null;v({colorScheme:i,prefersDarkMode:i==="dark"})});return()=>f.remove()},[]),w(()=>{let f=z.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",i=>{F({isVisible:true,height:i.endCoordinates.height,animationDuration:i.duration??0})}),s=z.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",i=>{F({isVisible:false,height:0,animationDuration:i.duration??0})});return()=>{f.remove(),s.remove()}},[]),w(()=>{let f=I.addEventListener("change",s=>{_({currentState:s,isActive:s==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",s=>{c(i=>({...i,isScreenReaderEnabled:s}))}),m.addEventListener("reduceMotionChanged",s=>{c(i=>({...i,isReduceMotionEnabled:s}))}),m.addEventListener("reduceTransparencyChanged",s=>{c(i=>({...i,isReduceTransparencyEnabled:s}))})];if(r.OS==="ios"){let s=(i,y)=>m.addEventListener(i,y);f.push(s("boldTextChanged",i=>{c(y=>({...y,isBoldTextEnabled:i}))}),s("grayscaleChanged",i=>{c(y=>({...y,isGrayscaleEnabled:i}))}),s("invertColorsChanged",i=>{c(y=>({...y,isInvertColorsEnabled:i}))}))}return()=>{f.forEach(s=>s.remove())}},[]),{platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>he({platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function Se(){let[e,t]=await Promise.all([U(),X()]),a=O.getColorScheme()??null;return{platform:M(),display:k(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:I.currentState,isActive:I.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function pe(e){console.log(`
|
|
2
|
-
========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
|
|
3
|
-
`),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
|
|
4
|
-
--- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
|
|
5
|
-
--- ACCESSIBILITY ---`),console.log(JSON.stringify(e.accessibility,null,2)),console.log(`
|
|
6
|
-
--- APPEARANCE ---`),console.log(JSON.stringify(e.appearance,null,2)),console.log(`
|
|
7
|
-
--- LOCALE ---`),console.log(JSON.stringify(e.locale,null,2)),console.log(`
|
|
8
|
-
--- STATUS BAR ---`),console.log(JSON.stringify(e.statusBar,null,2)),console.log(`
|
|
9
|
-
--- KEYBOARD ---`),console.log(JSON.stringify(e.keyboard,null,2)),console.log(`
|
|
10
|
-
--- APP STATE ---`),console.log(JSON.stringify(e.appState,null,2)),console.log(`
|
|
11
|
-
--- IDENTIFIERS ---`),console.log(JSON.stringify(e.identifiers,null,2)),console.log(`
|
|
12
|
-
--- SETTINGS ---`);let t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`),t.length>0&&t.length<=20&&console.log(JSON.stringify(e.settings,null,2)),console.log(`
|
|
13
|
-
--- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
|
|
14
|
-
========================================
|
|
15
|
-
`)}export{ie as a,ne as b,le as c,oe as d,ue as e,me as f,Se as g,pe as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as V}from"./chunk-34YQ42KI.mjs";import{f as m}from"./chunk-CE5U3CSQ.mjs";import{createContext as D,useContext as N,useState as T,useCallback as w,useMemo as F,useEffect as W}from"react";import{jsx as q}from"react/jsx-runtime";var I=D(null);function G({children:e,initialAdapters:t=[]}){let[a,s]=T(()=>{let r=new Map;return t.forEach(n=>{r.set(n.adapter.id,{...n,enabled:n.enabled??true})}),r}),[u,f]=T(null),[p,C]=T(0),d=w(()=>C(r=>r+1),[]);W(()=>{let r=[];return a.forEach(n=>{if(n.enabled){let c=n.adapter.subscribe(d);r.push(c)}}),()=>{r.forEach(n=>n())}},[a,d]);let i=F(()=>Array.from(a.values()).filter(r=>r.enabled).sort((r,n)=>(r.priority??100)-(n.priority??100)).map(r=>r.adapter),[a,p]),h=w(r=>a.get(r)?.adapter,[a]),x=w(r=>{s(n=>{let c=new Map(n);return c.set(r.adapter.id,{...r,enabled:r.enabled??true}),c})},[]),l=w(r=>{s(n=>{let c=new Map(n);return c.delete(r),c})},[]),o=w(r=>{let n=[];return(u&&r?.sources===void 0?i.filter(c=>c.id===u):i).forEach(c=>{r?.sources&&!r.sources.includes(c.id)||(n=n.concat(c.getEntries()))}),r&&(n=K(n,r)),n.sort((c,R)=>R.timestamp-c.timestamp),n},[i,u,p]),S=w(()=>{let r={};return i.forEach(n=>{r[n.id]=n.getEntryCount()}),r},[i,p]),j=F(()=>({adapters:i,getAdapter:h,registerAdapter:x,unregisterAdapter:l,getAllEntries:o,getEntryCounts:S,selectedAdapterId:u,setSelectedAdapterId:f,refresh:d}),[i,h,x,l,o,S,u,d]);return q(I.Provider,{value:j,children:e})}function b(){let e=N(I);if(!e)throw new Error("useHistoryContext must be used within a HistoryProvider");return e}function P(){return b().adapters}function U(e){return b().getAdapter(e)}function B(e){let{getAllEntries:t}=b();return t(e)}function J(){return b().getEntryCounts()}function K(e,t){return e.filter(a=>{if(t.searchText){let s=t.searchText.toLowerCase();if(!a.label.toLowerCase().includes(s))return false}if(t.onlyWithChanges&&!a.hasStateChange||t.onlyErrors&&a.status!=="error"||t.afterTimestamp&&a.timestamp<t.afterTimestamp||t.beforeTimestamp&&a.timestamp>t.beforeTimestamp)return false;if(t.ignoredPatterns?.length){for(let s of t.ignoredPatterns)if(new RegExp(s).test(a.label))return false}if(t.includedPatterns?.length){let s=false;for(let u of t.includedPatterns)if(new RegExp(u).test(a.label)){s=true;break}if(!s)return false}return true})}import{View as O,Text as Q,StyleSheet as X}from"@buoy-gg/shared-ui/web/native";import{jsx as L}from"react/jsx-runtime";function Y(e){let t=Date.now()-e;return t<1e3?"just now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`}function Z(e,t){if(t?.color)return t.color;if(e.status==="error")return m.error;if(e.status==="pending")return m.warning;if(e.status==="success")return m.success;if(e.hasStateChange)return m.success;if(e.isSkipped)return m.textMuted;if(e.isInFuture)return m.textMuted+"80";switch(e.source){case"redux":return"#764ABC";case"zustand":return"#443E38";case"mmkv":return"#4CAF50";case"async-storage":return"#2196F3";case"react-query":return"#FF4154";case"jotai":return"#000000";case"legend-state":return"#7C3AED";default:return m.textSecondary}}function _(e){return e.isSkipped?"Skipped":e.isInFuture?"Future":e.status?e.status.charAt(0).toUpperCase()+e.status.slice(1):e.hasStateChange?"Changed":"Action"}function ee(e,t){return t?.name?t.name:e.category?e.category:e.source}function M({entry:e,adapter:t,isSelected:a,onPress:s,showSource:u=true,showDuration:f=true}){let p=Z(e,t),C=_(e),d=u?ee(e,t):void 0,i=Y(e.timestamp);f&&e.duration!==void 0&&(i=`${e.duration.toFixed(1)}ms \xB7 ${i}`);let h=e.hasStateChange?L(O,{style:k.changeBadge,children:L(Q,{style:k.changeBadgeText,children:"\u26A1"})}):void 0;return L(V,{statusDotColor:p,statusLabel:C,statusSublabel:d,primaryText:e.label,bottomRightText:i,customBadge:h,isSelected:a,onPress:s?()=>s(e):void 0,showChevron:!!s})}var k=X.create({changeBadge:{paddingHorizontal:4},changeBadgeText:{fontSize:12}});import{useCallback as E,useMemo as v}from"react";import{FlatList as $,View as z,Text as A,StyleSheet as te}from"@buoy-gg/shared-ui/web/native";import{jsx as y,jsxs as H}from"react/jsx-runtime";function re({filter:e,selectedEntryId:t,onSelectEntry:a,showSource:s=true,emptyMessage:u="No history entries yet",ListHeaderComponent:f,ListFooterComponent:p}){let C=B(e),d=P(),i=v(()=>{let o=new Map;return d.forEach(S=>o.set(S.id,S)),o},[d]),h=E(o=>`${o.source}-${o.id}`,[]),x=E(({item:o})=>{let S=i.get(o.source);return y(M,{entry:o,adapter:S,isSelected:t===o.id,onPress:a,showSource:s})},[i,t,a,s]),l=v(()=>H(z,{style:g.emptyContainer,children:[y(A,{style:g.emptyText,children:u}),y(A,{style:g.emptySubtext,children:"Actions will appear here as they happen"})]}),[u]);return y($,{data:C,keyExtractor:h,renderItem:x,ListEmptyComponent:l,ListHeaderComponent:f,ListFooterComponent:p,contentContainerStyle:g.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15,getItemLayout:void 0})}function ne({entries:e,adapters:t=[],selectedEntryId:a,onSelectEntry:s,showSource:u=true,emptyMessage:f="No history entries yet",ListHeaderComponent:p,ListFooterComponent:C}){let d=v(()=>{let l=new Map;return t.forEach(o=>l.set(o.id,o)),l},[t]),i=E(l=>`${l.source}-${l.id}`,[]),h=E(({item:l})=>{let o=d.get(l.source);return y(M,{entry:l,adapter:o,isSelected:a===l.id,onPress:s,showSource:u})},[d,a,s,u]),x=v(()=>H(z,{style:g.emptyContainer,children:[y(A,{style:g.emptyText,children:f}),y(A,{style:g.emptySubtext,children:"Actions will appear here as they happen"})]}),[f]);return y($,{data:e,keyExtractor:i,renderItem:h,ListEmptyComponent:x,ListHeaderComponent:p,ListFooterComponent:C,contentContainerStyle:g.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15})}var g=te.create({listContent:{flexGrow:1,paddingVertical:4},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:60,paddingHorizontal:20},emptyText:{fontSize:16,fontWeight:"600",color:m.text,marginBottom:8},emptySubtext:{fontSize:13,color:m.textMuted,textAlign:"center"}});export{G as a,b,P as c,U as d,B as e,J as f,M as g,re as h,ne as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{d as c}from"./chunk-CE5U3CSQ.mjs";import{a as G}from"./chunk-5NZOQR6Q.mjs";var X=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(Array.isArray(e))return"array";let t=typeof e;return t==="object"?e instanceof Date?"date":e instanceof RegExp?"regexp":e instanceof Map?"map":e instanceof Set?"set":e instanceof Error?"error":"object":t},Y=e=>{let t=typeof e;return e==null||t==="string"||t==="number"||t==="boolean"||t==="bigint"||t==="symbol"},H=e=>{try{return JSON.stringify(e),true}catch{return false}},Q=e=>{try{return JSON.parse(e),true}catch{return false}},Z=e=>{if(e===null)return"null";if(e===void 0)return"undefined";try{return e.constructor?.name||typeof e}catch{return typeof e}},ee=e=>e==null?true:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:false,te=e=>{if(Array.isArray(e)){let t=e.length;return t===0?"empty array":t===1?"1 item":`${t} items`}if(e&&typeof e=="object"){let t=Object.keys(e).length;return t===0?"empty object":t===1?"1 key":`${t} keys`}if(typeof e=="string"){let t=e.length;return t===0?"empty string":t===1?"1 character":`${t} characters`}return""},ne=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.constructor===Object;var re=e=>{if(e==null)return e;if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},ae=e=>e===null?"null":e===void 0?"undefined":typeof e=="string"?`"${e}"`:typeof e=="boolean"?e?"true":"false":typeof e=="number"?String(e):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:typeof e=="object"?Array.isArray(e)?`[Array: ${e.length} items]`:`{Object: ${Object.keys(e).length} keys}`:String(e),oe=e=>{if(e===null)return c.dataTypes.null;if(e===void 0)return c.dataTypes.undefined;switch(typeof e){case"string":return c.dataTypes.string;case"number":return c.dataTypes.number;case"boolean":return c.dataTypes.boolean;case"function":return c.dataTypes.function;case"object":return Array.isArray(e)?c.dataTypes.array:c.dataTypes.object;default:return c.primary}},se=(e,t)=>e.length<=t?e:e.slice(0,t-3)+"...",v=(e,t="")=>{let n={};return e==null?n:typeof e!="object"?(n[t||"root"]=e,n):(Array.isArray(e)?e.forEach((r,a)=>{let o=t?`${t}[${a}]`:`[${a}]`;typeof r=="object"&&r!==null?Object.assign(n,v(r,o)):n[o]=r}):Object.keys(e).forEach(r=>{let a=t?`${t}.${r}`:r,o=e[r];typeof o=="object"&&o!==null?Object.assign(n,v(o,a)):n[a]=o}),n)},ie=e=>e.length===0?"root":e.map((t,n)=>typeof t=="number"?`[${t}]`:n===0?t:`.${t}`).join("");var ue={log:()=>{},warn:()=>{},error:(...e)=>{console.error("[optional-module]",...e)}},f=new Map,g=new Map,R=new Set;async function le(e,t={}){if(f.has(e))return f.get(e);let n={...ue,...t.logger??{}};g.has(e)||g.set(e,(async()=>{try{let a=await ce(e,t),o=a?.default??a;return f.set(e,o),n.log("Loaded optional module",e),o}catch(a){return n.log("Optional module unavailable",e,a),f.set(e,null),null}})());let r=await g.get(e);return g.delete(e),!r&&t.warnOnceKey&&!R.has(t.warnOnceKey)&&(R.add(t.warnOnceKey),n.warn(t.warningMessage??`Module '${e}' not found.`)),r}var L=(()=>{try{return new Function("moduleName","return import(moduleName);")}catch{return null}})(),C=(()=>{try{return new Function("return typeof require === 'function' ? require : undefined;")()}catch{return}})();async function ce(e,t){if(t.loader)return await Promise.resolve(t.loader());if(L)return L(e);if(C)return C(e);throw new Error(`No dynamic loader available for optional module '${e}'.`)}function pe(e){return f.has(e)?f.get(e):null}var M="__buoyRenderCaptureProvider";function N(){return globalThis}function de(e){N()[M]=e}function fe(){return N()[M]??null}var y=new Map,E=new Set;function _(){E.forEach(e=>{try{e()}catch{}})}function he(e){return y.set(e.id,e),_(),()=>{y.get(e.id)===e&&(y.delete(e.id),_())}}function ye(){return Array.from(y.values())}function be(e){return y.get(e)??null}function we(e){return E.add(e),()=>{E.delete(e)}}function S(){return null}function $(){return null}function j(){return typeof window>"u"?null:()=>window.location.reload()}function x(e="auto"){return e==="browser"?j()?"browser":null:e==="auto"&&j()?"browser":e==="dev-settings"?S()?"dev-settings":null:e==="expo-updates"?$()?"expo-updates":null:G&&S()?"dev-settings":$()?"expo-updates":null}function P(e){return e==="browser"?"[buoy] Browser reload requires a browser window.":e==="dev-settings"?"[buoy] DevSettings.reload() unavailable \u2014 strategy 'dev-settings' requires React Native dev mode.":e==="expo-updates"?"[buoy] expo-updates not installed \u2014 strategy 'expo-updates' requires the host app to add the dependency.":"[buoy] No reload mechanism available. Run in __DEV__ or install expo-updates."}async function D(e="auto",t="buoy reload"){let n=x(e);if(!n)throw new Error(P(e));return n==="browser"?j()():n==="dev-settings"?S().reload(t):await $().reloadAsync(),await new Promise(()=>{})}var B=250;function ge(e){let t=e?.strategy??"auto",n=x(t);if(!n)throw new Error(P(t));let r=Math.max(0,e?.delayMs??B),a=e?.reason??"buoy remote reload";return setTimeout(()=>{D(n,a).catch(()=>{})},r),{strategy:n,delayMs:r}}function me(){return null}var ve=class{constructor(){this.listeners=new Set;this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}getListenerCount(){return this.listeners.size}notify(...e){this.listeners.forEach(t=>{t(...e)})}onSubscribe(){}onUnsubscribe(){}};var Ee=class{constructor(){this.listeners=new Set}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notify(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}},O=new Ee,Se=e=>O.subscribe(e),$e=e=>O.notify(e);import{useSyncExternalStore as W}from"react";var l,b=new Set,k;function je(e){return l=e,()=>{l===e&&(l=void 0)}}function d(){return typeof location>"u"?"/":location.href}function U(e=d()){let t=new URL(e,"http://localhost");return t.hash.startsWith("#/")?new URL(t.hash.slice(1),t.origin):t}function q(e){if(!b.size&&typeof window<"u"){let t=window.history,n=t.pushState,r=t.replaceState,a=s=>{for(let p of[...b])try{p({href:d(),kind:s})}catch{}},o=function(...s){let p=Reflect.apply(n,this,s);return a("push"),p},i=function(...s){let p=Reflect.apply(r,this,s);return a("replace"),p};t.pushState=o,t.replaceState=i;let u=()=>a("pop");window.addEventListener("popstate",u),window.addEventListener("hashchange",u),k=()=>{t.pushState===o&&(t.pushState=n),t.replaceState===i&&(t.replaceState=r),window.removeEventListener("popstate",u),window.removeEventListener("hashchange",u),k=void 0}}return b.add(e),()=>{b.delete(e),b.size||k?.()}}function F(e){let t=typeof e=="string"?e:e.pathname,n=new URL(t,d());if(n.origin!==window.location.origin)throw new Error("Tool navigation must stay on the current origin.");if(typeof e!="string")for(let[r,a]of Object.entries(e.params??{}))n.searchParams.set(r,String(a));return`${n.pathname}${n.search}${n.hash}`}var w={push(e){let t=F(e);if(l)return l.push(t);window.history.pushState(null,"",window.location.hash.startsWith("#/")?`#${t}`:t),window.dispatchEvent(new PopStateEvent("popstate",{state:window.history.state}))},replace(e){let t=F(e);if(l)return l.replace(t);window.history.replaceState(window.history.state,"",window.location.hash.startsWith("#/")?`#${t}`:t),window.dispatchEvent(new PopStateEvent("popstate",{state:window.history.state}))},back(){l?l.back():window.history.back()},canGoBack(){return l?.canGoBack?.()??(typeof window<"u"&&window.history.length>1)},navigate(e){w.push(e)},setParams(e){w.replace({pathname:d(),params:e})},dismiss(e=1){window.history.go(-e)},dismissAll(){throw new Error("Use the captured browser history to select a destination.")}};var V=e=>q(e),m=U;function xe(){return w}function I(){return W(V,d,()=>"/"),m().pathname}function Oe(){return I().split("/").filter(Boolean)}function ke(){return W(V,d,()=>"/"),Object.fromEntries(m().searchParams)}function Te(){return typeof window>"u"?null:w}function Ae(){return m().pathname}function Re(){let e=m();return{pathname:e.pathname,href:`${e.pathname}${e.search}${e.hash}`,segments:e.pathname.split("/").filter(Boolean)}}function Le(){return false}var z=new WeakMap,Ce=1;function h(e){return!!e&&typeof e=="object"&&e.nodeType===1&&typeof e.getBoundingClientRect=="function"}function T(e){if(!h(e))return null;let t=z.get(e);return t===void 0&&(t=Ce++,z.set(e,t)),t}function Me(e){if(!h(e))return null;let t=Object.keys(e).find(n=>n.startsWith("__reactFiber$"));return t?e[t]:null}function Ne(e,t){if(!h(e)||!t)return t;let n=e,r=e.tagName.toLowerCase(),a=r==="input"&&(n.type==="checkbox"||n.type==="radio"),o=r==="input"&&n.type==="range",i=r==="textarea"||r==="select"||r==="input"&&!a&&!o&&!["button","submit","reset","file","hidden"].includes(n.type),u=s=>{if(a){n.checked!==!!s&&n.click();return}let p=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value")?.set;p?p.call(n,String(s)):n.value=String(s),n.dispatchEvent(new Event("input",{bubbles:true})),n.dispatchEvent(new Event("change",{bubbles:true}))};return{...t,__buoyDevToolsRoot:t.__buoyDevToolsRoot||t["data-buoy-root"]!==void 0,testID:t.testID??t["data-testid"],nativeID:t.nativeID??t.id,accessibilityLabel:t.accessibilityLabel??t["aria-label"],accessibilityRole:t.accessibilityRole??t.role??(r==="button"?"button":r==="a"?"link":a?n.type:i?"textbox":o?"slider":void 0),onPress:t.onPress??(typeof t.onClick=="function"||r==="button"||r==="a"?()=>n.click():void 0),...a||o?{onValueChange:u,value:a?n.checked:Number(n.value),...o?{minimumValue:Number(n.min||0),maximumValue:Number(n.max||100)}:{}}:{},...i?{onChangeText:u,value:n.value}:{}}}function _e(e){return h(e)?{__nativeTag:T(e),measure(t){let n=e.getBoundingClientRect();t(n.x,n.y,n.width,n.height,n.x,n.y)},measureInWindow(t){let n=e.getBoundingClientRect();t(n.x,n.y,n.width,n.height)},requestTVFocus(){e.focus()},focus(){e.focus()}}:null}var Pe={topFocus:"focus",topBlur:"blur",topTouchStart:"pointerdown",topTouchMove:"pointermove",topTouchEnd:"pointerup",topTouchCancel:"pointercancel",topChange:"input",topValueChange:"input",topSlidingComplete:"change"};function De(){return typeof document>"u"?{emitter:null,reason:"DOM events are unavailable during server rendering."}:{reason:null,emitter:{addListener(e,t){let n=Pe[e];if(!n)throw new Error(`Unsupported DOM event: ${e}`);let r=a=>{let o=a.composedPath()[0]??a.target;if(!h(o))return;let i=o,u=a,s={target:T(o),pageX:u.clientX,pageY:u.clientY};(n==="input"||n==="change")&&(i.type==="checkbox"||i.type==="radio"?s.value=i.checked:i.type==="range"?s.value=Number(i.value):s.text=i.value??o.textContent??""),t({eventName:e,nativeEvent:s})};return document.addEventListener(n,r,true),{remove:()=>document.removeEventListener(n,r,true)}}}}}var A=new Map,J=0;function Be(e){for(let[t,n]of Object.entries(e)){let r=t.startsWith("@buoy-gg/")?t.replace(/\/web$/,""):`@buoy-gg/${t}`;A.get(r)!==n&&(A.set(r,n),J++)}}function K(e){return A.get(e)??null}function We(){return J}function Ue(e){let t=K(e);if(!t)throw new Error(`Register ${e} with createWebTools before opening tools that use it.`);return t}export{ve as a,O as b,Se as c,$e as d,X as e,Y as f,H as g,Q as h,Z as i,ee as j,te as k,ne as l,re as m,ae as n,oe as o,se as p,v as q,ie as r,le as s,pe as t,de as u,fe as v,he as w,ye as x,be as y,we as z,x as A,D as B,B as C,ge as D,me as E,je as F,d as G,U as H,q as I,w as J,xe as K,I as L,Oe as M,ke as N,Te as O,Ae as P,Re as Q,Le as R,h as S,T,Me as U,Ne as V,_e as W,De as X,Be as Y,K as Z,We as _,Ue as $};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";export*from"react-native-web";import{unstable_createElement as p,findNodeHandle as u,processColor as x,render as m,unmountComponentAtNode as b,NativeModules as h,AccessibilityInfo as g,Animated as f,Appearance as y,AppRegistry as w,AppState as v,BackHandler as C,Clipboard as A,Dimensions as E,Easing as T,I18nManager as k,Keyboard as S,InteractionManager as B,LayoutAnimation as I,Linking as L,NativeEventEmitter as M,PanResponder as P,PixelRatio as V,Platform as D,Share as N,StyleSheet as R,UIManager as K,Vibration as z,ActivityIndicator as F,Button as H,CheckBox as O,FlatList as W,Image as j,ImageBackground as U,KeyboardAvoidingView as Y,Modal as _,Picker as $,Pressable as q,ProgressBar as G,RefreshControl as J,SafeAreaView as Q,ScrollView as X,SectionList as Z,StatusBar as aa,Switch as ea,Text as sa,TextInput as ta,Touchable as oa,TouchableHighlight as na,TouchableNativeFeedback as ia,TouchableOpacity as ra,TouchableWithoutFeedback as la,View as da,VirtualizedList as ca,YellowBox as pa,LogBox as ua,DeviceEventEmitter as xa,useColorScheme as ma,useLocaleContext as ba,useWindowDimensions as ha}from"react-native-web";var ga={alert(n,i,r,l){if(typeof document>"u")return;let a=document.createElement("dialog");a.dataset.buoyRoot="",a.setAttribute("aria-label",n),a.style.cssText="position:fixed;inset:0;margin:auto;width:min(440px,90vw);padding:24px;border:1px solid #475569;border-radius:14px;background:#17212e;color:#f1f5f9;font:14px system-ui;box-shadow:0 20px 80px #0008;z-index:2147483647";let t=document.createElement("h2");if(t.textContent=n,t.style.cssText="font-size:18px;margin:0 0 12px",a.appendChild(t),i){let e=document.createElement("p");e.textContent=i,e.style.cssText="line-height:1.5;white-space:pre-wrap;margin:0 0 20px",a.appendChild(e)}let o=document.createElement("div");o.style.cssText="display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px";let c=r?.length?r:[{text:"OK"}],d=()=>{a.close?.(),a.remove()};for(let e of c){let s=document.createElement("button");s.type="button",s.textContent=e.text??"OK",s.style.cssText=`padding:9px 14px;border:1px solid #64748b;border-radius:7px;color:white;background:${e.style==="destructive"?"#a52b38":"#283a4d"};cursor:pointer;font:inherit`,s.onclick=()=>{d(),e.onPress?.()},o.appendChild(s)}a.addEventListener("cancel",e=>{e.preventDefault(),l?.cancelable!==false&&(d(),l?.onDismiss?.())}),a.appendChild(o),document.body.appendChild(a),a.showModal?a.showModal():a.setAttribute("open","")}};export{ga as a,p as b,u as c,x as d,m as e,b as f,h as g,g as h,f as i,y as j,w as k,v as l,C as m,A as n,E as o,T as p,k as q,S as r,B as s,I as t,L as u,M as v,P as w,V as x,D as y,N as z,R as A,K as B,z as C,F as D,H as E,O as F,W as G,j as H,U as I,Y as J,_ as K,$ as L,q as M,G as N,J as O,Q as P,X as Q,Z as R,aa as S,ea as T,sa as U,ta as V,oa as W,na as X,ia as Y,ra as Z,la as _,da as $,ca as aa,pa as ba,ua as ca,xa as da,ma as ea,ba as fa,ha as ga};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{d as ot}from"./chunk-CE5U3CSQ.mjs";import{Y as l}from"./chunk-K4LXMO4D.mjs";import{jsx as P}from"react/jsx-runtime";var et=({size:e,children:t,style:o})=>P(l,{style:[{width:e,height:e,position:"relative"},o],children:t}),X=({cx:e,cy:t,r:o,fill:r="transparent",borderColor:a,borderWidth:y=0,opacity:h=1,scaleX:k=1,scaleY:c=1,glowColor:p,glowRadius:C=4})=>{let x=o*2,u=[];k!==1&&u.push({scaleX:k}),c!==1&&u.push({scaleY:c});let v={position:"absolute",left:e-o,top:t-o,width:x,height:x,borderRadius:o,backgroundColor:r,borderWidth:y,borderColor:a,opacity:h,transform:u.length>0?u:void 0,...p&&{shadowColor:p,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:C}};return P(l,{style:v})},Ht=({x:e,y:t,width:o,height:r,fill:a="transparent",borderColor:y,borderWidth:h=0,borderRadius:k=0,opacity:c=1,rotate:p})=>{let C=[];p!==void 0&&C.push({rotate:`${p}deg`});let x={position:"absolute",left:e,top:t,width:o,height:r,backgroundColor:a,borderWidth:h,borderColor:y,borderRadius:k,opacity:c,transform:C.length>0?C:void 0};return P(l,{style:x})},Ut=({x1:e,y1:t,x2:o,y2:r,color:a,strokeWidth:y=2,opacity:h=1})=>{let k=Math.sqrt(Math.pow(o-e,2)+Math.pow(r-t,2)),c=Math.atan2(r-t,o-e)*(180/Math.PI),p={position:"absolute",left:e,top:t-y/2,width:k,height:y,backgroundColor:a,transform:[{rotate:`${c}deg`}],transformOrigin:"left center",opacity:h,borderRadius:y/2};return P(l,{style:p})};import{jsx as H,jsxs as qt}from"react/jsx-runtime";var Jt="#4AFF9F",rt={network:Jt,blackTint1:"rgba(8, 12, 21, 0.95)"},it=({size:e=24,color:t=rt.network})=>{let o=e/24,r=18*o/2,a=e/2,y=2*o;return qt(et,{size:e,children:[H(X,{cx:a,cy:a,r,fill:rt.blackTint1,borderColor:t,borderWidth:y,glowColor:t,glowRadius:4*o}),H(X,{cx:a,cy:a,r,borderColor:t,borderWidth:y,scaleX:.45,opacity:.6}),H(X,{cx:a,cy:a,r,borderColor:t,borderWidth:y,scaleX:1.33,scaleY:.6,opacity:.6})]})},Kt=it;import{Fragment as st}from"react";import{Fragment as D,jsx as B,jsxs as S}from"react/jsx-runtime";var Zt=[{x:.1,y:.1,size:1,opacity:.3},{x:.9,y:.1,size:1.2,opacity:.5},{x:.05,y:.3,size:.8,opacity:.4},{x:.95,y:.35,size:1,opacity:.3},{x:.15,y:.85,size:1,opacity:.5},{x:.85,y:.9,size:1.2,opacity:.4}],Qt={circuit:{lines:[{x:.5,width:.5,height:.9,opacity:.15},{x:.25,width:.3,height:.7,opacity:.1},{x:.75,width:.3,height:.7,opacity:.1}],nodes:[{x:.5,y:.15},{x:.25,y:.25},{x:.75,y:.25},{x:.5,y:.5},{x:.25,y:.6},{x:.75,y:.6}]},nodes:{nodes:[{x:.2,y:.2},{x:.8,y:.2},{x:.15,y:.5},{x:.85,y:.5},{x:.2,y:.8},{x:.8,y:.8}]},grid:{lines:[.2,.35,.5,.65,.8]},matrix:{lines:[.2,.35,.5,.65,.8],rain:[.25,.5,.75]},glitch:{lines:[.2,.35,.5,.65,.8],scan:[.3,.7]}},E=({size:e,glowColor:t,variant:o="circuit",children:r})=>{let a=e/24,y=()=>B(D,{children:Zt.map((k,c)=>B(l,{style:{position:"absolute",width:k.size*a,height:k.size*a,borderRadius:k.size*a/2,backgroundColor:t,left:k.x*e-k.size*a/2,top:k.y*e-k.size*a/2,opacity:k.opacity}},`star-${c}`))}),h=()=>{let k=Qt[o];if(!k)return null;if(o==="circuit"){let c=k;return S(D,{children:[c.lines.map((p,C)=>B(l,{style:{position:"absolute",width:p.width*a,height:e*p.height,backgroundColor:t,left:p.x*e-p.width*a/2,top:e*.05,opacity:p.opacity}},`line-${C}`)),c.nodes.map((p,C)=>B(l,{style:{position:"absolute",width:2*a,height:2*a,borderRadius:a,backgroundColor:t,left:p.x*e-a,top:p.y*e-a,opacity:.4}},`node-${C}`))]})}if(o==="nodes")return B(D,{children:k.nodes.map((c,p)=>S(st,{children:[B(l,{style:{position:"absolute",width:Math.abs(.5-c.x)*e,height:.3*a,backgroundColor:t,left:Math.min(c.x*e,e/2),top:c.y*e,opacity:.1}}),B(l,{style:{position:"absolute",width:2*a,height:2*a,borderRadius:a,backgroundColor:t,left:c.x*e-a,top:c.y*e-a,opacity:.5}})]},`node-${p}`))});if(o==="grid"||o==="matrix")return B(D,{children:k.lines.map((c,p)=>S(st,{children:[B(l,{style:{position:"absolute",width:.2*a,height:e*.9,backgroundColor:t,left:c*e,top:e*.05,opacity:.05}}),B(l,{style:{position:"absolute",width:e*.9,height:.2*a,backgroundColor:t,left:e*.05,top:c*e,opacity:.05}})]},`grid-${p}`))});if(o==="glitch"){let c=k;return S(D,{children:[c.lines.map((p,C)=>B(l,{style:{position:"absolute",width:e*.4,height:.5*a,backgroundColor:t,left:e*(.1+C*.1),top:p*e,opacity:.2}},`glitch-${C}`)),c.scan.map((p,C)=>B(l,{style:{position:"absolute",width:e,height:a,backgroundColor:t,left:0,top:e*p,opacity:.15}},`scan-${C}`))]})}return null};return S(l,{style:{width:e,height:e,position:"relative"},children:[B(l,{style:{position:"absolute",width:e,height:e,borderRadius:e/2,backgroundColor:t,opacity:.05}}),B(l,{style:{position:"absolute",width:e*.9,height:e*.9,borderRadius:e*.9/2,borderWidth:.5*a,borderColor:t,opacity:.1,left:e*.05,top:e*.05}}),y(),h(),r]})};import{Fragment as Vt,jsx as G,jsxs as U}from"react/jsx-runtime";var ht={green:{color:"#00FF88",glow:"#00FF88"},cyan:{color:"#00D4FF",glow:"#00D4FF"},purple:{color:"#9945FF",glow:"#9945FF"},pink:{color:"#FF45FF",glow:"#FF45FF"},yellow:{color:"#FFD700",glow:"#FFD700"},orange:{color:"#FF8800",glow:"#FF8800"}},to=[1,3,5,7,9,11,13,15,17],oo=[2,4,6,8,10,12,14,16],q={x:5,width:10,y:5.5},eo=[{x:.3,y:.3},{x:.7,y:.3},{x:.5,y:.7}],dt=({size:e=24,color:t,glowColor:o,colorPreset:r="green",variant:a="circuit",noBackground:y=true})=>{let h=y?e/24:e/40,k=ht[r]||ht.green,c=t||k.color,p=o||k.glow,C=U(Vt,{children:[U(l,{style:{position:"absolute",width:20*h,height:8*h,backgroundColor:c,borderRadius:1*h,left:e/2-10*h,top:e/2+4*h,opacity:.85},children:[to.map((x,u)=>G(l,{style:{position:"absolute",width:1.5*h,height:1.2*h,backgroundColor:"#000",opacity:.3,left:x*h,top:1.5*h,borderRadius:.2*h}},`key1-${u}`)),oo.map((x,u)=>G(l,{style:{position:"absolute",width:1.5*h,height:1.2*h,backgroundColor:"#000",opacity:.3,left:x*h,top:3.2*h,borderRadius:.2*h}},`key2-${u}`)),G(l,{style:{position:"absolute",width:q.width*h,height:1*h,backgroundColor:"#000",opacity:.25,left:q.x*h,top:q.y*h,borderRadius:.2*h}})]}),G(l,{style:{position:"absolute",width:22*h,height:10*h,backgroundColor:p,borderRadius:1*h,left:e/2-11*h,top:e/2+3*h,opacity:.15}}),U(l,{style:{position:"absolute",width:18*h,height:12*h,backgroundColor:c,borderRadius:1*h,left:e/2-9*h,top:e/2-10*h,opacity:.9},children:[G(l,{style:{position:"absolute",width:16*h,height:10*h,backgroundColor:"#000",opacity:.5,left:1*h,top:1*h,borderRadius:.5*h}}),[2,4,6].map((x,u)=>G(l,{style:{position:"absolute",width:(10-u*3)*h,height:.5*h,backgroundColor:p,opacity:.6,left:2*h,top:x*h}},u))]}),G(l,{style:{position:"absolute",width:2*h,height:1*h,backgroundColor:p,borderRadius:.5*h,left:e/2-1*h,top:e/2+10*h,opacity:.8}}),eo.map((x,u)=>G(l,{style:{position:"absolute",width:1*h,height:1*h,borderRadius:.5*h,backgroundColor:p,left:e/2-9*h+x.x*18*h,top:e/2-10*h+x.y*12*h,opacity:.4}},`dot-${u}`))]});return y?G(l,{style:{width:e,height:e,position:"relative",alignItems:"center",justifyContent:"center"},children:C}):G(E,{size:e,glowColor:p,variant:a,children:C})};var ro=dt;import{QueryIcon as io}from"@buoy-gg/floating-tools-core/web";import{jsx as so}from"react/jsx-runtime";function ho({size:e=24}){return so(io,{size:e})}import{SentryIcon as ao}from"@buoy-gg/floating-tools-core/web";import{jsx as lo}from"react/jsx-runtime";function yo({size:e=24,color:t}){return lo(ao,{size:e,color:t??"#9945FF"})}import{Fragment as no}from"react";import{Fragment as co,jsx as N,jsxs as at}from"react/jsx-runtime";var lt={yellow:{color:"#FFD700",glow:"#FFD700"},cyan:{color:"#00D4FF",glow:"#00D4FF"},green:{color:"#00FF88",glow:"#00FF88"},purple:{color:"#9945FF",glow:"#9945FF"},pink:{color:"#FF45FF",glow:"#FF45FF"},orange:{color:"#FF8800",glow:"#FF8800"}},ko=[{y:.25,opacity:.9},{y:.45,opacity:.8},{y:.65,opacity:.7}],xo=({size:e=24,color:t,glowColor:o,colorPreset:r="yellow",variant:a="nodes",noBackground:y=true})=>{let h=y?e/24:e/26,k=lt[r]||lt.yellow,c=t||k.color,p=o||k.glow,C=(u,v,F)=>at(no,{children:[N(l,{style:{position:"absolute",width:18*h,height:8*h,borderRadius:4*h,backgroundColor:p,left:e/2-9*h,top:u*e-h,opacity:.1}}),N(l,{style:{position:"absolute",width:16*h,height:6*h,borderRadius:3*h,backgroundColor:c,left:e/2-8*h,top:u*e,opacity:v}}),N(l,{style:{position:"absolute",width:14*h,height:2*h,borderRadius:1*h,backgroundColor:"#fff",left:e/2-7*h,top:u*e+.5*h,opacity:.15}}),N(l,{style:{position:"absolute",width:16*h,height:6*h,borderRadius:3*h,borderWidth:.5*h,borderColor:p,backgroundColor:"transparent",left:e/2-8*h,top:u*e,opacity:.3}})]},`cylinder-${F}`),x=at(co,{children:[ko.map(({y:u,opacity:v},F)=>C(u,v,F)),[.35,.55].map((u,v)=>N(l,{style:{position:"absolute",width:.5*h,height:6*h,backgroundColor:p,left:e/2-.25*h,top:u*e,opacity:.3}},`connection-${v}`)),[.25,.45,.65].map((u,v)=>N(l,{style:{position:"absolute",width:1*h,height:1*h,borderRadius:.5*h,backgroundColor:p,left:e/2-.5*h,top:u*e+2.5*h,opacity:.6}},`dot-${v}`))]});return y?N(l,{style:{width:e,height:e,position:"relative",alignItems:"center",justifyContent:"center"},children:x}):N(E,{size:e,glowColor:p,variant:a,children:x})};import{Fragment as po,jsx as $,jsxs as go}from"react/jsx-runtime";var yt={cyan:{color:"#00D4FF",glow:"#00D4FF"},green:{color:"#00FF88",glow:"#00FF88"},purple:{color:"#9945FF",glow:"#9945FF"},pink:{color:"#FF45FF",glow:"#FF45FF"},yellow:{color:"#FFD700",glow:"#FFD700"},orange:{color:"#FF8800",glow:"#FF8800"}},bo=[{strength:1,size:15,topOffset:.55,opacity:.9},{strength:2,size:30,topOffset:.45,opacity:.8},{strength:3,size:45,topOffset:.35,opacity:.7},{strength:4,size:60,topOffset:.25,opacity:.6}],uo=[{x:.35,y:.5,minStrength:2},{x:.65,y:.5,minStrength:2},{x:.5,y:.3,minStrength:4}],Wo=({size:e=24,color:t,glowColor:o,strength:r=4,colorPreset:a="cyan",variant:y="nodes",noBackground:h=true,showSlash:k=false})=>{let c=e/60,p=2.5*c,C=r===0,x=yt[a]||yt.cyan,u=t||x.color,v=o||x.glow,F=C?"#333":u,L=C?"#333":v,M=go(po,{children:[$(l,{style:{position:"absolute",width:5*c,height:5*c,borderRadius:2.5*c,backgroundColor:F,left:e/2-2.5*c,top:e*.7,opacity:r>0?1:.3}}),bo.filter(z=>r>=z.strength).map((z,_)=>$(l,{style:{position:"absolute",width:z.size*c,height:z.size*c,borderRadius:z.size*c/2,borderWidth:p,borderColor:F,borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent",left:e/2-z.size*c/2,top:e*z.topOffset,transform:[{rotate:"180deg"}],opacity:z.opacity}},`arc-${_}`)),r>0&&uo.filter(z=>r>=z.minStrength).map((z,_)=>$(l,{style:{position:"absolute",width:1.5*c,height:1.5*c,borderRadius:.75*c,backgroundColor:L,left:z.x*e-.75*c,top:z.y*e,opacity:.6}},`dot-${_}`)),k&&$(l,{style:{position:"absolute",width:e*.7,height:p*1.5,backgroundColor:F,left:e*.15,top:e*.5-p*.75,opacity:.9,transform:[{rotate:"45deg"}],borderRadius:p}})]});return h?$(l,{style:{width:e,height:e,position:"relative",alignItems:"center",justifyContent:"center"},children:M}):$(E,{size:e,glowColor:L,variant:y,children:M})};import{Fragment as nt}from"react";import{Fragment as ct,jsx as O,jsxs as Y}from"react/jsx-runtime";var kt={orange:{color:"#f59e0b",glow:"#f59e0b"},cyan:{color:"#00D4FF",glow:"#00D4FF"},purple:{color:"#a78bfa",glow:"#a78bfa"},pink:{color:"#FF45FF",glow:"#FF45FF"},yellow:{color:"#FFD700",glow:"#FFD700"},green:{color:"#00FF88",glow:"#00FF88"}},J=[{x:.5,y:.2,size:1.2,isActive:true},{x:.25,y:.45,size:1,isActive:false},{x:.75,y:.45,size:1,isActive:false},{x:.35,y:.7,size:.9,isActive:false},{x:.65,y:.7,size:.9,isActive:false}],wo=[{from:0,to:1},{from:0,to:2},{from:1,to:3},{from:2,to:4}],K=({size:e=24,color:t,glowColor:o,colorPreset:r="orange",variant:a="nodes",noBackground:y=true})=>{let h=y?e/24:e/26,k=kt[r]||kt.orange,c=t||k.color,p=o||k.glow,C=Y(ct,{children:[wo.map((x,u)=>{let v=J[x.from],F=J[x.to],L=v.x*e,M=v.y*e,z=F.x*e,_=F.y*e,Q=Math.sqrt(Math.pow(z-L,2)+Math.pow(_-M,2)),V=Math.atan2(_-M,z-L);return Y(nt,{children:[O(l,{style:{position:"absolute",width:Q,height:1.5*h,backgroundColor:p,left:L,top:M,opacity:.15,transform:[{translateY:-.75*h},{rotate:`${V}rad`}]}}),O(l,{style:{position:"absolute",width:Q,height:.8*h,backgroundColor:c,left:L,top:M,opacity:.5,transform:[{translateY:-.4*h},{rotate:`${V}rad`}]}}),[.3,.6].map((tt,Yt)=>O(l,{style:{position:"absolute",width:1*h,height:1*h,borderRadius:.5*h,backgroundColor:p,left:L+(z-L)*tt,top:M+(_-M)*tt,opacity:.7}},`dot-${u}-${Yt}`))]},`connection-${u}`)}),J.map((x,u)=>{let v=x.x*e-x.size*1.5*h,F=x.y*e-x.size*1.5*h;return Y(nt,{children:[O(l,{style:{position:"absolute",width:x.size*4*h,height:x.size*4*h,borderRadius:x.size*2*h,backgroundColor:p,left:v-x.size*.5*h,top:F-x.size*.5*h,opacity:x.isActive?.2:.1}}),O(l,{style:{position:"absolute",width:x.size*3*h,height:x.size*3*h,borderRadius:x.size*1.5*h,backgroundColor:c,left:v,top:F,opacity:x.isActive?.95:.75}}),O(l,{style:{position:"absolute",width:x.size*1.5*h,height:x.size*1.5*h,borderRadius:x.size*.75*h,backgroundColor:"#fff",left:v+x.size*.75*h,top:F+x.size*.75*h,opacity:.2}}),x.isActive&&Y(ct,{children:[O(l,{style:{position:"absolute",width:x.size*5*h,height:x.size*5*h,borderRadius:x.size*2.5*h,borderWidth:.5*h,borderColor:p,backgroundColor:"transparent",left:v-x.size*1*h,top:F-x.size*1*h,opacity:.4}}),O(l,{style:{position:"absolute",width:x.size*1*h,height:x.size*1*h,borderRadius:x.size*.5*h,backgroundColor:p,left:v+x.size*1*h,top:F+x.size*1*h,opacity:.9}})]})]},`node-${u}`)})]});return y?O(l,{style:{width:e,height:e,position:"relative",alignItems:"center",justifyContent:"center"},children:C}):O(E,{size:e,glowColor:p,variant:a,children:C})},fo=K,Co=K;import{jsx as j,jsxs as mo}from"react/jsx-runtime";var Z=({size:e=24,color:t="#00D4FF",glowColor:o})=>{let r=e/24,a=t,y=o||t;return mo(l,{style:{width:e,height:e,position:"relative",alignItems:"center",justifyContent:"center"},children:[j(l,{style:{position:"absolute",width:20*r,height:20*r,borderRadius:3*r,borderWidth:1.5*r,borderColor:y,backgroundColor:"transparent",left:e/2-10*r,top:e/2-10*r,opacity:.2}}),j(l,{style:{position:"absolute",width:15*r,height:15*r,borderRadius:2.5*r,borderWidth:1.5*r,borderColor:y,backgroundColor:"transparent",left:e/2-7.5*r,top:e/2-7.5*r,opacity:.4}}),j(l,{style:{position:"absolute",width:12*r,height:12*r,borderRadius:2*r,backgroundColor:y,left:e/2-6*r,top:e/2-6*r,opacity:.15}}),j(l,{style:{position:"absolute",width:10*r,height:10*r,borderRadius:1.5*r,backgroundColor:a,left:e/2-5*r,top:e/2-5*r,opacity:.9}}),j(l,{style:{position:"absolute",width:7*r,height:7*r,borderRadius:1*r,backgroundColor:"#000",left:e/2-3.5*r,top:e/2-3.5*r,opacity:.4}}),j(l,{style:{position:"absolute",width:4*r,height:1*r,borderRadius:.5*r,backgroundColor:y,left:e/2-2*r,top:e/2-2*r,opacity:.7}}),j(l,{style:{position:"absolute",width:3*r,height:1*r,borderRadius:.5*r,backgroundColor:y,left:e/2-2*r,top:e/2,opacity:.5}}),j(l,{style:{position:"absolute",width:2*r,height:1*r,borderRadius:.5*r,backgroundColor:y,left:e/2-2*r,top:e/2+2*r,opacity:.4}}),j(l,{style:{position:"absolute",width:6*r,height:1.5*r,borderRadius:.75*r,backgroundColor:"#fff",left:e/2-3*r,top:e/2-4.5*r,opacity:.2}}),[{x:.15,y:.15},{x:.85,y:.15},{x:.15,y:.85},{x:.85,y:.85}].map((h,k)=>j(l,{style:{position:"absolute",width:1.5*r,height:1.5*r,borderRadius:.75*r,backgroundColor:y,left:h.x*e-.75*r,top:h.y*e-.75*r,opacity:.6}},`corner-${k}`))]})},vo=Z,zo=Z;import{jsx as T,jsxs as Fo}from"react/jsx-runtime";var Ro=({size:e=24,color:t="#00D4FF",glowColor:o})=>{let r=e/24,a=t,y=o||t;return Fo(l,{style:{width:e,height:e,position:"relative",alignItems:"center",justifyContent:"center"},children:[T(l,{style:{position:"absolute",width:14*r,height:10*r,borderRadius:2*r,backgroundColor:y,left:e/2-7*r+3*r,top:e/2-5*r+3*r,opacity:.2}}),T(l,{style:{position:"absolute",width:14*r,height:10*r,borderRadius:2*r,backgroundColor:y,left:e/2-7*r+1.5*r,top:e/2-5*r+1.5*r,opacity:.35}}),T(l,{style:{position:"absolute",width:14*r,height:10*r,borderRadius:2*r,borderWidth:1.5*r,borderColor:a,backgroundColor:"transparent",left:e/2-7*r,top:e/2-5*r,opacity:.9}}),T(l,{style:{position:"absolute",width:6*r,height:1*r,borderRadius:.5*r,backgroundColor:a,left:e/2-5*r,top:e/2-2*r,opacity:.7}}),T(l,{style:{position:"absolute",width:4*r,height:1*r,borderRadius:.5*r,backgroundColor:a,left:e/2-5*r,top:e/2,opacity:.5}}),T(l,{style:{position:"absolute",width:8*r,height:8*r,borderRadius:4*r,backgroundColor:a,right:e*.1,top:e*.08,opacity:.9,alignItems:"center",justifyContent:"center"},children:T(l,{style:{width:3*r,height:4*r,borderRadius:.5*r,backgroundColor:"#000",opacity:.6}})}),T(l,{style:{position:"absolute",width:6*r,height:6*r,borderRadius:3*r,borderWidth:1*r,borderColor:y,borderRightColor:"transparent",borderBottomColor:"transparent",left:e*.08,bottom:e*.12,opacity:.6,transform:[{rotate:"-45deg"}]}}),T(l,{style:{position:"absolute",width:0,height:0,borderLeftWidth:2*r,borderRightWidth:2*r,borderBottomWidth:3*r,borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:y,left:e*.18,bottom:e*.22,opacity:.6,transform:[{rotate:"45deg"}]}})]})};import{jsx as A,jsxs as Bo}from"react/jsx-runtime";var Io=({size:e=24,color:t="#F59E0B",glowColor:o})=>{let r=e/24,a=t,y=o||t,h=e/2,k=e/2+1*r,c=7*r;return Bo(l,{style:{width:e,height:e,position:"relative",alignItems:"center",justifyContent:"center"},children:[A(l,{style:{position:"absolute",width:c*2,height:c*2,borderRadius:c,borderWidth:1.5*r,borderColor:a,backgroundColor:"transparent",left:h-c,top:k-c,opacity:.9}}),A(l,{style:{position:"absolute",width:10*r,height:10*r,borderRadius:5*r,backgroundColor:y,left:h-5*r,top:k-5*r,opacity:.15}}),A(l,{style:{position:"absolute",width:4*r,height:3*r,borderRadius:1*r,backgroundColor:a,left:h-2*r,top:k-c-3*r,opacity:.9}}),A(l,{style:{position:"absolute",width:2*r,height:2*r,backgroundColor:a,left:h-1*r,top:k-c-.5*r,opacity:.9}}),A(l,{style:{position:"absolute",width:1.5*r,height:5*r,borderRadius:1*r,backgroundColor:a,left:h-.75*r,top:k-5*r,opacity:.9,transform:[{rotate:"-45deg"}],transformOrigin:"bottom center"}}),A(l,{style:{position:"absolute",width:2*r,height:2*r,borderRadius:1*r,backgroundColor:a,left:h-1*r,top:k-1*r,opacity:.9}})]})};import{Fragment as Go}from"react";import{jsx as d,jsxs as W}from"react/jsx-runtime";var f=({width:e,height:t,viewBox:o,children:r,style:a,...y})=>{let[,,h,k]=o.split(" ").map(Number),c=e/h,p=t/k;return d(l,{style:[{width:e,height:t,position:"relative",overflow:"hidden"},a],...y,children:d(l,{style:{transform:[{scaleX:c},{scaleY:p}],transformOrigin:"top left",width:h,height:k},children:r})})},n=({x1:e,y1:t,x2:o,y2:r,stroke:a,strokeWidth:y=2})=>{let h=Math.sqrt(Math.pow(o-e,2)+Math.pow(r-t,2)),k=Math.atan2(r-t,o-e)*(180/Math.PI);return d(l,{style:{position:"absolute",left:e,top:t-y/2,width:h,height:y,backgroundColor:a,transform:[{rotate:`${k}deg`}],transformOrigin:"left center"}})},R=({cx:e,cy:t,r:o,fill:r,stroke:a,strokeWidth:y=2})=>{let h=o*2;return d(l,{style:{position:"absolute",left:e-o,top:t-o,width:h,height:h,borderRadius:o,backgroundColor:r||"transparent",borderColor:a,borderWidth:a?y:0}})},w=({x:e,y:t,width:o,height:r,fill:a,stroke:y,strokeWidth:h=2,rx:k=0})=>d(l,{style:{position:"absolute",left:e,top:t,width:o,height:r,backgroundColor:a||"transparent",borderColor:y,borderWidth:y?h:0,borderRadius:k}}),Oo=({size:e=1,color:t="currentColor",strokeWidth:o=2})=>{let r=.4666666666666667;return o=4*r,W(l,{style:{position:"relative",width:e,height:e},children:[d(l,{style:{position:"absolute",width:5*r,height:5*r,borderRadius:2.5*r,backgroundColor:t,bottom:0,left:e/2-2.5*r,zIndex:10}}),d(l,{style:{position:"absolute",bottom:-8*r,left:e/2-10*r,transform:[{rotate:"180deg"}]},children:d(l,{style:{width:20*r,height:20*r,borderRadius:10*r,borderWidth:o*r,borderColor:t,borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})}),d(l,{style:{position:"absolute",bottom:-14*r,left:e/2-17*r,transform:[{rotate:"180deg"}]},children:d(l,{style:{width:34*r,height:34*r,borderRadius:17*r,borderWidth:o*r,borderColor:t,borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})}),d(l,{style:{position:"absolute",bottom:-22*r,left:e/2-25*r,transform:[{rotate:"180deg"}]},children:d(l,{style:{width:50*r,height:50*r,borderRadius:25*r,borderWidth:o*r,borderColor:t,borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})})]})};var xt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:8,cy:15,r:4,stroke:t,strokeWidth:o}),d(R,{cx:16,cy:15,r:4,stroke:t,strokeWidth:o}),d(R,{cx:12,cy:11,r:4,stroke:t,strokeWidth:o}),d(w,{x:8,y:13,width:8,height:6,fill:"white",stroke:"white"})]}),pt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:5,y:15,width:6,height:6,rx:2,stroke:t,strokeWidth:o}),d(w,{x:13,y:3,width:6,height:6,rx:2,stroke:t,strokeWidth:o}),d(n,{x1:11,y1:15,x2:13,y2:9,stroke:t,strokeWidth:o})]}),gt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:3,y:9,width:5,height:6,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:9,x2:11,y2:6,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:15,x2:11,y2:18,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:9,x2:8,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:13,y1:9,x2:13,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:16,y1:7,x2:16,y2:17,stroke:t,strokeWidth:o}),d(n,{x1:19,y1:5,x2:19,y2:19,stroke:t,strokeWidth:o})]});var bt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:7,y:11,width:10,height:10,rx:2,stroke:t,strokeWidth:o}),d(n,{x1:9,y1:11,x2:9,y2:6,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:11,x2:12,y2:4,stroke:t,strokeWidth:o}),d(n,{x1:15,y1:11,x2:15,y2:6,stroke:t,strokeWidth:o}),d(n,{x1:7,y1:14,x2:4,y2:12,stroke:t,strokeWidth:o})]});var jo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:5,y:3,width:14,height:4,rx:2,stroke:t,strokeWidth:o}),d(w,{x:5,y:7,width:14,height:4,stroke:t,strokeWidth:o}),d(w,{x:5,y:11,width:14,height:8,rx:2,stroke:t,strokeWidth:o}),d(n,{x1:5,y1:7,x2:19,y2:7,stroke:t,strokeWidth:o}),d(n,{x1:5,y1:11,x2:19,y2:11,stroke:t,strokeWidth:o})]}),Lo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>{let a=.6666666666666666;return d(l,{style:{width:e*1.5,height:e*1,alignItems:"center",justifyContent:"center"},children:W(l,{style:{transform:[{rotate:"20deg"}],position:"relative"},children:[d(l,{style:{width:20*a,height:26*a,backgroundColor:t,borderRadius:10*a,borderTopLeftRadius:10*a,borderTopRightRadius:10*a,borderBottomLeftRadius:12*a,borderBottomRightRadius:12*a}}),d(l,{style:{position:"absolute",width:12*a,height:8*a,backgroundColor:t,borderRadius:6*a,top:-4*a,left:4*a}}),d(l,{style:{position:"absolute",width:2*a,height:8*a,backgroundColor:t,top:-10*a,left:6*a,transform:[{rotate:"-15deg"}]}}),d(l,{style:{position:"absolute",width:2*a,height:8*a,backgroundColor:t,top:-10*a,right:6*a,transform:[{rotate:"15deg"}]}}),d(l,{style:{position:"absolute",width:3*a,height:3*a,backgroundColor:"#fff",borderRadius:1.5*a,top:-2*a,left:6*a}}),d(l,{style:{position:"absolute",width:3*a,height:3*a,backgroundColor:"#fff",borderRadius:1.5*a,top:-2*a,right:6*a}}),[0,1,2].map(y=>W(Go,{children:[d(l,{style:{position:"absolute",width:8*a,height:2*a,backgroundColor:t,top:(6+y*6)*a,left:-6*a,transform:[{rotate:"-45deg"}]}}),d(l,{style:{position:"absolute",width:8*a,height:2*a,backgroundColor:t,top:(6+y*6)*a,right:-6*a,transform:[{rotate:"45deg"}]}})]},y))]})})},Mo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>{let a=.6666666666666666;return W(l,{style:{width:e,height:e,alignItems:"center",justifyContent:"center"},children:[d(l,{style:{width:28*a,height:18*a,backgroundColor:t,borderRadius:2*a,marginBottom:-2*a}}),d(l,{style:{position:"absolute",width:24*a,height:14*a,backgroundColor:"#fff",borderRadius:1*a,top:11*a,opacity:.2}}),d(l,{style:{width:36*a,height:3*a,backgroundColor:t,borderRadius:1*a}}),d(l,{style:{position:"absolute",width:8*a,height:1*a,backgroundColor:"#fff",bottom:17*a,opacity:.3}})]})},To=({size:e=24,color:t=ot.env,strokeWidth:o=2,...r})=>{let a=e/24,y=18*a;return W(l,{style:{width:e,height:e},children:[d(l,{style:{position:"absolute",width:y,height:y,borderWidth:2*a,borderColor:t,borderRadius:y/2,top:(e-y)/2,left:(e-y)/2,backgroundColor:ot.blackTint1,shadowColor:t,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4*a}}),d(l,{style:{position:"absolute",width:y,height:y,borderWidth:2*a,borderColor:t,borderRadius:y/2,top:(e-y)/2,left:(e-y)/2,transform:[{scaleX:.45}],opacity:.6}}),d(l,{style:{position:"absolute",width:y,height:y,borderWidth:2*a,borderColor:t,borderRadius:y/2,top:(e-y)/2,left:(e-y)/2,transform:[{scaleX:1.33},{scaleY:.6}],opacity:.6}})]})};var ut=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:12,x2:11,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:11,y1:15,x2:16,y2:9,stroke:t,strokeWidth:o})]});var No=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:5,y:2,width:14,height:20,rx:1,stroke:t,strokeWidth:o}),d(n,{x1:14,y1:2,x2:19,y2:7,stroke:t,strokeWidth:o}),d(n,{x1:14,y1:2,x2:14,y2:7,stroke:t,strokeWidth:o}),d(n,{x1:14,y1:7,x2:19,y2:7,stroke:t,strokeWidth:o}),d(n,{x1:9,y1:11,x2:9,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:9,y1:11,x2:10,y2:11,stroke:t,strokeWidth:o}),d(n,{x1:9,y1:15,x2:10,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:15,y1:11,x2:15,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:14,y1:11,x2:15,y2:11,stroke:t,strokeWidth:o}),d(n,{x1:14,y1:15,x2:15,y2:15,stroke:t,strokeWidth:o})]});var _o=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:5,y:7,width:14,height:14,rx:1,stroke:t,strokeWidth:o}),d(n,{x1:3,y1:7,x2:21,y2:7,stroke:t,strokeWidth:o}),d(w,{x:9,y:3,width:6,height:4,rx:1,stroke:t,strokeWidth:o}),d(n,{x1:10,y1:11,x2:10,y2:17,stroke:t,strokeWidth:o}),d(n,{x1:14,y1:11,x2:14,y2:17,stroke:t,strokeWidth:o})]});var Wt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:9,cy:8,r:3,stroke:t,strokeWidth:o}),d(l,{style:{position:"absolute",left:4,top:14,width:10,height:6,borderRadius:5,borderWidth:o,borderColor:t,backgroundColor:"transparent"}}),d(R,{cx:16,cy:7,r:2,stroke:t,strokeWidth:o}),d(l,{style:{position:"absolute",left:13,top:12,width:6,height:8,borderRadius:3,borderWidth:o,borderColor:t,backgroundColor:"transparent"}})]});var $o=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:5,cy:12,r:3,stroke:t,strokeWidth:o}),d(R,{cx:19,cy:12,r:3,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:12,x2:16,y2:12,stroke:t,strokeWidth:o}),d(n,{x1:13,y1:9,x2:16,y2:12,stroke:t,strokeWidth:o}),d(n,{x1:13,y1:15,x2:16,y2:12,stroke:t,strokeWidth:o})]}),wt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(n,{x1:12,y1:3,x2:3,y2:20,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:3,x2:21,y2:20,stroke:t,strokeWidth:o}),d(n,{x1:3,y1:20,x2:21,y2:20,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:9,x2:12,y2:13,stroke:t,strokeWidth:o}),d(R,{cx:12,cy:16,r:1,fill:t})]}),Ao=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:5,y:11,width:14,height:10,rx:1,stroke:t,strokeWidth:o}),d(n,{x1:7,y1:11,x2:7,y2:7,stroke:t,strokeWidth:o}),d(n,{x1:7,y1:7,x2:14,y2:7,stroke:t,strokeWidth:o}),d(R,{cx:12,cy:16,r:1,fill:t})]}),Do=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:3,y:3,width:18,height:18,rx:1,stroke:t,strokeWidth:o}),d(R,{cx:8,cy:8,r:2,fill:t}),d(n,{x1:3,y1:21,x2:10,y2:14,stroke:t,strokeWidth:o}),d(n,{x1:10,y1:14,x2:21,y2:21,stroke:t,strokeWidth:o})]}),So=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:5,y:3,width:14,height:18,stroke:t,strokeWidth:o}),d(w,{x:7,y:5,width:2,height:2,fill:t}),d(w,{x:7,y:17,width:2,height:2,fill:t}),d(w,{x:15,y:5,width:2,height:2,fill:t}),d(w,{x:15,y:17,width:2,height:2,fill:t}),d(n,{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:o})]}),Eo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(n,{x1:8,y1:6,x2:8,y2:18,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:6,x2:18,y2:3,stroke:t,strokeWidth:o}),d(n,{x1:18,y1:3,x2:18,y2:8,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:10,x2:18,y2:8,stroke:t,strokeWidth:o}),d(R,{cx:8,cy:18,r:2,fill:t})]}),ft=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:12,cy:13,r:9,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:2,x2:12,y2:4,stroke:t,strokeWidth:o}),d(n,{x1:9,y1:2,x2:15,y2:2,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:13,x2:12,y2:8,stroke:t,strokeWidth:o})]}),Ct=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:6,y:2,width:12,height:20,rx:2,stroke:t,strokeWidth:o}),d(n,{x1:6,y1:5,x2:18,y2:5,stroke:t,strokeWidth:o}),d(n,{x1:6,y1:19,x2:18,y2:19,stroke:t,strokeWidth:o}),d(n,{x1:10,y1:20.5,x2:14,y2:20.5,stroke:t,strokeWidth:o})]});var mt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:3,y:5,width:18,height:14,rx:1,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:15,x2:12,y2:19,stroke:t,strokeWidth:o})]}),Po=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:8,x2:12,y2:12,stroke:t,strokeWidth:o}),d(l,{style:{position:"absolute",left:11,top:15,width:2,height:2,borderRadius:1,backgroundColor:t}})]});var Xo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(n,{x1:12,y1:3,x2:12,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:11,x2:12,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:16,y1:11,x2:12,y2:15,stroke:t,strokeWidth:o}),d(n,{x1:4,y1:17,x2:20,y2:17,stroke:t,strokeWidth:o}),d(n,{x1:4,y1:17,x2:4,y2:21,stroke:t,strokeWidth:o}),d(n,{x1:20,y1:17,x2:20,y2:21,stroke:t,strokeWidth:o}),d(n,{x1:4,y1:21,x2:20,y2:21,stroke:t,strokeWidth:o})]});var vt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:8,y:10,width:8,height:4,rx:2,stroke:t,strokeWidth:o}),d(w,{x:4,y:10,width:8,height:4,rx:2,stroke:t,strokeWidth:o}),d(w,{x:12,y:10,width:8,height:4,rx:2,stroke:t,strokeWidth:o})]});var Yo=_o,Ho=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(n,{x1:12,y1:15,x2:12,y2:3,stroke:t,strokeWidth:o}),d(n,{x1:8,y1:7,x2:12,y2:3,stroke:t,strokeWidth:o}),d(n,{x1:16,y1:7,x2:12,y2:3,stroke:t,strokeWidth:o}),d(n,{x1:4,y1:17,x2:20,y2:17,stroke:t,strokeWidth:o}),d(n,{x1:4,y1:17,x2:4,y2:21,stroke:t,strokeWidth:o}),d(n,{x1:20,y1:17,x2:20,y2:21,stroke:t,strokeWidth:o}),d(n,{x1:4,y1:21,x2:20,y2:21,stroke:t,strokeWidth:o})]});var Uo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:12,cy:7,r:4,stroke:t,strokeWidth:o}),d(l,{style:{position:"absolute",left:5,top:14,width:14,height:7,borderTopLeftRadius:7,borderTopRightRadius:7,borderWidth:o,borderColor:t,borderBottomColor:"transparent",backgroundColor:"transparent"}})]}),qo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(w,{x:5,y:11,width:14,height:10,rx:1,stroke:t,strokeWidth:o}),d(l,{style:{position:"absolute",left:7,top:4,width:10,height:9,borderTopLeftRadius:5,borderTopRightRadius:5,borderWidth:o,borderColor:t,borderBottomColor:"transparent",backgroundColor:"transparent"}}),d(l,{style:{position:"absolute",left:11,top:15,width:2,height:3,backgroundColor:t}})]}),Jo=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(R,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),d(n,{x1:12,y1:2,x2:12,y2:12,stroke:t,strokeWidth:o})]});var zt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>W(f,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[d(n,{x1:3,y1:3,x2:3,y2:21,stroke:t,strokeWidth:o}),d(n,{x1:3,y1:21,x2:21,y2:21,stroke:t,strokeWidth:o}),d(w,{x:7,y:12,width:3,height:9,fill:t}),d(w,{x:12,y:8,width:3,height:13,fill:t}),d(w,{x:17,y:15,width:3,height:6,fill:t})]});var Ko=zt;var Zo=xt;var Qo=pt;var Vo=Ct;var te=ft,oe=mt;var ee=Wt,re=gt;import{jsx as i,jsxs as b}from"react/jsx-runtime";var g=({width:e,height:t,viewBox:o,children:r,style:a,...y})=>{let[,,h,k]=o.split(" ").map(Number),c=e/h,p=t/k;return i(l,{style:[{width:e,height:t,position:"relative",overflow:"hidden"},a],...y,children:i(l,{style:{transform:[{scaleX:c},{scaleY:p}],transformOrigin:"top left",width:h,height:k},children:r})})},s=({x1:e,y1:t,x2:o,y2:r,stroke:a,strokeWidth:y=2})=>{let h=Math.sqrt(Math.pow(o-e,2)+Math.pow(r-t,2)),k=Math.atan2(r-t,o-e)*(180/Math.PI);return i(l,{style:{position:"absolute",left:e,top:t-y/2,width:h,height:y,backgroundColor:a,transform:[{rotate:`${k}deg`}],transformOrigin:"left center"}})},m=({cx:e,cy:t,r:o,fill:r,stroke:a,strokeWidth:y=2})=>i(l,{style:{position:"absolute",left:e-o,top:t-o,width:o*2,height:o*2,borderRadius:o,backgroundColor:r||"transparent",borderColor:a,borderWidth:a?y:0}}),I=({x:e,y:t,width:o,height:r,fill:a,stroke:y,strokeWidth:h=2,rx:k=0,ry:c})=>i(l,{style:{position:"absolute",left:e,top:t,width:o,height:r,borderRadius:c!==void 0?Math.max(k,c):k,backgroundColor:a||"transparent",borderColor:y,borderWidth:y?h:0}}),ie=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:3,y1:12,x2:7,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:7,y1:12,x2:10,y2:6,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:6,x2:14,y2:18,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:18,x2:17,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:17,y1:12,x2:21,y2:12,stroke:t,strokeWidth:o})]}),Ft=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:12,y1:3,x2:3,y2:20,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:3,x2:21,y2:20,stroke:t,strokeWidth:o}),i(s,{x1:3,y1:20,x2:21,y2:20,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:9,x2:12,y2:13,stroke:t,strokeWidth:o}),i(m,{cx:12,cy:16,r:1,fill:t})]}),Rt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:20,y1:6,x2:9,y2:17,stroke:t,strokeWidth:o}),i(s,{x1:9,y1:17,x2:4,y2:12,stroke:t,strokeWidth:o})]}),se=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),i(s,{x1:16,y1:10,x2:11,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:11,y1:15,x2:8,y2:12,stroke:t,strokeWidth:o})]}),he=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:6,y1:9,x2:12,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:15,x2:18,y2:9,stroke:t,strokeWidth:o})]}),Bt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:15,y1:18,x2:9,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:9,y1:12,x2:15,y2:6,stroke:t,strokeWidth:o})]}),It=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:9,y1:18,x2:15,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:15,y1:12,x2:9,y2:6,stroke:t,strokeWidth:o})]}),de=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:18,y1:15,x2:12,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:9,x2:6,y2:15,stroke:t,strokeWidth:o})]}),Gt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:6,x2:12,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:12,x2:16,y2:14,stroke:t,strokeWidth:o})]}),Ot=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:8,y:8,width:12,height:12,rx:1,stroke:t,strokeWidth:o}),i(l,{style:{position:"absolute",left:4,top:4,width:12,height:12,borderRadius:1,borderWidth:o,borderColor:t,borderRightColor:"transparent",borderBottomColor:"transparent",backgroundColor:"transparent"}})]}),ae=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:12,y1:20,x2:20,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:16,y1:4,x2:4,y2:16,stroke:t,strokeWidth:o}),i(s,{x1:4,y1:16,x2:4,y2:20,stroke:t,strokeWidth:o}),i(s,{x1:4,y1:20,x2:8,y2:20,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:2,x2:22,y2:10,stroke:t,strokeWidth:o})]}),le=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(l,{style:{position:"absolute",left:2,top:8,width:20,height:8,borderWidth:o,borderColor:t,borderRadius:10}}),i(m,{cx:12,cy:12,r:3,stroke:t,strokeWidth:o})]}),ye=({size:e=24,color:t="currentColor",strokeWidth:o=2,active:r=false,...a})=>i(g,{width:e,height:e,viewBox:"0 0 24 24",...a,children:b(l,{style:{position:"absolute",width:24,height:24,transform:r?[{rotate:"-45deg"},{scale:.92}]:[{rotate:"0deg"},{scale:1}]},children:[i(s,{x1:2.97,y1:21.03,x2:8.18,y2:15.82,stroke:t,strokeWidth:o}),i(s,{x1:4.4,y1:10.81,x2:13.19,y2:19.6,stroke:t,strokeWidth:o}),i(s,{x1:5.17,y1:10.54,x2:11.43,y2:8.83,stroke:t,strokeWidth:o}),i(s,{x1:13.46,y1:18.83,x2:15.17,y2:12.57,stroke:t,strokeWidth:o}),i(l,{style:{position:"absolute",left:11.15,top:4.4,width:11.38,height:5.52,borderWidth:o,borderColor:t,borderRadius:2.07,transform:[{rotate:"-45deg"}]}})]})});var ne=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:17.94,y1:17.94,x2:14.12,y2:14.12,stroke:t,strokeWidth:o}),i(s,{x1:9.88,y1:9.88,x2:6.06,y2:6.06,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:21,x2:3,y2:3,stroke:t,strokeWidth:o}),i(l,{style:{position:"absolute",left:2,top:8,width:20,height:8,borderWidth:o,borderColor:t,borderRadius:10}})]}),jt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:4,y:2,width:12,height:20,rx:2,stroke:t,strokeWidth:o}),i(s,{x1:16,y1:2,x2:20,y2:6,stroke:t,strokeWidth:o}),i(s,{x1:20,y1:6,x2:20,y2:22,stroke:t,strokeWidth:o}),i(s,{x1:20,y1:22,x2:4,y2:22,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:9,x2:8,y2:11,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:11,x2:10,y2:13,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:9,x2:16,y2:11,stroke:t,strokeWidth:o}),i(s,{x1:16,y1:11,x2:14,y2:13,stroke:t,strokeWidth:o})]}),ce=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:4,y:2,width:12,height:20,rx:2,stroke:t,strokeWidth:o}),i(s,{x1:16,y1:2,x2:20,y2:6,stroke:t,strokeWidth:o}),i(s,{x1:20,y1:6,x2:20,y2:22,stroke:t,strokeWidth:o}),i(s,{x1:20,y1:22,x2:4,y2:22,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:12,x2:16,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:16,x2:16,y2:16,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:8,x2:13,y2:8,stroke:t,strokeWidth:o})]}),ke=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:22,y1:3,x2:2,y2:3,stroke:t,strokeWidth:o}),i(s,{x1:2,y1:3,x2:10,y2:12.5,stroke:t,strokeWidth:o}),i(s,{x1:22,y1:3,x2:14,y2:12.5,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:12.5,x2:10,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:12.5,x2:14,y2:21,stroke:t,strokeWidth:o})]}),xe=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:10,y1:2,x2:10,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:2,x2:14,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:2,x2:16,y2:2,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:9,x2:4,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:9,x2:20,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:4,y1:21,x2:20,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:16,x2:16,y2:16,stroke:t,strokeWidth:o})]}),pe=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:6,y1:3,x2:6,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:6,y1:9,x2:18,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:18,y1:9,x2:18,y2:6,stroke:t,strokeWidth:o}),i(m,{cx:6,cy:18,r:3,stroke:t,strokeWidth:o}),i(m,{cx:18,cy:6,r:3,stroke:t,strokeWidth:o}),i(m,{cx:6,cy:6,r:3,stroke:t,strokeWidth:o})]}),Lt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:3,y:6,width:18,height:12,rx:2,stroke:t,strokeWidth:o}),i(s,{x1:3,y1:12,x2:21,y2:12,stroke:t,strokeWidth:o}),i(m,{cx:6,cy:15,r:1,fill:t}),i(m,{cx:9,cy:15,r:.5,fill:t}),i(s,{x1:18,y1:9,x2:21,y2:9,stroke:t,strokeWidth:o})]}),ge=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:4,y1:9,x2:20,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:4,y1:15,x2:20,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:3,x2:8,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:16,y1:3,x2:14,y2:21,stroke:t,strokeWidth:o})]}),be=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:16,x2:12,y2:12,stroke:t,strokeWidth:o}),i(m,{cx:12,cy:8,r:1,fill:t})]}),Mt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:7,cy:12,r:5,stroke:t,strokeWidth:o}),i(m,{cx:7,cy:12,r:1.5,fill:t}),i(s,{x1:12,y1:12,x2:21,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:12,x2:19,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:12,x2:21,y2:14,stroke:t,strokeWidth:o})]}),ue=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:12,y1:2,x2:2,y2:7,stroke:t,strokeWidth:o}),i(s,{x1:2,y1:7,x2:12,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:12,x2:22,y2:7,stroke:t,strokeWidth:o}),i(s,{x1:22,y1:7,x2:12,y2:2,stroke:t,strokeWidth:o}),i(s,{x1:2,y1:12,x2:12,y2:17,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:17,x2:22,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:2,y1:17,x2:12,y2:22,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:22,x2:22,y2:17,stroke:t,strokeWidth:o})]}),We=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>i(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:i(s,{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:o})}),Tt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:5,y1:9,x2:5,y2:5,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:5,x2:9,y2:5,stroke:t,strokeWidth:o}),i(s,{x1:15,y1:5,x2:19,y2:5,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:5,x2:19,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:15,x2:5,y2:19,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:19,x2:9,y2:19,stroke:t,strokeWidth:o}),i(s,{x1:15,y1:19,x2:19,y2:19,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:19,x2:19,y2:15,stroke:t,strokeWidth:o})]});var Nt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),i(m,{cx:8.5,cy:8.5,r:1.5,fill:t}),i(m,{cx:15.5,cy:8.5,r:1.5,fill:t}),i(m,{cx:8.5,cy:15.5,r:1.5,fill:t}),i(m,{cx:15.5,cy:15.5,r:1.5,fill:t})]}),we=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:6,y:4,width:4,height:16,stroke:t,strokeWidth:o,fill:t}),i(I,{x:14,y:4,width:4,height:16,stroke:t,strokeWidth:o,fill:t})]}),fe=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:5,y1:3,x2:5,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:3,x2:19,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:12,x2:5,y2:21,stroke:t,strokeWidth:o})]}),Ce=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:12,y1:5,x2:12,y2:19,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:o})]}),me=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>{let a=15.162277660168378,y=12-2.846049894151541-3.0004;return b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(l,{style:{position:"absolute",left:5,top:5,width:14,height:14,borderRadius:7,borderWidth:2.4,borderTopColor:t,borderLeftColor:t,borderBottomColor:t,borderRightColor:"transparent"}}),i(l,{style:{position:"absolute",left:a,top:y,width:0,height:0,borderTopWidth:3.0004,borderBottomWidth:3.0004,borderLeftWidth:5.2,borderTopColor:"transparent",borderBottomColor:"transparent",borderLeftColor:t,transform:[{rotate:"45deg"}]}})]})},ve=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:3,y1:10,x2:12,y2:3,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:3,x2:21,y2:10,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:9,x2:5,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:9,x2:19,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:21,x2:19,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:21,x2:10,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:15,x2:14,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:15,x2:14,y2:21,stroke:t,strokeWidth:o})]}),ze=ve,Fe=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:11,cy:11,r:8,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:21,x2:16.65,y2:16.65,stroke:t,strokeWidth:o})]}),Re=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:12,cy:12,r:3,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:1,x2:12,y2:3,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:21,x2:12,y2:23,stroke:t,strokeWidth:o}),i(s,{x1:4.22,y1:4.22,x2:5.64,y2:5.64,stroke:t,strokeWidth:o}),i(s,{x1:18.36,y1:18.36,x2:19.78,y2:19.78,stroke:t,strokeWidth:o}),i(s,{x1:1,y1:12,x2:3,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:12,x2:23,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:4.22,y1:19.78,x2:5.64,y2:18.36,stroke:t,strokeWidth:o}),i(s,{x1:18.36,y1:5.64,x2:19.78,y2:4.22,stroke:t,strokeWidth:o})]}),_t=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:12,y1:2,x2:5,y2:5,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:5,x2:5,y2:11,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:11,x2:12,y2:22,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:22,x2:19,y2:11,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:11,x2:19,y2:5,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:5,x2:12,y2:2,stroke:t,strokeWidth:o})]}),$t=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:10,y:2,width:4,height:18,rx:2,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:4,x2:16,y2:4,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:14,x2:14,y2:14,stroke:t,strokeWidth:o}),i(I,{x:11,y:15,width:2,height:4,fill:t})]}),At=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:3,y1:6,x2:21,y2:6,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:6,x2:19,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:19,y1:21,x2:5,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:21,x2:5,y2:6,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:11,x2:10,y2:17,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:11,x2:14,y2:17,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:6,x2:8,y2:4,stroke:t,strokeWidth:o}),i(s,{x1:8,y1:4,x2:16,y2:4,stroke:t,strokeWidth:o}),i(s,{x1:16,y1:4,x2:16,y2:6,stroke:t,strokeWidth:o})]}),Dt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:18,y1:6,x2:6,y2:18,stroke:t,strokeWidth:o}),i(s,{x1:6,y1:6,x2:18,y2:18,stroke:t,strokeWidth:o})]}),Be=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),i(s,{x1:15,y1:9,x2:9,y2:15,stroke:t,strokeWidth:o}),i(s,{x1:9,y1:9,x2:15,y2:15,stroke:t,strokeWidth:o})]}),St=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:13,y1:2,x2:3,y2:14,stroke:t,strokeWidth:o}),i(s,{x1:3,y1:14,x2:10,y2:14,stroke:t,strokeWidth:o}),i(s,{x1:10,y1:14,x2:11,y2:22,stroke:t,strokeWidth:o}),i(s,{x1:11,y1:22,x2:21,y2:10,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:10,x2:14,y2:10,stroke:t,strokeWidth:o}),i(s,{x1:14,y1:10,x2:13,y2:2,stroke:t,strokeWidth:o})]}),Et=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>i(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:i(I,{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:o})}),Pt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:o}),i(s,{x1:9,y1:12,x2:11,y2:14,stroke:t,strokeWidth:o}),i(s,{x1:11,y1:14,x2:15,y2:10,stroke:t,strokeWidth:o})]}),Xt=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:5,y1:3,x2:9,y2:3,stroke:t,strokeWidth:o}),i(s,{x1:15,y1:3,x2:19,y2:3,stroke:t,strokeWidth:o}),i(s,{x1:5,y1:21,x2:9,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:15,y1:21,x2:19,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:3,y1:5,x2:3,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:3,y1:15,x2:3,y2:19,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:5,x2:21,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:15,x2:21,y2:19,stroke:t,strokeWidth:o})]}),Ie=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(s,{x1:21,y1:16,x2:21,y2:8,stroke:t,strokeWidth:o}),i(s,{x1:21,y1:8,x2:12,y2:3,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:3,x2:3,y2:8,stroke:t,strokeWidth:o}),i(s,{x1:3,y1:8,x2:3,y2:16,stroke:t,strokeWidth:o}),i(s,{x1:3,y1:16,x2:12,y2:21,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:21,x2:21,y2:16,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:21,x2:12,y2:12,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:12,x2:12,y2:3,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:12,x2:3,y2:8,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:12,x2:21,y2:8,stroke:t,strokeWidth:o})]}),Ge=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(I,{x:3,y:3,width:18,height:18,rx:4,ry:4,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:8,x2:12,y2:12,stroke:t,strokeWidth:o}),i(m,{cx:12,cy:16,r:1,fill:t})]}),Oe=({size:e=24,color:t="currentColor",strokeWidth:o=2,...r})=>b(g,{width:e,height:e,viewBox:"0 0 24 24",...r,children:[i(m,{cx:12,cy:12,r:10,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:13,x2:12,y2:11,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:11,x2:12,y2:9,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:9,x2:10,y2:7,stroke:t,strokeWidth:o}),i(s,{x1:12,y1:9,x2:14,y2:7,stroke:t,strokeWidth:o}),i(m,{cx:12,cy:17,r:1,fill:t})]}),je=ie,Le=Ft,Me=Ie,Te=Rt,Ne=se,_e=he,$e=Bt,Ae=It,De=de,Se=Gt,Ee=Ot,Pe=ae,Xe=le,Ye=ne,He=jt,Ue=ce,qe=ke,Je=xe,Ke=pe,Ze=Lt,Qe=ge,Ve=be,tr=Mt,or=ue,er=Tt,rr=We,ir=Nt,sr=we,hr=fe,dr=Ce,ar=me,lr=Fe,yr=Re,nr=_t,cr=$t,kr=At,xr=Dt,pr=Be,gr=St,br=Et,ur=Pt,Wr=Xt;var wr=ut;var fr=vt,Cr=bt,mr=$o;var vr=wt;var zr=Ko,Fr=zt,Rr=Zo,Br=xt;var Ir=So;var Gr=Do;var Or=Eo;var jr=Qo,Lr=pt,Mr=Vo,Tr=Ct,Nr=te,_r=ft,$r=oe,Ar=mt,Dr=ee,Sr=Wt,Er=re,Pr=gt,Xr=Lo,Yr=jo,Hr=To,Ur=Oo,qr=Po,Jr=ut,Kr=Mo,Zr=Jo,Qr=Ho,Vr=Xo,ti=qo,oi=Ao,ei=No,ri=vt,ii=bt;var si=Yo,hi=wt,di=Uo;import{NetworkIcon as ai,NETWORK_ICON_COLOR as li}from"@buoy-gg/floating-tools-core/web";import{EnvIcon as yi,ENV_ICON_COLOR as ni}from"@buoy-gg/floating-tools-core/web";import{ConsoleIcon as ci,CONSOLE_ICON_COLOR as ki}from"@buoy-gg/floating-tools-core/web";import{TimeMachineIcon as xi,TIME_MACHINE_ICON_COLOR as pi}from"@buoy-gg/floating-tools-core/web";import{ImagesIcon as gi,IMAGES_ICON_COLOR as bi}from"@buoy-gg/floating-tools-core/web";import{AssetsIcon as ui,ASSETS_ICON_COLOR as Wi}from"@buoy-gg/floating-tools-core/web";import{ImpersonateIcon as wi,IMPERSONATE_ICON_COLOR as fi}from"@buoy-gg/floating-tools-core/web";import{ImageOverlayIcon as Ci,IMAGE_OVERLAY_ICON_COLOR as mi}from"@buoy-gg/floating-tools-core/web";import{ZustandIcon as vi,ZUSTAND_ICON_COLOR as zi}from"@buoy-gg/floating-tools-core/web";import{JotaiIcon as Fi,JOTAI_ICON_COLOR as Ri}from"@buoy-gg/floating-tools-core/web";import{ActivityGlyph as Bi,AlertCircleGlyph as Ii,AlertTriangleGlyph as Gi,BookmarkGlyph as Oi,BoxGlyph as ji,BugGlyph as Li,CheckCircleGlyph as Mi,CheckGlyph as Ti,ChevronDownGlyph as Ni,ChevronLeftGlyph as _i,ChevronRightGlyph as $i,ChevronUpGlyph as Ai,ClockGlyph as Di,CopyGlyph as Si,DatabaseGlyph as Ei,DockBottomGlyph as Pi,DownloadGlyph as Xi,Edit3Glyph as Yi,EyeOffGlyph as Hi,EyeGlyph as Ui,FileJsonGlyph as qi,FileTextGlyph as Ji,FilmGlyph as Ki,FilterGlyph as Zi,FlaskConicalGlyph as Qi,FloatWindowGlyph as Vi,GitBranchGlyph as ts,GlobeGlyph as os,HashGlyph as es,HomeGlyph as rs,ImageGlyph as is,InfoGlyph as ss,KeyGlyph as hs,LayersGlyph as ds,LinkGlyph as as,LockGlyph as ls,MinusGlyph as ys,MusicGlyph as ns,NavigationGlyph as cs,PaletteGlyph as ks,PauseGlyph as xs,PlayGlyph as ps,PlusGlyph as gs,PowerGlyph as bs,RefreshCwGlyph as us,SearchGlyph as Ws,ServerGlyph as ws,SettingsGlyph as fs,SettingsSolidIcon as Cs,ShieldGlyph as ms,Trash2Glyph as vs,Trash2Glyph as zs,UnlockGlyph as Fs,UploadGlyph as Rs,UserGlyph as Bs,WifiGlyph as Is,XCircleGlyph as Gs,XGlyph as Os,ZapGlyph as js}from"@buoy-gg/floating-tools-core/web";import{SentryIcon as Ls,EventsIcon as Ms,RoutesIcon as Ts,RoutePinIcon as Ns,RoutePathIcon as _s,RouteDotIcon as $s,RouteTwoPinsIcon as As,CameraIcon as Ds,HighlightIcon as Ss,ReduxIcon as Es,StorageIcon as Ps,AskBuoyIcon as Xs,HighlighterIcon as Ys,QueryIcon as Hs,ScenariosIcon as Us}from"@buoy-gg/floating-tools-core/web";import{WifiIcon as qs,BenchmarkIcon as Js,BENCHMARK_ICON_COLOR as Ks}from"@buoy-gg/floating-tools-core/web";import{NotificationsIcon as Zs,NOTIFICATIONS_ICON_COLOR as Qs}from"@buoy-gg/floating-tools-core/web";import{monoFont as Vs}from"@buoy-gg/floating-tools-core/web";export{et as a,X as b,Ht as c,Ut as d,it as e,Kt as f,E as g,dt as h,ro as i,ho as j,yo as k,xo as l,Wo as m,K as n,fo as o,Co as p,Z as q,vo as r,zo as s,Ro as t,Io as u,Ft as v,Rt as w,Bt as x,It as y,Gt as z,Ot as A,ye as B,jt as C,Lt as D,Mt as E,Tt as F,Nt as G,ze as H,_t as I,$t as J,At as K,Dt as L,St as M,Et as N,Pt as O,Xt as P,Ge as Q,Oe as R,je as S,Le as T,Me as U,Te as V,Ne as W,_e as X,$e as Y,Ae as Z,De as _,Se as $,Ee as aa,Pe as ba,Xe as ca,Ye as da,He as ea,Ue as fa,qe as ga,Je as ha,Ke as ia,Ze as ja,Qe as ka,Ve as la,tr as ma,or as na,er as oa,rr as pa,ir as qa,sr as ra,hr as sa,dr as ta,ar as ua,lr as va,yr as wa,nr as xa,cr as ya,kr as za,xr as Aa,pr as Ba,gr as Ca,br as Da,ur as Ea,Wr as Fa,wr as Ga,fr as Ha,Cr as Ia,mr as Ja,vr as Ka,zr as La,Fr as Ma,Rr as Na,Br as Oa,Ir as Pa,Gr as Qa,Or as Ra,jr as Sa,Lr as Ta,Mr as Ua,Tr as Va,Nr as Wa,_r as Xa,$r as Ya,Ar as Za,Dr as _a,Sr as $a,Er as ab,Pr as bb,Xr as cb,Yr as db,Hr as eb,Ur as fb,qr as gb,Jr as hb,Kr as ib,Zr as jb,Qr as kb,Vr as lb,ti as mb,oi as nb,ei as ob,ri as pb,ii as qb,si as rb,hi as sb,di as tb,ai as ub,li as vb,yi as wb,ni as xb,ci as yb,ki as zb,xi as Ab,pi as Bb,gi as Cb,bi as Db,ui as Eb,Wi as Fb,wi as Gb,fi as Hb,Ci as Ib,mi as Jb,vi as Kb,zi as Lb,Fi as Mb,Ri as Nb,Bi as Ob,Ii as Pb,Gi as Qb,Oi as Rb,ji as Sb,Li as Tb,Mi as Ub,Ti as Vb,Ni as Wb,_i as Xb,$i as Yb,Ai as Zb,Di as _b,Si as $b,Ei as ac,Pi as bc,Xi as cc,Yi as dc,Hi as ec,Ui as fc,qi as gc,Ji as hc,Ki as ic,Zi as jc,Qi as kc,Vi as lc,ts as mc,os as nc,es as oc,rs as pc,is as qc,ss as rc,hs as sc,ds as tc,as as uc,ls as vc,ys as wc,ns as xc,cs as yc,ks as zc,xs as Ac,ps as Bc,gs as Cc,bs as Dc,us as Ec,Ws as Fc,ws as Gc,fs as Hc,Cs as Ic,ms as Jc,vs as Kc,zs as Lc,Fs as Mc,Rs as Nc,Bs as Oc,Is as Pc,Gs as Qc,Os as Rc,js as Sc,Ls as Tc,Ms as Uc,Ts as Vc,Ns as Wc,_s as Xc,$s as Yc,As as Zc,Ds as _c,Ss as $c,Es as ad,Ps as bd,Xs as cd,Ys as dd,Hs as ed,Us as fd,qs as gd,Js as hd,Ks as id,Zs as jd,Qs as kd,Vs as ld};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{night as k}from"./chunk-XRNB2MHO.mjs";var J=-40;var Q=20;var Z=10;function ee(){return window.innerHeight/2}function te(){const e=130;return ee()-e}function ne(){const e=te();const n=e+J;const o=n-Q;return o-Z}import{useState as oe,useRef as S,useCallback as F,useEffect as w,useMemo as ie,Children as re}from"react";import{useFloatingTools as he,FloatingToolsProvider as be,useFloatingToolsContext as we,interleaveWithDividers as ve,floatingToolsColors as p,withAlpha as P,getUserStatusConfig as ye,getGripIconLayout as xe,interpolatePosition as Se,easing as Te,VISIBLE_HANDLE_WIDTH as se,ANIMATION_DURATION as Pe}from"@buoy-gg/floating-tools-react/web/floating";import{jsx as c,jsxs as O}from"react/jsx-runtime";var W={getItem:e=>localStorage.getItem(e),setItem:(e,n)=>localStorage.setItem(e,n)};var ae="#A0A0A0";function Ce({size:e=24,color:n=P(ae,"CC")}){const o=xe(e);return c("div",{style:{width:e,height:e,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[0,1].map(a=>c("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginLeft:o.columnGap/2,marginRight:o.columnGap/2},children:[0,1,2].map(f=>c("div",{style:{width:o.dotSize,height:o.dotSize,borderRadius:o.dotSize/2,backgroundColor:n,marginTop:o.rowGap/2,marginBottom:o.rowGap/2}},f))},a))})}function le(){return c("div",{style:{width:1,height:12,backgroundColor:P(p.muted,"66"),flexShrink:0}})}var De={success:p.success,optional:p.optional,muted:p.muted,secondary:ae};function Ie({userRole:e,onPress:n}){const{isDragging:o}=we();const a=ye(e,De);const f=g=>{if(!o&&n){g.stopPropagation();n()}};return O("button",{role:"button","aria-label":`User status: ${a.label}`,onClick:f,style:{display:"flex",flexDirection:"row",alignItems:"center",paddingTop:6,paddingBottom:6,paddingLeft:8,paddingRight:8,flexShrink:0,cursor:n&&!o?"pointer":"default",background:"none",border:"none",margin:0},children:[c("div",{style:{width:6,height:6,borderRadius:3,backgroundColor:a.dotColor,marginRight:4}}),c("span",{style:{fontSize:10,fontWeight:500,color:a.textColor,letterSpacing:.3,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',lineHeight:"normal"},children:a.label})]})}function Re(){const e=S(null);const[n,o]=oe({x:0,y:0});const a=F((f,g,T)=>{if(e.current){cancelAnimationFrame(e.current)}const C=performance.now();const l=v=>{const z=v-C;const D=Math.min(z/Pe,1);const R=Se(f,g,D,Te.easeOutCubic);o(R);if(D<1){e.current=requestAnimationFrame(l)}else{o(g);T?.()}};e.current=requestAnimationFrame(l)},[]);w(()=>{return()=>{if(e.current){cancelAnimationFrame(e.current)}}},[]);return{position:n,setPosition:o,animateTo:a}}var ce=null;function Ae(){return ce}function He({id:e,revealToken:n,variant:o="bubble",dragFromSurface:a=false,accessibilityLabel:f="Drag handle",accessory:g,handleAdornment:T,enablePositionPersistence:C=true,children:l,pushToSide:v=false,suspendPointerEvents:z=false,centerOnboarding:D=false,minimizedStack:R,hasMinimizedStack:X=false}){const y=S(null);const ue=ie(()=>e?{getItem:t=>W.getItem(`@buoy/floating-tool/${e}/${t}`),setItem:(t,r)=>W.setItem(`@buoy/floating-tool/${e}/${t}`,r)}:W,[e]);const{state:i,actions:s,isInitialized:u}=he({screenSize:{width:window.innerWidth,height:window.innerHeight},enablePositionPersistence:C,storage:ue});const{position:x,setPosition:A,animateTo:h}=Re();w(()=>{if(u){A(i.position)}},[u,i.position,A]);w(()=>{if(!e)ce={x:x.x,y:x.y}},[x,e]);w(()=>{if(!u)return;const t=()=>{const m=y.current?.getBoundingClientRect();if(m&&m.width>0&&m.height>0)s.setBubbleSize({width:m.width,height:m.height})};const r=()=>{s.setScreenSize(window.innerWidth,window.innerHeight);t()};t();const b=typeof ResizeObserver!=="undefined"?new ResizeObserver(t):null;if(y.current)b?.observe(y.current);window.addEventListener("resize",r);return()=>{b?.disconnect();window.removeEventListener("resize",r)}},[s,u]);w(()=>{const t=document.createElement("div");t.style.cssText="position:fixed;top:env(safe-area-inset-top);left:env(safe-area-inset-left);visibility:hidden;pointer-events:none";document.body.appendChild(t);const r=t.getBoundingClientRect();document.body.removeChild(t);if(r.top>0||r.left>0){s.setMinPosition({x:Math.max(r.left,10),y:Math.max(r.top,10)})}},[s]);const[N,U]=oe(false);const j=F(t=>{t.stopPropagation();t.preventDefault();U(true);s.handleDragStart({clientX:t.clientX,clientY:t.clientY})},[s]);const L=S(false);const fe=t=>{if(t.button!==0||!(t.target instanceof Element))return;if(t.target.closest('button, a, input, select, textarea, [role="button"], [role="switch"], [role="slider"], [role="checkbox"], [role="radio"], [contenteditable="true"], [data-floating-accessory]'))return;L.current=true;j(t)};const B=F(t=>{const r=s.handleDragMove({clientX:t.clientX,clientY:t.clientY});if(r.isDragging){A(r.position)}},[s,A]);const I=F(t=>{U(false);const r=s.handleDragEnd({clientX:t.clientX,clientY:t.clientY});const b=L.current;L.current=false;if(r.wasTap&&!b){const m=s.toggleHideShow();h(i.position,m.targetPosition,()=>{s.commitPosition(m.targetPosition)})}else if(r.shouldHide){h(i.position,r.position,()=>{s.commitPosition(r.position)})}},[s,h,i.position]);w(()=>{if(N){window.addEventListener("pointermove",B);window.addEventListener("pointerup",I);window.addEventListener("pointercancel",I);return()=>{window.removeEventListener("pointermove",B);window.removeEventListener("pointerup",I);window.removeEventListener("pointercancel",I)}}},[N,B,I]);const H=S(i.position);H.current=i.position;const M=S(i.isHidden);M.current=i.isHidden;const E=S(false);w(()=>{if(!u)return;if(v&&!E.current){if(M.current)return;E.current=true;const{targetPosition:t}=s.forceHide();h(H.current,t,()=>{})}else if(!v&&E.current){E.current=false;if(!M.current)return;const{targetPosition:t}=s.forceShow();const r=y.current?.getBoundingClientRect().width??100;const b={x:Math.max(10,Math.min(t.x,window.innerWidth-r-10)),y:t.y};h(H.current,b,()=>{s.commitPosition(b)})}},[v,u]);w(()=>{if(!D||!u)return;const t=y.current?.getBoundingClientRect().width??100;const r=y.current?.getBoundingClientRect().height??32;const b=ne();const m={x:(window.innerWidth-t)/2,y:window.innerHeight-b-r};h(H.current,m,()=>{})},[D,u]);const q=S(void 0);w(()=>{if(!u||q.current===n)return;q.current=n;if(n!==void 0&&n>0&&i.isHidden){const{targetPosition:t}=s.forceShow();h(i.position,t,()=>s.commitPosition(t))}},[n,u,i.isHidden,i.position,s,h]);const me=ie(()=>o==="strip"?re.toArray(l):ve(re.toArray(l),t=>c(le,{},t)),[l,o]);if(!u){return null}const K=Math.max(0,x.y-8);const V=Math.max(0,window.innerHeight-x.y-i.bubbleSize.height-8);const pe=K>V;return O("div",{ref:y,"data-testid":e??"buoy-floating-tool",role:"toolbar","aria-label":"Floating Tools",onPointerDown:a?fe:void 0,style:{position:"fixed",left:x.x,top:x.y,zIndex:9999,display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:p.panel,borderTopLeftRadius:X?0:6,borderTopRightRadius:6,borderBottomLeftRadius:6,borderBottomRightRadius:6,borderWidth:i.isDragging?2:1,borderTopWidth:i.isDragging?2:X?0:1,borderStyle:"solid",borderColor:i.isDragging?p.dragActive:P(p.muted,"66"),boxShadow:i.isDragging?`0 6px 12px ${P(p.dragActive,.36)}`:"0 4px 8px rgba(0, 0, 0, 0.3)",cursor:a?i.isDragging?"grabbing":"grab":void 0,userSelect:"none",touchAction:"none",pointerEvents:z?"none":"auto",...o==="strip"?{borderRadius:k.radius.card,minHeight:48,backgroundColor:k.color.surface,borderColor:i.isDragging?k.color.accentBorderStrong:k.color.separator,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.24)"}:{}},children:[R&&c("div",{style:{position:"absolute",bottom:"100%",left:-1,width:se,overflow:"visible",zIndex:1001},children:R}),O("div",{role:"button","aria-label":f,"data-testid":e?`${e}-grip`:"buoy-floating-grip",tabIndex:0,onPointerDown:j,onKeyDown:t=>{if(t.key!=="Enter"&&t.key!==" ")return;t.preventDefault();const r=s.toggleHideShow();h(i.position,r.targetPosition,()=>s.commitPosition(r.targetPosition))},style:{touchAction:"none",paddingLeft:6,paddingRight:6,paddingTop:6,paddingBottom:6,backgroundColor:P(p.muted,"1A"),display:"flex",alignItems:"center",justifyContent:"center",width:se,boxSizing:"border-box",borderRight:`1px solid ${P(p.muted,"66")}`,cursor:i.isDragging?"grabbing":"grab",...o==="strip"?{minHeight:48,backgroundColor:"transparent",borderRight:"none",flexDirection:"column"}:{}},children:[c(Ce,{size:o==="strip"?20:12}),T]}),c(be,{value:{isDragging:i.isDragging,isHidden:i.isHidden},children:c("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:6,paddingRight:8},children:me})}),!i.isHidden&&g&&c("div",{"data-floating-accessory":true,style:{position:"absolute",...pe?{bottom:"100%"}:{top:"100%"},left:0,width:"100%",maxHeight:Math.max(K,V),overflowY:"auto",zIndex:1002},children:g})]})}var d=[];var Ee=0;var $=new Set;var G=()=>$.forEach(e=>e());var Y=()=>d;var _=e=>{$.add(e);return()=>{$.delete(e)}};function ke(e){if(!e.id.trim())throw new Error("Floating tools need a non-empty id");const n={...e,revealToken:++Ee};d=d.some(o=>o.id===e.id)?d.map(o=>o.id===e.id?n:o):[...d,n];G()}function de(e){if(!d.some(n=>n.id===e))return;d=d.filter(n=>n.id!==e);G()}function Fe(e,n){if(!e.id.trim())throw new Error("Floating tools need a non-empty id");const o=`@buoy/floating-tool/${e.id}/open`;let a=false;let f=false;let g=d.some(l=>l.id===e.id);let T=Promise.resolve();const C=_(()=>{const l=d.some(v=>v.id===e.id);if(l===g)return;g=l;f=true;T=T.then(()=>n.setItem(o,l?"1":"0")).then(()=>{},()=>{})});void n.getItem(o).then(l=>{if(a||f||g||l!=="1")return;d=[...d,{...e,revealToken:0}];G()}).catch(()=>{});return()=>{a=true;C()}}import{Fragment as ze,useSyncExternalStore as Le}from"react";import{jsx as ge}from"react/jsx-runtime";function Be(){const e=Le(_,Y,Y);return ge("div",{style:{position:"fixed",inset:0,pointerEvents:"none",zIndex:1e4},children:e.map(n=>ge(ze,{children:n.render({id:n.id,revealToken:n.revealToken,dismiss:()=>de(n.id)})},n.id))})}export{J as ARROW_BOTTOM_OFFSET,Q as ARROW_HEIGHT,Z as SPACING_GAP,ee as getScreenCenterY,te as calculateTooltipPosition,ne as calculateTargetPosition,le as Divider,Ie as UserStatus,Ae as getBubbleAnchorPosition,He as FloatingTool,Y as getFloatingTools,_ as subscribeFloatingTools,ke as openFloatingTool,de as dismissFloatingTool,Fe as registerPersistentFloatingTool,Be as FloatingToolHost};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";import{c as W}from"./chunk-5KWAGM5V.mjs";import{A as Y,G as $,H as r,W as te,p as C,q as m,s as A,u as I,x as R,z as L}from"./chunk-3UTMGIUG.mjs";import{useCallback as ae,useEffect as ne,useRef as j,useState as q}from"react";var T=new Map;function se(e){try{return JSON.parse(e)}catch{return}}function ie(e,t,a={}){let[i,l]=q(()=>T.has(e)?T.get(e):t),[y,g]=q(()=>T.has(e)),c=j(e);c.current=e;let d=j(a);d.current=a,ne(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??se;return S.getItem(e).then(h=>{if(!o){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),l(u))}g(true)}}).catch(()=>{o||g(true)}),()=>{o=true}},[e]);let v=ae(o=>{l(S=>{let p=typeof o=="function"?o(S):o;T.set(c.current,p);let h=d.current.storage??W,u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(p)).catch(()=>{})}catch{}return p})},[]);return[i,v,y]}function re(){T.clear()}import{useCallback as P,useEffect as z,useMemo as le,useState as O}from"react";function oe(e,t={}){let[a,i]=O(()=>e.getAll()),[l,y]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(i),[e]);let d=t.filterItems,v=le(()=>d?d(a,l):a,[a,l,d]),o=P(()=>{e.clear()},[e]),S=P(()=>{let h=!g;e.setEnabled(h),c(h)},[e,g]),p=P(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:l,setFilter:y,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function ce(e,t){let[a,i]=O(e);return z(()=>t(i),[t]),a}import{useCallback as de,useEffect as ue,useState as K}from"react";function fe(e,t={}){let{enabled:a=true,maxEvents:i=500,select:l}=t,[y,g]=K([]),[c,d]=K(a);ue(()=>{if(!a){d(false);return}let o=null,S=null,p=e.subscribeToEvents(h=>{S=h,o==null&&(o=requestAnimationFrame(()=>{if(o=null,!S)return;let u=S;S=null,l&&(u=l(u)),u.length>i&&(u=u.slice(0,i)),g(u)}))});return d(true),()=>{p(),o!=null&&cancelAnimationFrame(o)}},[e,a,i,l]);let v=de(()=>{e.clearEvents()},[e]);return{events:y,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as ge}from"react";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),i={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[l,y,g,c,d]=await Promise.all([m.isBoldTextEnabled?.()??Promise.resolve(false),m.isGrayscaleEnabled?.()??Promise.resolve(false),m.isInvertColorsEnabled?.()??Promise.resolve(false),m.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),m.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);i.isBoldTextEnabled=l,i.isGrayscaleEnabled=y,i.isInvertColorsEnabled=g,i.isDarkerSystemColorsEnabled=c,i.prefersCrossFadeTransitions=d}if(r.OS==="android"){let l=await m.isHighTextContrastEnabled?.()??false;i.isHighTextContrastEnabled=l}return i}function k(){let e=r.constants,t={os:r.OS,version:r.Version,reactNativeVersion:e.reactNativeVersion,isTesting:r.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};return r.OS==="ios"?{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:r.isPad,isTV:r.isTV,isVision:r.isVision??false,isMacCatalyst:r.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}:r.OS==="android"?{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}:t}function M(){let e=R.get("window"),t=R.get("screen"),a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:$.get(),fontScale:$.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(r.OS==="ios")try{let i=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=i?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let i=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=i?.isEdgeToEdge??false,a.densityDpi=Math.round(e.scale*160)}catch{}return a}async function X(){return new Promise(e=>{let t=false;r.OS==="ios"?C.StatusBarManager?.getHeight?.(a=>{t||(t=true,e(a?.height??null))})??e(null):r.OS==="android"?(t=true,e(te.currentHeight??null)):(t=true,e(null)),setTimeout(()=>{t||(t=true,e(null))},100)})}function N(){let e={isRTL:L.isRTL,doLeftAndRightSwapInRTL:L.doLeftAndRightSwapInRTL};return r.OS==="android"&&(e.localeIdentifier=L.localeIdentifier),e}function V(){if(r.OS==="ios")try{return{userDefaults:C.SettingsManager?.getConstants?.()?.settings??{}}}catch{return{}}return{}}function B(){let e={};if(r.OS==="android"){let t=r.constants;e.serial=t.Serial,e.fingerprint=t.Fingerprint;try{let a=C.PlatformConstants;a?.getAndroidID&&(e.androidId=a.getAndroidID())}catch{}}return e}function he(e){let t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""].join("|"),a=0;for(let i=0;i<t.length;i++){let l=t.charCodeAt(i);a=(a<<5)-a+l,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function me(){let[e,t]=b(true),[a,i]=b(k()),[l,y]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=A.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}}),[o,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:I.currentState,isActive:I.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=ge(async()=>{t(true);let[f,n]=await Promise.all([U(),X()]);i(k()),y(M()),c(f);let s=A.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(E=>({...E,height:n})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:n,screen:s})=>{y(E=>({...E,window:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},screen:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},isLandscape:n.width>n.height,isPortrait:n.height>n.width}))});return()=>f.remove()},[]),w(()=>{let f=A.addChangeListener(({colorScheme:n})=>{let s=n??null;v({colorScheme:s,prefersDarkMode:s==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",s=>{F({isVisible:true,height:s.endCoordinates.height,animationDuration:s.duration??0})}),n=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",s=>{F({isVisible:false,height:0,animationDuration:s.duration??0})});return()=>{f.remove(),n.remove()}},[]),w(()=>{let f=I.addEventListener("change",n=>{_({currentState:n,isActive:n==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",n=>{c(s=>({...s,isScreenReaderEnabled:n}))}),m.addEventListener("reduceMotionChanged",n=>{c(s=>({...s,isReduceMotionEnabled:n}))}),m.addEventListener("reduceTransparencyChanged",n=>{c(s=>({...s,isReduceTransparencyEnabled:n}))})];if(r.OS==="ios"){let n=(s,E)=>m.addEventListener(s,E);f.push(n("boldTextChanged",s=>{c(E=>({...E,isBoldTextEnabled:s}))}),n("grayscaleChanged",s=>{c(E=>({...E,isGrayscaleEnabled:s}))}),n("invertColorsChanged",s=>{c(E=>({...E,isInvertColorsEnabled:s}))}))}return()=>{f.forEach(n=>n.remove())}},[]),{platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>he({platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function Se(){let[e,t]=await Promise.all([U(),X()]),a=A.getColorScheme()??null;return{platform:k(),display:M(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:I.currentState,isActive:I.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function pe(e){console.log(`
|
|
2
|
-
========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
|
|
3
|
-
`),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
|
|
4
|
-
--- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
|
|
5
|
-
--- ACCESSIBILITY ---`),console.log(JSON.stringify(e.accessibility,null,2)),console.log(`
|
|
6
|
-
--- APPEARANCE ---`),console.log(JSON.stringify(e.appearance,null,2)),console.log(`
|
|
7
|
-
--- LOCALE ---`),console.log(JSON.stringify(e.locale,null,2)),console.log(`
|
|
8
|
-
--- STATUS BAR ---`),console.log(JSON.stringify(e.statusBar,null,2)),console.log(`
|
|
9
|
-
--- KEYBOARD ---`),console.log(JSON.stringify(e.keyboard,null,2)),console.log(`
|
|
10
|
-
--- APP STATE ---`),console.log(JSON.stringify(e.appState,null,2)),console.log(`
|
|
11
|
-
--- IDENTIFIERS ---`),console.log(JSON.stringify(e.identifiers,null,2)),console.log(`
|
|
12
|
-
--- SETTINGS ---`);let t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`),t.length>0&&t.length<=20&&console.log(JSON.stringify(e.settings,null,2)),console.log(`
|
|
13
|
-
--- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
|
|
14
|
-
========================================
|
|
15
|
-
`)}export{ie as a,re as b,oe as c,ce as d,fe as e,me as f,Se as g,pe as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{gameUIColors as s}from"./chunk-QPY45R5F.mjs";import{__DEV__ as D}from"./chunk-UGGCYHRH.mjs";var F=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(Array.isArray(e))return"array";const t=typeof e;if(t==="object"){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp";if(e instanceof Map)return"map";if(e instanceof Set)return"set";if(e instanceof Error)return"error";return"object"}return t};var V=e=>{const t=typeof e;return e===null||e===void 0||t==="string"||t==="number"||t==="boolean"||t==="bigint"||t==="symbol"};var q=e=>{try{JSON.stringify(e);return true}catch{return false}};var J=e=>{try{JSON.parse(e);return true}catch{return false}};var L=e=>{if(e===null)return"null";if(e===void 0)return"undefined";try{return e.constructor?.name||typeof e}catch{return typeof e}};var z=e=>{if(e===null||e===void 0)return true;if(typeof e==="string")return e.length===0;if(Array.isArray(e))return e.length===0;if(typeof e==="object")return Object.keys(e).length===0;return false};var G=e=>{if(Array.isArray(e)){const t=e.length;if(t===0)return"empty array";if(t===1)return"1 item";return`${t} items`}if(e&&typeof e==="object"){const t=Object.keys(e);const r=t.length;if(r===0)return"empty object";if(r===1)return"1 key";return`${r} keys`}if(typeof e==="string"){const t=e.length;if(t===0)return"empty string";if(t===1)return"1 character";return`${t} characters`}return""};var K=e=>{return typeof e==="object"&&e!==null&&!Array.isArray(e)&&e.constructor===Object};var U=e=>{if(e===null||e===void 0)return e;if(typeof e==="string"){try{return JSON.parse(e)}catch{return e}}return e};var B=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e==="string")return`"${e}"`;if(typeof e==="boolean")return e?"true":"false";if(typeof e==="number")return String(e);if(typeof e==="function")return`[Function: ${e.name||"anonymous"}]`;if(typeof e==="object"){if(Array.isArray(e)){return`[Array: ${e.length} items]`}return`{Object: ${Object.keys(e).length} keys}`}return String(e)};var I=e=>{if(e===null)return s.dataTypes.null;if(e===void 0)return s.dataTypes.undefined;const t=typeof e;switch(t){case"string":return s.dataTypes.string;case"number":return s.dataTypes.number;case"boolean":return s.dataTypes.boolean;case"function":return s.dataTypes.function;case"object":return Array.isArray(e)?s.dataTypes.array:s.dataTypes.object;default:return s.primary}};var W=(e,t)=>{if(e.length<=t)return e;return e.slice(0,t-3)+"..."};var p=(e,t="")=>{const r={};if(e===null||e===void 0){return r}if(typeof e!=="object"){r[t||"root"]=e;return r}if(Array.isArray(e)){e.forEach((n,a)=>{const u=t?`${t}[${a}]`:`[${a}]`;if(typeof n==="object"&&n!==null){Object.assign(r,p(n,u))}else{r[u]=n}})}else{Object.keys(e).forEach(n=>{const a=t?`${t}.${n}`:n;const u=e[n];if(typeof u==="object"&&u!==null){Object.assign(r,p(u,a))}else{r[a]=u}})}return r};var Y=e=>{if(e.length===0)return"root";return e.map((t,r)=>{if(typeof t==="number"){return`[${t}]`}return r===0?t:`.${t}`}).join("")};var H={log:()=>{},warn:()=>{},error:(...e)=>{console.error("[optional-module]",...e)}};var l=new Map;var d=new Map;var S=new Set;async function Q(e,t={}){if(l.has(e)){return l.get(e)}const r={...H,...t.logger??{}};if(!d.has(e)){d.set(e,(async()=>{try{const a=await X(e,t);const u=a?.default??a;l.set(e,u);r.log("Loaded optional module",e);return u}catch(a){r.log("Optional module unavailable",e,a);l.set(e,null);return null}})())}const n=await d.get(e);d.delete(e);if(!n&&t.warnOnceKey&&!S.has(t.warnOnceKey)){S.add(t.warnOnceKey);r.warn(t.warningMessage??`Module '${e}' not found.`)}return n}var A=(()=>{try{return new Function("moduleName","return import(moduleName);")}catch{return null}})();var j=(()=>{try{return new Function("return typeof require === 'function' ? require : undefined;")()}catch{return void 0}})();async function X(e,t){if(t.loader){return await Promise.resolve(t.loader())}if(A){return A(e)}if(j){return j(e)}throw new Error(`No dynamic loader available for optional module '${e}'.`)}function Z(e){if(!l.has(e)){return null}return l.get(e)}var P="__buoyRenderCaptureProvider";function x(){return globalThis}function ee(e){x()[P]=e}function te(){return x()[P]??null}var c=new Map;var b=new Set;function O(){b.forEach(e=>{try{e()}catch{}})}function re(e){c.set(e.id,e);O();return()=>{if(c.get(e.id)===e){c.delete(e.id);O()}}}function ne(){return Array.from(c.values())}function ae(e){return c.get(e)??null}function ue(e){b.add(e);return()=>{b.delete(e)}}function h(){return null}function g(){return null}function v(){return typeof window==="undefined"?null:()=>window.location.reload()}function m(e="auto"){if(e==="browser")return v()?"browser":null;if(e==="auto"&&v())return"browser";if(e==="dev-settings"){return h()?"dev-settings":null}if(e==="expo-updates"){return g()?"expo-updates":null}if(D&&h())return"dev-settings";return g()?"expo-updates":null}function E(e){if(e==="browser")return"[buoy] Browser reload requires a browser window.";if(e==="dev-settings"){return"[buoy] DevSettings.reload() unavailable \u2014 strategy 'dev-settings' requires React Native dev mode."}if(e==="expo-updates"){return"[buoy] expo-updates not installed \u2014 strategy 'expo-updates' requires the host app to add the dependency."}return"[buoy] No reload mechanism available. Run in __DEV__ or install expo-updates."}async function R(e="auto",t="buoy reload"){const r=m(e);if(!r)throw new Error(E(e));if(r==="browser"){v()()}else if(r==="dev-settings"){h().reload(t)}else{await g().reloadAsync()}return await new Promise(()=>{})}var T=250;function oe(e){const t=e?.strategy??"auto";const r=m(t);if(!r)throw new Error(E(t));const n=Math.max(0,e?.delayMs??T);const a=e?.reason??"buoy remote reload";setTimeout(()=>{void R(r,a).catch(()=>{})},n);return{strategy:r,delayMs:n}}function se(){return null}var ie=class{constructor(){this.listeners=new Set;this.subscribe=this.subscribe.bind(this)}subscribe(e){this.listeners.add(e);this.onSubscribe();return()=>{this.listeners.delete(e);this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}getListenerCount(){return this.listeners.size}notify(...e){this.listeners.forEach(t=>{t(...e)})}onSubscribe(){}onUnsubscribe(){}};var le=class{constructor(){this.listeners=new Set}subscribe(e){this.listeners.add(e);return()=>{this.listeners.delete(e)}}notify(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}};var w=new le;var ce=e=>w.subscribe(e);var fe=e=>w.notify(e);function de(){return null}function ye(){return null}var o=null;var y=false;var $=false;function i(){if($)return y;try{o=de();y=o!=null&&typeof o.usePathname==="function"&&typeof o.useSegments==="function"}catch(e){y=false;o=null}$=true;return y}function C(){return{push:()=>console.warn("[buoy] expo-router not installed: push() unavailable"),replace:()=>console.warn("[buoy] expo-router not installed: replace() unavailable"),back:()=>console.warn("[buoy] expo-router not installed: back() unavailable"),canGoBack:()=>false,setParams:()=>console.warn("[buoy] expo-router not installed: setParams() unavailable"),navigate:()=>console.warn("[buoy] expo-router not installed: navigate() unavailable")}}function M(){return"/"}function _(){return[]}function k(){return{}}function pe(){if(!i()){return C()}try{return o.useRouter()}catch(e){console.warn("[buoy] Failed to use expo-router.useRouter:",e);return C()}}function be(){if(!i()){return M()}try{return o.usePathname()}catch(e){console.warn("[buoy] Failed to use expo-router.usePathname:",e);return M()}}function he(){if(!i()){return _()}try{return o.useSegments()}catch(e){console.warn("[buoy] Failed to use expo-router.useSegments:",e);return _()}}function ge(){if(!i()){return k()}try{return o.useGlobalSearchParams()}catch(e){console.warn("[buoy] Failed to use expo-router.useGlobalSearchParams:",e);return k()}}function ve(){if(!i()){return null}try{return o.router||null}catch(e){return null}}var f;function me(){if(f!==void 0)return f;try{f=ye()}catch{f=null}return f}function we(){return N()?.pathname??null}function N(){if(!i()){return null}try{const e=me()?.getRouteInfo?.();const t=e?.pathname;if(typeof t!=="string"||t.length===0)return null;const r=e?.pathnameWithParams;return{pathname:t,href:typeof r==="string"&&r.length>0?r:t,...Array.isArray(e?.segments)?{segments:e.segments}:{}}}catch(e){return null}}function Se(){return i()}export{ie as Subscribable,w as subscriberCountNotifier,ce as subscribeToSubscriberCountChanges,fe as notifySubscriberCountChange,F as getValueType,V as isPrimitive,q as isJsonSerializable,J as isValidJson,L as getConstructorName,z as isEmpty,G as getValueSize,K as isPlainObject,U as parseValue,B as formatValue,I as getTypeColor,W as truncateText,p as flattenObject,Y as formatPath,Q as loadOptionalModule,Z as getCachedOptionalModule,ee as setRenderCaptureProvider,te as getRenderCaptureProvider,re as registerStateSnapshotProvider,ne as getStateSnapshotProviders,ae as getStateSnapshotProvider,ue as subscribeToStateSnapshotProviders,m as resolveReloadStrategy,R as reloadApp,T as REMOTE_RELOAD_DELAY_MS,oe as scheduleReloadApp,se as getDevServerOrigin,pe as useSafeRouter,be as useSafePathname,he as useSafeSegments,ge as useSafeGlobalSearchParams,ve as getSafeRouter,we as getSafeCurrentPathname,N as getSafeCurrentRoute,Se as isExpoRouterAvailable};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";var e={base:"@react_buoy",bubble:{root:()=>`${e.base}_bubble`,settings:()=>`${e.bubble.root()}_settings`,userPreferences:()=>`${e.bubble.root()}_user_preferences`,position:()=>`${e.bubble.root()}_position`},modal:{root:()=>`${e.base}_modal`,state:()=>`${e.modal.root()}_state`,position:()=>`${e.modal.root()}_position`,dimensions:()=>`${e.modal.root()}_dimensions`,hintAcknowledged:()=>`${e.modal.root()}_hint_acknowledged`},custom:t=>{let o=`${e.base}_custom_${t}`;return{root:()=>o,modal:()=>`${o}_modal`,settings:()=>`${o}_settings`,key:r=>`${o}_${r}`}},settings:{root:()=>`${e.base}_settings`,theme:()=>`${e.settings.root()}_theme`,preferences:()=>`${e.settings.root()}_preferences`,wifiEnabled:()=>`${e.settings.root()}_wifi_enabled`,global:()=>`${e.settings.root()}_global`,activeTab:()=>`${e.settings.root()}_active_tab`,modalOpen:()=>`${e.settings.root()}_modal_open`},dial:{root:()=>`${e.base}_dial`,isOpen:()=>`${e.dial.root()}_is_open`,usage:()=>`${e.dial.root()}_usage`},clipboard:{root:()=>`${e.base}_clipboard`,hintAcknowledged:()=>`${e.clipboard.root()}_hint_acknowledged`},env:{root:()=>`${e.base}_env`,modal:()=>`${e.env.root()}_modal`,currentEnv:()=>`${e.env.root()}_current`,overrides:()=>`${e.env.root()}_overrides`},sentry:{root:()=>`${e.base}_sentry`,modal:()=>`${e.sentry.root()}_modal`,filters:()=>`${e.sentry.root()}_filters`,preferences:()=>`${e.sentry.root()}_preferences`},storage:{root:()=>`${e.base}_storage`,modal:()=>`${e.storage.root()}_modal`,eventsModal:()=>`${e.storage.root()}_events_modal`,filters:()=>`${e.storage.root()}_filters`,eventFilters:()=>`${e.storage.root()}_event_filters`,keyFilters:()=>`${e.storage.root()}_key_filters`,pinnedKeys:()=>`${e.storage.root()}_pinned_keys`,preferences:()=>`${e.storage.root()}_preferences`,activeTab:()=>`${e.storage.root()}_active_tab`,isMonitoring:()=>`${e.storage.root()}_is_monitoring`,diffViewerMode:()=>`${e.storage.root()}_diff_viewer_mode`},clock:{root:()=>`${e.base}_clock`,state:()=>`${e.clock.root()}_state`},permissions:{root:()=>`${e.base}_permissions`,state:()=>`${e.permissions.root()}_state`},lifecycle:{root:()=>`${e.base}_lifecycle`,state:()=>`${e.lifecycle.root()}_state`},location:{root:()=>`${e.base}_location`,state:()=>`${e.location.root()}_state`},timeMachine:{root:()=>`${e.base}_time_machine`,diffViewerMode:()=>`${e.timeMachine.root()}_diff_viewer_mode`,armedPoint:()=>`${e.timeMachine.root()}_armed_point`,barReloadMode:()=>`${e.timeMachine.root()}_bar_reload_mode`,disabledSources:()=>`${e.timeMachine.root()}_disabled_sources`},scenarios:{root:()=>`${e.base}_scenarios`,modal:()=>`${e.scenarios.root()}_modal`,library:()=>`${e.scenarios.root()}_library`,active:()=>`${e.scenarios.root()}_active`},reactQuery:{root:()=>`${e.base}_rq`,modal:()=>`${e.reactQuery.root()}_modal`,browserModal:()=>`${e.reactQuery.root()}_browser_modal`,mutationModal:()=>`${e.reactQuery.root()}_mutation_modal`,filters:()=>`${e.reactQuery.root()}_filters`,ignoredPatterns:()=>`${e.reactQuery.root()}_ignored_patterns`,includedPatterns:()=>`${e.reactQuery.root()}_included_patterns`,preferences:()=>`${e.reactQuery.root()}_preferences`},network:{root:()=>`${e.base}_network`,modal:()=>`${e.network.root()}_modal`,copyModal:()=>`${e.network.root()}_copy_modal`,filters:()=>`${e.network.root()}_filters`,ignoredDomains:()=>`${e.network.root()}_ignored_domains`,ignoredUrls:()=>`${e.network.root()}_ignored_urls`,preferences:()=>`${e.network.root()}_preferences`,copyOptions:()=>`${e.network.root()}_copy_options`,saved:()=>`${e.network.root()}_saved`,overrides:()=>`${e.network.root()}_overrides`},routeEvents:{root:()=>`${e.base}_route_events`,modal:()=>`${e.routeEvents.root()}_modal`,eventFilters:()=>`${e.routeEvents.root()}_event_filters`,activeTab:()=>`${e.routeEvents.root()}_active_tab`,isMonitoring:()=>`${e.routeEvents.root()}_is_monitoring`,detailView:()=>`${e.routeEvents.root()}_detail_view`,diffViewerMode:()=>`${e.routeEvents.root()}_diff_viewer_mode`},highlightUpdates:{root:()=>`${e.base}_highlight_updates`,modal:()=>`${e.highlightUpdates.root()}_modal`,isTracking:()=>`${e.highlightUpdates.root()}_is_tracking`,filters:()=>`${e.highlightUpdates.root()}_filters`,settings:()=>`${e.highlightUpdates.root()}_settings`,copySettings:()=>`${e.highlightUpdates.root()}_copy_settings`},benchmark:{root:()=>`${e.base}_benchmark`,modal:()=>`${e.benchmark.root()}_modal`,isRecording:()=>`${e.benchmark.root()}_is_recording`,activeTab:()=>`${e.benchmark.root()}_active_tab`,settings:()=>`${e.benchmark.root()}_settings`,selectedReports:()=>`${e.benchmark.root()}_selected_reports`},debugBorders:{root:()=>`${e.base}_debug_borders`,infoModal:()=>`${e.debugBorders.root()}_info_modal`},events:{root:()=>`${e.base}_events`,modal:()=>`${e.events.root()}_modal`,enabledSources:()=>`${e.events.root()}_enabled_sources`,isCapturing:()=>`${e.events.root()}_is_capturing`,pausedAt:()=>`${e.events.root()}_paused_at`,copySettings:()=>`${e.events.root()}_copy_settings`},sync:{root:()=>`${e.base}_sync`,deviceId:()=>`${e.sync.root()}_device_id`}},_=["@devtools","@dev_tools_","@modal_state_","@react_query_browser_modal","@react_query_modal","@react_query_mutation_modal","@sentry_logs_modal","@floating_rn_better_dev_tools_","@floating_tools_","@apphost_","@bubble_settings_","@env_vars_modal","@storage_modal","@floating_@devtools_","dev_last_route"];function l(t){if(!t)return false;if(t.startsWith(e.base)||t.startsWith("buoy-")||t.startsWith("@buoy"))return true;for(let o of _)if(t.startsWith(o))return true;return false}var s=new Map;function a(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}var n={async getItem(t){if(s.has(t))return s.get(t)??null;try{return a()?.getItem(t)??null}catch{return null}},async setItem(t,o){s.set(t,o);try{let r=a();r&&(r.setItem(t,o),s.delete(t))}catch{}},async removeItem(t){s.set(t,null);try{let o=a();o&&(o.removeItem(t),s.delete(t))}catch{}},async getAllKeys(){let t=new Set;try{let o=a();if(o)for(let r=0;r<o.length;r++){let i=o.key(r);i?.startsWith(e.base)&&t.add(i)}}catch{}for(let[o,r]of s)o.startsWith(e.base)&&(r===null?t.delete(o):t.add(o));return[...t]},async multiGet(t){return Promise.all(t.map(async o=>[o,await n.getItem(o)]))},async multiRemove(t){await Promise.all(t.map(o=>n.removeItem(o)))},async clear(){await n.multiRemove(await n.getAllKeys())}};async function d(){return a()!==null}async function c(){return a()?"localstorage":"memory"}export{e as a,l as b,n as c,d,c as e};
|