Home > GPU > GPU Buyer's Guide

Best GPUs under $500 in 2024 – our top picks

These are the best GPUs that you can get with a $500 budget.

Reviewed By: Kevin Pocock

Last Updated on June 18, 2024
best gpus under $500
You can trust PC Guide: Our team of experts use a combination of independent consumer research, in-depth testing where appropriate - which will be flagged as such, and market analysis when recommending products, software and services. Find out how we test here.

The $500 price tag is a point where affordability intersects with high performance, allowing you to experience the latest gaming titles at their graphical best or tackle demanding design tasks with ease. For a more thorough list of more expensive options, we recommend the best graphics cards, which go through top-end offerings for 4K gaming.

So, with a 500-dollar budget, you can expect to find graphics cards that offer robust performance, enabling smooth gameplay at 1440p and even dipping into 4K territory with some titles. These GPUs are not just about PC gaming; they’re also well-suited for professionals who require reliable performance for 3D rendering and video editing.

With that being said, we have researched, reviewed, and picked what we think are the best GPUs under the 500-dollar price point.

Products at a glance

How we picked the best GPUs under $500

When picking the best GPUs under $500, we’ve combed through publicly available benchmarks and reviews to understand the landscape. We’ve analyzed real-world performance across a variety of games and creative applications, looking for cards that offer the best balance of power, efficiency, and value.

It’s not just raw speed we’re after; we’re also considering factors such as noise levels, power consumption, and extra features like overclocking potential and software suites that enhance the user experience.

Every graphics card in our buying guide has been thoroughly tested in-house, and we recommend reading how we test GPUs so you can get the lowdown on our decision-making.

Best GPU under $500
  • RTX 4060 Ti design
  • RTX 4060 Ti and packaging
  • RTX 4060 Ti heatsink
  • RTX 4060 Ti thickness
  • RTX 4060 Ti fans
Best in Class
  • GPU: AD106
  • CUDA cores: 4,352
  • VRAM: 8GB / 16GB GDDR6
  • Bandwidth: 288.0 GB/s
  • Memory bus width: 128-bit
  • Base clock speed: 2310 MHz
  • Boost clock speed: 2550 MHz
What We Think

Whether you’re considering the 8GB or 16GB variants, the RTX 4060 Ti excels in 1080p and 1440p with even some light application in 4K, too. Our testing reveals that this video card offers remarkable value for money with framerates at or above the 60fps mark.

Reasons to Buy
  • It has an efficient power draw
  • Excellent 1080p and 1440p performance
  • Versatile performance across various productivity tasks


Reasons to Avoid
  • It only has a 128-bit memory interface
  • Less VRAM than predecessor
  • Not great 4K performance

We went with Team Green’s RTX 4060 Ti for our best pick. Not only is this GPU well under the 500-dollar mark, but during our RTX 4060 Ti review, it had excellent performance at 1080p and 1440p and even managed to push 4K in several titles. 

This GPU managed 86 and 51 FPS and 109 and 80 FPS at 1080p and 1440p in demanding titles like Cyberpunk 2077 and Assassin’s Creed Mirage, respectively. One thing to note is that these tests were done at very high and ultra settings without AI upscaling, so this should give you an idea of how well this card performs.

Regarding its 4K performance, it managed 21, 45, and 47 FPS in Cyberpunk 2077, Assassin’s Creed Mirage, and The Finals, respectively. So, we can see that it can run games in 4K, but it’s far from its strong suit, and 1440p is the sweet spot. However, considering it is an entry-level Nvidia 4000 series GPU, it’s impressive that it can churn out 30+ FPS in 4K.

Its impressive performance is courtesy of its hardware. It features 4,352 CUDA cores,  51 TFLOPs of Ray Tracing cores, a base clock of 2.31 GHz, and a boost clock of 2.54 GHz. The CUDA cores are responsible for handling all the heavy lifting in parallel, while the Ray Tracing cores turn the in-game graphics into serene visuals. 

The Nvidia GeForce RTX 4060 Ti is an excellent graphics card for 1080p and 1440p with some good entry-level performance in 4K if you can smartly utilize DLSS 3 Frame Generation.

PC Guide

