Why you're gaining back the weight section is both complimentary and contradictory to the last section of common mistakes. In common mistakes the author tells you not to check the scale so often, in why you're gaining it back, it's because you're not checking the scale enough. Then it repeats the issues with crash diets (this is why they don't work, I agree with this completely). There is a brief paragraph on emotional eating, and I really wish this was talked about even more, but it's not.

There's a reason (well actually, many reasons) why lentils are considered one of the world's healthiest foods. With 13 grams of protein and 11 grams of fiber per serving, this legume—another member of the pulse family—will keep you feeling full for hours in between meals. They're a great source of fat-burning resistant starch, too, with 3.4 grams in a half-cup serving.
Drinking enough water can help you stay slim, too. Research from the American Chemical Society in Boston found that having two 8-ounce glasses of water before a meal while also reducing portion sizes could help you lose weight and keep it off. Not to mention, water fills you up, curbing your appetite: "In addition to slightly boosting your metabolism, drinking water before meals has been shown to help you eat less without trying," says Sass.
Need a midday snack? This combo offers protein, healthy fats, and fiber to fend off hunger. With about 160 calories for 50 of them, pistachios are one of the lowest-calorie nuts. Plus, they’re usually packaged in their shells, which can slow you down and keep you from munching mindlessly. The apple adds sweetness and crunch to your treat, along with 4 grams of fiber.
Weight Watchers, The Mayo Clinic Diet, and especially Noom provide a lot of behavior-based support to integrate these good habits. These include learning portions, logging food, and both giving and receiving external support. Nutrisystem doesn’t ask for any behavior changes save for subsisting almost entirely off their pre-packaged, pre-portioned meals.
Kimchi is a spicy Korean condiment that's made with fermented cabbage and is a great source of vitamins A, B, and C. Because it's fermented (like sauerkraut), kimchi contains tons of those good probiotics that aid the body in digestion. A recent study in the Proceedings of the National Academy of Science found that maintaining healthy bacteria in your gut can improve gut lining, which in turn could help reduce fat mass and inflammation.
YES! You can actually eat anything you want (like the sugary, salty, processed carbs you love) and still lose weight (see why) but You'll lose weight much faster & easier eating mostly the weight loss carbs above because they'll kill your hunger & cravings while keeping you full on less calories and The less you eat = the faster you'll lose weight.
“When clients come to me, many of them have been through the diet wringer. They’ve tried every fad and gimmick and, of course, they’ve failed to maintain long-term success. The key to weight loss is to never feel like you’re on a diet, because diets don’t work. If you feel deprived, you will never make it past a few weeks. The only way to achieve long-term weight loss is to learn to appreciate food as fuel and slowly replaced processed food that cannot properly energize the body with real food that can. After a while this will become second nature and won’t feel like a daily struggle.” — Laura Burak, MS, RD, CDN
As long as this popular crunchy treat isn't doused in movie-theater butter, it makes an excellent weight-loss snack. Not only is popcorn high in fiber, it even delivers some protein. A 1-ounce serving of air-popped corn (about 3½ cups) has 4 grams of fiber, almost 4 grams of protein and clocks in at 110 calories. This combination makes it a snack with staying power. Popcorn is filled with air, so you get a pretty large portion without a lot of calories. You can eat 3 whole cups of popcorn for only 100 calories.
Reviews.com has an advertising relationship with some of the offers included on this page. However, the rankings and listings of our reviews, tools and all other content are based on objective analysis. For more information, please check out our full Advertiser Disclosure. Reviews.com strives to keep its information accurate and up to date. The information in our reviews could be different from what you find when visiting a financial institution, service provider or a specific product’s website. All products are presented without warranty.
Ultimately, weight loss for the long-term requires some short-term behavior change and healthier habit formation. That's why we created our Good Housekeeping Nutritionist Approved Emblem, which exists to help turn smart food choices into healthier eating habits. All GHNA foods and drinks make it easier to find — and eat — good-for-you foods without additional time, effort, and cost. We target the lifestyle-related factors that make healthier eating hard, and find simple but creative solutions that actually work! Look for the emblem on labels wherever you shop for food!
Once again, a popular weight loss myth has been exploded. It has been widely believed that weight loss, which is nearly always difficult to maintain, is even less likely to stay lost if it is the product of a rapid weight loss. The belief is even enshrined in current guidelines. Now a study published in The Lancet Diabetes & Endocrinology provides no support for this belief. Instead, the study suggests that although long-term weight loss remains elusive regardless of the diet, short-term weight loss is actually more likely with rapid weight loss.
“Oolong, or ‘black dragon,’ is a kind of Chinese tea that’s packed with catechins, nutrients that help promote weight loss by boosting your body’s ability to metabolize fat. A study in the Chinese Journal of Integrative Medicine found that participants who regularly sipped oolong tea lost a pound a week, without doing anything else to change their diet or exercise habits.” — Kelly Choi, author of  The 7-Day Flat-Belly Tea Cleanse
However, drinking regular green tea might not be as beneficial for weight loss as taking green tea supplements. Most of the studies researching how green tea helps weight loss looked explicitly at green tea extract, which concentrates the benefits in a small serving size. While regular green tea will also help you maintain a healthy weight, the benefits will not be as impressive.
Rise and shine—literally! Researchers from Northwest University found that people who were exposed to bright daylight earlier in the day tended to weigh less than those who didn’t get sunlight until later. So right after you wake up, open the blinds and let the sunshine in. Or better yet, step outside and enjoy your morning cup of coffee on the front porch
“The alkaline diet often has a focus on eating lots of fresh produce and unprocessed foods, which could be a good thing,” says Hultin. “However, keep in mind that this is not an evidence-based therapeutic diet.  When people take it too far — for instance, drinking baking soda — or become too restrictive or obsessive over food choices, it can definitely turn negative.”
Weight Watchers, The Mayo Clinic Diet, and especially Noom provide a lot of behavior-based support to integrate these good habits. These include learning portions, logging food, and both giving and receiving external support. Nutrisystem doesn’t ask for any behavior changes save for subsisting almost entirely off their pre-packaged, pre-portioned meals.
Make sure that everything you're eating is whole — as in nothing processed or packaged. Since salt is a preservative, these are the foods that are highest in sodium — something to keep in mind when planning your meals. Plan on making sure that all items you choose are fresh. That means filling up on fresh fruits and veggies, whole grains, low-fat dairy, and lean protein.
Some green tea varieties are better for weight loss than others. If you’re all about that green and on a weight-loss mission, you might want to choose Matcha green tea—the richest green tea source of nutrients and antioxidants. Registered dietitian Isabel K Smith explains why: “The whole leaf is ground and consumed as part of the beverage, as opposed to other (most) types of green tea where the leaves are steeped and then the tea is consumed.”
Sleeping for more than five hours a night might seem like a luxury for some, but it can have a serious impact on your overall health. Not getting the recommended 7-8 hours of shut-eye a night puts you at risk for fatigue the next day, which means you’re more likely to crave and snack on high-calorie comfort food. Try to go to bed sooner so you can get a little more sleep, which will help you eat less. And to blast fat even faster, don’t miss these essential 55 Ways to Boost Your Metabolism.
Anaerobic exercise, on the other hand, primarily uses sugar as its fuel. This doesn’t mean that it’s not good for weight loss, though. Anaerobic exercise helps build muscle, and as we explained above, this will help you burn calories even when you’re resting. Anaerobic exercises are generally high intensity, for example sprinting and weight lifting. 
“There are many foods that aid weight loss, but one that I often recommend to my clients and eat myself is grapefruit. Researchers at Scripps Clinic in San Diego found that when obese people ate half a grapefruit before each meal, they dropped an average of 3.5 pounds over 12 weeks. Apparently, the tangy fruit can lower insulin, a fat-storage hormone, and that can lead to weight loss. Plus, since it’s at least 90% water, it can fill you up so you eat less. However, if you are on certain medications you should not have grapefruit or grapefruit juice, so check the label on all your prescriptions, or ask your pharmacist or doctor. — Patricia Bannan, MS, RDN, author of  Eat Right When Time is Tight.
In the first phase of the study, 50% of people on the gradual diet and 81% of people on the rapid diet achieved the 12.5% weight loss goal. Both groups struggled considerably in the second phase: 71.2% in the gradual diet group and 70.5% in the rapid diet regained most of the weight they had shed in the first phase. In both groups, patients who successfully completed phase 1 lost a little over 14 kilograms in the first phase but then gained back all but 4 kg in the second phase.
There was also weight loss supplements that wouldn’t kill you, but didn’t really work either. Green coffee, raspberry ketones and grapefruit extract all come to mind. They sound great, but they all turned out to be pure hype. One substance, though seems to have stood the test of time — green tea, with traditional Asian medicine touting the weight loss effects for thousands of years.
“Research published in the Journal of Nutrition in 2006 found that the type of DHA omega-3 oil found in salmon may have an ‘anti-obesity effect’ by preventing an increase in fat cells, causing death of pre-fat cells, and promoting the breakdown of fat in the body,” says Maleeff. Not sure how to prepare it? Try any (or all) of these five tasty salmon recipes.
Putting aside all the complicated, scientific reasons to exercise, exercise offers benefits that dieting just can’t. Exercise allows you to boost your metabolism and turn your body into a fat blasting furnace. Exercise builds muscle in the places you want, improves body shape and gives you a firm, toned body. Dieting, on the other hand, doesn’t promise a firm body – you can lose weight dieting and still be jiggly! And of course, in conjunction with diet, exercise speeds up the whole weight loss process, and who doesn’t want that?
A fat-burning superfood, grapefruit contains a compound that can lower the fat-storage hormone insulin, which in turn can lead to weight loss. In fact, eating half a grapefruit before each meal could help you lose up to a pound a week—even if you don't change anything else about your diet. Because grapefruits are 90% water, which fills you up, they also act as a natural appetite suppressant.
So while green tea might not be the lean fat-burning machine it's cracked up to be, that doesn't mean it can't be beneficial for weight loss. After all, unsweetened green tea is one of the smartest beverage picks around. It’s free of calories, fat, and sugar—definitely much better than a 140-calorie can of soda. And since it's common to confuse thirst for hunger, sipping some green tea can help keep food cravings at bay.
Consistent with the current study, recent findings indicate that slow weight loss, as recommended by current guidelines, worldwide, is not a priority over rapid weight loss. Purcell et al. in a clinical trial studied the effect of weight loss rate and weight management. Their results showed that in the long-term, with rapid weight loss (450 to 800 Kcal/day) than gradual weight loss (500 kcal less than the daily requirement), the weight loss is faster and more stable. The researchers suggested that the limited carbohydrate intake of very-low-calorie diets might promote greater satiety and less food intake by inducing ketosis. Losing weight quickly may also motivate participants to persist with their diet and achieve better results (29).
If you’re eating a diet rich in fresh fruits and vegetables, odds are you are getting the necessary vitamins and minerals you need to help boost weight-loss and lose weight fast. But it’s also a good idea to take vitamins that can supplement your diet; B vitamins (especially B2 and B12) can boost energy, vitamin D can regulate appetite and aid in weight loss, and magnesium can trigger lipolysis, a process where your body releases fat from where it’s stored.
Like peanuts, avocados contain metabolism-enhancing monounsaturated fats that have been shown to reduce hunger. In fact, a study in Nutrition Journal found that participants who ate half a fresh avocado with lunch reported a 40 percent decreased desire to eat for hours afterwards. What’s more? The trendy toast topping is also loaded with unsaturated fats, which seem to prevent the storage of belly fat, as well as satiating fiber and free-radical-killing antioxidants.
When it comes to cravings, protein drinks and bars may also help cure your need for sugar, says Juge. He recommends mixing a flavored protein powder in a blender with as much ice as possible, so it'll taste more like a milkshake. Day Five's protein shake includes a cup of berries, which will also help with sugar cravings. Once or twice per week, Juge adds, you can have a low-sugar, high-protein bar. The newest varieties taste more like candy bars, with state-of-the-art sweetening techniques.

Be choosy about carbs. You can decide which ones you eat, and how much. Look for those that are low on the glycemic index (for instance, asparagus is lower on the glycemic index than a potato) or lower in carbs per serving than others. Whole grains are better choices than processed items, because processing removes key nutrients such as fiber, iron, and B vitamins. They may be added back, such as in “enriched” bread.
Notes: Defrost the shrimp under cool running water and pat dry. In a nonstick pan over medium-high heat, toss the shrimp with a little all-natural cooking spray, and cook until bright pink, tightly furled, and warmed through. Chop and steam the carrots and broccoli until tender-crisp, about 5 minutes for the carrots, 3 minutes for the broccoli. Drizzle everything with the teriyaki sauce and sprinkle with the sesame seeds.
Red wine can actually be good for your health, thanks to the antioxidant resveratrol, which studies have shown is good for your health and could help you lose weight. But any more than one glass, and you’re opening yourself up to extra sugar, empty calories, and a boozy buzz, which may inhibit your ability to make healthy food choices. If you’re out to happy hour, stop at one glass and opt for club soda (which is calorie free) or water with lemon instead.
Drink a whole cool glass of tea right before dinner. Drinking one glass of tea before dinner fills up part of your stomach, which means that you'll be less hungry when it comes to food. (Of course, eating a healthy dinner is still important.) Cool tea is important, too. Cold tea needs to be heated up by the body in order to be metabolized; this expends extra calories, meaning more weight loss.
Green tea, because it's less processed, has a higher concentration of polyphenols, also called catechins, then any other types of tea, including black and oolong. The catechins in the green tea are one of the active ingredients linked to weight loss. They might prevent the accumulation of body fat, as well as increase body temperature so you burn more calories.
While Samantha seems to attribute much of her success to the healthy drink, Katherine Zeratsky, R.D.N., L.D., an instructor of nutrition at Mayo Clinic, says that lowering her calorie intake was probably the biggest factor in Samantha's weight loss journey. Although caffeine in green tea can jump-start your metabolism, it wouldn't be enough to produce significant weight loss results, says Zeratsky.

Of carbs and protein, that is. Carbs certainly aren’t the enemy; you can totally enjoy carbs and still lose weight. The trick is to choose something complex (like brown rice, quinoa, or whole grain bread) or something refined (like white rice, white pasta, and white bread), and pair it with a protein. So if you’re having crackers for a snack, make sure you also eat some almonds or a stick of string cheese. “I always incorporate a protein and carbohydrate at every meal,” Jim White, RD, ACSM Health, and owner of Jim White Fitness & Nutrition Studios told us in our 30 No-Diet Diet Tricks article. “It can curb your appetite and it slows down the glycemic index of some of your higher sugar foods.”
Green is truly the color of health. Matcha helps to safely cleanse and purge the body of harmful elements. Chlorophyll the element that gives green tea and other plants their signature verdant color is also a powerful detoxifier, helping to eliminate both chemicals and heavy metals from the body. And because matcha is carefully shade-grown, it is substantially richer in chlorophyll than other green teas, making it a superior daily detox.
Lipton green tea is loaded with epigallocatechin gallate (EGCG), a catechin that is found in green tea. It helps your body to burn fat and increases your body’s insulin sensitivity (3). EGCG has also been found to inhibit fatty liver disease in lab rats (4). If you are a beginner, then the green tea containing honey and pomegranate is a better option for weight loss. But all the variants have the same impact on your body.
We’ve said it before and we’ll say it again: fat is your friend! To be more specific, healthy fats will be your weight loss friends. Consider adding extra virgin olive oil to your diet and you might see the scale start to tip in your favor. One Journal of Women’s Health study discovered that an EVOO-enriched diet helped participants lose more weight than those on a low-fat diet. Like peanuts and avocados, extra virgin olive oil’s belly-blasting abilities are thought to be a result of the monounsaturated fats it contains.
Eating regular meals is essential. Experts agree that you should go no longer than 4 to 5 hours between meals. Otherwise, intense hunger can trigger a binge. Some experts believe dieters have better control if they eat several mini-meals throughout the day. Choose the meal pattern that works best in your lifestyle, but make sure to eat at least three meals per day.
Can someone remind Treason May, her cabinet, Oily rag and the civil servants that they are negotiating for the UK not the EU. Also that we voted to LEAVE not stay. The EU does not move so progress is when May surrenders more. She is playing a version of statues with the British public, creeping ever close to BINO hoping we will not notice her moves until it is too late. Time for the vote of no confidence. Get someone who knows what they are doing!
Set (and write down) reasonable expectations for what you plan to achieve during your challenge. “You can absolutely make a difference in 10 days,” says Brooke Alpert, RD, a dietitian in New York City and the author of The Diet Detox, but don’t expect to shed 20 pounds a la The Biggest Loser. “While actual weight loss will be around three to four pounds, you can really notice the difference in the way your body feels in about a week.”
It turns out this unique leaf is good for more than boosting your caffeine levels each morning. There are many benefits of green tea, and enjoying a green tea diet or adding its extract to your health and beauty products can make a difference in your overall weight at the end of the day. If you are ready to learn more about the benefits of this prized drink, keep reading to learn how green tea helps weight loss.

In what is perhaps the biggest buzzkill of all time, sex doesn’t quite count as cardio or burn a significant amount of calories: Women burn about 3.6 per minute. “It’s still a good idea,” Dr. Seltzer says, citing the activity’s other benefits, like increasing the output of the neurotransmitters serotonin and dopamine, which naturally reduce food cravings.
My doctor tried to prepare me for the mental effects as well as guide me through the health aspects. I held my ground but one unexpected stressor in my life set me on that treacherous path . In eighteen months I found myself at 367 pounds, forty-four pounds heavier than when I started. I floundered and tried for 5 more years. In March of 2006 I made the choice to have a roux en y gastric bypass, in 6 months I was well on my way with 100 pounds off. In all I lost about 165 pounds. That was over eight years ago. The statistics for gastric bypass are as for all other weight loss programs. Eighty percent will gain at least 30 pounds, twenty percent will gain all and possibly more,leaving them worse off .

Refined white breads are simple carbohydrates that your body processes as sugar, and can really hinder your weight-loss efforts. Whole grain bread, on the other hand, is chock-full of slimming fiber and can help you feel fuller, longer. Just be sure to read your labels. “If the ingredients at the top of the ingredient list read sugar, sucrose, fructose, corn syrup, white or wheat flour, these foods contain mostly simple carbs and should be limited,” Rebecca Lewis, RD, told Eat This, Not That! in our article for 20 Secrets for Eating Bread Without Getting Fat. “A food is only considered a whole grain if the first ingredient on the packaging says, ‘whole grain’ or ‘whole wheat.’”
Detoxification and cleansing are crucial for a sound, healthy mind and body. It is even more important when it comes to losing and maintaining weight. Basically, it filters the blood from your liver, where toxins are stored for elimination. Toxic waste is also eliminated from the body through the kidneys, lungs, intestines, lymphatic system, and skin.
Chapter 10 talks all about self love, and I agree it is extremely important to have. I lost a lot of respect though because it starts off saying how people who are overweight have a lack of self esteem and look down on themselves viewing themselves as inferior...um, you spent a portion of this book shaming obese people and making generalizations. You treated obese people differently and shamed them then wonder why they have low self esteem or don't feel like they fit in. This chapter meant a whole lot less to me coming from you after reading the rest of book. In this chapter while talking about self love, you spend the whole time blaming the person for their own low self esteem. Telling them that everyone has flaws (so you just told this person they are flawed, with the assumption you're talking about being overweight as a flaw because that's what the book is about and it's already obvious you look down on obese people based on your language throughout the book.)

