var c=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var g=(e,t)=>{for(var s in t)c(e,s,{get:t[s],enumerable:!0})},$=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of d(t))!h.call(e,o)&&o!==s&&c(e,o,{get:()=>t[o],enumerable:!(a=f(t,o))||a.enumerable});return e};var m=e=>$(c({},"__esModule",{value:!0}),e);var u={};g(u,{getUserAgent:()=>M});module.exports=m(u);var l=require("os");const r=Object.freeze({arm64:"aarch64",arm:"armv7",ia32:"x86",x64:"x86_64"}),A=e=>(e.slice(0,1).toUpperCase()+e.slice(1).toLowerCase()).replace("bsd","BSD").replace("os","OS");function M(e,t,s){const a=s?.platform??process.platform,o=s?.version??(typeof process.getSystemVersion=="function"?process.getSystemVersion():a==="darwin"?"13.5.2":(0,l.release)()),p=s?.device!==void 0?`; ${s.device}`:"",n=t??!1?" Mobile":"";switch(a){case"darwin":return`Mozilla/5.0 (Macintosh; Intel Mac OS X ${o.replace(".","_")}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${e}${n} Safari/537.36`;case"win32":{const i=(s?.arch??process.arch).endsWith("64")?"Win64; x64":"Win32";return`Mozilla/5.0 (Windows NT ${o}; ${i}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${e}${n} Safari/537.36`}case"android":return`Mozilla/5.0 (Linux; Android ${o}${p}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${e}${n} Safari/537.36`;default:{const i=(s?.arch!==void 0&&s.arch in r?r[s.arch]:s?.arch)??(process.arch in r?r[process.arch]:process.arch);return`Mozilla/5.0 (X11; ${A(a)} ${i}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${e}${n} Safari/537.36`}}}0&&(module.exports={getUserAgent});
