"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["29090"],{9913:function(n,e,r){r.d(e,{createLogMessage:function(){return u}});var a=r(65722),o=(r(16280),r(30067),r(4294),r(44114),r(18111),r(61701),r(33110),r(3362),r(27495),r(25440),r(62953),r(3296),r(2222),r(27208),r(48408),r(14603),r(47566),r(98721),r(726));const t=/^\/(?:home-assistant\/frontend\/[^/]+|unknown|\/{2}\.)\//,i=[[/Edg\/(\S+)/,"Edge"],[/OPR\/(\S+)/,"Opera"],[/Chrome\/(\S+)/,"Chrome"],[/Firefox\/(\S+)/,"Firefox"],[/Version\/(\S+).*Safari/,"Safari"]],s=[[/CrOS/,"Chrome OS"],[/Windows NT ([\d.]+)/,"Windows"],[/Android ([\d.]+)/,"Android"],[/iPhone OS ([\d_.]+)/,"iOS"],[/iPad; CPU OS ([\d_.]+)/,"iPadOS"],[/Mac OS X ([\d_.]+)/,"macOS"],[/Linux/,"Linux"]],f=(n,e,r)=>{for(const[o,t]of e){const e=n.match(o);if(e){var a;const n=null===(a=e[1])||void 0===a?void 0:a.replace(/_/g,".");return n?`${t} ${n}`:t}}return r},u=async(n,e,r,c)=>{const l=[];if(e){const n=navigator.userAgent,r=f(n,i,"unknown browser"),a=f(n,s,"unknown OS");l.push(`${e} from ${r} on ${a}`)}if(n instanceof Error){l.push(n.toString()||r);const e=(await(0,o.fromError)(n)).slice(0,10).map(n=>{var e;return null!==(e=n.fileName)&&void 0!==e||(n.fileName=""),URL.canParse(n.fileName)&&(n.fileName=new URL(n.fileName).pathname),n.fileName=n.fileName.replace(t,""),n.toString()});if(l.push(...e.length>0?e:[c]),n.cause&&l.push(`Caused by: ${await u(n.cause)}`),n instanceof AggregateError){const e=n.errors.map(async(n,e)=>[e,await u(n)]);var d,h=!1,m=!1;try{for(var S,g=(0,a.A)(e);h=!(S=await g.next()).done;h=!1){const[e,r]=S.value;l.push(`Part ${e+1} of ${n.errors.length}: ${r}`)}}catch(p){m=!0,d=p}finally{try{h&&null!=g.return&&await g.return()}finally{if(m)throw d}}}}else{const e=JSON.stringify(n,null,2);l.push(r,e===r?"":e,c)}return l.filter(Boolean).join("\n")}}}]);
//# sourceMappingURL=29090.2d3d15d8b3522575.js.map