"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[52447],{776288(e,t,n){n.d(t,{A:()=>r});const r={PCAP:4194304,HWOFFLOAD_QOS_AND_SMART_QUEUE:2147483648,SUPPORT_FILE:65536}},551753(e,t,n){n.d(t,{A:()=>p});var r=n(822336),a=n(296540),i=n(758649),l=n(217439),o=n(162420),c=n(823858),s=n(793336),m=n(382389),d=n(46119),u=n(916537),A=n(224948),E=n(294303);const p=(0,a.memo)(({children:e,customIcon:t,link:n,nested:p,extra:_,variant:C="warning",...I})=>{const{themeName:w}=(0,m.u)(),g=(0,a.useMemo)(()=>{switch(C){case"warning":return a.createElement(c.A,{size:"original",color:r.Ay[`desktop-color-orange-06-${w}`],variant:"fill"});case"info":return a.createElement(o.A,{isActive:!0,size:"original",variant:"fill"});case"custom":return t;default:return a.createElement(s.A,{size:"medium",color:r.Ay[`desktop-color-red-06-${w}`],variant:"fill"})}},[C,w,t]),v=(0,a.useCallback)(()=>{d.A.open(n)},[n]);return a.createElement(A.A,{icon:g,nested:p,...I},a.createElement(E.A,{flexDirection:"column",alignItems:"flex-start"},a.createElement(l.A,null,e),a.createElement(l.A,null,n?a.createElement(i.A,{type:"button",variant:"inline",onClick:v},a.createElement(u.sA,{id:"COMMON_LEARN_MORE"})):null),_))})},78853(e,t,n){n.d(t,{A:()=>I});var r,a=n(592563),i=n(296540),l=n(469733),o=n(217439),c=n(187483),s=n(916537),m=n(689965),d=n(86571),u=n(801081);!function(e){e.OPEN_MODAL="openModal"}(r||(r={}));const A=(0,u.Mz)(c.zn,e=>void 0!==e[r.OPEN_MODAL]);var E=n(856632),p=n(957866);const _=({uidbDevice:e})=>{const t=(0,l.useSelector)(c.zn),n=t?.[r.OPEN_MODAL];return n?i.createElement(a.A,{onClick:()=>n(e)},i.createElement(o.A,{size:"medium",color:"inherit"},i.createElement(s.sA,{id:"DEVICE_SHOW_DETAILS"}))):null},C=({shortname:e})=>{(0,p.A)();const t=(0,l.useSelector)((0,i.useMemo)(()=>(0,E.$E)(e),[e]));return t?.compliance?i.createElement(m.A,{type:m.I.ACCORDION,items:[{id:"compliance",label:i.createElement(d.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>i.createElement(_,{uidbDevice:t}),openByDefault:!0}]}):null},I=({shortname:e})=>(0,l.useSelector)(A)?i.createElement(C,{shortname:e}):null},686130(e,t,n){n.d(t,{A:()=>R});var r=n(469733),a=n(296540),i=n(592510),l=n(860631),o=n(666889),c=n(635740),s=n(745667),m=n(634229),d=n(602021),u=n(776288),A=n(71479),E=n(180524),p=n(369702),_=n(916537),C=n(780811),I=n(837612),w=n(602197),g=n(199582);const v=(0,A.A)("span")`
  width: 100%;
`,T=({activeItem:e,onClick:t,disabledWithReason:n,[g.L]:r})=>{const i=(e=>{const t=(0,I.S9)(e);return e.disabled||t!==w.g.CONNECTED||!(0,C.sc7)(t)?"DEVICE_PCAP_DISABLED_TOOLTIP":null})(e)||n;return a.createElement(E.A,{description:i?a.createElement(_.sA,{id:i}):void 0},a.createElement(v,{...r&&{[g.L]:r}},a.createElement(p.A,{onClick:t,isDisabled:!!i,width:"full"},a.createElement(_.sA,{id:"COMMON_PACKET_CAPTURE"}))))};var f=n(845030),y=n(398300),O=n(968906),h=n(683086),N=n(132196),b=n(566723),P=n(294303);const M=N.AH`
  &:empty {
    display: none;
  }
`,k=(0,A.A)("div")`
  flex: 1 1 0;
  min-width: 33%;
  box-sizing: border-box;
  padding-right: ${b.kc};

  &:last-child {
    padding-right: 0;
  }
