@buoy-gg/shared-ui 7.0.44 → 7.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/lib/commonjs/index.js +1 -1
  2. package/lib/commonjs/license/index.js +1 -1
  3. package/lib/commonjs/license/licenseModule.js +1 -1
  4. package/lib/commonjs/stores/ignoredPatternsStore.shared.js +1 -1
  5. package/lib/commonjs/sync/settingsSync.js +1 -0
  6. package/lib/commonjs/utils/persistentStorage.js +1 -1
  7. package/lib/commonjs/utils/persistentStorage.web.js +1 -1
  8. package/lib/commonjs/utils/storageWrites.js +1 -0
  9. package/lib/module/index.js +1 -1
  10. package/lib/module/license/index.js +1 -1
  11. package/lib/module/license/licenseModule.js +1 -1
  12. package/lib/module/stores/ignoredPatternsStore.shared.js +1 -1
  13. package/lib/module/sync/settingsSync.js +1 -0
  14. package/lib/module/utils/persistentStorage.js +1 -1
  15. package/lib/module/utils/persistentStorage.web.js +1 -1
  16. package/lib/module/utils/storageWrites.js +1 -0
  17. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  18. package/lib/typescript/commonjs/index.d.ts +3 -1
  19. package/lib/typescript/commonjs/license/index.d.ts +1 -1
  20. package/lib/typescript/commonjs/license/licenseModule.d.ts +10 -0
  21. package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts +16 -1
  22. package/lib/typescript/commonjs/sync/settingsSync.d.ts +78 -0
  23. package/lib/typescript/commonjs/utils/storageWrites.d.ts +10 -0
  24. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  25. package/lib/typescript/module/index.d.ts +3 -1
  26. package/lib/typescript/module/license/index.d.ts +1 -1
  27. package/lib/typescript/module/license/licenseModule.d.ts +10 -0
  28. package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts +16 -1
  29. package/lib/typescript/module/sync/settingsSync.d.ts +78 -0
  30. package/lib/typescript/module/utils/storageWrites.d.ts +10 -0
  31. package/lib/web/chunks/chunk-2Q3SDPH2.mjs +3 -3
  32. package/lib/web/chunks/chunk-46CXXOQB.mjs +1 -1
  33. package/lib/web/chunks/chunk-552W4COI.mjs +1 -1
  34. package/lib/web/chunks/chunk-56TTTMX4.mjs +1 -1
  35. package/lib/web/chunks/chunk-5LOQZINQ.mjs +3 -3
  36. package/lib/web/chunks/chunk-5NOIO6ZM.mjs +1 -1
  37. package/lib/web/chunks/chunk-7PRKERDN.mjs +1 -1
  38. package/lib/web/chunks/chunk-A7KJCK4R.mjs +3 -3
  39. package/lib/web/chunks/chunk-AEXGGXS7.mjs +1 -1
  40. package/lib/web/chunks/chunk-ASEPWYDC.mjs +14 -0
  41. package/lib/web/chunks/chunk-ASTM35HG.mjs +1 -1
  42. package/lib/web/chunks/chunk-B2V2UDCU.mjs +1 -1
  43. package/lib/web/chunks/chunk-BFGKGTAC.mjs +1 -1
  44. package/lib/web/chunks/chunk-CLLTZQGD.mjs +1 -1
  45. package/lib/web/chunks/chunk-D4RXBAOO.mjs +1 -1
  46. package/lib/web/chunks/chunk-DEEKIG2L.mjs +1 -0
  47. package/lib/web/chunks/chunk-DZDTNXXK.mjs +1 -1
  48. package/lib/web/chunks/chunk-HXPTZMAZ.mjs +1 -1
  49. package/lib/web/chunks/chunk-K4EGHHD6.mjs +1 -1
  50. package/lib/web/chunks/chunk-K7CGIEFU.mjs +1 -1
  51. package/lib/web/chunks/chunk-KBTYK5YE.mjs +1 -1
  52. package/lib/web/chunks/chunk-KHP6CSSM.mjs +1 -1
  53. package/lib/web/chunks/chunk-MKJKS3IG.mjs +1 -1
  54. package/lib/web/chunks/chunk-NK3OISOL.mjs +3 -3
  55. package/lib/web/chunks/chunk-OZB3VKZE.mjs +1 -1
  56. package/lib/web/chunks/chunk-QCD6T6L4.mjs +1 -1
  57. package/lib/web/chunks/chunk-QQTJ463K.mjs +1 -1
  58. package/lib/web/chunks/chunk-T7RZZG4A.mjs +15 -0
  59. package/lib/web/chunks/chunk-U2BTZZID.mjs +14 -0
  60. package/lib/web/chunks/chunk-UCKELQSM.mjs +1 -1
  61. package/lib/web/chunks/chunk-UNYQJZET.mjs +1 -1
  62. package/lib/web/chunks/chunk-W4BGMPJO.mjs +1 -1
  63. package/lib/web/chunks/chunk-WIFX6XNL.mjs +1 -1
  64. package/lib/web/chunks/chunk-WLGUP3KY.mjs +1 -1
  65. package/lib/web/chunks/chunk-XD2BEYMM.mjs +2 -2
  66. package/lib/web/chunks/chunk-XMDNJJS5.mjs +6 -6
  67. package/lib/web/chunks/chunk-YG6DIKQD.mjs +1 -1
  68. package/lib/web/chunks/chunk-YIZFMU66.mjs +1 -1
  69. package/lib/web/chunks/persistentStorage.web-56ENKXFJ.mjs +1 -0
  70. package/lib/web/dataViewer.mjs +2 -2
  71. package/lib/web/hooks.mjs +1 -1
  72. package/lib/web/index.mjs +3 -3
  73. package/lib/web/ui.mjs +1 -1
  74. package/lib/web/utils.mjs +1 -1
  75. package/package.json +5 -5