This double-blind clinical trial study was conducted on 42 obese and overweight individuals (25 < BMI < 35). Participants were selected from those, who referred to a nutrition clinic (Ahvaz, Iran). Participants were screened based on the inclusion and exclusion criteria. Inclusion criteria were lack of physical activity, no smoking, no alcohol drinking, no usage of herbal supplements and vitamins, and lack of weight changes in the last 6 months. Exclusion criteria included pregnancy, breastfeeding, use of drugs that effect metabolism, lipid and glycemic profile, eating disorder, diabetes, cardiovascular disease, kidney problems, thyroid, digestive, respiratory diseases, and cancer. Participants consuming more than 300 mg of caffeine daily (described as caffeine users) were excluded from the study (20). The level of physical activity was assessed weekly by phone. The subjects, who had moderate or various physical activities, were excluded from the study.
As long as you don't go nuts on nuts, they can be super beneficial in helping you lose weight. In a study published in the European Journal of Nutrition, researchers found those who got their protein from nuts instead of animal products had less weight gain than those who never ate them. Snack on peanuts, almonds, hazelnuts, pistachios, and walnuts.
“Mangoes are a great way to satisfy a sweet tooth and to help to ward off other cravings,” says Rania Batayneh, MPH, a nutritionist and owner of Essential Nutrition for You. Mangoes are high in fiber, magnesium, antioxidants, and iron (making them a great snack for women who may have iron deficiency or anemia), says Batayneh. “And because mangoes aid in digestion, you want to focus on eating the fruit versus just drinking the juice.”