`,D=({children:e,...t})=>a.createElement(P.A,{marginTop:b.kc,className:M,...t},a.Children.map(e,e=>e?a.createElement(k,{className:M},e):null)),R=({activeItem:e,showPortsButton:t,showCaptureButton:n})=>{const A=(0,r.useDispatch)(),E=(0,r.useSelector)(d.vc),p=(0,r.useSelector)(o.ar),_=n&&E===e.mac&&p&&(0,l.W4)(e,u.A.PCAP),C=t&&e.port_table?.length>0;(0,a.useEffect)(()=>{A((0,m.Sk)(void 0,{crudCacheStrategy:{type:i.e.CACHE}})),A((0,s.hh)(void 0,{crudCacheStrategy:{type:i.e.CACHE}}))},[A]);const I=(0,a.useCallback)(()=>{A((0,f.XP)({type:y.H.PACKET_CAPTURE,id:e.mac,customData:{captureDeviceType:c.X.GATEWAY}}))},[A,e.mac]);return a.createElement(a.Fragment,null,a.createElement(D,null,C?a.createElement(h.A,{mac:e.mac}):null,_?a.createElement(T,{activeItem:e,captureDeviceType:c.X.GATEWAY,onClick:I,...O.A.addDataTestId(O.A.TestId.SIDE_PANEL_TRIGGER)}):null))}},635740(e,t,n){var r,a;n.d(t,{A:()=>r,X:()=>a}),function(e){e.DEFAULT="default",e.IN_PROGRESS="inProgress",e.READY="ready",e.DOWNLOADING="downloading",e.STOPPING="stopping"}(r||(r={})),function(e){e.AP="ap",e.GATEWAY="gateway"}(a||(a={}))},666889(e,t,n){n.d(t,{ar:()=>f,ax:()=>y,r8:()=>O});var r=n(801081),a=n(189601),i=n(513180),l=n(573531),o=n(938325),c=n(477544),s=n(339879),m=n(959207),d=n(233187),u=n(366188),A=n(535657),E=n(615720),p=n(532419),_=n(180830),C=n(635740);const I=[d.rR.CORPORATE,d.rR.GUEST],w=e=>void 0===e||e,g=({_id:e,name:t,enabled:n,ip_subnet:r,ipv6_subnet:a,wan_networkgroup:i,vpn_type:o,purpose:c,l2tp_interface:s,openvpn_interface:d,wireguard_interface:u,ipsec_interface:E,sdwan_hub_spoke_local_wan_id:p},_)=>({_id:e,enabled:w(n),name:t||l.L,ip_subnet:_?l.L:(0,m.Qe)({ip_subnet:r,ipv6_subnet:a},A.L),wan_networkgroup:i,vpn_type:o,ipsec_interface:E,l2tp_interface:s,openvpn_interface:d,purpose:c,sdwan_hub_spoke_local_wan_id:p,wireguard_interface:u}),v=(e,t)=>e?e===i.C.WAN?t.wan1:t[e.toLocaleLowerCase()]||{}:{},T=(0,a.WY)()((0,r.Mz)(u.Ct,p.U$,s.$D,p.AL,(e,t,n,r)=>[...e.reduce((e,n)=>(n&&t.network_table?.some(({_id:e})=>e===n._id)&&w(n.enabled)&&n.gateway_type!==d.xk.SWITCH&&I.includes(n.purpose)&&e.push(g(n)),e),[]),...n.reduce((e,{configuration:n={}})=>{if((({purpose:e,wan_networkgroup:t},n)=>{if(e!==d.rR.WAN)return!1;if(t===i.C.WAN_LTE_FAILOVER)return!0;const r=v(t,n);return!!r?.up})(n,t)){let a;if(n.wan_networkgroup===i.C.WAN_LTE_FAILOVER)a=r?.lte_ip;else{const e=v(n.wan_networkgroup,t);a=e?.ip}e.push({...g(n),...a?{ip_subnet:a}:{}})}return e},[])]),e=>e),f=(0,a.WY)()((0,r.Mz)(T,e=>Boolean(e.length)),e=>e),y=(e,t)=>{switch(t){case C.X.AP:return(e=>(0,r.Mz)(u.Ct,c.Ag,(0,_.a5)(e),p.fq,p.Dx,(e,t,n,r,a)=>{const i=t.reduce((e,{enabled:t,networkconf_id:r,ap_group_ids:a=[]})=>(t&&n.some(({_id:e})=>a.includes(e))&&e.push(r),e),[]);return e.reduce((e,t)=>(E.A.includes(t.purpose)&&i.includes(t._id)&&e.push(g(t,(0,o.cH)({gateway_device:t.gateway_device,purpose:t.purpose},r,a))),e),[])}))(e);case C.X.GATEWAY:return T;default:return()=>[]}},O=e=>(0,r.Mz)(c.Ag,t=>{const n=t.filter(t=>t.networkconf_id===e);return[...new Set(n.flatMap(e=>e.wlan_bands))]})},442728(e,t,n){n.d(t,{A:()=>W});var r=n(822336),a=n(469733),i=n(296540),l=n(271856),o=n(963070),c=n(823858),s=n(382389),m=n(592510),d=n(879905),u=n(596441),A=n(398300),E=n(6176),p=n(703447),_=n(689965),C=n(845030),I=n(6510),w=n(532419),g=n(691294),v=n(239417),T=n(984652),f=n(643633),y=n(573531),O=n(768195);const h=({name:e,mac:t,model:n})=>e===t&&n?n:e,N=e=>{switch(e?.uplink?.type){case O.au.WIRE:return e?.connection_network_name||y.L;case O.au.WIRELESS:return e?.connection_network_name||e?.uplink?.essid||y.L;default:return y.L}};var b,P=n(758649),M=n(396660),k=n(566723),D=n(115829);!function(e){e.NAME="name",e.PORT="port",e.NETWORK="network"}(b||(b={}));const R={[b.NAME]:"COMMON_NAME",[b.PORT]:"COMMON_PORT",[b.NETWORK]:"COMMON_NETWORK"};var L=n(294303),S=n(916537),x=n(216211);const z=({port:e,mac:t})=>{const{handleGoToPortsPage:n}=(0,x.e)();return i.createElement(P.A,{variant:"inline",type:"button",size:"medium",onClick:()=>{n(t,e)}},e)},W=({activeItem:e})=>{const{themeName:t}=(0,s.u)(),n=(0,a.useDispatch)(),y=(0,a.useSelector)(w.ID),O=(0,i.useMemo)(()=>((e,t)=>(e||[]).map(e=>{const n=t.find(({mac:t})=>t===e.mac||t===e.ap_mac);return n?{...e,id:n._id,name:(0,I.Q)(n),activeItem:n,model:(0,I.Lm)(n.model)}:null}).filter(Boolean))(e.downlink_table,y),[e.downlink_table,y]),P=(0,a.useSelector)((0,v.Ax)(e.mac)).filter(e=>e.type===g.sK.WIRED);(0,i.useEffect)(()=>{n((0,T.$3)(void 0,{crudCacheStrategy:{type:m.e.CACHE}}))},[n]);const x=(0,i.useMemo)(()=>P.map(e=>({id:`${e.id}${e.sw_port}`,name:e.display_name,mac:e.mac,network:e.network_name,port:e.sw_port,image:i.createElement(p.A,{client:e}),isClient:!0})),[P]),W=(0,i.useMemo)(()=>O.map(({id:e,name:n,mac:a,port_idx:o,activeItem:s})=>({id:`${e}${o}`,name:h({name:n,mac:s.mac,model:s.model}),mac:a,network:N(s),port:o,image:i.createElement(E.A,{model:s.model}),isClient:!1,warning:s.detailed_states?.negotiated_low_uplink_port_speed?i.createElement(l.A,{portal:!0,description:i.createElement(f.A,{color:"text-1"})},i.createElement(c.A,{size:"medium",color:r.Ay[`desktop-color-orange-06-${t}`]})):void 0})),[O,r.Ay[`desktop-color-orange-06-${t}`]]),X=(0,i.useMemo)(()=>Array.prototype.concat.apply([],[x,W]),[W,x]),G=(0,i.useMemo)(()=>(({mac:e})=>[{id:b.NAME,label:i.createElement(S.sA,{id:R[b.NAME]}),renderCell:({image:e,name:t})=>i.createElement(L.A,{alignItems:"center",justifyContent:"center",width:"100%"},i.createElement(L.A,{alignItems:"center",justifyContent:"center",height:"20px",width:"20px"},e),i.createElement(D.A,{color:"inherit",size:"medium",style:{width:"170px",paddingLeft:"6px",paddingRight:"6px"}},t)),width:170,compare:(0,M.l0)(({name:e})=>e)},{id:b.NETWORK,label:i.createElement(S.sA,{id:R[b.NETWORK]}),renderCell:({network:e})=>i.createElement(D.A,{color:"inherit",size:"medium"},e),width:112,compare:(0,M.l0)(({network:e})=>e)},{id:b.PORT,align:"right",label:i.createElement(S.sA,{id:R[b.PORT]}),renderCell:({port:t,warning:n})=>i.createElement(L.A,{justifyContent:"flex-end",alignItems:"center",flexGrow:1},i.createElement(L.A,{marginTop:-2,marginRight:k.YC},n),i.createElement(z,{port:t,mac:e})),width:54,compare:(0,M.l0)(({port:e})=>e)}])({mac:e.mac}),[e.mac]),B=(0,i.useCallback)(({mac:e,isClient:t})=>{n((0,C.XP)({type:t?A.H.CLIENT:A.H.DEVICE,id:e}))},[n]),{rowLimit:H,renderFooter:U}=(0,d.A)(X.length,{defaultCount:10});return X.length?i.createElement(_.A,null,i.createElement(o.A,{items:X,columns:G,idField:"id",initialSortBy:"port",initiallySortAscending:!0,disableColumnFilters:!0,rowOffset:0,disableSelection:!0,onRowClick:B,rowLimit:H,renderFooter:()=>U,rowHeight:u.I.ROW_HEIGHT,truncateHeaderCells:!0})):null}},328787(e,t,n){n.d(t,{A:()=>u});var r=n(469733),a=n(296540),i=n(149133),l=n(855019),o=n(551753),c=n(916537),s=n(532419),m=n(765562);const d=({adopted:e})=>a.createElement(o.A,{link:m.A.virtualNetworkConnectivity},a.createElement(c.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:a.createElement("strong",null,a.createElement(c.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"}))}})),u=({ip:e,adopted:t,config_network:n})=>(0,r.useSelector)(s.m9)&&(0,i.W5)(e)&&n?.type===l.NL.DHCP?a.createElement(d,{adopted:t}):null},87792(e,t,n){n.r(t),n.d(t,{default:()=>j});var r=n(296540),a=n(328787),i=n(686130),l=n(442728),o=n(812454),c=n(689965),s=n(999063),m=n(217439),d=n(916537),u=n(768195),A=n(360113);const E={[u.Y_.OPERATIONAL]:{color:"positive",translationKey:"CI_STATE_OPERATIONAL"},[u.Y_.COAX_CABLE_NOT_PLUGGED]:{color:"destructive",translationKey:"CI_STATE_COAX_CABLE_NOT_PLUGGED"}},p=({status:e})=>E[e]?r.createElement(A.A,null,r.createElement(m.A,{color:"text-2",size:"medium"},r.createElement(d.sA,{id:"COMMON_MODEM_STATUS"})),r.createElement(m.A,{color:E[e].color,size:"medium"},r.createElement(d.sA,{id:E[e].translationKey}))):null;var _=n(723544),C=n(57759);const I=({mac:e})=>r.createElement(A.A,null,r.createElement(m.A,{color:"text-2",size:"medium"},r.createElement(d.sA,{id:"COMMON_CM_MAC_ADDRESS"})),r.createElement(m.A,{color:"text-3",size:"medium"},e)),w=({activeItem:{name:e,model:t,ci_state_table:n,mac:a,type:i,displayable_version:l,uptime:o,deviceState:m}})=>r.createElement(c.A,null,r.createElement(p,{status:n?.ci_state}),r.createElement(_.A,{mac:a}),r.createElement(I,{mac:n?.ci_mac}),r.createElement(C.A,{name:e,model:t,mac:a,type:i,displayable_version:l,uptime:o,deviceState:m}),r.createElement(s.A,{uptime:o}));var g,v=n(469733),T=n(186169),f=n(758649),y=n(280160),O=n(574137),h=n(137298),N=n(398300),b=n(566723),P=n(822336),M=n(707889),k=n(489391),D=n(271856),R=n(71479),L=n(294303),S=n(501103),x=n(445772),z=n(311785);!function(e){e.TX="tx",e.RX="rx"}(g||(g={}));const W=({type:e,isp:{configuration:{wan_provider_capabilities:{upload_kilobits_per_second:t=0,download_kilobits_per_second:n=0}}={wan_provider_capabilities:{upload_kilobits_per_second:0,download_kilobits_per_second:0}},statistics:{peak_usage:{"max_rx_bytes-r":a=0,"max_tx_bytes-r":i=0}}={peak_usage:{"max_rx_bytes-r":0,"max_tx_bytes-r":0}},"rx_bytes-r":l=0,"tx_bytes-r":o=0},children:c})=>{const{value:s,unit:u,bytes:A}=new k.Un((0,h.Zz)(e===g.TX?t:n),"bitrate"),E=e===g.TX?i:a;return r.createElement(D.A,{width:250,portal:!0,description:r.createElement(L.A,{flexDirection:"column"},r.createElement(L.A,{marginBottom:b.kc},r.createElement(m.A,{size:"medium",color:"text-1",weight:"bold"},r.createElement(d.sA,{id:e===g.TX?"COMMON_UPLOAD":"COMMON_DOWNLOAD"}))),r.createElement(L.A,{justifyContent:"space-between",marginBottom:b.YC},r.createElement(m.A,{size:"small",color:"text-1"},r.createElement(d.sA,{id:"COMMON_ISP_CAPACITY"})),r.createElement(m.A,{size:"small",color:"text-2"},`${s} ${u}`)),r.createElement(L.A,{justifyContent:"space-between",marginBottom:b.YC},r.createElement(m.A,{size:"small",color:"text-1"},r.createElement(d.sA,{id:"DEVICE_ISP_ACTIVITY_INTERNET_REAL_TIME"})),r.createElement(m.A,{size:"small",color:"text-2"},(0,M.A)(Math.min(1,new k.Un(e===g.TX?o:l,"bitrate").bytes/A)))),r.createElement(L.A,{justifyContent:"space-between",marginBottom:b.YC},r.createElement(m.A,{size:"small",color:"text-1"},r.createElement(d.sA,{id:"DEVICE_ISP_ACTIVITY_INTERNET_PEAK"})),r.createElement(L.A,{alignItems:"center"},r.createElement(e===g.TX?S.A.Icon:x.A.Icon,{size:"small"}),(0,r.createElement)((p=m.A,(0,R.A)(p,(0,z.A)("type"))`
  color: ${({theme:{themeName:e,motifPalette:{purple06:t}},type:n})=>n===g.RX?P.Ay[`desktop-color-aqua-06-${e}`]:t} !important;