The RTX 4060 Ti comes in two variants, 8GB and 16GB, but both have a 128-bit memory interface. This means the information has enough lanes to travel to and from the GPU for processing, resulting in seamless in-game and professional performance. 

This GPU also makes full use of Nvidia technologies such as Nvidia DLSS, Reflex, Ansel, and more. DLSS uses AI upscaling to generate extra frames, giving your gaming session a smoother and better feel, while Reflex works to reduce the system latency between the CPU and the GPU. So, if there are some challenging titles, enabling DLSS should also allow you to enjoy them. 

According to Nvidia, this GPU has a total graphics power of 160W and a recommended system power of 550W. While these values are perfectly acceptable, the power draw can fluctuate depending on the workload and if you’ve overclocked your GPU. So, we recommend you check out our best PSU for RTX 4060 Ti to ensure your system gets the right amount of power. 

Overall, this GPU is a solid option. It should enable you to play games across various resolutions, and all this performance comes under $500. On top of that, you also get Ray Tracing performance, which is great for story-based games, so if that is something you prefer, the 4060 Ti should be a good fit for you. 

What users say

According to Amazon Reviews, the RTX 4060 Ti is fast, efficient, and works well in games and professional tasks such as machine learning. One reviewer stated: “A pure marvel of technology at a reasonable price.”

Best AMD GPU under $500
  • A high-performance RX 7700 XT dual-fan graphics card on a desk with a blurred background.
  • A review of the AMD Radeon RX 7700 XT graphics card lying horizontally with its backplate visible against a blurred background, showcasing why it's worth it.
  • RX 7700 XT heatsink
  • Branding of the RX 7700 XT
  • Slot width of the 7700 XT
  • Fans of the RX 7700 XT
  • GPU: Navi 32
  • Stream Processors: 3,456
  • VRAM: 12GB GDDR6
  • Bandwidth: 432 GB/sec
  • Memory bus width: 192-bit
  • Base clock speed: 1,435 MHz
  • Boost clock speed: 2,544 MHz
What We Think

The AMD Radeon RX 7700 XT is a leading 1440p graphics card from Team Red which offers exceptional performance for gamers and creatives alike.

Reasons to Buy
  • You’re after 60fps in 1440p
  • You want to use Fluid Motion Frames
  • You want a power-efficient GPU
Reasons to Avoid
  • You want to push higher framerates
  • You can find the RX 7800 XT for a similar price
  • The Ray Tracing results leave more to be desired

Next, we’re moving into the territory of Team Red with the RX 7700 XT. This is a solid mid-range GPU from AMD, and in our RX 7700 XT review, it has great performance at 1440p with ultra settings and even managed decent performance at 4K in some titles. 

This graphics card churned out 255, 210, and 94 FPS in 1080p, 1440p, and 4K in Doom Eternal at Ultra Nightmare without Ray Tracing on, respectively. By enabling Ray Tracing, we saw a drop in FPS, but that is expected. However, in less optimized titles like Cyberpunk 2077, it resulted in 122, 79, and 36 FPS in the same resolutions as above. 

So, this card is capable of pushing 4K, but its performance depends on the optimization of the title, meaning you won’t get consistent results. However, 1080p and 1440p seem to be the sweet spot for this GPU. 

Regarding its specifications, the RX 7700 XT has 3,456 stream processors, 54 Ray accelerators, a game frequency of 2171 MHz, and a boost frequency of 2544 MHz. This means that this hardware is responsible for its impressive mid-range performance. 

The AMD Radeon RX 7700 XT is a solid graphics card overall with its respectable memory pool, strong gaming performance, and a competitive price point.

PC Guide

You can also overclock the GPU for faster processing, but that comes at the cost of increased thermal output. According to AMD, this GPU’s typical board power is 245W, which will most likely increase due to overclocking. In this case, we recommend using a PC case with good airflow and swapping the case fans for more powerful ones. If you want to explore some options, check out our best airflow PC case and fan guides. 

The RX 7700 XT has 12GB of GDDR6 memory with a 192-bit memory interface. This means that it has enough VRAM to handle demanding games and professional applications without a hitch. You should be able to take your in-game settings to the max without experiencing frame drops. However, remember that turning on Ray Tracing will bring the performance down by a significant bit. 

