var y=Object.create;var i=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var P=(e,r)=>{for(var t in r)i(e,t,{get:r[t],enumerable:!0})},m=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of h(r))!w.call(e,a)&&a!==t&&i(e,a,{get:()=>r[a],enumerable:!(n=I(r,a))||n.enumerable});return e};var T=(e,r,t)=>(t=e!=null?y(b(e)):{},m(r||!e||!e.__esModule?i(t,"default",{value:e,enumerable:!0}):t,e)),B=e=>m(i({},"__esModule",{value:!0}),e);var A={};P(A,{appInfo:()=>z,defaultBuildInfo:()=>p,getBuildInfo:()=>v});module.exports=B(A);var c=require("electron/common"),o=require("./electron"),u=require("path"),f=require("../global"),d=T(require("./package")),g=require("fs"),F=(a=>(a.App="app",a.Tray="tray",a.TrayUnread="tray-unread",a.TrayPing="tray-ping",a))(F||{});function s(e){const r=(0,u.resolve)((0,o.getAppPath)(),"sources/assets/icons",e)+".";switch(e){case"app":return c.nativeImage.createFromPath(r+(process.platform==="win32"?"ico":"png"));case"tray":case"tray-unread":case"tray-ping":{const t=c.nativeImage.createFromPath(r+"png");if(process.platform!=="win32"&&process.platform!=="darwin")return t;const n=c.nativeImage.createEmpty();let a;return process.platform==="win32"?a=[[1,16],[1.5,24],[2,32]]:a=[[1,22],[1.5,33],[2,44]],a.forEach(l=>n.addRepresentation({scaleFactor:l[0],buffer:t.resize({height:l[1]}).toPNG()})),n}default:throw new TypeError(`Invalid icon file name '${String(e)}'.`)}}const p=Object.freeze({type:"devel",...process.platform==="win32"?{AppUserModelId:"SpacingBat3.WebCord"}:{},features:{updateNotifications:!1}});function v(){try{const e=(0,g.readFileSync)((0,u.resolve)((0,o.getAppPath)(),"buildInfo.json")),r=JSON.parse(e.toString());return(0,f.isPartialBuildInfo)(r)?Object.freeze((0,f.typeMerge)(p,{},r)):p}catch{return p}}const z=Object.freeze({repository:{name:new d.Person(d.default.data.author??"").name+"/"+(0,o.getName)(),provider:"github.com"},icons:{app:s("app"),tray:{default:s("tray"),unread:s("tray-unread"),warn:s("tray-ping")}},minWinHeight:412,minWinWidth:312,backgroundColor:"#36393F"});0&&(module.exports={appInfo,defaultBuildInfo,getBuildInfo});