`),{type:e,size:"small"},(0,h.zX)(E,2)))),r.createElement(L.A,{justifyContent:"space-between",marginBottom:b.YC},r.createElement(m.A,{size:"small",color:"text-1"},r.createElement(d.sA,{id:"DEVICE_ISP_ACTIVITY_INTERNET_PEAK"})),r.createElement(m.A,{size:"small",color:"text-2"},Math.round(Math.min(100,E/A*100))||0,"%")))},c);var p};var X=n(568777),G=n(845030),B=n(14851),H=n(968906);const U=({isp:e})=>{const t=e?.details?.service_provider?.name;return t?r.createElement(L.A,{alignItems:"center"},e?.isWanConnected?r.createElement(X.A,{style:{height:32},asn:e?.details?.service_provider?.asn,name:t,key:t}):r.createElement(y.A,{size:"original",color:O.PA.danger}),r.createElement(m.A,{size:"large",weight:"bold",style:{marginLeft:b.YC}},t)):null},Y=({uptimePercentage:e})=>{if(!e||-1===e)return null;const t=Math.max(0,Math.round(e));return r.createElement(A.A,null,r.createElement(m.A,{size:"medium"},r.createElement(d.sA,{id:"COMMON_IPS_UPTIME"})),r.createElement(m.A,{size:"medium",style:{color:T.A.getGradientColor(t/100)}},t,"%"))},$=({type:e,isp:t})=>{const n=e===g.RX?x.A:S.A,a=e===g.RX?"rx_bytes-r":"tx_bytes-r";return r.createElement(W,{type:e,isp:t},r.createElement(L.A,{alignItems:"center",marginRight:e===g.RX?b.xO:0},r.createElement(n.Icon,null),r.createElement(n.Bytes,{size:"medium"},(0,h.zX)(t?.[a],2))))},F=({isp:e})=>r.createElement(A.A,null,r.createElement(m.A,{size:"medium"},r.createElement(d.sA,{id:"COMMON_IPS_STATUS"})),r.createElement(L.A,null,r.createElement($,{type:g.RX,isp:e}),r.createElement($,{type:g.TX,isp:e}))),K=({wan_networkgroup:e})=>{const t=(0,v.useDispatch)(),n=(0,v.useSelector)(B.X),a=(0,r.useMemo)(()=>n.find(({networkgroup:t})=>t===e),[e,n]),i=(0,r.useCallback)(()=>{t((0,G.XP)({type:N.H.ISP_DETAILS,id:e}))},[t,e]);return a?r.createElement(c.A,{type:c.I.ACCORDION,items:[{id:"isp",openByDefault:!0,label:r.createElement(U,{isp:a}),renderContent:()=>r.createElement(r.Fragment,null,r.createElement(F,{isp:a}),r.createElement(Y,{uptimePercentage:a?.statistics?.uptime_percentage}),r.createElement(f.A,{type:"button",variant:"inline",onClick:i,...H.A.addDataTestId(H.A.TestId.SIDE_PANEL_TRIGGER)},r.createElement(m.A,{size:"medium",color:"ublue-06"},r.createElement(d.sA,{id:"COMMON_INTERNET_HEALTH"}))))}]}):null};var V=n(78853);const j=({activeItem:e,activeItem:{adopted:t,ip:n,config_network:c,wan_networkgroup:s,shortname:m}})=>r.createElement(r.Fragment,null,r.createElement(o.A,{activeItem:e,showPortOverview:!0,hidePortsButton:!0},r.createElement(i.A,{activeItem:e,showPortsButton:!0,showCaptureButton:!0})),r.createElement(a.A,{ip:n,adopted:t,config_network:c}),r.createElement(l.A,{activeItem:e}),r.createElement(w,{activeItem:e}),r.createElement(K,{wan_networkgroup:s}),r.createElement(V.A,{shortname:m}))},766624(e,t,n){n.d(t,{A:()=>c});var r=n(296540),a=n(271856),i=n(709690),l=n(284428),o=n(566723);const c=({description:e,isInteractive:t,portal:n=!0,cursorType:c,title:s,position:m,width:d,iconProps:u,disabled:A=!1})=>{const E=(0,l.Im)()||A,p=(0,l.q)();return r.createElement(a.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:c,title:s,position:m,width:d,disableHover:p},r.createElement(i.A,{isActive:!0,size:"original",opacity:E?o.xN:void 0,...u}))}},451449(e,t,n){n.d(t,{I:()=>r});const r=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},284428(e,t,n){n.d(t,{Im:()=>c,iL:()=>s,mQ:()=>l,pv:()=>i,q:()=>o});var r=n(296540),a=n(451449);function i(){return(0,r.useContext)(a.I)}function l(){return i().fields}function o(){return i().tooltipPopovers}function c(){return i().tooltipIcons}function s(){return i().labels}},957866(e,t,n){n.d(t,{A:()=>c});var r=n(296540),a=n(469733),i=n(765562),l=n(79871),o=n(856632);const c=()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(o.eo);return(0,r.useEffect)(()=>{t||(async()=>{const t=await fetch(i.A.fingerprintPublicDatabasePath),n=await t.json();e((0,l.$)(n))})()},[t,e]),t}},856632(e,t,n){n.d(t,{$E:()=>m,eo:()=>c});var r=n(801081),a=n(523275),i=n(840279),l=n(919952);const o=e=>e[l.U.UIDB]||(0,a.A)(),c=(0,r.Mz)(o,({version:e})=>Boolean(e)),s=(0,r.Mz)(o,({devices:e})=>e||(0,i.A)()),m=e=>(0,r.Mz)(s,t=>t.find(({shortnames:t})=>e&&(t||[]).includes(e))||(0,a.A)());(0,r.Mz)(s,e=>{const t=new Map;for(let n=0;n<e.length;n+=1){const r=e[n].power?.baseConsumption;if(void 0!==r){const{shortnames:a}=e[n];for(let e=0;e<(a||[]).length;e+=1)t.set(a[e],r)}}return t})}}]);