Overall, this GPU is an excellent option, and AMD itself claims that it is able to deliver great performance at 1440p max settings in various titles like the following:

  • Overwatch 2: 208 FPS
  • Marvel’s Spider-Man: Miles Morales: 80 FPS (RT Very High)

So, if you don’t want to spend a lot of money but want the latest GPU capable of handling a variety of tasks, the RX 7700 XT shouldn’t disappoint. 

What users say

According to Amazon reviews, this GPU is praised for its ease of installation, great performance, and quiet operation. One reviewer stated: “This card has worked beautifully for everything I’ve tried.” While a negative review claimed that it couldn’t manage 1080p at max settings, we didn’t find anything like that during our testing.

Best Intel GPU under $500
  • The Intel Arc A770 GPU
  • Close-up of a modern Intel Arc A770 graphics card with distinctive branding logo.
  • Close-up of an Intel Arc A770 graphics card cooling fan with the label 'aeroblade 3d fan'.
  • Rear I/O of the Arc A770
  • The fans of the Arc A770
  • The heatsink of the Arc A770
  • Close-up view of the worth-it Intel Arc A770 graphics card with a distinctive logo on its surface.
  • Close-up review of the Intel Arc A770 graphics card with an aeroblade 3d fan.
  • Close-up review of an Intel Arc A770 graphics card on a desk.
  • GPU: DG2-512
  • GPU cores: 4,096
  • VRAM: 16GB GDDR6
  • Memory bus width: 256-bit
  • Base clock speed: 2100 MHz
  • Boost clock speed: 2400 MHz
  • Bandwidth: 512.0 GB/sec
What We Think

The Intel Arc A770 is the most powerful in the Alchemist lineup offering a staggering 16GB VRAM with incredibly fast clock speeds and high bandwidth for a price that undercuts its competition, just as long as you’ve got a CPU that can take advantage of ReBAR.

Reasons to Buy
  • You need a ton of VRAM for gaming and creating
  • You want to utilize Intel XeSS AI upscaling
  • You’re running a recent Intel CPU with ReBAR
Reasons to Avoid
  • You’re running an older CPU without ReBAR
  • You prefer to stick to a more established brand
  • The driver updates are buggy, according to some reviewers

Intel has been a runner in the GPU industry, and while their GPUs might not be as influential as Nvidia’s or AMD’s, they are still worth considering, especially if you’re operating on a budget. In our Intel Arc A770 review, we saw that it has decent performance for the price point, but options from the competition overtake it in some scenarios. 

We compared it to Nvidia’s RTX 4060 Ti and AMD’s RX 7600 XT. It had a relatively low performance at 1080p in Cyberpunk, with 77 FPS compared to the 86 FPS of the other two GPUs. However, in 1440p, it had the lead, with 54 FPS compared to 4060 Ti’s 53 and 7600 XT’s 51 FPS. 

Regarding its 4K performance, the results were below the playable range for all three GPUs, so the Arc A770 wasn’t a special exception. We can see from these tests that 1080p and 1440p resolutions are the targets of this GPU. 

While the Intel Arc A770 is far from a powerhouse graphics card, it offers excellent performance in 1080p with strong figures in 1440p, too.

PC Guide

As for its specifications, it has 32 Xe-cores and Ray Tracing units, a graphics clock of 2100 MHz, and a TDP of 225W. The Xe-cores are like Stream Processors or CUDA cores from AMD and Nvidia, respectively, and are designed to handle graphical computations. On top of that, it has a decent TDP of 225W, which should keep its thermal output relatively manageable. 

The Arc A770 has 16GB of GDDR6 memory with a 256-bit memory interface. This is more than the RTX 4060 Ti and should enable you to make use of the additional VRAM across various titles. 

According to Intel, this GPU can support a maximum resolution of 4096 x 2160 at 60Hz, but during our testing, we saw that it had a difficult time pushing above QHD. So, if you have a 4K monitor and are hoping to play 4K games, this GPU might not be the best option. 

Overall, considering that Intel still has a ways to go before competing with long-standing industry giants, this GPU has decent performance, but you can get other options with better performance for a little price hike. 

What users say

