Last week, I posted my preliminary plan for the colors and wall design for the home gym. I had decided to go for the bold look of stripes on the walls and ceiling in an ombre rainbow sort of design using stripes that were at least eight inches wide. If you missed that post, you can find it here…

I was pretty excited about that plan, and after doing some quick math, I determined that I’d need 27 colors to do the striped walls, not including the solid end walls. So in all, I’d need 29 colors. I headed to Home Depot and picked out about 100 colors, brought them home, and started eliminating and arranging that selection to get to 27 colors. I took a few pictures along the way so that as I arranged, I could have a reference to go back to in order to remember the arrangements I really liked. This was one such arrangement, although I’m missing a few colors, and it looks like there are some repeats.

When I thought I had the colors just right, it dawned on me that these colors represented actual cans of paint. Paint that costs money. And that I’d actually have to pay for. 😀

Hmmm…how much would I need? I’d need enough of each color to do two coats of paint on a stripe that goes up one wall, across the entire ceiling, and down the other wall. Would a quart be enough? I honestly don’t know. But a gallon would be way too much. And there’s no such thing as half gallons. But once you’ve bought two quarts, you’ve paid for a gallon.

I started figuring, and realized that if I could squeak out a full stripe out of one quart of paint (which is questionable since it’s new drywall, and even though I always prime new drywall, that first coat always takes more paint than the rest), I’d be spending a minimum of \$550 for the paint, and that doesn’t even include the primer, the rollers, the tape, etc. In my mind, that’s absurd. If one quart wasn’t quite enough for some of those stripes, It could be way more.

That just seems like a ridiculous amount of money to pay for paint for the walls of a home gym, especially when I have big projects coming up like my studio cabinets. I mean, even if I can save \$250 to put towards the studio, that would cover the cost of six full sheets of plywood. That would go very far on my studio cabinets if I decide to make them from scratch.

I started narrowing down the colors, and finally came up with this smaller selection of colors…

So now I have the colors I want to use, but I’m back to square one with the design.

I also had to rethink the flooring I was planning to use in the room. I’ve spent quite a bit of time researching flooring for home gyms and the types of flooring that are common, comparing brands, reading countless customer reviews, etc. The most common flooring types are (1) rubber, (2) foam, and (3) very low pile carpet, like a commercial carpet.

After searching and searching, I was leaning towards the carpet, and I found one at Flor that I absolutely love. It’s called Rush Street, and I thought the black was perfect.

The cost for that flooring to cover the whole floor would be about \$1200. That just didn’t sit well with me, either. So I kept looking.

The thing I loved the most about the carpet is that it isn’t solid black. It has color variation, so lint won’t show up as much as it would on solid black. All the rubber floors I found seem to be solid black. And actually, most of the foam floors I found came in solid colors as well. Plus, the customer reviews on foam flooring seem to vary pretty wildly.

Then I came across a site called We Sell Mats, and they had all kinds of flooring. But all of their foam mat floors had incredibly high customer ratings and rave reviews. They have two in particular that really caught my eye. One is this printed foam mat called Forest Floor in the color Carbon.

I can do the entire floor in that room for \$350, and I love that the color is varied and not solid black. I was poking around on their Instagram page, and they had linked to this man’s gym where he used this exact foam tile on his floor. I think it looks amazing! And if you watch how active he is in his videos, the floor seems to be very durable. And again, those customer reviews have me sold.

They also have this version, which is a more traditional wood grain look…

I really like both of those, but I prefer the first one. I like that it has more of a modern look to it, so that’s the one I went with. I’ve decided not to refinish the hardwood floor in that room since I’ll just be covering the floor with foam mats anyway. Going to all that trouble and cost to refinishing the floor just to cover it up seems like a big waste of time and money. So as soon as I get the rest of the hardwood flooring installed in the closet area, I can just clean the floor and then install the floor mats. This room could have a finished floor very soon!

And that means that I need to decide on my walls since those need to be done before the mats are installed. *Sigh* Maybe a color block design?

So in the end, I had to compromise on both the walls and the floor in the home gym. But at a savings of \$850 on the floor, and a potential savings of about \$250 on the walls, that’s \$1100 that can be better spent on my studio cabinets. I think I can live with that.

