36 Matching Annotations
  1. Oct 2020
    1. o be sure, it was only in the past decade that Finland’s international science scores rose. In fact, the country’s earliest efforts could be called somewhat Stalinistic. The first national curriculum, developed in the early ’70s, weighed in at 700 stultifying pages. Timo Heikkinen, who began teaching in Finland’s public schools in 1980 and is now principal of Kallahti Comprehensive School in eastern Helsinki, remembers when most of his high-school teachers sat at their desks dictating to the open notebooks of compliant children. And there are still challenges. Finland’s crippling financial collapse in the early ’90s brought fresh economic challenges to this “confident and assertive Eurostate,” as David Kirby calls it in A Concise History of Finland. At the same time, immigrants poured into the country, clustering in low-income housing projects and placing added strain on schools. A recent report by the Academy of Finland warned that some schools in the country’s large cities were becoming more skewed by race and class as affluent, white Finns choose schools with fewer poor, immigrant populations. A few years ago, Kallahti principal Timo Heikkinen began noticing that, increasingly, affluent Finnish parents, perhaps worried about the rising number of Somali children at Kallahti, began sending their children to one of two other schools nearby. In response, Heikkinen and his teachers designed new environmental science courses that take advantage of the school’s proximity to the forest. And a new biology lab with 3-D technology allows older students to observe blood flowing inside the human body. It has yet to catch on, Heikkinen admits. Then he added: “But we are always looking for ways to improve.”

      This reform came on the heels of a far stricter national curriculum that gave teachers and administration quite the opposite. Forced to abide by what was prescribed. Thankfully that was thrown out. And There is still more to overcome. Immigration has Finnish parents pulling children out of schools to more segregated homogeneous ones. But thanks to that autonomy and supportr, teachers wont give up innovating and trying to appeal to the affluent by introducing new and exciting programs.

    2. ractically speaking—and Finns are nothing if not practical—the decision meant that goal would not be allowed to dissipate into rhetoric. Lawmakers landed on a deceptively simple plan that formed the foundation for everything to come. Public schools would be organized into one system of comprehensive schools, or peruskoulu, for ages 7 through 16. Teachers from all over the nation contributed to a national curriculum that provided guidelines, not prescriptions. Besides Finnish and Swedish (the country’s second official language), children would learn a third language (English is a favorite) usually beginning at age 9. Resources were distributed equally. As the comprehensive schools improved, so did the upper secondary schools (grades 10 through 12). The second critical decision came in 1979, when reformers required that every teacher earn a fifth-year master’s degree in theory and practice at one of eight state universities—at state expense. From then on, teachers were effectively granted equal status with doctors and lawyers. Applicants began flooding teaching programs, not because the salaries were so high but because autonomy and respect made the job attractive. In 2010, some 6,600 applicants vied for 660 primary school training slots, according to Sahlberg. By the mid-1980s, a final set of initiatives shook the classrooms free from the last vestiges of top-down regulation. Control over policies shifted to town councils. The national curriculum was distilled into broad guidelines. National math goals for grades one through nine, for example, were reduced to a neat ten pages. Sifting and sorting children into so-called ability groupings was eliminated. All children—clever or less so—were to be taught in the same classrooms, with lots of special teacher help available to make sure no child really would be left behind. The inspectorate closed its doors in the early ’90s, turning accountability and inspection over to teachers and principals. “We have our own motivation to succeed because we love the work,” said Louhivuori. “Our incentives come from inside.”

      This became a bottom-up approach in an easy to adapt plan for the whole nation. The plan included children learning 3 languages with funds being disbursed equally to all schools. Teachers were granted professional status equal to doctors and lawyers because of the masters degree requirements fully paid by the state. And moral accountability went up through in-house inspections giving sole responsibility to the teachers and principals in evaluating their own progress.

    3. n 1963, the Finnish Parlia-ment made the bold decision to choose public education as its best shot at economic recovery. “I call this the Big Dream of Finnish education,” said Sahlberg, whose upcoming book, Finnish Lessons, is scheduled for release in October. “It was simply the idea that every child would have a very good public school. If we want to be competitive, we need to educate everybody. It all came out of a need to survive."

      Education reform came into effect in 1963, when the Finnish Parliament prioritized public education as the way to economic recovery.

    4. Finland’s schools were not always a wonder. Until the late 1960s, Finns were still emerging from the cocoon of Soviet influence. Most children left public school after six years. (The rest went to private schools, academic grammar schools or folk schools, which tended to be less rigorous.) Only the privileged or lucky got a quality education. The landscape changed when Finland began trying to remold its bloody, fractured past into a unified future. For hundreds of years, these fiercely independent people had been wedged between two rival powers—the Swedish monarchy to the west and the Russian czar to the east. Neither Scandinavian nor Baltic, Finns were proud of their Nordic roots and a unique language only they could love (or pronounce). In 1809, Finland was ceded to Russia by the Swedes, who had ruled its people some 600 years. The czar created the Grand Duchy of Finland, a quasi-state with constitutional ties to the empire. He moved the capital from Turku, near Stockholm, to Helsinki, closer to St. Petersburg. After the czar fell to the Bolsheviks in 1917, Finland declared its independence, pitching the country into civil war. Three more wars between 1939 and 1945—two with the Soviets, one with Germany—left the country scarred by bitter divisions and a punishing debt owed to the Russians. “Still we managed to keep our freedom,” said Pasi Sahlberg, a director general in the Ministry of Education and Culture.

      It wasnʻt always this way. Prior to the 60ʻs only the affluent received a full education.

    5. ven so, Rintola said her children arrived last August miles apart in reading and language levels. By April, nearly every child in the class was reading, and most were writing. Boys had been coaxed into literature with books like Kapteeni Kalsarin (“Captain Underpants”). The school’s special education teacher teamed up with Rintola to teach five children with a variety of behavioral and learning problems. The national goal for the past five years has been to mainstream all children. The only time Rintola’s children are pulled out is for Finnish as a Second Language classes, taught by a teacher with 30 years’ experience and graduate school training. There are exceptions, though, however rare. One first-grade girl was not in Rintola’s class. The wispy 7-year-old had recently arrived from Thailand speaking not a word of Finnish. She was studying math down the hall in a special “preparing class” taught by an expert in multicultural learning. It is designed to help children keep up with their subjects while they conquer the language. Kirkkojarvi’s teachers have learned to deal with their unusually large number of immigrant students. The city of Espoo helps them out with an extra 82,000 euros a year in “positive discrimination” funds to pay for things like special resource teachers, counselors and six special needs classes.

      Maija Rintola, a 20 year veteran teacher of 7-8 year olds has a way of bringing almost every student to read and write by the end of the year by introducing books that are funny and interesting thothe students coupled with the extra help of specialized assistants throughout the year. Of course this isnt always the case. When a child enters school without speaking the native language, there are multicultural learning experts specialized in bringing immigrant children up to speed. And it works! How is it payed for? through the "positive discrimination" fund.

    6. t’s almost unheard of for a child to show up hungry or homeless. Finland provides three years of maternity leave and subsidized day care to parents, and preschool for all 5-year-olds, where the emphasis is on play and socializing. In addition, the state subsidizes parents, paying them around 150 euros per month for every child until he or she turns 17. Ninety-seven percent of 6-year-olds attend public preschool, where children begin some academics. Schools provide food, medical care, counseling and taxi service if needed. Stu­dent health care is free.

      Since the state subsidies given to parents of children up to the age 17, rarely do you hear of issues surrounding homelessness or hunger. Mothers are offered and incredibly generous maternity leave until the child is ready for preschool at age 3 and virtually any phisical or mental need is covered free of charge.

    7. eachers in Finland spend fewer hours at school each day and spend less time in classrooms than American teachers. Teachers use the extra time to build curriculums and assess their students. Children spend far more time playing outside, even in the depths of winter. Homework is minimal. Compulsory schooling does not begin until age 7. “We have no hurry,” said Louhivuori. “Children learn better when they are ready. Why stress them out?

      Teachers are given extra time and the freedom to create curriculum that represents the needs of their class.

    8. Maija Rintola stood before her chattering class of twenty-three 7- and 8-year-olds one late April day in Kirkkojarven Koulu. A tangle of multicolored threads topped her copper hair like a painted wig. The 20-year teacher was trying out her look for Vappu, the day teachers and children come to school in riotous costumes to celebrate May Day. The morning sun poured through the slate and lemon linen shades onto containers of Easter grass growing on the wooden sills. Rintola smiled and held up her open hand at a slant—her time-tested “silent giraffe,” which signaled the kids to be quiet. Little hats, coats, shoes stowed in their cubbies, the children wiggled next to their desks in their stocking feet, waiting for a turn to tell their tale from the playground. They had just returned from their regular 15 minutes of playtime outdoors between lessons. “Play is important at this age,” Rintola would later say. “We value play.” With their wiggles unwound, the students took from their desks little bags of buttons, beans and laminated cards numbered 1 through 20. A teacher’s aide passed around yellow strips representing units of ten. At a smart board at the front of the room, Rintola ushered the class through the principles of base ten. One girl wore cat ears on her head, for no apparent reason. Another kept a stuffed mouse on her desk to remind her of home. Rintola roamed the room helping each child grasp the concepts. Those who finished early played an advanced “nut puzzle” game. After 40 minutes it was time for a hot lunch in the cathedral-like cafeteria.

      There's this sense of ease and, more importantly, a lack of stress in the day to day of school as the subjects are broken up with lots of play time; considered an integral part of education.

    9. Still, there is a distinct absence of chest-thumping among the famously reticent Finns. They are eager to celebrate their recent world hockey championship, but PISA scores, not so much. “We prepare children to learn how to learn, not how to take a test,” said Pasi Sahlberg, a former math and physics teacher who is now in Finland’s Ministry of Education and Culture. “We are not much interested in PISA. It’s not what we are about.”

      The irony in all this is how Finnʻs teachers donʻt put a whole lot of stock into testing. They care more about preparing them to "learn how to learn."

    10. inety-three percent of Finns graduate from academic or vocational high schools, 17.5 percentage points higher than the United States, and 66 percent go on to higher education, the highest rate in the European Union. Yet Finland spends about 30 percent less per student than the United States.

      Its a wonder; how is it the US spends 30% more on education than Finland, and has graduates achieving 17.5 points lower?

    11. There are no mandated standardized tests in Finland, apart from one exam at the end of students’ senior year in high school. There are no rankings, no comparisons or competition between students, schools or regions. Finland’s schools are publicly funded. The people in the government agencies running them, from national officials to local authorities, are educators, not business people, military leaders or career politicians. Every school has the same national goals and draws from the same pool of university-trained educators. The result is that a Finnish child has a good shot at getting the same quality education no matter whether he or she lives in a rural village or a university town. The differences between weakest and strongest students are the smallest in the world, according to the most recent survey by the Organization for Economic Co-operation and Development (OECD). “Equality is the most important word in Finnish education. All political parties on the right and left agree on this,” said Olli Luukkainen, president of Finland’s powerful teachers union.

      In stark contrast, there is no need for competition. All Finnish children need only take one exam, and get the same equal opportunities as the next because every school is publically funded and run by educators.

    12. Why Are Finland’s Schools Successful? The country’s achievements in education have other nations, especially the United States, doing their homework <img src="https://thumbs-prod.si-cdn.com/thzZYTv2Evhq3x8iHdcaakihfVE=/800x600/filters:no_upscale()/https://public-media.si-cdn.com/filer/cd/ee/cdee1c82-f8e3-4de4-983e-8599d4485745/finland-smiles-wr.jpg" alt="Kirkkojarvi School" itemprop="image"> "This is what we do every day," says Kirkkojarvi Comprehensive School principal Kari Louhivuori, "prepare kids for life." (Stuart Conway) By LynNell Hancock Smithsonian Magazine | Subscribe September 2011 AddThis Sharing ButtonsShare to FacebookFacebookShare to TwitterTwitterShare to RedditReddit78Share to PinterestPinterest997Share to LinkedInLinkedInShare to FlipboardFlipboardShare to EmailEmailShare to PrintPrintShare to MoreAddThis934 It was the end of term at Kirkkojarvi Comprehensive School in Espoo, a sprawling suburb west of Helsinki, when Kari Louhivuori, a veteran teacher and the school’s principal, decided to try something extreme—by Finnish standards. One of his sixth-grade students, a Kosovo-Albanian boy, had drifted far off the learning grid, resisting his teacher’s best efforts. The school’s team of special educators—including a social worker, a nurse and a psychologist—convinced Louhivuori that laziness was not to blame. So he decided to hold the boy back a year, a measure so rare in Finland it’s practically obsolete. function dispatchComscoreLoadedEvent(){ let event = new Event('MPlayerComscoreLoaded'); window.dispatchEvent(event); } !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=68)}([function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){e.exports=n(47)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";var r=n(21),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!==typeof window&&"undefined"!==typeof document},forEach:c,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]="object"===typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}},function(e,t,n){var r=n(48);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(49),i=n(3);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}},function(e,t,n){var r=n(42),i=n(43),o=n(18),a=n(44);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t,n){var r=n(39),i=n(40),o=n(18),a=n(41);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){var r=n(45);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){var r=n(50);function i(t,n,o){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){"use strict";e.exports=n(36)},function(e,t,n){"use strict";var r=n(14),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),y=u(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!y||!y[v])&&(!s||!s[v])){var m=p(n,v);try{c(t,v,m)}catch(b){}}}}return t}},function(e,t,n){"use strict";(function(e,r){var i,o=n(29);i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(o.a)(i);t.a=a}).call(this,n(37),n(38)(e))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,s=null;if(this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(i(n,"resize",r,!0),i(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),o(e,"resize",r,!0)),o(t,"scroll",r,!0),s&&s.disconnect()}),t!=(this.root&&this.root.ownerDocument||e)){var u=d(t);u&&this._monitorIntersections(u.ownerDocument)}}},r.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=d(n);if((n=i&&i.ownerDocument)==t)return!0}return!1})){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var o=d(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},r.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var i=r.element,o=s(i),a=this._rootContainsTarget(i),u=r.entry,c=e&&a&&this._computeTargetAndRootIntersection(i,o,t),l=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:o,rootBounds:t,intersectionRect:c});u?e&&a?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(t,n,r){if("none"!=window.getComputedStyle(t).display){for(var i=n,o=l(t),c=!1;!c&&o;){var d=null,p=1==o.nodeType?window.getComputedStyle(o):{};if("none"==p.display)return null;if(o==this.root||9==o.nodeType)if(c=!0,o==this.root||o==e)d=r;else{var f=l(o),h=f&&s(f),y=f&&this._computeTargetAndRootIntersection(f,h,r);h&&y?(o=f,d=u(h,y)):(o=null,i=null)}else{var g=o.ownerDocument;o!=g.body&&o!=g.documentElement&&"visible"!=p.overflow&&(d=s(o))}if(d&&(i=a(d,i)),!i)break;o=o&&l(o)}return i}},r.prototype._getRootRect=function(){var t;if(this.root)t=s(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||c(e,this.root)},r.prototype._rootContainsTarget=function(t){return c(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},r.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},r.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=n}function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function i(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function o(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function a(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),o=Math.min(e.right,t.right),a=o-i,s=r-n;return a>=0&&s>=0&&{top:n,bottom:r,left:i,right:o,width:a,height:s}||null}function s(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function c(e,t){for(var n=t;n;){if(n==e)return!0;n=l(n)}return!1}function l(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?d(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function d(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}}()},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(6);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(6),i=n(57),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=n(25):"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n(25)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){s.headers[e]={}}),r.forEach(["post","put","patch"],function(e){s.headers[e]=r.merge(o)}),e.exports=s}).call(this,n(19))},function(e,t,n){"use strict";var r=n(6),i=n(58),o=n(22),a=n(60),s=n(63),u=n(64),c=n(26);e.exports=function(e){return new Promise(function(t,l){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",y=e.auth.password||"";p.Authorization="Basic "+btoa(h+":"+y)}var g=a(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};i(t,l,r),f=null}},f.onabort=function(){f&&(l(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){l(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=n(65),m=(e.withCredentials||u(g))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;m&&(p[e.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(p,function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),l(e),f=null)}),void 0===d&&(d=null),f.send(d)})}},function(e,t,n){"use strict";var r=n(59);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])}),r.forEach(o,function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):"undefined"!==typeof e[i]&&(n[i]=e[i])}),r.forEach(a,function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])});var s=i.concat(o).concat(a),u=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(u,function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=function(){return function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"}}(),o=function(){return function(t){this.version=t,this.type="node",this.name="node",this.os=e.platform}}(),a=function(){return function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"}}(),s=function(){return function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}}(),u=function(){return function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}}(),c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=3,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(t){return t?y(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!==typeof navigator?y(navigator.userAgent):"undefined"!==typeof e&&e.version?new o(e.version.slice(1)):null}function h(e){return""!==e&&d.reduce(function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]},!1)}function y(e){var t=h(e);if(!t)return null;var n=t[0],o=t[1];if("searchbot"===n)return new s;var u=o[1]&&o[1].split(/[._]/).slice(0,3);u?u.length<l&&(u=r(u,function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(l-u.length))):u=[];var d=u.join("."),f=function(e){for(var t=0,n=p.length;t<n;t++){var r=p[t],i=r[0],o=r[1],a=o.exec(e);if(a)return i}return null}(e),y=c.exec(e);return y&&y[1]?new a(n,d,f,y[1]):new i(n,d,f)}}).call(this,n(19))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){e.exports=n(52)},function(e,t,n){e.exports=n(34)()},function(e,t,n){"use strict";var r=n(35);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case g:case c:return e;default:return t}}case o:return t}}}function E(e){return S(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||S(e)===d},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===s||e===h||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===O||e.$$typeof===_||e.$$typeof===m)},t.typeOf=S},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t){},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(M){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",y={};function g(){}function v(){}function m(){}var b={};b[o]=function(){return this};var O=Object.getPrototypeOf,_=O&&O(O(R([])));_&&_!==n&&r.call(_,o)&&(b=_);var S=m.prototype=g.prototype=Object.create(b);function E(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var n;this._invoke=function(i,o){function a(){return new t(function(n,a){!function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(u.arg)}(i,o,n,a)})}return n=n?n.then(a,a):a()}}function P(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return v.prototype=S.constructor=m,m.constructor=v,v.displayName=u(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},E(w.prototype),w.prototype[a]=function(){return this},e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(S),u(S,s,"Generator"),S[o]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(5);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e){e.exports=JSON.parse('{"name":"mplayer","version":"4.0.13","description":"minute media player","author":"minute media","private":true,"scripts":{"start":"yarn compile && PORT=2001 per-env","start:production":"npm run -s serve","start:development":"npm run -s dev","build":"preact build --no-prerender","serve":"preact build && serve build --single","dev":"preact watch","lint":"./node_modules/.bin/eslint --cache --ext .js,.ts,.tsx ./src/.","test":"jest","compile":"webpack","compile:production":"NODE_ENV=production webpack","compile:qa":"NODE_ENV=qa webpack"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.4","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-react-jsx":"^7.8.3","@babel/plugin-transform-runtime":"^7.9.0","@babel/preset-env":"^7.8.4","@babel/preset-react":"^7.8.3","@babel/preset-typescript":"^7.8.3","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.10.0","eslint":"^6.7.2","eslint-config-mm":"git+https://github.com/FTBpro/eslint-config-mm.git#v3.1","eslint-loader":"3.0.2","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jest-emotion":"^10.0.32","jest-preset-preact":"^1.0.0","per-env":"^1.0.2","preact-cli":"^3.0.0-rc.6","react":"^16.13.1","react-dom":"^16.13.1","serve":"^11.1.0"},"dependencies":{"@emotion/core":"^10.0.28","axios":"^0.19.2","babel-loader":"^8.0.6","detect-browser":"^5.1.0","emotion":"^10.0.27","enzyme":"^3.11.0","enzyme-adapter-preact-pure":"^2.2.0","hls.js":"^0.13.2","intersection-observer":"^0.8.0","jest-enzyme":"^7.1.2","jest-junit":"^10.0.0","preact":"^10.0.1","preact-render-to-string":"^5.1.8","react-redux":"^7.2.0","react-svg-loader":"^3.0.3","redux":"^4.0.5","redux-thunk":"^2.3.0","terser-webpack-plugin":"1.2.3","webpack":"^4.41.6","webpack-cli":"^3.3.11"}}')},function(e,t,n){"use strict";var r=n(6),i=n(21),o=n(53),a=n(27);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=s(n(24));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n(28),u.CancelToken=n(66),u.isCancel=n(23),u.all=function(e){return Promise.all(e)},u.spread=n(67),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(6),i=n(22),o=n(54),a=n(55),s=n(27);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=u},function(e,t,n){"use strict";var r=n(6);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){"use strict";var r=n(6),i=n(56),o=n(23),a=n(24);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(61),i=n(62);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(6),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(6);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(6);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(28);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"render",function(){return B}),n.d(r,"hydrate",function(){return H}),n.d(r,"createElement",function(){return b}),n.d(r,"h",function(){return b}),n.d(r,"Fragment",function(){return S}),n.d(r,"createRef",function(){return _}),n.d(r,"isValidElement",function(){return a}),n.d(r,"Component",function(){return E}),n.d(r,"cloneElement",function(){return q}),n.d(r,"createContext",function(){return W}),n.d(r,"toChildArray",function(){return R}),n.d(r,"__u",function(){return U}),n.d(r,"options",function(){return o});var i={};n.r(i),n.d(i,"useState",function(){return te}),n.d(i,"useReducer",function(){return ne}),n.d(i,"useEffect",function(){return re}),n.d(i,"useLayoutEffect",function(){return ie}),n.d(i,"useRef",function(){return oe}),n.d(i,"useImperativeHandle",function(){return ae}),n.d(i,"useMemo",function(){return se}),n.d(i,"useCallback",function(){return ue}),n.d(i,"useContext",function(){return ce}),n.d(i,"useDebugValue",function(){return le}),n.d(i,"useErrorBoundary",function(){return de});var o,a,s,u,c,l,d,p=n(0),f=n.n(p),h={},y=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var r,i,o,a=arguments,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return O(e,s,r,i,null)}function O(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i};return null==i&&(a.__v=a),null!=o.vnode&&o.vnode(a),a}function _(){return{current:null}}function S(e){return e.children}function E(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function P(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return P(e)}}function T(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!A.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||u)(A)}function A(){for(var e;A.__r=s.length;)e=s.sort(function(e,t){return e.__v.__b-t.__v.__b}),s=[],e.some(function(e){var t,n,r,i,o,a,s;e.__d&&(a=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=v({},o)).__v=r,i=L(s,o,r,t.__n,void 0!==s.ownerSVGElement,null,n,null==a?w(o):a),x(n,o),i!=a&&P(o)))})}function C(e,t,n,r,i,o,a,s,u,c){var l,d,p,f,g,v,b,_=r&&r.__k||y,E=_.length;for(u==h&&(u=null!=a?a[0]:E?w(r,0):null),n.__k=[],l=0;l<t.length;l++)if(null!=(f=n.__k[l]=null==(f=t[l])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f?O(null,f,null,null,f):Array.isArray(f)?O(S,{children:f},null,null,null):null!=f.__e||null!=f.__c?O(f.type,f.props,f.key,null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=_[l])||p&&f.key==p.key&&f.type===p.type)_[l]=void 0;else for(d=0;d<E;d++){if((p=_[d])&&f.key==p.key&&f.type===p.type){_[d]=void 0;break}p=null}g=L(e,f,p=p||h,i,o,a,s,u,c),(d=f.ref)&&p.ref!=d&&(b||(b=[]),p.ref&&b.push(p.ref,null,f),b.push(d,f.__c||g,f)),null!=g?(null==v&&(v=g),u=D(e,f,p,_,a,g,u),c||"option"!=n.type?"function"==typeof n.type&&(n.__d=u):e.value=""):u&&p.__e==u&&u.parentNode!=e&&(u=w(p))}if(n.__e=v,null!=a&&"function"!=typeof n.type)for(l=a.length;l--;)null!=a[l]&&m(a[l]);for(l=E;l--;)null!=_[l]&&U(_[l],_[l]);if(b)for(l=0;l<b.length;l++)j(b[l],b[++l],b[++l])}function R(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){R(e,t)}):t.push(e)),t}function D(e,t,n,r,i,o,a){var s,u,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(i==n||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),s=null;else{for(u=a,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,a),s=a}return void 0!==s?s:o.nextSibling}function M(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function I(e,t,n,r,i){var o,a;if(i&&"className"==t&&(t="class"),"style"===t)if("string"==typeof n)e.style=n;else{if("string"==typeof r&&(e.style=r=""),r)for(t in r)n&&t in n||M(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||M(e.style,t,n[t])}else"o"===t[0]&&"n"===t[1]?(o=t!==(t=t.replace(/Capture$/,"")),(a=t.toLowerCase())in e&&(t=a),t=t.slice(2),e.l||(e.l={}),e.l[t]=n,n?r||e.addEventListener(t,k,o):e.removeEventListener(t,k,o)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&!i&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function k(e){this.l[e.type](o.event?o.event(e):e)}function N(e,t,n){var r,i;for(r=0;r<e.__k.length;r++)(i=e.__k[r])&&(i.__=e,i.__e&&("function"==typeof i.type&&i.__k.length>1&&N(i,t,n),t=D(n,i,i,e.__k,null,i.__e,t),"function"==typeof e.type&&(e.__d=t)))}function L(e,t,n,r,i,a,s,u,c){var l,d,p,f,h,y,g,m,b,O,_,w=t.type;if(void 0!==t.constructor)return null;(l=o.__b)&&l(t);try{e:if("function"==typeof w){if(m=t.props,b=(l=w.contextType)&&r[l.__c],O=l?b?b.props.value:l.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(m,O):(t.__c=d=new E(m,O),d.constructor=w,d.render=F),b&&b.sub(d),d.props=m,d.state||(d.state={}),d.context=O,d.__n=r,p=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=w.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=v({},d.__s)),v(d.__s,w.getDerivedStateFromProps(m,d.__s))),f=d.props,h=d.state,p)null==w.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==w.getDerivedStateFromProps&&m!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,O),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,O)||t.__v===n.__v){d.props=m,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,d.__h.length&&s.push(d),N(t,u,e);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,O),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,y)})}d.context=O,d.props=m,d.state=d.__s,(l=o.__r)&&l(t),d.__d=!1,d.__v=t,d.__P=e,l=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(r=v(v({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(f,h)),_=null!=l&&l.type==S&&null==l.key?l.props.children:l,C(e,Array.isArray(_)?_:[_],t,n,r,i,a,s,u,c),d.base=t.__e,d.__h.length&&s.push(d),g&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=V(n.__e,t,n,r,i,a,s,c);(l=o.diffed)&&l(t)}catch(e){t.__v=null,o.__e(e,t,n)}return t.__e}function x(e,t){o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function V(e,t,n,r,i,o,a,s){var u,c,l,d,p,f=n.props,g=t.props;if(i="svg"===t.type||i,null!=o)for(u=0;u<o.length;u++)if(null!=(c=o[u])&&((null===t.type?3===c.nodeType:c.localName===t.type)||e==c)){e=c,o[u]=null;break}if(null==e){if(null===t.type)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,g.is&&{is:g.is}),o=null,s=!1}if(null===t.type)f!==g&&e.data!==g&&(e.data=g);else{if(null!=o&&(o=y.slice.call(e.childNodes)),l=(f=n.props||h).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=o)for(f={},p=0;p<e.attributes.length;p++)f[e.attributes[p].name]=e.attributes[p].value;(d||l)&&(d&&l&&d.__html==l.__html||(e.innerHTML=d&&d.__html||""))}(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||I(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||I(e,o,t[o],n[o],r)})(e,g,f,i,s),d?t.__k=[]:(u=t.props.children,C(e,Array.isArray(u)?u:[u],t,n,r,"foreignObject"!==t.type&&i,o,a,h,s)),s||("value"in g&&void 0!==(u=g.value)&&u!==e.value&&I(e,"value",u,f.value,!1),"checked"in g&&void 0!==(u=g.checked)&&u!==e.checked&&I(e,"checked",u,f.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function U(e,t,n){var r,i,a;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||j(r,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&U(r[a],t,n);null!=i&&m(i)}function F(e,t,n){return this.constructor(e,n)}function B(e,t,n){var r,i,a;o.__&&o.__(e,t),i=(r=n===l)?null:n&&n.__k||t.__k,e=b(S,null,[e]),a=[],L(t,(r?t:n||t).__k=e,i||h,h,void 0!==t.ownerSVGElement,n&&!r?[n]:i?null:t.childNodes.length?y.slice.call(t.childNodes):null,a,n||h,r),x(a,e)}function H(e,t){B(e,t,l)}function q(e,t,n){var r,i,o,a=arguments,s=v({},e.props);for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);return null!=n&&(s.children=n),O(e.type,s,r||e.key,i||e.ref,null)}function W(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e,n,r){return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(T)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}o={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return T(n.__E=n)}catch(t){e=t}throw e}},a=function(e){return null!=e&&void 0===e.constructor},E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),T(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),T(this))},E.prototype.render=S,s=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,A.__r=0,l=h,d=0;var z,G,$,K=0,Y=[],Z=o.__r,X=o.diffed,J=o.__c,Q=o.unmount;function ee(e,t){o.__h&&o.__h(G,e,K||t),K=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function te(e){return K=1,ne(ve,e)}function ne(e,t,n){var r=ee(z++,2);return r.t=e,r.__c||(r.__c=G,r.__=[n?n(t):ve(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}]),r.__}function re(e,t){var n=ee(z++,3);!o.__s&&ge(n.__H,t)&&(n.__=e,n.__H=t,G.__H.__h.push(n))}function ie(e,t){var n=ee(z++,4);!o.__s&&ge(n.__H,t)&&(n.__=e,n.__H=t,G.__h.push(n))}function oe(e){return K=5,se(function(){return{current:e}},[])}function ae(e,t,n){K=6,ie(function(){"function"==typeof e?e(t()):e&&(e.current=t())},null==n?n:n.concat(e))}function se(e,t){var n=ee(z++,7);return ge(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function ue(e,t){return K=8,se(function(){return e},t)}function ce(e){var t=G.context[e.__c],n=ee(z++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function le(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)}function de(e){var t=ee(z++,10),n=te();return t.__=e,G.componentDidCatch||(G.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function pe(){Y.some(function(e){if(e.__P)try{e.__H.__h.forEach(he),e.__H.__h.forEach(ye),e.__H.__h=[]}catch(t){return e.__H.__h=[],o.__e(t,e.__v),!0}}),Y=[]}o.__r=function(e){Z&&Z(e),z=0;var t=(G=e.__c).__H;t&&(t.__h.forEach(he),t.__h.forEach(ye),t.__h=[])},o.diffed=function(e){X&&X(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Y.push(t)&&$===o.requestAnimationFrame||(($=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))})(pe))},o.__c=function(e,t){t.some(function(e){try{e.__h.forEach(he),e.__h=e.__h.filter(function(e){return!e.__||ye(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],o.__e(n,e.__v)}}),J&&J(e,t)},o.unmount=function(e){Q&&Q(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(he)}catch(e){o.__e(e,t.__v)}};var fe="function"==typeof requestAnimationFrame;function he(e){"function"==typeof e.u&&e.u()}function ye(e){e.u=e.__()}function ge(e,t){return!e||t.some(function(t,n){return t!==e[n]})}function ve(e,t){return"function"==typeof t?t(e):t}function me(e,t){for(var n in t)e[n]=t[n];return e}function be(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Oe(e){this.props=e}(Oe.prototype=new E).isPureReactComponent=!0,Oe.prototype.shouldComponentUpdate=function(e,t){return be(this.props,e)||be(this.state,t)};var _e=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_e&&_e(e)};var Se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Ee=function(e,t){return e?R(R(e).map(t)):null},we={map:Ee,forEach:Ee,count:function(e){return e?R(e).length:0},only:function(e){var t=R(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:R},Pe=o.__e;function Te(e){return e&&((e=me({},e)).__c=null,e.__k=e.__k&&e.__k.map(Te)),e}function Ae(e){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(Ae)),e}function Ce(){this.__u=0,this.t=null,this.__b=null}function Re(e){var t=e.__.__c;return t&&t.o&&t.o(e)}function De(){this.u=null,this.i=null}o.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t.__c);Pe(e,t,n)},(Ce.prototype=new E).__c=function(e,t){var n=this;null==n.t&&(n.t=[]),n.t.push(t);var r=Re(n.__v),i=!1,o=function(){i||(i=!0,t.componentWillUnmount=t.__c,r?r(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){o(),t.__c&&t.__c()};var a=function(){var e;if(!--n.__u)for(n.__v.__k[0]=Ae(n.state.o),n.setState({o:n.__b=null});e=n.t.pop();)e.forceUpdate()};n.__u++||n.setState({o:n.__b=n.__v.__k[0]}),e.then(o,o)},Ce.prototype.componentWillUnmount=function(){this.t=[]},Ce.prototype.render=function(e,t){return this.__b&&(this.__v.__k&&(this.__v.__k[0]=Te(this.__b)),this.__b=null),[b(S,null,t.o?null:e.children),t.o&&e.fallback]};var Me=function(e,t,n){if(++n[1]===n[0]&&e.i.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.i.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Ie(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var t=this,n=e.l,r=b(Ie,{context:t.context},e.__v);t.componentWillUnmount=function(){var e=t.s.parentNode;e&&e.removeChild(t.s),U(t.v)},t.l&&t.l!==n&&(t.componentWillUnmount(),t.h=!1),e.__v?t.h?(n.__k=t.__k,B(r,n),t.__k=n.__k):(t.s=document.createTextNode(""),t.__k=n.__k,H("",n),n.appendChild(t.s),t.h=!0,t.l=n,B(r,n,t.s),n.__k=t.__k,t.__k=t.s.__k):t.h&&t.componentWillUnmount(),t.v=r}(De.prototype=new E).o=function(e){var t=this,n=Re(t.__v),r=t.i.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Me(t,e,r)):i()};n?n(o):o()}},De.prototype.render=function(e){this.u=null,this.i=new Map;var t=R(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.i.set(t[n],this.u=[1,0,this.u]);return e.children},De.prototype.componentDidUpdate=De.prototype.componentDidMount=function(){var e=this;this.i.forEach(function(t,n){Me(e,n,t)})};var Ne=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;E.prototype.isReactComponent={};var Le="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;var xe=o.event;function Ve(e,t){e["UNSAFE_"+t]&&!e[t]&&Object.defineProperty(e,t,{get:function(){return this["UNSAFE_"+t]},set:function(e){this["UNSAFE_"+t]=e}})}o.event=function(e){xe&&(e=xe(e)),e.persist=function(){};var t=!1,n=!1,r=e.stopPropagation;e.stopPropagation=function(){r.call(e),t=!0};var i=e.preventDefault;return e.preventDefault=function(){i.call(e),n=!0},e.isPropagationStopped=function(){return t},e.isDefaultPrevented=function(){return n},e.nativeEvent=e};var je,Ue={configurable:!0,get:function(){return this.class}},Fe=o.vnode;o.vnode=function(e){e.$$typeof=Le;var t=e.type,n=e.props;if(t){var r;if(n.class!=n.className&&(Ue.enumerable="className"in n,null!=n.className&&(n.class=n.className),Object.defineProperty(n,"className",Ue)),"function"!=typeof t)for(r in n.defaultValue&&void 0!==n.value&&(n.value||0===n.value||(n.value=n.defaultValue),n.defaultValue=void 0),"select"===t&&n.multiple&&Array.isArray(n.value)&&(R(n.children).forEach(function(e){-1!=n.value.indexOf(e.props.value)&&(e.props.selected=!0)}),n.value=void 0),!0===n.download&&(n.download=""),n){var i=Ne.test(r);i&&(e.props[r.replace(/[A-Z0-9]/,"-$&").toLowerCase()]=n[r]),(i||null===n[r])&&(n[r]=void 0)}else t.prototype&&!t.prototype.p&&(t.prototype.p=!0,Ve(t.prototype,"componentWillMount"),Ve(t.prototype,"componentWillReceiveProps"),Ve(t.prototype,"componentWillUpdate"));!function(t){var n=e.type,r=e.props;if(r&&"string"==typeof n){var i={};for(var o in r)/^on(Ani|Tra|Tou)/.test(o)&&(r[o.toLowerCase()]=r[o],delete r[o]),i[o.toLowerCase()]=o;if(i.ondoubleclick&&(r.ondblclick=r[i.ondoubleclick],delete r[i.ondoubleclick]),i.onbeforeinput&&(r.onbeforeinput=r[i.onbeforeinput],delete r[i.onbeforeinput]),i.onchange&&("textarea"===n||"input"===n.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var a=i.oninput||"oninput";r[a]||(r[a]=r[i.onchange],delete r[i.onchange])}}}()}Fe&&Fe(e)};var Be=o.__r;o.__r=function(e){Be&&Be(e),je=e.__c};function He(e){return!!e&&e.$$typeof===Le}var qe=function(e,t){return e(t)},We={useState:te,useReducer:ne,useEffect:re,useLayoutEffect:ie,useRef:oe,useImperativeHandle:ae,useMemo:se,useCallback:ue,useContext:ce,useDebugValue:le,version:"16.8.0",Children:we,render:function(e,t,n){if(null==t.__k)for(;t.firstChild;)t.removeChild(t.firstChild);return B(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return H(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(B(null,e),!0)},createPortal:function(e,t){return b(ke,{__v:e,l:t})},createElement:b,createContext:W,createFactory:function(e){return b.bind(null,e)},cloneElement:function(e){return He(e)?q.apply(null,arguments):e},createRef:_,Fragment:S,isValidElement:He,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:E,PureComponent:Oe,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:be(this.props,e)}function r(t){return this.shouldComponentUpdate=n,b(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=me({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Se,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:qe,StrictMode:S,Suspense:Ce,SuspenseList:De,lazy:function(e){var t,n,r;function i(i){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return b(n,i)}return i.displayName="Lazy",i.__f=!0,i},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return je.__n[e.__c].props.value}}}}},ze=(n(33),We.createContext(null));var Ge=function(e){e()},$e=function(){return Ge},Ke={notify:function(){}};var Ye=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=Ke,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=$e(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Ke)},e}();var Ze=function(e){var t=e.store,n=e.context,r=e.children,i=se(function(){var e=new Ye(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}},[t]),o=se(function(){return t.getState()},[t]);re(function(){var e=i.subscription;return e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[i,o]);var a=n||ze;return We.createElement(a.Provider,{value:i},r)};function Xe(){return(Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Je(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Qe=n(15),et=n.n(Qe),tt=n(14),nt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?ie:re,rt=[],it=[null,null];function ot(e,t){var n=e[1];return[t.payload,n+1]}function at(e,t,n){nt(function(){return e.apply(void 0,t)},n)}function st(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function ut(e,t,n,r,i,o,a,s,u,c){if(e){var l=!1,d=null,p=function(){if(!l){var e,n,p=t.getState();try{e=r(p,i.current)}catch(f){n=f,d=f}n||(d=null),e===o.current?a.current||u():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var ct=function(){return[null,0]};function lt(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,o=n.methodName,a=void 0===o?"connectAdvanced":o,s=n.renderCountProp,u=void 0===s?void 0:s,c=n.shouldHandleStateChanges,l=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,f=(n.withRef,n.forwardRef),h=void 0!==f&&f,y=n.context,g=void 0===y?ze:y,v=Je(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),m=g;return function(t){var n=t.displayName||t.name||"Component",r=i(n),o=Xe({},v,{getDisplayName:i,methodName:a,renderCountProp:u,shouldHandleStateChanges:l,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=v.pure;var c=s?se:function(e){return e()};function d(n){var r=se(function(){var e=n.reactReduxForwardedRef,t=Je(n,["reactReduxForwardedRef"]);return[n.context,e,t]},[n]),i=r[0],a=r[1],s=r[2],u=se(function(){return i&&i.Consumer&&Object(tt.isContextConsumer)(We.createElement(i.Consumer,null))?i:m},[i,m]),d=ce(u),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var f=p?n.store:d.store,h=se(function(){return function(t){return e(t.dispatch,o)}(f)},[f]),y=se(function(){if(!l)return it;var e=new Ye(f,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,p,d]),g=y[0],v=y[1],b=se(function(){return p?d:Xe({},d,{subscription:g})},[p,d,g]),O=ne(ot,rt,ct),_=O[0][0],S=O[1];if(_&&_.error)throw _.error;var E=oe(),w=oe(s),P=oe(),T=oe(!1),A=c(function(){return P.current&&s===w.current?P.current:h(f.getState(),s)},[f,_,s]);at(st,[w,E,T,s,A,P,v]),at(ut,[l,f,g,h,w,E,T,P,v,S],[f,g,h]);var C=se(function(){return We.createElement(t,Xe({},A,{ref:a}))},[a,t,A]);return se(function(){return l?We.createElement(u.Provider,{value:b},C):C},[u,C,b])}var f=s?We.memo(d):d;if(f.WrappedComponent=t,f.displayName=r,h){var y=We.forwardRef(function(e,t){return We.createElement(f,Xe({},e,{reactReduxForwardedRef:t}))});return y.displayName=r,y.WrappedComponent=t,et()(y,t)}return et()(f,t)}}function dt(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function pt(e,t){if(dt(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!dt(e[n[i]],t[n[i]]))return!1;return!0}var ft=n(16),ht=function(){return Math.random().toString(36).substring(7).split("").join(".")},yt={INIT:"@@redux/INIT"+ht(),REPLACE:"@@redux/REPLACE"+ht(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ht()}};function gt(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function vt(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(vt)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return c(),s.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!gt(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:yt.INIT}),(r={dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,p({type:yt.REPLACE})}})[ft.a]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[ft.a]=function(){return this},e},r}function mt(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function bt(e,t){return function(){return t(e.apply(this,arguments))}}function Ot(e,t){if("function"===typeof e)return bt(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"===typeof i&&(n[r]=bt(i,t))}return n}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function Et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(n,!0).forEach(function(t){_t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n,{dispatch:r=Et.apply(void 0,o)(n.dispatch)})}}}function Pt(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Tt(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function At(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Tt(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=Tt(i),i=r(t,n)),i},r}}var Ct=[function(e){return"function"===typeof e?At(e):void 0},function(e){return e?void 0:Pt(function(e){return{dispatch:e}})},function(e){return e&&"object"===typeof e?Pt(function(t){return Ot(e,t)}):void 0}];var Rt=[function(e){return"function"===typeof e?At(e):void 0},function(e){return e?void 0:Pt(function(){return{}})}];function Dt(e,t,n){return Xe({},n,{},e,{},t)}var Mt=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var u=e(t,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return Dt}}];function It(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function kt(e,t,n,r,i){var o,a,s,u,c,l=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function h(i,f){var h=!d(f,a),y=!l(i,o);return o=i,a=f,h&&y?(s=e(o,a),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):y?function(){var t=e(o,a),r=!p(t,s);return s=t,r&&(c=n(s,u,a)),c}():c}return function(i,l){return f?h(i,l):(s=e(o=i,a=l),u=t(r,a),c=n(s,u,a),f=!0,c)}}function Nt(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Je(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),u=i(e,o);return(o.pure?kt:It)(a,s,u,e,o)}function Lt(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function xt(e,t){return e===t}function Vt(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?lt:n,i=t.mapStateToPropsFactories,o=void 0===i?Rt:i,a=t.mapDispatchToPropsFactories,s=void 0===a?Ct:a,u=t.mergePropsFactories,c=void 0===u?Mt:u,l=t.selectorFactory,d=void 0===l?Nt:l;return function(e,t,n,i){void 0===i&&(i={});var a=i,u=a.pure,l=void 0===u||u,p=a.areStatesEqual,f=void 0===p?xt:p,h=a.areOwnPropsEqual,y=void 0===h?pt:h,g=a.areStatePropsEqual,v=void 0===g?pt:g,m=a.areMergedPropsEqual,b=void 0===m?pt:m,O=Je(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=Lt(e,o,"mapStateToProps"),S=Lt(t,s,"mapDispatchToProps"),E=Lt(n,c,"mergeProps");return r(d,Xe({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:S,initMergeProps:E,pure:l,areStatesEqual:f,areOwnPropsEqual:y,areStatePropsEqual:v,areMergedPropsEqual:b},O))}}var jt=Vt();Ge=qe;var Ut={BORDER_RADIUS:{EXTRA_TINY:"1px",TINY:"2px",SMALL:"3px",MEDIUM:"4px"},COLORS:{BLACK:"#000000",WHITE:"#ffffff",TRANSPARENT:"transparent",GRADIENT_BLACK:"linear-gradient(to bottom, rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.62) 19%, rgba(0, 0, 0, 0))",LIGHT_GRAY_TRANSPARENT:"rgba(255, 255, 255, 0.23)",GRAY_TRANSPARENT:"rgba(143, 143, 143, 0.46)",BLACK_TRANSPARENT:"rgba(0, 0, 0, 0.7)",BLACK_80_OPACITY:"rgba(0, 0, 0, 0.8)",BLUR_TRANSPARENT:"rgba(0, 0, 0, 0.48)",GRAY:"rgba(0, 0, 0, 0.35)",SELECTED:"rgba(255, 255, 255, 0.1)",SCROLL_BAR:"rgba(255, 255, 255, 0.64)",TRANSPARENT_30_OPACITY:"rgba(0, 0, 0, 0.31)"},TEXT_FONT_FAMILY:{LATO:"Lato"},FONT_SIZE:{EXTRA_TINY:"8px",TINY:"10px",EXTRA_SMALL:"12px",SMALL:"14px",MEDIUM:"18px"}},Ft="179px",Bt="269px",Ht="180px",qt="270px",Wt="300px",zt="301px",Gt="500px",$t="501px",Kt="800px",Yt="801px";function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jt=function e(t){return t&&t.length>0?t.reduce(function(t,n){return n?Array.isArray(n)?Xt(Xt({},t),e(n)):Xt(Xt({},t),n):t},{}):null},Qt=function(e){return function(t){t({type:"[CORE] change video tag status",payload:e})}},en=function(e){return function(t){t({type:"[CORE] update video current fragment position",payload:e})}},tn=function(e){return function(t){t({type:"[CORE] update video current position",payload:e})}},nn=function(e){return function(t){t({type:"[CORE] update video current buffered time",payload:e})}},rn=function(e){return function(t){t({type:"[CORE] update video current duration",payload:e})}},on=function(e,t){return function(n){n({type:"[COMMON] set pending video status",payload:{pendingStatusObject:{type:e,value:t}}})}},an=function(e){return function(t){t({type:"[COMMON] set mute video",payload:e})}},sn=function(e){return function(t){t({type:"[COMMON] set volume",payload:e})}},un=function(e){return function(t){t({type:"[CORE] change loading player status",payload:e})}},cn=function(e){return function(t){t({type:"[COMMON] show black screen with loader",payload:e})}},ln=function(e){return function(t){t({type:"[CORE] set player size",payload:e})}},dn=function(e){return function(t){t({type:"[COMMON] set error message",payload:e})}},pn={mediaData:function(e){return e.mediaData},playerData:function(e){return e.playerData},dependenciesLoadingStatus:function(e){return e.dependenciesLoadingStatus},brandingData:function(e){return e.brandingData},anchorOptions:function(e){return e.anchorOptions},semanticOptions:function(e){return e.semanticOptions},monetization:function(e){return e.monetization},userInteraction:function(e){return e.userInteraction},splitView:function(e){return e.splitView},discovery:function(e){return e.discovery}},fn=pn.playerData,hn={playerId:function(e){return fn(e).playerId},videoTagStatus:function(e){return fn(e).videoTagStatus},pendingVideoTagStatus:function(e){return fn(e).pendingVideoTagStatus},currentVideoTime:function(e){return fn(e).currentVideoTime},currentVideoTimeFragment:function(e){return fn(e).currentVideoTimeFragment},currentVideoDuration:function(e){return fn(e).currentVideoDuration},currentVideoBufferedTime:function(e){return fn(e).currentVideoBufferedTime},playerMode:function(e){return fn(e).playerMode},playerSettings:function(e){return fn(e).playerSettings},playbackMethod:function(e){return fn(e).playbackMethod},playerVisibility:function(e){return fn(e).playerVisibility},playerPlaceholderVisibility:function(e){return fn(e).playerPlaceholderVisibility},playerInstanceUniqId:function(e){return fn(e).playerInstanceUniqId},showBlackScreen:function(e){return fn(e).loader.showBlackScreen},playerSize:function(e){return fn(e).playerSize},errorMessage:function(e){return fn(e).errorMessage},loadingPlayer:function(e){return fn(e).loadingPlayer}},yn=hn.playerSettings,gn={volume:function(e){return yn(e).volume},muted:function(e){return yn(e).muted},quality:function(e){return yn(e).quality},speed:function(e){return yn(e).speed},selectedSettingsCategory:function(e){return yn(e).selectedSettingsCategory},fullscreen:function(e){return yn(e).fullscreen},pendingFullscreenRequest:function(e){return this.fullscreen(e).pendingFullscreenRequest},isFullscreenOn:function(e){return this.fullscreen(e).isFullscreenOn}},vn=function(e){return"".concat("mplayer-monetization-placeholder","-").concat(e)},mn=function(e){return"".concat("mplayer-player-placeholder","-").concat(e)},bn=function(e){return"".concat("mplayer-player-container","-").concat(e)},On=function(e){return"".concat("mplayer-controls-placeholder","-").concat(e)},_n=function(e){return"".concat("mplayer-split-view-placeholder","-").concat(e)},Sn=function(e){return"".concat("mplayer-discovery-placeholder","-").concat(e)},En=function(e){return"".concat("mplayer-content-video","-").concat(e)},wn=function(e){return"".concat("mplayer","-").concat("error-page-message","-").concat(e)},Pn=function(e){return"".concat("mplayer","-").concat("loader","-").concat(e)},Tn=function(e){return"".concat("mplayer","-").concat("mplayer-close-bar-placeholder","-").concat(e)},An=pn.mediaData,Cn={mediaId:function(e){return An(e).mediaId},mediaType:function(e){return An(e).mediaType},videoList:function(e){return An(e).videoList},videoData:function(e){return An(e).videoData},activeVideoIndex:function(e){return An(e).activeVideoIndex},mediaRequest:function(e){return An(e).mediaRequest},mediaLoadingError:function(e){return An(e).mediaLoadingError}},Rn=Cn.videoData,Dn={creator:function(e){return Rn(e).creator},description:function(e){return Rn(e).description},duration:function(e){return Rn(e).duration},externalId:function(e){return Rn(e).externalId},index:function(e){return Rn(e).index},mediaId:function(e){return Rn(e).mediaId},provider:function(e){return Rn(e).provider},sources:function(e){return Rn(e).sources},tags:function(e){return Rn(e).tags},thumbnail:function(e){return Rn(e).thumbnail},title:function(e){return Rn(e).title},showTitle:function(e){return Rn(e).showTitle}},Mn=n(11),In=n.n(Mn);function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return se(function(){return e.apply(void 0,In()(t))},[e,t])}var Nn={root:{height:"100%",left:0,display:"block",width:"100%"}},Ln=function(){return{playerStyle:[Nn.root]}},xn=n(30),Vn=Object(xn.a)(),jn=function(e){return"undefined"===typeof e},Un=function(e){return jn(e)||null===e||0===e.length},Fn=function(){return null!==navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i)},Bn=function(){return"iOS"===Vn.os},Hn=function(e){return Math.floor(10*e)/10},qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0";return parseInt(e,10)/1e3},Wn=function(e,t){return jn(e)||jn(t)?0:e>t?1:-1},zn=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout(function(){n=null,e(i)},t)}},Gn=function(e){var t=e.clientWidth*(9/16),n=e.clientHeight;return Math.abs(t-n)>2?t:n},$n=function(e){return function(e){return!e.dataLayer||Array.isArray(e.dataLayer)}(e)?"dataLayer":"mmVideoDataLayer"},Kn=function(e){var t=ue(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]);re(function(){t()},[t]),re(function(){var e=zn(t,150);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[t])},Yn=pn.splitView,Zn=function(e){return Yn(e).splitViewRatio},Xn={GENERAL_ERROR:"An error has occurred, please try again later",VIDEO_ERROR:"The video is currently unavailable"},Jn=jt(function(e,t){return{thumbnail:Dn.thumbnail(e),playerId:t.playerId,muted:gn.muted(e),volume:gn.volume(e),currentVideoTime:hn.currentVideoTime(e),playbackMethod:hn.playbackMethod(e),splitViewRatio:Zn(e),playerSize:hn.playerSize(e),isFullscreenOn:gn.isFullscreenOn(e),playerMode:hn.playerMode(e),speed:gn.speed(e)}},function(e){return Ot({updateVideoTagStatus:Qt,updateVideoTime:tn,updateVideoTimeFragment:en,changeLoadingPlayerStatus:un,showBlackScreenLoader:cn,updateVideoDuration:rn,updateMute:an,updateVolume:sn,updateCurrentVideoBufferedTime:nn,setPlayerSize:ln,onErrorMessage:dn},e)})(function(e){var t=e.thumbnail,n=e.playerId,r=e.updateVideoTagStatus,i=e.updateVideoTime,o=e.updateCurrentVideoBufferedTime,a=e.muted,s=e.volume,u=e.currentVideoTime,c=e.playbackMethod,l=e.changeLoadingPlayerStatus,d=e.showBlackScreenLoader,p=e.updateVideoDuration,f=e.updateMute,h=e.updateVolume,y=e.updateVideoTimeFragment,g=e.setPlayerSize,v=e.splitViewRatio,m=e.playerSize,O=e.isFullscreenOn,_=e.playerMode,S=e.onErrorMessage,E=e.speed,w=oe(null),P=!Un(v),T=kn(Ln,[]).playerStyle,A=document.getElementById(bn(n));re(function(){w.current.playbackRate=E},[E]),Kn(function(){if(!Un(A)){var e=function(e,t,n,r,i){var o=e.style.width;return n?"desktop"===r||"miniDesktop"===r||"stickyDesktop"===r?"extraLarge":"medium":"100%"===o?t:i&&o<=Bt?"extraSmall":i&&o>=qt&&o<=Wt?"small":o<=Ft?"extraSmall":o>=Ht&&o<=Wt?"small":o>=zt&&o<=Gt?"medium":o>=$t&&o<=Kt?"large":o>=Yt?"extraLarge":null}(A,m,O,_,P);Un(e)||g(e)}},[A,m,O,_,P,g]);var C="autoplay"===c?"":t;return b("video",{ref:w,style:Jt(T),key:En(n),id:En(n),onEnded:function(){r("complete")},onDurationChange:function(e){var t,n=e.target.duration;t=n,Number.isNaN(t)||"number"!==typeof t||p(n)},onTimeUpdate:function(e){var t=e.target.currentTime;y(t);var n=parseInt(t.toString(),10);n!==u&&i(n)},onVolumeChange:function(e){var t=e.target,n=t.volume,r=t.muted;n!==s&&h(n),a!==r&&f(r)},onPause:function(){r("paused")},onPlaying:function(){r("playing")},onError:function(){r("error"),S(Xn.VIDEO_ERROR)},onLoadStart:function(){l(!0),d(!0)},onCanPlayThrough:function(){l(!1),d(!1),S("")},onCanPlay:function(){l(!1),S("")},onWaiting:function(){l(!0)},onSeeking:function(){r("seeking")},onProgress:function(e){var t=e.target.buffered,n=t.length;n>0&&o(t.end(n-1))},volume:s,muted:a,poster:C,playsInline:!0,"webkit-playsinline":""},b("track",{kind:"captions"}))}),Qn=function(e){return function(t){t({type:"[CORE] update ima status",payload:e})}},er=function(e){return function(t){t({type:"[CORE] update hls status",payload:e})}},tr=function(){return{adBlockCheckerStyle:{backgroundColor:Ut.COLORS.TRANSPARENT,height:"1px",width:"1px"}}},nr=jt(null,function(e){return{onAdBlockDetected:function(){return Qn("blocked")(e)}}})(function(e){var t=oe(),n=kn(tr,[]).adBlockCheckerStyle;return re(function(){0!==t.current.clientHeight&&0!==t.current.clientWidth||(0,e.onAdBlockDetected)()},[e]),b("div",{ref:t},b("div",{class:"adBanner",style:n}))}),rr=n(10),ir=n.n(rr);n(20);var or={root:null,threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],rootMargin:"0px"},ar=function(e){var t=e.id,n=e.updateContainerVisibility,r=e.shouldObserve,i=e.regularMode,o=e.stickyAnchorMode,a=e.children,s=e.style,u=e.isPlaceholder,c=e.splitViewRatio,l=e.className,d=oe(),p=te(null),f=ir()(p,2),h=f[0],y=f[1];return re(function(){null!==h&&h.observe(d.current)},[h]),re(function(){!function(e,t,n){e&&t(new IntersectionObserver(function(e){var t=e[0];n(t.intersectionRatio)},or))}(r,y,n)},[r,n]),Kn(function(){u?function(e,t){var n=e.parentElement.clientWidth;e.style.maxWidth="".concat(n,"px"),Un(t)?e.style.height="".concat(Gn(e),"px"):e.style.height="".concat(Gn(e)*(t/100),"px")}(d.current,c):function(e,t,n){t?(e.style.width="".concat(e.parentElement.clientWidth,"px"),e.style.height="".concat(e.parentElement.clientHeight,"px")):n&&(e.style.width="".concat(e.parentElement.clientWidth,"px"),e.style.height="".concat(e.parentElement.clientHeight+24,"px"))}(d.current,i,o)},[u,i,o]),b("div",{className:l,id:t,ref:d,style:s},a)};function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cr={display:"flex",flexDirection:"row"},lr=(ur(ur({},cr),{},{justifyContent:"flex-end"}),ur(ur({},cr),{},{justifyContent:"center"})),dr=ur(ur({},cr),{},{justifyContent:"space-between"}),pr=(ur(ur({},dr),{},{alignItems:"baseline"}),ur(ur({},lr),{},{alignItems:"center"})),fr=ur(ur({},cr),{},{justifyContent:"flex-start"}),hr=(ur(ur({},fr),{},{alignItems:"center"}),ur(ur({},fr),{},{alignItems:"flex-end",flexWrap:"wrap"}),{display:"flex",flexDirection:"column"}),yr=(ur(ur({},hr),{},{justifyContent:"flex-start"}),ur(ur({},hr),{},{justifyContent:"center"})),gr=(ur(ur({},hr),{},{justifyContent:"flex-end",alignItems:"center"}),ur(ur({},yr),{},{alignItems:"center"}));function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var br=mr(mr({},hr),{},{position:"relative",background:Ut.COLORS.BLACK}),Or=pn.anchorOptions,_r=function(e){return Or(e).orientation},Sr=function(e){return Or(e).canClose},Er=function(e){return Or(e).anchorData},wr=function(e){return Er(e).anchorDisabledByUser},Pr=function(e){return Er(e).anchorStatus};function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Cr=jt(function(e){return{shouldObserve:"lazyplay"===hn.playbackMethod(e)||"autoplay_when_viewable"===hn.playbackMethod(e),regularMode:"inactive"===Pr(e)||!Un(Zn(e)),stickyAnchorMode:"sticky"===_r(e)&&"active"===Pr(e)&&Sr(e),style:Ar({},mr({},br)),isPlaceholder:!1}},function(e){return{updateContainerVisibility:function(t){return function(e){return function(t){t({type:"[CORE] update player visibility",payload:e})}}(t)(e)}}})(ar);function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mr={width:"100%",clear:"both",margin:"16px 0"};function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nr=jt(function(e){return{shouldObserve:"sticky"!==_r(e),style:kr({},Dr({},Mr)),splitViewRatio:Zn(e),isPlaceholder:!0,className:"monti-placeholder-mm-player"}},function(e){return{updateContainerVisibility:function(t){return function(e){return function(t){t({type:"[CORE] update placeholder visibility",payload:e})}}(t)(e)}}})(ar),Lr=function(){return{monetizationStyle:{position:"absolute",width:"100%",top:"0",display:"none"}}},xr=function(e){var t=e.playerId,n=kn(Lr,[]).monetizationStyle,r=oe();return Kn(function(){console.log("the monetization parent element : ",r.current.parentElement),r.current.style.height="".concat(Gn(r.current.parentElement),"px")}),b("div",{id:vn(t),style:n,ref:r})};function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ur={position:"relative",color:Ut.COLORS.WHITE,fontFamily:Ut.TEXT_FONT_FAMILY.LATO,fontWeight:"bold",textAlign:"center",tiny:{fontSize:Ut.FONT_SIZE.EXTRA_TINY},big:{fontSize:Ut.FONT_SIZE.SMALL}},Fr={position:"relative",color:Ut.COLORS.WHITE,tiny:{height:"12px",width:"12px",marginBottom:"8px"},big:{height:"24px",width:"24px",marginBottom:"16px"}},Br=jr(jr({},gr),{},{width:"100%",height:"100%",position:"absolute",top:0,backdropFilter:"blur(3px)",webkitBackdropFilter:"blur(3px)",backgroundColor:Ut.COLORS.BLUR_TRANSPARENT}),Hr=function(e){var t="extraSmall"===e||"small"===e,n="medium"===e||"large"===e||"extraLarge"===e;return{errorMessageStyle:[Ur,t&&Ur.tiny,n&&Ur.big],iconStyle:[Fr,t&&Fr.tiny,n&&Fr.big],screenStyle:jr({},Br)}},qr=n(12),Wr=n.n(qr);function zr(){return(zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gr(){return(Gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $r(){return($r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Kr={CLOSE_FILL:function(e){e.styles;var t=Wr()(e,["styles"]);return We.createElement("svg",Gr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},t),We.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),We.createElement("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z",fill:"rgba(255,255,255,1)"}))},ERROR_WARNING_FILL:function(e){e.styles;var t=Wr()(e,["styles"]);return We.createElement("svg",zr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},t),We.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),We.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z",fill:"rgba(255,255,255,1)"}))},PLAY_BLUR:function(e){e.styles;var t=Wr()(e,["styles"]);return We.createElement("svg",$r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},t),We.createElement("circle",{cx:"30",cy:"30",r:"30",fillRule:"evenodd",clipRule:"evenodd",fillOpacity:".35"}),We.createElement("path",{fill:"none",d:"M11 11h38v38H11z"}),We.createElement("path",{d:"M43.3 30.7L22.1 44.8c-.3.2-.7.2-1 0-.3-.2-.5-.5-.5-.9V15.8c0-.4.2-.7.5-.9.3-.2.7-.2 1 0L43.3 29c.3.2.4.5.4.8s-.2.7-.4.9z",fill:"currentColor"}))}},Yr=n(31),Zr=n.n(Yr);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Qr=Ut.COLORS.WHITE,ei=function(e,t){var n=function(e){return{root:Jr(Jr({},cr),{},{alignItems:"center",width:"fit-content",height:"fit-content",outline:"none",color:e}),focused:{outline:"".concat(Ut.COLORS.WHITE," solid 1px")}}}(t||Qr);return{iconStyle:[n.root,e&&n.focused]}},ti=function(e){var t=e.icon,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseLeave,a=e.onKeyDown,s=e.id,u=e.color,c=e.clickable,l=void 0===c||c,d=e.focusable,p=void 0===d||d,f=te(!1),h=ir()(f,2),y=h[0],g=h[1],v=te(!1),m=ir()(v,2),O=m[0],_=m[1],S=kn(ei,[O,u]).iconStyle,E=l?{onClick:r,onMouseEnter:i,onMouseLeave:o,onFocus:function(e){y||_(!0),jn(i)||i(e)},onBlur:function(){document.hasFocus()&&g(!1),_(!1)},onKeyDown:function(e){jn(a)||a(e),"Enter"!==e.key||jn(r)||r()},onMouseDown:function(){g(!0),_(!1)}}:{},w=p?{tabIndex:0}:{};return b("span",Zr()({id:s,style:Jt([S,n])},E,w),b(t,null))},ni=jt(function(e){return{playerSize:hn.playerSize(e),playerErrorMessage:hn.errorMessage(e),mediaErrorMessage:Cn.mediaLoadingError(e),playerUniqId:hn.playerInstanceUniqId(e)}})(function(e){var t,n=e.playerSize,r=e.playerErrorMessage,i=e.mediaErrorMessage,o=e.playerUniqId,a=kn(Hr,[n]),s=a.errorMessageStyle,u=a.iconStyle,c=a.screenStyle,l=r||i;return Un(r)&&Un(i)?null:b("div",{id:(t=o,"".concat("mplayer","-").concat("error-page","-").concat(t)),style:c},b(ti,{icon:Kr.ERROR_WARNING_FILL,style:Jt(u)}),b("div",{id:wn(o),style:Jt(s)},l))}),ri=function(e,t){var n=function(e){return{height:"100%",left:0,display:"block",width:"100%",position:"relative",splitView:{width:"".concat(e/(9/16),"px")}}}(e);return{playerWrapperStyle:[n,t&&n.splitView]}},ii=jt(function(e){return{splitViewRatio:Zn(e)}})(function(e){var t=e.splitViewRatio,n=e.children,r=oe(),i=te(null),o=ir()(i,2),a=o[0],s=o[1],u=!Un(t),c=kn(ri,[a,u]).playerWrapperStyle;return Kn(function(){s(r.current.parentElement.clientHeight)},[r]),b("div",{ref:r,style:Jt(c)},n)});function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var si=ai(ai({},cr),{},{position:"absolute",width:"100%",height:"100%"}),ui={width:"100%",height:"100%",position:"relative"},ci={display:"flex",position:"relative",flexGrow:"1"},li={position:"absolute",zIndex:"1",width:"100%",top:"0",height:"100%",pointerEvents:"none"},di={position:"absolute",zIndex:"2",width:"100%",top:"0",height:"100%",pointerEvents:"none"},pi=function(){return{splitViewWrapperStyle:ai({},si),playerAndControlsWrapperStyle:ai({},ui),splitViewPlaceholderStyle:ai({},ci),controlsPlaceholderStyle:ai({},li),discoveryPlaceholderStyle:ai({},di)}};function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yi={position:"absolute",overflow:"hidden",backgroundColor:Ut.COLORS.GRAY_TRANSPARENT,borderRadius:Ut.BORDER_RADIUS.SMALL,height:"6px",small:{width:"120px",height:"4px"},medium:{width:"200px"},largeAndExtraLarge:{width:"220px"},splitView:{width:"120px",height:"4px"},error:{display:"none"}},gi=hi(hi({},pr),{},{width:"100%",height:"100%",position:"absolute",top:"0",backgroundColor:Ut.COLORS.TRANSPARENT,blackScreen:{backgroundColor:Ut.COLORS.BLACK}}),vi=function(e,t,n,r,i){var o,a=!Un(n),s="small"===e,u="medium"===e,c="large"===e||"extraLarge"===e,l=i||Ut.COLORS.WHITE,d=(o=l,{position:"relative",width:"100%",height:"6px",borderRadius:Ut.BORDER_RADIUS.SMALL,animationName:"loaderAnimation",animationDuration:"3.5s",animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",backgroundColor:o,small:{height:"4px"},splitView:{height:"4px"}});return{loaderStyle:[yi,r&&yi.error,s&&yi.small,u&&yi.medium,c&&yi.largeAndExtraLarge,a&&yi.splitView],barStyle:[d,s&&d.small,a&&d.splitView],screenStyle:[gi,t&&gi.blackScreen]}},mi=pn.monetization,bi={continuePlayingWhileWaitingForAd:function(e){return mi(e).continuePlayingWhileWaitingForAd},midrolls:function(e){return mi(e).midrolls},prerollEnabled:function(e){return mi(e).prerollEnabled},vpaidMode:function(e){return mi(e).vpaidMode},adRequestTimeout:function(e){return mi(e).adRequestTimeout},adsData:function(e){return mi(e).adsData}},Oi=bi.adsData,_i={adTagUrlTemplate:function(e){return Oi(e).adTagUrlTemplate},adType:function(e){return Oi(e).adType},adStatus:function(e){return Oi(e).adStatus},pendingAdStatus:function(e){return Oi(e).pendingAdStatus},adErrorMessage:function(e){return Oi(e).adErrorMessage},adDuration:function(e){return Oi(e).adDuration},playedMidrolls:function(e){return Oi(e).playedMidrolls},adImpression:function(e){return Oi(e).adImpression},adOpportunity:function(e){return Oi(e).adOpportunity},isVastAd:function(e){return Oi(e).isVastAd},adCurrentTime:function(e){return Oi(e).adCurrentTime},adMuted:function(e){return Oi(e).adMuted},adVolume:function(e){return Oi(e).adVolume},currentAdTag:function(e){return Oi(e).currentAdTag},adUnit:function(e){return Oi(e).adUnit},slotNumber:function(e){return Oi(e).slotNumber},podNumber:function(e){return Oi(e).podNumber},loadingAd:function(e){return Oi(e).loadingAd}},Si=pn.brandingData,Ei=function(e){return Si(e).brandingColor},wi=jt(function(e){return{showBlackScreen:hn.showBlackScreen(e),playerSize:hn.playerSize(e),splitViewRatio:Zn(e),playerUniqId:hn.playerInstanceUniqId(e),playerErrorMessage:hn.errorMessage(e),mediaErrorMessage:Cn.mediaLoadingError(e),loadingPlayer:hn.loadingPlayer(e),loadingAd:_i.loadingAd(e),brandingColor:Ei(e)}})(function(e){var t,n=e.playerSize,r=e.showBlackScreen,i=e.splitViewRatio,o=e.playerUniqId,a=e.playerErrorMessage,s=e.mediaErrorMessage,u=e.loadingPlayer,c=e.loadingAd,l=e.brandingColor,d=!Un(a)||!Un(s),p=u||c,f=kn(vi,[n,r,i,d,l]),h=f.loaderStyle,y=f.barStyle,g=f.screenStyle;return p?b("div",{id:(t=o,"".concat("mplayer","-").concat("loader-page","-").concat(t)),style:Jt(g)},b("div",{id:Pn(o),style:Jt(h)},b("div",{style:Jt(y)}))):null}),Pi=function(e){var t=e.playerId,n=e.store,r=e.playerPosition,i=kn(pi,[]),o=i.splitViewWrapperStyle,a=i.playerAndControlsWrapperStyle,s=i.splitViewPlaceholderStyle,u=i.controlsPlaceholderStyle,c=i.discoveryPlaceholderStyle;return re(function(){!function(e){var t=document.createElement("link");t.setAttribute("href","https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap"),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),e.appendChild(t)}(r),function(e){var t=document.createElement("style");t.type="text/css",t.textContent="@keyframes loaderAnimation {0% {left: -100%}49% {left: 100%}50% {left: 100%}100% {left: -100%}}",e.appendChild(t)}(r)},[r]),b(Ze,{store:n},b(Nr,{id:mn(t)},b(Cr,{id:bn(t)},b("div",{id:Tn(t)}),b("div",{style:a},b("div",{style:o},b(ii,null,b(Jn,{playerId:t}),b(xr,{playerId:t}),b(wi,null),b(nr,null)),b("div",{id:_n(t),style:s})),b("div",{id:On(t),style:u}),b("div",{id:Sn(t),style:c}),b(ni,null)))))},Ti=n(1),Ai=n.n(Ti),Ci=function e(){var t=this;Ai()(this,e),f()(this,"HLS_MAIN_SCRIPT","https://cdn.jsdelivr.net/npm/hls.js@0.9.1"),f()(this,"HLS_FALLBACK_SCRIPT","https://www.oo-syringe.com/newplayer/mplayer_hls_wrapper.0.0.0.js"),f()(this,"IMA_SCRIPT","https://imasdk.googleapis.com/js/sdkloader/ima3.js"),f()(this,"MMPLUS_CONTAINER_ID","GTM-PL4PD49"),f()(this,"MM_CONTAINER_ID","GTM-TCW5HW"),f()(this,"dependenciesCallbacks",void 0),f()(this,"imaLoadingStatus",""),f()(this,"hlsLoadingStatus",""),f()(this,"gtmLoaded",!1),f()(this,"addDependenciesCallback",function(e){t.dependenciesCallbacks.includes(e)||t.dependenciesCallbacks.push(e)}),f()(this,"isDependenciesReady",function(){return t.gtmLoaded&&"loading"!==t.getHLSLoadingStatus()&&"loading"!==t.getIMALoadingStatus()}),f()(this,"getIMALoadingStatus",function(){return t.imaLoadingStatus}),f()(this,"getHLSLoadingStatus",function(){return t.hlsLoadingStatus}),f()(this,"removeDependenciesCallback",function(e){t.dependenciesCallbacks.filter(function(t){return t===e})}),f()(this,"loadScript",function(e,t,n){var r=document.createElement("script");r.setAttribute("src",e),r.addEventListener("load",t),r.addEventListener("error",n),document.body.appendChild(r)}),f()(this,"onScriptLoaded",function(e){t.dependenciesCallbacks.forEach(function(t){t.onDependencyReady(e)})}),f()(this,"onScriptFailed",function(e,n){t.dependenciesCallbacks.forEach(function(t){t.onDependencyFailure(e,n)})}),f()(this,"onHlsScriptLoaded",function(){void 0!==window.Hls?t.onScriptLoaded("hls"):t.onHlsLoadError()}),f()(this,"onHlsLoadError",function(){t.loadScript(t.HLS_FALLBACK_SCRIPT,t.onMMhlsScriptLoaded,t.onMMHlsScriptFailure)}),f()(this,"onMMhlsScriptLoaded",function(){t.onScriptLoaded("hls")}),f()(this,"onMMHlsScriptFailure",function(e){t.onScriptFailed("hls",e)}),f()(this,"onImaLoadError",function(e){t.imaLoadingStatus="error",t.onScriptFailed("ima",e)}),f()(this,"onImaLoaded",function(){t.onScriptLoaded("ima"),t.imaLoadingStatus="success"}),f()(this,"shouldLoadMmGTM",function(){var e=window.google_tag_manager;return!e||!e[t.MMPLUS_CONTAINER_ID]&&!e[t.MM_CONTAINER_ID]}),f()(this,"loadGTMifNeeded",function(){if(t.shouldLoadMmGTM()){var e,n;try{e=window.parent,n=window.parent.document}catch(u){e=window,n=window.document}var r=$n(e),i="dataLayer"!==r?"&l=".concat(r):"";e[r]=e[r]||[],e[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var o=n.getElementsByTagName("script")[0],a=n.createElement("script");a.setAttribute("async",""),a.setAttribute("src","https://www.googletagmanager.com/gtm.js?id=GTM-PL4PD49".concat(i)),o.parentNode.insertBefore(a,o);var s=n.createElement("iframe");s.src="https://www.googletagmanager.com/ns.html?id=GTM-PL4PD49",s.height="0",s.width="0",s.style="display:none;visibility:hidden",n.body.appendChild(s),t.gtmLoaded=!0}}),f()(this,"loadHLS",function(){Bn()||"safari"===Vn.name?t.hlsLoadingStatus="no-need":(t.loadScript(t.HLS_MAIN_SCRIPT,t.onHlsScriptLoaded,t.onHlsLoadError),t.hlsLoadingStatus="loading")}),f()(this,"loadIMA",function(){t.loadScript(t.IMA_SCRIPT,t.onImaLoaded,t.onImaLoadError),t.imaLoadingStatus="loading"}),f()(this,"loadExternalDependencies",function(){""===t.getIMALoadingStatus()&&t.loadIMA(),""===t.getHLSLoadingStatus()&&t.loadHLS(),t.gtmLoaded||t.loadGTMifNeeded()}),this.dependenciesCallbacks=[]};f()(Ci,"instance",void 0),f()(Ci,"getInstance",function(){return Ci.instance||(Ci.instance=new Ci),Ci.instance});var Ri=function(e){return"".concat("mplayer-monetization-ad-container","-").concat(e)},Di=function(e){return"".concat("mplayer-monetization-safari-video-ad","-").concat(e)},Mi=jt(function(e){return{contentVideoTime:hn.currentVideoTime(e),playerUniqId:hn.playerInstanceUniqId(e)}})(function(e){var t=e.contentVideoTime,n=e.playerUniqId,r=oe();return re(function(){Un(r.current)||(r.current.currentTime=t)},[t]),b("video",{id:Di(n),ref:r,style:{backgroundColor:"rgb(0, 0, 0)",width:"100%",height:"100%"},title:"Advertisement",preload:"auto",muted:!0,playsInline:!0,"webkit-playsinline":""})});function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ni=jt(function(e,t){return ki(ki({},t),{},{adStatus:_i.adStatus(e)})})(function(e){var t=e.playerId,n=e.adStatus,r="playing"===n||"paused"===n;return re(function(){document.getElementById(vn(t)).style.display=r?"flex":"none"},[t,r]),b("div",{style:{width:"100%",height:"100%"}},b("div",{id:Ri(t),style:{height:"100%",width:"100%"}},Bn()&&b(Mi,null)))}),Li=function(e){var t=e.store,n=e.playerId;return b(Ze,{store:t},b(Ni,{playerId:n}))},xi=n(2),Vi=n.n(xi),ji=(n(46),function(){function e(t,n,r){Ai()(this,e),f()(this,"store",void 0),f()(this,"getDependenciesElements",void 0),f()(this,"oldState",void 0),f()(this,"unsubscribe",void 0),f()(this,"onChange",void 0),this.store=t,this.oldState=t.getState(),this.getDependenciesElements=n,this.unsubscribe=t.subscribe(this.onStateChanged.bind(this)),this.onChange=r}return Vi()(e,[{key:"stopSubscription",value:function(){this.unsubscribe(),this.oldState=null,this.getDependenciesElements=null,this.store=null,this.unsubscribe=null,this.onChange=null}},{key:"onStateChanged",value:function(){var e=this.store.getState(),t=this.getDependenciesElements(this.oldState),n=this.getDependenciesElements(e);t.every(function(e,t){return e===n[t]})||this.onChange(e),this.oldState=e}}]),e}()),Ui=pn.dependenciesLoadingStatus,Fi={loadingImaStatus:function(e){return Ui(e).loadingImaStatus},loadingHLSStatus:function(e){return Ui(e).loadingHLSStatus}},Bi=function(e){return"blocked"===Fi.loadingImaStatus(e)},Hi=function(e){return"playing"===e||"requested"===e||"loaded"===e||"paused"===e},qi=function(){function e(t,n){Ai()(this,e),f()(this,"videoTimeSubscriber",void 0),f()(this,"adsScheduler",void 0),this.videoTimeSubscriber=new ji(t,e.getVideoTimeDependencies,this.onVideoTimeChanged.bind(this)),this.adsScheduler=n}return Vi()(e,[{key:"onVideoTimeChanged",value:function(t){"seeking"!==hn.videoTagStatus(t)&&(e.shouldRequestAd(t)?this.adsScheduler.onPreAdTimeReached(e.getMidroll(t)):e.isOnAdTime(t)&&this.adsScheduler.onAdTimeReached())}}],[{key:"getVideoTimeDependencies",value:function(e){return[hn.currentVideoTime(e)]}},{key:"isTimeInPreAdRange",value:function(e,t){return t>=e&&e>=t-$i}},{key:"getNextSpecificMidrollTime",value:function(t,n){return-1!==t.indexOf(n)?n:t.find(function(t){return e.isTimeInPreAdRange(n,t)})}},{key:"getNextReocurringMidrollNumber",value:function(e,t){var n=t/e;return t%e===0?n:Math.ceil(n)}},{key:"getMidroll",value:function(t){var n=hn.currentVideoTime(t),r=bi.midrolls(t),i=r.every,o=r.on,a=Dn.mediaId(t);if(!Un(i)){var s=e.getNextReocurringMidrollNumber(i,n);return{currentTime:n,mediaId:a,midrollNumber:s,midrollTime:s*i}}if(!Un(o)){var u=e.getNextSpecificMidrollTime(o,n);return{midrollNumber:o.indexOf(u)+1,currentTime:n,midrollTime:u,mediaId:a}}return null}},{key:"isMidrollAlreadyPlayed",value:function(e,t){return-1!==e.indexOf(t)}},{key:"isMidrollReached",value:function(t){var n=hn.currentVideoTime(t),r=bi.midrolls(t),i=r.every,o=r.on,a=_i.playedMidrolls(t);if(!Un(i)&&n>0){var s=e.getNextReocurringMidrollNumber(i,n),u=s*i;return!this.isMidrollAlreadyPlayed(a,s)&&e.isTimeInPreAdRange(n,u)}if(!Un(o)){var c=e.getNextSpecificMidrollTime(o,n),l=o.indexOf(c)+1;return l>0&&!this.isMidrollAlreadyPlayed(a,l)}return!1}},{key:"shouldRequestAd",value:function(e){var t=_i.adStatus(e);return!Bi(e)&&!Hi(t)&&this.isMidrollReached(e)}},{key:"isOnAdTime",value:function(t){var n=hn.currentVideoTime(t),r=bi.midrolls(t),i=r.every,o=r.on,a=_i.playedMidrolls(t);if(Bi(t))return!1;if(!Un(i)){var s=e.getNextReocurringMidrollNumber(i,n);return 0!==n&&n%i===0&&!this.isMidrollAlreadyPlayed(a,s)}if(!Un(o)){var u=o.indexOf(n);return-1!==u&&!this.isMidrollAlreadyPlayed(a,u)}return!1}}]),e}(),Wi=function(){function e(t){var n=this;Ai()(this,e),f()(this,"referrerUrl",void 0),f()(this,"staticAdTag",void 0),f()(this,"generate",function(e,t){var r=encodeURIComponent(n.referrerUrl);return Un(n.staticAdTag)?n.adTagFromApi(e,r,t):n.parseAdTag(n.staticAdTag,e,r,t)}),this.staticAdTag=t,this.referrerUrl=window.location.href}return Vi()(e,[{key:"parseAdTag",value:function(t,n,r,i){var o=t.replace("##AdUnit##",e.parseAdName(n)).replace("##DESCRIPTION_URL_UNESC##",r).replace("##REFERRER_URL_UNESC##",encodeURIComponent(this.referrerUrl)).replace("##CACHEBUSTER##",e.cacheBuster(n)).replace("##MIDROLL_ORDER##",e.adIndexFromName(n));return o=e.replaceVideoId(o,"##VIDEO_ID##",i),o=e.addHacksToAdTag(o)}},{key:"adTagFromApi",value:function(e,t,n){try{var r=window.getVideoTag(t,e);return Un(r)?null:this.parseAdTag(r,e,t,n)}catch(i){return null}}}],[{key:"getCCPAConsent",value:function(t){try{var n="";return window.__uspapi&&window.__uspapi("getUSPData",1,function(e,t){t&&(n=e.uspString)}),e.setSearchParamToAdTag(t,"us_privacy",n)}catch(r){return t}}},{key:"replaceVideoId",value:function(e,t,n){return e.replace(t,n).replace(encodeURIComponent(t),n).replace(encodeURIComponent(encodeURIComponent(t)),n)}},{key:"cacheBuster",value:function(t){return"".concat((new Date).getTime()).concat(e.adIndexFromName(t))}},{key:"parseAdName",value:function(t){return t.startsWith("preroll")?"PR":"MR".concat(e.adIndexFromName(t))}},{key:"adIndexFromName",value:function(e){return e.replace(/[^\d]*/g,"")}}]),e}();f()(Wi,"setSearchParamToAdTag",function(e,t,n){var r=new URL(e),i=decodeURIComponent(n);return r.searchParams.set(t,i),r.href}),f()(Wi,"getSearchParamFromAdTag",function(e,t){return new URL(e).searchParams.get(t)}),f()(Wi,"addHacksToAdTag",function(e){var t=e,n=Wi.getSearchParamFromAdTag(t,"cust_params");if(!jn(window.mmAPSbids)&&!Un(n)){var r="".concat(window.mmAPSbids,"&").concat(n);t=Wi.setSearchParamToAdTag(t,"cust_params",r)}if(!jn(window.shouldPlayAdRules)){var i=window.shouldPlayAdRules?"1":"0";t=Wi.setSearchParamToAdTag(t,"ad_rule",i)}return t=Wi.getCCPAConsent(t)});var zi=function(){function e(t,n){Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"adsScheduler",void 0),f()(this,"previousVideoTagStatus",void 0);var r=t.getState;this.store=t,this.adsScheduler=n,this.previousVideoTagStatus=hn.videoTagStatus(r()),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this))}return Vi()(e,[{key:"onVideoTagStatusChanged",value:function(t){var n=hn.videoTagStatus(t),r=_i.adStatus(t);"seeking"===this.previousVideoTagStatus&&(Hi(r)?this.adsScheduler.onSeekedWhileAdInProgress():e.isSeekedOverMidroll(t)&&this.adsScheduler.onSeekToAdOpportunity(e.getSeekedMidroll(t))),this.previousVideoTagStatus=n}}],[{key:"getVideoTagStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}},{key:"getClosestSkippedUnplayedMidroll",value:function(e,t){for(var n=t;n>0;n-=1)if(-1===e.indexOf(n))return n;return null}},{key:"getClosestLowerSeekedMidrollNumber",value:function(e,t){var n=In()(e).reverse().find(function(e){return e<=t});return e.indexOf(n)+1}},{key:"getSeekedSpecificMidroll",value:function(e,t,n,r){var i=this.getClosestLowerSeekedMidrollNumber(e,t),o=this.getClosestSkippedUnplayedMidroll(r,i);return{midrollNumber:o,currentTime:t,midrollTime:e[o-1],mediaId:n}}},{key:"isSeekedOverSpecificMidroll",value:function(e,t,n){if(jn(e))return!1;var r=this.getClosestLowerSeekedMidrollNumber(e,n);return null!==this.getClosestSkippedUnplayedMidroll(t,r)}},{key:"getSeekedReoccuringMidroll",value:function(e,t,n,r){var i=Math.floor(t/e),o=this.getClosestSkippedUnplayedMidroll(r,i);return{midrollTime:o*e,currentTime:t,midrollNumber:o,mediaId:n}}},{key:"isSeekedOverReoccuringMidroll",value:function(e,t,n){if(jn(e))return!1;var r=Math.floor(n/e);return null!==this.getClosestSkippedUnplayedMidroll(t,r)}},{key:"getSeekedMidroll",value:function(e){var t=_i.playedMidrolls(e),n=hn.currentVideoTime(e),r=bi.midrolls(e),i=r.every,o=r.on,a=Cn.mediaId(e);return this.isSeekedOverReoccuringMidroll(i,t,n)?this.getSeekedReoccuringMidroll(i,n,a,t):this.isSeekedOverSpecificMidroll(o,t,n)?this.getSeekedSpecificMidroll(o,n,a,t):null}},{key:"isSeekedOverMidroll",value:function(e){var t=_i.playedMidrolls(e),n=hn.currentVideoTime(e),r=bi.midrolls(e),i=r.every,o=r.on,a=o;return bi.prerollEnabled(e)&&(a=o.filter(function(e){return 0!==e})),this.isSeekedOverReoccuringMidroll(i,t,n)||this.isSeekedOverSpecificMidroll(a,t,n)}}]),e}(),Gi=function e(t,n){var r=this;Ai()(this,e),f()(this,"pendingAdStatusStoreSubscriber",void 0),f()(this,"adsScheduler",void 0),f()(this,"onPendingAdStatusChanged",function(e){var t=_i.pendingAdStatus(e).type,n=_i.adStatus(e);if("playPreroll"===t&&!Hi(n)){var i=Cn.activeVideoIndex(e),o=Dn.mediaId(e);r.adsScheduler.onPrerollReached(o,i+1)}}),this.adsScheduler=n,this.pendingAdStatusStoreSubscriber=new ji(t,e.getPendingAdStatusDependencies,this.onPendingAdStatusChanged.bind(this))};f()(Gi,"getPendingAdStatusDependencies",function(e){return[_i.pendingAdStatus(e)]});var $i=3,Ki=function e(t,n){var r=this;Ai()(this,e),f()(this,"videoTimeSubscriber",void 0),f()(this,"videoSeekSubscriber",void 0),f()(this,"adTagGenerator",void 0),f()(this,"monetization",void 0),f()(this,"lastRequestedMidroll",null),f()(this,"prerollScheduler",void 0),f()(this,"generateMidrollTag",function(e){var t="midroll".concat(e.midrollNumber);return r.adTagGenerator.generate(t,e.mediaId)}),f()(this,"generatePrerollTag",function(e,t){var n="preroll".concat(t);return r.adTagGenerator.generate(n,e)}),f()(this,"onAdTimeReached",function(){r.monetization.onMidrollAdOpportunity()}),f()(this,"onPreAdTimeReached",function(e){r.onPreMidrollAdOpportunity(e)}),f()(this,"onSeekToAdOpportunity",function(e){r.onPreMidrollAdOpportunity(e)}),f()(this,"isMidrollAlreadyRequested",function(e){return e.midrollNumber===r.lastRequestedMidroll.midrollNumber&&e.mediaId===r.lastRequestedMidroll.mediaId&&e.midrollTime===r.lastRequestedMidroll.midrollTime}),f()(this,"onPreMidrollAdOpportunity",function(e){if(Un(r.lastRequestedMidroll)||!r.isMidrollAlreadyRequested(e)){r.lastRequestedMidroll=e;var t=r.generateMidrollTag(e);r.monetization.onPreMidrollAdOpportunity(e,t)}}),f()(this,"onPrerollReached",function(e,t){var n=r.generatePrerollTag(e,t);r.monetization.onPrerollAdOpportunity(n)}),f()(this,"onSeekedWhileAdInProgress",function(){r.monetization.onMidrollAdOpportunity()});var i=t.getState;this.monetization=n,this.videoTimeSubscriber=new qi(t,this),this.videoSeekSubscriber=new zi(t,this),this.prerollScheduler=new Gi(t,this);var o=_i.adTagUrlTemplate(i());this.adTagGenerator=new Wi(o)},Yi=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"generateAdRequest",value:function(e,t,n){var r=new google.ima.AdsRequest;return r.adTagUrl=e,Fn()||r.setAdWillPlayMuted(t),r.vastLoadTimeout=n,r}}]),e}(),Zi=function(e){return function(t){t({type:"[MONETIZATION] change ad status",payload:e})}},Xi=function(e){return function(t){t({type:"[COMMON] set pending video status",payload:{pendingStatusObject:{type:e,value:""}}})}},Ji=function(e){return function(t){t({type:"[MONETIZATION] change loading ad status",payload:e})}},Qi=function(e){return function(t){t({type:"[MONETIZATION] update ad muted",payload:e})}},eo=function(e){return function(t){t({type:"[MONETIZATION] change ad volume",payload:e})}},to=function e(t,n,r,i,o){var a=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"IMAAdManager",void 0),f()(this,"adsLoader",void 0),f()(this,"adDisplayContainer",void 0),f()(this,"adVideoElement",void 0),f()(this,"videoPlayerElement",void 0),f()(this,"adContainerElement",void 0),f()(this,"anchorStatusStoreSubscriber",void 0),f()(this,"totalAdRequestMadeAmount",0),f()(this,"registerForWindowResize",function(){var e=zn(a.onResize.bind(a),80);window.addEventListener("resize",e)}),f()(this,"initMutationObserver",function(e){new MutationObserver(a.onResize).observe(e,{attributes:!0,childList:!1,subtree:!1})}),f()(this,"loadNewAd",function(e,t){var n=a.store.dispatch;a.clearOldAdManagerIfExist();var r=a.createAdRequest(e);try{a.validateAdRequestCorrectness(r),a.adsLoader.requestAds(r),function(e,t){return function(n){n({type:"[MONETIZATION] change ad tag",payload:{adTag:e,adUnit:t}})}}(e,t)(n),Zi("requested")(n),a.totalAdRequestMadeAmount+=1}catch(i){a.onAdError(a.getLoadingError(r))}}),f()(this,"playAd",function(){try{a.IMAAdManager.init(a.videoPlayerElement.clientWidth,a.videoPlayerElement.clientHeight,google.ima.ViewMode.NORMAL);try{a.IMAAdManager.start()}catch(e){return!1}return!0}catch(t){return a.onAdError(a.getPlayAdError("ad manager start error")),!1}}),f()(this,"clearOldAdManagerIfExist",function(){Un(a.IMAAdManager)||(a.IMAAdManager.destroy(),a.IMAAdManager=null)}),f()(this,"createAdLoader",function(e,t){var n=bi.vpaidMode(e);a.adsLoader=new google.ima.AdsLoader(t),a.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),a.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode[n]),a.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,a.onIMAAdsManagerLoaded.bind(a),!1,a),a.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a.onAdError.bind(a),!1,a)}),f()(this,"createAdRequest",function(e){var t=a.store.getState,n=gn.muted(t()),r=bi.adRequestTimeout(t());return Yi.generateAdRequest(e,n,r)}),f()(this,"validateAdRequestCorrectness",function(e){e&&e.adTagUrl&&decodeURIComponent(e.adTagUrl.replace(/\+/g," "))}),f()(this,"getLoadingError",function(e){var t=function(){return"bad ad request ".concat(JSON.stringify(e))};return{getError:function(){return{getMessage:t}}}}),f()(this,"getPlayAdError",function(e){var t=function(){return"play ad error: ".concat(JSON.stringify(e))};return{getError:function(){return{getMessage:t}}}}),f()(this,"setAdVolume",function(e){var t=a.store,n=t.getState,r=t.dispatch,i=gn.volume(n());Bn()||gn.muted(n())?(e.setVolume(0),Qi(!0)(r)):(e.setVolume(gn.volume(n())),eo(i)(r),Qi(!1)(r))}),f()(this,"createIMAAdManager",function(t){a.IMAAdManager=t.getAdsManager(a.adVideoElement,e.getAdsRenderingSettings()),a.setAdVolume(a.IMAAdManager)}),f()(this,"registerToAdManagerEvents",function(){a.IMAAdManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a.onAdError),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,a.onContentPauseRequested),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,a.onContentResumeRequested),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.STARTED,a.onAdStarted),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION,a.onAdImpression),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,a.onAdSkipped),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,a.onAdCompleted),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.PAUSED,a.onAdPaused),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.RESUMED,a.onAdStarted),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.AD_PROGRESS,a.onAdProgressChanged),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,a.onVolumeChanged),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED,a.onAdVolumeMutedChanged),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,a.onAdCompleted)}),f()(this,"onIMAAdsManagerLoaded",function(e){var t=a.store.dispatch;a.createIMAAdManager(e),a.registerToAdManagerEvents(),Zi("loaded")(t)}),f()(this,"onAdError",function(e){var t=a.store.dispatch;!function(e){return function(t){t({type:"[MONETIZATION] change ad error",payload:e})}}(e.getError().getMessage())(t),Ji(!1),a.continuePlayingContent()}),f()(this,"onAdImpression",function(e){var t=a.store.dispatch,n=!e.getAd().g.vpaid;a.setPodInfo(e),function(e){e({type:"[MONETIZATION] increase ad impression counter"})}(t),function(e){return function(t){t({type:"[MONETIZATION] update is vast ad",payload:e})}}(n)(t)}),f()(this,"onVolumeChanged",function(e){var t=a.store.dispatch;eo(e.target.getVolume())(t)}),f()(this,"onAdVolumeMutedChanged",function(e){var t=a.store.dispatch;0===e.target.getVolume()?Qi(!0)(t):Qi(!1)(t)}),f()(this,"continuePlayingContent",function(){var e=a.store,t=e.getState,n=e.dispatch,r=hn.videoTagStatus(t());Xi("idle"===r?"play":"resume")(n)}),f()(this,"stopPlayingContent",function(){var e=a.store.dispatch;Xi("pause")(e)}),f()(this,"onContentPauseRequested",function(){a.stopPlayingContent()}),f()(this,"onContentResumeRequested",function(){a.continuePlayingContent()}),f()(this,"onAdPaused",function(){var e=a.store.dispatch;Zi("paused")(e)}),f()(this,"setPodInfo",function(e){var t=e&&e.getAd()&&e.getAd().getAdPodInfo();if(!Un(t)){var n=a.store.dispatch;!function(e,t){return function(n){n({type:"[MONETIZATION] change pod info",payload:{slotNumber:e,podNumber:t}})}}(t.getAdPosition(),a.totalAdRequestMadeAmount)(n)}}),f()(this,"onAdStarted",function(){var e=a.store,t=e.dispatch,n=e.getState,r=gn.volume(n());Zi("playing")(t),0===a.IMAAdManager.getVolume()?a.IMAAdManager.setVolume(0):window.shouldPlayAdRule||a.IMAAdManager.setVolume(r),a.onResize()}),f()(this,"onAdCompleted",function(){var e=a.store.dispatch;Zi("completed")(e)}),f()(this,"onAdSkipped",function(){var e=a.store.dispatch;Zi("skipped")(e)}),f()(this,"onResize",function(){Un(a.IMAAdManager)||(a.IMAAdManager.resize(a.videoPlayerElement.clientWidth,a.videoPlayerElement.clientHeight,google.ima.ViewMode.NORMAL),a.adContainerElement.style.height="".concat(a.videoPlayerElement.clientHeight,"px"))}),f()(this,"onAdProgressChanged",function(e){var t,n,r=a.store,i=r.dispatch,o=r.getState,s=e.getAdData().currentTime,u=e.getAdData().duration,c=_i.adDuration(o());(t=s,function(e){e({type:"[MONETIZATION] change ad current time",payload:t})})(i),c!==u&&(n=u,function(e){e({type:"[MONETIZATION] change ad duration",payload:n})})(i)}),f()(this,"onAnchorStatusChanged",function(){var e=a.store.getState;"processing"!==Pr(e())&&a.onResize()}),f()(this,"changeAdVolume",function(e){Un(a.IMAAdManager)||a.IMAAdManager.setVolume(e)}),f()(this,"changeAdMuted",function(e,t){Un(a.IMAAdManager)||(t?a.IMAAdManager.setVolume(0):a.IMAAdManager.setVolume(e))}),f()(this,"changeAdStatus",function(e){Un(a.IMAAdManager)||("playing"===e&&a.IMAAdManager.resume(),"paused"===e&&a.IMAAdManager.pause())});var s=t.getState;this.store=t,this.adVideoElement=r,this.videoPlayerElement=i,this.adContainerElement=n,this.adDisplayContainer=new google.ima.AdDisplayContainer(n,r),this.createAdLoader(s(),this.adDisplayContainer),this.adDisplayContainer.initialize(),this.anchorStatusStoreSubscriber=new ji(t,e.getAnchorDependencies,this.onAnchorStatusChanged.bind(this)),this.registerForWindowResize(),this.initMutationObserver(o)};f()(to,"getAdsRenderingSettings",function(){var e=new google.ima.AdsRenderingSettings;return e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!1,e.uiElements=[],e.loadVideoTimeout=15e3,e}),f()(to,"getAnchorDependencies",function(e){return[Pr(e)]});var no=function e(t,n,r,i,o,a){var s=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"playerId",void 0),f()(this,"adScheduler",void 0),f()(this,"adHandler",void 0),f()(this,"imaLoadingStatusSubscriber",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"adContainer",void 0),f()(this,"adVideoElement",void 0),f()(this,"videoPlayerElement",void 0),f()(this,"playerContainer",void 0),f()(this,"pendingMidrollAdPlay",!1),f()(this,"pendingPrerollAdPlay",!1),f()(this,"pendingPrerollAdTag",null),f()(this,"pendingMidrollNumber",null),f()(this,"pendingAdStatusStoreSubscriber",void 0),f()(this,"adMutedStoreSubscriber",void 0),f()(this,"adVolumeStoreSubscriber",void 0),f()(this,"onMidrollAdOpportunity",function(){var e=s.store,t=e.dispatch,n=e.getState,r=_i.adStatus(n()),i=bi.continuePlayingWhileWaitingForAd(n());"loaded"===r?s.playAd(!0):"requested"===r&&(s.pendingMidrollAdPlay=!0,i||(Xi("pause")(t),Ji(!0)(t))),function(e){e({type:"[MONETIZATION] increase ad Opportunity counter"})}(t)}),f()(this,"onPrerollAdOpportunity",function(e){var t=s.store,n=t.getState,r=t.dispatch,i=Fi.loadingImaStatus(n());Un(s.adHandler)?"loading"!==i&&""!==i||(Ji(!0)(r),s.pendingPrerollAdPlay=!0,s.pendingPrerollAdTag=e):(s.pendingPrerollAdPlay=!0,Ji(!0)(r),s.adHandler.loadNewAd(e,"preroll"))}),f()(this,"onPreMidrollAdOpportunity",function(e,t){Un(s.adHandler)||(e.currentTime>=e.midrollTime&&(s.pendingMidrollAdPlay=!0),s.pendingMidrollNumber=e.midrollNumber,s.adHandler.loadNewAd(t,"midroll"))}),f()(this,"hasPendingAd",function(){return s.hasPendingMidrollAdPlay()||s.hasPendingPrerollAdPlay()}),f()(this,"onAdStatusChanged",function(e){var t=s.store.dispatch,n=_i.adStatus(e);"completed"===n&&Ji(!1)(t);var r=bi.continuePlayingWhileWaitingForAd(e),i=_i.loadingAd(e);"playing"!==n&&"error"!==n||r||!i||Ji(!1)(t),s.hasPendingAd()&&"loaded"===n?s.playAd(s.hasPendingMidrollAdPlay()):s.hasPendingAd()&&"error"===n?(Ji(!1),s.clearPendingMidroll(),s.clearPendingPreroll()):Hi(n)||(Ji(!1),function(e){e({type:"[MONETIZATION] clear ad data"})}(t))}),f()(this,"clearPendingMidroll",function(){s.pendingMidrollNumber=null,s.pendingMidrollAdPlay=!1}),f()(this,"clearPendingPreroll",function(){s.pendingPrerollAdPlay=!1,s.pendingPrerollAdTag=null}),f()(this,"onVideoTagStatusChanged",function(e){"complete"===hn.videoTagStatus(e)&&function(e){e({type:"[MONETIZATION] clear played midrolls"})}(s.store.dispatch)}),f()(this,"hasPendingMidrollAdPlay",function(){return s.pendingMidrollAdPlay}),f()(this,"hasPendingPrerollAdPlay",function(){return s.pendingPrerollAdPlay}),f()(this,"playAd",function(e){var t,n=s.store.dispatch,r=s.adHandler.playAd();e?((t=s.pendingMidrollNumber,function(e){e({type:"[MONETIZATION] add played midroll number",payload:t})})(n),s.clearPendingMidroll()):s.clearPendingPreroll(),r||(Ji(!1)(n),Xi("resume")(n))}),f()(this,"onIMALoadingStatusChanged",function(t){e.canUseIMA(t)&&(Un(s.adHandler)&&(s.adHandler=new to(s.store,s.adContainer,s.adVideoElement,s.videoPlayerElement,s.playerContainer)),s.hasPendingPrerollAdPlay()&&s.adHandler.loadNewAd(s.pendingPrerollAdTag,"preroll"))}),f()(this,"onPendingAdStatusChanged",function(){var e=s.store.getState,t=_i.pendingAdStatus(e()).type;switch(t){case"paused":case"playing":s.adHandler.changeAdStatus(t)}}),f()(this,"onAdMutedChanged",function(){var e=s.store.getState,t=_i.adMuted(e()),n=gn.volume(e());s.adHandler.changeAdMuted(n,t)}),f()(this,"onAdVolumeChanged",function(){var e=s.store.getState,t=_i.adVolume(e());s.adHandler.changeAdVolume(t)});var u=t.getState;this.store=t,this.playerId=n,this.adContainer=r,this.adVideoElement=i,this.videoPlayerElement=o,this.playerContainer=a,this.adScheduler=new Ki(t,this),this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this)),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this)),e.canUseIMA(u())?this.adHandler=new to(t,r,i,o,a):this.imaLoadingStatusSubscriber=new ji(t,e.getIMALoadingStatusDependencies,this.onIMALoadingStatusChanged.bind(this)),this.pendingAdStatusStoreSubscriber=new ji(t,e.getPendingAdStatusDependencies,this.onPendingAdStatusChanged.bind(this)),this.adMutedStoreSubscriber=new ji(t,e.getAdMutedDependencies,this.onAdMutedChanged.bind(this)),this.adVolumeStoreSubscriber=new ji(t,e.getAdVolumeDependencies,this.onAdVolumeChanged.bind(this))};f()(no,"getAdStatusDependencies",function(e){return[_i.adStatus(e)]}),f()(no,"getVideoTagStatusDependencies",function(e){return[hn.videoTagStatus(e)]}),f()(no,"getIMALoadingStatusDependencies",function(e){return[Fi.loadingImaStatus(e)]}),f()(no,"canUseIMA",function(e){return"success"===Fi.loadingImaStatus(e)}),f()(no,"getPendingAdStatusDependencies",function(e){return[_i.pendingAdStatus(e)]}),f()(no,"getAdMutedDependencies",function(e){return[_i.adMuted(e)]}),f()(no,"getAdVolumeDependencies",function(e){return[_i.adVolume(e)]});var ro=function(e,t){!function(e,t){var n=document.getElementById(vn(t));B(b(Li,{store:e,playerId:t}),n)}(e,t);var n=function(e){var t=Ri(e);return document.getElementById(t)}(t),r=function(e){var t=Bn()?Di(e):En(e);return document.getElementById(t)}(t),i=function(e){var t=En(e);return document.getElementById(t)}(t),o=function(e){var t=bn(e);return document.getElementById(t)}(t);return new no(e,t,n,r,i,o)},io=n(4),oo=n.n(io),ao=n(7),so=n.n(ao),uo=function(){function e(){Ai()(this,e),f()(this,"duration",void 0),f()(this,"position",void 0),f()(this,"previousPosition",void 0),f()(this,"loadTime",void 0),f()(this,"adOrder",void 0),f()(this,"adType",void 0),f()(this,"adDuration",void 0),f()(this,"errorMessage",void 0),f()(this,"adPodNumber",void 0),f()(this,"adSlotNumber",void 0)}return Vi()(e,[{key:"setDuration",value:function(e){return this.duration=e,this}},{key:"setPosition",value:function(e){return this.position=e,this}},{key:"setPreviousPosition",value:function(e){return this.previousPosition=e,this}},{key:"setLoadTime",value:function(e){return this.loadTime=e,this}},{key:"setAdOrder",value:function(e){return this.adOrder=e,this}},{key:"setAdType",value:function(e){return this.adType=e,this}},{key:"setAdDuration",value:function(e){return this.adDuration=e,this}},{key:"setErrorMessage",value:function(e){return this.errorMessage=e,this}},{key:"setAdPodNumber",value:function(e){return this.adPodNumber=e,this}},{key:"setAdSlotNumber",value:function(e){return this.adSlotNumber=e,this}},{key:"build",value:function(){var e=[];return jn(this.position)||e.push("video current position=".concat(Hn(this.position),"sec")),jn(this.duration)||e.push("video duration time=".concat(Hn(this.duration),"sec")),jn(this.loadTime)||e.push("video load time=".concat(this.loadTime,"milliseconds")),jn(this.previousPosition)||e.push("previous position=".concat(Hn(this.previousPosition),"sec")),jn(this.adOrder)||e.push("ad order=".concat(this.adOrder)),jn(this.adType)||e.push("ad type=".concat(this.adType)),jn(this.adDuration)||e.push("ad duration=".concat(Hn(Number(this.adDuration)),"sec")),jn(this.adPodNumber)||e.push("pod number=".concat(this.adPodNumber)),jn(this.adSlotNumber)||e.push("slot number=".concat(this.adSlotNumber)),jn(this.errorMessage)||e.push("error message=".concat(this.errorMessage)),e.join(";")}}]),e}(),co="mmPlus GTM data ready to GA",lo="mmPlus GTM event to GA",po={EMBED:"vplayer video player embed",FIRST_PLAY:"vplayer video first play",COMPLETION_25_PERCENTAGE:"vplayer video 25% complete",COMPLETION_50_PERCENTAGE:"vplayer video 50% complete",COMPLETION_75_PERCENTAGE:"vplayer video 75% complete",COMPLETION_90_PERCENTAGE:"vplayer video 90% complete",AD_BLOCK:"vplayer video ad block",AD_REQUEST:"vplayer video ad request",AD_IMPRESSION:"vplayer video ad impression",AD_ERROR:"vplayer video ad error",AD_VIEWABLE_IMPRESSION:"vplayer video ad viewable impression",AD_COMPLETE:"vplayer video ad complete",AD_SKIP:"vplayer video ad skip",AD_PAUSE:"vplayer video ad pause",VIDEO_COMPLETE:"vplayer video complete",FULLSCREEN_ON:"vplayer video fullscreen on",FULLSCREEN_OFF:"vplayer video fullscreen off",SEEK:"vplayer video position seeked",VIDEO_MUTE:"vplayer video mute",VIDEO_UNMUTE:"vplayer video unmute",CONTROLS_MUTE_OR_UNMUTE:"controls Mute/Unmute button click",CONTROLS_PLAY_OR_PAUSE:"controls Play/Pause button click",CONTROLS_FULLSCREEN:"controls Fullscreen button click",CONTROLS_NEXT_VIDEO:"controls Next Video button click",CONTROLS_SETTINGS:"controls Settings button click",MINI_PLAYER_CLOSE:"vplayer video miniplayer close",LOADING_CONTENT_ERROR:"vplayer video player error",PLAYER_ERROR:"vplayer general player error",CONTENT_VIEWABLE_IMPRESSION:"vplayer video content viewable impression"},fo="loading ad provider library failed",ho="mid",yo=function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsEventsCallbacks",void 0),f()(this,"videoMuteSubscriber",void 0),f()(this,"videoFullscreenSubscriber",void 0),f()(this,"onMuteStateChanged",function(e){var t=gn.muted(e),n=hn.currentVideoTimeFragment(e),i=(new uo).setPosition(n).build(),o=t?po.VIDEO_MUTE:po.VIDEO_UNMUTE;r.analyticsEventsCallbacks.onEvent(o,i)}),f()(this,"onFullsScreenStateChanged",function(e){var t=gn.fullscreen(e),n=hn.currentVideoTimeFragment(e),i=(new uo).setPosition(n).build(),o=t?po.FULLSCREEN_ON:po.FULLSCREEN_OFF;r.analyticsEventsCallbacks.onEvent(o,i)}),this.store=t,this.analyticsEventsCallbacks=n,this.videoMuteSubscriber=new ji(t,e.getVideoMuteDependencies,this.onMuteStateChanged.bind(this)),this.videoFullscreenSubscriber=new ji(t,e.getVideoFullscreenDependencies,this.onFullsScreenStateChanged.bind(this))};f()(yo,"getVideoMuteDependencies",function(e){return[gn.muted(e)]}),f()(yo,"getVideoFullscreenDependencies",function(e){return[gn.fullscreen(e)]});var go=n(3),vo=n.n(go),mo=n(8),bo=n.n(mo),Oo=n(9),_o=n.n(Oo),So=n(5),Eo=n.n(So);n(20);var wo={root:null,threshold:.5,rootMargin:"0px"},Po=function(){function e(t,n,r){Ai()(this,e),f()(this,"store",void 0),f()(this,"observableElement",void 0),f()(this,"callback",void 0),f()(this,"isViewableTimeoutHandler",null),f()(this,"observer",void 0),f()(this,"didReport",!1),this.store=t,this.observableElement=n,this.callback=r,this.observer=new IntersectionObserver(this.onIntersecting.bind(this),wo)}return Vi()(e,[{key:"unobserve",value:function(){this.observer.unobserve(this.observableElement),this.clearIsViewableTimeout()}},{key:"observe",value:function(){this.observer.observe(this.observableElement)}},{key:"onPlay",value:function(){this.didReport||this.observe()}},{key:"onPause",value:function(){this.unobserve()}},{key:"onComplete",value:function(){this.didReport=!1,this.unobserve()}},{key:"onIntersecting",value:function(e){var t=e[0].isIntersecting;null===this.isViewableTimeoutHandler&&t?this.isViewableTimeoutHandler=setTimeout(this.notifyViewable.bind(this),2e3):this.clearIsViewableTimeout()}},{key:"clearIsViewableTimeout",value:function(){clearTimeout(this.isViewableTimeoutHandler),this.isViewableTimeoutHandler=null}},{key:"notifyViewable",value:function(){var e=this.store.getState;this.didReport=!0,this.callback(e()),this.unobserve()}}]),e}();function To(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}var Ao=function(e){bo()(n,e);var t=To(n);function n(e,r,i){var o;return Ai()(this,n),o=t.call(this,e,r,i),f()(vo()(o),"videoTagStatusSubscriber",void 0),f()(vo()(o),"onVideoTagStatusChanged",function(e){var t=hn.videoTagStatus(e);"playing"===t?o.onPlay():"paused"===t||"seeking"===t?o.onPause():"complete"!==t&&"error"!==t||o.onComplete()}),o.videoTagStatusSubscriber=new ji(e,n.getVideoTagStatusDependencies,o.onVideoTagStatusChanged.bind(vo()(o))),o}return n}(Po);f()(Ao,"getVideoTagStatusDependencies",function(e){return[hn.videoTagStatus(e)]});var Co=function e(t,n,r,i){var o=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"analyticsEventsCallbacks",void 0),f()(this,"videoViewableImpressionObserver",void 0),f()(this,"firstPlayReportedIndex",-1),f()(this,"loadingStartTime",-1),f()(this,"registerVideoCallbacksIdNeeded",function(e,t){"none"!==hn.playbackMethod(e)&&document.getElementById(En(t)).addEventListener("loadstart",o.onLoadStart.bind(o),{once:!0})}),f()(this,"onLoadStart",function(){o.loadingStartTime=Date.now()}),f()(this,"getFirstPlayLabel",function(e){var t=hn.currentVideoTimeFragment(e),n=hn.currentVideoDuration(e),r=-1===o.loadingStartTime?-1:Date.now()-o.loadingStartTime;return(new uo).setPosition(t).setLoadTime(r).setDuration(n).build()}),f()(this,"onVideoTagStatusChanged",function(e){var t=hn.videoTagStatus(e),n=Cn.activeVideoIndex(e);if(!(n===o.firstPlayReportedIndex)&&"playing"===t){o.firstPlayReportedIndex=n;var r=o.getFirstPlayLabel(e);o.analyticsEventsCallbacks.onEvent(po.FIRST_PLAY,r)}}),f()(this,"reportVideoViewableImpression",function(e){var t=hn.currentVideoTimeFragment(e),n=(new uo).setPosition(t).build();o.analyticsEventsCallbacks.onEvent(po.CONTENT_VIEWABLE_IMPRESSION,n)}),this.store=t,this.analyticsEventsCallbacks=n,this.videoViewableImpressionObserver=new Ao(t,r,this.reportVideoViewableImpression.bind(this)),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagDependencies,this.onVideoTagStatusChanged.bind(this)),this.registerVideoCallbacksIdNeeded(t.getState(),i)};f()(Co,"getVideoTagDependencies",function(e){return[hn.videoTagStatus(e)]});var Ro=[25,50,75,90],Do=function(){function e(){Ai()(this,e),f()(this,"lastReportedPercentage",void 0),this.lastReportedPercentage=0}return Vi()(e,[{key:"clear",value:function(){this.lastReportedPercentage=0}},{key:"updateConsumption",value:function(e,t){var n=e.position,r=e.duration,i=Math.round(n/r*100);i>this.lastReportedPercentage&&this.notifyReportableConsumption(e,i,t)}},{key:"notifyReportableConsumption",value:function(e,t,n){var r=this;Ro.filter(function(e){return e>r.lastReportedPercentage&&e<=t}).forEach(function(t){return n(t,e.position,e.duration)}),this.lastReportedPercentage=t}}]),e}(),Mo=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsEventsCallbacks",void 0),f()(this,"videoTimeSubscriber",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"videoDataStoreSubscriber",void 0),f()(this,"percentageConsumption",void 0),f()(this,"previousVideoTagStatus",void 0),f()(this,"lastPlayedPosition",void 0),f()(this,"getVideoPercentageAction",function(e){switch(e){case 25:return po.COMPLETION_25_PERCENTAGE;case 50:return po.COMPLETION_50_PERCENTAGE;case 75:return po.COMPLETION_75_PERCENTAGE;case 90:return po.COMPLETION_90_PERCENTAGE;default:return""}}),f()(this,"onVideoTimeChanged",function(e){var t=hn.currentVideoDuration(e),n=hn.currentVideoTimeFragment(e);r.percentageConsumption.updateConsumption({position:n,duration:t},r.onVideoTimeReport.bind(r))}),f()(this,"onVideoTagStatusChanged",function(e){var t=hn.videoTagStatus(e),n=hn.currentVideoTimeFragment(e),i=hn.currentVideoDuration(e);if("seeking"===r.previousVideoTagStatus){var o=(new uo).setPosition(n).setPreviousPosition(r.lastPlayedPosition).build();r.analyticsEventsCallbacks.onEvent(po.SEEK,o)}else"seeking"===t&&(r.lastPlayedPosition=n);r.previousVideoTagStatus=t,"complete"===t&&r.onComplete(i)}),f()(this,"onVideoDataChanged",function(){r.percentageConsumption.clear()}),f()(this,"onComplete",function(e){var t=(new uo).setDuration(e).build();r.analyticsEventsCallbacks.onEvent(po.VIDEO_COMPLETE,t),r.percentageConsumption.clear()}),this.store=t,this.analyticsEventsCallbacks=n,this.videoTimeSubscriber=new ji(t,e.getVideoTimeDependencies,this.onVideoTimeChanged.bind(this)),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this)),this.videoDataStoreSubscriber=new ji(t,e.getVideoDataDependencies,this.onVideoDataChanged.bind(this)),this.percentageConsumption=new Do}return Vi()(e,[{key:"onVideoTimeReport",value:function(e,t,n){var r=this.getVideoPercentageAction(e),i=(new uo).setPosition(t).setDuration(n).build();this.analyticsEventsCallbacks.onEvent(r,i)}}]),e}();f()(Mo,"getVideoTimeDependencies",function(e){return[hn.currentVideoTime(e)]}),f()(Mo,"getVideoTagStatusDependencies",function(e){return[hn.videoTagStatus(e)]}),f()(Mo,"getVideoDataDependencies",function(e){return[Cn.videoData(e)]});var Io=function e(t,n,r,i){Ai()(this,e),f()(this,"store",void 0),f()(this,"timeEvents",void 0),f()(this,"videoSettingsEvents",void 0),f()(this,"videoTagStatusEvents",void 0),this.store=t,this.timeEvents=new Mo(t,n),this.videoSettingsEvents=new yo(t,n),this.videoTagStatusEvents=new Co(t,n,r,i)},ko=n(13),No=n.n(ko),Lo=function(){function e(){Ai()(this,e),f()(this,"batteryLevel","N/A"),f()(this,"batteryChargingState",!1),f()(this,"connectionSpeed","N/A"),f()(this,"connectionType","N/A"),this.setConnectionParams()}return Vi()(e,[{key:"setConnectionParams",value:function(){var e=this,t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;t&&(this.updateConnectionParams(t.effectiveType,t.downlink),t.addEventListener("change",function(){return e.updateConnectionParams(t.effectiveType,t.downlink)}))}},{key:"updateConnectionParams",value:function(e,t){this.connectionType=e,this.connectionSpeed=t}},{key:"attach",value:function(){var e=so()(oo.a.mark(function e(){var t,n=this;return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!navigator.getBattery){e.next=7;break}return e.next=3,navigator.getBattery();case 3:t=e.sent,this.updateBatteryParams(t.level,t.charging),t.ondischargingtimechange=function(e){return n.updateBatteryParams(e.target.level,e.target.charging)},t.onchargingtimechange=function(e){return n.updateBatteryParams(e.target.level,e.target.charging)};case 7:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"updateBatteryParams",value:function(e,t){this.batteryLevel="".concat(100*e),this.batteryChargingState=t}},{key:"getBatteryLevel",value:function(){return this.batteryLevel}},{key:"getBatteryChargingState",value:function(){return this.batteryChargingState}},{key:"getConnectionSpeed",value:function(){return this.connectionSpeed}},{key:"getConnectionType",value:function(){return this.connectionType}}]),e}(),xo=function(){"undefined"===typeof window["$$mm-analytics"]&&(window["$$mm-analytics"]={});var e=window;return"undefined"===typeof e["$$mm-analytics"].firstEmbed&&(e["$$mm-analytics"].firstEmbed=Date.now()),e["$$mm-analytics"].firstEmbed},Vo=function(){return"time in process=".concat(Date.now()-xo()," milliseconds")},jo=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"videoTag",null),f()(this,"deviceParams",void 0),f()(this,"trafficDomain",void 0),f()(this,"adTimeoutDuration",void 0),f()(this,"playbackMethod",void 0),f()(this,"configName",void 0),f()(this,"playerUniqKey",void 0),f()(this,"attach",so()(oo.a.mark(function e(){return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.deviceParams=new Lo,e.next=3,r.deviceParams.attach();case 3:case"end":return e.stop()}},e)}))),f()(this,"translatePlaybackMethod",function(e){switch(e){case"lazyplay":return"scroll to play";case"autoplay":return"auto play";case"autoplay_when_viewable":return"auto play when viewable";case"none":return"click to play";default:return"none"}}),f()(this,"getAdTimeout",function(e){return e?"".concat(qn(e)," sec"):"none"}),f()(this,"getVideoTag",function(){return null===r.videoTag&&(r.videoTag=document.getElementById(En(r.playerUniqKey))),r.videoTag}),f()(this,"getUnitSize",function(){var e=r.getVideoTag();return null!==e?"".concat(e.clientWidth,":").concat(e.clientHeight):"none"}),f()(this,"getBatteryCharging",function(){return r.deviceParams.getBatteryChargingState()?"yes":"no"});var i=t.publisher_contribution,o=t.monetization,a=t.playback_method,s=t.config_name;this.playerUniqKey=n,this.trafficDomain=i,this.adTimeoutDuration=o&&o.ad_request_timeout?this.getAdTimeout(o.ad_request_timeout):"none",this.playbackMethod=this.translatePlaybackMethod(a),this.configName=s}return Vi()(e,[{key:"getDimensions",value:function(){return{mmPlusConfigName:this.configName,mmPlusPlaybackMethod:this.playbackMethod,mmPlusPrePvTimeInProcess:Vo(),mmPlusTrafficDomain:this.trafficDomain,mmPlusUnitSize:this.getUnitSize(),mmPlusUnitType:"video",mmPlusUserBatteryCharging:this.getBatteryCharging(),mmPlusUserBatteryLevel:this.deviceParams.getBatteryLevel(),mmPlusUserConnectionSpeed:this.deviceParams.getConnectionSpeed(),mmPlusUserConnectionType:this.deviceParams.getConnectionType(),mmPlusAdTimeoutDuration:this.adTimeoutDuration}}}]),e}();function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bo(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}var Ho=function(e){bo()(n,e);var t=Bo(n);function n(e,r){var i,o;return Ai()(this,n),o=t.call(this,e,r),f()(vo()(o),"domain",void 0),f()(vo()(o),"getDimensions",function(){return Fo(Fo({},No()((i=vo()(o),Eo()(n.prototype)),"getDimensions",i).call(i)),{},{mmPlusDomain:o.domain})}),o.domain=window.location.hostname,o}return n}(jo);function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zo(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}var Go=function(e){bo()(n,e);var t=zo(n);function n(e,r,i){var o;Ai()(this,n),o=t.call(this,i,r),f()(vo()(o),"store",void 0),f()(vo()(o),"playerUniqId",void 0),f()(vo()(o),"autoPlay",void 0),f()(vo()(o),"streamType",void 0),f()(vo()(o),"gaProperty",void 0),f()(vo()(o),"booleanToYesOrNo",function(e){return e?"yes":"no"}),f()(vo()(o),"getAspectRatio",function(e,t){var r=n.getCommonDenominator(e,t),i=t/r;return"".concat(e/r,":").concat(i)}),f()(vo()(o),"getUnitRadio",function(){var e=o.getVideoTag();if(null!==e){var t=e.clientWidth,n=e.clientHeight;return o.getAspectRatio(t,n)}return"none"}),f()(vo()(o),"getVideoDuration",function(e){var t=Dn.duration(e);return t?"".concat(t," sec"):"none"});var a=i.playback_method,s=i.content_type,u=i.ga_property;return o.store=e,o.playerUniqId=r,o.autoPlay=o.booleanToYesOrNo("none"!==a),o.streamType=s,o.gaProperty=u||o.trafficDomain,o}return Vi()(n,[{key:"getDimensions",value:function(){var e=this.store.getState;return Wo(Wo({},No()(Eo()(n.prototype),"getDimensions",this).call(this)),{},{mmPlusVideoPlayerId:this.playerUniqId,mmPlusUnitId:Dn.mediaId(e())||"none",mmPlusUnitTitle:Dn.title(e())||"none",mmPlusVideoAutoplay:this.autoPlay,mmPlusVideoDuration:this.getVideoDuration(e()),mmPlusVideoStreamType:this.streamType,mmPlusVideoPlaylistId:Cn.mediaId(e())||"none",mmPlusVideoMuted:this.booleanToYesOrNo(gn.muted(e())),mmPlusUnitTags:Dn.tags(e()).toString()||"none",mmPlusUnitOrderNumber:Cn.activeVideoIndex(e()),mmPlusTrafficReferrer:document.referrer,mmPlusUnitProvider:Dn.provider(e())||"none",mmPlusUnitCreator:Dn.creator(e())||"none",mmPlusUnitExternalId:Dn.externalId(e())||"none",mmPlusUnitRatio:this.getUnitRadio(),mmPlusGaProperty:this.gaProperty,mmPlusVideoPlayerType:"vplayer",mmPlusVideoThumbnailsOn:"none",mmPlusVideoClosedCaptionsOn:"none",mmPlusVideoRecommendationsVisible:"none"})}}]),n}(jo);function $o(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}f()(Go,"getCommonDenominator",function(e,t){for(var n=e,r=t;r;){var i=r;r=n%r,n=i}return n});var Ko=function(e){bo()(n,e);var t=$o(n);function n(e,r,i){var o;return Ai()(this,n),o=t.call(this,e,r,i),f()(vo()(o),"adStatusSubscriber",void 0),f()(vo()(o),"onAdStatusChanged",function(e){var t=_i.adStatus(e);"playing"===t?o.onPlay():"paused"===t?o.onPause():Hi(t)||o.onComplete()}),o.adStatusSubscriber=new ji(e,n.getAdStatusDependencies,o.onAdStatusChanged.bind(vo()(o))),o}return n}(Po);f()(Ko,"getAdStatusDependencies",function(e){return[_i.adStatus(e)]});var Yo=function e(t,n,r){var i=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsCallback",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"adImpressionSubscriber",void 0),f()(this,"adProviderLoadingStatusSubscriber",void 0),f()(this,"adViewableImpressionObserver",void 0),f()(this,"initAdBlockChecker",function(t){""===Fi.loadingImaStatus(t.getState())?i.adProviderLoadingStatusSubscriber=new ji(t,e.getAdProviderLoadingStatusDependencies,i.onAdProviderLoadingStatusChanged.bind(i)):i.onAdProviderLoadingStatusChanged(t.getState())}),f()(this,"getAdOrderFromPlayedMidrolls",function(e){return e&&e.length>0?e[e.length-1]:0}),f()(this,"getFullAdLabel",function(e){var t=hn.currentVideoTimeFragment(e),n=_i.adDuration(e),r=_i.playedMidrolls(e),o=_i.slotNumber(e),a=_i.podNumber(e),s=i.getAdOrderFromPlayedMidrolls(r);return(new uo).setAdType(ho).setPosition(t).setAdDuration(n).setAdOrder(s).setAdSlotNumber(o).setAdPodNumber(a).build()}),f()(this,"reportAdBlock",function(){i.analyticsCallback.onEvent(po.AD_BLOCK)}),f()(this,"reportError",function(e){var t=(new uo).setErrorMessage(e).build();i.analyticsCallback.onEvent(po.PLAYER_ERROR,t)}),f()(this,"reportAdRequested",function(e){var t=hn.currentVideoTimeFragment(e),n=_i.playedMidrolls(e),r=i.getAdOrderFromPlayedMidrolls(n),o=(new uo).setPosition(t).setAdOrder(r).build();i.analyticsCallback.onEvent(po.AD_REQUEST,o)}),f()(this,"reportAdImpression",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_IMPRESSION,t)}),f()(this,"reportAdError",function(e){var t=_i.adErrorMessage(e),n=_i.slotNumber(e),r=_i.podNumber(e),o=(new uo).setAdType(ho).setErrorMessage(t).setAdPodNumber(r).setAdSlotNumber(n).build();i.analyticsCallback.onEvent(po.AD_ERROR,o)}),f()(this,"reportAdComplete",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_COMPLETE,t)}),f()(this,"reportAdSkipped",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_SKIP,t)}),f()(this,"reportAdPaused",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_PAUSE,t)}),f()(this,"reportAdViewableImpression",function(e){var t=hn.currentVideoTimeFragment(e),n=_i.adDuration(e),r=_i.slotNumber(e),o=_i.podNumber(e),a=(new uo).setPosition(t).setAdType(ho).setAdDuration(n).setAdPodNumber(o).setAdSlotNumber(r).build();i.analyticsCallback.onEvent(po.AD_VIEWABLE_IMPRESSION,a)}),f()(this,"onAdStatusChanged",function(e){var t=_i.adStatus(e);"requested"===t&&i.reportAdRequested(e),"error"===t&&i.reportAdError(e),"completed"===t&&i.reportAdComplete(e),"skipped"===t&&i.reportAdSkipped(e),"paused"===t&&i.reportAdPaused(e)}),f()(this,"onAdProviderLoadingStatusChanged",function(e){var t=Fi.loadingImaStatus(e);"blocked"===t?i.reportAdBlock():"error"===t&&i.reportError(fo)}),f()(this,"onAdImpressionChanged",function(e){i.reportAdImpression(e)}),this.store=t,this.analyticsCallback=n,this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this)),this.adImpressionSubscriber=new ji(t,e.getAdImpressionDependencies,this.onAdImpressionChanged.bind(this)),this.adViewableImpressionObserver=new Ko(t,r,this.reportAdViewableImpression.bind(this)),this.initAdBlockChecker(t)};f()(Yo,"getAdProviderLoadingStatusDependencies",function(e){return[Fi.loadingImaStatus(e)]}),f()(Yo,"getAdStatusDependencies",function(e){return[_i.adStatus(e)]}),f()(Yo,"getAdImpressionDependencies",function(e){return[_i.adImpression(e)]});var Zo=pn.userInteraction,Xo=function(e){return Zo(e).userInteractionType},Jo=function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsCallbacks",void 0),f()(this,"userInteraction",void 0),f()(this,"getLabel",function(e){var t=hn.currentVideoTimeFragment(e);return(new uo).setPosition(t).build()}),f()(this,"reportMuteOrUnmute",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_MUTE_OR_UNMUTE,r.getLabel(e))}),f()(this,"reportFullscreen",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_FULLSCREEN,r.getLabel(e))}),f()(this,"reportPlayOrPause",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_PLAY_OR_PAUSE,r.getLabel(e))}),f()(this,"reportNextVideo",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_NEXT_VIDEO,r.getLabel(e))}),f()(this,"reportSettings",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_SETTINGS,r.getLabel(e))}),f()(this,"reportMiniPlayerClosed",function(e){r.analyticsCallbacks.onEvent(po.MINI_PLAYER_CLOSE,r.getLabel(e))}),f()(this,"onUserInteractionChanged",function(e){switch(Xo(e)){case"mute":case"unmute":r.reportMuteOrUnmute(e);break;case"fullscreen":r.reportFullscreen(e);break;case"play":case"pause":r.reportPlayOrPause(e);break;case"settings":r.reportSettings(e);break;case"nextVideo":r.reportNextVideo(e);break;case"closeMiniPlayer":r.reportMiniPlayerClosed(e)}}),this.store=t,this.analyticsCallbacks=n,this.userInteraction=new ji(t,e.getUserInteractionDependencies,this.onUserInteractionChanged.bind(this))};function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}f()(Jo,"getUserInteractionDependencies",function(e){return[Xo(e)]});var ta=function e(t,n,r,i){var o=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoEventsReporter",void 0),f()(this,"monetizationEventsReporter",void 0),f()(this,"userInteractionReporter",void 0),f()(this,"eventCustomDimensions",void 0),f()(this,"dataLayer",null),f()(this,"attach",function(){var e=so()(oo.a.mark(function e(t,n,r){return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.eventCustomDimensions=new Go(t,n,r),e.next=3,o.eventCustomDimensions.attach();case 3:return e.next=5,o.reportReady(t,n,r);case 5:o.reportEmbed();case 6:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}()),f()(this,"initDataLayer",function(){var e;try{e=$n(window.parent)}catch(t){e=$n(window)}o.dataLayer=window[e]}),f()(this,"reportReady",function(){var e=so()(oo.a.mark(function e(t,n,r){var i;return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=new Ho(r,n),e.next=3,i.attach();case 3:o.dataLayer.push(ea({event:co},i.getDimensions()));case 4:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}()),f()(this,"reportEmbed",function(){o.onEvent(po.EMBED)}),f()(this,"onEvent",function(e,t,n,r){var i=r||o.eventCustomDimensions.getDimensions(),a=n||lo;o.dataLayer.push(ea(ea({event:a,mmPlusGA_event_action:e,mmPlusGA_event_label:t,mmPlusGA_event_category:"MMVideo"},i),{},{time:Date.now()}))}),this.store=t,this.initDataLayer(),this.videoEventsReporter=new Io(t,this,i,n),this.monetizationEventsReporter=new Yo(t,this,i),window.monetizationEventsReporter=this.monetizationEventsReporter,this.userInteractionReporter=new Jo(t,this),this.attach(t,n,r)},na=pn.discovery,ra=function(e){return na(e).nextVideo},ia=n(51).version,oa=function e(){var t=this;Ai()(this,e),f()(this,"controlsLoaded",void 0),f()(this,"loadInternalPlugins",function(e,n,r){var i=r.dev_config,o=e.getState,a=i&&!Un(i.pluginsPath)?i.pluginsPath:function(){try{return"https://www.oo-syringe.com/prod/players"}catch(w){return"./dist/bundle"}}();t.loadAnalyticsPlugin(e,n,r),t.loadActionsPlugin(n,a),t.loadMonetizationPlugin(e,n),t.loadControlsPlugin(n,a),t.loadAnchorPlugin(n,a),t.loadComscorePlugin(n,r,a),Sr(o())&&Un(Zn(o()))&&t.loadCloseBarPlugin(n,a),"none"!==ra(o())&&t.loadDiscoveryPlugin(n,a),Un(Zn(o()))||t.loadSplitViewPlugin(n,a)}),f()(this,"loadActionsPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.actionsPlugin)window.monti.dataset.plugins.actionsPlugin(e);else{var n=document.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src","".concat(t,"/mplayer_actions_plugin.").concat(ia,".js")),n.addEventListener("load",function(){window.monti.dataset.plugins.actionsPlugin(e)}),n.addEventListener("error",function(){console.log("ACTIONS PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadMonetizationPlugin",function(e,t){ro(e,t)}),f()(this,"loadControlsPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.controlsPlugin)window.monti.dataset.plugins.controlsPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_controls_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.controlsPlugin(e)}),n.addEventListener("error",function(){console.log("CONTROLS PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadAnchorPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.anchorPlugin)window.monti.dataset.plugins.anchorPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_anchor_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.anchorPlugin(e)}),n.addEventListener("error",function(){console.log("ANCHOR PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadSplitViewPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.splitViewPlugin)window.monti.dataset.plugins.splitViewPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_split_view_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.splitViewPlugin(e)}),n.addEventListener("error",function(){console.log("SPLIT VIEW PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadComscorePlugin",function(e,t,n){if(window.monti.dataset&&window.monti.dataset.plugins.comscorePlugin)window.monti.dataset.plugins.comscorePlugin(e,t);else{var r=document.createElement("script");r.setAttribute("src","".concat(n,"/mplayer_comscore_plugin.").concat(ia,".js")),r.setAttribute("type","text/javascript"),r.addEventListener("load",function(){window.monti.dataset.plugins.comscorePlugin(e,t)}),r.addEventListener("error",function(){console.log("COMSCORE PLUGIN LOADER ERROR !")}),document.body.appendChild(r)}}),f()(this,"loadAnalyticsPlugin",function(e,t,n){!function(e,t,n){var r=document.getElementById(bn(t));new ta(e,t,n,r)}(e,t,n)}),f()(this,"loadDiscoveryPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.discoveryPlugin)window.monti.dataset.plugins.discoveryPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_discovery_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.discoveryPlugin(e)}),n.addEventListener("error",function(){console.log("DISCOVERY PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadCloseBarPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.closeBar)window.monti.dataset.plugins.closeBarPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_close_bar_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.closeBarPlugin(e)}),n.addEventListener("error",function(){console.log("CLOSE BAR PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),this.controlsLoaded=!1};function aa(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}f()(oa,"instance",void 0),f()(oa,"getInstance",function(){return oa.instance||(oa.instance=new oa),oa.instance});var sa=aa();sa.withExtraArgument=aa;var ua=sa;function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var da={loadingHLSStatus:"",loadingImaStatus:""};function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ha={playerId:"",playerInstanceUniqId:null,playbackMethod:"none",videoTagStatus:"idle",pendingVideoTagStatus:{type:null,value:null},currentVideoTime:0,currentVideoTimeFragment:0,currentVideoBufferedTime:0,currentVideoDuration:0,playerMode:"desktop",playerVisibility:0,playerPlaceholderVisibility:0,playerSettings:{muted:!0,volume:.5,speed:1,quality:"Auto",selectedSettingsCategory:"",fullscreen:{pendingFullscreenRequest:"",isFullscreenOn:!1}},loader:{showBlackScreen:!1},playerSize:"",errorMessage:"",loadingPlayer:!1};function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var va={showVoltaxLogo:!0,brandingLogoSrc:"",brandingLogoUrl:"",brandingColor:null};function ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Oa={orientation:"right",canClose:!0,anchorData:{anchorEnabled:!1,anchorDisabledByUser:!1,anchorStatus:"inactive"},closableAd:!0,continueStreaming:!1,anchoringAppearance:"below",stickyBelowClassName:"",width:"",closeAfter:10,margins:{top:10,bottom:10,left:10,right:10}};function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ea,wa={continuePlayingWhileWaitingForAd:!1,midrolls:{},prerollEnabled:!1,vpaidMode:"ENABLED",adRequestTimeout:1e4,adsData:{podNumber:0,slotNumber:0,adType:null,adTagUrlTemplate:null,adErrorMessage:null,adDuration:0,adCurrentTime:0,adOrder:0,adStatus:"",pendingAdStatus:{type:""},playedMidrolls:[],adImpression:0,adOpportunity:0,isVastAd:!1,adMuted:!0,adVolume:.5,currentAdTag:null,adUnit:"",loadingAd:!1}},Pa=n(32),Ta=n.n(Pa);!function(e){e.POST="post",e.GET="get",e.DELETE="delete",e.PUT="put",e.PATCH="patch",e.HEAD="head",e.OPTIONS="options"}(Ea||(Ea={}));var Aa=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"preformRequest",value:function(e,t){return new Promise(function(n,r){Ta()({method:e,url:t}).then(function(e){var t=e.data;n(t)}).catch(function(e){r(e)})})}},{key:"preformGet",value:function(e){return this.preformRequest(Ea.GET,e)}}]),e}();f()(Aa,"HTTP_STATUS_CODES",{OK:200,UNAUTHORIZED:401,INTERNAL_SERVER_ERROR:500,BAD_REQUEST:400,NOT_FOUND:404,CONFLICT:409});var Ca=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"getSemanticPlaylistUrl",value:function(e,t,n){if(n&&!Un(n.semantic_url))return n.semantic_url;var r=function(e){for(var t="",n=0,r=0;r<e.length;r+=1)n=e.charCodeAt(r)+2,t+=String.fromCharCode(n);return encodeURIComponent(encodeURIComponent(t))}(e.split("?")[0]),i="".concat(function(){try{return"https://semantic-matching.minutemediaservices.com/semantic-feed"}catch(w){return"https://semantic-matching.minutemediaservices.com/semantic-feed"}}(),"/").concat(r),o="?";return Un(t.minimumDateFactor)||(i="".concat(i).concat(o,"minimum_date_factor=").concat(t.minimumDateFactor),o="&"),Un(t.tags)||(i="".concat(i).concat(o,"tags=").concat(t.tags),o="&"),Un(t.scopedKeywords)||(i="".concat(i).concat(o,"scoped_keywords=").concat(t.scopedKeywords),o="&"),Un(t.scannedElement)||Un(t.scannedElementType)||(i="".concat(i).concat(o,"article_container=").concat(function(e,t){switch(t){case"id":return"".concat("#").concat(e);case"className":return e.split(" ").map(function(e){return"".concat(".").concat(e)}).join("");default:return"".concat("").concat(e)}}(t.scannedElement,t.scannedElementType)),o="&"),Un(t.scanImagesOnPage)||(i="".concat(i).concat(o,"scan_images=").concat(String(t.scanImagesOnPage))),i}},{key:"getSpecificPlaylistUrl",value:function(e,t){return t&&!Un(t.playlist_url)?t.playlist_url:"".concat("https://vms-videos.minutemediaservices.com","/").concat(e,"/").concat(e,".json")}}]),e}(),Ra=function(e,t){var n=e.findIndex(function(e){return e.type===t});return n>=0?e[n].file:""},Da=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"getSemanticPlaylist",value:function(e,t){var n=window.location.href,r=Ca.getSemanticPlaylistUrl(n,e,t);return Aa.preformGet(r)}},{key:"getSpecificPlaylist",value:function(e,t){var n=Ca.getSpecificPlaylistUrl(e,t);return Aa.preformGet(n)}}]),e}();f()(Da,"getPromotedVideos",function(){var e=so()(oo.a.mark(function e(t){var n;return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map(function(e){return Da.getSpecificPlaylist(e).then(function(e){return e.data}).catch(function(){return[]})}),e.abrupt("return",new Promise(function(e){Promise.all(n).then(function(t){var n=t.reduce(function(e,t){return e.concat(t)},[]);n.length>0&&e(n)})}));case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());var Ma=function(e,t){return function(n){n({type:"[CORE] load video request success",payload:e.data.map(function(e,n){return{mediaId:e.payload_id,tags:e.tags,sources:e.sources,duration:e.duration,thumbnail:e.image,title:t?e.title:"",description:e.description,creator:e.creator,provider:e.video_provider,externalId:e.external_id,index:n}})})}},Ia=function(e){return function(t){t({type:"[CORE] load video request error",payload:e})}},ka=function(e,t,n){return function(){var r=so()(oo.a.mark(function r(i){var o;return oo.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:"[CORE] load video request"}),r.prev=1,r.next=4,Da.getSpecificPlaylist(e,n);case 4:o=r.sent,Ma(o,t)(i),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(1),Ia(Xn.GENERAL_ERROR)(i);case 11:case"end":return r.stop()}},r,null,[[1,8]])}));return function(e){return r.apply(this,arguments)}}()},Na=function(e,t,n){return function(){var r=so()(oo.a.mark(function r(i){var o,a;return oo.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i({type:"[CORE] load video request"}),o=[],r.prev=2,!(Array.isArray(e.promotedVideos)&&e.promotedVideos.length>0)){r.next=7;break}return r.next=6,Da.getPromotedVideos(e.promotedVideos);case 6:o=r.sent;case 7:return r.next=9,Da.getSemanticPlaylist(e,n);case 9:(a=r.sent).data=o.concat(a.data),Ma(a,t)(i),r.next=17;break;case 14:r.prev=14,r.t0=r.catch(2),o.length>0?Ma({data:o},t)(i):Ia(Xn.GENERAL_ERROR)(i);case 17:case"end":return r.stop()}},r,null,[[2,14]])}));return function(e){return r.apply(this,arguments)}}()},La=function(e,t){return function(n){n({type:"[CORE] set current video",payload:{index:e,videoData:t}})}};function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ja={activeVideoIndex:0,mediaType:"semantic",mediaId:"",loadingMedia:!1,mediaLoadingError:"",mediaRequest:{type:null,value:""},videoList:[],videoData:{mediaId:"",tags:[],sources:[],duration:0,thumbnail:"",title:"",showTitle:!0,description:"",creator:"",provider:"",externalId:"",index:0}};function Ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ba={promotedVideos:[],scannedElement:"",tags:"",scopedKeywords:"",minimumDateFactor:"",scannedElementType:null,scanImagesOnPage:!1};function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Wa={userInteractionType:""};function za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?za(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):za(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $a={splitViewRatio:null};function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Za={nextVideo:"none",showUpNext:!1,showSkippableContent:!1},Xa=function(e){return"none"===e?"none":"up_next"===e?"upNext":"skippable_content"===e?"skippableContent":"none"},Ja=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:yt.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:yt.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+yt.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var u=a[s],c=n[u],l=e[u],d=c(l,t);if("undefined"===typeof d){var p=mt(u,t);throw new Error(p)}i[u]=d,r=r||d!==l}return(r=r||a.length!==Object.keys(e).length)?i:e}}({dependenciesLoadingStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:da,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] update hls status":return la(la({},e),{},{loadingHLSStatus:t.payload});case"[CORE] update ima status":return la(la({},e),{},{loadingImaStatus:t.payload});default:return e}},playerData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ha,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":var n=t.payload;return fa({},function(e,t,n){var r=t.playback_method,i=t.player_id;return fa(fa({},e),{},{playbackMethod:Un(r)?e.playbackMethod:r,playerId:Un(i)?e.playerId:i,playerInstanceUniqId:n,playerMode:Fn()?"mobile":"desktop"})}(e,n.initiateParams,n.playerInstanceUniqId));case"[CORE] reset player data time params":return fa(fa({},e),{},{currentVideoTimeFragment:0,currentVideoBufferedTime:0,currentVideoDuration:0,currentVideoTime:0});case"[COMMON] set mute video":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{muted:t.payload})});case"[COMMON] set volume":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{volume:t.payload})});case"[COMMON] change selected settings category":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{selectedSettingsCategory:t.payload})});case"[COMMON] change settings speed":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{speed:t.payload})});case"[COMMON] change settings quality":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{quality:t.payload})});case"[COMMON] set fullscreen":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{fullscreen:fa(fa({},e.playerSettings.fullscreen),{},{isFullscreenOn:t.payload,pendingFullscreenRequest:""})})});case"[COMMON] set fullscreen request":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{fullscreen:fa(fa({},e.playerSettings.fullscreen),{},{pendingFullscreenRequest:t.payload})})});case"[COMMON] set pending video status":var r=t.payload.pendingStatusObject;return fa(fa({},e),{},{pendingVideoTagStatus:fa({},r)});case"[COMMON] set player mode":return fa(fa({},e),{},{playerMode:t.payload});case"[CORE] update video current fragment position":return fa(fa({},e),{},{currentVideoTimeFragment:t.payload});case"[CORE] update video current position":return fa(fa({},e),{},{currentVideoTime:t.payload});case"[CORE] update video current buffered time":return fa(fa({},e),{},{currentVideoBufferedTime:t.payload});case"[CORE] update video current duration":return fa(fa({},e),{},{currentVideoDuration:t.payload});case"[CORE] change video tag status":return fa(fa({},e),{},{videoTagStatus:t.payload});case"[CORE] update player visibility":return fa(fa({},e),{},{playerVisibility:t.payload});case"[CORE] update placeholder visibility":return fa(fa({},e),{},{playerPlaceholderVisibility:t.payload});case"[CORE] change loading player status":return fa(fa({},e),{},{loadingPlayer:t.payload});case"[COMMON] show black screen with loader":return fa(fa({},e),{},{loader:fa(fa({},e.loader),{},{showBlackScreen:t.payload})});case"[CORE] set player size":return fa(fa({},e),{},{playerSize:t.payload});case"[COMMON] set error message":return fa(fa({},e),{},{errorMessage:t.payload});default:return e}},brandingData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:va,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return ga({},function(e,t){var n=t.powered_by_strip,r=t.brand_logo,i=t.brand_logo_click_url,o=t.brand_color;return ga(ga({},e),{},{showVoltaxLogo:Un(n)?e.showVoltaxLogo:n,brandingLogoSrc:Un(r)?e.brandingLogoSrc:r,brandingLogoUrl:Un(i)?e.brandingLogoUrl:i,brandingColor:Un(o)?e.brandingColor:o})}(e,t.payload.initiateParams));default:return e}},anchorOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return ba({},function(e,t){var n=t.anchor_options;if(!Un(n)){var r=n.anchoring_appearance,i=n.can_close,o=n.closable_ad,a=n.close_after,s=n.continue_streaming,u=n.orientation,c=n.margins,l=n.sticky_below_class_name,d=n.width,p=Un(c)?e.margins:{top:Number.isInteger(c.top)?c.top:e.margins.top,bottom:Number.isInteger(c.bottom)?c.bottom:e.margins.bottom,left:Number.isInteger(c.left)?c.left:e.margins.left,right:Number.isInteger(c.right)?c.right:e.margins.right};return ba(ba({},e),{},{anchoringAppearance:r||e.anchoringAppearance,canClose:Un(i)?e.canClose:i,orientation:Un(u)?e.orientation:u,closableAd:Un(o)?e.closableAd:o,closeAfter:Un(a)?e.closeAfter:a,continueStreaming:Un(s)?e.continueStreaming:s,stickyBelowClassName:Un(l)?e.stickyBelowClassName:l,width:Un(d)?e.width:d,margins:p,anchorData:ba(ba({},e.anchorData),{},{anchorEnabled:!0})})}return e}(e,t.payload.initiateParams));case"[COMMON] set anchor enable":return ba(ba({},e),{},{anchorData:ba(ba({},e.anchorData),{},{anchorEnabled:t.payload})});case"[ANCHOR] update is anchor status":return ba(ba({},e),{},{anchorData:ba(ba({},e.anchorData),{},{anchorStatus:t.payload})});case"[COMMON] set anchor disabled by user":return ba(ba({},e),{},{anchorData:ba(ba({},e.anchorData),{},{anchorDisabledByUser:t.payload})});default:return e}},monetization:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Sa({},function(e,t){var n=t.monetization;if(Un(n))return e;var r=n.ad_tag,i=n.ad_type,o=n.vpaid_mode,a=n.ad_request_timeout,s=n.continue_content_play_while_waiting_for_ad,u=n.midrolls,c=u&&u.on&&u.on.sort(Wn),l=Un(s)?e.continuePlayingWhileWaitingForAd:s,d=c?c.indexOf(0):-1,p=-1!==d&&!l;return p&&(c=c.splice(d,1)),Sa(Sa({},e),{},{midrolls:Sa(Sa({},e.midrolls),{},{every:u&&u.every,on:c}),prerollEnabled:p,adRequestTimeout:Un(a)?e.adRequestTimeout:parseInt(a,10),vpaidMode:Un(o)?e.vpaidMode:o,continuePlayingWhileWaitingForAd:l,adsData:Sa(Sa({},e.adsData),{},{adType:Un(i)?e.adsData.adType:i,adTagUrlTemplate:Un(r)?e.adsData.adTagUrlTemplate:r})})}(e,t.payload.initiateParams));case"[COMMON] set new ad tag url template":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adTagUrlTemplate:t.payload})});case"[MONETIZATION] change ad status":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adStatus:t.payload,adErrorMessage:null})});case"[MONETIZATION] change ad tag":var n=t.payload,r=n.adUnit,i=n.adTag;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{currentAdTag:i,adUnit:r})});case"[MONETIZATION] change pending ad status":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{pendingAdStatus:t.payload})});case"[MONETIZATION] change ad error":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adStatus:"error",adErrorMessage:t.payload})});case"[MONETIZATION] increase ad impression counter":var o=e.adsData.adImpression;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adImpression:o+1})});case"[MONETIZATION] increase ad Opportunity counter":var a=e.adsData.adOpportunity;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adOpportunity:a+1})});case"[MONETIZATION] add played midroll number":var s=e.adsData.playedMidrolls,u=In()(s);return u.push(t.payload),Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adOrder:t.payload,playedMidrolls:u})});case"[MONETIZATION] clear played midrolls":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{playedMidrolls:[]})});case"[MONETIZATION] clear ad data":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adOrder:0,currentAdTag:null,adDuration:0,adUnit:""})});case"[MONETIZATION] change ad duration":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adDuration:t.payload})});case"[MONETIZATION] update is vast ad":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{isVastAd:t.payload})});case"[MONETIZATION] change ad current time":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adCurrentTime:t.payload})});case"[MONETIZATION] update ad muted":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adMuted:t.payload})});case"[MONETIZATION] change ad volume":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adVolume:t.payload})});case"[MONETIZATION] change pod info":var c=t.payload,l=c.podNumber,d=c.slotNumber;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{podNumber:l,slotNumber:d})});case"[MONETIZATION] change loading ad status":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{loadingAd:t.payload})});default:return e}},mediaData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ja,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Va({},function(e,t){var n=t.content_type,r=t.media_id,i=t.display_title;return Va(Va({},e),{},{mediaType:Un(n)?e.mediaType:n,mediaId:Un(r)?e.mediaId:r,videoData:Va(Va({},e.videoData),{},{showTitle:!!Un(i)||i})})}(e,t.payload.initiateParams));case"[CORE] load video request":return Va(Va({},e),{},{loadingMedia:!0});case"[CORE] load video request success":return Va(Va({},e),{},{loadingMedia:!1,videoList:t.payload});case"[CORE] set current video":var n=t.payload,r=n.index,i=n.videoData;return Va(Va({},e),{},{activeVideoIndex:r,videoData:i});case"[CORE] load video request error":return Va(Va({},e),{},{loadingMedia:!1,mediaLoadingError:t.payload});case"[COMMON] media request":var o=t.payload.mediaRequestObject;return Va(Va({},e),{},{mediaRequest:Va({},o)});default:return e}},semanticOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ba,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Fa({},function(e,t){var n=t.semantic_options;if(Un(n))return e;var r=n.minimum_date_factor,i=n.promoted_videos,o=n.scan_images_on_page,a=n.scanned_element,s=n.scanned_element_type,u=n.scoped_keywords,c=n.tags;return Fa(Fa({},e),{},{minimumDateFactor:Un(r)?e.minimumDateFactor:r,promotedVideos:Un(i)?e.promotedVideos:i,scanImagesOnPage:Un(o)?e.scanImagesOnPage:o,scannedElement:Un(a)?e.scannedElement:a,scannedElementType:Un(s)?e.scannedElementType:s,scopedKeywords:Un(u)?e.scopedKeywords:u,tags:Un(c)?e.tags:c})}(e,t.payload.initiateParams));default:return e}},userInteraction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[USER INTERACTION] change user interaction":return qa(qa({},e),{},{userInteractionType:t.payload});default:return e}},splitView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Ga({},function(e,t){var n=t.anchor_options;if(!Un(n)){var r=n.split_view,i=n.split_view_ratio;return Ga(Ga({},e),{},{splitViewRatio:Un(r)||!r||Un(i)?e.splitViewRatio:i})}return e}(e,t.payload.initiateParams));default:return e}},discovery:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Za,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Ya({},function(e,t){var n=t.next_video;return Un(n)?e:Ya(Ya({},e),{},{nextVideo:Xa(n)})}(e,t.payload.initiateParams));case"[DISCOVERY] show up next":return Ya(Ya({},e),{},{showUpNext:t.payload});case"[DISCOVERY] show skippable content":return Ya(Ya({},e),{},{showSkippableContent:t.payload});default:return e}}}),Qa=[],es=!1,ts=function e(){return function(t){return function(n){if(es)return Qa.push(n),null;es=!0;var r=t(n);return es=!1,Qa.length>0&&e()(t)(Qa.shift()),r}}},ns=function(e){var t=[];if(function(e){return!Un(e)&&!Un(e.enable_redux_debugging)&&e.enable_redux_debugging}(e)){var n=window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__();"function"===typeof n&&t.push(n)}var r=Et.apply(void 0,[wt(ua,ts)].concat(t));return vt(Ja,r)},rs=function(){function e(t){Ai()(this,e),f()(this,"playerVisibilitySubscriber",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"shouldPlayIfLazyplay",!0),f()(this,"shouldPlayIfAutoplayWhenViewable",!0),f()(this,"videoPausedByObserver",!1),this.store=t,this.playerVisibilitySubscriber=null,this.videoTagStatusSubscriber=null,this.playAccordingToPlaybackMethod()}return Vi()(e,[{key:"lazyplayHandler",value:function(e){hn.playerVisibility(e)>=.5&&(this.playVideo(),this.shouldPlayIfLazyplay=!1)}},{key:"autoplayWhenViewableHandler",value:function(e){hn.playerVisibility(e)>=.5?this.playVideo():this.pauseVideo()}},{key:"onPlayerVisibilityChanged",value:function(e){var t=hn.playbackMethod(e);"lazyplay"===t&&this.shouldPlayIfLazyplay&&this.lazyplayHandler(e),"autoplay_when_viewable"===t&&this.shouldPlayIfAutoplayWhenViewable&&this.autoplayWhenViewableHandler(e)}},{key:"onVideoTagStatusChanged",value:function(e){var t=hn.videoTagStatus(e);"paused"!==t||this.videoPausedByObserver||(this.shouldPlayIfAutoplayWhenViewable=!1),"playing"===t&&(this.shouldPlayIfAutoplayWhenViewable=!0,this.videoPausedByObserver=!1)}},{key:"initiatePlayerVisibilitySubscriber",value:function(){this.playerVisibilitySubscriber=new ji(this.store,e.getPlayerVisibilityDependencies,this.onPlayerVisibilityChanged.bind(this))}},{key:"initiateVideoTagStatusSubscriber",value:function(){this.videoTagStatusSubscriber=new ji(this.store,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this))}},{key:"playVideo",value:function(){var e=this.store,t=e.dispatch,n=e.getState;"idle"===hn.videoTagStatus(n())?on("play")(t):on("resume")(t)}},{key:"pauseVideo",value:function(){var e=this.store,t=e.dispatch,n=e.getState;"paused"!==hn.videoTagStatus(n())&&(this.videoPausedByObserver=!0,on("pause")(t))}},{key:"playAccordingToPlaybackMethod",value:function(){var e=this.store,t=e.dispatch,n=(0,e.getState)();switch(hn.playbackMethod(n)){case"autoplay":this.playVideo();break;case"lazyplay":this.initiatePlayerVisibilitySubscriber();break;case"autoplay_when_viewable":this.initiatePlayerVisibilitySubscriber(),this.initiateVideoTagStatusSubscriber();break;case"none":an(!1)(t)}}}],[{key:"getPlayerVisibilityDependencies",value:function(e){return[hn.playerVisibility(e)]}},{key:"getVideoTagStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}}]),e}(),is=function(){function e(t,n,r,i){var o=this;Ai()(this,e),f()(this,"videoStatusSubscriber",void 0),f()(this,"videoListSubscriber",void 0),f()(this,"mediaRequestSubscriber",void 0),f()(this,"playerVisibilitySubscriber",void 0),f()(this,"playbackMethodManager",void 0),f()(this,"store",void 0),f()(this,"loadContent",function(e,t,n,r){o.loadMedia(t,n,r).then(function(){o.playbackMethodManager=new rs(e)})}),f()(this,"loadMedia",function(e,t,n){var r=o.store,i=r.dispatch,a=r.getState,s=Dn.showTitle(a());if("semantic"===e){var u=pn.semanticOptions(a());return Na(u,s,n)(i)}return ka(t,s,n)(i)}),this.store=t,this.videoStatusSubscriber=new ji(t,e.getVideoStatusDependencies,this.onVideoStatusChanged.bind(this)),this.videoListSubscriber=new ji(t,e.getVideoListDependencies,this.onVideoListChanged.bind(this)),this.mediaRequestSubscriber=new ji(t,e.getMediaRequestDependencies,this.onMediaRequestChanged.bind(this)),this.playerVisibilitySubscriber=null,this.loadContent(t,r,n,i)}return Vi()(e,null,[{key:"createInstance",value:function(t,n,r,i){return new e(t,n,r,i)}}]),Vi()(e,[{key:"playNextVideo",value:function(e){var t=this.store.dispatch,n=Cn.videoList(e),r=Cn.activeVideoIndex(e)+1;n.length>1&&r>=n.length&&(r=0),r<n.length&&(!function(e){e({type:"[CORE] reset player data time params"})}(t),La(r,n[r])(t),on("play")(t))}},{key:"playPreviousVideo",value:function(e){var t=this.store.dispatch,n=Cn.videoList(e),r=Cn.activeVideoIndex(e);if(r>0){var i=r-1;La(i,n[i])(t),on("play")(t)}}},{key:"onVideoStatusChanged",value:function(e){"complete"===hn.videoTagStatus(e)&&this.playNextVideo(e)}},{key:"onVideoListChanged",value:function(e){var t=this.store.dispatch,n=Cn.videoList(e);!jn(n)&&n.length>0&&La(0,n[0])(t)}},{key:"onMediaRequestChanged",value:function(e){var t=Cn.mediaRequest(e);switch(t.type){case"playNewVideo":this.loadMedia("specific",t.value);break;case"playNextVideo":this.playNextVideo(e);break;case"playPreviousVideo":this.playPreviousVideo(e)}}}],[{key:"getVideoStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}},{key:"getVideoListDependencies",value:function(e){return[Cn.videoList(e)]}},{key:"getMediaRequestDependencies",value:function(e){return[Cn.mediaRequest(e)]}}]),e}(),os=function e(t){var n=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"onDependencyFailure",function(e,t){console.log("onDependencyFailure",e,t);var r=n.store,i=r.dispatch,o=r.getState;switch(e){case"ima":"blocked"!==Fi.loadingImaStatus(o())&&Qn("error")(i);break;case"hls":er("error")(i)}}),f()(this,"onDependencyReady",function(e){var t=n.store.dispatch;switch(e){case"ima":Qn("success")(t);break;case"hls":er("success")(t)}}),this.store=t},as=function(e){return function(t){t({type:"[COMMON] set fullscreen",payload:e})}},ss=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTag",void 0),f()(this,"pendingFullscreenSubscriber",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"playerUniqId",void 0),f()(this,"onAdStatusChanged",function(e){var t=_i.adStatus(e),n=r.videoTag.webkitDisplayingFullscreen;"playing"===t&&Bn()&&n&&r.exitFullscreen(r.videoTag)}),f()(this,"isPlayerInFullscreen",function(){var e=document,t=Bn()?En(r.playerUniqId):bn(r.playerUniqId);return Un(e.fullscreenElement)?!Un(e.webkitFullscreenElement)&&0===e.webkitFullscreenElement.id.localeCompare(t):0===e.fullscreenElement.id.localeCompare(t)}),f()(this,"changePlayerWidth",function(e){r.videoTag.style.width=e?"100%":"auto"}),f()(this,"onFullscreenChanged",function(){var e=r.store.dispatch,t=r.isPlayerInFullscreen();r.changePlayerWidth(t),as(t)(e)}),f()(this,"onFullscreenChangedIos",function(){var e=r.store.dispatch,t=r.videoTag.webkitDisplayingFullscreen;t||on("resume")(e),r.changePlayerWidth(t),as(t)(e)}),f()(this,"onPendingFullscreenRequestChanged",function(e){var t=gn.pendingFullscreenRequest(e);"enter"===t?r.enterFullscreen(r.videoTag):"exit"===t&&r.exitFullscreen(r.videoTag)}),f()(this,"getFullScreenElement",function(e,t){var n=document.getElementById(bn(r.playerUniqId));return Bn()?t:e?document:n}),f()(this,"enterFullscreen",function(e){var t=r.getFullScreenElement(!1,e);Bn()?t.webkitEnterFullscreen():document.webkitExitFullscreen?t.webkitRequestFullscreen():document.webkitCancelFullScreen?t.webkitRequestFullScreen():document.mozCancelFullScreen?t.mozRequestFullScreen():document.msExitFullscreen&&t.msRequestFullscreen()}),f()(this,"exitFullscreen",function(e){var t=r.getFullScreenElement(!0,e);document.webkitExitFullscreen||Bn()?t.webkitExitFullscreen():document.webkitCancelFullScreen?t.webkitCancelFullScreen():document.mozCancelFullScreen?t.mozCancelFullScreen():document.msExitFullscreen&&t.msExitFullscreen()}),this.store=t,this.videoTag=document.getElementById(En(n)),this.playerUniqId=n,document.addEventListener("fullscreenchange",this.onFullscreenChanged.bind(this)),document.addEventListener("webkitfullscreenchange",this.onFullscreenChanged.bind(this)),Bn()&&(this.videoTag.addEventListener("webkitendfullscreen",this.onFullscreenChangedIos.bind(this)),this.videoTag.addEventListener("webkitbeginfullscreen",this.onFullscreenChangedIos.bind(this))),this.pendingFullscreenSubscriber=new ji(t,e.getPendingFullscreenDependencies,this.onPendingFullscreenRequestChanged.bind(this)),this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this))}return Vi()(e,null,[{key:"createInstance",value:function(t,n){return new e(t,n)}}]),Vi()(e,null,[{key:"getPendingFullscreenDependencies",value:function(e){return[gn.pendingFullscreenRequest(e)]}},{key:"getAdStatusDependencies",value:function(e){return[_i.adStatus(e)]}}]),e}();function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ls,ds=function(e){return function(e){return e&&window.monti.playerConfigs&&window.monti.playerConfigs[e]}(e)?function(e){return window.monti.playerConfigs[e]}(e):window.monti.playerConfigs?window.monti.playerConfigs&&window.monti.playerConfigs[Object.keys(window.monti.playerConfigs)[0]]:null},ps=function e(t){var n=this;Ai()(this,e),f()(this,"videoTag",void 0),f()(this,"isBufferError",void 0),f()(this,"hls",void 0),f()(this,"hlsSetup",function(e,t,r,i){n.initiateHls(e),n.loadHlsSource(e,t,r,i)}),f()(this,"detachMedia",function(){Un(n.hls)||(n.hls.detachMedia(),n.hls.destroy(),n.hls=null)}),f()(this,"initiateHls",function(e){n.hls=new e,n.hls.attachMedia(n.videoTag)}),f()(this,"loadHlsSource",function(e,t,r,i){n.hls.on(e.Events.MEDIA_ATTACHED,function(){n.hls.loadSource(t)}),n.hls.on(e.Events.ERROR,function(t,o){n.mapHlsToErrors(e,o,i),t.details===e.ErrorDetails.BUFFER_STALLED_ERROR&&(r(!0),n.isBufferError=!0)}),n.hls.on(e.Events.FRAG_BUFFERED,function(){n.isBufferError&&(r(!1),n.isBufferError=!1)})}),f()(this,"mapHlsToErrors",function(e,t,r){if(t.fatal)switch(t.type){case e.ErrorTypes.NETWORK_ERROR:r(Xn.GENERAL_ERROR),n.hls.startLoad();break;case e.ErrorTypes.MEDIA_ERROR:r(Xn.GENERAL_ERROR),n.hls.recoverMediaError();break;default:r(Xn.GENERAL_ERROR),n.hls.destroy()}}),this.hls=void 0,this.videoTag=t,this.isBufferError=!1},fs=function e(){var t=this;Ai()(this,e),f()(this,"videoStreaming",void 0),f()(this,"hlsLibrarySetup",function(e,n,r,i){Un(t.videoStreaming)||t.videoStreaming.detachMedia(),t.videoStreaming=new ps(e),t.videoStreaming.hlsSetup(ls,n,r,i)})};f()(fs,"shouldLoadVideoStreamingSrcDirectly",function(e,t,n){return"no-need"===n&&!(""===e.canPlayType("application/vnd.apple.mpegurl"))}),f()(fs,"shouldUseHlsLibrary",function(e,t){return"success"===t&&(ls=void 0!==window.Hls?Hls:mmHls).isSupported()}),f()(fs,"isValidHlsUrl",function(e){return!Un(e)&&!e.includes(".mp4")}),f()(fs,"suitableVideoSource",function(e,t,n){return fs.isValidHlsUrl(t)?fs.shouldUseHlsLibrary(t,n)?"m3u8 with hls":fs.shouldLoadVideoStreamingSrcDirectly(e,t,n)?"m3u8 directly":"loading"!==n?"mp4":"":"mp4"}),f()(fs,"loadHlsVideoDirectly",function(e,t){e.setAttribute("src",t),e.load()});var hs=function(e){return function(t){t({type:"[MONETIZATION] change pending ad status",payload:{type:e}})}},ys="video/mp4",gs="application/vnd.apple.mpegurl",vs=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTag",void 0),f()(this,"prerollEnabled",void 0),f()(this,"pendingVideoStatusSubscriber",void 0),f()(this,"videoStreamingManager",void 0),f()(this,"videoDataSubscriber",void 0),f()(this,"hlsLoadingStatusSubscriber",void 0),f()(this,"newVideoDataLoaded",void 0),f()(this,"onHlsLoadingStatusChanged",function(e){"success"===Fi.loadingHLSStatus(e)&&(r.newVideoDataLoaded=!0,r.onPendingVideoStatusChanged(e))}),f()(this,"onPendingVideoStatusChanged",function(e){var t=hn.pendingVideoTagStatus(e),n=Dn.sources(e),i=Fi.loadingHLSStatus(e),o="blocked"===Fi.loadingImaStatus(e);r.handlePendingVideoStatus(t,n,i,o)}),f()(this,"onVideoDataChanged",function(){r.newVideoDataLoaded=!0}),f()(this,"sendPrerollPlayRequest",function(){var e=r.store.dispatch;hs("playPreroll")(e)}),f()(this,"handlePlayRequest",function(e,t,n){var i=r.store.dispatch;if(e&&e.length>0){if(r.newVideoDataLoaded&&(r.loadVideoSource(r.videoTag,e,t),r.newVideoDataLoaded=!1,r.prerollEnabled&&!n))return void r.sendPrerollPlayRequest();r.videoTag.play().catch(function(e){return console.error("Error playing the video: ",e)})}else dn(Xn.VIDEO_ERROR)(i)}),f()(this,"handlePendingVideoStatus",function(e,t,n,i){switch(e.type){case"play":r.handlePlayRequest(t,n,i);break;case"resume":r.videoTag.play().catch(function(e){return console.error("Error resuming the video: ",e)});break;case"pause":r.videoTag.pause();break;case"replay":r.videoTag.currentTime=0,r.videoTag.play().catch(function(e){return console.error("Error replaying the video: ",e)});break;case"seekTo":r.videoTag.pause(),r.videoTag.currentTime=e.value}}),f()(this,"loadMp4Source",function(e,t,n){var r=Ra(t,ys);n.setAttribute("src",r),n.load()}),f()(this,"loadVideoSource",function(e,t,n){var i=r.store.dispatch,o=Ra(t,gs);switch(fs.suitableVideoSource(e,o,n)){case"mp4":r.loadMp4Source(n,t,e);break;case"m3u8 with hls":r.videoStreamingManager.hlsLibrarySetup(e,o,function(e){return un(e)(i)},function(e){return dn(e)(i)});break;case"m3u8 directly":fs.loadHlsVideoDirectly(e,o)}}),this.store=t;var i=t.getState;this.videoStreamingManager=new fs,this.videoTag=document.getElementById(En(n)),this.prerollEnabled=bi.prerollEnabled(i()),this.pendingVideoStatusSubscriber=new ji(t,e.getPendingVideoStatusDependencies,this.onPendingVideoStatusChanged.bind(this)),this.videoDataSubscriber=new ji(t,e.getVideoDataDependencies,this.onVideoDataChanged.bind(this)),this.hlsLoadingStatusSubscriber=new ji(t,e.getHLSLoadingStatusDependencies,this.onHlsLoadingStatusChanged.bind(this))}return Vi()(e,null,[{key:"createInstance",value:function(t,n){return new e(t,n)}}]),Vi()(e,null,[{key:"getHLSLoadingStatusDependencies",value:function(e){return[Fi.loadingHLSStatus(e)]}},{key:"getPendingVideoStatusDependencies",value:function(e){return[hn.pendingVideoTagStatus(e)]}},{key:"getVideoDataDependencies",value:function(e){return[Cn.videoData(e)]}}]),e}();function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Os={READY_EVENT:"ready",PLAY_EVENT:"play",PAUSE_EVENT:"pause",TIME_EVENT:"time",SEEK_EVENT:"seek",COMPLETE_EVENT:"complete",VOLUME_EVENT:"volume",MUTE_EVENT:"mute"},_s=Object.values(Os),Ss={FULLSCREEN_EVENT:"fullscreen",ANCHOR_STATUS_EVENT:"anchorStatusChanged",ANCHOR_CLOSED_EVENT:"anchorClosed"},Es={AD_PLAY_EVENT:"adPlay",AD_PAUSE_EVENT:"adPause",AD_RESUME_EVENT:"adResume",AD_COMPLETE_EVENT:"adComplete",AD_TIME_EVENT:"adTime",AD_MUTE_EVENT:"adMute",AD_SKIPPED_EVENT:"adSkipped",AD_ERROR_EVENT:"adError",AD_BLOCK_EVENT:"adBlock",AD_REQUEST_EVENT:"adRequest",AD_OPPORTUNITY_EVENT:"adOpportunity",AD_IMPRESSION_EVENT:"adImpression"},ws=Object.values(Es),Ps=Object.values(bs(bs(bs({},Os),Es),Ss)),Ts=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"eventsCallbacksHandler",void 0),f()(this,"store",void 0),f()(this,"videoStatusSubscriber",void 0),f()(this,"videoMuteSubscriber",void 0),f()(this,"videoVolumeSubscriber",void 0),f()(this,"videoTimeFragmentSubscriber",void 0),f()(this,"videoListStoreSubscriber",void 0),f()(this,"previousVideoTagStatus",void 0),f()(this,"startSeekTime",0),f()(this,"canHandleReady",function(e,t,n){if(t===Os.READY_EVENT){var r=Cn.videoList(e);if(Array.isArray(r)&&r.length>0)return n(),!0}return!1}),f()(this,"canBeHandled",function(e,t){var n=r.store.getState;return r.canHandleReady(n(),e,t)}),f()(this,"reportSeekEnd",function(e){var t={position:hn.currentVideoTimeFragment(e),offset:r.startSeekTime};r.eventsCallbacksHandler.onEvent(Os.SEEK_EVENT,t)}),f()(this,"onMuteStateChanged",function(e){var t=gn.muted(e);r.eventsCallbacksHandler.onEvent(Os.MUTE_EVENT,{state:t})}),f()(this,"onVolumeChanged",function(e){var t=gn.muted(e),n=gn.volume(e);r.eventsCallbacksHandler.onEvent(Os.VOLUME_EVENT,{level:t?0:n})}),f()(this,"onVideoTimeFragmentChanged",function(e){var t=hn.currentVideoTimeFragment(e),n=hn.currentVideoDuration(e);r.eventsCallbacksHandler.onEvent(Os.TIME_EVENT,{duration:n,position:t})}),f()(this,"onVideoListChanged",function(){r.eventsCallbacksHandler.onEvent(Os.READY_EVENT)}),this.store=t,this.eventsCallbacksHandler=n,this.videoStatusSubscriber=new ji(t,e.getVideoStatusDependencies,this.onVideoStatusChanged.bind(this)),this.videoMuteSubscriber=new ji(t,e.getVideoMuteDependencies,this.onMuteStateChanged.bind(this)),this.videoVolumeSubscriber=new ji(t,e.getVolumeDependencies,this.onVolumeChanged.bind(this)),this.videoTimeFragmentSubscriber=new ji(t,e.getVideoTimeDependencies,this.onVideoTimeFragmentChanged.bind(this)),this.videoListStoreSubscriber=new ji(t,e.getVideoListDependencies,this.onVideoListChanged.bind(this)),this.previousVideoTagStatus=hn.videoTagStatus(t.getState())}return Vi()(e,[{key:"onVideoStatusChanged",value:function(e){var t=hn.videoTagStatus(e);switch("seeking"===this.previousVideoTagStatus&&this.reportSeekEnd(e),t){case"paused":this.eventsCallbacksHandler.onEvent(Os.PAUSE_EVENT);break;case"seeking":this.startSeekTime=hn.currentVideoTimeFragment(e);break;case"complete":this.eventsCallbacksHandler.onEvent(Os.COMPLETE_EVENT);break;case"playing":this.eventsCallbacksHandler.onEvent(Os.PLAY_EVENT)}this.previousVideoTagStatus=t}}],[{key:"getVideoStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}}]),e}();f()(Ts,"getVideoMuteDependencies",function(e){return[gn.muted(e)]}),f()(Ts,"getVolumeDependencies",function(e){return[gn.volume(e)]}),f()(Ts,"getVideoTimeDependencies",function(e){return[hn.currentVideoTimeFragment(e)]}),f()(Ts,"getVideoListDependencies",function(e){return[Cn.videoList(e)]}),f()(Ts,"isContentEvent",function(e){return _s.some(function(t){return t===e})});var As=function e(t,n){var r=this;Ai()(this,e),f()(this,"eventsCallbacksHandler",void 0),f()(this,"store",void 0),f()(this,"fullscreenSubscriber",void 0),f()(this,"anchorStatusSubscriber",void 0),f()(this,"anchorDisabledByUserSubscriber",void 0),f()(this,"onFullscreenChanged",function(e){var t=gn.isFullscreenOn(e);r.eventsCallbacksHandler.onEvent(Ss.FULLSCREEN_EVENT,{state:t})}),f()(this,"onAnchorStatusChanged",function(e){var t="active"===Pr(e)?"activated":"deactivated";r.eventsCallbacksHandler.onEvent(Ss.ANCHOR_STATUS_EVENT,{state:t})}),f()(this,"onAnchorDisabledByUser",function(e){if(wr(e)){var t=hn.currentVideoTimeFragment(e);r.eventsCallbacksHandler.onEvent(Ss.ANCHOR_CLOSED_EVENT,{position:t})}}),this.store=t,this.eventsCallbacksHandler=n,this.fullscreenSubscriber=new ji(t,e.getFullscreenDependencies,this.onFullscreenChanged.bind(this)),this.anchorStatusSubscriber=new ji(t,e.getAnchorStatusDependencies,this.onAnchorStatusChanged.bind(this)),this.anchorDisabledByUserSubscriber=new ji(t,e.getAnchorDisabledByUserDependencies,this.onAnchorDisabledByUser.bind(this))};f()(As,"getFullscreenDependencies",function(e){return[gn.isFullscreenOn(e)]}),f()(As,"getAnchorStatusDependencies",function(e){return[Pr(e)]}),f()(As,"getAnchorDisabledByUserDependencies",function(e){return[wr(e)]});var Cs=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"eventsCallbacksHandler",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"adImpressionSubscriber",void 0),f()(this,"adOpportunitySubscriber",void 0),f()(this,"adTimeSubscriber",void 0),f()(this,"adMuteSubscriber",void 0),f()(this,"adProviderLoadingStatusSubscriber",void 0),f()(this,"previousAdStatus",void 0),f()(this,"canBeHandled",function(e,t){var n=r.store.getState;switch(Fi.loadingImaStatus(n())){case"loading":return!1;case"success":case"error":return!0;case"blocked":return t(),!0;case"":default:return!1}}),f()(this,"onAdStatusChanged",function(e){var t=_i.adStatus(e),n=_i.currentAdTag(e);switch(t){case"requested":r.eventsCallbacksHandler.onEvent(Es.AD_REQUEST_EVENT,{tag:n});break;case"paused":r.eventsCallbacksHandler.onEvent(Es.AD_PAUSE_EVENT,{tag:n});break;case"completed":r.eventsCallbacksHandler.onEvent(Es.AD_COMPLETE_EVENT,{tag:n});break;case"skipped":r.eventsCallbacksHandler.onEvent(Es.AD_SKIPPED_EVENT,{tag:n});break;case"playing":"paused"===r.previousAdStatus?r.eventsCallbacksHandler.onEvent(Es.AD_RESUME_EVENT,{tag:n}):r.eventsCallbacksHandler.onEvent(Es.AD_PLAY_EVENT,{tag:n});break;case"error":var i=_i.adErrorMessage(e);r.eventsCallbacksHandler.onEvent(Es.AD_ERROR_EVENT,{tag:n,message:i})}r.previousAdStatus=t}),f()(this,"onAtTimeChanged",function(e){var t=_i.adCurrentTime(e),n=_i.currentAdTag(e),i=_i.adDuration(e);r.eventsCallbacksHandler.onEvent(Es.AD_TIME_EVENT,{position:t,tag:n,duration:i})}),f()(this,"onAdMuteChanged",function(e){var t=_i.adMuted(e);r.eventsCallbacksHandler.onEvent(Es.AD_MUTE_EVENT,{state:t})}),f()(this,"onAdProviderLoadingChanged",function(e){"blocked"===Fi.loadingImaStatus(e)&&r.eventsCallbacksHandler.onEvent(Es.AD_BLOCK_EVENT)}),f()(this,"onAdImpressionChanged",function(e){var t=_i.currentAdTag(e);r.eventsCallbacksHandler.onEvent(Es.AD_IMPRESSION_EVENT,{tag:t})}),f()(this,"onAdOpportunityChanged",function(e){var t=_i.currentAdTag(e);r.eventsCallbacksHandler.onEvent(Es.AD_OPPORTUNITY_EVENT,{tag:t})}),this.store=t,this.eventsCallbacksHandler=n,this.previousAdStatus=_i.adStatus(t.getState()),this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this)),this.adTimeSubscriber=new ji(t,e.getAdTimeDependencies,this.onAtTimeChanged.bind(this)),this.adMuteSubscriber=new ji(t,e.getAdMuteDependencies,this.onAdMuteChanged.bind(this)),this.adImpressionSubscriber=new ji(t,e.getAdImpressionDependencies,this.onAdImpressionChanged.bind(this)),this.adOpportunitySubscriber=new ji(t,e.getAdOpportunitySubscriberDependencies,this.onAdOpportunityChanged.bind(this)),this.adProviderLoadingStatusSubscriber=new ji(t,e.getAdProviderLoadingDependencies,this.onAdProviderLoadingChanged.bind(this))}return Vi()(e,null,[{key:"getAdStatusDependencies",value:function(e){return[_i.adStatus(e)]}},{key:"getAdTimeDependencies",value:function(e){return[_i.adCurrentTime(e)]}},{key:"getAdMuteDependencies",value:function(e){return[_i.adMuted(e)]}},{key:"getAdProviderLoadingDependencies",value:function(e){return[Fi.loadingImaStatus(e)]}}]),e}();f()(Cs,"isAdEvent",function(e){return ws.some(function(t){return t===e})}),f()(Cs,"getAdImpressionDependencies",function(e){return[_i.adImpression(e)]}),f()(Cs,"getAdOpportunitySubscriberDependencies",function(e){return[_i.adOpportunity(e)]});var Rs=function e(t){var n=this;Ai()(this,e),f()(this,"contentEvents",void 0),f()(this,"generalEvents",void 0),f()(this,"adEvents",void 0),f()(this,"subscribers",{}),f()(this,"onRegisterToEvent",function(e,t,r){n.isValidEvent(e)&&(Ts.isContentEvent(e)&&n.contentEvents.canBeHandled(e,t)||Cs.isAdEvent(e)&&n.adEvents.canBeHandled(e,t())||n.getEventSubscribersList(e).push({callback:t,once:r}))}),f()(this,"isValidEvent",function(e){return Ps.some(function(t){return t===e})}),f()(this,"getEventSubscribersList",function(e){return Array.isArray(n.subscribers[e])||(n.subscribers[e]=[]),n.subscribers[e]}),f()(this,"filterOutOnceCallbacks",function(e,t){n.subscribers[e]=t.filter(function(e){return!e.once})}),f()(this,"onEvent",function(e,t){var r=n.getEventSubscribersList(e);r.forEach(function(e){(0,e.callback)(t)}),n.filterOutOnceCallbacks(e,r)}),this.contentEvents=new Ts(t,this),this.generalEvents=new As(t,this),this.adEvents=new Cs(t,this)},Ds=function(){function e(t){Ai()(this,e),f()(this,"eventsHandler",void 0),this.eventsHandler=new Rs(t)}return Vi()(e,[{key:"on",value:function(e,t){this.eventsHandler.onRegisterToEvent(e,t,!1)}},{key:"once",value:function(e,t){this.eventsHandler.onRegisterToEvent(e,t,!0)}}]),e}();function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ks=function(){var e=window.monti.dataset;return jn(e)?(e={players:{},preact:Is(Is({},r),i),store:{},plugins:{}},window.monti.dataset=e,e):e},Ns=function(e){var t=function(){var e=(new Date).getTime(),t=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)})}(),n=function(e,t){var n=ns(e.dev_config),r=ks(),i=n.dispatch;return r.store[t]=n,function(e,t){return function(n){n({type:"[CORE] initiate store",payload:{initiateParams:e,playerInstanceUniqId:t}})}}(e,t)(i),n}(e,t);return function(e,t,n){B(b(Pi,{playerId:t,store:n,playerPosition:e}),e)}(e.player_pos,t,n),oa.getInstance().loadInternalPlugins(n,t,e),ss.createInstance(n,t),vs.createInstance(n,t),is.createInstance(n,e.media_id,e.content_type,e.dev_config),function(e){var t=e.dispatch;if(er(Ci.getInstance().getHLSLoadingStatus())(t),Qn(Ci.getInstance().getIMALoadingStatus())(t),!Ci.getInstance().isDependenciesReady()){var n=new os(e);Ci.getInstance().addDependenciesCallback(n)}}(n),function(e,t){ks().players[t]=new Ds(e)}(n,t),t},Ls=function(e){return console.log("player initiation start",e),new Promise(function(t,n){try{var r=function(e){var t=e.player_pos||document.currentScript.parentElement,n=e.media_id||e.content_id;return cs(cs({},e),{},{player_pos:t,media_id:n})}(function(e){var t=e.player_id,n=ds(t);return null===n?e:cs(cs({},e),n)}(e)),i=Ns(r);!function(e){var t=new CustomEvent("montiConfigLoaded",{detail:{playerKey:e}});window.dispatchEvent(t)}(i),t(i)}catch(o){console.error("Player initiation error",o),n(o)}})},xs=function(){return{initiate:Ls}};window.monti=xs,Ci.getInstance().loadExternalDependencies()}]); window.monti().initiate(Object.assign({player_pos: document.currentScript.parentElement}, {"is_conflicting_with_other_jw_players":false,"programmatic_play_with_sound_on_desktop":false,"referrer_id":"af93e181-b289-0560-a2bf-808e93bb05bc","width":"100","comscore_publisher_id":"18120612","monetization":{"ad_type":"static_tag","continue_content_play_while_waiting_for_ad":false,"strategy":"on_player_load","ad_request_timeout":"10000","midrolls":{"on":[0]},"vpaid_mode":"ENABLED","ad_tag":"https://pubads.g.doubleclick.net/gampad/ads?sz=400x300|640x480|480x270|640x360&iu=/175840252/MMPlus/smithsonianmag/Video&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=##REFERRER_URL_UNESC##&description_url=##DESCRIPTION_URL_UNESC##&correlator=##CACHEBUSTER##&cust_params=mm_midroll%3D##MIDROLL_ORDER##%26video_ID%3D##VIDEO_ID##"},"sponsorship":false,"player_identifier":"mplayer","recommendation_id":null,"brand_color":"#FF9900","powered_by_strip":true,"platform":"buffy","type":"video","config_name":"MM+ | Smithsonianmag | Podding","player_id":"3v9g2u2f","playlist_id":"fSkmeWKF","playback_method":"autoplay","anchor_viewability_method":"none","player_version":"v4","playlist_type":"semantic","semantic_options":{"scan_images_on_page":true,"scanned_element":"","tags":"geogrophy,nature,animals,habitat,outdoors,science,history","minimum_date_factor":30,"scanned_element_type":"tag","scoped_keywords":"mentalfloss","promoted_videos":[]},"script_destination":"mm","publisher_contribution":"floor8","general_script_description":"","brand_logo":"","brand_logo_click_url":"","next_video":"none","uniq_key":"af93e181-b289-0560-a2bf-808e93bb05bc","content_id":"fSkmeWKF","content_type":"semantic"})); Finland has vastly improved in reading, math and science literacy over the past decade in large part because its teachers are trusted to do whatever it takes to turn young lives around. This 13-year-old, Besart Kabashi, received something akin to royal tutoring. “I took Besart on that year as my private student,” Louhivuori told me in his office, which boasted a Beatles “Yellow Submarine” poster on the wall and an electric guitar in the closet. When Besart was not studying science, geography and math, he was parked next to Louhivuori’s desk at the front of his class of 9- and 10-year- olds, cracking open books from a tall stack, slowly reading one, then another, then devouring them by the dozens. By the end of the year, the son of Kosovo war refugees had conquered his adopted country’s vowel-rich language and arrived at the realization that he could, in fact, learn. Years later, a 20-year-old Besart showed up at Kirkkojarvi’s Christmas party with a bottle of Cognac and a big grin. “You helped me,” he told his former teacher. Besart had opened his own car repair firm and a cleaning company. “No big fuss,” Louhivuori told me. “This is what we do every day, prepare kids for life.” This tale of a single rescued child hints at some of the reasons for the tiny Nordic nation’s staggering record of education success, a phenomenon that has inspired, baffled and even irked many of America’s parents and educators. Finnish schooling became an unlikely hot topic after the 2010 documentary film Waiting for “Superman” contrasted it with America’s troubled public schools. “Whatever it takes” is an attitude that drives not just Kirkkojarvi’s 30 teachers, but most of Finland’s 62,000 educators in 3,500 schools from Lapland to Turku—professionals selected from the top 10 percent of the nation’s graduates to earn a required master’s degree in education. Many schools are small enough so that teachers know every student. If one method fails, teachers consult with colleagues to try something else. They seem to relish the challenges. Nearly 30 percent of Finland’s children receive some kind of special help during their first nine years of school. The school where Louhivuori teaches served 240 first through ninth graders last year; and in contrast with Finland’s reputation for ethnic homogeneity, more than half of its 150 elementary-level students are immigrants—from Somalia, Iraq, Russia, Bangladesh, Estonia and Ethiopia, among other nations. “Children from wealthy families with lots of education can be taught by stupid teachers,” Louhivuori said, smiling. “We try to catch the weak students. It’s deep in our thinking.” Advertisement scroll for more The transformation of the Finns’ education system began some 40 years ago as the key propellent of the country’s economic recovery plan. Educators had little idea it was so successful until 2000, when the first results from the Programme for International Student Assessment (PISA), a standardized test given to 15-year-olds in more than 40 global venues, revealed Finnish youth to be the best young readers in the world. Three years later, they led in math. By 2006, Finland was first out of 57 countries (and a few cities) in science. In the 2009 PISA scores released last year, the nation came in second in science, third in reading and sixth in math among nearly half a million students worldwide. “I’m still surprised,” said Arjariita Heikkinen, principal of a Helsinki comprehensive school. “I didn’t realize we were that good.” In the United States, which has muddled along in the middle for the past decade, government officials have attempted to introduce marketplace competition into public schools. In recent years, a group of Wall Street financiers and philanthropists such as Bill Gates have put money behind private-sector ideas, such as vouchers, data-driven curriculum and charter schools, which have doubled in number in the past decade. President Obama, too, has apparently bet on compe­tition. His Race to the Top initiative invites states to compete for federal dollars using tests and other methods to measure teachers, a philosophy that would not fly in Finland. “I think, in fact, teachers would tear off their shirts,” said Timo Heikkinen, a Helsinki principal with 24 years of teaching experience. “If you only measure the statistics, you miss the human aspect.”

      The facts show that America has it all wrong in putting to much emphasis on national "data-driven" competition. These approaches take away from the unique aspects of each child.

    13. The transformation of the Finns’ education system began some 40 years ago as the key propellent of the country’s economic recovery plan. Educators had little idea it was so successful until 2000, when the first results from the Programme for International Student Assessment (PISA), a standardized test given to 15-year-olds in more than 40 global venues, revealed Finnish youth to be the best young readers in the world. Three years later, they led in math. By 2006, Finland was first out of 57 countries (and a few cities) in science. In the 2009 PISA scores released last year, the nation came in second in science, third in reading and sixth in math among nearly half a million students worldwide. “I’m still surprised,” said Arjariita Heikkinen, principal of a Helsinki comprehensive school. “I didn’t realize we were that good.

      The economic recovery plan, responsible for this new system has actually been 40 years in the making. Only recently have Finish educators discovered how effective this approach really is thanks to comparative reports given at the 2009 PISA programme showing Finnish 15-year-olds outscoring other youth from around the globe in almost every discipline.

    14. “Whatever it takes” is an attitude that drives not just Kirkkojarvi’s 30 teachers, but most of Finland’s 62,000 educators in 3,500 schools from Lapland to Turku—professionals selected from the top 10 percent of the nation’s graduates to earn a required master’s degree in education. Many schools are small enough so that teachers know every student. If one method fails, teachers consult with colleagues to try something else. They seem to relish the challenges. Nearly 30 percent of Finland’s children receive some kind of special help during their first nine years of school. The school where Louhivuori teaches served 240 first through ninth graders last year; and in contrast with Finland’s reputation for ethnic homogeneity, more than half of its 150 elementary-level students are immigrants—from Somalia, Iraq, Russia, Bangladesh, Estonia and Ethiopia, among other nations. “Children from wealthy families with lots of education can be taught by stupid teachers,” Louhivuori said, smiling. “We try to catch the weak students. It’s deep in our thinking.”

      Teachers are given autonomy to teach their children in a way they deem fit, and they love it! Schools are smaller so its easier to gauge what the students needs are. Part of this confidence in teachers is due to the rigorous and competitive training teachers need prior to becoming one.

    15. his tale of a single rescued child hints at some of the reasons for the tiny Nordic nation’s staggering record of education success, a phenomenon that has inspired, baffled and even irked many of America’s parents and educators. Finnish schooling became an unlikely hot topic after the 2010 documentary film Waiting for “Superman” contrasted it with America’s troubled public schools.

      After the documentary, "Waiting for Superman" on Finishʻs education system came in 2010, Americans became mysified and awed at how fast this small Nordic nation has advanced.

    16. “I took Besart on that year as my private student,” Louhivuori told me in his office, which boasted a Beatles “Yellow Submarine” poster on the wall and an electric guitar in the closet. When Besart was not studying science, geography and math, he was parked next to Louhivuori’s desk at the front of his class of 9- and 10-year- olds, cracking open books from a tall stack, slowly reading one, then another, then devouring them by the dozens. By the end of the year, the son of Kosovo war refugees had conquered his adopted country’s vowel-rich language and arrived at the realization that he could, in fact, learn. Years later, a 20-year-old Besart showed up at Kirkkojarvi’s Christmas party with a bottle of Cognac and a big grin. “You helped me,” he told his former teacher. Besart had opened his own car repair firm and a cleaning company. “No big fuss,” Louhivuori told me. “This is what we do every day, prepare kids for life.”

      As a young adult, Besart, a now accomplished business man went out of his way at a Christmas party to thank his dear old teacher for helping him get to where he was. Kari believes this is what you do for every child in need of extra attention.

    17. Finland has vastly improved in reading, math and science literacy over the past decade in large part because its teachers are trusted to do whatever it takes to turn young lives around. This 13-year-old, Besart Kabashi, received something akin to royal tutoring.

      Since teachers have been trusted more "to do whatever it takes to turn young lives around," In almost 10 years, Finland has boosted it academic vigor.

    18. t was the end of term at Kirkkojarvi Comprehensive School in Espoo, a sprawling suburb west of Helsinki, when Kari Louhivuori, a veteran teacher and the school’s principal, decided to try something extreme—by Finnish standards. One of his sixth-grade students, a Kosovo-Albanian boy, had drifted far off the learning grid, resisting his teacher’s best efforts. The school’s team of special educators—including a social worker, a nurse and a psychologist—convinced Louhivuori that laziness was not to blame. So he decided to hold the boy back a year, a measure so rare in Finland it’s practically obsolete. function dispatchComscoreLoadedEvent(){ let event = new Event('MPlayerComscoreLoaded'); window.dispatchEvent(event); } !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=68)}([function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){e.exports=n(47)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";var r=n(21),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!==typeof window&&"undefined"!==typeof document},forEach:c,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]="object"===typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}},function(e,t,n){var r=n(48);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(49),i=n(3);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}},function(e,t,n){var r=n(42),i=n(43),o=n(18),a=n(44);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t,n){var r=n(39),i=n(40),o=n(18),a=n(41);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){var r=n(45);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){var r=n(50);function i(t,n,o){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){"use strict";e.exports=n(36)},function(e,t,n){"use strict";var r=n(14),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),y=u(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!y||!y[v])&&(!s||!s[v])){var m=p(n,v);try{c(t,v,m)}catch(b){}}}}return t}},function(e,t,n){"use strict";(function(e,r){var i,o=n(29);i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(o.a)(i);t.a=a}).call(this,n(37),n(38)(e))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,s=null;if(this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(i(n,"resize",r,!0),i(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),o(e,"resize",r,!0)),o(t,"scroll",r,!0),s&&s.disconnect()}),t!=(this.root&&this.root.ownerDocument||e)){var u=d(t);u&&this._monitorIntersections(u.ownerDocument)}}},r.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=d(n);if((n=i&&i.ownerDocument)==t)return!0}return!1})){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var o=d(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},r.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var i=r.element,o=s(i),a=this._rootContainsTarget(i),u=r.entry,c=e&&a&&this._computeTargetAndRootIntersection(i,o,t),l=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:o,rootBounds:t,intersectionRect:c});u?e&&a?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(t,n,r){if("none"!=window.getComputedStyle(t).display){for(var i=n,o=l(t),c=!1;!c&&o;){var d=null,p=1==o.nodeType?window.getComputedStyle(o):{};if("none"==p.display)return null;if(o==this.root||9==o.nodeType)if(c=!0,o==this.root||o==e)d=r;else{var f=l(o),h=f&&s(f),y=f&&this._computeTargetAndRootIntersection(f,h,r);h&&y?(o=f,d=u(h,y)):(o=null,i=null)}else{var g=o.ownerDocument;o!=g.body&&o!=g.documentElement&&"visible"!=p.overflow&&(d=s(o))}if(d&&(i=a(d,i)),!i)break;o=o&&l(o)}return i}},r.prototype._getRootRect=function(){var t;if(this.root)t=s(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||c(e,this.root)},r.prototype._rootContainsTarget=function(t){return c(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},r.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},r.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=n}function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function i(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function o(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function a(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),o=Math.min(e.right,t.right),a=o-i,s=r-n;return a>=0&&s>=0&&{top:n,bottom:r,left:i,right:o,width:a,height:s}||null}function s(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function c(e,t){for(var n=t;n;){if(n==e)return!0;n=l(n)}return!1}function l(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?d(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function d(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}}()},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(6);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(6),i=n(57),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=n(25):"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n(25)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){s.headers[e]={}}),r.forEach(["post","put","patch"],function(e){s.headers[e]=r.merge(o)}),e.exports=s}).call(this,n(19))},function(e,t,n){"use strict";var r=n(6),i=n(58),o=n(22),a=n(60),s=n(63),u=n(64),c=n(26);e.exports=function(e){return new Promise(function(t,l){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",y=e.auth.password||"";p.Authorization="Basic "+btoa(h+":"+y)}var g=a(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};i(t,l,r),f=null}},f.onabort=function(){f&&(l(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){l(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=n(65),m=(e.withCredentials||u(g))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;m&&(p[e.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(p,function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),l(e),f=null)}),void 0===d&&(d=null),f.send(d)})}},function(e,t,n){"use strict";var r=n(59);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])}),r.forEach(o,function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):"undefined"!==typeof e[i]&&(n[i]=e[i])}),r.forEach(a,function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])});var s=i.concat(o).concat(a),u=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(u,function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=function(){return function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"}}(),o=function(){return function(t){this.version=t,this.type="node",this.name="node",this.os=e.platform}}(),a=function(){return function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"}}(),s=function(){return function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}}(),u=function(){return function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}}(),c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=3,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(t){return t?y(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!==typeof navigator?y(navigator.userAgent):"undefined"!==typeof e&&e.version?new o(e.version.slice(1)):null}function h(e){return""!==e&&d.reduce(function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]},!1)}function y(e){var t=h(e);if(!t)return null;var n=t[0],o=t[1];if("searchbot"===n)return new s;var u=o[1]&&o[1].split(/[._]/).slice(0,3);u?u.length<l&&(u=r(u,function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(l-u.length))):u=[];var d=u.join("."),f=function(e){for(var t=0,n=p.length;t<n;t++){var r=p[t],i=r[0],o=r[1],a=o.exec(e);if(a)return i}return null}(e),y=c.exec(e);return y&&y[1]?new a(n,d,f,y[1]):new i(n,d,f)}}).call(this,n(19))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){e.exports=n(52)},function(e,t,n){e.exports=n(34)()},function(e,t,n){"use strict";var r=n(35);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case g:case c:return e;default:return t}}case o:return t}}}function E(e){return S(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||S(e)===d},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===u||e===s||e===h||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===O||e.$$typeof===_||e.$$typeof===m)},t.typeOf=S},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t){},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(M){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",y={};function g(){}function v(){}function m(){}var b={};b[o]=function(){return this};var O=Object.getPrototypeOf,_=O&&O(O(R([])));_&&_!==n&&r.call(_,o)&&(b=_);var S=m.prototype=g.prototype=Object.create(b);function E(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var n;this._invoke=function(i,o){function a(){return new t(function(n,a){!function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(u.arg)}(i,o,n,a)})}return n=n?n.then(a,a):a()}}function P(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return v.prototype=S.constructor=m,m.constructor=v,v.displayName=u(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},E(w.prototype),w.prototype[a]=function(){return this},e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(S),u(S,s,"Generator"),S[o]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(5);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e){e.exports=JSON.parse('{"name":"mplayer","version":"4.0.13","description":"minute media player","author":"minute media","private":true,"scripts":{"start":"yarn compile && PORT=2001 per-env","start:production":"npm run -s serve","start:development":"npm run -s dev","build":"preact build --no-prerender","serve":"preact build && serve build --single","dev":"preact watch","lint":"./node_modules/.bin/eslint --cache --ext .js,.ts,.tsx ./src/.","test":"jest","compile":"webpack","compile:production":"NODE_ENV=production webpack","compile:qa":"NODE_ENV=qa webpack"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.4","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-react-jsx":"^7.8.3","@babel/plugin-transform-runtime":"^7.9.0","@babel/preset-env":"^7.8.4","@babel/preset-react":"^7.8.3","@babel/preset-typescript":"^7.8.3","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.10.0","eslint":"^6.7.2","eslint-config-mm":"git+https://github.com/FTBpro/eslint-config-mm.git#v3.1","eslint-loader":"3.0.2","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jest-emotion":"^10.0.32","jest-preset-preact":"^1.0.0","per-env":"^1.0.2","preact-cli":"^3.0.0-rc.6","react":"^16.13.1","react-dom":"^16.13.1","serve":"^11.1.0"},"dependencies":{"@emotion/core":"^10.0.28","axios":"^0.19.2","babel-loader":"^8.0.6","detect-browser":"^5.1.0","emotion":"^10.0.27","enzyme":"^3.11.0","enzyme-adapter-preact-pure":"^2.2.0","hls.js":"^0.13.2","intersection-observer":"^0.8.0","jest-enzyme":"^7.1.2","jest-junit":"^10.0.0","preact":"^10.0.1","preact-render-to-string":"^5.1.8","react-redux":"^7.2.0","react-svg-loader":"^3.0.3","redux":"^4.0.5","redux-thunk":"^2.3.0","terser-webpack-plugin":"1.2.3","webpack":"^4.41.6","webpack-cli":"^3.3.11"}}')},function(e,t,n){"use strict";var r=n(6),i=n(21),o=n(53),a=n(27);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=s(n(24));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n(28),u.CancelToken=n(66),u.isCancel=n(23),u.all=function(e){return Promise.all(e)},u.spread=n(67),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(6),i=n(22),o=n(54),a=n(55),s=n(27);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=u},function(e,t,n){"use strict";var r=n(6);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){"use strict";var r=n(6),i=n(56),o=n(23),a=n(24);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(61),i=n(62);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(6),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(6);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(6);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(28);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"render",function(){return B}),n.d(r,"hydrate",function(){return H}),n.d(r,"createElement",function(){return b}),n.d(r,"h",function(){return b}),n.d(r,"Fragment",function(){return S}),n.d(r,"createRef",function(){return _}),n.d(r,"isValidElement",function(){return a}),n.d(r,"Component",function(){return E}),n.d(r,"cloneElement",function(){return q}),n.d(r,"createContext",function(){return W}),n.d(r,"toChildArray",function(){return R}),n.d(r,"__u",function(){return U}),n.d(r,"options",function(){return o});var i={};n.r(i),n.d(i,"useState",function(){return te}),n.d(i,"useReducer",function(){return ne}),n.d(i,"useEffect",function(){return re}),n.d(i,"useLayoutEffect",function(){return ie}),n.d(i,"useRef",function(){return oe}),n.d(i,"useImperativeHandle",function(){return ae}),n.d(i,"useMemo",function(){return se}),n.d(i,"useCallback",function(){return ue}),n.d(i,"useContext",function(){return ce}),n.d(i,"useDebugValue",function(){return le}),n.d(i,"useErrorBoundary",function(){return de});var o,a,s,u,c,l,d,p=n(0),f=n.n(p),h={},y=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var r,i,o,a=arguments,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return O(e,s,r,i,null)}function O(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i};return null==i&&(a.__v=a),null!=o.vnode&&o.vnode(a),a}function _(){return{current:null}}function S(e){return e.children}function E(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function P(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return P(e)}}function T(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!A.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||u)(A)}function A(){for(var e;A.__r=s.length;)e=s.sort(function(e,t){return e.__v.__b-t.__v.__b}),s=[],e.some(function(e){var t,n,r,i,o,a,s;e.__d&&(a=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=v({},o)).__v=r,i=L(s,o,r,t.__n,void 0!==s.ownerSVGElement,null,n,null==a?w(o):a),x(n,o),i!=a&&P(o)))})}function C(e,t,n,r,i,o,a,s,u,c){var l,d,p,f,g,v,b,_=r&&r.__k||y,E=_.length;for(u==h&&(u=null!=a?a[0]:E?w(r,0):null),n.__k=[],l=0;l<t.length;l++)if(null!=(f=n.__k[l]=null==(f=t[l])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f?O(null,f,null,null,f):Array.isArray(f)?O(S,{children:f},null,null,null):null!=f.__e||null!=f.__c?O(f.type,f.props,f.key,null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=_[l])||p&&f.key==p.key&&f.type===p.type)_[l]=void 0;else for(d=0;d<E;d++){if((p=_[d])&&f.key==p.key&&f.type===p.type){_[d]=void 0;break}p=null}g=L(e,f,p=p||h,i,o,a,s,u,c),(d=f.ref)&&p.ref!=d&&(b||(b=[]),p.ref&&b.push(p.ref,null,f),b.push(d,f.__c||g,f)),null!=g?(null==v&&(v=g),u=D(e,f,p,_,a,g,u),c||"option"!=n.type?"function"==typeof n.type&&(n.__d=u):e.value=""):u&&p.__e==u&&u.parentNode!=e&&(u=w(p))}if(n.__e=v,null!=a&&"function"!=typeof n.type)for(l=a.length;l--;)null!=a[l]&&m(a[l]);for(l=E;l--;)null!=_[l]&&U(_[l],_[l]);if(b)for(l=0;l<b.length;l++)j(b[l],b[++l],b[++l])}function R(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){R(e,t)}):t.push(e)),t}function D(e,t,n,r,i,o,a){var s,u,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(i==n||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),s=null;else{for(u=a,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,a),s=a}return void 0!==s?s:o.nextSibling}function M(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function I(e,t,n,r,i){var o,a;if(i&&"className"==t&&(t="class"),"style"===t)if("string"==typeof n)e.style=n;else{if("string"==typeof r&&(e.style=r=""),r)for(t in r)n&&t in n||M(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||M(e.style,t,n[t])}else"o"===t[0]&&"n"===t[1]?(o=t!==(t=t.replace(/Capture$/,"")),(a=t.toLowerCase())in e&&(t=a),t=t.slice(2),e.l||(e.l={}),e.l[t]=n,n?r||e.addEventListener(t,k,o):e.removeEventListener(t,k,o)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&!i&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function k(e){this.l[e.type](o.event?o.event(e):e)}function N(e,t,n){var r,i;for(r=0;r<e.__k.length;r++)(i=e.__k[r])&&(i.__=e,i.__e&&("function"==typeof i.type&&i.__k.length>1&&N(i,t,n),t=D(n,i,i,e.__k,null,i.__e,t),"function"==typeof e.type&&(e.__d=t)))}function L(e,t,n,r,i,a,s,u,c){var l,d,p,f,h,y,g,m,b,O,_,w=t.type;if(void 0!==t.constructor)return null;(l=o.__b)&&l(t);try{e:if("function"==typeof w){if(m=t.props,b=(l=w.contextType)&&r[l.__c],O=l?b?b.props.value:l.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(m,O):(t.__c=d=new E(m,O),d.constructor=w,d.render=F),b&&b.sub(d),d.props=m,d.state||(d.state={}),d.context=O,d.__n=r,p=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=w.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=v({},d.__s)),v(d.__s,w.getDerivedStateFromProps(m,d.__s))),f=d.props,h=d.state,p)null==w.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==w.getDerivedStateFromProps&&m!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,O),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,O)||t.__v===n.__v){d.props=m,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,d.__h.length&&s.push(d),N(t,u,e);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,O),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,y)})}d.context=O,d.props=m,d.state=d.__s,(l=o.__r)&&l(t),d.__d=!1,d.__v=t,d.__P=e,l=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(r=v(v({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(f,h)),_=null!=l&&l.type==S&&null==l.key?l.props.children:l,C(e,Array.isArray(_)?_:[_],t,n,r,i,a,s,u,c),d.base=t.__e,d.__h.length&&s.push(d),g&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=V(n.__e,t,n,r,i,a,s,c);(l=o.diffed)&&l(t)}catch(e){t.__v=null,o.__e(e,t,n)}return t.__e}function x(e,t){o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function V(e,t,n,r,i,o,a,s){var u,c,l,d,p,f=n.props,g=t.props;if(i="svg"===t.type||i,null!=o)for(u=0;u<o.length;u++)if(null!=(c=o[u])&&((null===t.type?3===c.nodeType:c.localName===t.type)||e==c)){e=c,o[u]=null;break}if(null==e){if(null===t.type)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,g.is&&{is:g.is}),o=null,s=!1}if(null===t.type)f!==g&&e.data!==g&&(e.data=g);else{if(null!=o&&(o=y.slice.call(e.childNodes)),l=(f=n.props||h).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=o)for(f={},p=0;p<e.attributes.length;p++)f[e.attributes[p].name]=e.attributes[p].value;(d||l)&&(d&&l&&d.__html==l.__html||(e.innerHTML=d&&d.__html||""))}(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||I(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||I(e,o,t[o],n[o],r)})(e,g,f,i,s),d?t.__k=[]:(u=t.props.children,C(e,Array.isArray(u)?u:[u],t,n,r,"foreignObject"!==t.type&&i,o,a,h,s)),s||("value"in g&&void 0!==(u=g.value)&&u!==e.value&&I(e,"value",u,f.value,!1),"checked"in g&&void 0!==(u=g.checked)&&u!==e.checked&&I(e,"checked",u,f.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function U(e,t,n){var r,i,a;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||j(r,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&U(r[a],t,n);null!=i&&m(i)}function F(e,t,n){return this.constructor(e,n)}function B(e,t,n){var r,i,a;o.__&&o.__(e,t),i=(r=n===l)?null:n&&n.__k||t.__k,e=b(S,null,[e]),a=[],L(t,(r?t:n||t).__k=e,i||h,h,void 0!==t.ownerSVGElement,n&&!r?[n]:i?null:t.childNodes.length?y.slice.call(t.childNodes):null,a,n||h,r),x(a,e)}function H(e,t){B(e,t,l)}function q(e,t,n){var r,i,o,a=arguments,s=v({},e.props);for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);return null!=n&&(s.children=n),O(e.type,s,r||e.key,i||e.ref,null)}function W(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e,n,r){return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(T)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}o={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return T(n.__E=n)}catch(t){e=t}throw e}},a=function(e){return null!=e&&void 0===e.constructor},E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),T(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),T(this))},E.prototype.render=S,s=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,A.__r=0,l=h,d=0;var z,G,$,K=0,Y=[],Z=o.__r,X=o.diffed,J=o.__c,Q=o.unmount;function ee(e,t){o.__h&&o.__h(G,e,K||t),K=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function te(e){return K=1,ne(ve,e)}function ne(e,t,n){var r=ee(z++,2);return r.t=e,r.__c||(r.__c=G,r.__=[n?n(t):ve(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}]),r.__}function re(e,t){var n=ee(z++,3);!o.__s&&ge(n.__H,t)&&(n.__=e,n.__H=t,G.__H.__h.push(n))}function ie(e,t){var n=ee(z++,4);!o.__s&&ge(n.__H,t)&&(n.__=e,n.__H=t,G.__h.push(n))}function oe(e){return K=5,se(function(){return{current:e}},[])}function ae(e,t,n){K=6,ie(function(){"function"==typeof e?e(t()):e&&(e.current=t())},null==n?n:n.concat(e))}function se(e,t){var n=ee(z++,7);return ge(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function ue(e,t){return K=8,se(function(){return e},t)}function ce(e){var t=G.context[e.__c],n=ee(z++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function le(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)}function de(e){var t=ee(z++,10),n=te();return t.__=e,G.componentDidCatch||(G.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function pe(){Y.some(function(e){if(e.__P)try{e.__H.__h.forEach(he),e.__H.__h.forEach(ye),e.__H.__h=[]}catch(t){return e.__H.__h=[],o.__e(t,e.__v),!0}}),Y=[]}o.__r=function(e){Z&&Z(e),z=0;var t=(G=e.__c).__H;t&&(t.__h.forEach(he),t.__h.forEach(ye),t.__h=[])},o.diffed=function(e){X&&X(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Y.push(t)&&$===o.requestAnimationFrame||(($=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))})(pe))},o.__c=function(e,t){t.some(function(e){try{e.__h.forEach(he),e.__h=e.__h.filter(function(e){return!e.__||ye(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],o.__e(n,e.__v)}}),J&&J(e,t)},o.unmount=function(e){Q&&Q(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(he)}catch(e){o.__e(e,t.__v)}};var fe="function"==typeof requestAnimationFrame;function he(e){"function"==typeof e.u&&e.u()}function ye(e){e.u=e.__()}function ge(e,t){return!e||t.some(function(t,n){return t!==e[n]})}function ve(e,t){return"function"==typeof t?t(e):t}function me(e,t){for(var n in t)e[n]=t[n];return e}function be(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Oe(e){this.props=e}(Oe.prototype=new E).isPureReactComponent=!0,Oe.prototype.shouldComponentUpdate=function(e,t){return be(this.props,e)||be(this.state,t)};var _e=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_e&&_e(e)};var Se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Ee=function(e,t){return e?R(R(e).map(t)):null},we={map:Ee,forEach:Ee,count:function(e){return e?R(e).length:0},only:function(e){var t=R(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:R},Pe=o.__e;function Te(e){return e&&((e=me({},e)).__c=null,e.__k=e.__k&&e.__k.map(Te)),e}function Ae(e){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(Ae)),e}function Ce(){this.__u=0,this.t=null,this.__b=null}function Re(e){var t=e.__.__c;return t&&t.o&&t.o(e)}function De(){this.u=null,this.i=null}o.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t.__c);Pe(e,t,n)},(Ce.prototype=new E).__c=function(e,t){var n=this;null==n.t&&(n.t=[]),n.t.push(t);var r=Re(n.__v),i=!1,o=function(){i||(i=!0,t.componentWillUnmount=t.__c,r?r(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){o(),t.__c&&t.__c()};var a=function(){var e;if(!--n.__u)for(n.__v.__k[0]=Ae(n.state.o),n.setState({o:n.__b=null});e=n.t.pop();)e.forceUpdate()};n.__u++||n.setState({o:n.__b=n.__v.__k[0]}),e.then(o,o)},Ce.prototype.componentWillUnmount=function(){this.t=[]},Ce.prototype.render=function(e,t){return this.__b&&(this.__v.__k&&(this.__v.__k[0]=Te(this.__b)),this.__b=null),[b(S,null,t.o?null:e.children),t.o&&e.fallback]};var Me=function(e,t,n){if(++n[1]===n[0]&&e.i.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.i.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Ie(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var t=this,n=e.l,r=b(Ie,{context:t.context},e.__v);t.componentWillUnmount=function(){var e=t.s.parentNode;e&&e.removeChild(t.s),U(t.v)},t.l&&t.l!==n&&(t.componentWillUnmount(),t.h=!1),e.__v?t.h?(n.__k=t.__k,B(r,n),t.__k=n.__k):(t.s=document.createTextNode(""),t.__k=n.__k,H("",n),n.appendChild(t.s),t.h=!0,t.l=n,B(r,n,t.s),n.__k=t.__k,t.__k=t.s.__k):t.h&&t.componentWillUnmount(),t.v=r}(De.prototype=new E).o=function(e){var t=this,n=Re(t.__v),r=t.i.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Me(t,e,r)):i()};n?n(o):o()}},De.prototype.render=function(e){this.u=null,this.i=new Map;var t=R(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.i.set(t[n],this.u=[1,0,this.u]);return e.children},De.prototype.componentDidUpdate=De.prototype.componentDidMount=function(){var e=this;this.i.forEach(function(t,n){Me(e,n,t)})};var Ne=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;E.prototype.isReactComponent={};var Le="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;var xe=o.event;function Ve(e,t){e["UNSAFE_"+t]&&!e[t]&&Object.defineProperty(e,t,{get:function(){return this["UNSAFE_"+t]},set:function(e){this["UNSAFE_"+t]=e}})}o.event=function(e){xe&&(e=xe(e)),e.persist=function(){};var t=!1,n=!1,r=e.stopPropagation;e.stopPropagation=function(){r.call(e),t=!0};var i=e.preventDefault;return e.preventDefault=function(){i.call(e),n=!0},e.isPropagationStopped=function(){return t},e.isDefaultPrevented=function(){return n},e.nativeEvent=e};var je,Ue={configurable:!0,get:function(){return this.class}},Fe=o.vnode;o.vnode=function(e){e.$$typeof=Le;var t=e.type,n=e.props;if(t){var r;if(n.class!=n.className&&(Ue.enumerable="className"in n,null!=n.className&&(n.class=n.className),Object.defineProperty(n,"className",Ue)),"function"!=typeof t)for(r in n.defaultValue&&void 0!==n.value&&(n.value||0===n.value||(n.value=n.defaultValue),n.defaultValue=void 0),"select"===t&&n.multiple&&Array.isArray(n.value)&&(R(n.children).forEach(function(e){-1!=n.value.indexOf(e.props.value)&&(e.props.selected=!0)}),n.value=void 0),!0===n.download&&(n.download=""),n){var i=Ne.test(r);i&&(e.props[r.replace(/[A-Z0-9]/,"-$&").toLowerCase()]=n[r]),(i||null===n[r])&&(n[r]=void 0)}else t.prototype&&!t.prototype.p&&(t.prototype.p=!0,Ve(t.prototype,"componentWillMount"),Ve(t.prototype,"componentWillReceiveProps"),Ve(t.prototype,"componentWillUpdate"));!function(t){var n=e.type,r=e.props;if(r&&"string"==typeof n){var i={};for(var o in r)/^on(Ani|Tra|Tou)/.test(o)&&(r[o.toLowerCase()]=r[o],delete r[o]),i[o.toLowerCase()]=o;if(i.ondoubleclick&&(r.ondblclick=r[i.ondoubleclick],delete r[i.ondoubleclick]),i.onbeforeinput&&(r.onbeforeinput=r[i.onbeforeinput],delete r[i.onbeforeinput]),i.onchange&&("textarea"===n||"input"===n.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var a=i.oninput||"oninput";r[a]||(r[a]=r[i.onchange],delete r[i.onchange])}}}()}Fe&&Fe(e)};var Be=o.__r;o.__r=function(e){Be&&Be(e),je=e.__c};function He(e){return!!e&&e.$$typeof===Le}var qe=function(e,t){return e(t)},We={useState:te,useReducer:ne,useEffect:re,useLayoutEffect:ie,useRef:oe,useImperativeHandle:ae,useMemo:se,useCallback:ue,useContext:ce,useDebugValue:le,version:"16.8.0",Children:we,render:function(e,t,n){if(null==t.__k)for(;t.firstChild;)t.removeChild(t.firstChild);return B(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return H(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(B(null,e),!0)},createPortal:function(e,t){return b(ke,{__v:e,l:t})},createElement:b,createContext:W,createFactory:function(e){return b.bind(null,e)},cloneElement:function(e){return He(e)?q.apply(null,arguments):e},createRef:_,Fragment:S,isValidElement:He,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:E,PureComponent:Oe,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:be(this.props,e)}function r(t){return this.shouldComponentUpdate=n,b(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=me({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Se,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:qe,StrictMode:S,Suspense:Ce,SuspenseList:De,lazy:function(e){var t,n,r;function i(i){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return b(n,i)}return i.displayName="Lazy",i.__f=!0,i},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return je.__n[e.__c].props.value}}}}},ze=(n(33),We.createContext(null));var Ge=function(e){e()},$e=function(){return Ge},Ke={notify:function(){}};var Ye=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=Ke,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=$e(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Ke)},e}();var Ze=function(e){var t=e.store,n=e.context,r=e.children,i=se(function(){var e=new Ye(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}},[t]),o=se(function(){return t.getState()},[t]);re(function(){var e=i.subscription;return e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[i,o]);var a=n||ze;return We.createElement(a.Provider,{value:i},r)};function Xe(){return(Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Je(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Qe=n(15),et=n.n(Qe),tt=n(14),nt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?ie:re,rt=[],it=[null,null];function ot(e,t){var n=e[1];return[t.payload,n+1]}function at(e,t,n){nt(function(){return e.apply(void 0,t)},n)}function st(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function ut(e,t,n,r,i,o,a,s,u,c){if(e){var l=!1,d=null,p=function(){if(!l){var e,n,p=t.getState();try{e=r(p,i.current)}catch(f){n=f,d=f}n||(d=null),e===o.current?a.current||u():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var ct=function(){return[null,0]};function lt(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,o=n.methodName,a=void 0===o?"connectAdvanced":o,s=n.renderCountProp,u=void 0===s?void 0:s,c=n.shouldHandleStateChanges,l=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,f=(n.withRef,n.forwardRef),h=void 0!==f&&f,y=n.context,g=void 0===y?ze:y,v=Je(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),m=g;return function(t){var n=t.displayName||t.name||"Component",r=i(n),o=Xe({},v,{getDisplayName:i,methodName:a,renderCountProp:u,shouldHandleStateChanges:l,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=v.pure;var c=s?se:function(e){return e()};function d(n){var r=se(function(){var e=n.reactReduxForwardedRef,t=Je(n,["reactReduxForwardedRef"]);return[n.context,e,t]},[n]),i=r[0],a=r[1],s=r[2],u=se(function(){return i&&i.Consumer&&Object(tt.isContextConsumer)(We.createElement(i.Consumer,null))?i:m},[i,m]),d=ce(u),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var f=p?n.store:d.store,h=se(function(){return function(t){return e(t.dispatch,o)}(f)},[f]),y=se(function(){if(!l)return it;var e=new Ye(f,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,p,d]),g=y[0],v=y[1],b=se(function(){return p?d:Xe({},d,{subscription:g})},[p,d,g]),O=ne(ot,rt,ct),_=O[0][0],S=O[1];if(_&&_.error)throw _.error;var E=oe(),w=oe(s),P=oe(),T=oe(!1),A=c(function(){return P.current&&s===w.current?P.current:h(f.getState(),s)},[f,_,s]);at(st,[w,E,T,s,A,P,v]),at(ut,[l,f,g,h,w,E,T,P,v,S],[f,g,h]);var C=se(function(){return We.createElement(t,Xe({},A,{ref:a}))},[a,t,A]);return se(function(){return l?We.createElement(u.Provider,{value:b},C):C},[u,C,b])}var f=s?We.memo(d):d;if(f.WrappedComponent=t,f.displayName=r,h){var y=We.forwardRef(function(e,t){return We.createElement(f,Xe({},e,{reactReduxForwardedRef:t}))});return y.displayName=r,y.WrappedComponent=t,et()(y,t)}return et()(f,t)}}function dt(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function pt(e,t){if(dt(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!dt(e[n[i]],t[n[i]]))return!1;return!0}var ft=n(16),ht=function(){return Math.random().toString(36).substring(7).split("").join(".")},yt={INIT:"@@redux/INIT"+ht(),REPLACE:"@@redux/REPLACE"+ht(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ht()}};function gt(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function vt(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(vt)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return c(),s.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!gt(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:yt.INIT}),(r={dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,p({type:yt.REPLACE})}})[ft.a]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[ft.a]=function(){return this},e},r}function mt(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function bt(e,t){return function(){return t(e.apply(this,arguments))}}function Ot(e,t){if("function"===typeof e)return bt(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"===typeof i&&(n[r]=bt(i,t))}return n}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function Et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(n,!0).forEach(function(t){_t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n,{dispatch:r=Et.apply(void 0,o)(n.dispatch)})}}}function Pt(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Tt(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function At(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Tt(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=Tt(i),i=r(t,n)),i},r}}var Ct=[function(e){return"function"===typeof e?At(e):void 0},function(e){return e?void 0:Pt(function(e){return{dispatch:e}})},function(e){return e&&"object"===typeof e?Pt(function(t){return Ot(e,t)}):void 0}];var Rt=[function(e){return"function"===typeof e?At(e):void 0},function(e){return e?void 0:Pt(function(){return{}})}];function Dt(e,t,n){return Xe({},n,{},e,{},t)}var Mt=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var u=e(t,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return Dt}}];function It(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function kt(e,t,n,r,i){var o,a,s,u,c,l=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function h(i,f){var h=!d(f,a),y=!l(i,o);return o=i,a=f,h&&y?(s=e(o,a),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):y?function(){var t=e(o,a),r=!p(t,s);return s=t,r&&(c=n(s,u,a)),c}():c}return function(i,l){return f?h(i,l):(s=e(o=i,a=l),u=t(r,a),c=n(s,u,a),f=!0,c)}}function Nt(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Je(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),u=i(e,o);return(o.pure?kt:It)(a,s,u,e,o)}function Lt(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function xt(e,t){return e===t}function Vt(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?lt:n,i=t.mapStateToPropsFactories,o=void 0===i?Rt:i,a=t.mapDispatchToPropsFactories,s=void 0===a?Ct:a,u=t.mergePropsFactories,c=void 0===u?Mt:u,l=t.selectorFactory,d=void 0===l?Nt:l;return function(e,t,n,i){void 0===i&&(i={});var a=i,u=a.pure,l=void 0===u||u,p=a.areStatesEqual,f=void 0===p?xt:p,h=a.areOwnPropsEqual,y=void 0===h?pt:h,g=a.areStatePropsEqual,v=void 0===g?pt:g,m=a.areMergedPropsEqual,b=void 0===m?pt:m,O=Je(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=Lt(e,o,"mapStateToProps"),S=Lt(t,s,"mapDispatchToProps"),E=Lt(n,c,"mergeProps");return r(d,Xe({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:S,initMergeProps:E,pure:l,areStatesEqual:f,areOwnPropsEqual:y,areStatePropsEqual:v,areMergedPropsEqual:b},O))}}var jt=Vt();Ge=qe;var Ut={BORDER_RADIUS:{EXTRA_TINY:"1px",TINY:"2px",SMALL:"3px",MEDIUM:"4px"},COLORS:{BLACK:"#000000",WHITE:"#ffffff",TRANSPARENT:"transparent",GRADIENT_BLACK:"linear-gradient(to bottom, rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.62) 19%, rgba(0, 0, 0, 0))",LIGHT_GRAY_TRANSPARENT:"rgba(255, 255, 255, 0.23)",GRAY_TRANSPARENT:"rgba(143, 143, 143, 0.46)",BLACK_TRANSPARENT:"rgba(0, 0, 0, 0.7)",BLACK_80_OPACITY:"rgba(0, 0, 0, 0.8)",BLUR_TRANSPARENT:"rgba(0, 0, 0, 0.48)",GRAY:"rgba(0, 0, 0, 0.35)",SELECTED:"rgba(255, 255, 255, 0.1)",SCROLL_BAR:"rgba(255, 255, 255, 0.64)",TRANSPARENT_30_OPACITY:"rgba(0, 0, 0, 0.31)"},TEXT_FONT_FAMILY:{LATO:"Lato"},FONT_SIZE:{EXTRA_TINY:"8px",TINY:"10px",EXTRA_SMALL:"12px",SMALL:"14px",MEDIUM:"18px"}},Ft="179px",Bt="269px",Ht="180px",qt="270px",Wt="300px",zt="301px",Gt="500px",$t="501px",Kt="800px",Yt="801px";function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jt=function e(t){return t&&t.length>0?t.reduce(function(t,n){return n?Array.isArray(n)?Xt(Xt({},t),e(n)):Xt(Xt({},t),n):t},{}):null},Qt=function(e){return function(t){t({type:"[CORE] change video tag status",payload:e})}},en=function(e){return function(t){t({type:"[CORE] update video current fragment position",payload:e})}},tn=function(e){return function(t){t({type:"[CORE] update video current position",payload:e})}},nn=function(e){return function(t){t({type:"[CORE] update video current buffered time",payload:e})}},rn=function(e){return function(t){t({type:"[CORE] update video current duration",payload:e})}},on=function(e,t){return function(n){n({type:"[COMMON] set pending video status",payload:{pendingStatusObject:{type:e,value:t}}})}},an=function(e){return function(t){t({type:"[COMMON] set mute video",payload:e})}},sn=function(e){return function(t){t({type:"[COMMON] set volume",payload:e})}},un=function(e){return function(t){t({type:"[CORE] change loading player status",payload:e})}},cn=function(e){return function(t){t({type:"[COMMON] show black screen with loader",payload:e})}},ln=function(e){return function(t){t({type:"[CORE] set player size",payload:e})}},dn=function(e){return function(t){t({type:"[COMMON] set error message",payload:e})}},pn={mediaData:function(e){return e.mediaData},playerData:function(e){return e.playerData},dependenciesLoadingStatus:function(e){return e.dependenciesLoadingStatus},brandingData:function(e){return e.brandingData},anchorOptions:function(e){return e.anchorOptions},semanticOptions:function(e){return e.semanticOptions},monetization:function(e){return e.monetization},userInteraction:function(e){return e.userInteraction},splitView:function(e){return e.splitView},discovery:function(e){return e.discovery}},fn=pn.playerData,hn={playerId:function(e){return fn(e).playerId},videoTagStatus:function(e){return fn(e).videoTagStatus},pendingVideoTagStatus:function(e){return fn(e).pendingVideoTagStatus},currentVideoTime:function(e){return fn(e).currentVideoTime},currentVideoTimeFragment:function(e){return fn(e).currentVideoTimeFragment},currentVideoDuration:function(e){return fn(e).currentVideoDuration},currentVideoBufferedTime:function(e){return fn(e).currentVideoBufferedTime},playerMode:function(e){return fn(e).playerMode},playerSettings:function(e){return fn(e).playerSettings},playbackMethod:function(e){return fn(e).playbackMethod},playerVisibility:function(e){return fn(e).playerVisibility},playerPlaceholderVisibility:function(e){return fn(e).playerPlaceholderVisibility},playerInstanceUniqId:function(e){return fn(e).playerInstanceUniqId},showBlackScreen:function(e){return fn(e).loader.showBlackScreen},playerSize:function(e){return fn(e).playerSize},errorMessage:function(e){return fn(e).errorMessage},loadingPlayer:function(e){return fn(e).loadingPlayer}},yn=hn.playerSettings,gn={volume:function(e){return yn(e).volume},muted:function(e){return yn(e).muted},quality:function(e){return yn(e).quality},speed:function(e){return yn(e).speed},selectedSettingsCategory:function(e){return yn(e).selectedSettingsCategory},fullscreen:function(e){return yn(e).fullscreen},pendingFullscreenRequest:function(e){return this.fullscreen(e).pendingFullscreenRequest},isFullscreenOn:function(e){return this.fullscreen(e).isFullscreenOn}},vn=function(e){return"".concat("mplayer-monetization-placeholder","-").concat(e)},mn=function(e){return"".concat("mplayer-player-placeholder","-").concat(e)},bn=function(e){return"".concat("mplayer-player-container","-").concat(e)},On=function(e){return"".concat("mplayer-controls-placeholder","-").concat(e)},_n=function(e){return"".concat("mplayer-split-view-placeholder","-").concat(e)},Sn=function(e){return"".concat("mplayer-discovery-placeholder","-").concat(e)},En=function(e){return"".concat("mplayer-content-video","-").concat(e)},wn=function(e){return"".concat("mplayer","-").concat("error-page-message","-").concat(e)},Pn=function(e){return"".concat("mplayer","-").concat("loader","-").concat(e)},Tn=function(e){return"".concat("mplayer","-").concat("mplayer-close-bar-placeholder","-").concat(e)},An=pn.mediaData,Cn={mediaId:function(e){return An(e).mediaId},mediaType:function(e){return An(e).mediaType},videoList:function(e){return An(e).videoList},videoData:function(e){return An(e).videoData},activeVideoIndex:function(e){return An(e).activeVideoIndex},mediaRequest:function(e){return An(e).mediaRequest},mediaLoadingError:function(e){return An(e).mediaLoadingError}},Rn=Cn.videoData,Dn={creator:function(e){return Rn(e).creator},description:function(e){return Rn(e).description},duration:function(e){return Rn(e).duration},externalId:function(e){return Rn(e).externalId},index:function(e){return Rn(e).index},mediaId:function(e){return Rn(e).mediaId},provider:function(e){return Rn(e).provider},sources:function(e){return Rn(e).sources},tags:function(e){return Rn(e).tags},thumbnail:function(e){return Rn(e).thumbnail},title:function(e){return Rn(e).title},showTitle:function(e){return Rn(e).showTitle}},Mn=n(11),In=n.n(Mn);function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return se(function(){return e.apply(void 0,In()(t))},[e,t])}var Nn={root:{height:"100%",left:0,display:"block",width:"100%"}},Ln=function(){return{playerStyle:[Nn.root]}},xn=n(30),Vn=Object(xn.a)(),jn=function(e){return"undefined"===typeof e},Un=function(e){return jn(e)||null===e||0===e.length},Fn=function(){return null!==navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i)},Bn=function(){return"iOS"===Vn.os},Hn=function(e){return Math.floor(10*e)/10},qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0";return parseInt(e,10)/1e3},Wn=function(e,t){return jn(e)||jn(t)?0:e>t?1:-1},zn=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout(function(){n=null,e(i)},t)}},Gn=function(e){var t=e.clientWidth*(9/16),n=e.clientHeight;return Math.abs(t-n)>2?t:n},$n=function(e){return function(e){return!e.dataLayer||Array.isArray(e.dataLayer)}(e)?"dataLayer":"mmVideoDataLayer"},Kn=function(e){var t=ue(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]);re(function(){t()},[t]),re(function(){var e=zn(t,150);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[t])},Yn=pn.splitView,Zn=function(e){return Yn(e).splitViewRatio},Xn={GENERAL_ERROR:"An error has occurred, please try again later",VIDEO_ERROR:"The video is currently unavailable"},Jn=jt(function(e,t){return{thumbnail:Dn.thumbnail(e),playerId:t.playerId,muted:gn.muted(e),volume:gn.volume(e),currentVideoTime:hn.currentVideoTime(e),playbackMethod:hn.playbackMethod(e),splitViewRatio:Zn(e),playerSize:hn.playerSize(e),isFullscreenOn:gn.isFullscreenOn(e),playerMode:hn.playerMode(e),speed:gn.speed(e)}},function(e){return Ot({updateVideoTagStatus:Qt,updateVideoTime:tn,updateVideoTimeFragment:en,changeLoadingPlayerStatus:un,showBlackScreenLoader:cn,updateVideoDuration:rn,updateMute:an,updateVolume:sn,updateCurrentVideoBufferedTime:nn,setPlayerSize:ln,onErrorMessage:dn},e)})(function(e){var t=e.thumbnail,n=e.playerId,r=e.updateVideoTagStatus,i=e.updateVideoTime,o=e.updateCurrentVideoBufferedTime,a=e.muted,s=e.volume,u=e.currentVideoTime,c=e.playbackMethod,l=e.changeLoadingPlayerStatus,d=e.showBlackScreenLoader,p=e.updateVideoDuration,f=e.updateMute,h=e.updateVolume,y=e.updateVideoTimeFragment,g=e.setPlayerSize,v=e.splitViewRatio,m=e.playerSize,O=e.isFullscreenOn,_=e.playerMode,S=e.onErrorMessage,E=e.speed,w=oe(null),P=!Un(v),T=kn(Ln,[]).playerStyle,A=document.getElementById(bn(n));re(function(){w.current.playbackRate=E},[E]),Kn(function(){if(!Un(A)){var e=function(e,t,n,r,i){var o=e.style.width;return n?"desktop"===r||"miniDesktop"===r||"stickyDesktop"===r?"extraLarge":"medium":"100%"===o?t:i&&o<=Bt?"extraSmall":i&&o>=qt&&o<=Wt?"small":o<=Ft?"extraSmall":o>=Ht&&o<=Wt?"small":o>=zt&&o<=Gt?"medium":o>=$t&&o<=Kt?"large":o>=Yt?"extraLarge":null}(A,m,O,_,P);Un(e)||g(e)}},[A,m,O,_,P,g]);var C="autoplay"===c?"":t;return b("video",{ref:w,style:Jt(T),key:En(n),id:En(n),onEnded:function(){r("complete")},onDurationChange:function(e){var t,n=e.target.duration;t=n,Number.isNaN(t)||"number"!==typeof t||p(n)},onTimeUpdate:function(e){var t=e.target.currentTime;y(t);var n=parseInt(t.toString(),10);n!==u&&i(n)},onVolumeChange:function(e){var t=e.target,n=t.volume,r=t.muted;n!==s&&h(n),a!==r&&f(r)},onPause:function(){r("paused")},onPlaying:function(){r("playing")},onError:function(){r("error"),S(Xn.VIDEO_ERROR)},onLoadStart:function(){l(!0),d(!0)},onCanPlayThrough:function(){l(!1),d(!1),S("")},onCanPlay:function(){l(!1),S("")},onWaiting:function(){l(!0)},onSeeking:function(){r("seeking")},onProgress:function(e){var t=e.target.buffered,n=t.length;n>0&&o(t.end(n-1))},volume:s,muted:a,poster:C,playsInline:!0,"webkit-playsinline":""},b("track",{kind:"captions"}))}),Qn=function(e){return function(t){t({type:"[CORE] update ima status",payload:e})}},er=function(e){return function(t){t({type:"[CORE] update hls status",payload:e})}},tr=function(){return{adBlockCheckerStyle:{backgroundColor:Ut.COLORS.TRANSPARENT,height:"1px",width:"1px"}}},nr=jt(null,function(e){return{onAdBlockDetected:function(){return Qn("blocked")(e)}}})(function(e){var t=oe(),n=kn(tr,[]).adBlockCheckerStyle;return re(function(){0!==t.current.clientHeight&&0!==t.current.clientWidth||(0,e.onAdBlockDetected)()},[e]),b("div",{ref:t},b("div",{class:"adBanner",style:n}))}),rr=n(10),ir=n.n(rr);n(20);var or={root:null,threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],rootMargin:"0px"},ar=function(e){var t=e.id,n=e.updateContainerVisibility,r=e.shouldObserve,i=e.regularMode,o=e.stickyAnchorMode,a=e.children,s=e.style,u=e.isPlaceholder,c=e.splitViewRatio,l=e.className,d=oe(),p=te(null),f=ir()(p,2),h=f[0],y=f[1];return re(function(){null!==h&&h.observe(d.current)},[h]),re(function(){!function(e,t,n){e&&t(new IntersectionObserver(function(e){var t=e[0];n(t.intersectionRatio)},or))}(r,y,n)},[r,n]),Kn(function(){u?function(e,t){var n=e.parentElement.clientWidth;e.style.maxWidth="".concat(n,"px"),Un(t)?e.style.height="".concat(Gn(e),"px"):e.style.height="".concat(Gn(e)*(t/100),"px")}(d.current,c):function(e,t,n){t?(e.style.width="".concat(e.parentElement.clientWidth,"px"),e.style.height="".concat(e.parentElement.clientHeight,"px")):n&&(e.style.width="".concat(e.parentElement.clientWidth,"px"),e.style.height="".concat(e.parentElement.clientHeight+24,"px"))}(d.current,i,o)},[u,i,o]),b("div",{className:l,id:t,ref:d,style:s},a)};function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cr={display:"flex",flexDirection:"row"},lr=(ur(ur({},cr),{},{justifyContent:"flex-end"}),ur(ur({},cr),{},{justifyContent:"center"})),dr=ur(ur({},cr),{},{justifyContent:"space-between"}),pr=(ur(ur({},dr),{},{alignItems:"baseline"}),ur(ur({},lr),{},{alignItems:"center"})),fr=ur(ur({},cr),{},{justifyContent:"flex-start"}),hr=(ur(ur({},fr),{},{alignItems:"center"}),ur(ur({},fr),{},{alignItems:"flex-end",flexWrap:"wrap"}),{display:"flex",flexDirection:"column"}),yr=(ur(ur({},hr),{},{justifyContent:"flex-start"}),ur(ur({},hr),{},{justifyContent:"center"})),gr=(ur(ur({},hr),{},{justifyContent:"flex-end",alignItems:"center"}),ur(ur({},yr),{},{alignItems:"center"}));function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var br=mr(mr({},hr),{},{position:"relative",background:Ut.COLORS.BLACK}),Or=pn.anchorOptions,_r=function(e){return Or(e).orientation},Sr=function(e){return Or(e).canClose},Er=function(e){return Or(e).anchorData},wr=function(e){return Er(e).anchorDisabledByUser},Pr=function(e){return Er(e).anchorStatus};function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Cr=jt(function(e){return{shouldObserve:"lazyplay"===hn.playbackMethod(e)||"autoplay_when_viewable"===hn.playbackMethod(e),regularMode:"inactive"===Pr(e)||!Un(Zn(e)),stickyAnchorMode:"sticky"===_r(e)&&"active"===Pr(e)&&Sr(e),style:Ar({},mr({},br)),isPlaceholder:!1}},function(e){return{updateContainerVisibility:function(t){return function(e){return function(t){t({type:"[CORE] update player visibility",payload:e})}}(t)(e)}}})(ar);function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mr={width:"100%",clear:"both",margin:"16px 0"};function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nr=jt(function(e){return{shouldObserve:"sticky"!==_r(e),style:kr({},Dr({},Mr)),splitViewRatio:Zn(e),isPlaceholder:!0,className:"monti-placeholder-mm-player"}},function(e){return{updateContainerVisibility:function(t){return function(e){return function(t){t({type:"[CORE] update placeholder visibility",payload:e})}}(t)(e)}}})(ar),Lr=function(){return{monetizationStyle:{position:"absolute",width:"100%",top:"0",display:"none"}}},xr=function(e){var t=e.playerId,n=kn(Lr,[]).monetizationStyle,r=oe();return Kn(function(){console.log("the monetization parent element : ",r.current.parentElement),r.current.style.height="".concat(Gn(r.current.parentElement),"px")}),b("div",{id:vn(t),style:n,ref:r})};function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ur={position:"relative",color:Ut.COLORS.WHITE,fontFamily:Ut.TEXT_FONT_FAMILY.LATO,fontWeight:"bold",textAlign:"center",tiny:{fontSize:Ut.FONT_SIZE.EXTRA_TINY},big:{fontSize:Ut.FONT_SIZE.SMALL}},Fr={position:"relative",color:Ut.COLORS.WHITE,tiny:{height:"12px",width:"12px",marginBottom:"8px"},big:{height:"24px",width:"24px",marginBottom:"16px"}},Br=jr(jr({},gr),{},{width:"100%",height:"100%",position:"absolute",top:0,backdropFilter:"blur(3px)",webkitBackdropFilter:"blur(3px)",backgroundColor:Ut.COLORS.BLUR_TRANSPARENT}),Hr=function(e){var t="extraSmall"===e||"small"===e,n="medium"===e||"large"===e||"extraLarge"===e;return{errorMessageStyle:[Ur,t&&Ur.tiny,n&&Ur.big],iconStyle:[Fr,t&&Fr.tiny,n&&Fr.big],screenStyle:jr({},Br)}},qr=n(12),Wr=n.n(qr);function zr(){return(zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gr(){return(Gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $r(){return($r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Kr={CLOSE_FILL:function(e){e.styles;var t=Wr()(e,["styles"]);return We.createElement("svg",Gr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},t),We.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),We.createElement("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z",fill:"rgba(255,255,255,1)"}))},ERROR_WARNING_FILL:function(e){e.styles;var t=Wr()(e,["styles"]);return We.createElement("svg",zr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},t),We.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),We.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z",fill:"rgba(255,255,255,1)"}))},PLAY_BLUR:function(e){e.styles;var t=Wr()(e,["styles"]);return We.createElement("svg",$r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},t),We.createElement("circle",{cx:"30",cy:"30",r:"30",fillRule:"evenodd",clipRule:"evenodd",fillOpacity:".35"}),We.createElement("path",{fill:"none",d:"M11 11h38v38H11z"}),We.createElement("path",{d:"M43.3 30.7L22.1 44.8c-.3.2-.7.2-1 0-.3-.2-.5-.5-.5-.9V15.8c0-.4.2-.7.5-.9.3-.2.7-.2 1 0L43.3 29c.3.2.4.5.4.8s-.2.7-.4.9z",fill:"currentColor"}))}},Yr=n(31),Zr=n.n(Yr);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Qr=Ut.COLORS.WHITE,ei=function(e,t){var n=function(e){return{root:Jr(Jr({},cr),{},{alignItems:"center",width:"fit-content",height:"fit-content",outline:"none",color:e}),focused:{outline:"".concat(Ut.COLORS.WHITE," solid 1px")}}}(t||Qr);return{iconStyle:[n.root,e&&n.focused]}},ti=function(e){var t=e.icon,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseLeave,a=e.onKeyDown,s=e.id,u=e.color,c=e.clickable,l=void 0===c||c,d=e.focusable,p=void 0===d||d,f=te(!1),h=ir()(f,2),y=h[0],g=h[1],v=te(!1),m=ir()(v,2),O=m[0],_=m[1],S=kn(ei,[O,u]).iconStyle,E=l?{onClick:r,onMouseEnter:i,onMouseLeave:o,onFocus:function(e){y||_(!0),jn(i)||i(e)},onBlur:function(){document.hasFocus()&&g(!1),_(!1)},onKeyDown:function(e){jn(a)||a(e),"Enter"!==e.key||jn(r)||r()},onMouseDown:function(){g(!0),_(!1)}}:{},w=p?{tabIndex:0}:{};return b("span",Zr()({id:s,style:Jt([S,n])},E,w),b(t,null))},ni=jt(function(e){return{playerSize:hn.playerSize(e),playerErrorMessage:hn.errorMessage(e),mediaErrorMessage:Cn.mediaLoadingError(e),playerUniqId:hn.playerInstanceUniqId(e)}})(function(e){var t,n=e.playerSize,r=e.playerErrorMessage,i=e.mediaErrorMessage,o=e.playerUniqId,a=kn(Hr,[n]),s=a.errorMessageStyle,u=a.iconStyle,c=a.screenStyle,l=r||i;return Un(r)&&Un(i)?null:b("div",{id:(t=o,"".concat("mplayer","-").concat("error-page","-").concat(t)),style:c},b(ti,{icon:Kr.ERROR_WARNING_FILL,style:Jt(u)}),b("div",{id:wn(o),style:Jt(s)},l))}),ri=function(e,t){var n=function(e){return{height:"100%",left:0,display:"block",width:"100%",position:"relative",splitView:{width:"".concat(e/(9/16),"px")}}}(e);return{playerWrapperStyle:[n,t&&n.splitView]}},ii=jt(function(e){return{splitViewRatio:Zn(e)}})(function(e){var t=e.splitViewRatio,n=e.children,r=oe(),i=te(null),o=ir()(i,2),a=o[0],s=o[1],u=!Un(t),c=kn(ri,[a,u]).playerWrapperStyle;return Kn(function(){s(r.current.parentElement.clientHeight)},[r]),b("div",{ref:r,style:Jt(c)},n)});function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var si=ai(ai({},cr),{},{position:"absolute",width:"100%",height:"100%"}),ui={width:"100%",height:"100%",position:"relative"},ci={display:"flex",position:"relative",flexGrow:"1"},li={position:"absolute",zIndex:"1",width:"100%",top:"0",height:"100%",pointerEvents:"none"},di={position:"absolute",zIndex:"2",width:"100%",top:"0",height:"100%",pointerEvents:"none"},pi=function(){return{splitViewWrapperStyle:ai({},si),playerAndControlsWrapperStyle:ai({},ui),splitViewPlaceholderStyle:ai({},ci),controlsPlaceholderStyle:ai({},li),discoveryPlaceholderStyle:ai({},di)}};function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yi={position:"absolute",overflow:"hidden",backgroundColor:Ut.COLORS.GRAY_TRANSPARENT,borderRadius:Ut.BORDER_RADIUS.SMALL,height:"6px",small:{width:"120px",height:"4px"},medium:{width:"200px"},largeAndExtraLarge:{width:"220px"},splitView:{width:"120px",height:"4px"},error:{display:"none"}},gi=hi(hi({},pr),{},{width:"100%",height:"100%",position:"absolute",top:"0",backgroundColor:Ut.COLORS.TRANSPARENT,blackScreen:{backgroundColor:Ut.COLORS.BLACK}}),vi=function(e,t,n,r,i){var o,a=!Un(n),s="small"===e,u="medium"===e,c="large"===e||"extraLarge"===e,l=i||Ut.COLORS.WHITE,d=(o=l,{position:"relative",width:"100%",height:"6px",borderRadius:Ut.BORDER_RADIUS.SMALL,animationName:"loaderAnimation",animationDuration:"3.5s",animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",backgroundColor:o,small:{height:"4px"},splitView:{height:"4px"}});return{loaderStyle:[yi,r&&yi.error,s&&yi.small,u&&yi.medium,c&&yi.largeAndExtraLarge,a&&yi.splitView],barStyle:[d,s&&d.small,a&&d.splitView],screenStyle:[gi,t&&gi.blackScreen]}},mi=pn.monetization,bi={continuePlayingWhileWaitingForAd:function(e){return mi(e).continuePlayingWhileWaitingForAd},midrolls:function(e){return mi(e).midrolls},prerollEnabled:function(e){return mi(e).prerollEnabled},vpaidMode:function(e){return mi(e).vpaidMode},adRequestTimeout:function(e){return mi(e).adRequestTimeout},adsData:function(e){return mi(e).adsData}},Oi=bi.adsData,_i={adTagUrlTemplate:function(e){return Oi(e).adTagUrlTemplate},adType:function(e){return Oi(e).adType},adStatus:function(e){return Oi(e).adStatus},pendingAdStatus:function(e){return Oi(e).pendingAdStatus},adErrorMessage:function(e){return Oi(e).adErrorMessage},adDuration:function(e){return Oi(e).adDuration},playedMidrolls:function(e){return Oi(e).playedMidrolls},adImpression:function(e){return Oi(e).adImpression},adOpportunity:function(e){return Oi(e).adOpportunity},isVastAd:function(e){return Oi(e).isVastAd},adCurrentTime:function(e){return Oi(e).adCurrentTime},adMuted:function(e){return Oi(e).adMuted},adVolume:function(e){return Oi(e).adVolume},currentAdTag:function(e){return Oi(e).currentAdTag},adUnit:function(e){return Oi(e).adUnit},slotNumber:function(e){return Oi(e).slotNumber},podNumber:function(e){return Oi(e).podNumber},loadingAd:function(e){return Oi(e).loadingAd}},Si=pn.brandingData,Ei=function(e){return Si(e).brandingColor},wi=jt(function(e){return{showBlackScreen:hn.showBlackScreen(e),playerSize:hn.playerSize(e),splitViewRatio:Zn(e),playerUniqId:hn.playerInstanceUniqId(e),playerErrorMessage:hn.errorMessage(e),mediaErrorMessage:Cn.mediaLoadingError(e),loadingPlayer:hn.loadingPlayer(e),loadingAd:_i.loadingAd(e),brandingColor:Ei(e)}})(function(e){var t,n=e.playerSize,r=e.showBlackScreen,i=e.splitViewRatio,o=e.playerUniqId,a=e.playerErrorMessage,s=e.mediaErrorMessage,u=e.loadingPlayer,c=e.loadingAd,l=e.brandingColor,d=!Un(a)||!Un(s),p=u||c,f=kn(vi,[n,r,i,d,l]),h=f.loaderStyle,y=f.barStyle,g=f.screenStyle;return p?b("div",{id:(t=o,"".concat("mplayer","-").concat("loader-page","-").concat(t)),style:Jt(g)},b("div",{id:Pn(o),style:Jt(h)},b("div",{style:Jt(y)}))):null}),Pi=function(e){var t=e.playerId,n=e.store,r=e.playerPosition,i=kn(pi,[]),o=i.splitViewWrapperStyle,a=i.playerAndControlsWrapperStyle,s=i.splitViewPlaceholderStyle,u=i.controlsPlaceholderStyle,c=i.discoveryPlaceholderStyle;return re(function(){!function(e){var t=document.createElement("link");t.setAttribute("href","https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap"),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),e.appendChild(t)}(r),function(e){var t=document.createElement("style");t.type="text/css",t.textContent="@keyframes loaderAnimation {0% {left: -100%}49% {left: 100%}50% {left: 100%}100% {left: -100%}}",e.appendChild(t)}(r)},[r]),b(Ze,{store:n},b(Nr,{id:mn(t)},b(Cr,{id:bn(t)},b("div",{id:Tn(t)}),b("div",{style:a},b("div",{style:o},b(ii,null,b(Jn,{playerId:t}),b(xr,{playerId:t}),b(wi,null),b(nr,null)),b("div",{id:_n(t),style:s})),b("div",{id:On(t),style:u}),b("div",{id:Sn(t),style:c}),b(ni,null)))))},Ti=n(1),Ai=n.n(Ti),Ci=function e(){var t=this;Ai()(this,e),f()(this,"HLS_MAIN_SCRIPT","https://cdn.jsdelivr.net/npm/hls.js@0.9.1"),f()(this,"HLS_FALLBACK_SCRIPT","https://www.oo-syringe.com/newplayer/mplayer_hls_wrapper.0.0.0.js"),f()(this,"IMA_SCRIPT","https://imasdk.googleapis.com/js/sdkloader/ima3.js"),f()(this,"MMPLUS_CONTAINER_ID","GTM-PL4PD49"),f()(this,"MM_CONTAINER_ID","GTM-TCW5HW"),f()(this,"dependenciesCallbacks",void 0),f()(this,"imaLoadingStatus",""),f()(this,"hlsLoadingStatus",""),f()(this,"gtmLoaded",!1),f()(this,"addDependenciesCallback",function(e){t.dependenciesCallbacks.includes(e)||t.dependenciesCallbacks.push(e)}),f()(this,"isDependenciesReady",function(){return t.gtmLoaded&&"loading"!==t.getHLSLoadingStatus()&&"loading"!==t.getIMALoadingStatus()}),f()(this,"getIMALoadingStatus",function(){return t.imaLoadingStatus}),f()(this,"getHLSLoadingStatus",function(){return t.hlsLoadingStatus}),f()(this,"removeDependenciesCallback",function(e){t.dependenciesCallbacks.filter(function(t){return t===e})}),f()(this,"loadScript",function(e,t,n){var r=document.createElement("script");r.setAttribute("src",e),r.addEventListener("load",t),r.addEventListener("error",n),document.body.appendChild(r)}),f()(this,"onScriptLoaded",function(e){t.dependenciesCallbacks.forEach(function(t){t.onDependencyReady(e)})}),f()(this,"onScriptFailed",function(e,n){t.dependenciesCallbacks.forEach(function(t){t.onDependencyFailure(e,n)})}),f()(this,"onHlsScriptLoaded",function(){void 0!==window.Hls?t.onScriptLoaded("hls"):t.onHlsLoadError()}),f()(this,"onHlsLoadError",function(){t.loadScript(t.HLS_FALLBACK_SCRIPT,t.onMMhlsScriptLoaded,t.onMMHlsScriptFailure)}),f()(this,"onMMhlsScriptLoaded",function(){t.onScriptLoaded("hls")}),f()(this,"onMMHlsScriptFailure",function(e){t.onScriptFailed("hls",e)}),f()(this,"onImaLoadError",function(e){t.imaLoadingStatus="error",t.onScriptFailed("ima",e)}),f()(this,"onImaLoaded",function(){t.onScriptLoaded("ima"),t.imaLoadingStatus="success"}),f()(this,"shouldLoadMmGTM",function(){var e=window.google_tag_manager;return!e||!e[t.MMPLUS_CONTAINER_ID]&&!e[t.MM_CONTAINER_ID]}),f()(this,"loadGTMifNeeded",function(){if(t.shouldLoadMmGTM()){var e,n;try{e=window.parent,n=window.parent.document}catch(u){e=window,n=window.document}var r=$n(e),i="dataLayer"!==r?"&l=".concat(r):"";e[r]=e[r]||[],e[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var o=n.getElementsByTagName("script")[0],a=n.createElement("script");a.setAttribute("async",""),a.setAttribute("src","https://www.googletagmanager.com/gtm.js?id=GTM-PL4PD49".concat(i)),o.parentNode.insertBefore(a,o);var s=n.createElement("iframe");s.src="https://www.googletagmanager.com/ns.html?id=GTM-PL4PD49",s.height="0",s.width="0",s.style="display:none;visibility:hidden",n.body.appendChild(s),t.gtmLoaded=!0}}),f()(this,"loadHLS",function(){Bn()||"safari"===Vn.name?t.hlsLoadingStatus="no-need":(t.loadScript(t.HLS_MAIN_SCRIPT,t.onHlsScriptLoaded,t.onHlsLoadError),t.hlsLoadingStatus="loading")}),f()(this,"loadIMA",function(){t.loadScript(t.IMA_SCRIPT,t.onImaLoaded,t.onImaLoadError),t.imaLoadingStatus="loading"}),f()(this,"loadExternalDependencies",function(){""===t.getIMALoadingStatus()&&t.loadIMA(),""===t.getHLSLoadingStatus()&&t.loadHLS(),t.gtmLoaded||t.loadGTMifNeeded()}),this.dependenciesCallbacks=[]};f()(Ci,"instance",void 0),f()(Ci,"getInstance",function(){return Ci.instance||(Ci.instance=new Ci),Ci.instance});var Ri=function(e){return"".concat("mplayer-monetization-ad-container","-").concat(e)},Di=function(e){return"".concat("mplayer-monetization-safari-video-ad","-").concat(e)},Mi=jt(function(e){return{contentVideoTime:hn.currentVideoTime(e),playerUniqId:hn.playerInstanceUniqId(e)}})(function(e){var t=e.contentVideoTime,n=e.playerUniqId,r=oe();return re(function(){Un(r.current)||(r.current.currentTime=t)},[t]),b("video",{id:Di(n),ref:r,style:{backgroundColor:"rgb(0, 0, 0)",width:"100%",height:"100%"},title:"Advertisement",preload:"auto",muted:!0,playsInline:!0,"webkit-playsinline":""})});function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ni=jt(function(e,t){return ki(ki({},t),{},{adStatus:_i.adStatus(e)})})(function(e){var t=e.playerId,n=e.adStatus,r="playing"===n||"paused"===n;return re(function(){document.getElementById(vn(t)).style.display=r?"flex":"none"},[t,r]),b("div",{style:{width:"100%",height:"100%"}},b("div",{id:Ri(t),style:{height:"100%",width:"100%"}},Bn()&&b(Mi,null)))}),Li=function(e){var t=e.store,n=e.playerId;return b(Ze,{store:t},b(Ni,{playerId:n}))},xi=n(2),Vi=n.n(xi),ji=(n(46),function(){function e(t,n,r){Ai()(this,e),f()(this,"store",void 0),f()(this,"getDependenciesElements",void 0),f()(this,"oldState",void 0),f()(this,"unsubscribe",void 0),f()(this,"onChange",void 0),this.store=t,this.oldState=t.getState(),this.getDependenciesElements=n,this.unsubscribe=t.subscribe(this.onStateChanged.bind(this)),this.onChange=r}return Vi()(e,[{key:"stopSubscription",value:function(){this.unsubscribe(),this.oldState=null,this.getDependenciesElements=null,this.store=null,this.unsubscribe=null,this.onChange=null}},{key:"onStateChanged",value:function(){var e=this.store.getState(),t=this.getDependenciesElements(this.oldState),n=this.getDependenciesElements(e);t.every(function(e,t){return e===n[t]})||this.onChange(e),this.oldState=e}}]),e}()),Ui=pn.dependenciesLoadingStatus,Fi={loadingImaStatus:function(e){return Ui(e).loadingImaStatus},loadingHLSStatus:function(e){return Ui(e).loadingHLSStatus}},Bi=function(e){return"blocked"===Fi.loadingImaStatus(e)},Hi=function(e){return"playing"===e||"requested"===e||"loaded"===e||"paused"===e},qi=function(){function e(t,n){Ai()(this,e),f()(this,"videoTimeSubscriber",void 0),f()(this,"adsScheduler",void 0),this.videoTimeSubscriber=new ji(t,e.getVideoTimeDependencies,this.onVideoTimeChanged.bind(this)),this.adsScheduler=n}return Vi()(e,[{key:"onVideoTimeChanged",value:function(t){"seeking"!==hn.videoTagStatus(t)&&(e.shouldRequestAd(t)?this.adsScheduler.onPreAdTimeReached(e.getMidroll(t)):e.isOnAdTime(t)&&this.adsScheduler.onAdTimeReached())}}],[{key:"getVideoTimeDependencies",value:function(e){return[hn.currentVideoTime(e)]}},{key:"isTimeInPreAdRange",value:function(e,t){return t>=e&&e>=t-$i}},{key:"getNextSpecificMidrollTime",value:function(t,n){return-1!==t.indexOf(n)?n:t.find(function(t){return e.isTimeInPreAdRange(n,t)})}},{key:"getNextReocurringMidrollNumber",value:function(e,t){var n=t/e;return t%e===0?n:Math.ceil(n)}},{key:"getMidroll",value:function(t){var n=hn.currentVideoTime(t),r=bi.midrolls(t),i=r.every,o=r.on,a=Dn.mediaId(t);if(!Un(i)){var s=e.getNextReocurringMidrollNumber(i,n);return{currentTime:n,mediaId:a,midrollNumber:s,midrollTime:s*i}}if(!Un(o)){var u=e.getNextSpecificMidrollTime(o,n);return{midrollNumber:o.indexOf(u)+1,currentTime:n,midrollTime:u,mediaId:a}}return null}},{key:"isMidrollAlreadyPlayed",value:function(e,t){return-1!==e.indexOf(t)}},{key:"isMidrollReached",value:function(t){var n=hn.currentVideoTime(t),r=bi.midrolls(t),i=r.every,o=r.on,a=_i.playedMidrolls(t);if(!Un(i)&&n>0){var s=e.getNextReocurringMidrollNumber(i,n),u=s*i;return!this.isMidrollAlreadyPlayed(a,s)&&e.isTimeInPreAdRange(n,u)}if(!Un(o)){var c=e.getNextSpecificMidrollTime(o,n),l=o.indexOf(c)+1;return l>0&&!this.isMidrollAlreadyPlayed(a,l)}return!1}},{key:"shouldRequestAd",value:function(e){var t=_i.adStatus(e);return!Bi(e)&&!Hi(t)&&this.isMidrollReached(e)}},{key:"isOnAdTime",value:function(t){var n=hn.currentVideoTime(t),r=bi.midrolls(t),i=r.every,o=r.on,a=_i.playedMidrolls(t);if(Bi(t))return!1;if(!Un(i)){var s=e.getNextReocurringMidrollNumber(i,n);return 0!==n&&n%i===0&&!this.isMidrollAlreadyPlayed(a,s)}if(!Un(o)){var u=o.indexOf(n);return-1!==u&&!this.isMidrollAlreadyPlayed(a,u)}return!1}}]),e}(),Wi=function(){function e(t){var n=this;Ai()(this,e),f()(this,"referrerUrl",void 0),f()(this,"staticAdTag",void 0),f()(this,"generate",function(e,t){var r=encodeURIComponent(n.referrerUrl);return Un(n.staticAdTag)?n.adTagFromApi(e,r,t):n.parseAdTag(n.staticAdTag,e,r,t)}),this.staticAdTag=t,this.referrerUrl=window.location.href}return Vi()(e,[{key:"parseAdTag",value:function(t,n,r,i){var o=t.replace("##AdUnit##",e.parseAdName(n)).replace("##DESCRIPTION_URL_UNESC##",r).replace("##REFERRER_URL_UNESC##",encodeURIComponent(this.referrerUrl)).replace("##CACHEBUSTER##",e.cacheBuster(n)).replace("##MIDROLL_ORDER##",e.adIndexFromName(n));return o=e.replaceVideoId(o,"##VIDEO_ID##",i),o=e.addHacksToAdTag(o)}},{key:"adTagFromApi",value:function(e,t,n){try{var r=window.getVideoTag(t,e);return Un(r)?null:this.parseAdTag(r,e,t,n)}catch(i){return null}}}],[{key:"getCCPAConsent",value:function(t){try{var n="";return window.__uspapi&&window.__uspapi("getUSPData",1,function(e,t){t&&(n=e.uspString)}),e.setSearchParamToAdTag(t,"us_privacy",n)}catch(r){return t}}},{key:"replaceVideoId",value:function(e,t,n){return e.replace(t,n).replace(encodeURIComponent(t),n).replace(encodeURIComponent(encodeURIComponent(t)),n)}},{key:"cacheBuster",value:function(t){return"".concat((new Date).getTime()).concat(e.adIndexFromName(t))}},{key:"parseAdName",value:function(t){return t.startsWith("preroll")?"PR":"MR".concat(e.adIndexFromName(t))}},{key:"adIndexFromName",value:function(e){return e.replace(/[^\d]*/g,"")}}]),e}();f()(Wi,"setSearchParamToAdTag",function(e,t,n){var r=new URL(e),i=decodeURIComponent(n);return r.searchParams.set(t,i),r.href}),f()(Wi,"getSearchParamFromAdTag",function(e,t){return new URL(e).searchParams.get(t)}),f()(Wi,"addHacksToAdTag",function(e){var t=e,n=Wi.getSearchParamFromAdTag(t,"cust_params");if(!jn(window.mmAPSbids)&&!Un(n)){var r="".concat(window.mmAPSbids,"&").concat(n);t=Wi.setSearchParamToAdTag(t,"cust_params",r)}if(!jn(window.shouldPlayAdRules)){var i=window.shouldPlayAdRules?"1":"0";t=Wi.setSearchParamToAdTag(t,"ad_rule",i)}return t=Wi.getCCPAConsent(t)});var zi=function(){function e(t,n){Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"adsScheduler",void 0),f()(this,"previousVideoTagStatus",void 0);var r=t.getState;this.store=t,this.adsScheduler=n,this.previousVideoTagStatus=hn.videoTagStatus(r()),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this))}return Vi()(e,[{key:"onVideoTagStatusChanged",value:function(t){var n=hn.videoTagStatus(t),r=_i.adStatus(t);"seeking"===this.previousVideoTagStatus&&(Hi(r)?this.adsScheduler.onSeekedWhileAdInProgress():e.isSeekedOverMidroll(t)&&this.adsScheduler.onSeekToAdOpportunity(e.getSeekedMidroll(t))),this.previousVideoTagStatus=n}}],[{key:"getVideoTagStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}},{key:"getClosestSkippedUnplayedMidroll",value:function(e,t){for(var n=t;n>0;n-=1)if(-1===e.indexOf(n))return n;return null}},{key:"getClosestLowerSeekedMidrollNumber",value:function(e,t){var n=In()(e).reverse().find(function(e){return e<=t});return e.indexOf(n)+1}},{key:"getSeekedSpecificMidroll",value:function(e,t,n,r){var i=this.getClosestLowerSeekedMidrollNumber(e,t),o=this.getClosestSkippedUnplayedMidroll(r,i);return{midrollNumber:o,currentTime:t,midrollTime:e[o-1],mediaId:n}}},{key:"isSeekedOverSpecificMidroll",value:function(e,t,n){if(jn(e))return!1;var r=this.getClosestLowerSeekedMidrollNumber(e,n);return null!==this.getClosestSkippedUnplayedMidroll(t,r)}},{key:"getSeekedReoccuringMidroll",value:function(e,t,n,r){var i=Math.floor(t/e),o=this.getClosestSkippedUnplayedMidroll(r,i);return{midrollTime:o*e,currentTime:t,midrollNumber:o,mediaId:n}}},{key:"isSeekedOverReoccuringMidroll",value:function(e,t,n){if(jn(e))return!1;var r=Math.floor(n/e);return null!==this.getClosestSkippedUnplayedMidroll(t,r)}},{key:"getSeekedMidroll",value:function(e){var t=_i.playedMidrolls(e),n=hn.currentVideoTime(e),r=bi.midrolls(e),i=r.every,o=r.on,a=Cn.mediaId(e);return this.isSeekedOverReoccuringMidroll(i,t,n)?this.getSeekedReoccuringMidroll(i,n,a,t):this.isSeekedOverSpecificMidroll(o,t,n)?this.getSeekedSpecificMidroll(o,n,a,t):null}},{key:"isSeekedOverMidroll",value:function(e){var t=_i.playedMidrolls(e),n=hn.currentVideoTime(e),r=bi.midrolls(e),i=r.every,o=r.on,a=o;return bi.prerollEnabled(e)&&(a=o.filter(function(e){return 0!==e})),this.isSeekedOverReoccuringMidroll(i,t,n)||this.isSeekedOverSpecificMidroll(a,t,n)}}]),e}(),Gi=function e(t,n){var r=this;Ai()(this,e),f()(this,"pendingAdStatusStoreSubscriber",void 0),f()(this,"adsScheduler",void 0),f()(this,"onPendingAdStatusChanged",function(e){var t=_i.pendingAdStatus(e).type,n=_i.adStatus(e);if("playPreroll"===t&&!Hi(n)){var i=Cn.activeVideoIndex(e),o=Dn.mediaId(e);r.adsScheduler.onPrerollReached(o,i+1)}}),this.adsScheduler=n,this.pendingAdStatusStoreSubscriber=new ji(t,e.getPendingAdStatusDependencies,this.onPendingAdStatusChanged.bind(this))};f()(Gi,"getPendingAdStatusDependencies",function(e){return[_i.pendingAdStatus(e)]});var $i=3,Ki=function e(t,n){var r=this;Ai()(this,e),f()(this,"videoTimeSubscriber",void 0),f()(this,"videoSeekSubscriber",void 0),f()(this,"adTagGenerator",void 0),f()(this,"monetization",void 0),f()(this,"lastRequestedMidroll",null),f()(this,"prerollScheduler",void 0),f()(this,"generateMidrollTag",function(e){var t="midroll".concat(e.midrollNumber);return r.adTagGenerator.generate(t,e.mediaId)}),f()(this,"generatePrerollTag",function(e,t){var n="preroll".concat(t);return r.adTagGenerator.generate(n,e)}),f()(this,"onAdTimeReached",function(){r.monetization.onMidrollAdOpportunity()}),f()(this,"onPreAdTimeReached",function(e){r.onPreMidrollAdOpportunity(e)}),f()(this,"onSeekToAdOpportunity",function(e){r.onPreMidrollAdOpportunity(e)}),f()(this,"isMidrollAlreadyRequested",function(e){return e.midrollNumber===r.lastRequestedMidroll.midrollNumber&&e.mediaId===r.lastRequestedMidroll.mediaId&&e.midrollTime===r.lastRequestedMidroll.midrollTime}),f()(this,"onPreMidrollAdOpportunity",function(e){if(Un(r.lastRequestedMidroll)||!r.isMidrollAlreadyRequested(e)){r.lastRequestedMidroll=e;var t=r.generateMidrollTag(e);r.monetization.onPreMidrollAdOpportunity(e,t)}}),f()(this,"onPrerollReached",function(e,t){var n=r.generatePrerollTag(e,t);r.monetization.onPrerollAdOpportunity(n)}),f()(this,"onSeekedWhileAdInProgress",function(){r.monetization.onMidrollAdOpportunity()});var i=t.getState;this.monetization=n,this.videoTimeSubscriber=new qi(t,this),this.videoSeekSubscriber=new zi(t,this),this.prerollScheduler=new Gi(t,this);var o=_i.adTagUrlTemplate(i());this.adTagGenerator=new Wi(o)},Yi=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"generateAdRequest",value:function(e,t,n){var r=new google.ima.AdsRequest;return r.adTagUrl=e,Fn()||r.setAdWillPlayMuted(t),r.vastLoadTimeout=n,r}}]),e}(),Zi=function(e){return function(t){t({type:"[MONETIZATION] change ad status",payload:e})}},Xi=function(e){return function(t){t({type:"[COMMON] set pending video status",payload:{pendingStatusObject:{type:e,value:""}}})}},Ji=function(e){return function(t){t({type:"[MONETIZATION] change loading ad status",payload:e})}},Qi=function(e){return function(t){t({type:"[MONETIZATION] update ad muted",payload:e})}},eo=function(e){return function(t){t({type:"[MONETIZATION] change ad volume",payload:e})}},to=function e(t,n,r,i,o){var a=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"IMAAdManager",void 0),f()(this,"adsLoader",void 0),f()(this,"adDisplayContainer",void 0),f()(this,"adVideoElement",void 0),f()(this,"videoPlayerElement",void 0),f()(this,"adContainerElement",void 0),f()(this,"anchorStatusStoreSubscriber",void 0),f()(this,"totalAdRequestMadeAmount",0),f()(this,"registerForWindowResize",function(){var e=zn(a.onResize.bind(a),80);window.addEventListener("resize",e)}),f()(this,"initMutationObserver",function(e){new MutationObserver(a.onResize).observe(e,{attributes:!0,childList:!1,subtree:!1})}),f()(this,"loadNewAd",function(e,t){var n=a.store.dispatch;a.clearOldAdManagerIfExist();var r=a.createAdRequest(e);try{a.validateAdRequestCorrectness(r),a.adsLoader.requestAds(r),function(e,t){return function(n){n({type:"[MONETIZATION] change ad tag",payload:{adTag:e,adUnit:t}})}}(e,t)(n),Zi("requested")(n),a.totalAdRequestMadeAmount+=1}catch(i){a.onAdError(a.getLoadingError(r))}}),f()(this,"playAd",function(){try{a.IMAAdManager.init(a.videoPlayerElement.clientWidth,a.videoPlayerElement.clientHeight,google.ima.ViewMode.NORMAL);try{a.IMAAdManager.start()}catch(e){return!1}return!0}catch(t){return a.onAdError(a.getPlayAdError("ad manager start error")),!1}}),f()(this,"clearOldAdManagerIfExist",function(){Un(a.IMAAdManager)||(a.IMAAdManager.destroy(),a.IMAAdManager=null)}),f()(this,"createAdLoader",function(e,t){var n=bi.vpaidMode(e);a.adsLoader=new google.ima.AdsLoader(t),a.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),a.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode[n]),a.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,a.onIMAAdsManagerLoaded.bind(a),!1,a),a.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a.onAdError.bind(a),!1,a)}),f()(this,"createAdRequest",function(e){var t=a.store.getState,n=gn.muted(t()),r=bi.adRequestTimeout(t());return Yi.generateAdRequest(e,n,r)}),f()(this,"validateAdRequestCorrectness",function(e){e&&e.adTagUrl&&decodeURIComponent(e.adTagUrl.replace(/\+/g," "))}),f()(this,"getLoadingError",function(e){var t=function(){return"bad ad request ".concat(JSON.stringify(e))};return{getError:function(){return{getMessage:t}}}}),f()(this,"getPlayAdError",function(e){var t=function(){return"play ad error: ".concat(JSON.stringify(e))};return{getError:function(){return{getMessage:t}}}}),f()(this,"setAdVolume",function(e){var t=a.store,n=t.getState,r=t.dispatch,i=gn.volume(n());Bn()||gn.muted(n())?(e.setVolume(0),Qi(!0)(r)):(e.setVolume(gn.volume(n())),eo(i)(r),Qi(!1)(r))}),f()(this,"createIMAAdManager",function(t){a.IMAAdManager=t.getAdsManager(a.adVideoElement,e.getAdsRenderingSettings()),a.setAdVolume(a.IMAAdManager)}),f()(this,"registerToAdManagerEvents",function(){a.IMAAdManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a.onAdError),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,a.onContentPauseRequested),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,a.onContentResumeRequested),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.STARTED,a.onAdStarted),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION,a.onAdImpression),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,a.onAdSkipped),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,a.onAdCompleted),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.PAUSED,a.onAdPaused),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.RESUMED,a.onAdStarted),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.AD_PROGRESS,a.onAdProgressChanged),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,a.onVolumeChanged),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED,a.onAdVolumeMutedChanged),a.IMAAdManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,a.onAdCompleted)}),f()(this,"onIMAAdsManagerLoaded",function(e){var t=a.store.dispatch;a.createIMAAdManager(e),a.registerToAdManagerEvents(),Zi("loaded")(t)}),f()(this,"onAdError",function(e){var t=a.store.dispatch;!function(e){return function(t){t({type:"[MONETIZATION] change ad error",payload:e})}}(e.getError().getMessage())(t),Ji(!1),a.continuePlayingContent()}),f()(this,"onAdImpression",function(e){var t=a.store.dispatch,n=!e.getAd().g.vpaid;a.setPodInfo(e),function(e){e({type:"[MONETIZATION] increase ad impression counter"})}(t),function(e){return function(t){t({type:"[MONETIZATION] update is vast ad",payload:e})}}(n)(t)}),f()(this,"onVolumeChanged",function(e){var t=a.store.dispatch;eo(e.target.getVolume())(t)}),f()(this,"onAdVolumeMutedChanged",function(e){var t=a.store.dispatch;0===e.target.getVolume()?Qi(!0)(t):Qi(!1)(t)}),f()(this,"continuePlayingContent",function(){var e=a.store,t=e.getState,n=e.dispatch,r=hn.videoTagStatus(t());Xi("idle"===r?"play":"resume")(n)}),f()(this,"stopPlayingContent",function(){var e=a.store.dispatch;Xi("pause")(e)}),f()(this,"onContentPauseRequested",function(){a.stopPlayingContent()}),f()(this,"onContentResumeRequested",function(){a.continuePlayingContent()}),f()(this,"onAdPaused",function(){var e=a.store.dispatch;Zi("paused")(e)}),f()(this,"setPodInfo",function(e){var t=e&&e.getAd()&&e.getAd().getAdPodInfo();if(!Un(t)){var n=a.store.dispatch;!function(e,t){return function(n){n({type:"[MONETIZATION] change pod info",payload:{slotNumber:e,podNumber:t}})}}(t.getAdPosition(),a.totalAdRequestMadeAmount)(n)}}),f()(this,"onAdStarted",function(){var e=a.store,t=e.dispatch,n=e.getState,r=gn.volume(n());Zi("playing")(t),0===a.IMAAdManager.getVolume()?a.IMAAdManager.setVolume(0):window.shouldPlayAdRule||a.IMAAdManager.setVolume(r),a.onResize()}),f()(this,"onAdCompleted",function(){var e=a.store.dispatch;Zi("completed")(e)}),f()(this,"onAdSkipped",function(){var e=a.store.dispatch;Zi("skipped")(e)}),f()(this,"onResize",function(){Un(a.IMAAdManager)||(a.IMAAdManager.resize(a.videoPlayerElement.clientWidth,a.videoPlayerElement.clientHeight,google.ima.ViewMode.NORMAL),a.adContainerElement.style.height="".concat(a.videoPlayerElement.clientHeight,"px"))}),f()(this,"onAdProgressChanged",function(e){var t,n,r=a.store,i=r.dispatch,o=r.getState,s=e.getAdData().currentTime,u=e.getAdData().duration,c=_i.adDuration(o());(t=s,function(e){e({type:"[MONETIZATION] change ad current time",payload:t})})(i),c!==u&&(n=u,function(e){e({type:"[MONETIZATION] change ad duration",payload:n})})(i)}),f()(this,"onAnchorStatusChanged",function(){var e=a.store.getState;"processing"!==Pr(e())&&a.onResize()}),f()(this,"changeAdVolume",function(e){Un(a.IMAAdManager)||a.IMAAdManager.setVolume(e)}),f()(this,"changeAdMuted",function(e,t){Un(a.IMAAdManager)||(t?a.IMAAdManager.setVolume(0):a.IMAAdManager.setVolume(e))}),f()(this,"changeAdStatus",function(e){Un(a.IMAAdManager)||("playing"===e&&a.IMAAdManager.resume(),"paused"===e&&a.IMAAdManager.pause())});var s=t.getState;this.store=t,this.adVideoElement=r,this.videoPlayerElement=i,this.adContainerElement=n,this.adDisplayContainer=new google.ima.AdDisplayContainer(n,r),this.createAdLoader(s(),this.adDisplayContainer),this.adDisplayContainer.initialize(),this.anchorStatusStoreSubscriber=new ji(t,e.getAnchorDependencies,this.onAnchorStatusChanged.bind(this)),this.registerForWindowResize(),this.initMutationObserver(o)};f()(to,"getAdsRenderingSettings",function(){var e=new google.ima.AdsRenderingSettings;return e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!1,e.uiElements=[],e.loadVideoTimeout=15e3,e}),f()(to,"getAnchorDependencies",function(e){return[Pr(e)]});var no=function e(t,n,r,i,o,a){var s=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"playerId",void 0),f()(this,"adScheduler",void 0),f()(this,"adHandler",void 0),f()(this,"imaLoadingStatusSubscriber",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"adContainer",void 0),f()(this,"adVideoElement",void 0),f()(this,"videoPlayerElement",void 0),f()(this,"playerContainer",void 0),f()(this,"pendingMidrollAdPlay",!1),f()(this,"pendingPrerollAdPlay",!1),f()(this,"pendingPrerollAdTag",null),f()(this,"pendingMidrollNumber",null),f()(this,"pendingAdStatusStoreSubscriber",void 0),f()(this,"adMutedStoreSubscriber",void 0),f()(this,"adVolumeStoreSubscriber",void 0),f()(this,"onMidrollAdOpportunity",function(){var e=s.store,t=e.dispatch,n=e.getState,r=_i.adStatus(n()),i=bi.continuePlayingWhileWaitingForAd(n());"loaded"===r?s.playAd(!0):"requested"===r&&(s.pendingMidrollAdPlay=!0,i||(Xi("pause")(t),Ji(!0)(t))),function(e){e({type:"[MONETIZATION] increase ad Opportunity counter"})}(t)}),f()(this,"onPrerollAdOpportunity",function(e){var t=s.store,n=t.getState,r=t.dispatch,i=Fi.loadingImaStatus(n());Un(s.adHandler)?"loading"!==i&&""!==i||(Ji(!0)(r),s.pendingPrerollAdPlay=!0,s.pendingPrerollAdTag=e):(s.pendingPrerollAdPlay=!0,Ji(!0)(r),s.adHandler.loadNewAd(e,"preroll"))}),f()(this,"onPreMidrollAdOpportunity",function(e,t){Un(s.adHandler)||(e.currentTime>=e.midrollTime&&(s.pendingMidrollAdPlay=!0),s.pendingMidrollNumber=e.midrollNumber,s.adHandler.loadNewAd(t,"midroll"))}),f()(this,"hasPendingAd",function(){return s.hasPendingMidrollAdPlay()||s.hasPendingPrerollAdPlay()}),f()(this,"onAdStatusChanged",function(e){var t=s.store.dispatch,n=_i.adStatus(e);"completed"===n&&Ji(!1)(t);var r=bi.continuePlayingWhileWaitingForAd(e),i=_i.loadingAd(e);"playing"!==n&&"error"!==n||r||!i||Ji(!1)(t),s.hasPendingAd()&&"loaded"===n?s.playAd(s.hasPendingMidrollAdPlay()):s.hasPendingAd()&&"error"===n?(Ji(!1),s.clearPendingMidroll(),s.clearPendingPreroll()):Hi(n)||(Ji(!1),function(e){e({type:"[MONETIZATION] clear ad data"})}(t))}),f()(this,"clearPendingMidroll",function(){s.pendingMidrollNumber=null,s.pendingMidrollAdPlay=!1}),f()(this,"clearPendingPreroll",function(){s.pendingPrerollAdPlay=!1,s.pendingPrerollAdTag=null}),f()(this,"onVideoTagStatusChanged",function(e){"complete"===hn.videoTagStatus(e)&&function(e){e({type:"[MONETIZATION] clear played midrolls"})}(s.store.dispatch)}),f()(this,"hasPendingMidrollAdPlay",function(){return s.pendingMidrollAdPlay}),f()(this,"hasPendingPrerollAdPlay",function(){return s.pendingPrerollAdPlay}),f()(this,"playAd",function(e){var t,n=s.store.dispatch,r=s.adHandler.playAd();e?((t=s.pendingMidrollNumber,function(e){e({type:"[MONETIZATION] add played midroll number",payload:t})})(n),s.clearPendingMidroll()):s.clearPendingPreroll(),r||(Ji(!1)(n),Xi("resume")(n))}),f()(this,"onIMALoadingStatusChanged",function(t){e.canUseIMA(t)&&(Un(s.adHandler)&&(s.adHandler=new to(s.store,s.adContainer,s.adVideoElement,s.videoPlayerElement,s.playerContainer)),s.hasPendingPrerollAdPlay()&&s.adHandler.loadNewAd(s.pendingPrerollAdTag,"preroll"))}),f()(this,"onPendingAdStatusChanged",function(){var e=s.store.getState,t=_i.pendingAdStatus(e()).type;switch(t){case"paused":case"playing":s.adHandler.changeAdStatus(t)}}),f()(this,"onAdMutedChanged",function(){var e=s.store.getState,t=_i.adMuted(e()),n=gn.volume(e());s.adHandler.changeAdMuted(n,t)}),f()(this,"onAdVolumeChanged",function(){var e=s.store.getState,t=_i.adVolume(e());s.adHandler.changeAdVolume(t)});var u=t.getState;this.store=t,this.playerId=n,this.adContainer=r,this.adVideoElement=i,this.videoPlayerElement=o,this.playerContainer=a,this.adScheduler=new Ki(t,this),this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this)),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this)),e.canUseIMA(u())?this.adHandler=new to(t,r,i,o,a):this.imaLoadingStatusSubscriber=new ji(t,e.getIMALoadingStatusDependencies,this.onIMALoadingStatusChanged.bind(this)),this.pendingAdStatusStoreSubscriber=new ji(t,e.getPendingAdStatusDependencies,this.onPendingAdStatusChanged.bind(this)),this.adMutedStoreSubscriber=new ji(t,e.getAdMutedDependencies,this.onAdMutedChanged.bind(this)),this.adVolumeStoreSubscriber=new ji(t,e.getAdVolumeDependencies,this.onAdVolumeChanged.bind(this))};f()(no,"getAdStatusDependencies",function(e){return[_i.adStatus(e)]}),f()(no,"getVideoTagStatusDependencies",function(e){return[hn.videoTagStatus(e)]}),f()(no,"getIMALoadingStatusDependencies",function(e){return[Fi.loadingImaStatus(e)]}),f()(no,"canUseIMA",function(e){return"success"===Fi.loadingImaStatus(e)}),f()(no,"getPendingAdStatusDependencies",function(e){return[_i.pendingAdStatus(e)]}),f()(no,"getAdMutedDependencies",function(e){return[_i.adMuted(e)]}),f()(no,"getAdVolumeDependencies",function(e){return[_i.adVolume(e)]});var ro=function(e,t){!function(e,t){var n=document.getElementById(vn(t));B(b(Li,{store:e,playerId:t}),n)}(e,t);var n=function(e){var t=Ri(e);return document.getElementById(t)}(t),r=function(e){var t=Bn()?Di(e):En(e);return document.getElementById(t)}(t),i=function(e){var t=En(e);return document.getElementById(t)}(t),o=function(e){var t=bn(e);return document.getElementById(t)}(t);return new no(e,t,n,r,i,o)},io=n(4),oo=n.n(io),ao=n(7),so=n.n(ao),uo=function(){function e(){Ai()(this,e),f()(this,"duration",void 0),f()(this,"position",void 0),f()(this,"previousPosition",void 0),f()(this,"loadTime",void 0),f()(this,"adOrder",void 0),f()(this,"adType",void 0),f()(this,"adDuration",void 0),f()(this,"errorMessage",void 0),f()(this,"adPodNumber",void 0),f()(this,"adSlotNumber",void 0)}return Vi()(e,[{key:"setDuration",value:function(e){return this.duration=e,this}},{key:"setPosition",value:function(e){return this.position=e,this}},{key:"setPreviousPosition",value:function(e){return this.previousPosition=e,this}},{key:"setLoadTime",value:function(e){return this.loadTime=e,this}},{key:"setAdOrder",value:function(e){return this.adOrder=e,this}},{key:"setAdType",value:function(e){return this.adType=e,this}},{key:"setAdDuration",value:function(e){return this.adDuration=e,this}},{key:"setErrorMessage",value:function(e){return this.errorMessage=e,this}},{key:"setAdPodNumber",value:function(e){return this.adPodNumber=e,this}},{key:"setAdSlotNumber",value:function(e){return this.adSlotNumber=e,this}},{key:"build",value:function(){var e=[];return jn(this.position)||e.push("video current position=".concat(Hn(this.position),"sec")),jn(this.duration)||e.push("video duration time=".concat(Hn(this.duration),"sec")),jn(this.loadTime)||e.push("video load time=".concat(this.loadTime,"milliseconds")),jn(this.previousPosition)||e.push("previous position=".concat(Hn(this.previousPosition),"sec")),jn(this.adOrder)||e.push("ad order=".concat(this.adOrder)),jn(this.adType)||e.push("ad type=".concat(this.adType)),jn(this.adDuration)||e.push("ad duration=".concat(Hn(Number(this.adDuration)),"sec")),jn(this.adPodNumber)||e.push("pod number=".concat(this.adPodNumber)),jn(this.adSlotNumber)||e.push("slot number=".concat(this.adSlotNumber)),jn(this.errorMessage)||e.push("error message=".concat(this.errorMessage)),e.join(";")}}]),e}(),co="mmPlus GTM data ready to GA",lo="mmPlus GTM event to GA",po={EMBED:"vplayer video player embed",FIRST_PLAY:"vplayer video first play",COMPLETION_25_PERCENTAGE:"vplayer video 25% complete",COMPLETION_50_PERCENTAGE:"vplayer video 50% complete",COMPLETION_75_PERCENTAGE:"vplayer video 75% complete",COMPLETION_90_PERCENTAGE:"vplayer video 90% complete",AD_BLOCK:"vplayer video ad block",AD_REQUEST:"vplayer video ad request",AD_IMPRESSION:"vplayer video ad impression",AD_ERROR:"vplayer video ad error",AD_VIEWABLE_IMPRESSION:"vplayer video ad viewable impression",AD_COMPLETE:"vplayer video ad complete",AD_SKIP:"vplayer video ad skip",AD_PAUSE:"vplayer video ad pause",VIDEO_COMPLETE:"vplayer video complete",FULLSCREEN_ON:"vplayer video fullscreen on",FULLSCREEN_OFF:"vplayer video fullscreen off",SEEK:"vplayer video position seeked",VIDEO_MUTE:"vplayer video mute",VIDEO_UNMUTE:"vplayer video unmute",CONTROLS_MUTE_OR_UNMUTE:"controls Mute/Unmute button click",CONTROLS_PLAY_OR_PAUSE:"controls Play/Pause button click",CONTROLS_FULLSCREEN:"controls Fullscreen button click",CONTROLS_NEXT_VIDEO:"controls Next Video button click",CONTROLS_SETTINGS:"controls Settings button click",MINI_PLAYER_CLOSE:"vplayer video miniplayer close",LOADING_CONTENT_ERROR:"vplayer video player error",PLAYER_ERROR:"vplayer general player error",CONTENT_VIEWABLE_IMPRESSION:"vplayer video content viewable impression"},fo="loading ad provider library failed",ho="mid",yo=function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsEventsCallbacks",void 0),f()(this,"videoMuteSubscriber",void 0),f()(this,"videoFullscreenSubscriber",void 0),f()(this,"onMuteStateChanged",function(e){var t=gn.muted(e),n=hn.currentVideoTimeFragment(e),i=(new uo).setPosition(n).build(),o=t?po.VIDEO_MUTE:po.VIDEO_UNMUTE;r.analyticsEventsCallbacks.onEvent(o,i)}),f()(this,"onFullsScreenStateChanged",function(e){var t=gn.fullscreen(e),n=hn.currentVideoTimeFragment(e),i=(new uo).setPosition(n).build(),o=t?po.FULLSCREEN_ON:po.FULLSCREEN_OFF;r.analyticsEventsCallbacks.onEvent(o,i)}),this.store=t,this.analyticsEventsCallbacks=n,this.videoMuteSubscriber=new ji(t,e.getVideoMuteDependencies,this.onMuteStateChanged.bind(this)),this.videoFullscreenSubscriber=new ji(t,e.getVideoFullscreenDependencies,this.onFullsScreenStateChanged.bind(this))};f()(yo,"getVideoMuteDependencies",function(e){return[gn.muted(e)]}),f()(yo,"getVideoFullscreenDependencies",function(e){return[gn.fullscreen(e)]});var go=n(3),vo=n.n(go),mo=n(8),bo=n.n(mo),Oo=n(9),_o=n.n(Oo),So=n(5),Eo=n.n(So);n(20);var wo={root:null,threshold:.5,rootMargin:"0px"},Po=function(){function e(t,n,r){Ai()(this,e),f()(this,"store",void 0),f()(this,"observableElement",void 0),f()(this,"callback",void 0),f()(this,"isViewableTimeoutHandler",null),f()(this,"observer",void 0),f()(this,"didReport",!1),this.store=t,this.observableElement=n,this.callback=r,this.observer=new IntersectionObserver(this.onIntersecting.bind(this),wo)}return Vi()(e,[{key:"unobserve",value:function(){this.observer.unobserve(this.observableElement),this.clearIsViewableTimeout()}},{key:"observe",value:function(){this.observer.observe(this.observableElement)}},{key:"onPlay",value:function(){this.didReport||this.observe()}},{key:"onPause",value:function(){this.unobserve()}},{key:"onComplete",value:function(){this.didReport=!1,this.unobserve()}},{key:"onIntersecting",value:function(e){var t=e[0].isIntersecting;null===this.isViewableTimeoutHandler&&t?this.isViewableTimeoutHandler=setTimeout(this.notifyViewable.bind(this),2e3):this.clearIsViewableTimeout()}},{key:"clearIsViewableTimeout",value:function(){clearTimeout(this.isViewableTimeoutHandler),this.isViewableTimeoutHandler=null}},{key:"notifyViewable",value:function(){var e=this.store.getState;this.didReport=!0,this.callback(e()),this.unobserve()}}]),e}();function To(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}var Ao=function(e){bo()(n,e);var t=To(n);function n(e,r,i){var o;return Ai()(this,n),o=t.call(this,e,r,i),f()(vo()(o),"videoTagStatusSubscriber",void 0),f()(vo()(o),"onVideoTagStatusChanged",function(e){var t=hn.videoTagStatus(e);"playing"===t?o.onPlay():"paused"===t||"seeking"===t?o.onPause():"complete"!==t&&"error"!==t||o.onComplete()}),o.videoTagStatusSubscriber=new ji(e,n.getVideoTagStatusDependencies,o.onVideoTagStatusChanged.bind(vo()(o))),o}return n}(Po);f()(Ao,"getVideoTagStatusDependencies",function(e){return[hn.videoTagStatus(e)]});var Co=function e(t,n,r,i){var o=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"analyticsEventsCallbacks",void 0),f()(this,"videoViewableImpressionObserver",void 0),f()(this,"firstPlayReportedIndex",-1),f()(this,"loadingStartTime",-1),f()(this,"registerVideoCallbacksIdNeeded",function(e,t){"none"!==hn.playbackMethod(e)&&document.getElementById(En(t)).addEventListener("loadstart",o.onLoadStart.bind(o),{once:!0})}),f()(this,"onLoadStart",function(){o.loadingStartTime=Date.now()}),f()(this,"getFirstPlayLabel",function(e){var t=hn.currentVideoTimeFragment(e),n=hn.currentVideoDuration(e),r=-1===o.loadingStartTime?-1:Date.now()-o.loadingStartTime;return(new uo).setPosition(t).setLoadTime(r).setDuration(n).build()}),f()(this,"onVideoTagStatusChanged",function(e){var t=hn.videoTagStatus(e),n=Cn.activeVideoIndex(e);if(!(n===o.firstPlayReportedIndex)&&"playing"===t){o.firstPlayReportedIndex=n;var r=o.getFirstPlayLabel(e);o.analyticsEventsCallbacks.onEvent(po.FIRST_PLAY,r)}}),f()(this,"reportVideoViewableImpression",function(e){var t=hn.currentVideoTimeFragment(e),n=(new uo).setPosition(t).build();o.analyticsEventsCallbacks.onEvent(po.CONTENT_VIEWABLE_IMPRESSION,n)}),this.store=t,this.analyticsEventsCallbacks=n,this.videoViewableImpressionObserver=new Ao(t,r,this.reportVideoViewableImpression.bind(this)),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagDependencies,this.onVideoTagStatusChanged.bind(this)),this.registerVideoCallbacksIdNeeded(t.getState(),i)};f()(Co,"getVideoTagDependencies",function(e){return[hn.videoTagStatus(e)]});var Ro=[25,50,75,90],Do=function(){function e(){Ai()(this,e),f()(this,"lastReportedPercentage",void 0),this.lastReportedPercentage=0}return Vi()(e,[{key:"clear",value:function(){this.lastReportedPercentage=0}},{key:"updateConsumption",value:function(e,t){var n=e.position,r=e.duration,i=Math.round(n/r*100);i>this.lastReportedPercentage&&this.notifyReportableConsumption(e,i,t)}},{key:"notifyReportableConsumption",value:function(e,t,n){var r=this;Ro.filter(function(e){return e>r.lastReportedPercentage&&e<=t}).forEach(function(t){return n(t,e.position,e.duration)}),this.lastReportedPercentage=t}}]),e}(),Mo=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsEventsCallbacks",void 0),f()(this,"videoTimeSubscriber",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"videoDataStoreSubscriber",void 0),f()(this,"percentageConsumption",void 0),f()(this,"previousVideoTagStatus",void 0),f()(this,"lastPlayedPosition",void 0),f()(this,"getVideoPercentageAction",function(e){switch(e){case 25:return po.COMPLETION_25_PERCENTAGE;case 50:return po.COMPLETION_50_PERCENTAGE;case 75:return po.COMPLETION_75_PERCENTAGE;case 90:return po.COMPLETION_90_PERCENTAGE;default:return""}}),f()(this,"onVideoTimeChanged",function(e){var t=hn.currentVideoDuration(e),n=hn.currentVideoTimeFragment(e);r.percentageConsumption.updateConsumption({position:n,duration:t},r.onVideoTimeReport.bind(r))}),f()(this,"onVideoTagStatusChanged",function(e){var t=hn.videoTagStatus(e),n=hn.currentVideoTimeFragment(e),i=hn.currentVideoDuration(e);if("seeking"===r.previousVideoTagStatus){var o=(new uo).setPosition(n).setPreviousPosition(r.lastPlayedPosition).build();r.analyticsEventsCallbacks.onEvent(po.SEEK,o)}else"seeking"===t&&(r.lastPlayedPosition=n);r.previousVideoTagStatus=t,"complete"===t&&r.onComplete(i)}),f()(this,"onVideoDataChanged",function(){r.percentageConsumption.clear()}),f()(this,"onComplete",function(e){var t=(new uo).setDuration(e).build();r.analyticsEventsCallbacks.onEvent(po.VIDEO_COMPLETE,t),r.percentageConsumption.clear()}),this.store=t,this.analyticsEventsCallbacks=n,this.videoTimeSubscriber=new ji(t,e.getVideoTimeDependencies,this.onVideoTimeChanged.bind(this)),this.videoTagStatusSubscriber=new ji(t,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this)),this.videoDataStoreSubscriber=new ji(t,e.getVideoDataDependencies,this.onVideoDataChanged.bind(this)),this.percentageConsumption=new Do}return Vi()(e,[{key:"onVideoTimeReport",value:function(e,t,n){var r=this.getVideoPercentageAction(e),i=(new uo).setPosition(t).setDuration(n).build();this.analyticsEventsCallbacks.onEvent(r,i)}}]),e}();f()(Mo,"getVideoTimeDependencies",function(e){return[hn.currentVideoTime(e)]}),f()(Mo,"getVideoTagStatusDependencies",function(e){return[hn.videoTagStatus(e)]}),f()(Mo,"getVideoDataDependencies",function(e){return[Cn.videoData(e)]});var Io=function e(t,n,r,i){Ai()(this,e),f()(this,"store",void 0),f()(this,"timeEvents",void 0),f()(this,"videoSettingsEvents",void 0),f()(this,"videoTagStatusEvents",void 0),this.store=t,this.timeEvents=new Mo(t,n),this.videoSettingsEvents=new yo(t,n),this.videoTagStatusEvents=new Co(t,n,r,i)},ko=n(13),No=n.n(ko),Lo=function(){function e(){Ai()(this,e),f()(this,"batteryLevel","N/A"),f()(this,"batteryChargingState",!1),f()(this,"connectionSpeed","N/A"),f()(this,"connectionType","N/A"),this.setConnectionParams()}return Vi()(e,[{key:"setConnectionParams",value:function(){var e=this,t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;t&&(this.updateConnectionParams(t.effectiveType,t.downlink),t.addEventListener("change",function(){return e.updateConnectionParams(t.effectiveType,t.downlink)}))}},{key:"updateConnectionParams",value:function(e,t){this.connectionType=e,this.connectionSpeed=t}},{key:"attach",value:function(){var e=so()(oo.a.mark(function e(){var t,n=this;return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!navigator.getBattery){e.next=7;break}return e.next=3,navigator.getBattery();case 3:t=e.sent,this.updateBatteryParams(t.level,t.charging),t.ondischargingtimechange=function(e){return n.updateBatteryParams(e.target.level,e.target.charging)},t.onchargingtimechange=function(e){return n.updateBatteryParams(e.target.level,e.target.charging)};case 7:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"updateBatteryParams",value:function(e,t){this.batteryLevel="".concat(100*e),this.batteryChargingState=t}},{key:"getBatteryLevel",value:function(){return this.batteryLevel}},{key:"getBatteryChargingState",value:function(){return this.batteryChargingState}},{key:"getConnectionSpeed",value:function(){return this.connectionSpeed}},{key:"getConnectionType",value:function(){return this.connectionType}}]),e}(),xo=function(){"undefined"===typeof window["$$mm-analytics"]&&(window["$$mm-analytics"]={});var e=window;return"undefined"===typeof e["$$mm-analytics"].firstEmbed&&(e["$$mm-analytics"].firstEmbed=Date.now()),e["$$mm-analytics"].firstEmbed},Vo=function(){return"time in process=".concat(Date.now()-xo()," milliseconds")},jo=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"videoTag",null),f()(this,"deviceParams",void 0),f()(this,"trafficDomain",void 0),f()(this,"adTimeoutDuration",void 0),f()(this,"playbackMethod",void 0),f()(this,"configName",void 0),f()(this,"playerUniqKey",void 0),f()(this,"attach",so()(oo.a.mark(function e(){return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.deviceParams=new Lo,e.next=3,r.deviceParams.attach();case 3:case"end":return e.stop()}},e)}))),f()(this,"translatePlaybackMethod",function(e){switch(e){case"lazyplay":return"scroll to play";case"autoplay":return"auto play";case"autoplay_when_viewable":return"auto play when viewable";case"none":return"click to play";default:return"none"}}),f()(this,"getAdTimeout",function(e){return e?"".concat(qn(e)," sec"):"none"}),f()(this,"getVideoTag",function(){return null===r.videoTag&&(r.videoTag=document.getElementById(En(r.playerUniqKey))),r.videoTag}),f()(this,"getUnitSize",function(){var e=r.getVideoTag();return null!==e?"".concat(e.clientWidth,":").concat(e.clientHeight):"none"}),f()(this,"getBatteryCharging",function(){return r.deviceParams.getBatteryChargingState()?"yes":"no"});var i=t.publisher_contribution,o=t.monetization,a=t.playback_method,s=t.config_name;this.playerUniqKey=n,this.trafficDomain=i,this.adTimeoutDuration=o&&o.ad_request_timeout?this.getAdTimeout(o.ad_request_timeout):"none",this.playbackMethod=this.translatePlaybackMethod(a),this.configName=s}return Vi()(e,[{key:"getDimensions",value:function(){return{mmPlusConfigName:this.configName,mmPlusPlaybackMethod:this.playbackMethod,mmPlusPrePvTimeInProcess:Vo(),mmPlusTrafficDomain:this.trafficDomain,mmPlusUnitSize:this.getUnitSize(),mmPlusUnitType:"video",mmPlusUserBatteryCharging:this.getBatteryCharging(),mmPlusUserBatteryLevel:this.deviceParams.getBatteryLevel(),mmPlusUserConnectionSpeed:this.deviceParams.getConnectionSpeed(),mmPlusUserConnectionType:this.deviceParams.getConnectionType(),mmPlusAdTimeoutDuration:this.adTimeoutDuration}}}]),e}();function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bo(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}var Ho=function(e){bo()(n,e);var t=Bo(n);function n(e,r){var i,o;return Ai()(this,n),o=t.call(this,e,r),f()(vo()(o),"domain",void 0),f()(vo()(o),"getDimensions",function(){return Fo(Fo({},No()((i=vo()(o),Eo()(n.prototype)),"getDimensions",i).call(i)),{},{mmPlusDomain:o.domain})}),o.domain=window.location.hostname,o}return n}(jo);function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zo(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}var Go=function(e){bo()(n,e);var t=zo(n);function n(e,r,i){var o;Ai()(this,n),o=t.call(this,i,r),f()(vo()(o),"store",void 0),f()(vo()(o),"playerUniqId",void 0),f()(vo()(o),"autoPlay",void 0),f()(vo()(o),"streamType",void 0),f()(vo()(o),"gaProperty",void 0),f()(vo()(o),"booleanToYesOrNo",function(e){return e?"yes":"no"}),f()(vo()(o),"getAspectRatio",function(e,t){var r=n.getCommonDenominator(e,t),i=t/r;return"".concat(e/r,":").concat(i)}),f()(vo()(o),"getUnitRadio",function(){var e=o.getVideoTag();if(null!==e){var t=e.clientWidth,n=e.clientHeight;return o.getAspectRatio(t,n)}return"none"}),f()(vo()(o),"getVideoDuration",function(e){var t=Dn.duration(e);return t?"".concat(t," sec"):"none"});var a=i.playback_method,s=i.content_type,u=i.ga_property;return o.store=e,o.playerUniqId=r,o.autoPlay=o.booleanToYesOrNo("none"!==a),o.streamType=s,o.gaProperty=u||o.trafficDomain,o}return Vi()(n,[{key:"getDimensions",value:function(){var e=this.store.getState;return Wo(Wo({},No()(Eo()(n.prototype),"getDimensions",this).call(this)),{},{mmPlusVideoPlayerId:this.playerUniqId,mmPlusUnitId:Dn.mediaId(e())||"none",mmPlusUnitTitle:Dn.title(e())||"none",mmPlusVideoAutoplay:this.autoPlay,mmPlusVideoDuration:this.getVideoDuration(e()),mmPlusVideoStreamType:this.streamType,mmPlusVideoPlaylistId:Cn.mediaId(e())||"none",mmPlusVideoMuted:this.booleanToYesOrNo(gn.muted(e())),mmPlusUnitTags:Dn.tags(e()).toString()||"none",mmPlusUnitOrderNumber:Cn.activeVideoIndex(e()),mmPlusTrafficReferrer:document.referrer,mmPlusUnitProvider:Dn.provider(e())||"none",mmPlusUnitCreator:Dn.creator(e())||"none",mmPlusUnitExternalId:Dn.externalId(e())||"none",mmPlusUnitRatio:this.getUnitRadio(),mmPlusGaProperty:this.gaProperty,mmPlusVideoPlayerType:"vplayer",mmPlusVideoThumbnailsOn:"none",mmPlusVideoClosedCaptionsOn:"none",mmPlusVideoRecommendationsVisible:"none"})}}]),n}(jo);function $o(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Eo()(e);if(t){var i=Eo()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _o()(this,n)}}f()(Go,"getCommonDenominator",function(e,t){for(var n=e,r=t;r;){var i=r;r=n%r,n=i}return n});var Ko=function(e){bo()(n,e);var t=$o(n);function n(e,r,i){var o;return Ai()(this,n),o=t.call(this,e,r,i),f()(vo()(o),"adStatusSubscriber",void 0),f()(vo()(o),"onAdStatusChanged",function(e){var t=_i.adStatus(e);"playing"===t?o.onPlay():"paused"===t?o.onPause():Hi(t)||o.onComplete()}),o.adStatusSubscriber=new ji(e,n.getAdStatusDependencies,o.onAdStatusChanged.bind(vo()(o))),o}return n}(Po);f()(Ko,"getAdStatusDependencies",function(e){return[_i.adStatus(e)]});var Yo=function e(t,n,r){var i=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsCallback",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"adImpressionSubscriber",void 0),f()(this,"adProviderLoadingStatusSubscriber",void 0),f()(this,"adViewableImpressionObserver",void 0),f()(this,"initAdBlockChecker",function(t){""===Fi.loadingImaStatus(t.getState())?i.adProviderLoadingStatusSubscriber=new ji(t,e.getAdProviderLoadingStatusDependencies,i.onAdProviderLoadingStatusChanged.bind(i)):i.onAdProviderLoadingStatusChanged(t.getState())}),f()(this,"getAdOrderFromPlayedMidrolls",function(e){return e&&e.length>0?e[e.length-1]:0}),f()(this,"getFullAdLabel",function(e){var t=hn.currentVideoTimeFragment(e),n=_i.adDuration(e),r=_i.playedMidrolls(e),o=_i.slotNumber(e),a=_i.podNumber(e),s=i.getAdOrderFromPlayedMidrolls(r);return(new uo).setAdType(ho).setPosition(t).setAdDuration(n).setAdOrder(s).setAdSlotNumber(o).setAdPodNumber(a).build()}),f()(this,"reportAdBlock",function(){i.analyticsCallback.onEvent(po.AD_BLOCK)}),f()(this,"reportError",function(e){var t=(new uo).setErrorMessage(e).build();i.analyticsCallback.onEvent(po.PLAYER_ERROR,t)}),f()(this,"reportAdRequested",function(e){var t=hn.currentVideoTimeFragment(e),n=_i.playedMidrolls(e),r=i.getAdOrderFromPlayedMidrolls(n),o=(new uo).setPosition(t).setAdOrder(r).build();i.analyticsCallback.onEvent(po.AD_REQUEST,o)}),f()(this,"reportAdImpression",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_IMPRESSION,t)}),f()(this,"reportAdError",function(e){var t=_i.adErrorMessage(e),n=_i.slotNumber(e),r=_i.podNumber(e),o=(new uo).setAdType(ho).setErrorMessage(t).setAdPodNumber(r).setAdSlotNumber(n).build();i.analyticsCallback.onEvent(po.AD_ERROR,o)}),f()(this,"reportAdComplete",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_COMPLETE,t)}),f()(this,"reportAdSkipped",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_SKIP,t)}),f()(this,"reportAdPaused",function(e){var t=i.getFullAdLabel(e);i.analyticsCallback.onEvent(po.AD_PAUSE,t)}),f()(this,"reportAdViewableImpression",function(e){var t=hn.currentVideoTimeFragment(e),n=_i.adDuration(e),r=_i.slotNumber(e),o=_i.podNumber(e),a=(new uo).setPosition(t).setAdType(ho).setAdDuration(n).setAdPodNumber(o).setAdSlotNumber(r).build();i.analyticsCallback.onEvent(po.AD_VIEWABLE_IMPRESSION,a)}),f()(this,"onAdStatusChanged",function(e){var t=_i.adStatus(e);"requested"===t&&i.reportAdRequested(e),"error"===t&&i.reportAdError(e),"completed"===t&&i.reportAdComplete(e),"skipped"===t&&i.reportAdSkipped(e),"paused"===t&&i.reportAdPaused(e)}),f()(this,"onAdProviderLoadingStatusChanged",function(e){var t=Fi.loadingImaStatus(e);"blocked"===t?i.reportAdBlock():"error"===t&&i.reportError(fo)}),f()(this,"onAdImpressionChanged",function(e){i.reportAdImpression(e)}),this.store=t,this.analyticsCallback=n,this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this)),this.adImpressionSubscriber=new ji(t,e.getAdImpressionDependencies,this.onAdImpressionChanged.bind(this)),this.adViewableImpressionObserver=new Ko(t,r,this.reportAdViewableImpression.bind(this)),this.initAdBlockChecker(t)};f()(Yo,"getAdProviderLoadingStatusDependencies",function(e){return[Fi.loadingImaStatus(e)]}),f()(Yo,"getAdStatusDependencies",function(e){return[_i.adStatus(e)]}),f()(Yo,"getAdImpressionDependencies",function(e){return[_i.adImpression(e)]});var Zo=pn.userInteraction,Xo=function(e){return Zo(e).userInteractionType},Jo=function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"analyticsCallbacks",void 0),f()(this,"userInteraction",void 0),f()(this,"getLabel",function(e){var t=hn.currentVideoTimeFragment(e);return(new uo).setPosition(t).build()}),f()(this,"reportMuteOrUnmute",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_MUTE_OR_UNMUTE,r.getLabel(e))}),f()(this,"reportFullscreen",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_FULLSCREEN,r.getLabel(e))}),f()(this,"reportPlayOrPause",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_PLAY_OR_PAUSE,r.getLabel(e))}),f()(this,"reportNextVideo",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_NEXT_VIDEO,r.getLabel(e))}),f()(this,"reportSettings",function(e){r.analyticsCallbacks.onEvent(po.CONTROLS_SETTINGS,r.getLabel(e))}),f()(this,"reportMiniPlayerClosed",function(e){r.analyticsCallbacks.onEvent(po.MINI_PLAYER_CLOSE,r.getLabel(e))}),f()(this,"onUserInteractionChanged",function(e){switch(Xo(e)){case"mute":case"unmute":r.reportMuteOrUnmute(e);break;case"fullscreen":r.reportFullscreen(e);break;case"play":case"pause":r.reportPlayOrPause(e);break;case"settings":r.reportSettings(e);break;case"nextVideo":r.reportNextVideo(e);break;case"closeMiniPlayer":r.reportMiniPlayerClosed(e)}}),this.store=t,this.analyticsCallbacks=n,this.userInteraction=new ji(t,e.getUserInteractionDependencies,this.onUserInteractionChanged.bind(this))};function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}f()(Jo,"getUserInteractionDependencies",function(e){return[Xo(e)]});var ta=function e(t,n,r,i){var o=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoEventsReporter",void 0),f()(this,"monetizationEventsReporter",void 0),f()(this,"userInteractionReporter",void 0),f()(this,"eventCustomDimensions",void 0),f()(this,"dataLayer",null),f()(this,"attach",function(){var e=so()(oo.a.mark(function e(t,n,r){return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.eventCustomDimensions=new Go(t,n,r),e.next=3,o.eventCustomDimensions.attach();case 3:return e.next=5,o.reportReady(t,n,r);case 5:o.reportEmbed();case 6:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}()),f()(this,"initDataLayer",function(){var e;try{e=$n(window.parent)}catch(t){e=$n(window)}o.dataLayer=window[e]}),f()(this,"reportReady",function(){var e=so()(oo.a.mark(function e(t,n,r){var i;return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=new Ho(r,n),e.next=3,i.attach();case 3:o.dataLayer.push(ea({event:co},i.getDimensions()));case 4:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}()),f()(this,"reportEmbed",function(){o.onEvent(po.EMBED)}),f()(this,"onEvent",function(e,t,n,r){var i=r||o.eventCustomDimensions.getDimensions(),a=n||lo;o.dataLayer.push(ea(ea({event:a,mmPlusGA_event_action:e,mmPlusGA_event_label:t,mmPlusGA_event_category:"MMVideo"},i),{},{time:Date.now()}))}),this.store=t,this.initDataLayer(),this.videoEventsReporter=new Io(t,this,i,n),this.monetizationEventsReporter=new Yo(t,this,i),window.monetizationEventsReporter=this.monetizationEventsReporter,this.userInteractionReporter=new Jo(t,this),this.attach(t,n,r)},na=pn.discovery,ra=function(e){return na(e).nextVideo},ia=n(51).version,oa=function e(){var t=this;Ai()(this,e),f()(this,"controlsLoaded",void 0),f()(this,"loadInternalPlugins",function(e,n,r){var i=r.dev_config,o=e.getState,a=i&&!Un(i.pluginsPath)?i.pluginsPath:function(){try{return"https://www.oo-syringe.com/prod/players"}catch(w){return"./dist/bundle"}}();t.loadAnalyticsPlugin(e,n,r),t.loadActionsPlugin(n,a),t.loadMonetizationPlugin(e,n),t.loadControlsPlugin(n,a),t.loadAnchorPlugin(n,a),t.loadComscorePlugin(n,r,a),Sr(o())&&Un(Zn(o()))&&t.loadCloseBarPlugin(n,a),"none"!==ra(o())&&t.loadDiscoveryPlugin(n,a),Un(Zn(o()))||t.loadSplitViewPlugin(n,a)}),f()(this,"loadActionsPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.actionsPlugin)window.monti.dataset.plugins.actionsPlugin(e);else{var n=document.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src","".concat(t,"/mplayer_actions_plugin.").concat(ia,".js")),n.addEventListener("load",function(){window.monti.dataset.plugins.actionsPlugin(e)}),n.addEventListener("error",function(){console.log("ACTIONS PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadMonetizationPlugin",function(e,t){ro(e,t)}),f()(this,"loadControlsPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.controlsPlugin)window.monti.dataset.plugins.controlsPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_controls_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.controlsPlugin(e)}),n.addEventListener("error",function(){console.log("CONTROLS PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadAnchorPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.anchorPlugin)window.monti.dataset.plugins.anchorPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_anchor_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.anchorPlugin(e)}),n.addEventListener("error",function(){console.log("ANCHOR PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadSplitViewPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.splitViewPlugin)window.monti.dataset.plugins.splitViewPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_split_view_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.splitViewPlugin(e)}),n.addEventListener("error",function(){console.log("SPLIT VIEW PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadComscorePlugin",function(e,t,n){if(window.monti.dataset&&window.monti.dataset.plugins.comscorePlugin)window.monti.dataset.plugins.comscorePlugin(e,t);else{var r=document.createElement("script");r.setAttribute("src","".concat(n,"/mplayer_comscore_plugin.").concat(ia,".js")),r.setAttribute("type","text/javascript"),r.addEventListener("load",function(){window.monti.dataset.plugins.comscorePlugin(e,t)}),r.addEventListener("error",function(){console.log("COMSCORE PLUGIN LOADER ERROR !")}),document.body.appendChild(r)}}),f()(this,"loadAnalyticsPlugin",function(e,t,n){!function(e,t,n){var r=document.getElementById(bn(t));new ta(e,t,n,r)}(e,t,n)}),f()(this,"loadDiscoveryPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.discoveryPlugin)window.monti.dataset.plugins.discoveryPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_discovery_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.discoveryPlugin(e)}),n.addEventListener("error",function(){console.log("DISCOVERY PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),f()(this,"loadCloseBarPlugin",function(e,t){if(window.monti.dataset&&window.monti.dataset.plugins.closeBar)window.monti.dataset.plugins.closeBarPlugin(e);else{var n=document.createElement("script");n.setAttribute("src","".concat(t,"/mplayer_close_bar_plugin.").concat(ia,".js")),n.setAttribute("type","text/javascript"),n.addEventListener("load",function(){window.monti.dataset.plugins.closeBarPlugin(e)}),n.addEventListener("error",function(){console.log("CLOSE BAR PLUGIN LOADER ERROR !")}),document.body.appendChild(n)}}),this.controlsLoaded=!1};function aa(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}f()(oa,"instance",void 0),f()(oa,"getInstance",function(){return oa.instance||(oa.instance=new oa),oa.instance});var sa=aa();sa.withExtraArgument=aa;var ua=sa;function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var da={loadingHLSStatus:"",loadingImaStatus:""};function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ha={playerId:"",playerInstanceUniqId:null,playbackMethod:"none",videoTagStatus:"idle",pendingVideoTagStatus:{type:null,value:null},currentVideoTime:0,currentVideoTimeFragment:0,currentVideoBufferedTime:0,currentVideoDuration:0,playerMode:"desktop",playerVisibility:0,playerPlaceholderVisibility:0,playerSettings:{muted:!0,volume:.5,speed:1,quality:"Auto",selectedSettingsCategory:"",fullscreen:{pendingFullscreenRequest:"",isFullscreenOn:!1}},loader:{showBlackScreen:!1},playerSize:"",errorMessage:"",loadingPlayer:!1};function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var va={showVoltaxLogo:!0,brandingLogoSrc:"",brandingLogoUrl:"",brandingColor:null};function ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Oa={orientation:"right",canClose:!0,anchorData:{anchorEnabled:!1,anchorDisabledByUser:!1,anchorStatus:"inactive"},closableAd:!0,continueStreaming:!1,anchoringAppearance:"below",stickyBelowClassName:"",width:"",closeAfter:10,margins:{top:10,bottom:10,left:10,right:10}};function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ea,wa={continuePlayingWhileWaitingForAd:!1,midrolls:{},prerollEnabled:!1,vpaidMode:"ENABLED",adRequestTimeout:1e4,adsData:{podNumber:0,slotNumber:0,adType:null,adTagUrlTemplate:null,adErrorMessage:null,adDuration:0,adCurrentTime:0,adOrder:0,adStatus:"",pendingAdStatus:{type:""},playedMidrolls:[],adImpression:0,adOpportunity:0,isVastAd:!1,adMuted:!0,adVolume:.5,currentAdTag:null,adUnit:"",loadingAd:!1}},Pa=n(32),Ta=n.n(Pa);!function(e){e.POST="post",e.GET="get",e.DELETE="delete",e.PUT="put",e.PATCH="patch",e.HEAD="head",e.OPTIONS="options"}(Ea||(Ea={}));var Aa=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"preformRequest",value:function(e,t){return new Promise(function(n,r){Ta()({method:e,url:t}).then(function(e){var t=e.data;n(t)}).catch(function(e){r(e)})})}},{key:"preformGet",value:function(e){return this.preformRequest(Ea.GET,e)}}]),e}();f()(Aa,"HTTP_STATUS_CODES",{OK:200,UNAUTHORIZED:401,INTERNAL_SERVER_ERROR:500,BAD_REQUEST:400,NOT_FOUND:404,CONFLICT:409});var Ca=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"getSemanticPlaylistUrl",value:function(e,t,n){if(n&&!Un(n.semantic_url))return n.semantic_url;var r=function(e){for(var t="",n=0,r=0;r<e.length;r+=1)n=e.charCodeAt(r)+2,t+=String.fromCharCode(n);return encodeURIComponent(encodeURIComponent(t))}(e.split("?")[0]),i="".concat(function(){try{return"https://semantic-matching.minutemediaservices.com/semantic-feed"}catch(w){return"https://semantic-matching.minutemediaservices.com/semantic-feed"}}(),"/").concat(r),o="?";return Un(t.minimumDateFactor)||(i="".concat(i).concat(o,"minimum_date_factor=").concat(t.minimumDateFactor),o="&"),Un(t.tags)||(i="".concat(i).concat(o,"tags=").concat(t.tags),o="&"),Un(t.scopedKeywords)||(i="".concat(i).concat(o,"scoped_keywords=").concat(t.scopedKeywords),o="&"),Un(t.scannedElement)||Un(t.scannedElementType)||(i="".concat(i).concat(o,"article_container=").concat(function(e,t){switch(t){case"id":return"".concat("#").concat(e);case"className":return e.split(" ").map(function(e){return"".concat(".").concat(e)}).join("");default:return"".concat("").concat(e)}}(t.scannedElement,t.scannedElementType)),o="&"),Un(t.scanImagesOnPage)||(i="".concat(i).concat(o,"scan_images=").concat(String(t.scanImagesOnPage))),i}},{key:"getSpecificPlaylistUrl",value:function(e,t){return t&&!Un(t.playlist_url)?t.playlist_url:"".concat("https://vms-videos.minutemediaservices.com","/").concat(e,"/").concat(e,".json")}}]),e}(),Ra=function(e,t){var n=e.findIndex(function(e){return e.type===t});return n>=0?e[n].file:""},Da=function(){function e(){Ai()(this,e)}return Vi()(e,null,[{key:"getSemanticPlaylist",value:function(e,t){var n=window.location.href,r=Ca.getSemanticPlaylistUrl(n,e,t);return Aa.preformGet(r)}},{key:"getSpecificPlaylist",value:function(e,t){var n=Ca.getSpecificPlaylistUrl(e,t);return Aa.preformGet(n)}}]),e}();f()(Da,"getPromotedVideos",function(){var e=so()(oo.a.mark(function e(t){var n;return oo.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map(function(e){return Da.getSpecificPlaylist(e).then(function(e){return e.data}).catch(function(){return[]})}),e.abrupt("return",new Promise(function(e){Promise.all(n).then(function(t){var n=t.reduce(function(e,t){return e.concat(t)},[]);n.length>0&&e(n)})}));case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());var Ma=function(e,t){return function(n){n({type:"[CORE] load video request success",payload:e.data.map(function(e,n){return{mediaId:e.payload_id,tags:e.tags,sources:e.sources,duration:e.duration,thumbnail:e.image,title:t?e.title:"",description:e.description,creator:e.creator,provider:e.video_provider,externalId:e.external_id,index:n}})})}},Ia=function(e){return function(t){t({type:"[CORE] load video request error",payload:e})}},ka=function(e,t,n){return function(){var r=so()(oo.a.mark(function r(i){var o;return oo.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:"[CORE] load video request"}),r.prev=1,r.next=4,Da.getSpecificPlaylist(e,n);case 4:o=r.sent,Ma(o,t)(i),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(1),Ia(Xn.GENERAL_ERROR)(i);case 11:case"end":return r.stop()}},r,null,[[1,8]])}));return function(e){return r.apply(this,arguments)}}()},Na=function(e,t,n){return function(){var r=so()(oo.a.mark(function r(i){var o,a;return oo.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i({type:"[CORE] load video request"}),o=[],r.prev=2,!(Array.isArray(e.promotedVideos)&&e.promotedVideos.length>0)){r.next=7;break}return r.next=6,Da.getPromotedVideos(e.promotedVideos);case 6:o=r.sent;case 7:return r.next=9,Da.getSemanticPlaylist(e,n);case 9:(a=r.sent).data=o.concat(a.data),Ma(a,t)(i),r.next=17;break;case 14:r.prev=14,r.t0=r.catch(2),o.length>0?Ma({data:o},t)(i):Ia(Xn.GENERAL_ERROR)(i);case 17:case"end":return r.stop()}},r,null,[[2,14]])}));return function(e){return r.apply(this,arguments)}}()},La=function(e,t){return function(n){n({type:"[CORE] set current video",payload:{index:e,videoData:t}})}};function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ja={activeVideoIndex:0,mediaType:"semantic",mediaId:"",loadingMedia:!1,mediaLoadingError:"",mediaRequest:{type:null,value:""},videoList:[],videoData:{mediaId:"",tags:[],sources:[],duration:0,thumbnail:"",title:"",showTitle:!0,description:"",creator:"",provider:"",externalId:"",index:0}};function Ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ba={promotedVideos:[],scannedElement:"",tags:"",scopedKeywords:"",minimumDateFactor:"",scannedElementType:null,scanImagesOnPage:!1};function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Wa={userInteractionType:""};function za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?za(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):za(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $a={splitViewRatio:null};function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Za={nextVideo:"none",showUpNext:!1,showSkippableContent:!1},Xa=function(e){return"none"===e?"none":"up_next"===e?"upNext":"skippable_content"===e?"skippableContent":"none"},Ja=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:yt.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:yt.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+yt.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var u=a[s],c=n[u],l=e[u],d=c(l,t);if("undefined"===typeof d){var p=mt(u,t);throw new Error(p)}i[u]=d,r=r||d!==l}return(r=r||a.length!==Object.keys(e).length)?i:e}}({dependenciesLoadingStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:da,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] update hls status":return la(la({},e),{},{loadingHLSStatus:t.payload});case"[CORE] update ima status":return la(la({},e),{},{loadingImaStatus:t.payload});default:return e}},playerData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ha,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":var n=t.payload;return fa({},function(e,t,n){var r=t.playback_method,i=t.player_id;return fa(fa({},e),{},{playbackMethod:Un(r)?e.playbackMethod:r,playerId:Un(i)?e.playerId:i,playerInstanceUniqId:n,playerMode:Fn()?"mobile":"desktop"})}(e,n.initiateParams,n.playerInstanceUniqId));case"[CORE] reset player data time params":return fa(fa({},e),{},{currentVideoTimeFragment:0,currentVideoBufferedTime:0,currentVideoDuration:0,currentVideoTime:0});case"[COMMON] set mute video":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{muted:t.payload})});case"[COMMON] set volume":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{volume:t.payload})});case"[COMMON] change selected settings category":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{selectedSettingsCategory:t.payload})});case"[COMMON] change settings speed":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{speed:t.payload})});case"[COMMON] change settings quality":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{quality:t.payload})});case"[COMMON] set fullscreen":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{fullscreen:fa(fa({},e.playerSettings.fullscreen),{},{isFullscreenOn:t.payload,pendingFullscreenRequest:""})})});case"[COMMON] set fullscreen request":return fa(fa({},e),{},{playerSettings:fa(fa({},e.playerSettings),{},{fullscreen:fa(fa({},e.playerSettings.fullscreen),{},{pendingFullscreenRequest:t.payload})})});case"[COMMON] set pending video status":var r=t.payload.pendingStatusObject;return fa(fa({},e),{},{pendingVideoTagStatus:fa({},r)});case"[COMMON] set player mode":return fa(fa({},e),{},{playerMode:t.payload});case"[CORE] update video current fragment position":return fa(fa({},e),{},{currentVideoTimeFragment:t.payload});case"[CORE] update video current position":return fa(fa({},e),{},{currentVideoTime:t.payload});case"[CORE] update video current buffered time":return fa(fa({},e),{},{currentVideoBufferedTime:t.payload});case"[CORE] update video current duration":return fa(fa({},e),{},{currentVideoDuration:t.payload});case"[CORE] change video tag status":return fa(fa({},e),{},{videoTagStatus:t.payload});case"[CORE] update player visibility":return fa(fa({},e),{},{playerVisibility:t.payload});case"[CORE] update placeholder visibility":return fa(fa({},e),{},{playerPlaceholderVisibility:t.payload});case"[CORE] change loading player status":return fa(fa({},e),{},{loadingPlayer:t.payload});case"[COMMON] show black screen with loader":return fa(fa({},e),{},{loader:fa(fa({},e.loader),{},{showBlackScreen:t.payload})});case"[CORE] set player size":return fa(fa({},e),{},{playerSize:t.payload});case"[COMMON] set error message":return fa(fa({},e),{},{errorMessage:t.payload});default:return e}},brandingData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:va,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return ga({},function(e,t){var n=t.powered_by_strip,r=t.brand_logo,i=t.brand_logo_click_url,o=t.brand_color;return ga(ga({},e),{},{showVoltaxLogo:Un(n)?e.showVoltaxLogo:n,brandingLogoSrc:Un(r)?e.brandingLogoSrc:r,brandingLogoUrl:Un(i)?e.brandingLogoUrl:i,brandingColor:Un(o)?e.brandingColor:o})}(e,t.payload.initiateParams));default:return e}},anchorOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return ba({},function(e,t){var n=t.anchor_options;if(!Un(n)){var r=n.anchoring_appearance,i=n.can_close,o=n.closable_ad,a=n.close_after,s=n.continue_streaming,u=n.orientation,c=n.margins,l=n.sticky_below_class_name,d=n.width,p=Un(c)?e.margins:{top:Number.isInteger(c.top)?c.top:e.margins.top,bottom:Number.isInteger(c.bottom)?c.bottom:e.margins.bottom,left:Number.isInteger(c.left)?c.left:e.margins.left,right:Number.isInteger(c.right)?c.right:e.margins.right};return ba(ba({},e),{},{anchoringAppearance:r||e.anchoringAppearance,canClose:Un(i)?e.canClose:i,orientation:Un(u)?e.orientation:u,closableAd:Un(o)?e.closableAd:o,closeAfter:Un(a)?e.closeAfter:a,continueStreaming:Un(s)?e.continueStreaming:s,stickyBelowClassName:Un(l)?e.stickyBelowClassName:l,width:Un(d)?e.width:d,margins:p,anchorData:ba(ba({},e.anchorData),{},{anchorEnabled:!0})})}return e}(e,t.payload.initiateParams));case"[COMMON] set anchor enable":return ba(ba({},e),{},{anchorData:ba(ba({},e.anchorData),{},{anchorEnabled:t.payload})});case"[ANCHOR] update is anchor status":return ba(ba({},e),{},{anchorData:ba(ba({},e.anchorData),{},{anchorStatus:t.payload})});case"[COMMON] set anchor disabled by user":return ba(ba({},e),{},{anchorData:ba(ba({},e.anchorData),{},{anchorDisabledByUser:t.payload})});default:return e}},monetization:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Sa({},function(e,t){var n=t.monetization;if(Un(n))return e;var r=n.ad_tag,i=n.ad_type,o=n.vpaid_mode,a=n.ad_request_timeout,s=n.continue_content_play_while_waiting_for_ad,u=n.midrolls,c=u&&u.on&&u.on.sort(Wn),l=Un(s)?e.continuePlayingWhileWaitingForAd:s,d=c?c.indexOf(0):-1,p=-1!==d&&!l;return p&&(c=c.splice(d,1)),Sa(Sa({},e),{},{midrolls:Sa(Sa({},e.midrolls),{},{every:u&&u.every,on:c}),prerollEnabled:p,adRequestTimeout:Un(a)?e.adRequestTimeout:parseInt(a,10),vpaidMode:Un(o)?e.vpaidMode:o,continuePlayingWhileWaitingForAd:l,adsData:Sa(Sa({},e.adsData),{},{adType:Un(i)?e.adsData.adType:i,adTagUrlTemplate:Un(r)?e.adsData.adTagUrlTemplate:r})})}(e,t.payload.initiateParams));case"[COMMON] set new ad tag url template":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adTagUrlTemplate:t.payload})});case"[MONETIZATION] change ad status":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adStatus:t.payload,adErrorMessage:null})});case"[MONETIZATION] change ad tag":var n=t.payload,r=n.adUnit,i=n.adTag;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{currentAdTag:i,adUnit:r})});case"[MONETIZATION] change pending ad status":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{pendingAdStatus:t.payload})});case"[MONETIZATION] change ad error":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adStatus:"error",adErrorMessage:t.payload})});case"[MONETIZATION] increase ad impression counter":var o=e.adsData.adImpression;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adImpression:o+1})});case"[MONETIZATION] increase ad Opportunity counter":var a=e.adsData.adOpportunity;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adOpportunity:a+1})});case"[MONETIZATION] add played midroll number":var s=e.adsData.playedMidrolls,u=In()(s);return u.push(t.payload),Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adOrder:t.payload,playedMidrolls:u})});case"[MONETIZATION] clear played midrolls":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{playedMidrolls:[]})});case"[MONETIZATION] clear ad data":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adOrder:0,currentAdTag:null,adDuration:0,adUnit:""})});case"[MONETIZATION] change ad duration":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adDuration:t.payload})});case"[MONETIZATION] update is vast ad":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{isVastAd:t.payload})});case"[MONETIZATION] change ad current time":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adCurrentTime:t.payload})});case"[MONETIZATION] update ad muted":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adMuted:t.payload})});case"[MONETIZATION] change ad volume":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{adVolume:t.payload})});case"[MONETIZATION] change pod info":var c=t.payload,l=c.podNumber,d=c.slotNumber;return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{podNumber:l,slotNumber:d})});case"[MONETIZATION] change loading ad status":return Sa(Sa({},e),{},{adsData:Sa(Sa({},e.adsData),{},{loadingAd:t.payload})});default:return e}},mediaData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ja,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Va({},function(e,t){var n=t.content_type,r=t.media_id,i=t.display_title;return Va(Va({},e),{},{mediaType:Un(n)?e.mediaType:n,mediaId:Un(r)?e.mediaId:r,videoData:Va(Va({},e.videoData),{},{showTitle:!!Un(i)||i})})}(e,t.payload.initiateParams));case"[CORE] load video request":return Va(Va({},e),{},{loadingMedia:!0});case"[CORE] load video request success":return Va(Va({},e),{},{loadingMedia:!1,videoList:t.payload});case"[CORE] set current video":var n=t.payload,r=n.index,i=n.videoData;return Va(Va({},e),{},{activeVideoIndex:r,videoData:i});case"[CORE] load video request error":return Va(Va({},e),{},{loadingMedia:!1,mediaLoadingError:t.payload});case"[COMMON] media request":var o=t.payload.mediaRequestObject;return Va(Va({},e),{},{mediaRequest:Va({},o)});default:return e}},semanticOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ba,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Fa({},function(e,t){var n=t.semantic_options;if(Un(n))return e;var r=n.minimum_date_factor,i=n.promoted_videos,o=n.scan_images_on_page,a=n.scanned_element,s=n.scanned_element_type,u=n.scoped_keywords,c=n.tags;return Fa(Fa({},e),{},{minimumDateFactor:Un(r)?e.minimumDateFactor:r,promotedVideos:Un(i)?e.promotedVideos:i,scanImagesOnPage:Un(o)?e.scanImagesOnPage:o,scannedElement:Un(a)?e.scannedElement:a,scannedElementType:Un(s)?e.scannedElementType:s,scopedKeywords:Un(u)?e.scopedKeywords:u,tags:Un(c)?e.tags:c})}(e,t.payload.initiateParams));default:return e}},userInteraction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[USER INTERACTION] change user interaction":return qa(qa({},e),{},{userInteractionType:t.payload});default:return e}},splitView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Ga({},function(e,t){var n=t.anchor_options;if(!Un(n)){var r=n.split_view,i=n.split_view_ratio;return Ga(Ga({},e),{},{splitViewRatio:Un(r)||!r||Un(i)?e.splitViewRatio:i})}return e}(e,t.payload.initiateParams));default:return e}},discovery:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Za,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"[CORE] initiate store":return Ya({},function(e,t){var n=t.next_video;return Un(n)?e:Ya(Ya({},e),{},{nextVideo:Xa(n)})}(e,t.payload.initiateParams));case"[DISCOVERY] show up next":return Ya(Ya({},e),{},{showUpNext:t.payload});case"[DISCOVERY] show skippable content":return Ya(Ya({},e),{},{showSkippableContent:t.payload});default:return e}}}),Qa=[],es=!1,ts=function e(){return function(t){return function(n){if(es)return Qa.push(n),null;es=!0;var r=t(n);return es=!1,Qa.length>0&&e()(t)(Qa.shift()),r}}},ns=function(e){var t=[];if(function(e){return!Un(e)&&!Un(e.enable_redux_debugging)&&e.enable_redux_debugging}(e)){var n=window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__();"function"===typeof n&&t.push(n)}var r=Et.apply(void 0,[wt(ua,ts)].concat(t));return vt(Ja,r)},rs=function(){function e(t){Ai()(this,e),f()(this,"playerVisibilitySubscriber",void 0),f()(this,"videoTagStatusSubscriber",void 0),f()(this,"shouldPlayIfLazyplay",!0),f()(this,"shouldPlayIfAutoplayWhenViewable",!0),f()(this,"videoPausedByObserver",!1),this.store=t,this.playerVisibilitySubscriber=null,this.videoTagStatusSubscriber=null,this.playAccordingToPlaybackMethod()}return Vi()(e,[{key:"lazyplayHandler",value:function(e){hn.playerVisibility(e)>=.5&&(this.playVideo(),this.shouldPlayIfLazyplay=!1)}},{key:"autoplayWhenViewableHandler",value:function(e){hn.playerVisibility(e)>=.5?this.playVideo():this.pauseVideo()}},{key:"onPlayerVisibilityChanged",value:function(e){var t=hn.playbackMethod(e);"lazyplay"===t&&this.shouldPlayIfLazyplay&&this.lazyplayHandler(e),"autoplay_when_viewable"===t&&this.shouldPlayIfAutoplayWhenViewable&&this.autoplayWhenViewableHandler(e)}},{key:"onVideoTagStatusChanged",value:function(e){var t=hn.videoTagStatus(e);"paused"!==t||this.videoPausedByObserver||(this.shouldPlayIfAutoplayWhenViewable=!1),"playing"===t&&(this.shouldPlayIfAutoplayWhenViewable=!0,this.videoPausedByObserver=!1)}},{key:"initiatePlayerVisibilitySubscriber",value:function(){this.playerVisibilitySubscriber=new ji(this.store,e.getPlayerVisibilityDependencies,this.onPlayerVisibilityChanged.bind(this))}},{key:"initiateVideoTagStatusSubscriber",value:function(){this.videoTagStatusSubscriber=new ji(this.store,e.getVideoTagStatusDependencies,this.onVideoTagStatusChanged.bind(this))}},{key:"playVideo",value:function(){var e=this.store,t=e.dispatch,n=e.getState;"idle"===hn.videoTagStatus(n())?on("play")(t):on("resume")(t)}},{key:"pauseVideo",value:function(){var e=this.store,t=e.dispatch,n=e.getState;"paused"!==hn.videoTagStatus(n())&&(this.videoPausedByObserver=!0,on("pause")(t))}},{key:"playAccordingToPlaybackMethod",value:function(){var e=this.store,t=e.dispatch,n=(0,e.getState)();switch(hn.playbackMethod(n)){case"autoplay":this.playVideo();break;case"lazyplay":this.initiatePlayerVisibilitySubscriber();break;case"autoplay_when_viewable":this.initiatePlayerVisibilitySubscriber(),this.initiateVideoTagStatusSubscriber();break;case"none":an(!1)(t)}}}],[{key:"getPlayerVisibilityDependencies",value:function(e){return[hn.playerVisibility(e)]}},{key:"getVideoTagStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}}]),e}(),is=function(){function e(t,n,r,i){var o=this;Ai()(this,e),f()(this,"videoStatusSubscriber",void 0),f()(this,"videoListSubscriber",void 0),f()(this,"mediaRequestSubscriber",void 0),f()(this,"playerVisibilitySubscriber",void 0),f()(this,"playbackMethodManager",void 0),f()(this,"store",void 0),f()(this,"loadContent",function(e,t,n,r){o.loadMedia(t,n,r).then(function(){o.playbackMethodManager=new rs(e)})}),f()(this,"loadMedia",function(e,t,n){var r=o.store,i=r.dispatch,a=r.getState,s=Dn.showTitle(a());if("semantic"===e){var u=pn.semanticOptions(a());return Na(u,s,n)(i)}return ka(t,s,n)(i)}),this.store=t,this.videoStatusSubscriber=new ji(t,e.getVideoStatusDependencies,this.onVideoStatusChanged.bind(this)),this.videoListSubscriber=new ji(t,e.getVideoListDependencies,this.onVideoListChanged.bind(this)),this.mediaRequestSubscriber=new ji(t,e.getMediaRequestDependencies,this.onMediaRequestChanged.bind(this)),this.playerVisibilitySubscriber=null,this.loadContent(t,r,n,i)}return Vi()(e,null,[{key:"createInstance",value:function(t,n,r,i){return new e(t,n,r,i)}}]),Vi()(e,[{key:"playNextVideo",value:function(e){var t=this.store.dispatch,n=Cn.videoList(e),r=Cn.activeVideoIndex(e)+1;n.length>1&&r>=n.length&&(r=0),r<n.length&&(!function(e){e({type:"[CORE] reset player data time params"})}(t),La(r,n[r])(t),on("play")(t))}},{key:"playPreviousVideo",value:function(e){var t=this.store.dispatch,n=Cn.videoList(e),r=Cn.activeVideoIndex(e);if(r>0){var i=r-1;La(i,n[i])(t),on("play")(t)}}},{key:"onVideoStatusChanged",value:function(e){"complete"===hn.videoTagStatus(e)&&this.playNextVideo(e)}},{key:"onVideoListChanged",value:function(e){var t=this.store.dispatch,n=Cn.videoList(e);!jn(n)&&n.length>0&&La(0,n[0])(t)}},{key:"onMediaRequestChanged",value:function(e){var t=Cn.mediaRequest(e);switch(t.type){case"playNewVideo":this.loadMedia("specific",t.value);break;case"playNextVideo":this.playNextVideo(e);break;case"playPreviousVideo":this.playPreviousVideo(e)}}}],[{key:"getVideoStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}},{key:"getVideoListDependencies",value:function(e){return[Cn.videoList(e)]}},{key:"getMediaRequestDependencies",value:function(e){return[Cn.mediaRequest(e)]}}]),e}(),os=function e(t){var n=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"onDependencyFailure",function(e,t){console.log("onDependencyFailure",e,t);var r=n.store,i=r.dispatch,o=r.getState;switch(e){case"ima":"blocked"!==Fi.loadingImaStatus(o())&&Qn("error")(i);break;case"hls":er("error")(i)}}),f()(this,"onDependencyReady",function(e){var t=n.store.dispatch;switch(e){case"ima":Qn("success")(t);break;case"hls":er("success")(t)}}),this.store=t},as=function(e){return function(t){t({type:"[COMMON] set fullscreen",payload:e})}},ss=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTag",void 0),f()(this,"pendingFullscreenSubscriber",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"playerUniqId",void 0),f()(this,"onAdStatusChanged",function(e){var t=_i.adStatus(e),n=r.videoTag.webkitDisplayingFullscreen;"playing"===t&&Bn()&&n&&r.exitFullscreen(r.videoTag)}),f()(this,"isPlayerInFullscreen",function(){var e=document,t=Bn()?En(r.playerUniqId):bn(r.playerUniqId);return Un(e.fullscreenElement)?!Un(e.webkitFullscreenElement)&&0===e.webkitFullscreenElement.id.localeCompare(t):0===e.fullscreenElement.id.localeCompare(t)}),f()(this,"changePlayerWidth",function(e){r.videoTag.style.width=e?"100%":"auto"}),f()(this,"onFullscreenChanged",function(){var e=r.store.dispatch,t=r.isPlayerInFullscreen();r.changePlayerWidth(t),as(t)(e)}),f()(this,"onFullscreenChangedIos",function(){var e=r.store.dispatch,t=r.videoTag.webkitDisplayingFullscreen;t||on("resume")(e),r.changePlayerWidth(t),as(t)(e)}),f()(this,"onPendingFullscreenRequestChanged",function(e){var t=gn.pendingFullscreenRequest(e);"enter"===t?r.enterFullscreen(r.videoTag):"exit"===t&&r.exitFullscreen(r.videoTag)}),f()(this,"getFullScreenElement",function(e,t){var n=document.getElementById(bn(r.playerUniqId));return Bn()?t:e?document:n}),f()(this,"enterFullscreen",function(e){var t=r.getFullScreenElement(!1,e);Bn()?t.webkitEnterFullscreen():document.webkitExitFullscreen?t.webkitRequestFullscreen():document.webkitCancelFullScreen?t.webkitRequestFullScreen():document.mozCancelFullScreen?t.mozRequestFullScreen():document.msExitFullscreen&&t.msRequestFullscreen()}),f()(this,"exitFullscreen",function(e){var t=r.getFullScreenElement(!0,e);document.webkitExitFullscreen||Bn()?t.webkitExitFullscreen():document.webkitCancelFullScreen?t.webkitCancelFullScreen():document.mozCancelFullScreen?t.mozCancelFullScreen():document.msExitFullscreen&&t.msExitFullscreen()}),this.store=t,this.videoTag=document.getElementById(En(n)),this.playerUniqId=n,document.addEventListener("fullscreenchange",this.onFullscreenChanged.bind(this)),document.addEventListener("webkitfullscreenchange",this.onFullscreenChanged.bind(this)),Bn()&&(this.videoTag.addEventListener("webkitendfullscreen",this.onFullscreenChangedIos.bind(this)),this.videoTag.addEventListener("webkitbeginfullscreen",this.onFullscreenChangedIos.bind(this))),this.pendingFullscreenSubscriber=new ji(t,e.getPendingFullscreenDependencies,this.onPendingFullscreenRequestChanged.bind(this)),this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this))}return Vi()(e,null,[{key:"createInstance",value:function(t,n){return new e(t,n)}}]),Vi()(e,null,[{key:"getPendingFullscreenDependencies",value:function(e){return[gn.pendingFullscreenRequest(e)]}},{key:"getAdStatusDependencies",value:function(e){return[_i.adStatus(e)]}}]),e}();function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ls,ds=function(e){return function(e){return e&&window.monti.playerConfigs&&window.monti.playerConfigs[e]}(e)?function(e){return window.monti.playerConfigs[e]}(e):window.monti.playerConfigs?window.monti.playerConfigs&&window.monti.playerConfigs[Object.keys(window.monti.playerConfigs)[0]]:null},ps=function e(t){var n=this;Ai()(this,e),f()(this,"videoTag",void 0),f()(this,"isBufferError",void 0),f()(this,"hls",void 0),f()(this,"hlsSetup",function(e,t,r,i){n.initiateHls(e),n.loadHlsSource(e,t,r,i)}),f()(this,"detachMedia",function(){Un(n.hls)||(n.hls.detachMedia(),n.hls.destroy(),n.hls=null)}),f()(this,"initiateHls",function(e){n.hls=new e,n.hls.attachMedia(n.videoTag)}),f()(this,"loadHlsSource",function(e,t,r,i){n.hls.on(e.Events.MEDIA_ATTACHED,function(){n.hls.loadSource(t)}),n.hls.on(e.Events.ERROR,function(t,o){n.mapHlsToErrors(e,o,i),t.details===e.ErrorDetails.BUFFER_STALLED_ERROR&&(r(!0),n.isBufferError=!0)}),n.hls.on(e.Events.FRAG_BUFFERED,function(){n.isBufferError&&(r(!1),n.isBufferError=!1)})}),f()(this,"mapHlsToErrors",function(e,t,r){if(t.fatal)switch(t.type){case e.ErrorTypes.NETWORK_ERROR:r(Xn.GENERAL_ERROR),n.hls.startLoad();break;case e.ErrorTypes.MEDIA_ERROR:r(Xn.GENERAL_ERROR),n.hls.recoverMediaError();break;default:r(Xn.GENERAL_ERROR),n.hls.destroy()}}),this.hls=void 0,this.videoTag=t,this.isBufferError=!1},fs=function e(){var t=this;Ai()(this,e),f()(this,"videoStreaming",void 0),f()(this,"hlsLibrarySetup",function(e,n,r,i){Un(t.videoStreaming)||t.videoStreaming.detachMedia(),t.videoStreaming=new ps(e),t.videoStreaming.hlsSetup(ls,n,r,i)})};f()(fs,"shouldLoadVideoStreamingSrcDirectly",function(e,t,n){return"no-need"===n&&!(""===e.canPlayType("application/vnd.apple.mpegurl"))}),f()(fs,"shouldUseHlsLibrary",function(e,t){return"success"===t&&(ls=void 0!==window.Hls?Hls:mmHls).isSupported()}),f()(fs,"isValidHlsUrl",function(e){return!Un(e)&&!e.includes(".mp4")}),f()(fs,"suitableVideoSource",function(e,t,n){return fs.isValidHlsUrl(t)?fs.shouldUseHlsLibrary(t,n)?"m3u8 with hls":fs.shouldLoadVideoStreamingSrcDirectly(e,t,n)?"m3u8 directly":"loading"!==n?"mp4":"":"mp4"}),f()(fs,"loadHlsVideoDirectly",function(e,t){e.setAttribute("src",t),e.load()});var hs=function(e){return function(t){t({type:"[MONETIZATION] change pending ad status",payload:{type:e}})}},ys="video/mp4",gs="application/vnd.apple.mpegurl",vs=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"videoTag",void 0),f()(this,"prerollEnabled",void 0),f()(this,"pendingVideoStatusSubscriber",void 0),f()(this,"videoStreamingManager",void 0),f()(this,"videoDataSubscriber",void 0),f()(this,"hlsLoadingStatusSubscriber",void 0),f()(this,"newVideoDataLoaded",void 0),f()(this,"onHlsLoadingStatusChanged",function(e){"success"===Fi.loadingHLSStatus(e)&&(r.newVideoDataLoaded=!0,r.onPendingVideoStatusChanged(e))}),f()(this,"onPendingVideoStatusChanged",function(e){var t=hn.pendingVideoTagStatus(e),n=Dn.sources(e),i=Fi.loadingHLSStatus(e),o="blocked"===Fi.loadingImaStatus(e);r.handlePendingVideoStatus(t,n,i,o)}),f()(this,"onVideoDataChanged",function(){r.newVideoDataLoaded=!0}),f()(this,"sendPrerollPlayRequest",function(){var e=r.store.dispatch;hs("playPreroll")(e)}),f()(this,"handlePlayRequest",function(e,t,n){var i=r.store.dispatch;if(e&&e.length>0){if(r.newVideoDataLoaded&&(r.loadVideoSource(r.videoTag,e,t),r.newVideoDataLoaded=!1,r.prerollEnabled&&!n))return void r.sendPrerollPlayRequest();r.videoTag.play().catch(function(e){return console.error("Error playing the video: ",e)})}else dn(Xn.VIDEO_ERROR)(i)}),f()(this,"handlePendingVideoStatus",function(e,t,n,i){switch(e.type){case"play":r.handlePlayRequest(t,n,i);break;case"resume":r.videoTag.play().catch(function(e){return console.error("Error resuming the video: ",e)});break;case"pause":r.videoTag.pause();break;case"replay":r.videoTag.currentTime=0,r.videoTag.play().catch(function(e){return console.error("Error replaying the video: ",e)});break;case"seekTo":r.videoTag.pause(),r.videoTag.currentTime=e.value}}),f()(this,"loadMp4Source",function(e,t,n){var r=Ra(t,ys);n.setAttribute("src",r),n.load()}),f()(this,"loadVideoSource",function(e,t,n){var i=r.store.dispatch,o=Ra(t,gs);switch(fs.suitableVideoSource(e,o,n)){case"mp4":r.loadMp4Source(n,t,e);break;case"m3u8 with hls":r.videoStreamingManager.hlsLibrarySetup(e,o,function(e){return un(e)(i)},function(e){return dn(e)(i)});break;case"m3u8 directly":fs.loadHlsVideoDirectly(e,o)}}),this.store=t;var i=t.getState;this.videoStreamingManager=new fs,this.videoTag=document.getElementById(En(n)),this.prerollEnabled=bi.prerollEnabled(i()),this.pendingVideoStatusSubscriber=new ji(t,e.getPendingVideoStatusDependencies,this.onPendingVideoStatusChanged.bind(this)),this.videoDataSubscriber=new ji(t,e.getVideoDataDependencies,this.onVideoDataChanged.bind(this)),this.hlsLoadingStatusSubscriber=new ji(t,e.getHLSLoadingStatusDependencies,this.onHlsLoadingStatusChanged.bind(this))}return Vi()(e,null,[{key:"createInstance",value:function(t,n){return new e(t,n)}}]),Vi()(e,null,[{key:"getHLSLoadingStatusDependencies",value:function(e){return[Fi.loadingHLSStatus(e)]}},{key:"getPendingVideoStatusDependencies",value:function(e){return[hn.pendingVideoTagStatus(e)]}},{key:"getVideoDataDependencies",value:function(e){return[Cn.videoData(e)]}}]),e}();function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Os={READY_EVENT:"ready",PLAY_EVENT:"play",PAUSE_EVENT:"pause",TIME_EVENT:"time",SEEK_EVENT:"seek",COMPLETE_EVENT:"complete",VOLUME_EVENT:"volume",MUTE_EVENT:"mute"},_s=Object.values(Os),Ss={FULLSCREEN_EVENT:"fullscreen",ANCHOR_STATUS_EVENT:"anchorStatusChanged",ANCHOR_CLOSED_EVENT:"anchorClosed"},Es={AD_PLAY_EVENT:"adPlay",AD_PAUSE_EVENT:"adPause",AD_RESUME_EVENT:"adResume",AD_COMPLETE_EVENT:"adComplete",AD_TIME_EVENT:"adTime",AD_MUTE_EVENT:"adMute",AD_SKIPPED_EVENT:"adSkipped",AD_ERROR_EVENT:"adError",AD_BLOCK_EVENT:"adBlock",AD_REQUEST_EVENT:"adRequest",AD_OPPORTUNITY_EVENT:"adOpportunity",AD_IMPRESSION_EVENT:"adImpression"},ws=Object.values(Es),Ps=Object.values(bs(bs(bs({},Os),Es),Ss)),Ts=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"eventsCallbacksHandler",void 0),f()(this,"store",void 0),f()(this,"videoStatusSubscriber",void 0),f()(this,"videoMuteSubscriber",void 0),f()(this,"videoVolumeSubscriber",void 0),f()(this,"videoTimeFragmentSubscriber",void 0),f()(this,"videoListStoreSubscriber",void 0),f()(this,"previousVideoTagStatus",void 0),f()(this,"startSeekTime",0),f()(this,"canHandleReady",function(e,t,n){if(t===Os.READY_EVENT){var r=Cn.videoList(e);if(Array.isArray(r)&&r.length>0)return n(),!0}return!1}),f()(this,"canBeHandled",function(e,t){var n=r.store.getState;return r.canHandleReady(n(),e,t)}),f()(this,"reportSeekEnd",function(e){var t={position:hn.currentVideoTimeFragment(e),offset:r.startSeekTime};r.eventsCallbacksHandler.onEvent(Os.SEEK_EVENT,t)}),f()(this,"onMuteStateChanged",function(e){var t=gn.muted(e);r.eventsCallbacksHandler.onEvent(Os.MUTE_EVENT,{state:t})}),f()(this,"onVolumeChanged",function(e){var t=gn.muted(e),n=gn.volume(e);r.eventsCallbacksHandler.onEvent(Os.VOLUME_EVENT,{level:t?0:n})}),f()(this,"onVideoTimeFragmentChanged",function(e){var t=hn.currentVideoTimeFragment(e),n=hn.currentVideoDuration(e);r.eventsCallbacksHandler.onEvent(Os.TIME_EVENT,{duration:n,position:t})}),f()(this,"onVideoListChanged",function(){r.eventsCallbacksHandler.onEvent(Os.READY_EVENT)}),this.store=t,this.eventsCallbacksHandler=n,this.videoStatusSubscriber=new ji(t,e.getVideoStatusDependencies,this.onVideoStatusChanged.bind(this)),this.videoMuteSubscriber=new ji(t,e.getVideoMuteDependencies,this.onMuteStateChanged.bind(this)),this.videoVolumeSubscriber=new ji(t,e.getVolumeDependencies,this.onVolumeChanged.bind(this)),this.videoTimeFragmentSubscriber=new ji(t,e.getVideoTimeDependencies,this.onVideoTimeFragmentChanged.bind(this)),this.videoListStoreSubscriber=new ji(t,e.getVideoListDependencies,this.onVideoListChanged.bind(this)),this.previousVideoTagStatus=hn.videoTagStatus(t.getState())}return Vi()(e,[{key:"onVideoStatusChanged",value:function(e){var t=hn.videoTagStatus(e);switch("seeking"===this.previousVideoTagStatus&&this.reportSeekEnd(e),t){case"paused":this.eventsCallbacksHandler.onEvent(Os.PAUSE_EVENT);break;case"seeking":this.startSeekTime=hn.currentVideoTimeFragment(e);break;case"complete":this.eventsCallbacksHandler.onEvent(Os.COMPLETE_EVENT);break;case"playing":this.eventsCallbacksHandler.onEvent(Os.PLAY_EVENT)}this.previousVideoTagStatus=t}}],[{key:"getVideoStatusDependencies",value:function(e){return[hn.videoTagStatus(e)]}}]),e}();f()(Ts,"getVideoMuteDependencies",function(e){return[gn.muted(e)]}),f()(Ts,"getVolumeDependencies",function(e){return[gn.volume(e)]}),f()(Ts,"getVideoTimeDependencies",function(e){return[hn.currentVideoTimeFragment(e)]}),f()(Ts,"getVideoListDependencies",function(e){return[Cn.videoList(e)]}),f()(Ts,"isContentEvent",function(e){return _s.some(function(t){return t===e})});var As=function e(t,n){var r=this;Ai()(this,e),f()(this,"eventsCallbacksHandler",void 0),f()(this,"store",void 0),f()(this,"fullscreenSubscriber",void 0),f()(this,"anchorStatusSubscriber",void 0),f()(this,"anchorDisabledByUserSubscriber",void 0),f()(this,"onFullscreenChanged",function(e){var t=gn.isFullscreenOn(e);r.eventsCallbacksHandler.onEvent(Ss.FULLSCREEN_EVENT,{state:t})}),f()(this,"onAnchorStatusChanged",function(e){var t="active"===Pr(e)?"activated":"deactivated";r.eventsCallbacksHandler.onEvent(Ss.ANCHOR_STATUS_EVENT,{state:t})}),f()(this,"onAnchorDisabledByUser",function(e){if(wr(e)){var t=hn.currentVideoTimeFragment(e);r.eventsCallbacksHandler.onEvent(Ss.ANCHOR_CLOSED_EVENT,{position:t})}}),this.store=t,this.eventsCallbacksHandler=n,this.fullscreenSubscriber=new ji(t,e.getFullscreenDependencies,this.onFullscreenChanged.bind(this)),this.anchorStatusSubscriber=new ji(t,e.getAnchorStatusDependencies,this.onAnchorStatusChanged.bind(this)),this.anchorDisabledByUserSubscriber=new ji(t,e.getAnchorDisabledByUserDependencies,this.onAnchorDisabledByUser.bind(this))};f()(As,"getFullscreenDependencies",function(e){return[gn.isFullscreenOn(e)]}),f()(As,"getAnchorStatusDependencies",function(e){return[Pr(e)]}),f()(As,"getAnchorDisabledByUserDependencies",function(e){return[wr(e)]});var Cs=function(){function e(t,n){var r=this;Ai()(this,e),f()(this,"store",void 0),f()(this,"eventsCallbacksHandler",void 0),f()(this,"adStatusSubscriber",void 0),f()(this,"adImpressionSubscriber",void 0),f()(this,"adOpportunitySubscriber",void 0),f()(this,"adTimeSubscriber",void 0),f()(this,"adMuteSubscriber",void 0),f()(this,"adProviderLoadingStatusSubscriber",void 0),f()(this,"previousAdStatus",void 0),f()(this,"canBeHandled",function(e,t){var n=r.store.getState;switch(Fi.loadingImaStatus(n())){case"loading":return!1;case"success":case"error":return!0;case"blocked":return t(),!0;case"":default:return!1}}),f()(this,"onAdStatusChanged",function(e){var t=_i.adStatus(e),n=_i.currentAdTag(e);switch(t){case"requested":r.eventsCallbacksHandler.onEvent(Es.AD_REQUEST_EVENT,{tag:n});break;case"paused":r.eventsCallbacksHandler.onEvent(Es.AD_PAUSE_EVENT,{tag:n});break;case"completed":r.eventsCallbacksHandler.onEvent(Es.AD_COMPLETE_EVENT,{tag:n});break;case"skipped":r.eventsCallbacksHandler.onEvent(Es.AD_SKIPPED_EVENT,{tag:n});break;case"playing":"paused"===r.previousAdStatus?r.eventsCallbacksHandler.onEvent(Es.AD_RESUME_EVENT,{tag:n}):r.eventsCallbacksHandler.onEvent(Es.AD_PLAY_EVENT,{tag:n});break;case"error":var i=_i.adErrorMessage(e);r.eventsCallbacksHandler.onEvent(Es.AD_ERROR_EVENT,{tag:n,message:i})}r.previousAdStatus=t}),f()(this,"onAtTimeChanged",function(e){var t=_i.adCurrentTime(e),n=_i.currentAdTag(e),i=_i.adDuration(e);r.eventsCallbacksHandler.onEvent(Es.AD_TIME_EVENT,{position:t,tag:n,duration:i})}),f()(this,"onAdMuteChanged",function(e){var t=_i.adMuted(e);r.eventsCallbacksHandler.onEvent(Es.AD_MUTE_EVENT,{state:t})}),f()(this,"onAdProviderLoadingChanged",function(e){"blocked"===Fi.loadingImaStatus(e)&&r.eventsCallbacksHandler.onEvent(Es.AD_BLOCK_EVENT)}),f()(this,"onAdImpressionChanged",function(e){var t=_i.currentAdTag(e);r.eventsCallbacksHandler.onEvent(Es.AD_IMPRESSION_EVENT,{tag:t})}),f()(this,"onAdOpportunityChanged",function(e){var t=_i.currentAdTag(e);r.eventsCallbacksHandler.onEvent(Es.AD_OPPORTUNITY_EVENT,{tag:t})}),this.store=t,this.eventsCallbacksHandler=n,this.previousAdStatus=_i.adStatus(t.getState()),this.adStatusSubscriber=new ji(t,e.getAdStatusDependencies,this.onAdStatusChanged.bind(this)),this.adTimeSubscriber=new ji(t,e.getAdTimeDependencies,this.onAtTimeChanged.bind(this)),this.adMuteSubscriber=new ji(t,e.getAdMuteDependencies,this.onAdMuteChanged.bind(this)),this.adImpressionSubscriber=new ji(t,e.getAdImpressionDependencies,this.onAdImpressionChanged.bind(this)),this.adOpportunitySubscriber=new ji(t,e.getAdOpportunitySubscriberDependencies,this.onAdOpportunityChanged.bind(this)),this.adProviderLoadingStatusSubscriber=new ji(t,e.getAdProviderLoadingDependencies,this.onAdProviderLoadingChanged.bind(this))}return Vi()(e,null,[{key:"getAdStatusDependencies",value:function(e){return[_i.adStatus(e)]}},{key:"getAdTimeDependencies",value:function(e){return[_i.adCurrentTime(e)]}},{key:"getAdMuteDependencies",value:function(e){return[_i.adMuted(e)]}},{key:"getAdProviderLoadingDependencies",value:function(e){return[Fi.loadingImaStatus(e)]}}]),e}();f()(Cs,"isAdEvent",function(e){return ws.some(function(t){return t===e})}),f()(Cs,"getAdImpressionDependencies",function(e){return[_i.adImpression(e)]}),f()(Cs,"getAdOpportunitySubscriberDependencies",function(e){return[_i.adOpportunity(e)]});var Rs=function e(t){var n=this;Ai()(this,e),f()(this,"contentEvents",void 0),f()(this,"generalEvents",void 0),f()(this,"adEvents",void 0),f()(this,"subscribers",{}),f()(this,"onRegisterToEvent",function(e,t,r){n.isValidEvent(e)&&(Ts.isContentEvent(e)&&n.contentEvents.canBeHandled(e,t)||Cs.isAdEvent(e)&&n.adEvents.canBeHandled(e,t())||n.getEventSubscribersList(e).push({callback:t,once:r}))}),f()(this,"isValidEvent",function(e){return Ps.some(function(t){return t===e})}),f()(this,"getEventSubscribersList",function(e){return Array.isArray(n.subscribers[e])||(n.subscribers[e]=[]),n.subscribers[e]}),f()(this,"filterOutOnceCallbacks",function(e,t){n.subscribers[e]=t.filter(function(e){return!e.once})}),f()(this,"onEvent",function(e,t){var r=n.getEventSubscribersList(e);r.forEach(function(e){(0,e.callback)(t)}),n.filterOutOnceCallbacks(e,r)}),this.contentEvents=new Ts(t,this),this.generalEvents=new As(t,this),this.adEvents=new Cs(t,this)},Ds=function(){function e(t){Ai()(this,e),f()(this,"eventsHandler",void 0),this.eventsHandler=new Rs(t)}return Vi()(e,[{key:"on",value:function(e,t){this.eventsHandler.onRegisterToEvent(e,t,!1)}},{key:"once",value:function(e,t){this.eventsHandler.onRegisterToEvent(e,t,!0)}}]),e}();function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ks=function(){var e=window.monti.dataset;return jn(e)?(e={players:{},preact:Is(Is({},r),i),store:{},plugins:{}},window.monti.dataset=e,e):e},Ns=function(e){var t=function(){var e=(new Date).getTime(),t=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)})}(),n=function(e,t){var n=ns(e.dev_config),r=ks(),i=n.dispatch;return r.store[t]=n,function(e,t){return function(n){n({type:"[CORE] initiate store",payload:{initiateParams:e,playerInstanceUniqId:t}})}}(e,t)(i),n}(e,t);return function(e,t,n){B(b(Pi,{playerId:t,store:n,playerPosition:e}),e)}(e.player_pos,t,n),oa.getInstance().loadInternalPlugins(n,t,e),ss.createInstance(n,t),vs.createInstance(n,t),is.createInstance(n,e.media_id,e.content_type,e.dev_config),function(e){var t=e.dispatch;if(er(Ci.getInstance().getHLSLoadingStatus())(t),Qn(Ci.getInstance().getIMALoadingStatus())(t),!Ci.getInstance().isDependenciesReady()){var n=new os(e);Ci.getInstance().addDependenciesCallback(n)}}(n),function(e,t){ks().players[t]=new Ds(e)}(n,t),t},Ls=function(e){return console.log("player initiation start",e),new Promise(function(t,n){try{var r=function(e){var t=e.player_pos||document.currentScript.parentElement,n=e.media_id||e.content_id;return cs(cs({},e),{},{player_pos:t,media_id:n})}(function(e){var t=e.player_id,n=ds(t);return null===n?e:cs(cs({},e),n)}(e)),i=Ns(r);!function(e){var t=new CustomEvent("montiConfigLoaded",{detail:{playerKey:e}});window.dispatchEvent(t)}(i),t(i)}catch(o){console.error("Player initiation error",o),n(o)}})},xs=function(){return{initiate:Ls}};window.monti=xs,Ci.getInstance().loadExternalDependencies()}]); window.monti().initiate(Object.assign({player_pos: document.currentScript.parentElement}, {"is_conflicting_with_other_jw_players":false,"programmatic_play_with_sound_on_desktop":false,"referrer_id":"af93e181-b289-0560-a2bf-808e93bb05bc","width":"100","comscore_publisher_id":"18120612","monetization":{"ad_type":"static_tag","continue_content_play_while_waiting_for_ad":false,"strategy":"on_player_load","ad_request_timeout":"10000","midrolls":{"on":[0]},"vpaid_mode":"ENABLED","ad_tag":"https://pubads.g.doubleclick.net/gampad/ads?sz=400x300|640x480|480x270|640x360&iu=/175840252/MMPlus/smithsonianmag/Video&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=##REFERRER_URL_UNESC##&description_url=##DESCRIPTION_URL_UNESC##&correlator=##CACHEBUSTER##&cust_params=mm_midroll%3D##MIDROLL_ORDER##%26video_ID%3D##VIDEO_ID##"},"sponsorship":false,"player_identifier":"mplayer","recommendation_id":null,"brand_color":"#FF9900","powered_by_strip":true,"platform":"buffy","type":"video","config_name":"MM+ | Smithsonianmag | Podding","player_id":"3v9g2u2f","playlist_id":"fSkmeWKF","playback_method":"autoplay","anchor_viewability_method":"none","player_version":"v4","playlist_type":"semantic","semantic_options":{"scan_images_on_page":true,"scanned_element":"","tags":"geogrophy,nature,animals,habitat,outdoors,science,history","minimum_date_factor":30,"scanned_element_type":"tag","scoped_keywords":"mentalfloss","promoted_videos":[]},"script_destination":"mm","publisher_contribution":"floor8","general_script_description":"","brand_logo":"","brand_logo_click_url":"","next_video":"none","uniq_key":"af93e181-b289-0560-a2bf-808e93bb05bc","content_id":"fSkmeWKF","content_type":"semantic"})); Finland has vastly improved in reading, math and science literacy over the past decade in large part because its teachers are trusted to do whatever it takes to turn young lives around. This 13-year-old, Besart Kabashi, received something akin to royal tutoring.

      Kari Louhiuori, a principal at a Finnish school made a mostly unheaard of and uncanny decision to hold back an immigrant student from 6th grader named Besart because he hadnʻt felt that this young man was falling behind due to laziness but to a lack of comprehension. After a year of "royal tutoring," by allowing the boy to read at his own pace, it worked!

  2. Sep 2020
    1. The more mental sweat it takes to dig it out, the more securely it will be subsequently anchored.None of which is to suggest that these techniques — alternating study environments, mixing content, spacing study sessions, self-testing or all the above — will turn a grade-A slacker into a grade-A student. Motivation matters. So do impressing friends, making the hockey team and finding the nerve to text the cute student in social studies.“In lab experiments, you’re able to control for all factors except the one you’re studying,” said Dr. Willingham. “Not true in the classroom, in real life. All of these things are interacting at the same time.”But at the very least, the cognitive techniques give parents and students, young and old, something many did not have before: a study plan based on evidence, not schoolyard folk wisdom, or empty theorizing.

      In the end, none of these proven techniques based on real evidence will make us better students unless we have the motivation to execute them wholeheartedly.

    2. “Testing has such bad connotation; people think of standardized testing or teaching to the test,” Dr. Roediger said. “Maybe we need to call it something else, but this is one of the most powerful learning tools we have.”Of course, one reason the thought of testing tightens people’s stomachs is that tests are so often hard. Paradoxically, it is just this difficulty that makes them such effective study tools, research suggests. The harder it is to remember something, the harder it is to later forget. This effect, which researchers call “desirable difficulty,” is evident in daily life. The name of the actor who played Linc in “The Mod Squad”? Francie’s brother in “A Tree Grows in Brooklyn”? The name of the co-discoverer, with Newton, of calculus?

      Testing gets a bad wrap but the benefits outway the stress. It's The difficulty of it all which make the information easier to remember.

    3. “The idea is that forgetting is the friend of learning,” said Dr. Kornell. “When you forget something, it allows you to relearn, and do so effectively, the next time you see it.”That’s one reason cognitive scientists see testing itself — or practice tests and quizzes — as a powerful tool of learning, rather than merely assessment. The process of retrieving an idea is not like pulling a book from a shelf; it seems to fundamentally alter the way the information is subsequently stored, making it far more accessible in the future.Dr. Roediger uses the analogy of the Heisenberg uncertainty principle in physics, which holds that the act of measuring a property of a particle (position, for example) reduces the accuracy with which you can know another property (momentum, for example): “Testing not only measures knowledge but changes it,” he says — and, happily, in the direction of more certainty, not less.In one of his own experiments, Dr. Roediger and Jeffrey Karpicke, who is now at Purdue University, had college students study science passages from a reading comprehension test, in short study periods. When students studied the same material twice, in back-to-back sessions, they did very well on a test given immediately afterward, then began to forget the material.But if they studied the passage just once and did a practice test in the second session, they did very well on one test two days later, and another given a week later.

      Given the time between study sessions make you forget the material, Somehow in that forgetting- aids in the ability to integrate information more constructively for recall. Dr. Roediger and Jeffrey Karpicke, elaborate this point in an experiment where students fared well on tests administered directly after small learning bursts but soon after forgot. In direct contrast, when students broke out into a practice test after only one study session, then another a week following, they managed to achieve fantastic scores on both.

    4. Cognitive scientists do not deny that honest-to-goodness cramming can lead to a better grade on a given exam. But hurriedly jam-packing a brain is akin to speed-packing a cheap suitcase, as most students quickly learn — it holds its new load for a while, then most everything falls out.“With many students, it’s not like they can’t remember the material” when they move to a more advanced class, said Henry L. Roediger III, a psychologist at Washington University in St. Louis. “It’s like they’ve never seen it before.”When the neural suitcase is packed carefully and gradually, it holds its contents for far, far longer. An hour of study tonight, an hour on the weekend, another session a week from now: such so-called spacing improves later recall, without requiring students to put in more overall study effort or pay more attention, dozens of studies have found.No one knows for sure why. It may be that the brain, when it revisits material at a later time, has to relearn some of what it has absorbed before adding new stuff — and that that process is itself self-reinforcing.

      Our brains bandwidth is compared to that of a suitcase; cramming for an exam or spacing study sessions incrementally apart throughout the week is like manically stuffing a knockoff suitcase that falls apart at the seems with that of a quality purchased suitcase that has been methodically and mindfully packed for a long journey. We could go even further to say how much easier it is to locate articles of clothing or information because of how well its organized.

    5. These findings extend well beyond math, even to aesthetic intuitive learning. In an experiment published last month in the journal Psychology and Aging, researchers found that college students and adults of retirement age were better able to distinguish the painting styles of 12 unfamiliar artists after viewing mixed collections (assortments, including works from all 12) than after viewing a dozen works from one artist, all together, then moving on to the next painter.The finding undermines the common assumption that intensive immersion is the best way to really master a particular genre, or type of creative work, said Nate Kornell, a psychologist at Williams College and the lead author of the study. “What seems to be happening in this case is that the brain is picking up deeper patterns when seeing assortments of paintings; it’s picking up what’s similar and what’s different about them,” often subconsciously.

      Presented with new information that is varied and dynamic forces one to find common threads and distinctions to familiarize oneself with the subject matter; the mind creates greater connectivity and deeper understandings. So in mastering a subject, this method defyʻs the frequent premise that the most effective way to is by "intensive immersion."

    6. “When students see a list of problems, all of the same kind, they know the strategy to use before they even read the problem,” said Dr. Rohrer. “That’s like riding a bike with training wheels.” With mixed practice, he added, “each problem is different from the last one, which means kids must learn how to choose the appropriate procedure — just like they had to do on the test.”

      theres an element of auto piloting answers to problems when you see they're all alike. The mind isnʻt encouraged to employ critical thinking skills

    7. Clear a quiet work space. Stick to a homework schedule. Set goals. Set boundaries. Do not bribe (except in emergencies)
      1. Author is setting us up to see how we may have it all wrong given the standard school prep advice after the long summer break.
    8. Yet there are effective approaches to learning, at least for those who are motivated. In recent years, cognitive scientists have shown that a few simple techniques can reliably improve what matters most: how much a student learns from studying.

      What we now find are more worthwhile ways to offer students solid, and easy to understand studying tools.

    9. The findings can help anyone, from a fourth grader doing long division to a retiree taking on a new language. But they directly contradict much of the common wisdom about good study habits, and they have not caught on.For instance, instead of sticking to one study location, simply alternating the room where a person studies improves retention. So does studying distinct but related skills or concepts in one sitting, rather than focusing intensely on a single thing.

      Any age can benefit. Unfortunately, these findings arent well know, and they go against what has been widely adopted. as in the idea of believing one needs to dedicate one area to studies or dedicate to one topic of study.

    10. “We have known these principles for some time, and it’s intriguing that schools don’t pick them up, or that people don’t learn them by trial and error,” said Robert A. Bjork, a psychologist at the University of California, Los Angeles. “Instead, we walk around with all sorts of unexamined beliefs about what works that are mistaken.”Take the notion that children have specific learning styles, that some are “visual learners” and others are auditory; some are “left-brain” students, others “right-brain.” In a recent review of the relevant research, published in the journal Psychological Science in the Public Interest, a team of psychologists found almost zero support for such ideas. “The contrast between the enormous popularity of the learning-styles approach within education and the lack of credible evidence for its utility is, in our opinion, striking and disturbing,” the researchers concluded.Ditto for teaching styles, researchers say. Some excellent instructors caper in front of the blackboard like summer-theater Falstaffs; others are reserved to the point of shyness. “We have yet to identify the common threads between teachers who create a constructive learning atmosphere,” said Daniel T. Willingham, a psychologist at the University of Virginia and author of the book “Why Don’t Students Like School?”

      Given what science tells us about how ineffective current belief systems are concerning learning and teaching styles, psychologists are disturbed at how the vast population accept these unfounded theories. ie. "visual" vs "auditory," "right brained" vs left "brained learners," and shy vs outgoing teachers.

    11. Forcing the brain to make multiple associations with the same material may, in effect, give that information more neural scaffolding.

      "Forcing the brain to make multiple associations with the same material may, in effect, give that information more neural scaffolding."

    12. But individual learning is another matter, and psychologists have discovered that some of the most hallowed advice on study habits is flat wrong. For instance, many study skills courses insist that students find a specific place, a study room or a quiet corner of the library, to take their work. The research finds just the opposite. In one classic 1978 experiment, psychologists found that college students who studied a list of 40 vocabulary words in two different rooms — one windowless and cluttered, the other modern, with a view on a courtyard — did far better on a test than students who studied the words twice, in the same room. Later studies have confirmed the finding, for a variety of topics.The brain makes subtle associations between what it is studying and the background sensations it has at the time, the authors say, regardless of whether those perceptions are conscious. It colors the terms of the Versailles Treaty with the wasted fluorescent glow of the dorm study room, say; or the elements of the Marshall Plan with the jade-curtain shade of the willow tree in the backyard. Forcing the brain to make multiple associations with the same material may, in effect, give that information more neural scaffolding.

      An experiment conducted as far back as 1978 proves that we retain information better when we study in a different environments. By having college kids study 40 vocab words in 2 different settings the resulting scores showed the students who changed there study environments did significantly better than those who had in one setting. This is a way of "Forcing the brain to make multiple associations with the same material may, in effect, give that information more neural scaffolding." (11)

    13. “What we think is happening here is that, when the outside context is varied, the information is enriched, and this slows down forgetting,” said Dr. Bjork, the senior author of the two-room experiment.Varying the type of material studied in a single sitting — alternating, for example, among vocabulary, reading and speaking in a new language — seems to leave a deeper impression on the brain than does concentrating on just one skill at a time. Musicians have known this for years, and their practice sessions often include a mix of scales, musical pieces and rhythmic work. Many athletes, too, routinely mix their workouts with strength, speed and skill drills.The advantages of this approach to studying can be striking, in some topic areas. In a study recently posted online by the journal Applied Cognitive Psychology, Doug Rohrer and Kelli Taylor of the University of South Florida taught a group of fourth graders four equations, each to calculate a different dimension of a prism. Half of the children learned by studying repeated examples of one equation, say, calculating the number of prism faces when given the number of sides at the base, then moving on to the next type of calculation, studying repeated examples of that. The other half studied mixed problem sets, which included examples of all four types of calculations grouped together. Both groups solved sample problems along the way, as they studied.A day later, the researchers gave all of the students a test on the material, presenting new problems of the same type. The children who had studied mixed sets did twice as well as the others, outscoring them 77 percent to 38 percent. The researchers have found the same in experiments involving adults and younger children

      Further studies indicate that not only does switching up the environment improve retention, so does diversifying the content and how the content is presented. One research found notable differences showing how 4th graders given varied problem sets" scored 39 points higher than those who were given similar problem sets to solve a mathematical problem. What's great about that is these methods apply across many disciplines and ages.

    1. It is nevertheless a matter ofconcern that the collection of the data by Facebook may haveinvolved practices that were not fully consistent with the prin-ciples of obtaining informed consent and allowing participantsto opt out.

      If all users agree to the Data Use Policy prior to creating their accounts on Facebook then why is it a matter of concern. We should expect to be used.

    2. Data processingsystems, per-user aggregates, and anonymized results available upon request

      Sure, this may be lying by omission but it is clear that we need only to ask. Thankfully we have courses like these. Which begs the question; Are Middle and High school social studies, and health courses offering this information available?

    3. interaction was also observed, showing that the effect was strongerwhen positive words were omitted

      I wonder why omitting positive words created stronger negative effects vs omitting negative words? Are we that sensitive? I had no idea.

    4. withdrawal effect: People who were ex-posed to fewer emotional posts (of either valence) in their NewsFeed were less expressive overall on the following days, ad-dressing the question about how emotional expression affectssocial engagement online. This observation, and the fact thatpeople were more emotionally positive in response to positiveemotion updates from their friends, stands in contrast to theoriesthat suggest viewing positive posts by friends on Facebook maysomehow affect us negatively, for example, via social comparison

      I can clearly recollect neutral non emotional news feed sessions where I was not piqued, engaged or interested in posting.

      HOw interesting that this study conflicts with the common idea that viewing positive updates by friends may compel us to experience negative comparisons.

    5. As a secondary mea-sure, we tested for cross-emotional contagion in which theopposite emotion should be inversely affected: People in thepositivity-reduced condition should express increased negativity,whereas people in the negativity-reduced condition should ex-press increased positivity.

      Itʻs only fair! I see no issue with this experiment other than the lack of educating the public about how they will be manipulated. Or would knowing defeat the point and make the study less effective?