@@ -1 +1 @@
1
- "use client";export*from"react-native-web";import{unstable_createElement as m,NativeModules as x,AccessibilityInfo as b,Animated as f,Appearance as h,AppRegistry as y,AppState as g,BackHandler as v,Clipboard as w,Dimensions as C,Easing as E,I18nManager as T,Keyboard as k,InteractionManager as S,LayoutAnimation as A,Linking as B,NativeEventEmitter as I,PanResponder as L,PixelRatio as V,Platform as M,Share as N,StyleSheet as P,UIManager as R,Vibration as D,CheckBox as $,FlatList as K,Image as z,ImageBackground as F,KeyboardAvoidingView as H,Picker as O,ProgressBar as W,RefreshControl as j,SafeAreaView as Y,SectionList as _,StatusBar as q,Touchable as G,TouchableNativeFeedback as J,VirtualizedList as Q,YellowBox as U,LogBox as X,DeviceEventEmitter as Z,useColorScheme as ee,useLocaleContext as ae,useWindowDimensions as se}from"react-native-web";import*as a from"react-native-web";import{createElement as te,forwardRef as ie}from"react";function s(n){let l=ie((p,u)=>{let{accessibilityState:e,accessibilityValue:r,...t}=p;for(let i of["busy","checked","disabled","expanded","selected"])e?.[i]!==void 0&&t[`aria-${i}`]===void 0&&(t[`aria-${i}`]=e[i]);for(let[i,d]of Object.entries({min:"valuemin",max:"valuemax",now:"valuenow",text:"valuetext"}))r?.[i]!==void 0&&t[`aria-${d}`]===void 0&&(t[`aria-${d}`]=r[i]);return te(n,{...t,ref:u})});return l.displayName=n.displayName??n.name??"NativeWebView",l}var oe=s(a.View),ne=s(a.Text),re=s(a.TextInput),le=s(a.TouchableOpacity),de=s(a.TouchableHighlight),ce=s(a.TouchableWithoutFeedback),pe=s(a.Pressable),ue=s(a.ScrollView),me=s(a.Modal),xe=s(a.Switch),be=s(a.ActivityIndicator),fe=s(a.Button),he=a.findNodeHandle,ye={alert(n,l,p,u){if(typeof document>"u")return;let e=document.createElement("dialog");e.dataset.buoyRoot="",e.setAttribute("aria-label",n),e.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 r=document.createElement("h2");if(r.textContent=n,r.style.cssText="font-size:18px;margin:0 0 12px",e.appendChild(r),l){let o=document.createElement("p");o.textContent=l,o.style.cssText="line-height:1.5;white-space:pre-wrap;margin:0 0 20px",e.appendChild(o)}let t=document.createElement("div");t.style.cssText="display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px";let i=p?.length?p:[{text:"OK"}],d=()=>{e.close?.(),e.remove()};for(let o of i){let c=document.createElement("button");c.type="button",c.textContent=o.text??"OK",c.style.cssText=`padding:9px 14px;border:1px solid #64748b;border-radius:7px;color:white;background:${o.style==="destructive"?"#a52b38":"#283a4d"};cursor:pointer;font:inherit`,c.onclick=()=>{d(),o.onPress?.()},t.appendChild(c)}e.addEventListener("cancel",o=>{o.preventDefault(),u?.cancelable!==false&&(d(),u?.onDismiss?.())}),e.appendChild(t),document.body.appendChild(e),e.showModal?e.showModal():e.setAttribute("open","")}};export{oe as a,ne as b,re as c,le as d,de as e,ce as f,pe as g,ue as h,me as i,xe as j,be as k,fe as l,he as m,ye as n,m as o,x as p,b as q,f as r,h as s,y as t,g as u,v,w,C as x,E as y,T as z,k as A,S as B,A as C,B as D,I as E,L as F,V as G,M as H,N as I,P as J,R as K,D as L,$ as M,K as N,z as O,F as P,H as Q,O as R,W as S,j as T,Y as U,_ as V,q as W,G as X,J as Y,Q as Z,U as _,X as $,Z as aa,ee as ba,ae as ca,se as da};
1
+ "use client";export*from"react-native-web";import{unstable_createElement as m,NativeModules as x,AccessibilityInfo as b,Animated as f,Appearance as h,AppRegistry as y,AppState as g,BackHandler as v,Clipboard as w,Dimensions as C,Easing as E,I18nManager as T,Keyboard as k,InteractionManager as A,LayoutAnimation as S,Linking as B,NativeEventEmitter as I,PanResponder as L,PixelRatio as V,Platform as M,Share as N,StyleSheet as P,UIManager as R,Vibration as D,CheckBox as $,FlatList as K,Image as z,ImageBackground as F,KeyboardAvoidingView as H,Picker as O,ProgressBar as W,RefreshControl as j,SafeAreaView as Y,SectionList as _,StatusBar as q,Touchable as G,TouchableNativeFeedback as J,VirtualizedList as Q,YellowBox as U,LogBox as X,DeviceEventEmitter as Z,useColorScheme as ee,useLocaleContext as ae,useWindowDimensions as se}from"react-native-web";import*as a from"react-native-web";import{createElement as te,forwardRef as ie}from"react";function s(n){let l=ie((p,u)=>{let{accessibilityState:e,accessibilityValue:r,...t}=p;for(let i of["busy","checked","disabled","expanded","selected"])e?.[i]!==void 0&&t[`aria-${i}`]===void 0&&(t[`aria-${i}`]=e[i]);for(let[i,d]of Object.entries({min:"valuemin",max:"valuemax",now:"valuenow",text:"valuetext"}))r?.[i]!==void 0&&t[`aria-${d}`]===void 0&&(t[`aria-${d}`]=r[i]);return te(n,{...t,ref:u})});return l.displayName=n.displayName??n.name??"NativeWebView",l}var oe=s(a.View),ne=s(a.Text),re=s(a.TextInput),le=s(a.TouchableOpacity),de=s(a.TouchableHighlight),ce=s(a.TouchableWithoutFeedback),pe=s(a.Pressable),ue=s(a.ScrollView),me=s(a.Modal),xe=s(a.Switch),be=s(a.ActivityIndicator),fe=s(a.Button),he=a.findNodeHandle,ye={alert(n,l,p,u){if(typeof document>"u")return;let e=document.createElement("dialog");e.dataset.buoyRoot="",e.setAttribute("aria-label",n),e.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 r=document.createElement("h2");if(r.textContent=n,r.style.cssText="font-size:18px;margin:0 0 12px",e.appendChild(r),l){let o=document.createElement("p");o.textContent=l,o.style.cssText="line-height:1.5;white-space:pre-wrap;margin:0 0 20px",e.appendChild(o)}let t=document.createElement("div");t.style.cssText="display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px";let i=p?.length?p:[{text:"OK"}],d=()=>{e.close?.(),e.remove()};for(let o of i){let c=document.createElement("button");c.type="button",c.textContent=o.text??"OK",c.style.cssText=`padding:9px 14px;border:1px solid #64748b;border-radius:7px;color:white;background:${o.style==="destructive"?"#a52b38":"#283a4d"};cursor:pointer;font:inherit`,c.onclick=()=>{d(),o.onPress?.()},t.appendChild(c)}e.addEventListener("cancel",o=>{o.preventDefault(),u?.cancelable!==false&&(d(),u?.onDismiss?.())}),e.appendChild(t),document.body.appendChild(e),e.showModal?e.showModal():e.setAttribute("open","")}};export{oe as a,ne as b,re as c,le as d,de as e,ce as f,pe as g,ue as h,me as i,xe as j,be as k,fe as l,he as m,ye as n,m as o,x as p,b as q,f as r,h as s,y as t,g as u,v,w,C as x,E as y,T as z,k as A,A as B,S as C,B as D,I as E,L as F,V as G,M as H,N as I,P as J,R as K,D as L,$ as M,K as N,z as O,F as P,H as Q,O as R,W as S,j as T,Y as U,_ as V,q as W,G as X,J as Y,Q as Z,U as _,X as $,Z as aa,ee as ba,ae as ca,se as da};
@@ -1,4 +1,4 @@
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-3UTMGIUG.mjs";import{useCallback as ae,useEffect as se,useRef as j,useState as q}from"react";var T=new Map;function ne(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,se(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??ne;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,s]=await Promise.all([U(),X()]);i(k()),y(M()),c(f);let n=A.getColorScheme()??null;v({colorScheme:n,prefersDarkMode:n==="dark"}),S(N()),h(E=>({...E,height:s})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:s,screen:n})=>{y(E=>({...E,window:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},screen:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},isLandscape:s.width>s.height,isPortrait:s.height>s.width}))});return()=>f.remove()},[]),w(()=>{let f=A.addChangeListener(({colorScheme:s})=>{let n=s??null;v({colorScheme:n,prefersDarkMode:n==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",n=>{F({isVisible:true,height:n.endCoordinates.height,animationDuration:n.duration??0})}),s=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",n=>{F({isVisible:false,height:0,animationDuration:n.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(n=>({...n,isScreenReaderEnabled:s}))}),m.addEventListener("reduceMotionChanged",s=>{c(n=>({...n,isReduceMotionEnabled:s}))}),m.addEventListener("reduceTransparencyChanged",s=>{c(n=>({...n,isReduceTransparencyEnabled:s}))})];if(r.OS==="ios"){let s=(n,E)=>m.addEventListener(n,E);f.push(s("boldTextChanged",n=>{c(E=>({...E,isBoldTextEnabled:n}))}),s("grayscaleChanged",n=>{c(E=>({...E,isGrayscaleEnabled:n}))}),s("invertColorsChanged",n=>{c(E=>({...E,isInvertColorsEnabled:n}))}))}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=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(`
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-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
2
  ========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