``` ```
``` On March 11, 2021 • By Kristi Linauer 52 You Might Also Like... My Single New Year’s Resolution — A Completely Different Mindset (Plus, The Starting Point For Finishing The Home Gym) January 16, 2023 More Home Gym Progress (Plus, How I Trim Large Cased Openings By Myself) March 22, 2022 I Finally Found A Shallow Undermount Bathroom Sink For A Table-Style Vanity March 23, 2022 Previous Post DIY Frosted Front Door With House Numbers Next Post Metal & Glass Side Table Makeover (Music Room Progress) 52 Comments Leave a Comment Name * Email * Website Δdocument.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); This site uses Akismet to reduce spam. Learn how your comment data is processed. Reply To This Comment ↓ Sue Rood March 11, 2021 at 11:22 am I like your floor option a lot. As for the cost of the paint, could you get away with a quart of paint per stripe if you painted everything with a solid primer first? That way the new material would absorb the primer instead of expensive paint. Just a thought… Reply To This Comment ↓ Patrice Luckey March 11, 2021 at 2:44 pm How about lightly battened upholstered walls in a striped fabric? It could use different fabric for each color. Or decoupage the stripes in colored papers? Could even rip the edges for a painterly effect although crisp cut edges might be more pert and sporty if that’s the feel you’re going for… Reply To This Comment ↓ Betsy March 12, 2021 at 11:06 am It is a good thought 😉 but Kristi addressed this: “I started figuring, and realized that if I could squeak out a full stripe out of one quart of paint (which is questionable since it’s new drywall, and even though I always prime new drywall, that first coat always takes more paint than the rest), I’d be spending a minimum of \$550 for the paint, and that doesn’t even include the primer…” Reply To This Comment ↓ DeWheel March 11, 2021 at 11:27 am The paint costs would be expensive, but it was a great plan. Can’t wait to see what you end up doing; it will be awesome, I’m sure. I love that flooring! What a great choice for a home gym floor or any gym floor. Your finished rooms are always spectacular! Reply To This Comment ↓ Carole Prisk March 11, 2021 at 9:25 pm What if you mixed white with colors and did gradients of shades? That would require less paint. Reply To This Comment ↓ Julie March 11, 2021 at 11:31 am Will you have any workout equipment that needs to be hung up? Weights, ropes or even a hook for a towel? Looking at the inspiration picture, I can just imagine having like a smaller feature carved out with the stripes. Or could you make a couple zone areas with the stripes? (like the trampoline area gets horizontal stripes?) I love them so much but the cost to do the whole room would make me run too!!! 😉 EEK!!! Reply To This Comment ↓ Melissa March 11, 2021 at 11:32 am could you do wider stripes or repeat the pattern-either 1,2,3,…,13,14,15,1,2,3…13,14,15 or 1,2,3…,13,14,15,14,13,12…3,2,1 and get a similar effect? Reply To This Comment ↓ Melissa March 11, 2021 at 11:38 am also, young house love recently did their sons room in similar colors: https://www.younghouselove.com/colorful-planked-wall-treatment/ Reply To This Comment ↓ Joni Barens March 11, 2021 at 1:52 pm What about just having a few stripes going from the top of the door to the bathroom , up and across the ceiling and down to the floor on the other side. Fewer colors and narrower stripes…4-6inches. Let those be your pop of colors that you can use for artwork etc. Reply To This Comment ↓ Lori Riggs March 11, 2021 at 4:57 pm Here’s my two cents and as you know everyone has an opinion. My two cents are about the paint. Why not just have one wall painted in the stripes as your feature wall. Leave the ceiling white. I’m thinking two walls and the ceiling too is too much of a good thing. Perhaps as an alternative you could extend 2-3 colors at varying lengths that end with a design of some sort like an arrow or curve. Or use the same colors on artwork to say a motivational thought of inspiration to read as you are working out. Just another thought for you. Reply To This Comment ↓ Kay March 11, 2021 at 11:37 am Do you think something like this might work? They used samples of paint and said they spent less than \$50 https://www.younghouselove.com/how-to-paint-colorful-wall-mural/ Reply To This Comment ↓ Julie March 11, 2021 at 12:02 pm This looks pretty awesome. Reply To This Comment ↓ CathyR March 11, 2021 at 12:55 pm And their daughters room is cool too! Reply To This Comment ↓ Susan March 11, 2021 at 5:49 pm I like this, too! Reply To This Comment ↓ Jane March 13, 2021 at 9:28 pm I think it could look amazing if you just did the ceiling with the stripes and leave the walls white. Reply To This Comment ↓ Leslie March 11, 2021 at 11:38 am What about doing stripes just below a chair rail height? That would cut you down by possibly 2/3. I would think you could get away with a quart per color. Or could you buy a gallon base color and parcel it out and tint it yourself? Reply To This Comment ↓ Ritta Cunningham March 11, 2021 at 11:41 am Two things. First, my bathroom was painted Summer Dragonfly for years and I LOVED it and paired it with a chocolate brown taffeta shower curtain with dragonflies:). Second, are you sure you want to put rubber on unfinished hardwood floors? I have pets, too, so I always worry what if I didn’t see a vomit or pee area and it seeps through to the unfinished wood. Also, what if you spill a cup of water or something. Just my two cents! Love the colors! Reply To This Comment ↓ Kristi March 11, 2021 at 11:44 am The floor in the main part of the room has a finish on it already. I was going to sand them and refinish them. The flooring in the long entry to that room, as well as the closet floor, is unfinished. I can very easily put a quick coat of sealer on those areas before putting the mats down so that anything spilled won’t be able to penetrate the wood. I just don’t want to go to the trouble of renting the big sander, filling all the cracks, staining, sealing, and getting it looking all pretty and new, just to cover them up. Reply To This Comment ↓ Doreen March 11, 2021 at 2:46 pm Kristi – I love your floor choice. I’m not sure about the paint yet but I am sure it will look great. I would have to move the theracycle so I could see the tv when cycling. Just a thought. Great job… can’t wait to see the progress. Reply To This Comment ↓ Patty March 11, 2021 at 11:43 am Ugh, it’s too bad things cost money 😉 I love the colors you’ve chosen and look forward to seeing the final result. About those mats – be very careful with them. I had some that I used in my workshop (they make it much more comfortable for standing long periods of time). They got very messy so I took them to the driveway to wash them, and stood on them to hose them down (the hose kept pushing them away). The back of them is V-E-R-Y slippery when wet, and I took a bad fall: I shattered my wrist and suffered a grade 3 hamstring tear. I get facial tics whenever I see those mats now 🙂 Bottom line – just be very careful with them! Reply To This Comment ↓ Deb March 11, 2021 at 11:58 am I absolutely love the flooring you chose – even more than the original idea. Sometimes things work out better than you planned! Can’t wait to see the finished room! Reply To This Comment ↓ suzanne March 11, 2021 at 12:19 pm Could you tint your own paint? Maybe buy 3 gallons of the darkest colors and mix them with the cream to ombre the paint. Whatever you do will look awesome. Reply To This Comment ↓ DWF March 11, 2021 at 4:22 pm This is what I was thinking. Buy the darker and lighter value of green, for instance, in gallons. Put aside half a gallon of each and then see if you can mix up two intermediate tones to get another two half gallons of shades in between those. Repeat for beige, etc. Reply To This Comment ↓ sharon smits March 11, 2021 at 12:26 pm Hi Kristi, As an artist who paints murals and furniture, I agree with Melissa and Kay’s idea to use samples of paint. I use Sherwin Williams Color to Go quarts all the time. [note; I add a clear poly on the furniture.] Full price per quart is \$8.50, but with a business account, retail coupons or a sale, that price is reduced. Right now, I think the sale runs 20%, so that would be \$6.50/quart, or just under \$100 for your beautiful colors. Your ideas and work always inspire me — I’m eager to see how your project develops. All the best! Reply To This Comment ↓ Jana March 11, 2021 at 12:34 pm Kristi, my girlfriend in her work has used that product. She advises it doesn’t hold up to heavy use. Good for kids. But it will twist/separate under wheelchair use and doggy claws will go thru it. Reply To This Comment ↓ Kristi March 11, 2021 at 12:56 pm Do you know if it’s this exact brand? I saw plenty from other sites that had very poor or very mixed customer reviews. This company’s products have pretty glowing reviews. Reply To This Comment ↓ Tracy March 11, 2021 at 1:03 pm I’m suspicious when reviews are too good🤨 Reply To This Comment ↓ Linda March 11, 2021 at 1:39 pm Me too Tracy! I’ve read too many stories about the companies making up reviews to make themselves look good! Consumer Reporting is my go to. They have usually done the work themselves to truthfully review products. Reply To This Comment ↓ Tracy March 11, 2021 at 1:00 pm Maybe rethink foam/rubber tiles with Matt’s wheelchair. We have mats and they get dirty easily. Not sure how a vacuum beater bar would treat these. His turning is his wheelchair probably will separate them and will drive you crazy! There are standard commercial carpet tiles that are WAY less expensive than Flor. I like someone’s suggestion of highlighting the different stations with the stripes. Reply To This Comment ↓ CathyR March 11, 2021 at 1:00 pm I’m glad you went with the rubber mats; the commercial grade carpet is so hard to kneel on and even lay on. It’s like a bumpy rock. Reply To This Comment ↓ Judy E OBrien March 11, 2021 at 2:05 pm I think it is time to call in your Mom. She could paint a beautiful mural on opposite sides of the room to look like you are in a garden or meadow. Think of the open feeling you would get from such a landscape? Your Mom is so talented and I think she would love to help you out with this. Reply To This Comment ↓ Cynthia March 11, 2021 at 2:18 pm No cats allowed in the gym if you go with the mats. Even my oldest cat, who doesn’t do much playing these days, loves to shred the mats in a work area of my basement. Reply To This Comment ↓ Maryann P March 11, 2021 at 2:46 pm I’m sure whatever you do will be amazing! Could you do a vertical stripe from the floor , up the wall and across the ceiling meeting in the center ? The ceiling stripes would be pie shaped to end in the center? Reply To This Comment ↓ Sewducky March 11, 2021 at 3:34 pm The top one looks like what Aldi has sold occasionally (\$10/4pk), but it’s a fight to get enough for your room, if thats what you’d like. On paint, Don’t discount the sample size if you find you need a little more. Parents did the little drywall surrounding a kitchen with 2-3 sample paints. They started with one to try it out, and were amazed at the coverage. I thought you’d be mixing your own colors when you said Ombre. With the range of color change, I see how it’s necessary. Not to be a Debbie downer, but was researching wood prices (for a deck) and they went up big time, since September! Mills were C19-slowed, wildfires, and the industry in general had strategically anticipated a lower need that never materialized. I’d hate to push a delay on that project, but there’s something to consider. Reply To This Comment ↓ Sewducky March 11, 2021 at 3:51 pm A google search later, & found it. What I was thinking of go on sale around jun/july the past few years. Link is below, it just shares the image and price. The plain ones were \$9.99/4pk (sold around Feb), These are \$12.99 4/pk and different pattern than what you found. link for reference. Most stores only get a few boxes worth and people were a little enthusiastic last time, about the wood-look. http://offers.kd2.org/en/us/aldi/phkbn/ Reply To This Comment ↓ Marianne in Mo. March 11, 2021 at 3:45 pm I think the mats sound great in theory, but I have no experience with them. I would check with some carpet stores on the commercial stuff. Sometimes they have end rolls they want to get rid of, and will discount them. You can also tell them it will aid your husbands’ disability – maybe they would discount for you on that also. I think that would hold up better for this use than the mats. As for the paint, I expected stronger colors than the ones you chose (not that I don’t like your choices!) but I would scrap the stripes idea if it means settling for something you aren’t crazy about. Paint can be done any time, so I would maybe pick two or three colors and work with them. just do random shapes you like here and there in a large scale design and call it done for a while. Then after you both use the room for workouts, you can see what comes to mind as you are in the room using it! Every day you could jot down “what about this” thoughts, and see if it brings a design to the forefront. I bet you will come up with a total different idea in using the space. Reply To This Comment ↓ Janice Jeanne Dinse March 11, 2021 at 4:42 pm What if you painted each wall a different color or just did two or three strips somewhere. Your hall is striped also, if I remember right, will that be too much stripe? The rubber floor is a great idea. Also maybe you could go to a place like Planet Fitness and see what type of floors they use. They get a lot of wear and tear. Reply To This Comment ↓ Mason Leskowitz March 11, 2021 at 4:50 pm For the walls,could you just buy the main primary colors and then add white/black to get them lighter/darker? Reply To This Comment ↓ Erin March 11, 2021 at 5:56 pm I love you colors you chose. I also like the idea of color blocks (with white in between, kind of like trim), going in the roygbiv order. If they are large enough blocks then you can hang art or motivational phrases on them or whatever. No matter what you decide on it’ll look amazing!!! Reply To This Comment ↓ Molly Miller March 11, 2021 at 5:59 pm Have throes mats in natural wood look in my basement and they are great quality Reply To This Comment ↓ Robin March 11, 2021 at 8:34 pm Store personnel state sample paint is NOT small containers of regular paint. Iris an inferior product to be used for color only. My guess- use only for very light use areas. Good luck deciding. Reply To This Comment ↓ Robin March 11, 2021 at 8:35 pm It is Reply To This Comment ↓ Cynthia Turner March 11, 2021 at 10:38 pm If you paint a base coat underneath the stripes, you will be amazed at how little paint the stripes take. Sherwin Williams has large sample paints for \$8, and I’ll bet you would get away with one of those for each color. Reply To This Comment ↓ Katy March 12, 2021 at 7:10 am I used to own a health club and we had LVT, carpet tiles and rubber in various parts of the gym. While the rubber looked great and was functional, I can tell you it was a pain to clean! Darker rubber (even with flecks or colorations) shows all the dust bunnies. It does not sweep easily and you have to mop it to really clean. Swifter doesn’t work becuase the spray absorbs into the rubber too quickly. You really need the saturated mop. Foam may be better than rubber in this aspect, but you may want to check reviews for that topic. If you go with carpet, it vacuums easily. They make carpet squares (easy to pull up and clean/replace) specifically for gyms, so they don’t absorb sweat and odor. We had squares from Target’s commercial line, but if you google gym carpet tiles, you can find a bunch. P.S. Love the stipes idea, hope you can make it work. Can’t wait to see how it turns out!! Reply To This Comment ↓ Janine March 12, 2021 at 9:06 am Hi Kristi. I do like this flooring as it looks comfy and seems that it will decrease sound. Just a thought/question. You didn’t mention how this flooring would stand up to a wheelchair. Also, will Matt be able to push himself on this flooring? Good luck to you! Reply To This Comment ↓ Kristi March 12, 2021 at 11:16 am I don’t know how it will hold up to a wheelchair. This is all new to me, and none of the customer reviews I read mentioned a wheelchair. But Matt has a power wheelchair which travels very easily over grass and gravel, so I don’t think 3/8″ high density foam will be a problem. Reply To This Comment ↓ Emily Hoffman March 12, 2021 at 9:11 am If you have a friendly Benjamin Moore store they might be able to help. You could purchase a 5 gallon pail of paint and a bunch of empty gallon cans. Have them pour off half gallons and use a half tint formula into the can. It would save you a lot. It’s honestly an easier task than some of the colour matching they do. I know when I worked at a small paint store I would try to accommodate any kind request that was accompanied by coffee and some donuts 😊 Reply To This Comment ↓ Daniele Baker March 12, 2021 at 11:56 am I love the colors you picked. Have you seen the Behr Architect color box? I was able to order one (no charge) and it’s saved me sooo many trips to get color swatches. https://www.behr.com/pro/colors/behr-color-box Reply To This Comment ↓ Cheryl S-B March 12, 2021 at 8:06 pm Girl, what are you worrying about? You got this! You did your Bathroom in your office, ambre. You mixed it all your self. All you need is one gallon each of the main colors plus white, and you mix the in betweens to match your sample colors. I know you can do that! I can’t wait to see it! If you need help your Mom is the best one to ask! Reply To This Comment ↓ Chris Quisenberry March 15, 2021 at 7:23 pm I always have leftover paint. I started mixing my own colors with my leftovers. All I ever have to buy is a gallon of White to lighten up the colors or tone them down. I did my kitchen, dining room and entryway all with the same base color. For each room I added the white/cream to make it lighter. They all blend but each room has its own personal color. I am currently redoing my farmhouse getaway the same way. Reply To This Comment ↓ JillB March 16, 2021 at 10:07 am I wonder if you use the colors you’ve picked out to do solid stripes on the two opposing walls and then as you move to the ceiling, you fade those colors into white. Almost a watercolor effect on the ceiling. That could help save a little paint so you only need a quart of each color. I know you will come up with something amazing. Reply To This Comment ↓ Lyssa March 16, 2021 at 11:13 am Word of warning – we did rubber tiles on our foster sons’ room and couldn’t open the door due to the thickness of the tiles. Plus, they absorbed everything. Now, traumatized boy/teen messes are much nastier than a gym mess, but it is something to keep in mind. ```
``` ```
``` ```
``` ```
``` Well, hello there! I’m Kristi… I'm a DIY fanatic remodeling my way through our 1948 fixer upper.More About Kristi Addicted 2 Decorating is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. ```
``` ```
``` addicted2decorating Do you have glass-front storage and/or open shelve Just a quick look at my colorful (but not chaotic I’m nine years into remodeling and decorating ou This is the question I’m asked the most about ou I love taking just a few minutes to myself in the Since we turned a master bedroom into a large, whe Load More... Follow on Instagram Facebook Twitter Instagram Pinterest Youtube Copyright 2007-2022 - Kristi Linauer, LLC. All Rights Reserved. Addicted 2 Decorating is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. Privacy Policy Terms and Conditions ```
``` ```
``` !function(){"use strict";var e=function(e,t){return null==e||e!=e?t:e},t=function(e){var t=e.offsetHeight,n=e.offsetWidth,i=e.getBoundingClientRect(),o=document.body,r=document.documentElement,a=window.pageYOffset||r.scrollTop||o.scrollTop,l=window.pageXOffset||r.scrollLeft||o.scrollLeft,s=r.clientTop||o.clientTop||0,c=r.clientLeft||o.clientLeft||0,u=Math.round(i.top+a-s),d=Math.round(i.left+l-c);return{top:u,left:d,bottom:u+t,right:d+n,width:n,height:t}},n=function(){var e=navigator.userAgent,t=/Tablet|iPad|Playbook|Nook|webOS|Kindle|Android (?!.*Mobile).*Safari/i.test(e);return/Mobi|iP(hone|od)|Opera Mini/i.test(e)&&!t},i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function a(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var d,p,h,f,y,m,g,v,_,b,S=function(e,t,n){void 0===n&&(n=document);var i=function(e){void 0===e&&(e=document);var t=e.querySelectorAll("article");if(0===t.length)return null;var n=Array.from(t).reduce((function(e,t){return t.offsetHeight>e.offsetHeight?t:e}));return n&&n.offsetHeight>1.5*window.innerHeight?n:null}(n),o=i?[i]:[],r=[];e.forEach((function(e){var i,a=Array.from(n.querySelectorAll(e.elementSelector)).slice(0,e.skip);(i=e.elementSelector,i.includes(",")?i.split(","):[i]).forEach((function(i){for(var l=n.querySelectorAll(i),s=function(n){var i=l[n];if(t.map.some((function(e){return e.el.isEqualNode(i)})))return"continue";var s=i&&i.parentElement;s&&s!==document.body?o.push(s):o.push(i),-1===a.indexOf(i)&&r.push({dynamicAd:e,element:i})},c=0;c<l.length;c++)s(c)}))}));var a=function(e){return void 0===e&&(e=document),(e===document?document.body:e).getBoundingClientRect().top}(n),l=r.sort((function(e,t){return e.element.getBoundingClientRect().top-a-(t.element.getBoundingClientRect().top-a)}));return[o,l]},P=function(e){localStorage.removeItem("adthrive_".concat(e.toLowerCase()))},w=function(e,t){try{var n={value:t,created:Date.now()};localStorage.setItem("adthrive_".concat(e.toLowerCase()),JSON.stringify(n))}catch(e){}},A=function(e,t,n){void 0===n&&(n=!1);try{var i=localStorage.getItem("adthrive_".concat(e.toLowerCase()));if(i){var o=JSON.parse(i),r=void 0!==t&&Date.now()-o.created>=t;if(o&&!r)return n&&w(e,o.value),o.value}}catch(e){}return null},E=function(e){return null!=e&&!("number"==typeof e&&isNaN(e))},C=function(e,t,n,i,o){var a;void 0===i&&(i=!0);var l="abgroup",s=A(l,n,i);if(null!==s){var c=s[e];if(E(c))return c}var u=t(),d=r(r({},s),((a={})[e]=u,a));return w(l,d),o&&o(),u};!function(e){e.Prebid="prebid",e.GAM="gam",e.Amazon="amazon",e.WebVitals="webvitals",e.Marmalade="marmalade",e.Floors="floors",e.CMP="cmp"}(d||(d={})),function(e){e.fpvNonLazy="fpvNonLazy",e.lazy="lazy",e.refresh="refresh",e.session="session",e.crossDomain="crossdomain",e.highSequence="highsequence"}(p||(p={})),function(e){e.prebidLoad="prebidLoad",e.amazonLoad="amazonLoad",e.gptLoad="gptLoad"}(h||(h={})),function(e){e.Desktop="desktop",e.Mobile="mobile"}(f||(f={})),function(e){e.Video_Collapse_Autoplay_SoundOff="Video_Collapse_Autoplay_SoundOff",e.Video_Individual_Autoplay_SOff="Video_Individual_Autoplay_SOff",e.Video_Coll_SOff_Smartphone="Video_Coll_SOff_Smartphone",e.Video_In_Post_ClicktoPlay_SoundOn="Video_In-Post_ClicktoPlay_SoundOn"}(y||(y={})),function(e){e.None="none"}(m||(m={})),function(e){e.WEIGHTEDCHOICE="weightedChoice",e.BERNOULLITRIAL="bernoulliTrial"}(g||(g={})),function(e){e.INTEGER="integer",e.FLOAT="float",e.BOOLEAN="boolean",e.STRING="string"}(v||(v={})),function(e){e.DESKTOP="desktop",e.MOBILE="mobile",e.ALL="all"}(_||(_={})),function(e){e.AdDensity="addensity",e.FooterCloseButton="footerclose",e.Interstitial="interstitial",e.RemoveVideoTitleWrapper="removevideotitlewrapper",e.StickyOutstream="stickyoutstream",e.StickyOutstreamOnStickyPlayer="sospp",e.VideoAdvancePlaylistRelatedPlayer="videoadvanceplaylistrp",e.MobileStickyPlayerPosition="mspp"}(b||(b={}));var D=function(e,t,n){switch(t){case b.AdDensity:return function(e,t){var n=e.adDensityEnabled,i=e.adDensityLayout.pageOverrides.find((function(e){return!!document.querySelector(e.pageSelector)&&(e[t].onePerViewport||"number"==typeof e[t].adDensity)}));return!n||!i}(e,n);case b.StickyOutstream:return function(e){var t,n,i,o=null===(i=null===(n=null===(t=e.videoPlayers)||void 0===t?void 0:t.partners)||void 0===n?void 0:n.stickyOutstream)||void 0===i?void 0:i.blockedPageSelectors;return!o||!document.querySelector(o)}(e);case b.Interstitial:return function(e){var t=e.adOptions.interstitialBlockedPageSelectors||e.adOptions.mobileInterstitialBlockedPageSelectors;return!t||!document.querySelector(t)}(e);default:return!0}},O=function(){try{return Math.round(window.performance.now())}catch(e){return 0}},x=function(e){try{return{valid:!0,elements:document.querySelectorAll(e)}}catch(e){return r({valid:!1},e)}},M=function(e){return""===e?{valid:!0}:x(e)},k=function(){function e(){}return e.prototype.info=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.call.apply(this,u([console.info,e,t],c(n),!1))},e.prototype.warn=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.call.apply(this,u([console.warn,e,t],c(n),!1))},e.prototype.error=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.call.apply(this,u([console.error,e,t],c(n),!1)),this.sendErrorLogToCommandQueue.apply(this,u([e,t],c(n),!1))},e.prototype.event=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.info(e,t)},e.prototype.sendErrorLogToCommandQueue=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push(function(){void 0!==window.adthrive.logError&&"function"==typeof window.adthrive.logError&&window.adthrive.logError(e,t,n)}.bind(e,t,n))},e.prototype.call=function(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r=["%c".concat(t,"::").concat(n," ")],a=["color: #999; font-weight: bold;"];i.length>0&&"string"==typeof i[0]&&r.push(i.shift()),a.push.apply(a,u([],c(i),!1));try{Function.prototype.apply.call(e,console,u([r.join("")],c(a),!1))}catch(e){return void console.error(e)}},e}(),I=new k,j=function(e,t){if(!e)return!1;var n=!!e.enabled,i=null==e.dateStart||Date.now()>=e.dateStart,o=null==e.dateEnd||Date.now()<=e.dateEnd,r=null===e.selector||""!==e.selector&&!!document.querySelector(e.selector),a="mobile"===e.platform&&"mobile"===t,l="desktop"===e.platform&&"desktop"===t,s=null===e.platform||"all"===e.platform||a||l,c="bernoulliTrial"===e.experimentType?1===e.variants.length:function(e){var t=e.reduce((function(e,t){return t.weight?t.weight+e:e}),0);return e.length>0&&e.every((function(e){var t=e.value,n=e.weight;return!(null==t||"number"==typeof t&&isNaN(t)||!n)}))&&100===t}(e.variants);return c||I.error("ValidateSiteExperiment","util","experiment presented invalid choices for key:",e.key,e.variants),n&&i&&o&&r&&s&&c},L=["siteId","siteName","adOptions","breakpoints","adUnits"],R=function(){function e(){this._clsGlobalData=window.adthriveCLS}return Object.defineProperty(e.prototype,"enabled",{get:function(){return!!this._clsGlobalData&&!!this._clsGlobalData.siteAds&&function(e,t){if(void 0===t&&(t=L),!e)return!1;for(var n=0;n<t.length;n++)if(!e[t[n]])return!1;return!0}(this._clsGlobalData.siteAds)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return!(!this._clsGlobalData||!this._clsGlobalData.error)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"siteAds",{get:function(){return this._clsGlobalData.siteAds},set:function(e){this._clsGlobalData.siteAds=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disableAds",{get:function(){return this._clsGlobalData.disableAds},set:function(e){this._clsGlobalData.disableAds=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabledLocations",{get:function(){return this._clsGlobalData.enabledLocations},set:function(e){this._clsGlobalData.enabledLocations=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"injectedFromPlugin",{get:function(){return this._clsGlobalData.injectedFromPlugin},set:function(e){this._clsGlobalData.injectedFromPlugin=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"injectedFromSiteAds",{get:function(){return this._clsGlobalData.injectedFromSiteAds},set:function(e){this._clsGlobalData.injectedFromSiteAds=e},enumerable:!1,configurable:!0}),e.prototype.overwriteInjectedSlots=function(e){this._clsGlobalData.injectedSlots=e},e.prototype.setInjectedSlots=function(e){this._clsGlobalData.injectedSlots=this._clsGlobalData.injectedSlots||[],this._clsGlobalData.injectedSlots.push(e)},Object.defineProperty(e.prototype,"injectedSlots",{get:function(){return this._clsGlobalData.injectedSlots},enumerable:!1,configurable:!0}),e.prototype.setInjectedVideoSlots=function(e){this._clsGlobalData.injectedVideoSlots=this._clsGlobalData.injectedVideoSlots||[],this._clsGlobalData.injectedVideoSlots.push(e)},Object.defineProperty(e.prototype,"injectedVideoSlots",{get:function(){return this._clsGlobalData.injectedVideoSlots},enumerable:!1,configurable:!0}),e.prototype.setInjectedScripts=function(e){this._clsGlobalData.injectedScripts=this._clsGlobalData.injectedScripts||[],this._clsGlobalData.injectedScripts.push(e)},Object.defineProperty(e.prototype,"getInjectedScripts",{get:function(){return this._clsGlobalData.injectedScripts},enumerable:!1,configurable:!0}),e.prototype.setExperiment=function(e,t,n){void 0===n&&(n=!1),this._clsGlobalData.experiments=this._clsGlobalData.experiments||{},this._clsGlobalData.siteExperiments=this._clsGlobalData.siteExperiments||{},(n?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments)[e]=t},e.prototype.getExperiment=function(e,t){void 0===t&&(t=!1);var n=t?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments;return n&&n[e]},e.prototype.setWeightedChoiceExperiment=function(e,t,n){void 0===n&&(n=!1),this._clsGlobalData.experimentsWeightedChoice=this._clsGlobalData.experimentsWeightedChoice||{},this._clsGlobalData.siteExperimentsWeightedChoice=this._clsGlobalData.siteExperimentsWeightedChoice||{},(n?this._clsGlobalData.siteExperimentsWeightedChoice:this._clsGlobalData.experimentsWeightedChoice)[e]=t},e.prototype.getWeightedChoiceExperiment=function(e,t){var n,i;void 0===t&&(t=!1);var o=t?null===(n=this._clsGlobalData)||void 0===n?void 0:n.siteExperimentsWeightedChoice:null===(i=this._clsGlobalData)||void 0===i?void 0:i.experimentsWeightedChoice;return o&&o[e]},Object.defineProperty(e.prototype,"branch",{get:function(){return this._clsGlobalData.branch},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this._clsGlobalData.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoDisabledFromPlugin",{get:function(){return this._clsGlobalData.videoDisabledFromPlugin},set:function(e){this._clsGlobalData.videoDisabledFromPlugin=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetDensityLog",{get:function(){return this._clsGlobalData.targetDensityLog},set:function(e){this._clsGlobalData.targetDensityLog=e},enumerable:!1,configurable:!0}),e}(),T=function(){function e(){}return e.getScrollTop=function(){return(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0)},e.shufflePlaylist=function(e){for(var t,n,i=e.length;0!==i;)n=Math.floor(Math.random()*e.length),t=e[i-=1],e[i]=e[n],e[n]=t;return e},e.isMobileLandscape=function(){return window.matchMedia("(orientation: landscape) and (max-height: 480px)").matches},e.playerViewable=function(e){var t=e.getBoundingClientRect();return this.isMobileLandscape()?window.innerHeight>t.top+t.height/2&&t.top+t.height/2>0:window.innerHeight>t.top+t.height/2},e.playerVisible=function(e){var t=e.getBoundingClientRect();return window.innerHeight>t.top},e.createQueryString=function(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&")},e.createEncodedQueryString=function(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e[t]))})).join("&")},e.setMobileLocation=function(e){return"top-left"===(e=e||"bottom-right")?e="adthrive-collapse-top-left":"top-right"===e?e="adthrive-collapse-top-right":"bottom-left"===e?e="adthrive-collapse-bottom-left":"bottom-right"===e?e="adthrive-collapse-bottom-right":"top-center"===e&&(e=n()?"adthrive-collapse-top-center":"adthrive-collapse-bottom-right"),e},e}(),G=function(t){this._clsOptions=t,this.removeVideoTitleWrapper=e(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);var n=this._clsOptions.siteAds.videoPlayers;this.footerSelector=e(n&&n.footerSelector,""),this.players=e(n&&n.players.map((function(e){return e.mobileLocation=T.setMobileLocation(e.mobileLocation),e})),[]),this.contextualSettings=n&&n.contextual},V=function(e){this.mobileStickyPlayerOnPage=!1,this.playlistPlayerAdded=!1,this.contextualPlayerAdded=!1,this.footerSelector="",this.removeVideoTitleWrapper=!1,this.videoAdOptions=new G(e),this.players=this.videoAdOptions.players,this.contextualSettings=this.videoAdOptions.contextualSettings,this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper,this.footerSelector=this.videoAdOptions.footerSelector},N=function(){},H=function(e){function t(t){var n=e.call(this)||this;return n._probability=t,n}return o(t,e),t.prototype.get=function(){if(this._probability<0||this._probability>1)throw new Error("Invalid probability");return Math.random()<this._probability},t}(N),W=function(){function e(){this._clsOptions=new R,this.shouldUseCoreExperimentsConfig=!1}return e.prototype.setExperimentKey=function(e){void 0===e&&(e=!1),this._clsOptions.setExperiment(this.key,this.result,e)},e}(),B=function(e){function t(){var t=e.call(this)||this;return t._result=!1,t._choices=[{choice:!0},{choice:!1}],t.key="smhd100",t._result=t.run(),t.setExperimentKey(),t}return o(t,e),Object.defineProperty(t.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),t.prototype.run=function(){return new H(.1).get()},t}(W),z=[[728,90],[300,250],[300,600],[320,50],[970,250],[160,600],[300,1050],[336,280],[970,90],[300,50],[320,100],[468,60],[250,250],[120,240],[1,1],[300,300],[552,334],[300,420],[728,250],[320,300],[300,390]],F=new Map([["Footer",1],["Header",2],["Sidebar",3],["Content",4],["Recipe",5],["Sidebar_sticky",6],["Below Post",7]]),q=function(t,n){var i=new B;return n.filter((function(e){return void 0!==e.dynamic&&e.dynamic.enabled})).map((function(n){var o,r=n.location.replace(/\s+/g,"_");return{auctionPriority:F.get(r)||8,location:r,sequence:e(n.sequence,1),sizes:(o=n.adSizes,z.filter((function(e){var t=c(e,2),n=t[0],i=t[1];return o.some((function(e){var t=c(e,2),o=t[0],r=t[1];return n===o&&i===r}))}))).filter((function(e){return function(e,t,n,i){var o=c(t,2),r=o[0],a=o[1];return!("Footer"===e&&"phone"===n&&320===r&&100===a||"Header"===e&&a>100&&i.result)}(n.location,e,t,i)})),devices:n.devices,pageSelector:e(n.dynamic.pageSelector,"").trim(),elementSelector:e(n.dynamic.elementSelector,"").trim(),position:e(n.dynamic.position,"beforebegin"),max:Math.floor(e(n.dynamic.max,0)),spacing:e(n.dynamic.spacing,0),skip:Math.floor(e(n.dynamic.skip,0)),every:Math.max(Math.floor(e(n.dynamic.every,1)),1),classNames:n.dynamic.classNames||[],sticky:"Footer"===n.location||n.sticky,stickyOverlapSelector:e(n.stickyOverlapSelector,"").trim(),autosize:n.autosize,special:e(n.targeting,[]).filter((function(e){return"special"===e.key})).reduce((function(e,t){return e.concat.apply(e,u([],c(t.value),!1))}),[]),lazy:e(n.dynamic.lazy,!1),lazyMax:e(n.dynamic.lazyMax,2),lazyMaxDefaulted:0!==n.dynamic.lazyMax&&!n.dynamic.lazyMax}}))},U=function(e,t){var n=function(e){var t=e.clientWidth;if(getComputedStyle){var n=getComputedStyle(e,null);t-=parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0")}return t}(t),i=e.sticky&&"Sidebar"===e.location;return e.sizes.filter((function(t){var o=!e.autosize||(t[0]<=n||t[0]<=320),r=!i||t[1]<=window.innerHeight-100;return o&&r}))},J=function(e){this.clsOptions=e,this.enabledLocations=["Below_Post","Content","Recipe","Sidebar"]};var K,Q=function(e){return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('\n .adthrive-device-phone .adthrive-sticky-content {\n height: 450px !important;\n margin-bottom: 100px !important;\n }\n .adthrive-content.adthrive-sticky {\n position: -webkit-sticky;\n position: sticky !important;\n top: 42px !important;\n margin-top: 42px !important;\n }\n .adthrive-content.adthrive-sticky:after {\n content: "— Advertisement. Scroll down to continue. —";\n font-size: 10pt;\n margin-top: 5px;\n margin-bottom: 5px;\n display:block;\n color: #888;\n }\n body.single .adthrive-content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n min-height:'.concat(e||400,"px !important;\n margin: 10px 0 10px 0;\n background-color: #FAFAFA;\n padding-bottom:0px;\n }\n body.single .adthrive-content > div {\n flex-basis: unset;\n position: sticky !important;\n display: block;\n flex-direction: column;\n top: 5px;\n }\n "))},Y=function(e){function t(t,n){void 0===t&&(t=[]);var i=e.call(this)||this;return i._choices=t,i._default=n,i}return o(t,e),t.fromArray=function(e,n){return new t(e.map((function(e){var t=c(e,2);return{choice:t[0],weight:t[1]}})),n)},t.prototype.addChoice=function(e,t){this._choices.push({choice:e,weight:t})},t.prototype.get=function(){var e,t,n,i,o=(n=0,i=100,Math.random()*(i-n)+n),r=0;try{for(var a=s(this._choices),l=a.next();!l.done;l=a.next()){var c=l.value,u=c.choice;if((r+=c.weight)>=o)return u}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this._default},Object.defineProperty(t.prototype,"totalWeight",{get:function(){return this._choices.reduce((function(e,t){return e+t.weight}),0)},enumerable:!1,configurable:!0}),t}(N),X=function(e){return function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(e).toString(16)},Z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._resultValidator=function(){return!0},t}return o(t,e),t.prototype._isValidResult=function(t){var n=this;return e.prototype._isValidResult.call(this,t,(function(){return n._resultValidator(t)||"control"===t}))},t.prototype.run=function(){if(!this.enabled)return I.error("CLSWeightedChoiceSiteExperiment","run","() => %o","No experiment config found. Defaulting to control."),"control";if(!this._mappedChoices||0===this._mappedChoices.length)return I.error("CLSWeightedChoiceSiteExperiment","run","() => %o","No experiment variants found. Defaulting to control."),"control";var e=new Y(this._mappedChoices).get();return this._isValidResult(e)?e:(I.error("CLSWeightedChoiceSiteExperiment","run","() => %o","Invalid result from experiment choices. Defaulting to control."),"control")},t}(function(){function e(){}return Object.defineProperty(e.prototype,"enabled",{get:function(){return void 0!==this.experimentConfig},enumerable:!1,configurable:!0}),e.prototype._isValidResult=function(e,t){return void 0===t&&(t=function(){return!0}),t()&&E(e)},e}()),\$=function(){function e(e){var t,i,o=this;this.siteExperiments=[],this._clsOptions=e,this._device=n()?"mobile":"desktop",this.siteExperiments=null!==(i=null===(t=this._clsOptions.siteAds.siteExperiments)||void 0===t?void 0:t.filter((function(e){var t=e.key,n=j(e,o._device),i=D(o._clsOptions.siteAds,t,o._device);return n&&i})))&&void 0!==i?i:[]}return e.prototype.getSiteExperimentByKey=function(e){return this.siteExperiments.filter((function(t){return t.key.toLowerCase()===e.toLowerCase()}))[0]},e}(),ee=function(e){function t(t){var n=e.call(this)||this;return n._choices=[],n._mappedChoices=[],n._result="control",n._resultValidator=function(e){return"number"==typeof e},n.key=b.AdDensity,n._clsSiteExperiments=new \$(t),n.experimentConfig=n._clsSiteExperiments.getSiteExperimentByKey(n.key),n.enabled&&n.experimentConfig&&(n._choices=n.experimentConfig.variants,n._mappedChoices=n._mapChoices(),n._result=n.run(),t.setWeightedChoiceExperiment(n.key,n._result,!0)),n}return o(t,e),Object.defineProperty(t.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),t.prototype.run=function(){if(!this.enabled)return I.error("CLSAdDensitySiteExperiment","run","() => %o","No experiment config found. Defaulting to control."),"control";var e=new Y(this._mappedChoices).get();return this._isValidResult(e)?e:(I.error("CLSAdDensitySiteExperiment","run","() => %o","Invalid result from experiment choices. Defaulting to control."),"control")},t.prototype._mapChoices=function(){return this._choices.map((function(e){var t=e.weight,n=e.value;return{weight:t,choice:"number"==typeof n?(n||0)/100:"control"}}))},a([function(e,t,n){var i=n.value;i&&(n.value=function(){for(var e,t=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=Array.isArray(this._choices)?X(JSON.stringify(this._choices)):null,a=this.key?this.key.toLowerCase():"",l=r?"".concat(a,"_").concat(r):a,s=this.sessionStoragePrefix?"".concat(this.sessionStoragePrefix,"-").concat(l):l;return!1===(null===(e=A("branch"))||void 0===e?void 0:e.enabled)&&P(s),C(s,(function(){return i.apply(t,n)}),864e5)})},l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"run",null),t}(Z),te=function(e,t,n,i,o,r){var a=Math.round(r-o),l=[],s=[];l.push("(",n.map((function(){return"%o"})).join(", "),")"),s.push.apply(s,u([],c(n),!1)),void 0!==i&&(l.push(" => %o"),s.push(i)),l.push(" %c(".concat(a,"ms)")),s.push("color: #999;")},ne=function(e,t,n){var i=void 0!==n.get?n.get:n.value;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{var r=O(),a=i.apply(this,n);if(a instanceof Promise)return a.then((function(e){var t=O();return te(0,0,n,e,r,t),Promise.resolve(e)})).catch((function(n){throw n.logged||(I.error(e,t,n),n.logged=!0),n}));var l=O();return te(0,0,n,a,r,l),a}catch(n){throw n.logged||(I.error(e,t,n),n.logged=!0),n}}},ie=function(e){function t(){var t=e.call(this)||this;return t._result=!1,t.key="scae",t._choices=[{choice:!0},{choice:!1}],t.weight=.99,t._result=t.run(),t.setExperimentKey(),t}var n,i;return o(t,e),Object.defineProperty(t.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),t.prototype.run=function(){return new H(this.weight).get()},t=a([(n="StickyContainerAdsExperiment",void 0===i&&(i=!1),function(e){var t,o,a=Object.getOwnPropertyNames(e.prototype).filter((function(e){return i||0!==e.indexOf("_")})).map((function(t){return[t,Object.getOwnPropertyDescriptor(e.prototype,t)]}));try{for(var l=s(a),u=l.next();!u.done;u=l.next()){var d=c(u.value,2),p=d[0],h=d[1];void 0!==h&&"function"==typeof h.value?e.prototype[p]=ne(n,p,h):void 0!==h&&void 0!==h.get&&"function"==typeof h.get&&Object.defineProperty(e.prototype,p,r(r({},h),{get:ne(n,p,h)}))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(t)throw t.error}}}),l("design:paramtypes",[])],t)}(W),oe="250px",re=function(){function n(e,t){this._clsOptions=e,this._adInjectionMap=t,this._recipeCount=0,this._mainContentHeight=0,this._mainContentDiv=null,this._totalAvailableElements=[],this._minDivHeight=250,this._densityDevice=f.Desktop,this._pubLog={onePerViewport:!1,targetDensity:0,targetDensityUnits:0,combinedMax:0},this._densityMax=.99,this._smallerIncrementAttempts=0,this._absoluteMinimumSpacingByDevice=250,this._usedAbsoluteMinimum=!1,this._infPageEndOffset=0,this.locationMaxLazySequence=new Map([["Recipe",5]]),this.locationToMinHeight={Below_Post:oe,Content:oe,Recipe:oe,Sidebar:oe};var n=this._clsOptions.siteAds.breakpoints,i=n.tablet,o=n.desktop;this._device=function(e,t){var n=window.innerWidth;return n>=t?"desktop":n>=e?"tablet":"phone"}(i,o),this._config=new J(e),this._clsOptions.enabledLocations=this._config.enabledLocations,this._clsAdDensitySiteExperiment=this._clsOptions.siteAds.siteExperiments?new ee(this._clsOptions):null}return n.prototype.start=function(){var e,t,n,i,o=this;try{!function(e){var t=document.body,n="adthrive-device-".concat(e);if(!t.classList.contains(n))try{t.classList.add(n)}catch(e){I.error("BodyDeviceClassComponent","init",{message:e.message});var i="classList"in document.createElement("_");I.error("BodyDeviceClassComponent","init.support",{support:i})}}(this._device);var r=q(this._device,this._clsOptions.siteAds.adUnits).filter((function(e){return o._locationEnabled(e)})).filter((function(e){return t=e,n=o._device,t.devices.includes(n);var t,n})).filter((function(e){return 0===(t=e).pageSelector.length||null!==document.querySelector(t.pageSelector);var t})),a=this.inject(r),l=new ie;(null===(t=null===(e=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||void 0===e?void 0:e.content)||void 0===t?void 0:t.enabled)&&l.result&&Q(null===(i=null===(n=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||void 0===n?void 0:n.content)||void 0===i?void 0:i.minHeight),a.forEach((function(e){return o._clsOptions.setInjectedSlots(e)}))}catch(e){I.error("ClsDynamicAdsInjector","start",e)}},n.prototype.inject=function(t,n){void 0===n&&(n=document),this._densityDevice="desktop"===this._device?f.Desktop:f.Mobile,this._overrideDefaultAdDensitySettingsWithSiteExperiment();var i=this._clsOptions.siteAds,o=e(i.adDensityEnabled,!0),r=i.adDensityLayout&&o,a=t.filter((function(e){return r?"Content"!==e.location:e})),l=t.filter((function(e){return r?"Content"===e.location:null}));return u(u([],c(a.length?this._injectNonDensitySlots(a,n):[]),!1),c(l.length?this._injectDensitySlots(l,n):[]),!1)},n.prototype._injectNonDensitySlots=function(e,n){var i,o,r=this;void 0===n&&(n=document);var a=[],l=[];try{for(var d=s(e),p=d.next();!p.done;p=d.next()){var h=p.value,f=0,y=0,m=0;h.spacing>0&&(f=window.innerHeight*h.spacing,y=f);var g=this._repeatDynamicAds(h),v=this.getElements(h.elementSelector,n);h.skip;for(var _=function(e){if(m+1>g.length)return"break";var i=v[e];if(f>0){var o=t(i).bottom;if(o<=y)return"continue";y=o+f}var r=g[m],s="".concat(r.location,"_").concat(r.sequence);a.some((function(e){return e.name===s}))&&(m+=1);var d=b.getDynamicElementId(r),p="adthrive-".concat(h.location.replace("_","-").toLowerCase()),_=u([p,"".concat(p,"-").concat(h.sequence)],c(h.classNames),!1),S=b.addAd(i,d,h.position,_);if(S){var P=U(r,S);if(P.length){var w={clsDynamicAd:h,dynamicAd:r,element:S,sizes:P,name:s,infinite:n!==document};a.push(w),l.push({location:r.location,element:S}),"Recipe"===h.location&&++b._recipeCount,m+=1}i=S}},b=this,S=h.skip;S<v.length;S+=h.every){if("break"===_(S))break}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return l.forEach((function(e){var t=e.location;e.element.style.minHeight=r.locationToMinHeight[t]})),a},n.prototype._injectDensitySlots=function(e,t){void 0===t&&(t=document);try{this._calculateMainContentHeightAndAllElements(e,t)}catch(e){return[]}var n=this._getDensitySettings(e,t),i=n.onePerViewport,o=n.targetAll,r=n.targetDensityUnits,a=n.combinedMax,l=n.numberOfUnits;return this._absoluteMinimumSpacingByDevice=i?window.innerHeight:this._absoluteMinimumSpacingByDevice,l?(this._adInjectionMap.filterUsed(),this._findElementsForAds(l,i,o,a,r,t),this._insertAds()):[]},n.prototype._overrideDefaultAdDensitySettingsWithSiteExperiment=function(){var e;if(null===(e=this._clsAdDensitySiteExperiment)||void 0===e?void 0:e.enabled){var t=this._clsAdDensitySiteExperiment.result;"number"==typeof t&&(this._clsOptions.siteAds.adDensityEnabled=!0,this._clsOptions.siteAds.adDensityLayout[this._densityDevice].adDensity=t)}},n.prototype._getDensitySettings=function(e,t){void 0===t&&(t=document);var n=this._clsOptions.siteAds.adDensityLayout,i=this._determineOverrides(n.pageOverrides),o=i.length?i[0]:n[this._densityDevice],r=o.adDensity,a=o.onePerViewport,l=this._shouldTargetAllEligible(r),s=this._getTargetDensityUnits(r,l),d=this._getCombinedMax(e,t),p=Math.min.apply(Math,u([],c(u([this._totalAvailableElements.length,s],c(d>0?[d]:[]),!1)),!1));return this._pubLog={onePerViewport:a,targetDensity:r,targetDensityUnits:s,combinedMax:d},{onePerViewport:a,targetAll:l,targetDensityUnits:s,combinedMax:d,numberOfUnits:p}},n.prototype._determineOverrides=function(e){var t=this;return e.filter((function(e){var t=M(e.pageSelector);return""===e.pageSelector||t.elements&&t.elements.length})).map((function(e){return e[t._densityDevice]}))},n.prototype._shouldTargetAllEligible=function(e){return e===this._densityMax},n.prototype._getTargetDensityUnits=function(e,t){return t?this._totalAvailableElements.length:Math.floor(e*this._mainContentHeight/(1-e)/this._minDivHeight)-this._recipeCount},n.prototype._getCombinedMax=function(t,n){return void 0===n&&(n=document),e(t.filter((function(e){var t;try{t=n.querySelector(e.elementSelector)}catch(e){}return t})).map((function(e){return Number(e.max)+Number(e.lazyMaxDefaulted?0:e.lazyMax)})).sort((function(e,t){return t-e}))[0],0)},n.prototype._elementLargerThanMainContent=function(e){return e.offsetHeight>=this._mainContentHeight&&this._totalAvailableElements.length>1},n.prototype._elementDisplayNone=function(e){var t=window.getComputedStyle(e,null).display;return t&&"none"===t||"none"===e.style.display},n.prototype._isBelowMaxes=function(e,t){return this._adInjectionMap.map.length<e&&this._adInjectionMap.map.length<t},n.prototype._findElementsForAds=function(e,t,n,i,o,r){var a=this;void 0===r&&(r=document),this._clsOptions.targetDensityLog={onePerViewport:t,combinedMax:i,targetDensityUnits:o,targetDensityPercentage:this._pubLog.targetDensity,mainContentHeight:this._mainContentHeight,recipeCount:this._recipeCount,numberOfEls:this._totalAvailableElements.length};var l=function(e){var t,c;try{for(var u=s(a._totalAvailableElements),d=u.next();!d.done;d=u.next()){var p=d.value,h=p.dynamicAd,f=p.element;if(a._logDensityInfo(f,h.elementSelector,e),!(!n&&a._elementLargerThanMainContent(f)||a._elementDisplayNone(f))){if(!a._isBelowMaxes(i,o))break;a._checkElementSpacing({dynamicAd:h,element:f,insertEvery:e,targetAll:n,target:r})}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(t)throw t.error}}!a._usedAbsoluteMinimum&&a._smallerIncrementAttempts<5&&(++a._smallerIncrementAttempts,l(a._getSmallerIncrement(e)))},c=this._getInsertEvery(e,t,o);l(c)},n.prototype._getSmallerIncrement=function(e){var t=.6*e;return t<=this._absoluteMinimumSpacingByDevice&&(t=this._absoluteMinimumSpacingByDevice,this._usedAbsoluteMinimum=!0),t},n.prototype._insertAds=function(){var e=this,t=[];return this._adInjectionMap.filterUsed(),this._adInjectionMap.map.forEach((function(n,i){var o=n.el,r=n.dynamicAd,a=n.target,l=Number(r.sequence)+i,s=r.max,c=r.lazy&&l>s;r.sequence=l,r.lazy=c;var u=e._addContentAd(o,r,a);u&&(r.used=!0,t.push(u))})),t},n.prototype._getInsertEvery=function(e,t,n){var i=this._absoluteMinimumSpacingByDevice;return this._moreAvailableElementsThanUnitsToInject(n,e)?(this._usedAbsoluteMinimum=!1,i=this._useWiderSpacing(n,e)):(this._usedAbsoluteMinimum=!0,i=this._useSmallestSpacing(t)),t&&window.innerHeight>i?window.innerHeight:i},n.prototype._useWiderSpacing=function(e,t){return this._mainContentHeight/Math.min(e,t)},n.prototype._useSmallestSpacing=function(e){return e&&window.innerHeight>this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice},n.prototype._moreAvailableElementsThanUnitsToInject=function(e,t){return this._totalAvailableElements.length>e||this._totalAvailableElements.length>t},n.prototype._logDensityInfo=function(e,t,n){var i=this._pubLog;i.onePerViewport,i.targetDensity;i.targetDensityUnits;i.combinedMax,this._totalAvailableElements.length},n.prototype._checkElementSpacing=function(e){var t=e.dynamicAd,n=e.element,i=e.insertEvery,o=e.targetAll,a=e.target,l=void 0===a?document:a;(this._isFirstAdInjected()||this._hasProperSpacing(n,t,o,i))&&this._markSpotForContentAd(n,r({},t),l)},n.prototype._isFirstAdInjected=function(){return!this._adInjectionMap.map.length},n.prototype._markSpotForContentAd=function(e,t,n){void 0===n&&(n=document);var i="beforebegin"===t.position||"afterbegin"===t.position;this._adInjectionMap.add(e,this._getElementCoords(e,i),t,n),this._adInjectionMap.sort()},n.prototype._hasProperSpacing=function(e,t,n,i){var o="beforebegin"===t.position||"afterbegin"===t.position,r="beforeend"===t.position||"afterbegin"===t.position,a=n||this._isElementFarEnoughFromOtherAdElements(e,i,o),l=r||this._isElementNotInRow(e,o),s=-1===e.id.indexOf("AdThrive_".concat("Below_Post"));return a&&l&&s},n.prototype._isElementFarEnoughFromOtherAdElements=function(e,t,n){for(var i=this._getElementCoords(e,n),o=!1,r=0;r<this._adInjectionMap.map.length;r++){var a=this._adInjectionMap.map[r].coords,l=this._adInjectionMap.map[r+1]&&this._adInjectionMap.map[r+1].coords;if(o=i-t>a&&(!l||i+t<l))break}return o},n.prototype._isElementNotInRow=function(e,t){var n=e.previousElementSibling,i=e.nextElementSibling,o=t?!n&&i||n&&e.tagName!==n.tagName?i:n:i;return!(!o||0!==e.getBoundingClientRect().height)||(!o||e.getBoundingClientRect().top!==o.getBoundingClientRect().top)},n.prototype._calculateMainContentHeightAndAllElements=function(e,t){void 0===t&&(t=document);var n=c(function(e,t,n){void 0===n&&(n=document);var i=c(S(e,t,n),2),o=i[0],r=i[1];if(0===o.length)throw Error("No Main Content Elements Found");return[Array.from(o).reduce((function(e,t){return t.offsetHeight>e.offsetHeight?t:e}))||document.body,r]}(e,this._adInjectionMap,t),2),i=n[0],o=n[1];this._mainContentDiv=i,this._totalAvailableElements=o,this._mainContentHeight=function(e,t){void 0===t&&(t="div #comments, section .comments");var n=e.querySelector(t);return n?e.offsetHeight-n.offsetHeight:e.offsetHeight}(this._mainContentDiv)},n.prototype._getElementCoords=function(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return(t?n.top:n.bottom)+window.scrollY},n.prototype._addContentAd=function(e,t,n){void 0===n&&(n=document);var i=null,o="adthrive-".concat(t.location.replace("_","-").toLowerCase()),r="".concat(o,"-").concat(t.sequence),a=this.addAd(e,this.getDynamicElementId(t),t.position,u([o,r],c(t.classNames),!1));if(a){var l=U(t,a);if(l.length)a.style.minHeight=this.locationToMinHeight[t.location],i={clsDynamicAd:t,dynamicAd:t,element:a,sizes:l,name:"".concat(t.location,"_").concat(t.sequence),infinite:n!==document}}return i},n.prototype.getDynamicElementId=function(e){return"".concat("AdThrive","_").concat(e.location,"_").concat(e.sequence,"_").concat(this._device)},n.prototype.getElements=function(e,t){return void 0===t&&(t=document),t.querySelectorAll(e)},n.prototype.addAd=function(e,t,n,i){if(void 0===i&&(i=[]),!document.getElementById(t)){var o='<div id="'.concat(t,'" class="adthrive-ad ').concat(i.join(" "),'"></div>');e.insertAdjacentHTML(n,o)}return document.getElementById(t)},n.prototype._repeatDynamicAds=function(t){for(var n=[],i=t.lazy?e(this.locationMaxLazySequence.get(t.location),0):0,o=t.max,a=t.lazyMax,l=0===i&&t.lazy?o+a:Math.min(Math.max(i-t.sequence+1,0),o+a),s=Math.max(o,l),c=0;c<s;c++){var u=Number(t.sequence)+c,d=t.lazy&&c>=o;n.push(r(r({},t),{sequence:u,lazy:d}))}return n},n.prototype._locationEnabled=function(e){var t=this._clsOptions.enabledLocations.includes(e.location),n=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains("adthrive-disable-all"),i=!document.body.classList.contains("adthrive-disable-content")&&!this._clsOptions.disableAds.reasons.has("content_plugin");return t&&!n&&i},n}(),ae=function(e){function t(t,n){var i=e.call(this,t,"ClsVideoInsertion")||this;return i._videoConfig=t,i._clsOptions=n,i._IN_POST_SELECTOR=".adthrive-video-player",i._WRAPPER_BAR_HEIGHT=36,i._playersAddedFromPlugin=[],i}return o(t,e),t.prototype.init=function(){this._initializePlayers()},t.prototype._wrapJWPlayerWithCLS=function(e,t,n){if(void 0===n&&(n=0),e.parentNode){var i=e.offsetWidth*(9/16),o=this._createGenericCLSWrapper(i,t,n);return e.parentNode.insertBefore(o,e),o.appendChild(e),o}return null},t.prototype._createGenericCLSWrapper=function(e,t,n){var i=document.createElement("div");return i.id="cls-video-container-".concat(t),i.className="adthrive",i.style.minHeight="".concat(e+n,"px"),i},t.prototype._getTitleHeight=function(e){e.innerText="Title",e.style.visibility="hidden",document.body.appendChild(e);var t=window.getComputedStyle(e),n=parseInt(t.height,10),i=parseInt(t.marginTop,10),o=parseInt(t.marginBottom,10);return document.body.removeChild(e),Math.min(n+o+i,50)},t.prototype._initializePlayers=function(){var e=document.querySelectorAll(this._IN_POST_SELECTOR);e.length&&this._initializeRelatedPlayers(e),this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()},t.prototype._createStationaryRelatedPlayer=function(e,t){var n="mobile"===this._device?[400,225]:[640,360],i=y.Video_In_Post_ClicktoPlay_SoundOn;if(t&&e.mediaId){var o=this._wrapJWPlayerWithCLS(t,e.mediaId);this._playersAddedFromPlugin.push(e.mediaId),o&&this._clsOptions.setInjectedVideoSlots({playerId:e.playerId,playerName:i,playerSize:n,element:o,type:"stationaryRelated"})}},t.prototype._createStickyRelatedPlayer=function(e,t){var n="mobile"===this._device?[400,225]:[640,360],i=y.Video_Individual_Autoplay_SOff;if(this._stickyRelatedOnPage=!0,this._videoConfig.mobileStickyPlayerOnPage="mobile"===this._device,t&&e.position&&e.mediaId){var o=document.createElement("div");t.insertAdjacentElement(e.position,o);var r=document.createElement("h3");r.style.margin="10px 0";var a=this._getTitleHeight(r),l=this._wrapJWPlayerWithCLS(o,e.mediaId,this._WRAPPER_BAR_HEIGHT+a);this._playersAddedFromPlugin.push(e.mediaId),l&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:n,playerName:i,element:o,type:"stickyRelated"})}},t.prototype._createPlaylistPlayer=function(e,t){var n=e.playlistId,i="mobile"===this._device?y.Video_Coll_SOff_Smartphone:y.Video_Collapse_Autoplay_SoundOff,o="mobile"===this._device?[400,225]:[640,360];this._videoConfig.mobileStickyPlayerOnPage=!0;var r=document.createElement("div");t.insertAdjacentElement(e.position,r);var a=this._wrapJWPlayerWithCLS(r,n,this._WRAPPER_BAR_HEIGHT);this._playersAddedFromPlugin.push("playlist-".concat(n)),a&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:o,playerName:i,element:r,type:"stickyPlaylist"})},t.prototype._isVideoAllowedOnPage=function(){var e=this._clsOptions.disableAds;if(e&&e.video){var t="";e.reasons.has("video_tag")?t="video tag":e.reasons.has("video_plugin")?t="video plugin":e.reasons.has("video_page")&&(t="command queue");var n=t?"ClsVideoInsertionMigrated":"ClsVideoInsertion";return I.error(n,"isVideoAllowedOnPage",new Error("DBP: Disabled by publisher via ".concat(t||"other"))),!1}return!this._clsOptions.videoDisabledFromPlugin},t}(function(e){function t(t,n){var i=e.call(this)||this;i._videoConfig=t,i._component=n,i._stickyRelatedOnPage=!1,i._contextualMediaIds=[];var o,r=i._videoConfig.players||[];i._device=(void 0===o&&(o=navigator.userAgent),/Windows NT|Macintosh/i.test(o)?"desktop":"mobile"),i._potentialPlayerMap=i._setPotentialPlayerMap();var a=r.filter((function(e){return"stationaryRelated"===e.type&&e.enabled}));return i._potentialPlayerMap.stationaryRelated=a,i}return o(t,e),t.prototype._setPotentialPlayerMap=function(){var e=this,t=this._videoConfig.players,n={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return t&&t.length?t.filter((function(t){var n;return null===(n=t.devices)||void 0===n?void 0:n.includes(e._device)})).reduce((function(t,n){return t[n.type]||(I.event(e._component,"constructor","Unknown Video Player Type detected",n.type),t[n.type]=[]),n.enabled&&t[n.type].push(n),t}),n):n},t.prototype._checkPlayerSelectorOnPage=function(e){var t=this,n=this._potentialPlayerMap[e].map((function(e){return{player:e,playerElement:t._getPlacementElement(e)}}));return n.length?n[0]:{player:null,playerElement:null}},t.prototype._getOverrideElement=function(e,t,n){if(e&&t){var i=document.createElement("div");t.insertAdjacentElement(e.position,i),n=i}else{var o=this._checkPlayerSelectorOnPage("stickyPlaylist"),r=o.player,a=o.playerElement;if(r&&a){i=document.createElement("div");a.insertAdjacentElement(r.position,i),n=i}}return n},t.prototype._shouldOverrideElement=function(e){var t=e.getAttribute("override-embed");return"true"===t||"false"===t?"true"===t:!!this._videoConfig.contextualSettings&&this._videoConfig.contextualSettings.overrideEmbedLocation},t.prototype._getPlacementElement=function(e){var t=M(e.pageSelector),n=x(e.elementSelector);return t.valid?e.pageSelector&&!t.elements.length?(I.event("VideoUtils","getPlacementElement",new Error("PSNF: ".concat(e.pageSelector," does not exist on the page"))),null):n.valid?n.elements.length>e.skip?n.elements[e.skip]:(I.event("VideoUtils","getPlacementElement",new Error("ESNF: ".concat(e.elementSelector," does not exist on the page"))),null):(I.error("VideoUtils","getPlacementElement",new Error("".concat(e.elementSelector," is not a valid selector"))),null):(I.error("VideoUtils","getPlacementElement",new Error("".concat(e.pageSelector," is not a valid selector"))),null)},t.prototype._getEmbeddedPlayerType=function(e){var t=e.getAttribute("data-player-type");return t&&"default"!==t||(t=this._videoConfig.contextualSettings?this._videoConfig.contextualSettings.defaultPlayerType:"static"),this._stickyRelatedOnPage&&(t="static"),t},t.prototype._getUnusedMediaId=function(e){var t=e.getAttribute("data-video-id");return!(!t||this._contextualMediaIds.includes(t))&&(this._contextualMediaIds.push(t),t)},t.prototype._createRelatedPlayer=function(e,t,n){"collapse"===t?this._createCollapsePlayer(e,n):"static"===t&&this._createStaticPlayer(e,n)},t.prototype._createCollapsePlayer=function(e,t){var n=this._checkPlayerSelectorOnPage("stickyRelated"),i=n.player,o=n.playerElement,a=i||this._potentialPlayerMap.stationaryRelated[0];a&&a.playerId?(this._shouldOverrideElement(t)&&(t=this._getOverrideElement(i,o,t)),t=document.querySelector("#cls-video-container-".concat(e," > div"))||t,this._createStickyRelatedPlayer(r(r({},a),{mediaId:e}),t)):I.error(this._component,"_createCollapsePlayer","No video player found")},t.prototype._createStaticPlayer=function(e,t){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){var n=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(r(r({},n),{mediaId:e}),t)}else I.error(this._component,"_createStaticPlayer","No video player found")},t.prototype._shouldRunAutoplayPlayers=function(){return!(!this._isVideoAllowedOnPage()||!this._potentialPlayerMap.stickyRelated.length&&!this._potentialPlayerMap.stickyPlaylist.length)},t.prototype._determineAutoplayPlayers=function(){var e=this._component,t="VideoManagerComponent"===e,n=this._config;if(this._stickyRelatedOnPage)I.event(e,"stickyRelatedOnPage",t&&{device:n&&n.context.device,isDesktop:this._device}||{});else{var i=this._checkPlayerSelectorOnPage("stickyPlaylist"),o=i.player,r=i.playerElement;o&&o.playerId&&o.playlistId&&r?this._createPlaylistPlayer(o,r):I.event(e,"noStickyPlaylist",t&&{vendor:"none",device:n&&n.context.device,isDesktop:this._device}||{})}},t.prototype._initializeRelatedPlayers=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this._getEmbeddedPlayerType(n),o=this._getUnusedMediaId(n);o&&this._createRelatedPlayer(o,i,n)}},t}(function(){function e(){}return Object.defineProperty(e.prototype,"enabled",{get:function(){return!0},enumerable:!1,configurable:!0}),e}())),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(function(){function e(){this._map=[]}return e.prototype.add=function(e,t,n,i){void 0===i&&(i=document),this._map.push({el:e,coords:t,dynamicAd:n,target:i})},Object.defineProperty(e.prototype,"map",{get:function(){return this._map},enumerable:!1,configurable:!0}),e.prototype.sort=function(){this._map.sort((function(e,t){return e.coords-t.coords}))},e.prototype.filterUsed=function(){this._map=this._map.filter((function(e){return!e.dynamicAd.used}))},e}());try{(K=new R)&&K.enabled&&(new re(K,new le).start(),new ae(new V(K),K).init())}catch(e){I.error("CLS","pluginsertion-iife",e),window.adthriveCLS&&(window.adthriveCLS.injectedFromPlugin=!1)}}(); (function () {var clsElements = document.querySelectorAll("script[id^='cls-']"); window.adthriveCLS && clsElements && clsElements.length === 0 ? window.adthriveCLS.injectedFromPlugin = false : ""; })(); var _paq = _paq || []; _paq.push(['setCustomDimension', 1, '{"ID":2,"name":"Kristi Linauer","avatar":"aa1a9d70b06d3fa3718b1015641d9ee6"}']); _paq.push(['trackPageView']); (function () { var u = "https://stats1.wpmudev.com/"; _paq.push(['setTrackerUrl', u + 'track/']); _paq.push(['setSiteId', '101782']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = 'https://stats.wpmucdn.com/analytics.js'; s.parentNode.insertBefore(g, s); })(); var sbiajaxurl = "https://www.addicted2decorating.com/wp-admin/admin-ajax.php"; /* <![CDATA[ */ var PT_CV_PUBLIC = {"_prefix":"pt-cv-","page_to_show":"5","_nonce":"0c5c06aafe","is_admin":"","is_mobile":"","ajaxurl":"https:\/\/www.addicted2decorating.com\/wp-admin\/admin-ajax.php","lang":"","loading_image_src":"data:image\/gif;base64,R0lGODlhDwAPALMPAMrKygwMDJOTkz09PZWVla+vr3p6euTk5M7OzuXl5TMzMwAAAJmZmWZmZszMzP\/\/\/yH\/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAPACwAAAAADwAPAAAEQvDJaZaZOIcV8iQK8VRX4iTYoAwZ4iCYoAjZ4RxejhVNoT+mRGP4cyF4Pp0N98sBGIBMEMOotl6YZ3S61Bmbkm4mAgAh+QQFCgAPACwAAAAADQANAAAENPDJSRSZeA418itN8QiK8BiLITVsFiyBBIoYqnoewAD4xPw9iY4XLGYSjkQR4UAUD45DLwIAIfkEBQoADwAsAAAAAA8ACQAABC\/wyVlamTi3nSdgwFNdhEJgTJoNyoB9ISYoQmdjiZPcj7EYCAeCF1gEDo4Dz2eIAAAh+QQFCgAPACwCAAAADQANAAAEM\/DJBxiYeLKdX3IJZT1FU0iIg2RNKx3OkZVnZ98ToRD4MyiDnkAh6BkNC0MvsAj0kMpHBAAh+QQFCgAPACwGAAAACQAPAAAEMDC59KpFDll73HkAA2wVY5KgiK5b0RRoI6MuzG6EQqCDMlSGheEhUAgqgUUAFRySIgAh+QQFCgAPACwCAAIADQANAAAEM\/DJKZNLND\/kkKaHc3xk+QAMYDKsiaqmZCxGVjSFFCxB1vwy2oOgIDxuucxAMTAJFAJNBAAh+QQFCgAPACwAAAYADwAJAAAEMNAs86q1yaWwwv2Ig0jUZx3OYa4XoRAfwADXoAwfo1+CIjyFRuEho60aSNYlOPxEAAAh+QQFCgAPACwAAAIADQANAAAENPA9s4y8+IUVcqaWJ4qEQozSoAzoIyhCK2NFU2SJk0hNnyEOhKR2AzAAj4Pj4GE4W0bkJQIAOw==","is_mobile_tablet":"","sf_no_post_found":"No posts found."}; var PT_CV_PAGINATION = {"first":"\u00ab","prev":"\u2039","next":"\u203a","last":"\u00bb","goto_first":"Go to first page","goto_prev":"Go to previous page","goto_next":"Go to next page","goto_last":"Go to last page","current_page":"Current page is","goto_page":"Go to page"}; /* ]]> */ /* <![CDATA[ */ var sb_instagram_js_options = {"font_method":"svg","resized_url":"https:\/\/www.addicted2decorating.com\/wp-content\/uploads\/sb-instagram-feed-images\/","placeholder":"https:\/\/www.addicted2decorating.com\/wp-content\/plugins\/instagram-feed\/img\/placeholder.png","ajax_url":"https:\/\/www.addicted2decorating.com\/wp-admin\/admin-ajax.php"}; /* ]]> */ _stq = window._stq || []; _stq.push([ 'view', {v:'ext',j:'1:11.1.2',blog:'104326663',post:'41846',tz:'-6',srv:'www.addicted2decorating.com'} ]); _stq.push([ 'clickTrackerInit', '104326663', '41846' ]); !function(){"use strict";!function(e){if(-1===e.cookie.indexOf("__adblocker")){e.cookie="__adblocker=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";var t=new XMLHttpRequest;t.open("GET","https://www.npttech.com/advertising.js",!0),t.onreadystatechange=function(){if(XMLHttpRequest.DONE===t.readyState)if(200===t.status){var n=e.createElement("script");n.innerHTML=t.responseText,e.getElementsByTagName("head")[0].appendChild(n)}else{var a=new Date;a.setTime(a.getTime()+3e5),e.cookie="__adblocker=true; expires="+a.toUTCString()+"; path=/"}},t.send()}}(document)}(); !function(){"use strict";var e;e=document,function(){var t,n;function r(){var t=e.createElement("script");t.src="https://cafemedia-com.videoplayerhub.com/galleryplayer.js",e.head.appendChild(t)}function a(){var t=e.cookie.match("(^|[^;]+)\\s*__adblocker\\s*=\\s*([^;]+)");return t&&t.pop()}function c(){clearInterval(n)}return{init:function(){var e;"true"===(t=a())?r():(e=0,n=setInterval((function(){100!==e&&"false"!==t||c(),"true"===t&&(r(),c()),t=a(),e++}),50))}}}().init()}(); ```