At the time of writing, this GPU has a rating of 4.1 out of 5.0, and its reviews praise it for its low thermal output, ease of installation, and great value. One user said: “It punches well above its weight class.” Another reviewer stated: “Overall, for the price it is a good card, and happy with it.”

Best GPU under $500 for 1080p
  • Rear I/O of the RX 7600 XT
  • RX 7600 XT power connectors
  • 7600 XT triple fans
  • 7600 XT fans
  • 7600 XT design
  • GPU: Navi 33
  • Stream Processors: 2,048
  • VRAM: 16GB GDDR6
  • Bandwidth: 288.0 GB/s
  • Memory bus width: 128-bit
  • Base clock speed: 2029 MHz
  • Boost clock speed: 2539 MHz
What We Think

While the RX 7600 XT isn’t going to be a leading option by any stretch, it largely achieves its goals of high-performance 1080p gameplay with tons of VRAM to spare.

Reasons to Buy
  • It has great results at 1080p
  • It can also push 1440p with decent framerates
  • It has a relatively affordable price point
Reasons to Avoid
  • Not the best GPU for content creators
  • The RTX 4060 family has better performance
  • 4K and 1440p at ultra settings don’t have great performance

Our last pick is the RX 7600 XT from AMD. We went with this GPU because, during our RX 7600 XT review, it has top-notch performance at 1080p and even managed to crunch numbers at 1440p in some titles. 

This GPU managed 91 and 67 FPS in Assassin’s Creed Mirage at 1080p and 1440p, respectively. However, in Cyberpunk 2077, the FPS dropped to 86 and 53 and saw an even more dramatic decrease by 24 and 14 FPS with RT turned on at Ultra settings. Looking at these results, we can see that 4K isn’t the domain for this card, and understandably so because it’s an entry-level GPU.   

That said, it managed 221 and 158 FPS at 1080p and 1440p in more optimized titles like Doom Eternal. This means the likelihood of this GPU performing well increases with well-optimized games. 

Regarding its specifications, the RX 7700 XT has 2,048 stream processors, 32 Ray accelerators, a game frequency of 2470 MHz, and a boost frequency of 2755 MHz. What this means is that it has enough hardware to back its entry-level status and should be able to handle some demanding titles as well.  

The AMD RX 7600 XT holds up well in 1080p and can offer decent native 1440p performance.

PC Guide

According to AMD, this GPU’s typical board power is 190W. This power draw is relatively efficient compared to higher-end GPUs, especially considering this is a next-gen GPU. This should also keep its temperature under control. However, if you’re living in a hot region, the ambient temperature will be high, and in that case, we recommend using powerful 140mm PC case fans and the best thermal paste.  

The RX 7600 XT has 16GB of GDDR6 memory with a 128-bit memory interface. It has more VRAM than the 7700XT and the RTX 4060 Ti. With this additional VRAM, you should be able to turn up the in-game settings without worrying about memory limitations. It also has a memory speed of up to 18 Gbps, which should work well with the 128-bit interface to deliver smooth processing in games and productivity tasks. 

Overall, this GPU is an excellent option, and AMD itself claims that it is able to deliver great performance at 1080p max settings with FSR 2 or 3 Quality mode in various titles like the following:

  • Like a Dragon Gaiden: The Man Who Erased His Name: 279 FPS
  • Marvel’s Spider-Man: Miles Morales: 176 FPS (RT Very High)
  • Starfield: 118 (High settings)

So, if you’re on a strict budget but still want to play the latest titles in good quality, the RX 7600 XT should be a good fit, combined with its AI upscaling technologies. 

What users say

According to Amazon reviews, the RX 7600 XT provides great value and performance and has a good thermal design. One reviewer said: “This card seems to be able to run anything. Great piece of hardware,” while another stated: “I went from having glitches and computer hang ups error only running medium Graphics to now being able to run ultra high quality without any issues.”

How to pick the best GPU under $500

Here’s what you need to consider before buying a GPU for under $500. We’ve broken things down based on their performance, compatibility, motherboard clearance, and more to help you make an informed purchasing decision.