3
3
  `),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
4
4
  --- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
@@ -1 +1 @@
1
- "use client";import{Ob as fe,Pb as pe,Q as U,Qb as H,R as ge,Ub as he,Wb as J,Zb as Y,ld as p}from"./chunk-YG6DIKQD.mjs";import{d as n}from"./chunk-CE5U3CSQ.mjs";var ye="[Circular]",K="[...]";function me(e,t,o={}){let{depthLimit:s=Number.MAX_SAFE_INTEGER,edgesLimit:u=Number.MAX_SAFE_INTEGER}=o,c=[];function i(a,l,f,r,S,v){if(v+=1,typeof a=="object"&&a!==null){for(let A=0;A<r.length;A++)if(r[A]===a){h(ye,a,l,S);return}if(v>s){h(K,a,l,S);return}if(f+1>u){h(K,a,l,S);return}if(r.push(a),Array.isArray(a)){let A=a;for(let T=0;T<a.length;T++)i(a[T],T,T,r,A,v)}else if(a instanceof Map||a instanceof Set||a instanceof RegExp||a instanceof Date||a instanceof Error){r.pop();return}else{let A=a,T=Object.keys(A);for(let V=0;V<T.length;V++){let G=T[V];i(A[G],G,V,r,A,v)}}r.pop()}}function h(a,l,f,r){if(!r)return;let S=Object.getOwnPropertyDescriptor(r,f);if(S?.get!==void 0)if(S.configurable)Object.defineProperty(r,f,{value:a}),c.push([r,f,l,S]);else return;else r[f]=a,c.push([r,f,l])}let C=(a,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 f={name:l.name,message:l.message,stack:l.stack};return Object.getOwnPropertyNames(l).forEach(r=>{if(!["name","message","stack"].includes(r))try{let S=l[r];S!==void 0&&(f[r]=S)}catch{}}),f}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(([f,r])=>[String(f),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 i(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(;c.length!==0;){let a=c.pop();if(a&&a.length===4){let[l,f,,r]=a;l&&typeof l=="object"&&r&&Object.defineProperty(l,f,r)}else if(a){let[l,f,r]=a;l&&typeof l=="object"&&(typeof f=="string"||typeof f=="number")&&(l[f]=r)}}}}var be=e=>typeof e>"u",Se=e=>typeof e!="object"||e===null||e===Object.prototype?false:Object.getPrototypeOf(e)===null?true:Object.getPrototypeOf(e)===Object.prototype,L=e=>Array.isArray(e),we=e=>typeof e=="boolean"||e===null||typeof e>"u"||typeof e=="number"||typeof e=="string"||typeof e=="symbol",xe=e=>e instanceof Date&&!isNaN(e.valueOf()),X=e=>e instanceof Error,Ce=e=>e instanceof RegExp,q=e=>e instanceof Set,Q=e=>e instanceof Map,ve=e=>typeof e=="bigint",Z=e=>typeof e=="number"&&isNaN(e),Ae=e=>e===1/0||e===-1/0,Te=e=>e===0&&1/e===-1/0,Ie=e=>e instanceof URL,Re=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Oe={Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray},ee=[{isApplicable:be,annotation:"undefined",transform:()=>null,untransform:()=>{}},{isApplicable:ve,annotation:"bigint",transform:e=>e.toString(),untransform:e=>typeof BigInt<"u"?BigInt(e):(console.error("BigInt is not supported in this environment"),e)},{isApplicable:xe,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=>{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:Ce,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: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=>Z(e)?"NaN":e>0?"Infinity":"-Infinity",untransform:e=>Number(e)},{isApplicable:Te,annotation:"number",transform:()=>"-0",untransform:()=>-0},{isApplicable:Ie,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)=>{let o=Array.isArray(t)?t[1]:"Uint8Array",s=Oe[o];if(!s)throw new Error(`Unknown typed array: ${o}`);return new s(e)}}];function W(e){for(let t of ee)if(t.isApplicable(e)){let o=typeof t.annotation=="function"?t.annotation(e):t.annotation;return{value:t.transform(e),type:o}}}function te(e,t){for(let o of ee){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 re=e=>Se(e)||L(e)||Q(e)||q(e)||X(e);function _(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function oe(e,t=[],o=[]){let s=we(e);if(!s&&!re(e)){let a=W(e);return a?{transformedValue:a.value,annotations:{[t.map(String).map(_).join(".")]:a.type}}:{transformedValue:e}}if(!s&&o.indexOf(e)!==-1)return{transformedValue:null};if(!re(e)){let a=W(e);return a?{transformedValue:a.value,annotations:t.length>0?{[t.map(String).map(_).join(".")]:a.type}:{"":a.type}}:{transformedValue:e}}let u=W(e),c=u?.value??e,i=L(c)?[]:{},h={};if(u){let a=t.length>0?t.map(String).map(_).join("."):"";h[a]=u.type}let C=L(c)?c.map((a,l)=>[l,a]):Object.entries(c);for(let[a,l]of C){let f=String(a);if(f==="__proto__"||f==="constructor"||f==="prototype")throw new Error(`Detected property ${f}. This is a prototype pollution risk, please remove it from your object.`);let r=oe(l,[...t,a],[...o,e]);i[a]=r.transformedValue,r.annotations&&Object.assign(h,r.annotations)}return{transformedValue:i,annotations:Object.keys(h).length>0?h:void 0}}function ke(e){if(e==="")return[];let t=[],o="";for(let s=0;s<e.length;s++){let u=e.charAt(s);if(u==="\\"){let c=e.charAt(s+1);if(c==="\\"){o+="\\",s++;continue}else if(c==="."){o+=".",s++;continue}}if(u==="."){t.push(o),o="";continue}o+=u}return o&&t.push(o),t}function Ne(e,t,o){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]]=o}function Fe(e,t){let o=e;for(let s of t)o=o[s];return o}function ne(e){let t=oe(e),o={json:t.transformedValue};return t.annotations&&(o.meta={values:t.annotations}),o}function ae(e){let{json:t,meta:o}=e;if(!o?.values)return t;let s=L(t)?[...t]:{...t},u=Object.entries(o.values).map(([c,i])=>({pathString:c,type:i,path:ke(c)})).sort((c,i)=>i.path.length-c.path.length);for(let{type:c,path:i}of u)if(i.length===0)s=te(s,c);else{let h=Fe(s,i),C=te(h,c);Ne(s,i,C)}return s}var ze=(e,t=false)=>{let{json:o}=ne(e);return JSON.stringify(o,null,t?2:void 0)},Be=e=>{try{let t=JSON.parse(e);return ae({json:t,meta:void 0})}catch{return JSON.parse(e)}};import{StyleSheet as Ve,Text as P,View as j,TouchableOpacity as De,Animated as Le}from"react-native-web";import{jsx as F,jsxs as E}from"react/jsx-runtime";function je({icon:e,iconColor:t,title:o,count:s,subtitle:u,expanded:c,onToggle:i,children:h,style:C,titleStyle:a}){return E(j,{style:[z.container,C],children:[E(De,{onPress:i,activeOpacity:.7,style:z.headerTouchable,children:[E(j,{style:z.header,children:[E(j,{style:z.headerLeft,children:[F(e,{size:14,color:t}),F(P,{style:[z.title,a],children:o}),F(j,{style:[z.badge,{backgroundColor:t+"20"}],children:F(P,{style:[z.badgeText,{color:t}],children:s})})]}),c?F(Y,{size:14,color:n.muted}):F(J,{size:14,color:n.muted})]}),F(P,{style:z.subtitle,children:u})]}),c&&F(Le.View,{style:{opacity:1},children:h})]})}var z=Ve.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:p,fontWeight:"700",letterSpacing:2,opacity:.9},subtitle:{fontSize:9,color:n.secondary,fontFamily:p,paddingHorizontal:4,marginTop:2,opacity:.7},badge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},badgeText:{fontSize:10,fontFamily:p,fontWeight:"700"}});var ie={position:"absolute",top:0,left:0,right:0,bottom:0};import{StyleSheet as Ee,Text as M,View as B,Animated as We}from"react-native-web";import{jsx as k,jsxs as $}from"react/jsx-runtime";function _e({alertConfig:e,badgeText:t,animatedStyle:o,style:s,indicatorCount:u=3}){let c=e.icon;return $(We.View,{style:[I.container,{borderColor:e.color+"40"},s,o],children:[k(B,{style:[I.glow,{backgroundColor:e.color+"10"}]}),$(B,{style:I.content,children:[k(B,{style:[I.iconWrapper,{backgroundColor:e.color+"15"}],children:k(c,{size:20,color:e.color})}),$(B,{style:I.textContainer,children:[k(M,{style:[I.label,{color:e.color}],children:e.label}),k(M,{style:I.subtitle,children:e.subtitle})]}),k(B,{style:[I.badge,{backgroundColor:e.color+"20"}],children:k(M,{style:[I.badgeText,{color:e.color}],children:t})})]}),k(B,{style:I.indicators,children:[...Array(u)].map((i,h)=>k(B,{style:[I.indicatorDot,{backgroundColor:e.color,opacity:e.pulse?h===0?1:.5-h*.2:.3-h*.1}]},h))})]})}var I=Ee.create({container:{backgroundColor:n.panel,borderRadius:12,borderWidth:1,padding:16,marginBottom:16,position:"relative",overflow:"hidden"},glow:{...ie,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:p,letterSpacing:1.5,textShadowOffset:{width:0,height:0},textShadowRadius:8},subtitle:{fontSize:10,color:n.secondary,fontFamily:p},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:4},badgeText:{fontSize:9,fontWeight:"700",fontFamily:p,letterSpacing:1},indicators:{position:"absolute",top:8,right:8,flexDirection:"row",gap:3},indicatorDot:{width:4,height:4,borderRadius:2}});import{Fragment as Pe}from"react";import{StyleSheet as Me,Text as R,View as m,Animated as le}from"react-native-web";import{jsx as y,jsxs as x}from"react/jsx-runtime";function $e({statsConfig:e,totalCount:t,header:o,bottomStats:s,style:u,hideInactive:c=true}){return x(m,{style:[d.container,u],children:[o&&x(m,{style:d.header,children:[x(m,{style:d.headerLeft,children:[y(R,{style:d.headerTitle,children:o.title}),y(R,{style:d.headerSubtitle,children:o.subtitle})]}),o.healthPercentage!==void 0&&y(m,{style:d.headerRight,children:x(m,{style:d.statusIndicator,children:[y(m,{style:[d.statusDot,{backgroundColor:o.healthColor||n.success}]}),y(R,{style:[d.statusText,{color:o.healthColor||n.success}],children:o.healthStatus||"OPTIMAL"})]})})]}),o?.healthPercentage!==void 0&&x(m,{style:d.healthSection,children:[y(R,{style:d.healthLabel,children:"SYSTEM HEALTH"}),y(m,{style:d.healthBarWrapper,children:y(m,{style:d.healthBarBg,children:y(le.View,{style:[d.healthBarFill,{width:`${o.healthPercentage}%`,backgroundColor:o.healthColor||n.success}]})})}),x(R,{style:[d.healthPercentage,{color:o.healthColor||n.success}],children:[o.healthPercentage,"%"]})]}),y(m,{style:d.statsGrid,children:e.map(i=>{let h=i.value>0;if(c&&!h)return null;let C=i.icon,a=t?i.value/t*100:0;return x(le.View,{style:[d.statCard,{borderColor:i.color+"30"}],children:[x(m,{style:d.cardContent,children:[y(m,{style:[d.iconBadge,{backgroundColor:i.color+"1A",borderColor:i.color+"33"}],children:y(C,{size:12,color:i.color})}),x(m,{style:d.cardInfo,children:[y(R,{style:d.cardLabel,children:i.label}),y(R,{style:d.cardSubtitle,children:i.subtitle})]}),x(m,{style:d.valueBlock,children:[y(R,{style:[d.statNumber,{color:i.color}],children:i.value.toString().padStart(2,"0")}),t?x(R,{style:d.percentText,children:[Math.round(a),"%"]}):null]})]}),i.showBar!==false&&t&&y(m,{style:[d.statBar,{backgroundColor:i.color+"10"}],children:y(m,{style:[d.statBarFill,{width:`${a}%`,backgroundColor:i.color}]})})]},i.key)})}),s&&s.length>0&&y(m,{style:d.bottomBar,children:s.map((i,h)=>x(Pe,{children:[x(m,{style:d.bottomStat,children:[y(R,{style:d.bottomStatLabel,children:i.label}),y(R,{style:[d.bottomStatValue,i.color&&{color:i.color}],children:i.value})]}),h<s.length-1&&y(m,{style:d.bottomDivider})]},i.label))})]})}var d=Me.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:p,letterSpacing:1.5},headerSubtitle:{fontSize:8,color:n.secondary,fontFamily:p,opacity:.7},statusIndicator:{flexDirection:"row",alignItems:"center",gap:4},statusDot:{width:5,height:5,borderRadius:2.5},statusText:{fontSize:9,fontWeight:"600",fontFamily:p,letterSpacing:.5},healthSection:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:8},healthLabel:{fontSize:8,color:n.secondary,fontFamily:p,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:p},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:p,letterSpacing:.5,color:n.primary},cardSubtitle:{fontSize:8,color:n.secondary,fontFamily:p,opacity:.7},statNumber:{fontSize:16,fontWeight:"700",fontFamily:p,minWidth:28},valueBlock:{alignItems:"flex-end"},percentText:{fontSize:9,color:n.secondary,fontFamily:p},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:p,letterSpacing:.5,marginBottom:1},bottomStatValue:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:p},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 Ge,useCallback as Ue}from"react";import{StyleSheet as He,Text as w,View as N,TouchableOpacity as Je,Animated as Ye}from"react-native-web";import{jsx as b,jsxs as O}from"react/jsx-runtime";function Ke({issues:e,onIssueClick:t,hintText:o="Tap any issue to view details",style:s,expandable:u=true,statusLabels:c={missing:"Not found",wrong_type:"Type error",wrong_value:"Invalid value"}}){let[i,h]=Ge(new Set),C=Ue(r=>{u&&h(S=>{let v=new Set(S);return v.has(r)?v.delete(r):v.add(r),v})},[u]),a=r=>r==="missing"?n.warning:n.info,l=r=>r==="missing"?U:H,f=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""}};return e.length===0?null:O(N,{style:[g.container,s],children:[e.map((r,S)=>{let v=a(r.status),A=l(r.status),T=i.has(r.key),V=T?Y:J;return O(N,{children:[O(Je,{onPress:()=>{u&&C(r.key),t?.(r)},style:g.issueRow,activeOpacity:.7,children:[b(A,{size:14,color:v}),O(N,{style:g.issueContent,children:[b(w,{style:[g.issueKey,{color:n.primary}],children:r.key}),b(w,{style:g.issueDesc,children:f(r)})]}),u&&b(V,{size:12,color:n.muted})]}),u&&T&&O(Ye.View,{style:g.issueDetails,children:[O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Status:"}),O(w,{style:[g.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"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Current:"}),b(w,{style:[g.detailValue,{color:n.warning}],children:`"${String(r.value)}"`})]}),r.expectedType&&r.status==="wrong_type"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Expected:"}),b(w,{style:[g.detailValue,{color:n.success}],children:r.expectedType})]}),r.expectedValue&&r.status==="wrong_value"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Expected:"}),b(w,{style:[g.detailValue,{color:n.success}],children:`"${r.expectedValue}"`})]}),r.description&&b(N,{style:g.descSection,children:b(w,{style:g.descText,children:r.description})}),r.fixSuggestion&&O(N,{style:g.fixSection,children:[b(w,{style:g.fixLabel,children:"HOW TO FIX"}),b(w,{style:g.fixText,children:r.fixSuggestion})]})]})]},`${r.key}-${S}`)}),o&&b(w,{style:g.hint,children:o})]})}var g=He.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:p},issueDesc:{fontSize:10,color:n.secondary,fontFamily:p,flex:1},hint:{fontSize:9,color:n.muted,fontFamily:p,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:p,fontWeight:"600",width:70},detailValue:{fontSize:11,color:n.primary,fontFamily:p,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:p,fontWeight:"700",marginBottom:6,letterSpacing:.5},fixText:{fontSize:11,color:n.primary,fontFamily:p,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:p,marginTop:4,lineHeight:14}});import{useMemo as se,useEffect as Xe,useRef as ce}from"react";import{Animated as D,Easing as de}from"react-native-web";var ue={OPTIMAL:{icon:he,color:n.success,label:"CONFIG OK",subtitle:"All requirements met",pulse:false},WARNING:{icon:H,color:n.warning,label:"CONFIG WARNING",subtitle:"Check values and types",pulse:false},ERROR:{icon:pe,color:n.error,label:"CONFIG ERROR",subtitle:"Missing required data",pulse:false},CRITICAL:{icon:U,color:n.critical,label:"CONFIG FAILURE",subtitle:"Multiple critical issues",pulse:false},LOADING:{icon:fe,color:n.info,label:"LOADING",subtitle:"Reading configuration...",pulse:true},EMPTY:{icon:ge,color:n.muted,label:"NO DATA",subtitle:"No configuration found",pulse:false}};function qe(e,t){let o=se(()=>({...ue,...t}),[t]),s=se(()=>e.totalCount===0?"EMPTY":e.missingCount>2||e.wrongTypeCount>2?"CRITICAL":e.missingCount>0?"ERROR":e.wrongValueCount>0||e.wrongTypeCount>0?"WARNING":"OPTIMAL",[e]),u=o[s],c=ce(new D.Value(1)).current,i=ce(new D.Value(1)).current;return Xe(()=>{c.setValue(0),i.setValue(.95),D.parallel([D.timing(c,{toValue:1,duration:300,useNativeDriver:true}),D.timing(i,{toValue:1,duration:300,easing:de.out(de.ease),useNativeDriver:true})]).start()},[s,c,i]),{alertState:s,alertConfig:u,alertAnimatedStyle:{transform:[{scale:i}],opacity:c},alertOpacity:c,alertScale:i}}export{me as a,ne as b,ae as c,ze as d,Be as e,je as f,ie as g,_e as h,$e as i,Ke as j,ue as k,qe as l};
1
+ "use client";import{Ob as fe,Pb as pe,Q as U,Qb as H,R as ge,Ub as he,Wb as J,Zb as Y,ld as p}from"./chunk-YG6DIKQD.mjs";import{d as n}from"./chunk-CE5U3CSQ.mjs";var ye="[Circular]",K="[...]";function me(e,t,o={}){let{depthLimit:s=Number.MAX_SAFE_INTEGER,edgesLimit:u=Number.MAX_SAFE_INTEGER}=o,c=[];function i(a,l,f,r,S,v){if(v+=1,typeof a=="object"&&a!==null){for(let T=0;T<r.length;T++)if(r[T]===a){h(ye,a,l,S);return}if(v>s){h(K,a,l,S);return}if(f+1>u){h(K,a,l,S);return}if(r.push(a),Array.isArray(a)){let T=a;for(let A=0;A<a.length;A++)i(a[A],A,A,r,T,v)}else if(a instanceof Map||a instanceof Set||a instanceof RegExp||a instanceof Date||a instanceof Error){r.pop();return}else{let T=a,A=Object.keys(T);for(let V=0;V<A.length;V++){let G=A[V];i(T[G],G,V,r,T,v)}}r.pop()}}function h(a,l,f,r){if(!r)return;let S=Object.getOwnPropertyDescriptor(r,f);if(S?.get!==void 0)if(S.configurable)Object.defineProperty(r,f,{value:a}),c.push([r,f,l,S]);else return;else r[f]=a,c.push([r,f,l])}let C=(a,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 f={name:l.name,message:l.message,stack:l.stack};return Object.getOwnPropertyNames(l).forEach(r=>{if(!["name","message","stack"].includes(r))try{let S=l[r];S!==void 0&&(f[r]=S)}catch{}}),f}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(([f,r])=>[String(f),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 i(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(;c.length!==0;){let a=c.pop();if(a&&a.length===4){let[l,f,,r]=a;l&&typeof l=="object"&&r&&Object.defineProperty(l,f,r)}else if(a){let[l,f,r]=a;l&&typeof l=="object"&&(typeof f=="string"||typeof f=="number")&&(l[f]=r)}}}}var be=e=>typeof e>"u",Se=e=>typeof e!="object"||e===null||e===Object.prototype?false:Object.getPrototypeOf(e)===null?true:Object.getPrototypeOf(e)===Object.prototype,L=e=>Array.isArray(e),we=e=>typeof e=="boolean"||e===null||typeof e>"u"||typeof e=="number"||typeof e=="string"||typeof e=="symbol",xe=e=>e instanceof Date&&!isNaN(e.valueOf()),X=e=>e instanceof Error,Ce=e=>e instanceof RegExp,q=e=>e instanceof Set,Q=e=>e instanceof Map,ve=e=>typeof e=="bigint",Z=e=>typeof e=="number"&&isNaN(e),Te=e=>e===1/0||e===-1/0,Ae=e=>e===0&&1/e===-1/0,Ie=e=>e instanceof URL,Re=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Oe={Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray},ee=[{isApplicable:be,annotation:"undefined",transform:()=>null,untransform:()=>{}},{isApplicable:ve,annotation:"bigint",transform:e=>e.toString(),untransform:e=>typeof BigInt<"u"?BigInt(e):(console.error("BigInt is not supported in this environment"),e)},{isApplicable:xe,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=>{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:Ce,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: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)||Te(e),annotation:"number",transform:e=>Z(e)?"NaN":e>0?"Infinity":"-Infinity",untransform:e=>Number(e)},{isApplicable:Ae,annotation:"number",transform:()=>"-0",untransform:()=>-0},{isApplicable:Ie,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)=>{let o=Array.isArray(t)?t[1]:"Uint8Array",s=Oe[o];if(!s)throw new Error(`Unknown typed array: ${o}`);return new s(e)}}];function W(e){for(let t of ee)if(t.isApplicable(e)){let o=typeof t.annotation=="function"?t.annotation(e):t.annotation;return{value:t.transform(e),type:o}}}function te(e,t){for(let o of ee){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 re=e=>Se(e)||L(e)||Q(e)||q(e)||X(e);function _(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function oe(e,t=[],o=[]){let s=we(e);if(!s&&!re(e)){let a=W(e);return a?{transformedValue:a.value,annotations:{[t.map(String).map(_).join(".")]:a.type}}:{transformedValue:e}}if(!s&&o.indexOf(e)!==-1)return{transformedValue:null};if(!re(e)){let a=W(e);return a?{transformedValue:a.value,annotations:t.length>0?{[t.map(String).map(_).join(".")]:a.type}:{"":a.type}}:{transformedValue:e}}let u=W(e),c=u?.value??e,i=L(c)?[]:{},h={};if(u){let a=t.length>0?t.map(String).map(_).join("."):"";h[a]=u.type}let C=L(c)?c.map((a,l)=>[l,a]):Object.entries(c);for(let[a,l]of C){let f=String(a);if(f==="__proto__"||f==="constructor"||f==="prototype")throw new Error(`Detected property ${f}. This is a prototype pollution risk, please remove it from your object.`);let r=oe(l,[...t,a],[...o,e]);i[a]=r.transformedValue,r.annotations&&Object.assign(h,r.annotations)}return{transformedValue:i,annotations:Object.keys(h).length>0?h:void 0}}function ke(e){if(e==="")return[];let t=[],o="";for(let s=0;s<e.length;s++){let u=e.charAt(s);if(u==="\\"){let c=e.charAt(s+1);if(c==="\\"){o+="\\",s++;continue}else if(c==="."){o+=".",s++;continue}}if(u==="."){t.push(o),o="";continue}o+=u}return o&&t.push(o),t}function Ne(e,t,o){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]]=o}function Fe(e,t){let o=e;for(let s of t)o=o[s];return o}function ne(e){let t=oe(e),o={json:t.transformedValue};return t.annotations&&(o.meta={values:t.annotations}),o}function ae(e){let{json:t,meta:o}=e;if(!o?.values)return t;let s=L(t)?[...t]:{...t},u=Object.entries(o.values).map(([c,i])=>({pathString:c,type:i,path:ke(c)})).sort((c,i)=>i.path.length-c.path.length);for(let{type:c,path:i}of u)if(i.length===0)s=te(s,c);else{let h=Fe(s,i),C=te(h,c);Ne(s,i,C)}return s}var ze=(e,t=false)=>{let{json:o}=ne(e);return JSON.stringify(o,null,t?2:void 0)},Be=e=>{try{let t=JSON.parse(e);return ae({json:t,meta:void 0})}catch{return JSON.parse(e)}};import{StyleSheet as Ve,Text as P,View as j,TouchableOpacity as De,Animated as Le}from"react-native-web";import{jsx as F,jsxs as E}from"react/jsx-runtime";function je({icon:e,iconColor:t,title:o,count:s,subtitle:u,expanded:c,onToggle:i,children:h,style:C,titleStyle:a}){return E(j,{style:[z.container,C],children:[E(De,{onPress:i,activeOpacity:.7,style:z.headerTouchable,children:[E(j,{style:z.header,children:[E(j,{style:z.headerLeft,children:[F(e,{size:14,color:t}),F(P,{style:[z.title,a],children:o}),F(j,{style:[z.badge,{backgroundColor:t+"20"}],children:F(P,{style:[z.badgeText,{color:t}],children:s})})]}),c?F(Y,{size:14,color:n.muted}):F(J,{size:14,color:n.muted})]}),F(P,{style:z.subtitle,children:u})]}),c&&F(Le.View,{style:{opacity:1},children:h})]})}var z=Ve.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:p,fontWeight:"700",letterSpacing:2,opacity:.9},subtitle:{fontSize:9,color:n.secondary,fontFamily:p,paddingHorizontal:4,marginTop:2,opacity:.7},badge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},badgeText:{fontSize:10,fontFamily:p,fontWeight:"700"}});var ie={position:"absolute",top:0,left:0,right:0,bottom:0};import{StyleSheet as Ee,Text as M,View as B,Animated as We}from"react-native-web";import{jsx as k,jsxs as $}from"react/jsx-runtime";function _e({alertConfig:e,badgeText:t,animatedStyle:o,style:s,indicatorCount:u=3}){let c=e.icon;return $(We.View,{style:[I.container,{borderColor:e.color+"40"},s,o],children:[k(B,{style:[I.glow,{backgroundColor:e.color+"10"}]}),$(B,{style:I.content,children:[k(B,{style:[I.iconWrapper,{backgroundColor:e.color+"15"}],children:k(c,{size:20,color:e.color})}),$(B,{style:I.textContainer,children:[k(M,{style:[I.label,{color:e.color}],children:e.label}),k(M,{style:I.subtitle,children:e.subtitle})]}),k(B,{style:[I.badge,{backgroundColor:e.color+"20"}],children:k(M,{style:[I.badgeText,{color:e.color}],children:t})})]}),k(B,{style:I.indicators,children:[...Array(u)].map((i,h)=>k(B,{style:[I.indicatorDot,{backgroundColor:e.color,opacity:e.pulse?h===0?1:.5-h*.2:.3-h*.1}]},h))})]})}var I=Ee.create({container:{backgroundColor:n.panel,borderRadius:12,borderWidth:1,padding:16,marginBottom:16,position:"relative",overflow:"hidden"},glow:{...ie,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:p,letterSpacing:1.5,textShadowOffset:{width:0,height:0},textShadowRadius:8},subtitle:{fontSize:10,color:n.secondary,fontFamily:p},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:4},badgeText:{fontSize:9,fontWeight:"700",fontFamily:p,letterSpacing:1},indicators:{position:"absolute",top:8,right:8,flexDirection:"row",gap:3},indicatorDot:{width:4,height:4,borderRadius:2}});import{Fragment as Pe}from"react";import{StyleSheet as Me,Text as R,View as m,Animated as le}from"react-native-web";import{jsx as y,jsxs as x}from"react/jsx-runtime";function $e({statsConfig:e,totalCount:t,header:o,bottomStats:s,style:u,hideInactive:c=true}){return x(m,{style:[d.container,u],children:[o&&x(m,{style:d.header,children:[x(m,{style:d.headerLeft,children:[y(R,{style:d.headerTitle,children:o.title}),y(R,{style:d.headerSubtitle,children:o.subtitle})]}),o.healthPercentage!==void 0&&y(m,{style:d.headerRight,children:x(m,{style:d.statusIndicator,children:[y(m,{style:[d.statusDot,{backgroundColor:o.healthColor||n.success}]}),y(R,{style:[d.statusText,{color:o.healthColor||n.success}],children:o.healthStatus||"OPTIMAL"})]})})]}),o?.healthPercentage!==void 0&&x(m,{style:d.healthSection,children:[y(R,{style:d.healthLabel,children:"SYSTEM HEALTH"}),y(m,{style:d.healthBarWrapper,children:y(m,{style:d.healthBarBg,children:y(le.View,{style:[d.healthBarFill,{width:`${o.healthPercentage}%`,backgroundColor:o.healthColor||n.success}]})})}),x(R,{style:[d.healthPercentage,{color:o.healthColor||n.success}],children:[o.healthPercentage,"%"]})]}),y(m,{style:d.statsGrid,children:e.map(i=>{let h=i.value>0;if(c&&!h)return null;let C=i.icon,a=t?i.value/t*100:0;return x(le.View,{style:[d.statCard,{borderColor:i.color+"30"}],children:[x(m,{style:d.cardContent,children:[y(m,{style:[d.iconBadge,{backgroundColor:i.color+"1A",borderColor:i.color+"33"}],children:y(C,{size:12,color:i.color})}),x(m,{style:d.cardInfo,children:[y(R,{style:d.cardLabel,children:i.label}),y(R,{style:d.cardSubtitle,children:i.subtitle})]}),x(m,{style:d.valueBlock,children:[y(R,{style:[d.statNumber,{color:i.color}],children:i.value.toString().padStart(2,"0")}),t?x(R,{style:d.percentText,children:[Math.round(a),"%"]}):null]})]}),i.showBar!==false&&t&&y(m,{style:[d.statBar,{backgroundColor:i.color+"10"}],children:y(m,{style:[d.statBarFill,{width:`${a}%`,backgroundColor:i.color}]})})]},i.key)})}),s&&s.length>0&&y(m,{style:d.bottomBar,children:s.map((i,h)=>x(Pe,{children:[x(m,{style:d.bottomStat,children:[y(R,{style:d.bottomStatLabel,children:i.label}),y(R,{style:[d.bottomStatValue,i.color&&{color:i.color}],children:i.value})]}),h<s.length-1&&y(m,{style:d.bottomDivider})]},i.label))})]})}var d=Me.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:p,letterSpacing:1.5},headerSubtitle:{fontSize:8,color:n.secondary,fontFamily:p,opacity:.7},statusIndicator:{flexDirection:"row",alignItems:"center",gap:4},statusDot:{width:5,height:5,borderRadius:2.5},statusText:{fontSize:9,fontWeight:"600",fontFamily:p,letterSpacing:.5},healthSection:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:8},healthLabel:{fontSize:8,color:n.secondary,fontFamily:p,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:p},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:p,letterSpacing:.5,color:n.primary},cardSubtitle:{fontSize:8,color:n.secondary,fontFamily:p,opacity:.7},statNumber:{fontSize:16,fontWeight:"700",fontFamily:p,minWidth:28},valueBlock:{alignItems:"flex-end"},percentText:{fontSize:9,color:n.secondary,fontFamily:p},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:p,letterSpacing:.5,marginBottom:1},bottomStatValue:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:p},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 Ge,useCallback as Ue}from"react";import{StyleSheet as He,Text as w,View as N,TouchableOpacity as Je,Animated as Ye}from"react-native-web";import{jsx as b,jsxs as O}from"react/jsx-runtime";function Ke({issues:e,onIssueClick:t,hintText:o="Tap any issue to view details",style:s,expandable:u=true,statusLabels:c={missing:"Not found",wrong_type:"Type error",wrong_value:"Invalid value"}}){let[i,h]=Ge(new Set),C=Ue(r=>{u&&h(S=>{let v=new Set(S);return v.has(r)?v.delete(r):v.add(r),v})},[u]),a=r=>r==="missing"?n.warning:n.info,l=r=>r==="missing"?U:H,f=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""}};return e.length===0?null:O(N,{style:[g.container,s],children:[e.map((r,S)=>{let v=a(r.status),T=l(r.status),A=i.has(r.key),V=A?Y:J;return O(N,{children:[O(Je,{onPress:()=>{u&&C(r.key),t?.(r)},style:g.issueRow,activeOpacity:.7,children:[b(T,{size:14,color:v}),O(N,{style:g.issueContent,children:[b(w,{style:[g.issueKey,{color:n.primary}],children:r.key}),b(w,{style:g.issueDesc,children:f(r)})]}),u&&b(V,{size:12,color:n.muted})]}),u&&A&&O(Ye.View,{style:g.issueDetails,children:[O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Status:"}),O(w,{style:[g.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"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Current:"}),b(w,{style:[g.detailValue,{color:n.warning}],children:`"${String(r.value)}"`})]}),r.expectedType&&r.status==="wrong_type"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Expected:"}),b(w,{style:[g.detailValue,{color:n.success}],children:r.expectedType})]}),r.expectedValue&&r.status==="wrong_value"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Expected:"}),b(w,{style:[g.detailValue,{color:n.success}],children:`"${r.expectedValue}"`})]}),r.description&&b(N,{style:g.descSection,children:b(w,{style:g.descText,children:r.description})}),r.fixSuggestion&&O(N,{style:g.fixSection,children:[b(w,{style:g.fixLabel,children:"HOW TO FIX"}),b(w,{style:g.fixText,children:r.fixSuggestion})]})]})]},`${r.key}-${S}`)}),o&&b(w,{style:g.hint,children:o})]})}var g=He.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:p},issueDesc:{fontSize:10,color:n.secondary,fontFamily:p,flex:1},hint:{fontSize:9,color:n.muted,fontFamily:p,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:p,fontWeight:"600",width:70},detailValue:{fontSize:11,color:n.primary,fontFamily:p,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:p,fontWeight:"700",marginBottom:6,letterSpacing:.5},fixText:{fontSize:11,color:n.primary,fontFamily:p,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:p,marginTop:4,lineHeight:14}});import{useMemo as se,useEffect as Xe,useRef as ce}from"react";import{Animated as D,Easing as de}from"react-native-web";var ue={OPTIMAL:{icon:he,color:n.success,label:"CONFIG OK",subtitle:"All requirements met",pulse:false},WARNING:{icon:H,color:n.warning,label:"CONFIG WARNING",subtitle:"Check values and types",pulse:false},ERROR:{icon:pe,color:n.error,label:"CONFIG ERROR",subtitle:"Missing required data",pulse:false},CRITICAL:{icon:U,color:n.critical,label:"CONFIG FAILURE",subtitle:"Multiple critical issues",pulse:false},LOADING:{icon:fe,color:n.info,label:"LOADING",subtitle:"Reading configuration...",pulse:true},EMPTY:{icon:ge,color:n.muted,label:"NO DATA",subtitle:"No configuration found",pulse:false}};function qe(e,t){let o=se(()=>({...ue,...t}),[t]),s=se(()=>e.totalCount===0?"EMPTY":e.missingCount>2||e.wrongTypeCount>2?"CRITICAL":e.missingCount>0?"ERROR":e.wrongValueCount>0||e.wrongTypeCount>0?"WARNING":"OPTIMAL",[e]),u=o[s],c=ce(new D.Value(1)).current,i=ce(new D.Value(1)).current;return Xe(()=>{c.setValue(0),i.setValue(.95),D.parallel([D.timing(c,{toValue:1,duration:300,useNativeDriver:true}),D.timing(i,{toValue:1,duration:300,easing:de.out(de.ease),useNativeDriver:true})]).start()},[s,c,i]),{alertState:s,alertConfig:u,alertAnimatedStyle:{transform:[{scale:i}],opacity:c},alertOpacity:c,alertScale:i}}export{me as a,ne as b,ae as c,ze as d,Be as e,je as f,ie as g,_e as h,$e as i,Ke as j,ue as k,qe as l};
@@ -1,4 +1,4 @@
1
- "use client";import{e as te}from"./chunk-46TKOKMV.mjs";import{c as W}from"./chunk-HGA3GJA6.mjs";import{A as Y,G as $,H as r,W as ae,p as C,q as m,s as I,u as A,x as R,z as L}from"./chunk-3UTMGIUG.mjs";import{useCallback as se,useEffect as ie,useRef as j,useState as q}from"react";var T=new Map;function ne(e){try{return JSON.parse(e)}catch{return}}function re(e,t,a={}){let[n,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,ie(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??ne;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=se(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[n,v,y]}function le(){T.clear()}import{useCallback as P,useEffect as z,useMemo as oe,useState as O}from"react";function ce(e,t={}){let[a,n]=O(()=>e.getAll()),[l,y]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(n),[e]);let d=t.filterItems,v=oe(()=>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 de(e,t){let[a,n]=O(e);return z(()=>t(n),[t]),a}import{useCallback as ue,useEffect as fe,useState as K}from"react";function ge(e,t={}){let{enabled:a=true,maxEvents:n=500,select:l}=t,[y,g]=K([]),[c,d]=K(a);fe(()=>{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=ue(()=>{e.clearEvents()},[e]);return{events:y,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as he}from"react";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,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)]);n.isBoldTextEnabled=l,n.isGrayscaleEnabled=y,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 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 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(ae.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 me(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 Se(){let[e,t]=b(true),[a,n]=b(k()),[l,y]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=I.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:A.currentState,isActive:A.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=he(async()=>{t(true);let[f,s]=await Promise.all([U(),X()]);n(k()),y(M()),c(f);let i=I.getColorScheme()??null;v({colorScheme:i,prefersDarkMode:i==="dark"}),S(N()),h(E=>({...E,height:s})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:s,screen:i})=>{y(E=>({...E,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=I.addChangeListener(({colorScheme:s})=>{let i=s??null;v({colorScheme:i,prefersDarkMode:i==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",i=>{F({isVisible:true,height:i.endCoordinates.height,animationDuration:i.duration??0})}),s=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",i=>{F({isVisible:false,height:0,animationDuration:i.duration??0})});return()=>{f.remove(),s.remove()}},[]),w(()=>{let f=te(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,E)=>m.addEventListener(i,E);f.push(s("boldTextChanged",i=>{c(E=>({...E,isBoldTextEnabled:i}))}),s("grayscaleChanged",i=>{c(E=>({...E,isGrayscaleEnabled:i}))}),s("invertColorsChanged",i=>{c(E=>({...E,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:()=>me({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 pe(){let[e,t]=await Promise.all([U(),X()]),a=I.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:A.currentState,isActive:A.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function be(e){console.log(`
1
+ "use client";import{e as te}from"./chunk-46TKOKMV.mjs";import{c as W}from"./chunk-HGA3GJA6.mjs";import{A as Y,G as $,H as r,W as ae,p as C,q as m,s as I,u as A,x as R,z as L}from"./chunk-3UTMGIUG.mjs";import{useCallback as ie,useEffect as se,useRef as j,useState as q}from"react";var T=new Map;function ne(e){try{return JSON.parse(e)}catch{return}}function re(e,t,a={}){let[n,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,se(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??ne;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=ie(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[n,v,y]}function le(){T.clear()}import{useCallback as P,useEffect as z,useMemo as oe,useState as O}from"react";function ce(e,t={}){let[a,n]=O(()=>e.getAll()),[l,y]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(n),[e]);let d=t.filterItems,v=oe(()=>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 de(e,t){let[a,n]=O(e);return z(()=>t(n),[t]),a}import{useCallback as ue,useEffect as fe,useState as K}from"react";function ge(e,t={}){let{enabled:a=true,maxEvents:n=500,select:l}=t,[y,g]=K([]),[c,d]=K(a);fe(()=>{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=ue(()=>{e.clearEvents()},[e]);return{events:y,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as he}from"react";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,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)]);n.isBoldTextEnabled=l,n.isGrayscaleEnabled=y,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 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 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(ae.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 me(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 Se(){let[e,t]=b(true),[a,n]=b(k()),[l,y]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=I.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:A.currentState,isActive:A.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=he(async()=>{t(true);let[f,i]=await Promise.all([U(),X()]);n(k()),y(M()),c(f);let s=I.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(E=>({...E,height:i})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:i,screen:s})=>{y(E=>({...E,window:{width:i.width,height:i.height,scale:i.scale,fontScale:i.fontScale},screen:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},isLandscape:i.width>i.height,isPortrait:i.height>i.width}))});return()=>f.remove()},[]),w(()=>{let f=I.addChangeListener(({colorScheme:i})=>{let s=i??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})}),i=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",s=>{F({isVisible:false,height:0,animationDuration:s.duration??0})});return()=>{f.remove(),i.remove()}},[]),w(()=>{let f=te(i=>{_({currentState:i,isActive:i==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",i=>{c(s=>({...s,isScreenReaderEnabled:i}))}),m.addEventListener("reduceMotionChanged",i=>{c(s=>({...s,isReduceMotionEnabled:i}))}),m.addEventListener("reduceTransparencyChanged",i=>{c(s=>({...s,isReduceTransparencyEnabled:i}))})];if(r.OS==="ios"){let i=(s,E)=>m.addEventListener(s,E);f.push(i("boldTextChanged",s=>{c(E=>({...E,isBoldTextEnabled:s}))}),i("grayscaleChanged",s=>{c(E=>({...E,isGrayscaleEnabled:s}))}),i("invertColorsChanged",s=>{c(E=>({...E,isInvertColorsEnabled:s}))}))}return()=>{f.forEach(i=>i.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:()=>me({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 pe(){let[e,t]=await Promise.all([U(),X()]),a=I.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:A.currentState,isActive:A.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function be(e){console.log(`
2
2
  ========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
3
3
  `),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
4
4
  --- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
@@ -1,4 +1,4 @@
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-QPIZURPZ.mjs";import{useCallback as ae,useEffect as se,useRef as j,useState as q}from"react";var T=new Map;function ne(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,se(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??ne;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,s]=await Promise.all([U(),X()]);i(k()),y(M()),c(f);let n=A.getColorScheme()??null;v({colorScheme:n,prefersDarkMode:n==="dark"}),S(N()),h(E=>({...E,height:s})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:s,screen:n})=>{y(E=>({...E,window:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},screen:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},isLandscape:s.width>s.height,isPortrait:s.height>s.width}))});return()=>f.remove()},[]),w(()=>{let f=A.addChangeListener(({colorScheme:s})=>{let n=s??null;v({colorScheme:n,prefersDarkMode:n==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",n=>{F({isVisible:true,height:n.endCoordinates.height,animationDuration:n.duration??0})}),s=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",n=>{F({isVisible:false,height:0,animationDuration:n.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(n=>({...n,isScreenReaderEnabled:s}))}),m.addEventListener("reduceMotionChanged",s=>{c(n=>({...n,isReduceMotionEnabled:s}))}),m.addEventListener("reduceTransparencyChanged",s=>{c(n=>({...n,isReduceTransparencyEnabled:s}))})];if(r.OS==="ios"){let s=(n,E)=>m.addEventListener(n,E);f.push(s("boldTextChanged",n=>{c(E=>({...E,isBoldTextEnabled:n}))}),s("grayscaleChanged",n=>{c(E=>({...E,isGrayscaleEnabled:n}))}),s("invertColorsChanged",n=>{c(E=>({...E,isInvertColorsEnabled:n}))}))}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=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(`
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-QPIZURPZ.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
2
  ========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
3
3
  `),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
4
4
  --- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
@@ -1,4 +1,4 @@
1
- "use client";import{e as te}from"./chunk-46TKOKMV.mjs";import{c as W}from"./chunk-DEJNSL6V.mjs";import{A as Y,G as $,H as r,W as ae,p as C,q as m,s as I,u as A,x as R,z as L}from"./chunk-3UTMGIUG.mjs";import{useCallback as ne,useEffect as ie,useRef as j,useState as q}from"react";var T=new Map;function se(e){try{return JSON.parse(e)}catch{return}}function re(e,t,a={}){let[s,o]=q(()=>T.has(e)?T.get(e):t),[E,f]=q(()=>T.has(e)),c=j(e);c.current=e;let d=j(a);d.current=a,ie(()=>{if(T.has(e)){o(T.get(e)),f(true);return}let l=false,S=d.current.storage??W,p=d.current.parse??se;return S.getItem(e).then(h=>{if(!l){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),o(u))}f(true)}}).catch(()=>{l||f(true)}),()=>{l=true}},[e]);let v=ne(l=>{o(S=>{let p=typeof l=="function"?l(S):l;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[s,v,E]}function oe(){T.clear()}import{useCallback as P,useEffect as z,useMemo as le,useState as O}from"react";function ce(e,t={}){let[a,s]=O(()=>e.getAll()),[o,E]=O(()=>t.initialFilter??{}),[f,c]=O(()=>e.getEnabled());z(()=>e.subscribe(s),[e]);let d=t.filterItems,v=le(()=>d?d(a,o):a,[a,o,d]),l=P(()=>{e.clear()},[e]),S=P(()=>{let h=!f;e.setEnabled(h),c(h)},[e,f]),p=P(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:o,setFilter:E,isEnabled:f,toggleCapture:S,clear:l,getById:p}}function de(e,t){let[a,s]=O(e);return z(()=>t(s),[t]),a}import{useCallback as ue,useEffect as ge,useState as K}from"react";function fe(e,t={}){let{enabled:a=true,maxEvents:s=500,select:o}=t,[E,f]=K([]),[c,d]=K(a);ge(()=>{if(!a){d(false);return}let l=null,S=null,p=e.subscribeToEvents(h=>{S=h,l==null&&(l=requestAnimationFrame(()=>{if(l=null,!S)return;let u=S;S=null,o&&(u=o(u)),u.length>s&&(u=u.slice(0,s)),f(u)}))});return d(true),()=>{p(),l!=null&&cancelAnimationFrame(l)}},[e,a,s,o]);let v=ue(()=>{e.clearEvents()},[e]);return{events:E,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as he}from"react";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),s={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[o,E,f,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)]);s.isBoldTextEnabled=o,s.isGrayscaleEnabled=E,s.isInvertColorsEnabled=f,s.isDarkerSystemColorsEnabled=c,s.prefersCrossFadeTransitions=d}if(r.OS==="android"){let o=await m.isHighTextContrastEnabled?.()??false;s.isHighTextContrastEnabled=o}return s}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 s=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=s?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let s=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=s?.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(ae.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 me(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 s=0;s<t.length;s++){let o=t.charCodeAt(s);a=(a<<5)-a+o,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function Se(){let[e,t]=b(true),[a,s]=b(k()),[o,E]=b(M()),[f,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let g=I.getColorScheme()??null;return{colorScheme:g,prefersDarkMode:g==="dark"}}),[l,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:A.currentState,isActive:A.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=he(async()=>{t(true);let[g,n]=await Promise.all([U(),X()]);s(k()),E(M()),c(g);let i=I.getColorScheme()??null;v({colorScheme:i,prefersDarkMode:i==="dark"}),S(N()),h(y=>({...y,height:n})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let g=R.addEventListener("change",({window:n,screen:i})=>{E(y=>({...y,window:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},screen:{width:i.width,height:i.height,scale:i.scale,fontScale:i.fontScale},isLandscape:n.width>n.height,isPortrait:n.height>n.width}))});return()=>g.remove()},[]),w(()=>{let g=I.addChangeListener(({colorScheme:n})=>{let i=n??null;v({colorScheme:i,prefersDarkMode:i==="dark"})});return()=>g.remove()},[]),w(()=>{let g=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",i=>{F({isVisible:true,height:i.endCoordinates.height,animationDuration:i.duration??0})}),n=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",i=>{F({isVisible:false,height:0,animationDuration:i.duration??0})});return()=>{g.remove(),n.remove()}},[]),w(()=>{let g=te(n=>{_({currentState:n,isActive:n==="active"})});return()=>g.remove()},[]),w(()=>{let g=[m.addEventListener("screenReaderChanged",n=>{c(i=>({...i,isScreenReaderEnabled:n}))}),m.addEventListener("reduceMotionChanged",n=>{c(i=>({...i,isReduceMotionEnabled:n}))}),m.addEventListener("reduceTransparencyChanged",n=>{c(i=>({...i,isReduceTransparencyEnabled:n}))})];if(r.OS==="ios"){let n=(i,y)=>m.addEventListener(i,y);g.push(n("boldTextChanged",i=>{c(y=>({...y,isBoldTextEnabled:i}))}),n("grayscaleChanged",i=>{c(y=>({...y,isGrayscaleEnabled:i}))}),n("invertColorsChanged",i=>{c(y=>({...y,isInvertColorsEnabled:i}))}))}return()=>{g.forEach(n=>n.remove())}},[]),{platform:a,display:o,accessibility:f,appearance:d,locale:l,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>me({platform:a,display:o,accessibility:f,appearance:d,locale:l,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function pe(){let[e,t]=await Promise.all([U(),X()]),a=I.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:A.currentState,isActive:A.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function be(e){console.log(`
1
+ "use client";import{e as te}from"./chunk-46TKOKMV.mjs";import{c as W}from"./chunk-DEJNSL6V.mjs";import{A as Y,G as $,H as r,W as ae,p as C,q as m,s as I,u as A,x as R,z as L}from"./chunk-3UTMGIUG.mjs";import{useCallback as ne,useEffect as se,useRef as j,useState as q}from"react";var T=new Map;function ie(e){try{return JSON.parse(e)}catch{return}}function re(e,t,a={}){let[i,l]=q(()=>T.has(e)?T.get(e):t),[E,g]=q(()=>T.has(e)),c=j(e);c.current=e;let d=j(a);d.current=a,se(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??ie;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=ne(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,E]}function le(){T.clear()}import{useCallback as P,useEffect as z,useMemo as oe,useState as O}from"react";function ce(e,t={}){let[a,i]=O(()=>e.getAll()),[l,E]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(i),[e]);let d=t.filterItems,v=oe(()=>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:E,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function de(e,t){let[a,i]=O(e);return z(()=>t(i),[t]),a}import{useCallback as ue,useEffect as fe,useState as K}from"react";function ge(e,t={}){let{enabled:a=true,maxEvents:i=500,select:l}=t,[E,g]=K([]),[c,d]=K(a);fe(()=>{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=ue(()=>{e.clearEvents()},[e]);return{events:E,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as he}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,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)]);i.isBoldTextEnabled=l,i.isGrayscaleEnabled=E,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(ae.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 me(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 Se(){let[e,t]=b(true),[a,i]=b(k()),[l,E]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=I.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:A.currentState,isActive:A.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=he(async()=>{t(true);let[f,n]=await Promise.all([U(),X()]);i(k()),E(M()),c(f);let s=I.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(y=>({...y,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})=>{E(y=>({...y,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=I.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=te(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,y)=>m.addEventListener(s,y);f.push(n("boldTextChanged",s=>{c(y=>({...y,isBoldTextEnabled:s}))}),n("grayscaleChanged",s=>{c(y=>({...y,isGrayscaleEnabled:s}))}),n("invertColorsChanged",s=>{c(y=>({...y,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:()=>me({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 pe(){let[e,t]=await Promise.all([U(),X()]),a=I.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:A.currentState,isActive:A.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function be(e){console.log(`
2
2
  ========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
3
3
  `),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
4
4
  --- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
@@ -12,4 +12,4 @@
12
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
13
  --- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
14
14
  ========================================
15
- `)}export{re as a,oe as b,ce as c,de as d,fe as e,Se as f,pe as g,be as h};
15
+ `)}export{re as a,le as b,ce as c,de as d,ge as e,Se as f,pe as g,be as h};