Before you start the meal plan, make a pot of the Veggie Soup. Make 2 servings of Overnight Oats, so they can soak in the fridge. It’s also super helpful to prep your veggie snacks—make 4 bags filled with baby carrots and sugar snap peas, and 3 bags filled with broccoli and cauliflower, for alternate days. And if you really want to get ahead, you could also grill the chicken breasts and cook the quinoa and brown rice in advance.
If you consume green tea first thing in the morning, catechins and caffeine present in green tea can stimulate the production of gastric acid and cause stomach indigestion. One should also avoid drinking green tea in the night since it will disturb the sleep pattern. Also, if green tea is consumed just after meal it could inhibit nutrient absorption from the food. Green tea should be consumed in between meal or 30 minutes before exercise (for optimal fat loss).
Speaking of standout breakfast foods, Greek yogurt is another option worthy of the spotlight thanks to its high-protein content. Per study in the journal Appetite, researchers from the University of Missouri compared the satiety effects of high-, moderate-, and low-protein yogurts on women aged 24-28, and found Greek yogurt, with the highest protein content, to have the greatest effect. What’s more? Probiotics in items such as yogurt and fermented foods, like pickles and sauerkraut, help good bacteria in the gut process food more efficiently. Hello, weight loss! If you want to get even more protein in your yogurt, check out Icelandic yogurts, which can have two to three more grams of protein per serving compared to Greek.
Another frontrunner on the U.S. News and World Report 2016 list (it came in at number two in the weight loss category), the HMR Weight Management program is used in over 200 medical facilities around the U.S. Dieters embark on two phases, the first centered around HMR's products (meals, shakes, snacks) and the second transitioning towards a sustainable plan emphasizing fruits, vegetables, lean proteins, and whole grains.
How many calories should I eat a day? A calorie is an amount of energy that a particular food provides. Consuming more calories than needed will result in weight gain, consuming too few will result in weight loss. How many calories a person should eat each day depends on a variety of factors, such as age, size, sex, activity levels, and general health. Read now
Be choosy about carbs. You can decide which ones you eat, and how much. Look for those that are low on the glycemic index (for instance, asparagus is lower on the glycemic index than a potato) or lower in carbs per serving than others. Whole grains are better choices than processed items, because processing removes key nutrients such as fiber, iron, and B vitamins. They may be added back, such as in “enriched” bread.
It seems counterintuitive to drink lots of water when you’re looking to lose weight fast—especially water weight—but staying hydrated is one of the most important steps you can take to lose weight. People often mistake thirst for hunger, so staying hydrated allows you to be more in touch with the times when you are actually hungry, rather than just thirsty. Plus, a lot of good things happen to your body when you drink enough fluids.
It’s true that green tea can raise your metabolic rate, so you burn more calories, says David Nieman, Dr.PH., director of the human performance laboratory at Appalachian State University in Boone, N.C. Nieman, who has studied green tea extensively, says this effect is probably due to a combination of its caffeine and catechins—antioxidants that are plentiful in green tea and present in smaller amounts in some fruits, dark chocolate, and red wine.
How much fiber should I eat per day? Most Americans eat less fiber than the USDA daily recommendations suggest. This article looks at the guidelines for fiber intake in men, women, and children. We also talk about how fiber can help with weight loss, and discuss how much fiber is too much. Learn about good sources of dietary fiber and a handy meal plan. Read now
!function(n,t){function r(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function i(e){return void 0===e}if(n){var o={},s=n.TraceKit,a=[].slice,l="?";o.noConflict=function(){return n.TraceKit=s,o},o.wrap=function(e){function n(){try{return e.apply(this,arguments)}catch(e){throw o.report(e),e}}return n},o.report=function(){function e(e){l(),h.push(e)}function t(e){for(var n=h.length-1;n>=0;--n)h[n]===e&&h.splice(n,1)}function i(e,n){var t=null;if(!n||o.collectWindowErrors){for(var i in h)if(r(h,i))try{h[i].apply(null,[e].concat(a.call(arguments,2)))}catch(e){t=e}if(t)throw t}}function s(e,n,t,r,s){var a=null;if(w)o.computeStackTrace.augmentStackTraceWithInitialElement(w,n,t,e),u();else if(s)a=o.computeStackTrace(s),i(a,!0);else{var l={url:n,line:t,column:r};l.func=o.computeStackTrace.guessFunctionName(l.url,l.line),l.context=o.computeStackTrace.gatherContext(l.url,l.line),a={mode:"onerror",message:e,stack:[l]},i(a,!0)}return!!f&&f.apply(this,arguments)}function l(){!0!==d&&(f=n.onerror,n.onerror=s,d=!0)}function u(){var e=w,n=p;p=null,w=null,m=null,i.apply(null,[e,!1].concat(n))}function c(e){if(w){if(m===e)return;u()}var t=o.computeStackTrace(e);throw w=t,m=e,p=a.call(arguments,1),n.setTimeout(function(){m===e&&u()},t.incomplete?2e3:0),e}var f,d,h=[],p=null,m=null,w=null;return c.subscribe=e,c.unsubscribe=t,c}(),o.computeStackTrace=function(){function e(e){if(!o.remoteFetching)return"";try{var t=function(){try{return new n.XMLHttpRequest}catch(e){return new n.ActiveXObject("Microsoft.XMLHTTP")}},r=t();return r.open("GET",e,!1),r.send(""),r.responseText}catch(e){return""}}function t(t){if("string"!=typeof t)return[];if(!r(j,t)){var i="",o="";try{o=n.document.domain}catch(e){}var s=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);s&&s[2]===o&&(i=e(t)),j[t]=i?i.split("\n"):[]}return j[t]}function s(e,n){var r,o=/function ([^(]*)\(([^)]*)\)/,s=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",u=10,c=t(e);if(!c.length)return l;for(var f=0;f0?s:null}function u(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function c(e){return u(e).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function f(e,n){for(var r,i,o=0,s=n.length;or&&(i=s.exec(o[r]))?i.index:null}function h(e){if(!i(n&&n.document)){for(var t,r,o,s,a=[n.location.href],l=n.document.getElementsByTagName("script"),d=""+e,h=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,p=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,m=0;m]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),l=[],u=0;u=0&&(g.line=v+x.substring(0,j).split("\n").length)}}}else if(o=d.exec(i[y])){var _=n.location.href.replace(/#.*$/,""),T=new RegExp(c(i[y+1])),E=f(T,[_]);g={url:_,func:"",args:[],line:E?E.line:o[1],column:null}}if(g){g.func||(g.func=s(g.url,g.line));var k=a(g.url,g.line),A=k?k[Math.floor(k.length/2)]:null;k&&A.replace(/^\s*/,"")===i[y+1].replace(/^\s*/,"")?g.context=k:g.context=[i[y+1]],h.push(g)}}return h.length?{mode:"multiline",name:e.name,message:i[0],stack:h}:null}function y(e,n,t,r){var i={url:n,line:t};if(i.url&&i.line){e.incomplete=!1,i.func||(i.func=s(i.url,i.line)),i.context||(i.context=a(i.url,i.line));var o=/ '([^']+)' /.exec(r);if(o&&(i.column=d(o[1],i.url,i.line)),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,e.stack[0].context=i.context,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function g(e,n){for(var t,r,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],c={},f=!1,p=g.caller;p&&!f;p=p.caller)if(p!==v&&p!==o.report){if(r={url:null,func:l,args:[],line:null,column:null},p.name?r.func=p.name:(t=a.exec(p.toString()))&&(r.func=t[1]),"undefined"==typeof r.func)try{r.func=t.input.substring(0,t.input.indexOf("{"))}catch(e){}if(i=h(p)){r.url=i.url,r.line=i.line,r.func===l&&(r.func=s(r.url,r.line));var m=/ '([^']+)' /.exec(e.message||e.description);m&&(r.column=d(m[1],i.url,i.line))}c[""+p]?f=!0:c[""+p]=!0,u.push(r)}n&&u.splice(0,n);var w={mode:"callers",name:e.name,message:e.message,stack:u};return y(w,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),w}function v(e,n){var t=null;n=null==n?0:+n;try{if(t=m(e))return t}catch(e){if(x)throw e}try{if(t=p(e))return t}catch(e){if(x)throw e}try{if(t=w(e))return t}catch(e){if(x)throw e}try{if(t=g(e,n+1))return t}catch(e){if(x)throw e}return{mode:"failed"}}function b(e){e=1+(null==e?0:+e);try{throw new Error}catch(n){return v(n,e+1)}}var x=!1,j={};return v.augmentStackTraceWithInitialElement=y,v.guessFunctionName=s,v.gatherContext=a,v.ofCaller=b,v.getSource=t,v}(),o.extendToAsynchronousCallbacks=function(){var e=function(e){var t=n[e];n[e]=function(){var e=a.call(arguments),n=e[0];return"function"==typeof n&&(e[0]=o.wrap(n)),t.apply?t.apply(this,e):t(e[0],e[1])}};e("setTimeout"),e("setInterval")},o.remoteFetching||(o.remoteFetching=!0),o.collectWindowErrors||(o.collectWindowErrors=!0),(!o.linesOfContext||o.linesOfContext<1)&&(o.linesOfContext=11),void 0!==e&&e.exports&&n.module!==e?e.exports=o:"function"==typeof define&&define.amd?define("TraceKit",[],o):n.TraceKit=o}}("undefined"!=typeof window?window:global)},"./webpack-loaders/expose-loader/index.js?require!./shared/require-global.js":function(e,n,t){(function(n){e.exports=n.require=t("./shared/require-global.js")}).call(n,t("../../../lib/node_modules/webpack/buildin/global.js"))}});
×