(function(U,le,o,b,T,R,g,e,de,C,i,S,ue){"use strict";const ge=async function(){const t=await(await fetch("https://uselessfacts.jsph.pl/api/v2/facts/random")).json();return{text:t.text,source:t.source,language:t.language}},me=async function(){return{text:(await(await fetch("https://dogapi.dog/api/v2/facts?limit=1")).json()).data[0].attributes.body}},ye=async function(){const t=await(await fetch("https://catfact.ninja/fact")).json();return{text:t.fact,length:t.length}},fe=async function(t){return await(await fetch(`https://api.obamabot.me/v2/image/petpet?image=${t.replace("webp","png")}`)).json()},pe=async function(t="gary"){try{switch(t){case"gary":return(await(await fetch("https://api.garythe.cat/gary")).json()).url;case"goober":return(await(await fetch("https://api.garythe.cat/goober")).json()).url;case"catapi":return(await(await fetch("https://api.thecatapi.com/v1/images/search")).json())[0].url;case"minker":return"https://minky.materii.dev/";default:throw new Error("Invalid Gary image source value")}}catch(n){return console.error(`[Gary API] Error fetching image from ${t}:`,n),null}},V=b.findByProps("sendMessage"),O=function(t){let n=t.text;return o.storage.factSettings?.includeCitation&&t.source&&(n+=` Source: ${t.source}`),n},he={name:"catfact",displayName:"catfact",description:"Sends a random cat fact.",displayDescription:"Sends a random cat fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,n){try{const a=await ye(),s=Date.now().toString();return V.sendMessage(n.channel.id,{content:O(a)},void 0,{nonce:s}),{type:4}}catch(a){return console.error("[CatFact] Error:",a),{type:4}}}},be={name:"dogfact",displayName:"dogfact",description:"Sends a dog fact.",displayDescription:"Sends a dog fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,n){try{const a=await me(),s=Date.now().toString();return V.sendMessage(n.channel.id,{content:O(a)},void 0,{nonce:s}),{type:4}}catch(a){return console.error("[DogFact] Error:",a),{type:4}}}},Ce={name:"useless",displayName:"useless",description:"Sends a useless fact.",displayDescription:"Sends a useless fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,n){try{const a=await ge(),s=Date.now().toString();return V.sendMessage(n.channel.id,{content:O(a)},void 0,{nonce:s}),{type:4}}catch(a){return console.error("[UselessFact] Error:",a),{type:4}}}},N={CONTENT:"This list is over 2000 characters. Send anyway?",CONFIRM:"Send",CANCEL:"Cancel"},ve={DETAILED:"detailed"},j="",B={SLM_NOT_INSTALLED:"This list is over 2000 characters. Install the Split Large Messages plugin to send it.",SLM_NOT_ENABLED:"This list is over 2000 characters. Enable the Split Large Messages plugin to send it."},G={SEMICOL:"; ",NEW_LINE:` `},Ie="Nothing to see here, huh...",K="github.com/fres621/vendetta-plugins",w={ENABLED:"\u2705",DISABLED:"\u274C",SELECTED:"\u2705",NOT_SELECTED:"\u274C"},Re=b.findByProps("sendMessage","receiveMessage"),E=b.findByProps("sendBotMessage"),H=function(){try{return b.findByStoreName("UserStore").getCurrentUser()?.premiumType===2?4e3:2e3}catch{return 2e3}}(),z=function(t){return Object.keys(t).includes(K)},q=function(t){return Object.values(t).find(function(n){return n.id==K})?.enabled},X=function(t){return t.find(function(n){return n.name===ve.DETAILED})?.value??!1},L=function(t){return!t||!Array.isArray(t)||t.length===0?"Unknown":t.filter(function(n){return n&&(typeof n=="string"||typeof n=="object"&&n.name)}).map(function(n){return typeof n=="string"?n:n.name||"Unknown"}).join(G.SEMICOL)||"Unknown"},Y=function(t){return t.join(G.NEW_LINE).trimEnd()},$=function(t){return Y(t).length},P=async function(t,n){const a=Date.now().toString();await Re.sendMessage(t,{content:Y(n)},void 0,{nonce:a})},Z=function(t,n){return[`**My ${t} List | ${n} ${t}s**`,j]};async function Se(t,n){try{const a=X(t),s=o.storage.themeListAlwaysDetailed??!1;if(!T.themes||typeof T.themes!="object"){const f=n.channel.id;return E.sendBotMessage(f,"No themes found or themes not loaded yet."),{type:4}}const r=Object.values(T.themes),l=n.channel.id,d=Z("Theme",Object.keys(T.themes).length);if(r.length)for(const f of r){if(!f||typeof f!="object")continue;const{selected:u,data:m,id:v}=f,A=m?.name||"Unknown Theme",D=m?.description||"No description",_=m?.authors;a||s?d.push(`> **Name**: ${A}`,`> **Selected**: ${u?w.SELECTED:w.NOT_SELECTED}`,`> **Description**: ${D}`,`> **Authors**: ${L(_)}`,`> **[Install!](${v||"unknown"})**`,j):d.push(`> ${u?w.SELECTED:w.NOT_SELECTED} **${A}** by ${L(_)}`)}else d.push(Ie);const p=$(d)>H;if(p&&!z(R.plugins))E.sendBotMessage(l,B.SLM_NOT_INSTALLED);else if(p&&!q(R.plugins))E.sendBotMessage(l,B.SLM_NOT_ENABLED);else{if($(d)>2e3)return g.alerts.showConfirmationAlert({content:N.CONTENT,confirmText:N.CONFIRM,cancelText:N.CANCEL,onConfirm:async function(){return await P(l,d)}});await P(l,d)}}catch(a){return console.error("[ThemeList] Error:",a),{type:4}}}async function we(t,n){try{const a=X(t),s=o.storage.pluginListAlwaysDetailed??!1,r=n.channel.id;if(!R.plugins||typeof R.plugins!="object")return E.sendBotMessage(r,"No plugins found or plugins not loaded yet."),{type:4};const l=Z("Plugin",Object.keys(R.plugins).length);for(const p of Object.values(R.plugins)){if(!p||typeof p!="object")continue;const{enabled:f,manifest:u,id:m}=p,v=u?.name||"Unknown Plugin",A=u?.description||"No description",D=u?.authors;a||s?l.push(`> **Name**: ${v}`,`> **Status**: ${f?w.ENABLED:w.DISABLED}`,`> **Description**: ${A}`,`> **Authors**: ${L(D)}`,`> **[Install!](${m||"unknown"})**`,j):l.push(`> ${f?w.ENABLED:w.DISABLED} **${v}** by ${L(D)}`)}const d=$(l)>H;if(d&&!z(R.plugins))E.sendBotMessage(r,B.SLM_NOT_INSTALLED);else if(d&&!q(R.plugins))E.sendBotMessage(r,B.SLM_NOT_ENABLED);else{if($(l)>2e3)return g.alerts.showConfirmationAlert({content:N.CONTENT,confirmText:N.CONFIRM,cancelText:N.CANCEL,onConfirm:async function(){return await P(r,l)}});await P(r,l)}}catch(a){return console.error("[PluginList] Error:",a),{type:4}}}const Ne={name:"plugin-list",displayName:"plugin list",description:"Send your plugin list to the current channel",displayDescription:"Send your plugin list to the current channel",options:[{name:"detailed",description:"Whether to send a list with detailed information.",type:5,required:!1,displayName:"detailed",displayDescription:"Whether to send a list with detailed information."}],execute:we,applicationId:"-1",inputType:1,type:1},Ee={name:"theme-list",displayName:"theme list",description:"Send your theme list to the current channel",displayDescription:"Send your theme list to the current channel",options:[{name:"detailed",description:"Whether to send a list with detailed information.",type:5,required:!1,displayName:"detailed",displayDescription:"Whether to send a list with detailed information."}],execute:Se,applicationId:"-1",inputType:1,type:1},Ae=b.findByStoreName("UserStore"),De=b.findByProps("sendMessage"),ke={name:"petpet",displayName:"petpet",description:"PetPet someone",displayDescription:"PetPet someone",options:[{name:"user",description:"The user(or their id) to be patted",type:6,required:!0,displayName:"user",displayDescription:"The user(or their id) to be patted"}],execute:async function(t,n){try{const a=(await Ae.getUser(t[0].value)).getAvatarURL(512),s=await fe(a),r=Date.now().toString();return De.sendMessage(n.channel.id,{content:s.url},void 0,{nonce:r}),{type:4}}catch(a){return console.error("[PetPet] Error:",a),{type:4}}},applicationId:"-1",inputType:1,type:1},Te=b.findByProps("sendMessage"),Be=b.findByProps("sendBotMessage","sendMessage","receiveMessage"),J=async function(t){const n="https://konachan.com/post.json",a=t?"rating:explicit":"rating:safe",s=Math.floor(Math.random()*100);try{const r=await(await fetch(`${n}?tags=${a}&limit=1&page=${s}`)).json();return!Array.isArray(r)||r.length===0?null:r[0].file_url}catch(r){return console.error("[KonoChan Randomizer] Error fetching image:",r),null}},Q=function(){return g.alerts.showConfirmationAlert({title:"NSFW Content Warning",content:"NSFW content can only be sent in NSFW channels!",confirmText:"Okay",cancelText:null,confirmColor:"brand",isDismissable:!0})},ee={name:"nsfw",description:"Include NSFW content?",type:5,required:!1,displayName:"nsfw",displayDescription:"Include NSFW content?"},Le={name:"konoself",displayName:"konoself",description:"Fetch a random image from KonoChan for yourself.",displayDescription:"Fetch a random image from KonoChan for yourself.",options:[ee],execute:async function(t,n){try{const a=new Map(t.map(function(l){return[l.name,l]})).get("nsfw")?.value||!1,s=o.storage.hiddenSettings?.konochanBypassNsfw||!1;if(console.log(`[KonoSelf] NSFW: ${a}, Channel NSFW: ${n.channel.nsfw}, Bypass: ${s}`),a&&!n.channel.nsfw&&!s)return Q(),{type:4};const r=await J(a);return r?(Be.sendBotMessage(n.channel.id,`Here's your random image: ${r}`),{type:4}):{type:4}}catch(a){return console.error("[KonoSelf] Error:",a),{type:4}}},applicationId:"-1",inputType:1,type:1},$e={name:"konosend",displayName:"konosend",description:"Fetch a random image from KonoChan and send it to the channel.",displayDescription:"Fetch a random image from KonoChan and send it to the channel.",options:[ee],execute:async function(t,n){try{const a=new Map(t.map(function(d){return[d.name,d]})).get("nsfw")?.value||!1,s=o.storage.hiddenSettings?.konochanBypassNsfw||!1;if(console.log(`[KonoSend] NSFW: ${a}, Channel NSFW: ${n.channel.nsfw}, Bypass: ${s}`),a&&!n.channel.nsfw&&!s)return Q(),{type:4};const r=await J(a);if(!r)return{type:4};const l=Date.now().toString();return Te.sendMessage(n.channel.id,{content:r},void 0,{nonce:l}),{type:4}}catch(a){return console.error("[KonoSend] Error:",a),{type:4}}},applicationId:"-1",inputType:1,type:1},te=b.findByProps("getAPIBaseURL","get"),Pe=b.findByProps("sendMessage"),x=async function(t,n,a){const s=n?`&author_id=${n}`:"",r=a?`&channel_id=${a}`:"",l=n?"":"&min_id=0";return(await te.get({url:`/guilds/${t}/messages/search`,query:`include_nsfw=true${s}${r}${l}&sort_by=timestamp&sort_order=asc&offset=0`})).body.messages[0][0]},ne=async function(t,n){const a=n?`&author_id=${n}`:"",s=n?"":"&min_id=0";return(await te.get({url:`/channels/${t}/messages/search`,query:`&sort_by=timestamp&sort_order=asc&offset=0${a}${s}`})).body.messages[0][0]},xe={name:"firstmessage",displayName:"firstmessage",description:"Tired of scrolling to first message?",displayDescription:"Tired of scrolling to first message?",options:[{name:"user",displayName:"user",description:"Target user to get their first message in this server/dm",displayDescription:"Target user to get their first message in this server/dm",type:6,required:!1},{name:"channel",displayName:"channel",description:"Target channel to get first message of",displayDescription:"Target channel to get first message of",type:7,required:!1},{name:"send",displayName:"send",description:"Whether to send the resulting url",displayDescription:"Whether to send the resulting url",type:5,required:!1}],execute:async function(t,n){try{const a=new Map(t.map(function(v){return[v.name,v]})),s=a.get("user")?.value,r=a.get("channel")?.value,l=a.get("send")?.value,d=n.guild?.id,p=n.channel.id,f=n.channel.type===1;let u="https://discord.com/channels/",m;if(!s&&!r)f?(m=await ne(p),u+=`@me/${p}/${m.id}`):(m=await x(d),u+=`${d}/${m.channel_id}/${m.id}`);else if(s)f?(m=await ne(p,s),u+=`@me/${p}/${m.id}`):(m=await x(d,s),u+=`${d}/${m.channel_id}/${m.id}`);else if(r){if(f)return{type:4};m=await x(d,null,r),u+=`${d}/${r}/${m.id}`}else{if(f)return{type:4};m=await x(d,s,r),u+=`${d}/${r}/${m.id}`}if(l){const v=Date.now().toString();return Pe.sendMessage(n.channel.id,{content:u},void 0,{nonce:v}),{type:4}}else return e.url.openDeeplink(u),{type:4}}catch(a){return console.error("[FirstMessage] Error:",a),{type:4}}},applicationId:"-1",inputType:1,type:1},Me=b.findByProps("sendMessage"),_e=b.findByProps("sendBotMessage","sendMessage","receiveMessage");function Fe(){let{height:t,width:n,scale:a}=e.ReactNative.Dimensions.get("screen");return t*=a,n*=a,{width:n,height:t}}function Ue(){try{const t=new Date,n=new Date(t.getTime()+t.getTimezoneOffset()*6e4),a=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0"),l=String(n.getHours()).padStart(2,"0"),d=String(n.getMinutes()).padStart(2,"0"),p=String(n.getSeconds()).padStart(2,"0");return`${a}-${s}-${r} ${l}:${d}:${p}`}catch{return"Unknown"}}function Ve(){try{const t=b.findByProps("memory");if(!t)return{cpuCoreCount:"N/A",cpuPerc:"N/A",memUsage:"N/A"};const{cpuCoreCount:n,cpuPercentage:a,memory:s}=t,r=a?a.toFixed(2)+"%":"N/A",l=s?parseFloat((s/1e3).toPrecision(3))+" MB":"N/A";return{cpuCoreCount:n,cpuPerc:r,memUsage:l}}catch(t){return console.warn("Hardware info unavailable:",t),{cpuCoreCount:"N/A",cpuPerc:"N/A",memUsage:"N/A"}}}function Oe(){try{const{NativeModules:t}=e.ReactNative;return(t.InfoDictionaryManager??t.RTNClientInfoManager)||{}}catch(t){return console.warn("Discord info unavailable:",t),{}}}function je(){try{const{cpuCoreCount:t,cpuPerc:n,memUsage:a}=Ve(),s=Oe(),{vendetta:r,discord:l,react:d,hermes:p,os:f,device:u}=de.getDebugInfo(),m=Ue(),{version:v,bytecodeVersion:A}=p||{},{version:D,nativeVersion:_}=d||{},{name:se,version:Dt,sdk:re}=f||{},{manufacturer:kt,brand:ie,model:ce,codename:Tt}=u||{},{version:Bt}=r||{},{version:Lt,build:$t}=l||{},Pt=se=="iOS"?Tt:`${ie} ${ce}`,{width:xt,height:Mt}=Fe();let F={Device:{Device:Pt||"Unknown",Model:ce||"Unknown",Manufacturer:kt||"Unknown",Brand:ie||"Unknown",Display:`${xt}x${Mt}`},Hardware:{"CPU Cores":t||"N/A","CPU Usage":n,"Memory Usage":a},Software:{OS:se||"Unknown",Version:Dt||"Unknown"},Discord:{Version:Lt||"Unknown",Build:$t||"Unknown",Vendetta:Bt||"Unknown"},React:{Version:D||"Unknown","Hermes Bytecode":A||"Unknown",Hermes:v||"Unknown",Native:_||"Unknown"},Time:{UTC:m}};return window.enmity&&(F.Discord.Enmity=window.enmity.version),window.aliucord&&(F.Discord.Aliucord=window.aliucord.version),re&&(F.Software["SDK Version"]=re),F}catch(t){throw console.error("Error generating system info:",t),t}}const ae=["device","hardware","software","discord","react","time","ephemeral"];for(const t of ae)o.storage[t]===void 0&&(o.storage[t]=!0);function We(t,n){try{let a=[`__System Information__ `];const s=je();Object.keys(s).forEach(function(d){const p=o.storage[d.toLowerCase()],f=t.find(function(u){return u.name==d.toLowerCase()})?.value??p;(f||p)&&!(p&&!f)&&(a.push(`[**${d}**]`),Object.keys(s[d]).forEach(function(u){a.push(`> ${u}: ${s[d][u]}`)}))});const r=o.storage.ephemeral,l=t.find(function(d){return d.name=="ephemeral"})?.value??r;if((l||r)&&!(r&&!l))return _e.sendBotMessage(n.channel.id,a.join(` `)),{type:4};{const d=Date.now().toString();return Me.sendMessage(n.channel.id,{content:a.join(` `)},void 0,{nonce:d}),{type:4}}}catch(a){return console.error("[Sysinfo] Error:",a),{type:4}}}const Ge={name:"sysinfo",displayName:"sysinfo",description:"Display system information",displayDescription:"Display system information",options:[{name:"ephemeral",displayName:"ephemeral",description:"Keep sysinfo ephemeral (default: true)",displayDescription:"Keep sysinfo ephemeral (default: true)",type:5,required:!1},...ae.slice(0,-1).map(function(t){return{name:t,displayName:t,description:`Display the ${t} section. Set default in settings.`,displayDescription:`Display the ${t} section. Set default in settings.`,type:5,required:!1}})],execute:We,applicationId:"-1",inputType:1,type:1},oe=b.findByProps("sendMessage","receiveMessage"),Ke=b.findByStoreName("SpotifyStore");async function He(t,n){return o.storage.enabledCommands?.spotifyTrack?M(n,function(a){return`https://open.spotify.com/track/${a.id}`}):{type:4}}async function ze(t,n){return o.storage.enabledCommands?.spotifyAlbum?M(n,function(a){return`https://open.spotify.com/album/${a.album.id}`}):{type:4}}async function qe(t,n){return o.storage.enabledCommands?.spotifyArtists?M(n,function(a){return a.artists.map(function(s){return`[${s.name}](${s.external_urls.spotify})`}).join(` `)}):{type:4}}async function Xe(t,n){return o.storage.enabledCommands?.spotifyCover?M(n,function(a){return a.album.image.url}):{type:4}}async function M(t,n){try{const a=t.channel.id,s=Ke?.getTrack?.();if(!s){const d=Date.now().toString();return oe.sendMessage(a,{content:"You are not listening to any track."},void 0,{nonce:d}),{type:4}}const r=n(s),l=Date.now().toString();return oe.sendMessage(a,{content:r},void 0,{nonce:l}),{type:4}}catch(a){return console.error("[Spotify Command] Error:",a),{type:4}}}const Ye={name:"spotify track",displayName:"spotify track",description:"Sends your current Spotify track",displayDescription:"Sends your current Spotify track",applicationId:"-1",inputType:1,type:1,execute:He},Ze={name:"spotify album",displayName:"spotify album",description:"Sends your current track's album",displayDescription:"Sends your current track's album",applicationId:"-1",inputType:1,type:1,execute:ze},Je={name:"spotify artists",displayName:"spotify artists",description:"Sends your current track's artists",displayDescription:"Sends your current track's artists",applicationId:"-1",inputType:1,type:1,execute:qe},Qe={name:"spotify cover",displayName:"spotify cover",description:"Sends your current track's cover",displayDescription:"Sends your current track's cover",applicationId:"-1",inputType:1,type:1,execute:Xe},et=b.findByProps("sendMessage"),tt={name:"gary",displayName:"gary",description:"Send a random Gary image to the channel.",displayDescription:"Send a random Gary image to the channel.",options:[],execute:async function(t,n){try{o.storage.garySettings||(o.storage.garySettings={imageSource:"gary"});const a=o.storage.garySettings.imageSource||"gary";console.log(`[Gary Command] Using image source: ${a}`);const s=await pe(a);if(!s)return console.log("[Gary Command] No image URL received"),{type:4};console.log(`[Gary Command] Sending image: ${s}`);const r=Date.now().toString();return et.sendMessage(n.channel.id,{content:s},void 0,{nonce:r}),{type:4}}catch(a){return console.error("[Gary] Error:",a),{type:4}}},applicationId:"-1",inputType:1,type:1},nt=b.findByProps("sendMessage");function k(t){if(!t)return!1;const n=t.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".mp4",".webm",".mov"].some(function(a){return n.includes(a)})?!0:["i.redd.it","i.imgur.com","preview.redd.it","v.redd.it","redgifs.com","gfycat.com","imgur.com"].some(function(a){return n.includes(a)})}function at(t){const n=t.data;if(n.secure_media?.reddit_video?.fallback_url)return n.secure_media.reddit_video.fallback_url;if(n.media?.reddit_video?.fallback_url)return n.media.reddit_video.fallback_url;const a=n.url;if(k(a))return a;if(n.preview?.images?.[0]){const s=n.preview.images[0];if(s.source?.url){const r=s.source.url.replace(/&/g,"&");if(k(r))return r}if(s.resolutions?.length>0){const r=s.resolutions[s.resolutions.length-1];if(r?.url){const l=r.url.replace(/&/g,"&");if(k(l))return l}}}if(n.secure_media?.oembed?.thumbnail_url){const s=n.secure_media.oembed.thumbnail_url;if(k(s))return s}return n.thumbnail&&n.thumbnail!=="self"&&n.thumbnail!=="default"&&n.thumbnail!=="nsfw"&&n.thumbnail.startsWith("http")&&k(n.thumbnail)?n.thumbnail:null}async function ot(){try{console.log("[LoveFemboys] Fetching random media");const t=await fetch("https://reddit.com/r/femboys.json?limit=100&raw_json=1");if(!t.ok)return console.log("[LoveFemboys] Failed to fetch from Reddit API:",t.status,t.statusText),null;const n=await t.json();console.log(`[LoveFemboys] Fetched ${n.data.children.length} posts`);const a=[];for(const r of n.data.children){const l=r.data;if(l.selftext&&!l.url)continue;const d=at(r);d&&(console.log(`[LoveFemboys] Found valid media: ${d}`),a.push(d))}if(console.log(`[LoveFemboys] Found ${a.length} valid media posts`),a.length===0)return console.log("[LoveFemboys] No suitable media found"),null;const s=a[Math.floor(Math.random()*a.length)];return console.log(`[LoveFemboys] Selected: ${s}`),s}catch(t){return console.error("[LoveFemboys] Error fetching media:",t),null}}const st={name:"lovefemboys",displayName:"lovefemboys",description:"Get random femboy content from r/femboys",displayDescription:"Get random femboy content from r/femboys",options:[{name:"ephemeral",displayName:"ephemeral",description:"Send as ephemeral message (only you can see)",displayDescription:"Send as ephemeral message (only you can see)",type:5,required:!1}],execute:async function(t,n){try{const a=t?.find?.(function(r){return r.name==="ephemeral"})?.value??!1;if(console.log(`[LoveFemboys] Command executed with ephemeral: ${a}`),!await new Promise(function(r){g.alerts.showConfirmationAlert({title:"\u26A0\uFE0F NSFW Content Warning",content:"This command will send potentially NSFW (Not Safe For Work) content from r/femboys. Are you sure you want to continue?",confirmText:"Yes, Continue",onConfirm:function(){return r(!0)},cancelText:"Cancel",onCancel:function(){return r(!1)}})}))return console.log("[LoveFemboys] User cancelled the command"),{type:4};const s=await ot();if(!s)return C.showToast("\u274C Failed to fetch femboy content",i.getAssetIDByName("CircleXIcon")),{type:4};if(a)return console.log("[LoveFemboys] Sending ephemeral response"),{type:4,data:{content:s,flags:64}};{console.log("[LoveFemboys] Sending public message");const r=Date.now().toString();return nt.sendMessage(n.channel.id,{content:s},void 0,{nonce:r}),{type:4}}}catch(a){return console.error("[LoveFemboys] Command error:",a),C.showToast("\u274C An error occurred while fetching content",i.getAssetIDByName("CircleXIcon")),{type:4}}},applicationId:"-1",inputType:1,type:1},rt=b.findByProps("sendMessage"),it=b.findByProps("sendBotMessage","sendMessage","receiveMessage"),ct={name:"ip",displayName:"ip",description:"IP address and domain lookup",displayDescription:"IP address and domain lookup",options:[{name:"query",displayName:"query",description:"Enter IPv4/IPv6 address or domain name",displayDescription:"Enter IPv4/IPv6 address or domain name",type:3,required:!0},{name:"send",displayName:"send",description:"Send to chat",displayDescription:"Send to chat",type:5,required:!1},{name:"ephemeral",displayName:"ephemeral",description:"Send as ephemeral message (only you can see)",displayDescription:"Send as ephemeral message (only you can see)",type:5,required:!1}],execute:async function(t,n){try{const a=t.find(function(u){return u.name==="query"})?.value,s=t.find(function(u){return u.name==="send"})?.value||!1,r=t.find(function(u){return u.name==="ephemeral"})?.value||!1;if(!a){const u="\u274C Query parameter is required!";return r?{type:4,data:{content:u,flags:64}}:(C.showToast(u,i.getAssetIDByName("CircleXIcon")),{type:4})}!r&&!s&&C.showToast(`Looking up IP information for ${a}...`,i.getAssetIDByName("DownloadIcon"));const l=`http://ipwhois.app/json/${encodeURIComponent(a)}?objects=success,ip,type,as,org,isp,continent,country,country_capital,city,region,country_phone,latitude,longitude,timezone,currency,completed_requests`,d=await fetch(l);if(!d.ok)throw new Error(`HTTP ${d.status}: ${d.statusText}`);const p=await d.json();if(!p.success){const u=`\u274C Failed to lookup IP information for: ${a}`;return r?{type:4,data:{content:u,flags:64}}:(C.showToast(u,i.getAssetIDByName("CircleXIcon")),{type:4})}const f=`\`\`\`json ${JSON.stringify(p,null,4)} \`\`\``;if(r)return{type:4,data:{content:f,flags:64}};if(s){const u=Date.now().toString();return rt.sendMessage(n.channel.id,{content:f},void 0,{nonce:u}),{type:4}}else return it.sendBotMessage(n.channel.id,f),{type:4}}catch(a){console.error("[IP] Command error:",a);const s=`\u274C An error occurred while looking up IP information: ${a.message||"Unknown error"}`;return t?.find?.(function(r){return r.name==="ephemeral"})?.value??!1?{type:4,data:{content:s,flags:64}}:(C.showToast(s,i.getAssetIDByName("CircleXIcon")),{type:4})}},applicationId:"-1",inputType:1,type:1},lt=b.findByProps("sendMessage"),dt=b.findByProps("sendBotMessage","sendMessage","receiveMessage"),ut=[{name:"anal",value:"anal"},{name:"avatar",value:"avatar"},{name:"boobs",value:"boobs"},{name:"blowjob image",value:"blowjob"},{name:"blowjob gif",value:"bj"},{name:"classic",value:"classic"},{name:"cuddle",value:"cuddle"},{name:"cum",value:"cum"},{name:"cum jpg",value:"cum_jpg"},{name:"ero",value:"ero"},{name:"ero feet",value:"erofeet"},{name:"ero kemo",value:"erokemo"},{name:"ero kitsune",value:"erok"},{name:"ero neko",value:"eron"},{name:"ero yuri",value:"eroyuri"},{name:"femdom",value:"femdom"},{name:"feet",value:"feet"},{name:"feet gif",value:"feetg"},{name:"fox girl",value:"fox_girl"},{name:"futanari",value:"futanari"},{name:"gasm",value:"gasm"},{name:"gecg",value:"gecg"},{name:"kemonomimi",value:"kemonomimi"},{name:"kiss",value:"kiss"},{name:"kuni",value:"kuni"},{name:"hentai",value:"hentai"},{name:"holo",value:"holo"},{name:"holo ero",value:"holoero"},{name:"holo lewd",value:"hololewd"},{name:"lesbian",value:"les"},{name:"lewd",value:"lewd"},{name:"lewd kemo",value:"lewdkemo"},{name:"lewd kitsune",value:"lewdk"},{name:"neko",value:"neko"},{name:"neko gif",value:"ngif"},{name:"neko gif nsfw",value:"nsfw_neko_gif"},{name:"nsfw avatar",value:"nsfw_avatar"},{name:"pussy",value:"pussy"},{name:"pussy jpg",value:"pussy_jpg"},{name:"pwank",value:"pwankg"},{name:"random hentai gif",value:"Random_hentai_gif"},{name:"small boobs",value:"smallboobs"},{name:"smug",value:"smug"},{name:"solo",value:"solo"},{name:"solo gif",value:"solog"},{name:"spank",value:"spank"},{name:"tits",value:"tits"},{name:"tickle",value:"tickle"},{name:"trap",value:"trap"},{name:"waifu",value:"waifu"},{name:"wallpaper",value:"wallpaper"},{name:"woof",value:"woof"},{name:"yuri",value:"yuri"}],gt=[{name:"1",value:"1"},{name:"2",value:"2"},{name:"5",value:"5"},{name:"8",value:"8"},{name:"10",value:"10"}];async function mt(t,n){const a=[];for(let s=0;s0&&await new Promise(function(d){return setTimeout(d,1e3)});const r=await fetch(`https://nekos.life/api/v2/img/${t}`);if(!r.ok){console.error(`[NekosLife] API request failed: ${r.status}`);continue}const l=await r.json();l.url&&a.push(l.url)}catch(r){console.error(`[NekosLife] Error fetching image ${s+1}:`,r)}return a}function yt(t){return["anal","boobs","blowjob","bj","cum","cum_jpg","ero","erofeet","erokemo","erok","eron","eroyuri","femdom","feet","feetg","futanari","gasm","kuni","hentai","holoero","hololewd","les","lewd","lewdkemo","lewdk","nsfw_neko_gif","nsfw_avatar","pussy","pussy_jpg","pwankg","Random_hentai_gif","smallboobs","solo","solog","tits","trap","yuri"].includes(t)}const ft={name:"nekoslife",displayName:"nekoslife",description:"Get images/gifs from nekos.life",displayDescription:"Get images/gifs from nekos.life",options:[{name:"category",displayName:"category",description:"Category of image/gif to get",displayDescription:"Category of image/gif to get",type:3,required:!0,choices:ut.map(function(t){return{name:t.name,value:t.value}})},{name:"limit",displayName:"limit",description:"Number of images to get (default: 1)",displayDescription:"Number of images to get (default: 1)",type:3,required:!1,choices:gt.map(function(t){return{name:t.name,value:t.value}})},{name:"send",displayName:"send",description:"Send to chat (WARNING: Use NSFW channel for NSFW content)",displayDescription:"Send to chat (WARNING: Use NSFW channel for NSFW content)",type:5,required:!1},{name:"ephemeral",displayName:"ephemeral",description:"Send as ephemeral message (only you can see)",displayDescription:"Send as ephemeral message (only you can see)",type:5,required:!1}],execute:async function(t,n){try{const a=t.find(function(m){return m.name==="category"})?.value,s=t.find(function(m){return m.name==="limit"})?.value||"1",r=t.find(function(m){return m.name==="send"})?.value||!1,l=t.find(function(m){return m.name==="ephemeral"})?.value||!1;if(!a){const m="\u274C Category is required!";return l?{type:4,data:{content:m,flags:64}}:(C.showToast(m,i.getAssetIDByName("CircleXIcon")),{type:4})}const d=parseInt(s),p=yt(a);if(r&&!l&&p&&!n.channel.nsfw)return g.alerts.showConfirmationAlert({title:"\u26A0\uFE0F NSFW Content Warning",content:"This category contains NSFW content and can only be sent in NSFW channels!",confirmText:"Okay",cancelText:null}),{type:4};l||C.showToast(`Fetching ${d} image(s) from nekos.life...`,i.getAssetIDByName("DownloadIcon"));const f=await mt(a,d);if(f.length===0){const m="\u274C Failed to fetch images from nekos.life. Try again later!";return l?{type:4,data:{content:m,flags:64}}:(C.showToast(m,i.getAssetIDByName("CircleXIcon")),{type:4})}const u=f.join(` `);if(l)return{type:4,data:{content:u,flags:64}};if(r){const m=Date.now().toString();return lt.sendMessage(n.channel.id,{content:u},void 0,{nonce:m}),{type:4}}else return dt.sendBotMessage(n.channel.id,u),{type:4}}catch(a){console.error("[NekosLife] Command error:",a);const s="\u274C An error occurred while fetching images.";return t?.find?.(function(r){return r.name==="ephemeral"})?.value??!1?{type:4,data:{content:s,flags:64}}:(C.showToast(s,i.getAssetIDByName("CircleXIcon")),{type:4})}},applicationId:"-1",inputType:1,type:1},{ScrollView:I}=e.ReactNative,{FormRow:c,FormSwitchRow:y}=ue.Forms;o.storage.factSettings??={sendAsReply:!0,includeCitation:!1},o.storage.listSettings??={pluginListAlwaysDetailed:!1,themeListAlwaysDetailed:!1},o.storage.garySettings??={imageSource:"gary"},o.storage.enabledCommands??={catfact:!0,dogfact:!0,useless:!0,petpet:!0,pluginList:!0,themeList:!0,konoself:!0,konosend:!0,firstmessage:!0,sysinfo:!0,spotifyTrack:!0,spotifyAlbum:!0,spotifyArtists:!0,spotifyCover:!0,gary:!0,ip:!0,lovefemboys:!1,nekoslife:!1},o.storage.pendingRestart??=!1,o.storage.hiddenSettings??={enabled:!1,visible:!1,konochanBypassNsfw:!1};function h({title:t,icon:n,children:a,padding:s=!1}){const r=e.stylesheet.createThemedStyleSheet({main:{backgroundColor:g.semanticColors.CARD_PRIMARY_BG,borderColor:g.semanticColors.BORDER_FAINT,borderWidth:1,borderRadius:16,overflow:"hidden",flex:1},titleContainer:{marginBottom:8,marginHorizontal:0,marginTop:8,gap:4,flexDirection:"row",alignItems:"center"},icon:{width:16,height:16,marginTop:1.5,tintColor:g.semanticColors.TEXT_MUTED},titleText:{fontSize:14,fontWeight:"600",color:g.semanticColors.TEXT_MUTED}});return e.React.createElement(e.ReactNative.View,{style:{marginHorizontal:16,marginTop:16}},t&&e.React.createElement(e.ReactNative.View,{style:r.titleContainer},n&&e.React.createElement(e.ReactNative.Image,{style:r.icon,source:n,resizeMode:"cover"}),e.React.createElement(e.ReactNative.Text,{style:r.titleText},t.toUpperCase())),e.React.createElement(e.ReactNative.View,{style:r.main},s?e.React.createElement(e.ReactNative.View,{style:{paddingHorizontal:16,paddingVertical:16}},a):a))}function pt({onHiddenUnlock:t}){const[n,a]=e.React.useState(0),[s,r]=e.React.useState(null),l=e.stylesheet.createThemedStyleSheet({container:{flexDirection:"column",alignItems:"center",paddingVertical:24,paddingHorizontal:16},title:{fontSize:28,fontWeight:"700",color:g.semanticColors.TEXT_NORMAL,marginBottom:4},subtitle:{fontSize:16,fontWeight:"500",color:g.semanticColors.TEXT_MUTED},iconContainer:{backgroundColor:g.semanticColors.BACKGROUND_SECONDARY,borderRadius:16,padding:12,marginBottom:16},icon:{width:32,height:32,tintColor:g.semanticColors.TEXT_NORMAL}}),d=function(){if(o.storage.hiddenSettings.enabled){o.storage.hiddenSettings.visible=!o.storage.hiddenSettings.visible,C.showToast(`Hidden settings ${o.storage.hiddenSettings.visible?"visible":"hidden"}`,i.getAssetIDByName("SettingsIcon")),t?.();return}s&&clearTimeout(s);const p=setTimeout(function(){a(0)},1e3);r(p);const f=n+1;a(f),!(f<10)&&(C.showToast("\u{1F513} Hidden settings unlocked!",i.getAssetIDByName("CheckmarkIcon")),o.storage.hiddenSettings.enabled=!0,o.storage.hiddenSettings.visible=!0,a(0),t?.())};return e.React.createElement(e.ReactNative.View,{style:l.container},e.React.createElement(e.ReactNative.Pressable,{style:l.iconContainer,onPress:d},e.React.createElement(e.ReactNative.Image,{source:i.getAssetIDByName("SettingsIcon"),style:l.icon})),e.React.createElement(e.ReactNative.Text,{style:l.title},"Commands"),e.React.createElement(e.ReactNative.Text,{style:l.subtitle},"A collection of useful commands"))}function ht(){S.useProxy(o.storage);const[,t]=e.React.useReducer(function(a){return a+1},0),n=e.stylesheet.createThemedStyleSheet({container:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY},warningText:{fontSize:14,color:g.semanticColors.TEXT_DANGER,textAlign:"center",lineHeight:20,fontWeight:"600"},infoText:{fontSize:14,color:g.semanticColors.TEXT_MUTED,textAlign:"center",lineHeight:20,marginTop:8}});return e.React.createElement(I,{style:n.container},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"\u26A0\uFE0F Warning",icon:i.getAssetIDByName("WarningIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:n.warningText},"These are hidden commands that may contain mature content or experimental features."),e.React.createElement(e.ReactNative.Text,{style:n.infoText},"Use at your own discretion. Commands in this section are disabled by default.")),e.React.createElement(h,{title:"Hidden Commands",icon:i.getAssetIDByName("EyeIcon")},e.React.createElement(y,{label:"/lovefemboys",subLabel:"Get random femboy images from r/femboys (NSFW content available)",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("HeartIcon")}),value:o.storage.enabledCommands.lovefemboys,onValueChange:function(a){o.storage.enabledCommands.lovefemboys=a,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/nekoslife",subLabel:"Get images/gifs from nekos.life (NSFW content available)",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ImageIcon")}),value:o.storage.enabledCommands.nekoslife,onValueChange:function(a){o.storage.enabledCommands.nekoslife=a,o.storage.pendingRestart=!0,t()}})),e.React.createElement(h,{title:"NSFW Bypass Options",icon:i.getAssetIDByName("WarningIcon")},e.React.createElement(y,{label:"KonoChan NSFW Bypass",subLabel:"Allow NSFW KonoChan content in non-NSFW channels (USE WITH CAUTION)",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ShieldIcon")}),value:o.storage.hiddenSettings.konochanBypassNsfw,onValueChange:function(a){a?g.alerts.showConfirmationAlert({title:"\u26A0\uFE0F NSFW Bypass Warning",content:"Enabling this allows NSFW content from KonoChan to be sent in any channel, including non-NSFW channels. This could violate server rules or Discord ToS. Use responsibly!",confirmText:"I Understand",cancelText:"Cancel",onConfirm:function(){o.storage.hiddenSettings.konochanBypassNsfw=!0,t()},onCancel:function(){}}):(o.storage.hiddenSettings.konochanBypassNsfw=!1,t())}})),e.React.createElement(h,{title:"Hidden Settings Control",icon:i.getAssetIDByName("SettingsIcon")},e.React.createElement(y,{label:"Keep Hidden Settings Visible",subLabel:"Keep this section visible even when navigating away",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("EyeIcon")}),value:o.storage.hiddenSettings.visible,onValueChange:function(a){o.storage.hiddenSettings.visible=a}}),e.React.createElement(c,{label:"Reset Hidden Settings",subLabel:"Hide this section and disable all hidden commands",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("TrashIcon")}),onPress:function(){g.alerts.showConfirmationAlert({title:"Reset Hidden Settings",content:"This will hide the hidden settings section and disable all hidden commands. Are you sure?",confirmText:"Reset",onConfirm:function(){o.storage.hiddenSettings.enabled=!1,o.storage.hiddenSettings.visible=!1,o.storage.hiddenSettings.konochanBypassNsfw=!1,o.storage.enabledCommands.lovefemboys=!1,o.storage.enabledCommands.nekoslife=!1,o.storage.pendingRestart=!0,C.showToast("Hidden settings reset",i.getAssetIDByName("CheckmarkIcon"))},cancelText:"Cancel"})}}))))}function bt(){S.useProxy(o.storage);const[,t]=e.React.useReducer(function(n){return n+1},0);return e.React.createElement(I,{style:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY}},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"Fact Display Settings",icon:i.getAssetIDByName("SettingsIcon")},e.React.createElement(y,{label:"Send as Reply",subLabel:"Send facts as a reply to the command message",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ArrowAngleLeftUpIcon")}),value:o.storage.factSettings.sendAsReply,onValueChange:function(n){o.storage.factSettings.sendAsReply=n}}),e.React.createElement(y,{label:"Include Source Citation",subLabel:"Include the source of facts when available",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("LinkIcon")}),value:o.storage.factSettings.includeCitation,onValueChange:function(n){o.storage.factSettings.includeCitation=n}})),e.React.createElement(h,{title:"Available Fact Commands",icon:i.getAssetIDByName("BookmarkIcon")},e.React.createElement(y,{label:"/catfact",subLabel:"Get random cat facts",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("BookCheckIcon")}),value:o.storage.enabledCommands.catfact,onValueChange:function(n){o.storage.enabledCommands.catfact=n,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/dogfact",subLabel:"Get random dog facts",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("BookCheckIcon")}),value:o.storage.enabledCommands.dogfact,onValueChange:function(n){o.storage.enabledCommands.dogfact=n,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/useless",subLabel:"Get random useless facts",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("BookCheckIcon")}),value:o.storage.enabledCommands.useless,onValueChange:function(n){o.storage.enabledCommands.useless=n,o.storage.pendingRestart=!0,t()}}))))}function Ct(){S.useProxy(o.storage);const[,t]=e.React.useReducer(function(s){return s+1},0),n=e.stylesheet.createThemedStyleSheet({container:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY},infoText:{fontSize:14,color:g.semanticColors.TEXT_MUTED,marginBottom:16,textAlign:"center"},currentText:{fontSize:14,color:g.semanticColors.TEXT_NORMAL,textAlign:"center",fontWeight:"600"}}),a=o.storage.garySettings.imageSource;return e.React.createElement(I,{style:n.container},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"Gary Command Settings",icon:i.getAssetIDByName("SettingsIcon")},e.React.createElement(y,{label:"/gary",subLabel:"Send random Gary images to channel",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("AttachmentIcon")}),value:o.storage.enabledCommands.gary,onValueChange:function(s){o.storage.enabledCommands.gary=s,o.storage.pendingRestart=!0,t()}})),e.React.createElement(h,{title:"Image Source Selection",icon:i.getAssetIDByName("DownloadIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:n.infoText},"Choose which API the /gary command should use to fetch images.")),e.React.createElement(h,{title:"API Options",icon:i.getAssetIDByName("CloudIcon")},e.React.createElement(y,{label:"Gary API",subLabel:"Original Gary the cat images from api.garythe.cat",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ImageIcon")}),value:a==="gary",onValueChange:function(s){s&&(o.storage.garySettings.imageSource="gary",t())}}),e.React.createElement(y,{label:"Cat API",subLabel:"Random cat pictures from thecatapi.com",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ImageIcon")}),value:a==="catapi",onValueChange:function(s){s&&(o.storage.garySettings.imageSource="catapi",t())}}),e.React.createElement(y,{label:"Minker API",subLabel:"Minky images from minky.materii.dev",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ImageIcon")}),value:a==="minker",onValueChange:function(s){s&&(o.storage.garySettings.imageSource="minker",t())}}),e.React.createElement(y,{label:"Goober API",subLabel:"Goober images from api.garythe.cat/goober",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ImageIcon")}),value:a==="goober",onValueChange:function(s){s&&(o.storage.garySettings.imageSource="goober",t())}})),e.React.createElement(h,{title:"Current Selection",icon:i.getAssetIDByName("CheckmarkIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:n.currentText},"Currently using: ",a==="gary"?"Gary API":a==="catapi"?"Cat API":a==="minker"?"Minker API":a==="goober"?"Goober API":"Gary API"))))}function vt(){S.useProxy(o.storage);const[,t]=e.React.useReducer(function(n){return n+1},0);return e.React.createElement(I,{style:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY}},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"List Display Settings",icon:i.getAssetIDByName("SettingsIcon")},e.React.createElement(y,{label:"Always Send Detailed Plugin List",subLabel:"Always use detailed mode when listing plugins",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("PuzzlePieceIcon")}),value:o.storage.listSettings.pluginListAlwaysDetailed,onValueChange:function(n){o.storage.listSettings.pluginListAlwaysDetailed=n}}),e.React.createElement(y,{label:"Always Send Detailed Theme List",subLabel:"Always use detailed mode when listing themes",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("PaintPaletteIcon")}),value:o.storage.listSettings.themeListAlwaysDetailed,onValueChange:function(n){o.storage.listSettings.themeListAlwaysDetailed=n}})),e.React.createElement(h,{title:"Available List Commands",icon:i.getAssetIDByName("ListViewIcon")},e.React.createElement(y,{label:"/plugin-list",subLabel:"List all installed plugins",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("PuzzlePieceIcon")}),value:o.storage.enabledCommands.pluginList,onValueChange:function(n){o.storage.enabledCommands.pluginList=n,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/theme-list",subLabel:"List all installed themes",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("PaintPaletteIcon")}),value:o.storage.enabledCommands.themeList,onValueChange:function(n){o.storage.enabledCommands.themeList=n,o.storage.pendingRestart=!0,t()}}))))}function It(){S.useProxy(o.storage);const[,t]=e.React.useReducer(function(n){return n+1},0);return e.React.createElement(I,{style:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY}},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"Image Commands",icon:i.getAssetIDByName("ImageIcon")},e.React.createElement(y,{label:"/petpet",subLabel:"Create pet-pet GIF of a user",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("HandRequestSpeakIcon")}),value:o.storage.enabledCommands.petpet,onValueChange:function(n){o.storage.enabledCommands.petpet=n,o.storage.pendingRestart=!0,t()}})),e.React.createElement(h,{title:"KonoChan Commands",icon:i.getAssetIDByName("ImageIcon")},e.React.createElement(y,{label:"/konoself",subLabel:"Get random image from KonoChan (private)",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("EyeIcon")}),value:o.storage.enabledCommands.konoself,onValueChange:function(n){o.storage.enabledCommands.konoself=n,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/konosend",subLabel:"Send random image from KonoChan to channel",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ImageIcon")}),value:o.storage.enabledCommands.konosend,onValueChange:function(n){o.storage.enabledCommands.konosend=n,o.storage.pendingRestart=!0,t()}}))))}function Rt(){S.useProxy(o.storage);const[,t]=e.React.useReducer(function(a){return a+1},0),n=e.stylesheet.createThemedStyleSheet({infoText:{fontSize:14,color:g.semanticColors.TEXT_MUTED,textAlign:"center",lineHeight:20}});return e.React.createElement(I,{style:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY}},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"Spotify Commands",icon:i.getAssetIDByName("SpotifyNeutralIcon")},e.React.createElement(y,{label:"/spotify track",subLabel:"Share your current Spotify track",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("SpotifyNeutralIcon")}),value:o.storage.enabledCommands.spotifyTrack,onValueChange:function(a){o.storage.enabledCommands.spotifyTrack=a,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/spotify album",subLabel:"Share your current track's album",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("SpotifyNeutralIcon")}),value:o.storage.enabledCommands.spotifyAlbum,onValueChange:function(a){o.storage.enabledCommands.spotifyAlbum=a,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/spotify artists",subLabel:"Share your current track's artists",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("SpotifyNeutralIcon")}),value:o.storage.enabledCommands.spotifyArtists,onValueChange:function(a){o.storage.enabledCommands.spotifyArtists=a,o.storage.pendingRestart=!0,t()}}),e.React.createElement(y,{label:"/spotify cover",subLabel:"Share your current track's cover",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("SpotifyNeutralIcon")}),value:o.storage.enabledCommands.spotifyCover,onValueChange:function(a){o.storage.enabledCommands.spotifyCover=a,o.storage.pendingRestart=!0,t()}})),e.React.createElement(h,{title:"About Spotify Commands",icon:i.getAssetIDByName("InfoIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:n.infoText},"These commands allow you to share your current Spotify activity in Discord. Make sure you have Spotify connected to Discord for these commands to work properly."))))}function St(){S.useProxy(o.storage);const[,t]=e.React.useReducer(function(n){return n+1},0);return e.React.createElement(I,{style:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY}},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"Message Commands",icon:i.getAssetIDByName("ChatIcon")},e.React.createElement(y,{label:"/firstmessage",subLabel:"Get the first message in a channel",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ChatIcon")}),value:o.storage.enabledCommands.firstmessage,onValueChange:function(n){o.storage.enabledCommands.firstmessage=n,o.storage.pendingRestart=!0,t()}})),e.React.createElement(h,{title:"System Commands",icon:i.getAssetIDByName("SettingsIcon")},e.React.createElement(y,{label:"/sysinfo",subLabel:"Display system information",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("SettingsIcon")}),value:o.storage.enabledCommands.sysinfo,onValueChange:function(n){o.storage.enabledCommands.sysinfo=n,o.storage.pendingRestart=!0,t()}})),e.React.createElement(h,{title:"Network Commands",icon:i.getAssetIDByName("GlobeEarthIcon")},e.React.createElement(y,{label:"/ip",subLabel:"IP address and domain lookup",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("GlobeEarthIcon")}),value:o.storage.enabledCommands.ip,onValueChange:function(n){o.storage.enabledCommands.ip=n,o.storage.pendingRestart=!0,t()}}))))}function wt(){const t=e.stylesheet.createThemedStyleSheet({container:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY},creditItem:{flexDirection:"row",alignItems:"center",paddingVertical:16,paddingHorizontal:20,backgroundColor:g.semanticColors.CARD_PRIMARY_BG,borderRadius:12,marginHorizontal:16,marginVertical:6,shadowColor:g.semanticColors.BLACK,shadowOffset:{width:0,height:1},shadowOpacity:.1,shadowRadius:2,elevation:2},avatar:{width:48,height:48,borderRadius:24,marginRight:16,backgroundColor:g.semanticColors.BACKGROUND_SECONDARY},textContainer:{flex:1},commandText:{fontSize:17,fontWeight:"600",color:g.semanticColors.TEXT_NORMAL,marginBottom:4},authorText:{fontSize:15,color:g.semanticColors.TEXT_MUTED,marginBottom:2},linkText:{fontSize:13,color:g.semanticColors.TEXT_BRAND,fontWeight:"500"},infoText:{fontSize:14,color:g.semanticColors.TEXT_MUTED,marginBottom:20,textAlign:"center",lineHeight:20},versionText:{fontSize:15,color:g.semanticColors.TEXT_NORMAL,textAlign:"center",fontWeight:"600",lineHeight:22}}),n=[{command:"Facts Commands",author:"jdev082",avatar:"https://github.com/jdev082.png",github:"https://github.com/jdev082"},{command:"List Commands",author:"Kitomanari",avatar:"https://github.com/Kitosight.png",github:"https://github.com/Kitosight"},{command:"PetPet",author:"wolfieeee",avatar:"https://github.com/WolfPlugs.png",github:"https://github.com/WolfPlugs"},{command:"KonoChan Commands",author:"btmc727 & Rico040",avatar:"https://github.com/OTKUSteyler.png",github:"https://github.com/OTKUSteyler"},{command:"FirstMessage Command",author:"sapphire",avatar:"https://github.com/aeongdesu.png",github:"https://github.com/aeongdesu"},{command:"Sysinfo Command",author:"mugman",avatar:"https://github.com/mugman174.png",github:"https://github.com/mugman174"},{command:"Spotify Commands",author:"Kitomanari",avatar:"https://github.com/Kitosight.png",github:"https://github.com/Kitosight"},{command:"Gary Command",author:"Zach Orange",avatar:"https://github.com/Zach11111.png",github:"https://github.com/Zach11111"},{command:"IP & NekosLife Commands",author:"scruzism",avatar:"https://github.com/scruzism.png",github:"https://github.com/scruzism"}],a=function(s){e.ReactNative.Linking.openURL(s)};return e.React.createElement(I,{style:t.container},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"Plugin Authors",icon:i.getAssetIDByName("HeartIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:t.infoText},"Thanks to this developers for creating such a nice plugins!",` `,"Tap on any developer to visit their GitHub profile.")),n.map(function(s,r){return e.React.createElement(e.ReactNative.Pressable,{key:r,style:t.creditItem,onPress:function(){return a(s.github)},android_ripple:{color:g.semanticColors.ANDROID_RIPPLE,radius:200}},e.React.createElement(e.ReactNative.Image,{source:{uri:s.avatar},style:t.avatar}),e.React.createElement(e.ReactNative.View,{style:t.textContainer},e.React.createElement(e.ReactNative.Text,{style:t.commandText},s.command),e.React.createElement(e.ReactNative.Text,{style:t.authorText},"by ",s.author),e.React.createElement(e.ReactNative.Text,{style:t.linkText},s.github.replace("https://github.com/","@"))))}),e.React.createElement(h,{title:"About",icon:i.getAssetIDByName("InfoIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:t.versionText},"Commands Plugin Collection",` `,"Version 1.1.0"))))}function Nt(){S.useProxy(o.storage);const t=e.NavigationNative.useNavigation(),[,n]=e.React.useReducer(function(a){return a+1},0);return e.React.useEffect(function(){return function(){o.storage.pendingRestart&&(o.storage.pendingRestart=!1,g.alerts.showConfirmationAlert({title:"Restart Required",content:"You have made changes to commands. Please restart Discord to apply these changes.",confirmText:"Okay",cancelText:null}))}},[]),e.React.createElement(I,{style:{flex:1,backgroundColor:g.semanticColors.BACKGROUND_PRIMARY}},e.React.createElement(pt,{onHiddenUnlock:n}),e.React.createElement(h,{title:"Command Categories",icon:i.getAssetIDByName("ChannelListIcon")},e.React.createElement(c,{label:"Facts Commands",subLabel:"Cat facts, dog facts, and useless facts",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("BookmarkIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Facts Commands",render:bt})}}),e.React.createElement(c,{label:"List Commands",subLabel:"Plugin lists and theme lists",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ListViewIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"List Commands",render:vt})}}),e.React.createElement(c,{label:"Image Commands",subLabel:"PetPet, KonoChan, and image utilities",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("ImageIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Image Commands",render:It})}}),e.React.createElement(c,{label:"Gary Commands",subLabel:`Gary images - Current: ${o.storage.garySettings.imageSource==="gary"?"Gary API":o.storage.garySettings.imageSource==="catapi"?"Cat API":o.storage.garySettings.imageSource==="minker"?"Minker API":o.storage.garySettings.imageSource==="goober"?"Goober API":"Gary API"}`,leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("CameraIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Gary Commands",render:Ct})}}),e.React.createElement(c,{label:"Spotify Commands",subLabel:"Share your Spotify activity",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("SpotifyNeutralIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Spotify Commands",render:Rt})}}),e.React.createElement(c,{label:"Other Commands",subLabel:"System info, network tools, and miscellaneous",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("MoreHorizontalIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Other Commands",render:St})}})),o.storage.hiddenSettings?.enabled&&o.storage.hiddenSettings?.visible&&e.React.createElement(h,{title:"\u{1F513} Hidden Settings",icon:i.getAssetIDByName("EyeIcon")},e.React.createElement(c,{label:"Hidden Commands",subLabel:"Experimental and mature content commands",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("WarningIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Hidden Settings",render:ht})}})),e.React.createElement(h,{title:"More Options",icon:i.getAssetIDByName("SettingsIcon")},e.React.createElement(c,{label:"Credits",subLabel:"View original authors of the plugins",leading:e.React.createElement(c.Icon,{source:i.getAssetIDByName("HeartIcon")}),trailing:e.React.createElement(c.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Credits",render:wt})}})),e.React.createElement(e.ReactNative.View,{style:{height:32}}))}o.storage.factSettings||(o.storage.factSettings={sendAsReply:!0,includeCitation:!1}),o.storage.listSettings||(o.storage.listSettings={pluginListAlwaysDetailed:!1,themeListAlwaysDetailed:!1}),o.storage.garySettings||(o.storage.garySettings={imageSource:"gary"}),o.storage.enabledCommands||(o.storage.enabledCommands={catfact:!0,dogfact:!0,useless:!0,petpet:!0,pluginList:!0,themeList:!0,konoself:!0,konosend:!0,firstmessage:!0,sysinfo:!0,spotifyTrack:!0,spotifyAlbum:!0,spotifyArtists:!0,spotifyCover:!0,gary:!0,ip:!0,lovefemboys:!1,nekoslife:!1}),o.storage.hiddenSettings||(o.storage.hiddenSettings={enabled:!1,visible:!1,konochanBypassNsfw:!1});const Et={catfact:he,dogfact:be,useless:Ce,petpet:ke,pluginList:Ne,themeList:Ee,konoself:Le,konosend:$e,firstmessage:xe,sysinfo:Ge,spotifyTrack:Ye,spotifyAlbum:Ze,spotifyArtists:Je,spotifyCover:Qe,gary:tt,ip:ct,lovefemboys:st,nekoslife:ft};let W=[];var At={onLoad:function(){console.log("[All-In-One Commands] Loading plugin...");for(const[t,n]of Object.entries(Et))o.storage.enabledCommands[t]&&(W.push(le.registerCommand(n)),console.log(`[All-In-One Commands] Registered command: ${t}`));console.log("[All-In-One Commands] Plugin loaded successfully!")},onUnload:function(){console.log("[All-In-One Commands] Unloading plugin..."),W.forEach(function(t){return t()}),W=[],console.log("[All-In-One Commands] Plugin unloaded successfully!")},settings:Nt};return U.default=At,Object.defineProperty(U,"__esModule",{value:!0}),U})({},vendetta.commands,vendetta.plugin,vendetta.metro,vendetta.themes,vendetta.plugins,vendetta.ui,vendetta.metro.common,vendetta.debug,vendetta.ui.toasts,vendetta.ui.assets,vendetta.storage,vendetta.ui.components);