To start with, you need to decide on a resolution – 1080p, 1440p, or 4K and then determine your target framerate. With a $500 budget, you can expect to find GPUs that support 1080p and 1440p resolutions with decent framerates. If you are lucky, you might even find a card that handles entry-level 4K games well.

You can even research GPUs based on games. For instance, you can look for the best GPUs for AAA games or FPS games and then select the ones that meet your requirements the best.


Another important factor that you should consider is compatibility with the processor and the rest of your setup. To avoid bottlenecks, you need to make sure that your CPU works well with the GPU. Plus, the system should also have enough RAM to reach the GPU’s full potential and ensure smooth performance. And you’d also need a compatible PSU that supplies enough power to avoid any disruptions.

GPU clearance

Now, to actually use your GPU, you will need to fit it into the PC case. Most older GPUs are small, but the newer ones, like the NVIDIA RTX 40-series, are bulkier. So, your PC case should be big enough to fit in those cards. Further, the exact dimensions of a graphics card vary. For instance, the original RTX 4060 Ti card is different in size than the Gigabyte one.

Other features

While getting yourself a new GPU, you should also look for the extra features that a GPU offers. For instance, NVIDIA’s Ada Lovelace cards offer advanced ray tracing and DLSS. Or AMD offers Smart Access Memory and FSR. These features can significantly boost your gaming performance – so they’re worth looking into.

What can I expect from a GPU under $500?

A GPU under $500 will be best suited to gaming in 1080p and 1440p, and you’ll want to utilize AI upscaling to ensure you are using either Nvidia DLSS, AMD FSR, or Intel XeSS for higher framerates, but 60fps and above is more than possible natively.

Can I game in 4K on a GPU under $500?

Generally speaking, GPUs under $500 aren’t really able to do 4K to a playable standard even with AI upscaling, at least speaking to newer titles, as older games should have no problem upscaling to 2160p.

As a tech and AI writer for PC Guide, Gloria is interested in what new technology means for the future of consumer electronics and digital and broadcast journalism.

'),b.insertAdjacentHTML(d,e));return document.getElementById(a)};c.prototype._repeatDynamicAds=function(b){var a= [],d=this._removeRecipeCapExperiment.result&&"Recipe"===b.location?99:this.locationMaxLazySequence.get(b.location),e=b.lazy?u(d,0):0;d=b.max;var f=b.lazyMax;e=Math.max(d,0===e&&b.lazy?d+f:Math.min(Math.max(e-b.sequence+1,0),d+f));for(f=0;f=d;a.push(y(y({},b),{sequence:g,lazy:h}))}return a};c.prototype._locationEnabled=function(b){b=this._clsOptions.enabledLocations.includes(b.location);var a=this._clsOptions.disableAds&&this._clsOptions.disableAds.all|| document.body.classList.contains("adthrive-disable-all"),d=!document.body.classList.contains("adthrive-disable-content")&&!this._clsOptions.disableAds.reasons.has("content_plugin");return b&&!a&&d};return c}(),Za=function(c){function b(a,d){var e=c.call(this,a,"ClsVideoInsertion")||this;e._videoConfig=a;e._clsOptions=d;e._IN_POST_SELECTOR=".adthrive-video-player";e._WRAPPER_BAR_HEIGHT=36;e._playersAddedFromPlugin=[];d.removeVideoTitleWrapper&&(e._WRAPPER_BAR_HEIGHT=0);return e}v(b,c);b.prototype.init= function(){this._initializePlayers()};b.prototype._wrapJWPlayerWithCLS=function(a,d,e){void 0===e&&(e=0);return a.parentNode?(d=this._createGenericCLSWrapper(.5625*a.offsetWidth,d,e),a.parentNode.insertBefore(d,a),d.appendChild(a),d):null};b.prototype._createGenericCLSWrapper=function(a,d,e){var f=document.createElement("div");f.id="cls-video-container-".concat(d);f.className="adthrive";f.style.minHeight="".concat(a+e,"px");return f};b.prototype._getTitleHeight=function(a){a.innerText="Title";a.style.visibility= "hidden";document.body.appendChild(a);var d=window.getComputedStyle(a),e=parseInt(d.height,10),f=parseInt(d.marginTop,10);d=parseInt(d.marginBottom,10);document.body.removeChild(a);return Math.min(e+d+f,50)};b.prototype._initializePlayers=function(){var a=document.querySelectorAll(this._IN_POST_SELECTOR);a.length&&this._initializeRelatedPlayers(a);this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()};b.prototype._createStationaryRelatedPlayer=function(a,d,e){var f="mobile"===this._device? [400,225]:[640,360],g=G.Video_In_Post_ClicktoPlay_SoundOn;d&&a.mediaOrPlaylistId&&(e="".concat(a.mediaOrPlaylistId,"_").concat(e),d=this._wrapJWPlayerWithCLS(d,e),this._playersAddedFromPlugin.push(a.mediaOrPlaylistId),d&&this._clsOptions.setInjectedVideoSlots({playerId:a.playerId,playerName:g,playerSize:f,element:d,type:"stationaryRelated"}))};b.prototype._createStickyRelatedPlayer=function(a,d){var e="mobile"===this._device?[400,225]:[640,360],f=G.Video_Individual_Autoplay_SOff;this._stickyRelatedOnPage= !0;this._videoConfig.mobileStickyPlayerOnPage="mobile"===this._device;if(d&&a.position&&a.mediaId){var g=document.createElement("div");d.insertAdjacentElement(a.position,g);d=document.createElement("h3");d.style.margin="10px 0";d=this._getTitleHeight(d);d=this._wrapJWPlayerWithCLS(g,a.mediaId,this._WRAPPER_BAR_HEIGHT+d);this._playersAddedFromPlugin.push(a.mediaId);d&&this._clsOptions.setInjectedVideoSlots({playlistId:a.playlistId,playerId:a.playerId,playerSize:e,playerName:f,element:g,type:"stickyRelated"})}}; b.prototype._createPlaylistPlayer=function(a,d){var e=a.playlistId,f="mobile"===this._device?G.Video_Coll_SOff_Smartphone:G.Video_Collapse_Autoplay_SoundOff,g="mobile"===this._device?[400,225]:[640,360];this._videoConfig.mobileStickyPlayerOnPage=!0;var h=document.createElement("div");d.insertAdjacentElement(a.position,h);d=this._wrapJWPlayerWithCLS(h,e,this._WRAPPER_BAR_HEIGHT);this._playersAddedFromPlugin.push("playlist-".concat(e));d&&this._clsOptions.setInjectedVideoSlots({playlistId:a.playlistId, playerId:a.playerId,playerSize:g,playerName:f,element:h,type:"stickyPlaylist"})};b.prototype._isVideoAllowedOnPage=function(){var a=this._clsOptions.disableAds;if(a&&a.video){var d="";a.reasons.has("video_tag")?d="video tag":a.reasons.has("video_plugin")?d="video plugin":a.reasons.has("video_page")&&(d="command queue");q.error(d?"ClsVideoInsertionMigrated":"ClsVideoInsertion","isVideoAllowedOnPage",Error("DBP: Disabled by publisher via ".concat(d||"other")));return!1}return this._clsOptions.videoDisabledFromPlugin? !1:!0};return b}(function(c){function b(a,d){var e=c.call(this)||this;e._videoConfig=a;e._component=d;e._stickyRelatedOnPage=!1;e._relatedMediaIds=[];a=void 0;void 0===a&&(a=navigator.userAgent);a=/Windows NT|Macintosh/i.test(a);e._device=a?"desktop":"mobile";e._potentialPlayerMap=e.setPotentialPlayersMap();return e}v(b,c);b.prototype.setPotentialPlayersMap=function(){var a=this._videoConfig.players||[],d=this._filterPlayerMap();a=a.filter(function(e){return"stationaryRelated"===e.type&&e.enabled}); d.stationaryRelated=a;return this._potentialPlayerMap=d};b.prototype._filterPlayerMap=function(){var a=this,d=this._videoConfig.players,e={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return d&&d.length?d.filter(function(f){var g;return null===(g=f.devices)||void 0===g?void 0:g.includes(a._device)}).reduce(function(f,g){f[g.type]||(q.event(a._component,"constructor","Unknown Video Player Type detected",g.type),f[g.type]=[]);g.enabled&&f[g.type].push(g);return f},e):e};b.prototype._checkPlayerSelectorOnPage= function(a){var d=this;a=this._potentialPlayerMap[a].map(function(e){return{player:e,playerElement:d._getPlacementElement(e)}});return a.length?a[0]:{player:null,playerElement:null}};b.prototype._getOverrideElement=function(a,d,e){a&&d?(e=document.createElement("div"),d.insertAdjacentElement(a.position,e)):(d=this._checkPlayerSelectorOnPage("stickyPlaylist"),a=d.player,d=d.playerElement,a&&d&&(e=document.createElement("div"),d.insertAdjacentElement(a.position,e)));return e};b.prototype._shouldOverrideElement= function(a){a=a.getAttribute("override-embed");return"true"===a||"false"===a?"true"===a:this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.overrideEmbedLocation:!1};b.prototype._checkPageSelector=function(a,d,e){void 0===e&&(e=[]);return a&&d&&0===e.length?("/"!==window.location.pathname&&q.event("VideoUtils","getPlacementElement",Error("PSNF: ".concat(a," does not exist on the page"))),!1):!0};b.prototype._getElementSelector=function(a,d,e){if(d&&d.length>e)return d[e];q.event("VideoUtils", "getPlacementElement",Error("ESNF: ".concat(a," does not exist on the page")));return null};b.prototype._getPlacementElement=function(a){var d=a.pageSelector,e=a.elementSelector;a=a.skip;var f=da(d),g=f.valid,h=f.elements;f=S(f,["valid","elements"]);var k=ca(e),l=k.valid,p=k.elements;k=S(k,["valid","elements"]);return""===d||g?l?this._checkPageSelector(d,g,h)?this._getElementSelector(e,p,a)||null:null:(q.error("VideoUtils","getPlacementElement",Error("".concat(e," is not a valid selector")),k),null): (q.error("VideoUtils","getPlacementElement",Error("".concat(d," is not a valid selector")),f),null)};b.prototype._getEmbeddedPlayerType=function(a){(a=a.getAttribute("data-player-type"))&&"default"!==a||(a=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:"static");this._stickyRelatedOnPage&&(a="static");return a};b.prototype._getMediaId=function(a){return(a=a.getAttribute("data-video-id"))?(this._relatedMediaIds.push(a),a):!1};b.prototype._createRelatedPlayer= function(a,d,e,f){"collapse"===d?this._createCollapsePlayer(a,e):"static"===d&&this._createStaticPlayer(a,e,f)};b.prototype._createCollapsePlayer=function(a,d){var e=this._checkPlayerSelectorOnPage("stickyRelated"),f=e.player;e=e.playerElement;var g=f?f:this._potentialPlayerMap.stationaryRelated[0];g&&g.playerId?(this._shouldOverrideElement(d)&&(d=this._getOverrideElement(f,e,d)),d=document.querySelector("#cls-video-container-".concat(a," > div"))||d,this._createStickyRelatedPlayer(y(y({},g),{mediaId:a}), d)):q.error(this._component,"_createCollapsePlayer","No video player found")};b.prototype._createStaticPlayer=function(a,d,e){this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId?this._createStationaryRelatedPlayer(y(y({},this._potentialPlayerMap.stationaryRelated[0]),{mediaOrPlaylistId:a}),d,e):q.error(this._component,"_createStaticPlayer","No video player found")};b.prototype._shouldRunAutoplayPlayers=function(){return this._isVideoAllowedOnPage()&& (this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length)?!0:!1};b.prototype._determineAutoplayPlayers=function(){var a=this._component,d="VideoManagerComponent"===a,e=this._config;if(this._stickyRelatedOnPage)q.event(a,"stickyRelatedOnPage",d&&{device:e&&e.context.device,isDesktop:this._device}||{});else{var f=this._checkPlayerSelectorOnPage("stickyPlaylist"),g=f.player;f=f.playerElement;g&&g.playerId&&g.playlistId&&f?this._createPlaylistPlayer(g,f):q.event(a, "noStickyPlaylist",d&&{vendor:"none",device:e&&e.context.device,isDesktop:this._device}||{})}};b.prototype._initializeRelatedPlayers=function(a){for(var d=new Map,e=0;e