Friday, April 1, 2016

Googling ‘Terrence Howard’ and ‘O.J. Simpson’ Together Takes You to a Magical Place

/gi,xt=/([?&])_=[^&]*/,kt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Lt=Z.fn.load,Mt={},Vt={},Ft=["*/"]+["*"];try{Ct=H.href}catch(Ut){Ct=j.createElement("a"),Ct.href="",Ct=Ct.href}Tt=kt.exec(Ct.toLowerCase())||[],Z.fn.load=function(e,n,i){if("string"!=typeof e&&Lt)return Lt.apply(this,arguments);if(!this.length)return this;var r,o,a,s=this,l=e.indexOf(" ");return l>=0&&(r=e.slice(l,e.length),e=e.slice(0,l)),Z.isFunction(n)?(i=n,n=t):n&&"object"==typeof n&&(o="POST"),Z.ajax({url:e,type:o,dataType:"html",data:n,complete:function(e,t){i&&s.each(i,a||[e.responseText,t,e])}}).done(function(e){a=arguments,s.html(r?Z("

").append(e.replace(Pt,"")).find(r):e)}),this},Z.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z.each(["get","post"],function(e,n){Z[n]=function(e,i,r,o){return Z.isFunction(i)&&(o=o||r,r=i,i=t),Z.ajax({type:n,url:e ,data:i,success:r,dataType:o})}}),Z.extend({getScript:function(e,n){return Z.get(e,t,n,"script")},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?N(e,Z.ajaxSettings):(t=e,e=Z.ajaxSettings),N(e,t),e},ajaxSettings:{url:Ct,isLocal:Rt.test(Tt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Ft},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:T(Mt),ajaxTransport:T(Vt),ajax:function(e,n){function i(e,n,i,a){var c,d,v,y,_,A=n;2!==b&&(b=2,l&&clearTimeout(l),s=t,o=a||"",S.readyState=e>0?4:0,i&&(y=O(p,S,i)),e>=200&&300>e||304===e?(p.ifModified& &(_=S.getResponseHeader("Last-Modified"),_&&(Z.lastModified[r]=_),_=S.getResponseHeader("Etag"),_&&(Z.etag[r]=_)),304===e?(A="notmodified",c=!0):(c=R(p,y),A=c.state,d=c.data,v=c.error,c=!v)):(v=A,A&&!e||(A="error",0>e&&(e=0))),S.status=e,S.statusText=(n||A)+"",c?m.resolveWith(h,[d,A,S]):m.rejectWith(h,[S,A,v]),S.statusCode(g),g=t,u&&f.trigger("ajax"+(c?"Success":"Error"),[S,p,c?d:v]),E.fireWith(h,[S,A]),u&&(f.trigger("ajaxComplete",[S,p]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var r,o,a,s,l,c,u,d,p=Z.ajaxSetup({},n),h=p.context||p,f=h!==p&&(h.nodeType||h instanceof Z)?Z(h):Z.event,m=Z.Deferred(),E=Z.Callbacks("once memory"),g=p.statusCode||{},v={},y={},b=0,_="canceled",S={readyState:0,setRequestHeader:function(e,t){if(!b){var n=e.toLowerCase();e=y[n]=y[n]||e,v[e]=t}return this},getAllResponseHeaders:function(){return 2===b?o:null},getResponseHeader:function(e){var n;if(2== =b){if(!a)for(a={};n=Ot.exec(o);)a[n[1].toLowerCase()]=n[2];n=a[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return b||(p.mimeType=e),this},abort:function(e){return e=e||_,s&&s.abort(e),i(0,e),this}};if(m.promise(S),S.success=S.done,S.error=S.fail,S.complete=E.add,S.statusCode=function(e){if(e){var t;if(2>b)for(t in e)g[t]=[g[t],e[t]];else t=e[S.status],S.always(t)}return this},p.url=((e||p.url)+"").replace(Nt,"").replace(Dt,Tt[1]+"//"),p.dataTypes=Z.trim(p.dataType||"*").toLowerCase().split(te),null==p.crossDomain&&(c=kt.exec(p.url.toLowerCase()),p.crossDomain=!(!c||c[1]===Tt[1]&&c[2]===Tt[2]&&(c[3]||("http:"===c[1]?80:443))==(Tt[3]||("http:"===Tt[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=Z.param(p.data,p.traditional)),C(Mt,p,n,S),2===b)return S;if(u=p.global,p.type=p.type.toUpperCase(),p.hasContent=!It.test(p.type),u&&0===Z.active++&&Z.event.trigger("ajaxSta rt"),!p.hasContent&&(p.data&&(p.url+=(wt.test(p.url)?"&":"?")+p.data,delete p.data),r=p.url,p.cache===!1)){var A=Z.now(),T=p.url.replace(xt,"$1_="+A);p.url=T+(T===p.url?(wt.test(p.url)?"&":"?")+"_="+A:"")}(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&S.setRequestHeader("Content-Type",p.contentType),p.ifModified&&(r=r||p.url,Z.lastModified[r]&&S.setRequestHeader("If-Modified-Since",Z.lastModified[r]),Z.etag[r]&&S.setRequestHeader("If-None-Match",Z.etag[r])),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ft+"; q=0.01":""):p.accepts["*"]);for(d in p.headers)S.setRequestHeader(d,p.headers[d]);if(!p.beforeSend||p.beforeSend.call(h,S,p)!==!1&&2!==b){_="abort";for(d in{success:1,error:1,complete:1})S[d](p[d]);if(s=C(Vt,p,n,S)){S.readyState=1,u&&f.trigger("ajaxSend",[S,p]),p.async&&p.timeout>0& &(l=setTimeout(function(){S.abort("timeout")},p.timeout));try{b=1,s.send(v,i)}catch(N){if(!(2>b))throw N;i(-1,N)}}else i(-1,"No Transport");return S}return S.abort()},active:0,lastModified:{},etag:{}});var Bt=[],jt=/\?/,Ht=/(=)\?(?=&|$)|\?\?/,Wt=Z.now();Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||Z.expando+"_"+Wt++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(n,i,r){var o,a,s,l=n.data,c=n.url,u=n.jsonp!==!1,d=u&&Ht.test(c),p=u&&!d&&"string"==typeof l&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ht.test(l);return"jsonp"===n.dataTypes[0]||d||p?(o=n.jsonpCallback=Z.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,a=e[o],d?n.url=c.replace(Ht,"$1"+o):p?n.data=l.replace(Ht,"$1"+o):u&&(n.url+=(jt.test(c)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||Z.error(o+" was not called"),s[0]},n.dataTypes[0]="json",e[o]=function(){s= arguments},r.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=i.jsonpCallback,Bt.push(o)),s&&Z.isFunction(a)&&a(s[0]),s=a=t}),"script"):void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),Z.ajaxTransport("script",function(e){if(e.crossDomain){var n,i=j.head||j.getElementsByTagName("head")[0]||j.documentElement;return{send:function(r,o){n=j.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,r){(r||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=t,r||o(200,"succes s"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Yt,Gt=e.ActiveXObject?function(){for(var e in Yt)Yt[e](0,1)}:!1,zt=0;Z.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&I()||D()}:I,function(e){Z.extend(Z.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(Z.ajaxSettings.xhr()),Z.support.ajax&&Z.ajaxTransport(function(n){if(!n.crossDomain||Z.support.cors){var i;return{send:function(r,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),!n.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");try{for(s in r)l.setRequestHeader(s,r[s])}catch(c){}l.send(n.hasContent&&n.data||null),i=function(e,r){var s,c,u,d,p;try{if(i&&(r||4===l.readyState))if(i=t,a&&(l. onreadystatechange=Z.noop,Gt&&delete Yt[a]),r)4!==l.readyState&&l.abort();else{s=l.status,u=l.getAllResponseHeaders(),d={},p=l.responseXML,p&&p.documentElement&&(d.xml=p);try{d.text=l.responseText}catch(h){}try{c=l.statusText}catch(h){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(f){r||o(-1,f)}d&&o(s,c,d,u)},n.async?4===l.readyState?setTimeout(i,0):(a=++zt,Gt&&(Yt||(Yt={},Z(e).unload(Gt)),Yt[a]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}});var qt,Kt,$t=/^(?:toggle|show|hide)$/,Xt=new RegExp("^(?:([-+])=|)("+J+")([a-z%]*)$","i"),Qt=/queueHooks$/,Zt=[L],Jt={"*":[function(e,t){var n,i,r=this.createTween(e,t),o=Xt.exec(t),a=r.cur(),s=+a||0,l=1,c=20;if(o){if(n=+o[2],i=o[3]||(Z.cssNumber[e]?"":"px"),"px"!==i&&s){s=Z.css(r.elem,e,!0)||n||1;do l=l||".5",s/=l,Z.style(r.elem,e,s+i);while(l!==(l=r.cur()/a)&&1!==l&&--c)}r.unit=i,r.start=s,r.end=o[1]?s+(o[1]+1)* n:n}return r}]};Z.Animation=Z.extend(x,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;r>i;i++)n=e[i],Jt[n]=Jt[n]||[],Jt[n].unshift(t)},prefilter:function(e,t){t?Zt.unshift(e):Zt.push(e)}}),Z.Tween=M,M.prototype={constructor:M,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(Z.cssNumber[n]?"":"px")},cur:function(){var e=M.propHooks[this.prop];return e&&e.get?e.get(this):M.propHooks._default.get(this)},run:function(e){var t,n=M.propHooks[this.prop];return this.options.duration?this.pos=t=Z.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(e){v ar t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,!1,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.each(["toggle","show","hide"],function(e,t){var n=Z.fn[t];Z.fn[t]=function(i,r,o){return null==i||"boolean"==typeof i||!e&&Z.isFunction(i)&&Z.isFunction(r)?n.apply(this,arguments):this.animate(V(t,!0),i,r,o)}}),Z.fn.extend({fadeTo:function(e,t,n,i){return this.filter(g).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=Z.isEmptyObject(e),o=Z.speed(t,n,i),a=function(){var t=x(this,Z.extend({},e),o);r&&t.stop(!0)};return r||o.queue===!1 ?this.each(a):this.queue(o.queue,a)},stop:function(e,n,i){var r=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=Z.timers,a=Z._data(this);if(n)a[n]&&a[n].stop&&r(a[n]);else for(n in a)a[n]&&a[n].stop&&Qt.test(n)&&r(a[n]);for(n=o.length;n--;)o[n].elem===this&&(null==e||o[n].queue===e)&&(o[n].anim.stop(i),t=!1,o.splice(n,1));(t||!i)&&Z.dequeue(this,e)})}}),Z.each({slideDown:V("show"),slideUp:V("hide"),slideToggle:V("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Z.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),Z.speed=function(e,t,n){var i=e&&"object"==typeof e?Z.extend({},e):{complete:n||!n&&t||Z.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Z.isFunction(t)&&a mp;t};return i.duration=Z.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in Z.fx.speeds?Z.fx.speeds[i.duration]:Z.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){Z.isFunction(i.old)&&i.old.call(this),i.queue&&Z.dequeue(this,i.queue)},i},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.timers=[],Z.fx=M.prototype.init,Z.fx.tick=function(){var e,n=Z.timers,i=0;for(qt=Z.now();i-1,d={},p={};u?(p=a.position(),r=p.top,o=p.left):(r=parseFloat(l)||0,o=parseFloat(c)||0),Z.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+r),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):a.css(d)}},Z.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),n=this.offset(),i=en.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(Z.css(e,"marginTop"))||0,n.left-=parseFloat(Z.css(e, "marginLeft"))||0,i.top+=parseFloat(Z.css(t[0],"borderTopWidth"))||0,i.left+=parseFloat(Z.css(t[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||j.body;e&&!en.test(e.nodeName)&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||j.body})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var i=/Y/.test(n);Z.fn[e]=function(r){return Z.access(this,function(e,r,o){var a=F(e);return o===t?a?n in a?a[n]:a.document.documentElement[r]:e[r]:void(a?a.scrollTo(i?Z(a).scrollLeft():o,i?o:Z(a).scrollTop()):e[r]=o)},e,r,arguments.length,null)}}),Z.each({Height:"height",Width:"width"},function(e,n){Z.each({padding:"inner"+e,content:n,"":"outer"+e},function(i,r){Z.fn[r]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),s=i||(r===!0||o===!0?"margin":"border");return Z.access(this,function(n,i,r){var o;return Z.isWindow(n)?n.document.docum entElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):r===t?Z.css(n,i,r,s):Z.style(n,i,r,s)},n,a?r:t,a,null)}})}),e.jQuery=e.$=Z,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return Z})}(window);var o=function(e,t){var n=function(t){if(this.config=t||{},!e.isObject(this.config))throw new Error("Hazmat is not initialized properly");this.fail=e.isFunction(this.config.fail)?this.config.fail:n.fail,this.warn=e.isFunction(this.config.warn)?this.config.warn:n.warn,this.log=e.isFunction(this.config.log)?this.config.log:n.log};return e.extend(n,{ID_REGEX:/^[\_\-A-Za-z0-9]+$/,create:function(e){return new n(e)},noConflict:function(){return t.Hazmat=n.original,n},log:function(){window.console&&e.isFunction(window.console.log)&&window.console.log.apply(window.console,arguments)},fail:function(e,t){var i=e||"",r=t||{};t hrow n.log("Hazmat Failure::",i,r),new Error("Hazmat Failure "+i.toString())},warn:function(e,t){var i=e||"",r=t||{};n.log("Hazmat Warning::",i,r)},fixDomId:function(t){return e.isString(t)&&t.length>0?t.replace(/[^A-Za-z0-9\_]/g,""):null},isDomId:function(t){return e.isString(t)&&t.match(n.ID_REGEX)},__placeholder:!0}),e.extend(n.prototype,{_safeValue:function(t,n,i,r){var o=i;return e.isFunction(i)&&(i=e.once(function(){try{return o.apply(this,arguments)}catch(e){}})),r.checker(n)?n:r.evalFallback&&e.isFunction(i)&&r.checker(i(n))?(this.warn("Expected valid "+r.name+" for "+t+" but was able to sanitize it:",[n,i(n)]),i(n)):r.checker(o)?(this.warn("Expected valid "+r.name+" for "+t+" but was able to fallback to default value:",[n,o]),o):void this.fail("Expected valid "+r.name+" for "+t+" but received:",n)},safeString:function(t,n,i){return this._safeValue(t,n,i,{name:"String",checker:e.isString,evalFallback:!0})},safeStringOrNull:function( t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"String",checker:e.isString,evalFallback:!0})},safeDomId:function(e,t,i){return this._safeValue(e,t,i,{name:"DOM ID",checker:n.isDomId,evalFallback:!0})},safeFunction:function(t,n,i){return this._safeValue(t,n,i,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeFunctionOrNull:function(t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeObject:function(t,n,i){return this._safeValue(t,n,i,{name:"Object",checker:e.isObject,evalFallback:!1})},safeObjectOrNull:function(t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"Object",checker:e.isObject,evalFallback:!1})},safeArray:function(t,n,i){return this._safeValue(t,n,i,{name:"Array",checker:e.isArray,evalFallback:!1})},safeArrayOfElements:function(t,n,i,r){var o=this._safeValue(t,n,r,{name:"Array",checker:e.isArray,evalFallback:!1});return e.map(o,i)},__placeholder:!0}),n};if("undefined"!=typeof window&&"undefine d"!=typeof window._){var a=o(window._,window);a.original=window.Hazmat,window.Hazmat=a}else{var s=require("underscore"),a=o(s);s.extend(exports,a)}!function(){var e=8,t="",n=0,i=function(t){var n,i=[],r=(1n;n+=e)i[n>>5]|=(t.charCodeAt(n/e)&r)t;t+=2){if(n=parseInt(e.substr(t,2),16),isNaN(n))return"INVALID HEX STRING";i[t>>3]|=nt;t+=1)i=e[t>>2]>>8*(3-t%4),o+=r.charAt(i>>4&15)+r.charAt(15&i);return o},a=function(e){var n,i,r,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="",s=4*e.length;for(n=0;s>n;n+=3)for(r=(e[n>>2]>>8*(3-n%4)&255)>2]>>8*(3-(n+1)%4)&255)>2]>>8*(3-(n+2)%4)&255,i=0;4>i;i+=1)a+=8*n+6*i>6*(3-i)&63):t;return a},s=function(e,t){return e>>>t|e>>t},c=function(e,t,n){return e&t^~e&n},u=function(e,t,n){return e&t^e&n^t&n},d=function(e){return s(e,2)^s(e,13)^s(e,22)},p=function(e){return s(e,6)^s(e,11)^s(e,25)},h=function(e) {return s(e,7)^s(e,18)^l(e,3)},f=function(e){return s(e,17)^s(e,19)^l(e,10)},m=function(e,t){var n=(65535&e)+(65535&t),i=(e>>>16)+(t>>>16)+(n>>>16);return(65535&i)>>16)+(t>>>16)+(n>>>16)+(i>>>16)+(r>>>16);return(65535&o)>>16)+(t>>>16)+(n>>>16)+(i>>>16)+(r>>>16)+(o>>>16);return(65535&a)>9>5]|=128T;T+=16){for(i=S[0],r=S[1],o=S[2],a=S[3],s=S[4],l=S[5],v=S[6],y=S[7],C=0;64>C;C+=1)16>C?R[C]=e[C+T]:R[C]=E(f(R[C-2]),R[C-7],h(R[C-15]),R[C-16]),b=g(y,p(s),c(s,l,v),N[C],R[C]),_=m(d(i),u(i,r,o)),y=v,v=l,l=s,s=m(a,b),a=o,o=r,r=i,i=m(b,_);S[0]=m(i,S[0]),S[1]=m(r,S[1]),S[2]=m(o,S[2]),S[3]=m(a,S[3]),S[4]=m(s,S[4]),S[5]=m(l,S[5]),S[6]=m(v,S[6]),S[7]=m(y,S[7])}switch(n){case"SHA-224":return[S[0],S[1],S[2],S[3],S[4],S[5],S[6]];case"SHA-256":return S;default:return[]}},y=function(t,n){ if(this.sha224=null,this.sha256=null,this.strBinLen=null,this.strTo Hash=null,"HEX"===n){if(0!==t.length%2)return"TEXT MUST BE IN BYTE INCREMENTS";this.strBinLen=4*t.length,this.strToHash=r(t)}else{if("ASCII"!==n&&"undefined"!=typeof n)return"UNKNOWN TEXT INPUT TYPE";this.strBinLen=t.length*e,this.strToHash=i(t)}};y.prototype={getHash:function(e,t){var n=null,i=this.strToHash.slice();switch(t){case"HEX":n=o;break;case"B64":n=a;break;default:return"FORMAT NOT RECOGNIZED"}switch(e){case"SHA-224":return null===this.sha224&&(this.sha224=v(i,this.strBinLen,e)),n(this.sha224);case"SHA-256":return null===this.sha256&&(this.sha256=v(i,this.strBinLen,e)),n(this.sha256);default:return"HASH NOT RECOGNIZED"}},getHMAC:function(t,n,s,l){var c,u,d,p,h,f,m=[],E=[];switch(l){case"HEX":c=o;break;case"B64":c=a;break;default:return"FORMAT NOT RECOGNIZED"}switch(s){case"SHA-224":f=224;break;case"SHA-256":f=256;break;default:return"HASH NOT RECOGNIZED"}if("HEX"===n){if(0!==t.length%2)return"KEY MUST BE IN BYTE INCREMENTS";u=r(t),h=4*t.length}else{ if("ASCII"!==n)return"UNKNOWN KEY INPUT TYPE";u=i(t),h=t.length*e}for(h/8>64?(u=v(u,h,s),u[15]&=4294967040):64>h/8&&(u[15]&=4294967040),d=0;15>=d;d+=1)m[d]=909522486^u[d],E[d]=1549556828^u[d];return p=v(m.concat(this.strToHash),512+this.strBinLen,s),p=v(E.concat(p),512+f,s),c(p)}},window.jsSHA=y}(),window.LZW={encode:function(e){for(var t,n={},i=(e+"").split(""),r=[],o=i[0],a=256,s=1;s1?n[o]:o.charCodeAt(0)),n[o+t]=a,a++,o=t);r.push(o.length>1?n[o]:o.charCodeAt(0));for(var s=0;sc?i[l]:n[c]?n[c]:o+r,a.push(t),r=t.charAt(0),n[s]=o+r,s++,o=t}return a.join("")}},function(){var e={};e.PADCHAR="=",e.ALPHA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.makeDOMException=function(){try{return new DOMException(DOMException.INVALID_CHARACTER_ERR)}catch(e){var t=new Error("DOM Exception 5");return t.code=t.number=5,t.name=t.description="INVALID_CHARACTER_ERR",t.toString=function(){return"Error: "+t.name+": "+t.message},t}},e.getbyte64=function(t ,n){var i=e.ALPHA.indexOf(t.charAt(n));if(-1===i)throw e.makeDOMException();return i},e.decode=function(t){t=""+t;var n,i,r,o=e.getbyte64,a=t.length;if(0===a)return t;if(a%4!==0)throw e.makeDOMException();n=0,t.charAt(a-1)===e.PADCHAR&&(n=1,t.charAt(a-2)===e.PADCHAR&&(n=2),a-=4);var s=[];for(i=0;a>i;i+=4)r=o(t,i)>16,r>>8&255,255&r));switch(n){case 1:r=o(t,i)>16,r>>8&255));break;case 2:r=o(t,i)>16))}return s.join("")},e.getbyte=function(t,n){var i=t.charCodeAt(n);if(i>255)throw e.makeDOMException();return i},e.encode=function(t){if(1!==arguments.length)throw new SyntaxError("Not enough arguments");var n,i,r=e.PADCHAR,o=e.ALPHA,a=e.getbyte,s=[];t=""+t;var l=t.length-t.length%3;if(0===t.length)return t;for(n=0;l>n;n+=3)i=a(t,n)>18)),s.push(o.charAt(i>>12&63)),s.push(o.charAt(i>>6&63)),s.push(o.charAt(63&i));switch(t.length-l){case 1:i=a(t,n)>18)+o.charAt(i>>12&63)+r+r);break;case 2:i=a(t,n )>18)+o.charAt(i>>12&63)+o.charAt(i>>6&63)+r)}return s.join("")},window.base64=e}(),function(e){e._=window._.noConflict(),e.$=window.$.noConflict(!0),e.HM=window.Hazmat.noConflict().create(),e.jsSHA=window.jsSHA,e.LZW=window.LZW,window.console&&window.console.log||(window.console=window.console||{},window.console.log=function(){})}(e),function(e,t,n){e.playerParams=n.safeObject("environment.playerParams",e.playerParams,{}),e.configurePublisher=function(t){e.playerParams.pcode=e.playerParams.pcode||t.pcode||"",e.playerParams.playerBrandingId=e.playerParams.playerBrandingId||t.playerBrandingId||"",e.playerParams.debug=e.playerParams.debug||t.debug||""},e.isPublisherConfigured=function(){return e.playerParams.pcode&&e.playerParams.playerBrandingId},e.playerParams.tweaks=e.playerParams.tweaks||"",e.playerParams.tweaks=n.safeString("environment.playerParams.tweaks",e.playerParams.tweaks,""),e.playerParams.tweaks=e.playerParams.tweaks.split(","),e.tw eaks={},e.tweaks["android-enable-hls"]=t.contains(e.playerParams.tweaks,"android-enable-hls"),e.tweaks["html5-force-mp4"]=t.contains(e.playerParams.tweaks,"html5-force-mp4"),e.playerParams.maxAdsTimeout=e.playerParams.maxAdsTimeout||5,e.playerParams.maxVastWrapperDepth=e.playerParams.maxVastWrapperDepth||3,e.playerParams.minLiveSeekWindow=e.playerParams.minLiveSeekWindow||10,e.guid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}),e.playerCount=0,e.isProd=e.playerParams.environment&&e.playerParams.environment.match(/^prod/i),e.platform=window.navigator.platform,e.os=window.navigator.appVersion,e.supportsVideo=!!document.createElement("video").canPlayType,e.browserSupportsCors=function(){try{return t.has(new XMLHttpRequest,"withCredentials")||t.has(XMLHttpRequest.prototype,"withCredentials")}catch(e){return!1}}(),e.isWindows=function(){return e.platform.match(/Win/)}(),e.isIos=function(){re turn e.platform.match(/iPhone/)||e.platform.match(/iPad/)||e.platform.match(/iPod/)}(),e.isIphone=function(){return e.platform.match(/iPhone/)||e.platform.match(/iPod/)}(),e.isIpad=function(){return e.platform.match(/iPad/)}(),e.iosMajorVersion=function(){try{return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/)?parseInt(window.navigator.userAgent.match(/OS (\d+)/)[1],10):null}catch(e){return null}}(),e.isAndroid=function(){return e.os.match(/Android/)}(),e.isAndroid4Plus=function(){return e.isAndroid&&!e.os.match(/Android [23]/)}(),e.isRimDevice=function(){return e.os.match(/BlackBerry/)||e.os.match(/PlayBook/)}(),e.isFirefox=function(){return!!window.navigator.userAgent.match(/Firefox/)}(),e.isChrome=function(){return!!window.navigator.userAgent.match(/Chrome/)}(),e.isSafari=function(){return!!window.navigator.userAgent.match(/AppleWebKit/)&&!window.navigator.userAgent.match(/Chrome/)}(),e.chromeMajorVersion=function(){try{return parseInt(window.navigator.u serAgent.match(/Chrome.([0-9]*)/)[1],10)}catch(e){return null}}(),e.isIE=function(){return!!window.navigator.userAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/)}(),e.isEdge=function(){return!!window.navigator.userAgent.match(/Edge/)}(),e.isIE11Plus=function(){if(!window.navigator.userAgent.match(/Trident/))return!1;var e=window.navigator.userAgent.match(/rv:(\d*)/),t=e&&e[1];return t>=11}(),e.isWinPhone=function(){return!!e.os.match(/Windows Phone/)||!!e.os.match(/ZuneWP/)||!!e.os.match(/XBLWP/)}(),e.isSmartTV=function(){return!!window.navigator.userAgent.match(/SmartTV/)||!!window.navigator.userAgent.match(/NetCast/)}(),e.isMacOs=function(){return!e.isIos&&!!e.os.match(/Mac/)}(),e.isMacOsLionOrLater=function(){var t=e.os.match(/Mac OS X ([0-9]+)_([0-9]+)/);return null==t||t.length=10&&parseInt(t[2],10)>=7}(),e.isKindleHD=function(){return!!e.os.match(/Silk\/2/)}(),e.supportAds=function(){return!e.isWinPhone&&!e.os.match(/Andr oid [23]/)}(),e.allowGesture=function(){return e.isIos}(),e.allowAutoPlay=function(){return!e.isIos&&!e.isAndroid}(),e.supportTouch=function(){return!(!document.documentElement.hasOwnProperty||!document.documentElement.hasOwnProperty("ontouchstart"))}(),e.docDomain=function(){var t=null;try{t=document.domain}catch(n){}return e._.isEmpty(t)?e.isSmartTV?"SmartTV":"unknown":t}(),e.uiParadigm=function(){var t="tablet";return e.isAndroid4Plus&&e.tweaks["android-enable-hls"]?t="tablet":e.isIphone?t="mobile-native":e.os.match(/BlackBerry/)?t="mobile-native":e.os.match(/iPad/)?t="tablet":e.isKindleHD?t="mobile-native":e.os.match(/Silk/)?t="mobile":e.os.match(/Android 2/)?window.orientation%180==0&&window.outerWidth/window.devicePixelRatio=0;return document.cookie="ooyala_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT",e}(),e.isSSL="https:"==document.location.protocol,e.SERVER={API:e.isSSL?e.playerParams.api_ssl_server||"https://player.ooyala.com":e.playerParams. api_server||"http://player.ooyala.com",AUTH:e.isSSL?e.playerParams.auth_ssl_server||"https://player.ooyala.com/sas":e.playerParams.auth_server||"http://player.ooyala.com/sas",ANALYTICS:e.isSSL?e.playerParams.analytics_ssl_server||"https://player.ooyala.com":e.playerParams.analytics_server||"http://player.ooyala.com",HASTUR:e.isSSL?e.playerParams.hastur_ssl_server||(e.isProd?"https://l.ooyala.com/player_events":"https://l-staging.ooyala.com/player_events"):e.playerParams.hastur_server||(e.isProd?"http://l.ooyala.com/player_events":"http://l-staging.ooyala.com/player_events")},e.requiredInEnvironment=e.featureEnabled=function(t){return!!e.environmentRequiredFeatures.match(new RegExp(t))},e.chromeExtensionEnabled=!!document.getElementById("ooyala-extension-installed"),e.locale="",e.setLocale=function(t){e.locale=t.toUpperCase()},e.getLocale=function(){return(e.locale||document.documentElement.lang||navigator.language||navigator.userLanguage||"en").substr(0,2).toUpperCase()}}(e,e._,e.HM ),function(e,t,n){window.XDomainRequest&&e.$.ajaxTransport(function(t){if(t.crossDomain&&t.async){t.timeout&&(t.xdrTimeout=t.timeout,delete t.timeout);var n;return{send:function(i,r){function o(t,i,o,a){n.onload=n.onerror=n.ontimeout=e.$.noop,n=void 0,r(t,i,o,a)}n=new XDomainRequest,n.open(t.type,t.url),n.onload=function(){o(200,"OK",{text:n.responseText},"Content-Type: "+n.contentType)},n.onerror=function(){o(404,"Not Found")},n.onprogress=function(){},t.xdrTimeout&&(n.ontimeout=function(){o(0,"timeout")},n.timeout=t.xdrTimeout),n.send(t.hasContent&&t.data||null)},abort:function(){n&&(n.onerror=e.$.noop(),n.abort())}}}}),t.getScriptRetry=function(e,i,r){r=r||{};var o=r.error,a=["error","dataType","success"];n.each(a,function(e){delete r[e]});var s={url:e,type:"get",dataType:"script",success:i,cache:!0,timeout:5e3,tryCount:0,retryLimit:1,warning:!1,warningMessage:"Can not load URL",error:function(){this.tryCount&embed_code=&exp ires=&tag_url="),EXTERNAL_ID:t.template("/player_api/v1/content_tree/external_id//"),CONTENT_TREE:t.template("/player_api/v1/content_tree/embed_code//"),METADATA:t.template("/player_api/v1/metadata/embed_code//?videoPcode="),SAS:t.template("/player_api/v2/authorization/embed_code//"),ANALYTICS:t.template("/reporter.js"),__end_marker:!0},e.VIDEO={MAIN:"main",ADS:"ads",ENCODING:{AUDIO:"audio",DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",MP4:"mp4",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake",BITRATE_CONTROL:"bitrateControl"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},e.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSI TION:"-100000px",VISIBLE_DISPLAY:"block",INVISIBLE_DISPLAY:"none",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},e.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","","[timestamp]","","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:' ',__end_marker:!0},e.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:":",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:4,__end_marker:!0}}(e,e._),function(e){e.TEXT={ADS_COUNTDOWN:"adsCountdown",ADS_COUNTDOWN_SECONDS:"adsCountdownSeconds",LIVE:"LIVE",__end_marker:!0}}(e),function(e){e.MESSAGES={EN:{},ES:{},FR:{},JA:{}};var t=e.MESSAGES.EN,n=e.MESSAGES.ES,i=e.MESSAGES.FR,r=e.MESSAGES.JA;t[e.ERROR.API.NETWORK]="Cannot Contact Server",t[e.ERROR.API.SAS.GENERIC]="Invalid Authorization Response",t[e.ERROR.API.SAS.GEO]="This video is not authorized in your location",t[e.ERROR.API.SAS.DOMAIN]="This video is not authorized for your domain",t[e.ERROR.API.SAS.FUTURE]="This video will be available soon",t[e.ERROR.API.SAS.PAST]="This video is no longer available",t[e.ERROR.API.SAS.DEVICE]="This video is not authorized for playback on this device",t[e.ERROR.API.SAS.PROXY]="An anonymous proxy was detected. Ple ase disable the proxy and retry.",t[e.ERROR.API.SAS.CONCURRENT_STREAMS]="You have exceeded the maximum number of concurrent streams",t[e.ERROR.API.SAS.INVALID_HEARTBEAT]="Invalid heartbeat response",t[e.ERROR.API.SAS.ERROR_INVALID_ENTITLEMENTS]="User Entitlement Terminated - Stream No Longer Active for the User",t[e.ERROR.API.CONTENT_TREE]="Invalid Content",t[e.ERROR.API.METADATA]="Invalid Metadata",t[e.ERROR.PLAYBACK.GENERIC]="Could not play the content",t[e.ERROR.PLAYBACK.STREAM]="This video isn't encoded for your device",t[e.ERROR.PLAYBACK.LIVESTREAM]="Live stream is off air",t[e.ERROR.PLAYBACK.NETWORK]="Network connection temporarily lost",t[e.ERROR.UNPLAYABLE_CONTENT]="This video is not playable on this player",t[e.ERROR.INVALID_EXTERNAL_ID]="Invalid External ID",t[e.ERROR.EMPTY_CHANNEL]="This channel is empty",t[e.ERROR.EMPTY_CHANNEL_SET]="This channel set is empty",t[e.ERROR.CHANNEL_CONTENT]="This channel is not playable at this time",t[e.ERROR.VC_PLAY_FAILED]="This video is not encoded for your device",t[e.TEXT.ADS_COUNTDOWN]="Advertisement: Your Video will resume shortly",t[e.TEXT.ADS_COUNTDOWN_SECONDS]="Advertisement: Your Video will resume in ",t[e.TEXT.LIVE]="LIVE",n[e.ERROR.API.NETWORK]="No se puede contactar al servidor",n[e.ERROR.API.SAS.GENERIC]="Respuesta de autorización no válida",n[e.ERROR.API.SAS.GEO]="El vídeo no está autorizado en su ubicación",n[e.ERROR.API.SAS.DOMAIN]="El vídeo no está autorizado para su dominio",n[e.ERROR.API.SAS.FUTURE]="El vídeo estará disponible pronto",n[e.ERROR.API.SAS.PAST]="El vídeo ya no está disponible",n[e.ERROR.API.SAS.DEVICE]="El vídeo no está autorizado para reproducirse en este dispositivo",n[e.ERROR.API.SAS.PROXY]="Se detectó un proxy anónimo. Deshabilite el proxy e intente nuevamente.",n[e.ERROR.API.SAS.CONCURRENT_STREAMS]="Ha superado la cantidad máxima de transmisiones concurrentes",n[e.ERROR.API.SAS.INVALID_HEARTBEAT]="Respuesta de pulso no válida", n[e.ERROR.API.SAS.ERROR_INVALID_ENTITLEMENTS]="La suscripción del usuario a terminado - El video ya no está disponible para el usuario",n[e.ERROR.API.CONTENT_TREE]="Contenido no válido",n[e.ERROR.API.METADATA]="Metadatos no válidos",n[e.ERROR.PLAYBACK.GENERIC]="No se pudo reproducir el contenido",n[e.ERROR.PLAYBACK.STREAM]="El vídeo no está codificado para su dispositivo",n[e.ERROR.PLAYBACK.LIVESTREAM]="La transmisión en vivo está fuera del aire",n[e.ERROR.PLAYBACK.NETWORK]="La conexión de red se halla temporalmente perdida",n[e.ERROR.UNPLAYABLE_CONTENT]="El vídeo no se puede reproducir en este reproductor",n[e.ERROR.INVALID_EXTERNAL_ID]="ID externo no válido",n[e.ERROR.EMPTY_CHANNEL]="El canal está vacío",n[e.ERROR.EMPTY_CHANNEL_SET]="El conjunto de canales está vacío",n[e.ERROR.CHANNEL_CONTENT]="El canal no se puede reproducir en este momento",n[e.ERROR.VC_PLAY_FAILED]="El vídeo no está codificado para su dispositivo",n[e.TEXT.ADS _COUNTDOWN]="Anuncio: el vídeo se reanudará en breve",n[e.TEXT.LIVE]="EN VIVO",i[e.ERROR.API.NETWORK]="Impossible de contacter le serveur",i[e.ERROR.API.SAS.GENERIC]="Réponse d'autorisation non valide",i[e.ERROR.API.SAS.GEO]="Cette vidéo n'est pas autorisée dans votre pays",i[e.ERROR.API.SAS.DOMAIN]="Cette vidéo n'est pas autorisée pour votre domaine",i[e.ERROR.API.SAS.FUTURE]="Cette vidéo sera bientôt disponible",i[e.ERROR.API.SAS.PAST]="Cette vidéo n'est plus disponible",i[e.ERROR.API.SAS.DEVICE]="La lecture de cette vidéo n'est pas autorisée sur cet appareil",i[e.ERROR.API.SAS.PROXY]="Un proxy anonyme a été détecté. Désactivez le proxy, puis réessayez.",i[e.ERROR.API.SAS.CONCURRENT_STREAMS]="Vous avez dépassé le nombre maximum de flux simultanés.",i[e.ERROR.API.SAS.INVALID_HEARTBEAT]="Réponse du signal de pulsation ('heartbeat') non valide",i[e.ERROR.API.CONTENT_TREE]="Contenu non valide",i[e.ERROR.API.METADATA]="M étadonnées non valides",i[e.ERROR.PLAYBACK.GENERIC]="Impossible de lire le contenu",i[e.ERROR.PLAYBACK.STREAM]="Cette vidéo n'est pas encodée pour votre appareil",i[e.ERROR.PLAYBACK.LIVESTREAM]="Le flux direct a été interrompu",i[e.ERROR.PLAYBACK.NETWORK]="Connexion au réseau temporairement interrompue",i[e.ERROR.UNPLAYABLE_CONTENT]="Vous ne pouvez pas lire cette vidéo sur ce lecteur",i[e.ERROR.INVALID_EXTERNAL_ID]="Identifiant externe non valide",i[e.ERROR.EMPTY_CHANNEL]="Cette chaîne est vide",i[e.ERROR.EMPTY_CHANNEL_SET]="Ce groupe de chaînes est vide",i[e.ERROR.CHANNEL_CONTENT]="Vous ne pouvez pas lire cette chaîne pour le moment",i[e.ERROR.VC_PLAY_FAILED]="Cette vidéo n'est pas encodée pour votre appareil",i[e.TEXT.ADS_COUNTDOWN]="Publicité : votre vidéo reprendra bientôt",i[e.TEXT.LIVE]="EN DIRECT",r[e.ERROR.API.NETWORK]="後でã"確認ください。",r[e.ERROR.API.SAS.GENERIC]="ãƒ"デ� �‚ªã‚'認証できませã‚"。",r[e.ERROR.API.SAS.GEO]="ã"の地域ではã"のãƒ"デオは許可されていませã‚"。",r[e.ERROR.API.SAS.DOMAIN]="お使いのドメインではã"のãƒ"デオは許可されていませã‚"。",r[e.ERROR.API.SAS.FUTURE]="ã"のãƒ"デオはしばらくすると再ç"Ÿå¯èƒ½ã«ãªã‚Šã¾ã™ã€‚",r[e.ERROR.API.SAS.PAST]="ã"のãƒ"デオは、既に御利ç"¨ã„ただã'ませã‚"。",r[e.ERROR.API.SAS.DEVICE]="ã"のãƒ"デオは、ã"のデバイスでの再ç"Ÿã¯è¨±å¯ã•ã‚Œã¦ã„ませã‚"。 ",r[e.ERROR.API.SAS.CONCURRENT_STREAMS]="最大同時接続数ã‚'超えています。",r[e.ERROR.API.SAS.INVALID_HEARTBEAT]="同時再ç"Ÿã‚¹ãƒˆãƒªãƒ¼ãƒ の最大数にé"しました。",r[e.ERROR.API.CONTENT_TREE]="不正なコンテンツです。",r[e.ERROR.API.METADATA]="不正なメタデータです。",r[e.ERROR.PLAYBACK.GENERIC]="ã"のコンテンツã‚'再ç"Ÿã§ãã¾ã›ã‚"でした。",r[e.ERROR.PLAYBACK.STREAM]="ã"のãƒ"デオは、お使いのデバイスå'ã'にエンコードされていませã‚"。",r[e.ERROR.PLAYBACK.LIVESTREAM]="ライブ配信はさ゠Œã¦ãŠã‚Šã¾ã›ã‚"。",r[e.ERROR.PLAYBACK.NETWORK]="ネットワークに一時的に接続できませã‚"。",r[e.ERROR.UNPLAYABLE_CONTENT]="ã"のãƒ"デオは、ã"のプレーヤーでは再ç"Ÿã§ãã¾ã›ã‚"。",r[e.ERROR.INVALID_EXTERNAL_ID]="External IDが不正です。",r[e.ERROR.EMPTY_CHANNEL]="ã"のチャンネルは空です。",r[e.ERROR.EMPTY_CHANNEL_SET]="ã"のチャンネルセットは空です。",r[e.ERROR.CHANNEL_CONTENT]="ã"のチャンネルは、現在再ç"Ÿã§ãã¾ã›ã‚"。",r[e.ERROR.VC_PLAY_FAILED]="ã"のãƒ"デオは、お使いのデバイスå� ��ã'にエンコードされていませã‚"。",r[e.TEXT.ADS_COUNTDOWN]="広å'Šï¼š",r[e.TEXT.ADS_COUNTDOWN_SECONDS]="広å'Š: æ•°ç§'後にãƒ"デオの再ç"ŸãŒé–‹å§‹ã—ます",r[e.TEXT.LIVE]="ライブ",e.getLocalizedMessage=function(t){var n=e.getLocale();return(e.MESSAGES[n]?e.MESSAGES[n][t]:void 0)||e.MESSAGES.EN[t]||""}}(e),function(e){e.stylus_css={"root.styl":"#>div{width:0;height:0;position:relative;z-index:10000;overflow:hidden}# .innerWrapper{background:#000;text-align:left}# .innerWrapper:-webkit-full-screen{width:100%;height:100%}# .innerWrapper:-webkit-full-screen video{width:100%}# .innerWrapper.fullscreen{position:fixed;top:0;left:0;width:100%;height:100%;background:#fff}# .oo_playhead{-ms-touch-action:none}",__end_marker:1}}(e),e.publicApi.REV="612c6bf5f3670a6f62ee964dba6fb1ef85fbf30a",function(e){e.get_css=function(t){ret urn e.stylus_css&&t?e.stylus_css[t+".styl"]:null}}(e),function(e,t,n){e.getRandomString=function(){return Math.random().toString(36).substring(7)},e.safeClone=function(i){if(t.isNumber(i)||t.isString(i)||t.isBoolean(i)||t.isFunction(i)||t.isNull(i)||t.isUndefined(i))return i;var r=i instanceof Array?[]:{};try{n.extend(!0,r,i)}catch(o){e.log("deep clone error",o)}return r},e.d=function(){e.isDebug&&e.log.apply(e,arguments),e.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(e.safeClone(arguments))+"")},e.inherit=function(t,n){if("function"!=typeof t)return e.log("invalid inherit, ParentClass need to be a class",t),null;var i=function(){t.apply(this,arguments),"function"==typeof n&&n.apply(this,arguments)},r=new t;return e._.extend(i.prototype,r),i.prototype.parentClass=r,i};var i={};e.attachStyle=function(e,t){var r=n('").appendTo("head");i[t]=i[t]||[],i[t].push(r)},e.removeStyles=function(t){e._.each(i[t],function(e){e.remove()})},e.getInnerProperty=function(e ,n){for(var i=e,r=n;r.length>0;){var o=r.shift();if(t.isNull(i)||!t.isObject(i)||t.isFunction(i)||t.isArray(i))return null;i=i[o]}return i},e.formatSeconds=function(e){var t=parseInt(e,10)%60,n=parseInt(e/3600,10),i=parseInt((e-3600*n)/60,10);return 10>n&&(n="0"+n),10>i&&(i="0"+i),10>t&&(t="0"+t),parseInt(n,10)>0?n+":"+i+":"+t:i+":"+t},e.timeStringToSeconds=function(e){var n=(e||"").split(":");return t.reduce(n,function(e,t){return 60*e+parseInt(t,10)},0)},e.leftPadding=function(e,t){for(var n="0",i=e?e.toString():"";i.length>16,n=(65280&e)>>8,i=255&e;return[t,n,i]},e.changeColor=function(t,n,i){var r=i?Math.max:Math.min,o=i?0:255,a=Math.round(255*n)*(i?-1:1),s=e.hexToRgb(t);return[e.leftPadding(r(s[0]+a,o).toString(16),2),e.leftPadding(r(s[1]+a,o).toString(16),2),e.leftPadding(r(s[2]+a,o).toString(16),2)].join("")},e.decode64=function(e){e=e.replace(/\n/g,"");var t,n="",i=0,r=[],o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrs tuvwxyz0123456789+/=";if(window.atob)return atob(e);do{for(t=0;4>t;t++)r[t]=o.indexOf(e.charAt(i++));n+=String.fromCharCode(r[0]>4,64==r[2]?0:(15&r[1])>2,64==r[3]?0:(3&r[2])-1:!!e},e.regexEscape=function(e){var t=/[()\[\]{}]/g;return e.replace(t,"\\$&")},e.getNormalizedTagUrl=function(n,i){var r=(new Date).getTime(),o=escape(document.URL),a=function(i,r){t.each(i,function(t){var i=new RegExp("("+e.regexEscape(t)+")","gi");n=n.replace(i,r)},this)};return a(e.TEMPLATES.RANDOM_PLACE_HOLDER,r),a(e.TEMPLATES.REFERAK_PLACE_HOLDER,o),i&&a(e.TEMPLATES.EMBED_CODE_PLACE_HOLDER,i),n},e.safeSeekRange=function(e){return{start:e.length>0?e.start(0):0,end:e.length>0?e.end(0):0}},e.loadedJS=e.loadedJS||{},e.jsOnSuccessList=e.jsOnSuccessList||{},e.safeFuncCall=function(t){if("function"==typeof t)try{t.apply()}catch(n){e.log("Can not invoke function!",n)}},e.loadScriptOnce=function(t,i,r,o){return e.jsOnSuccessList[t]=e.jsOnSuccessList[t]||[],e.loadedJS[t]?("loaded" ===e.loadedJS[t]?e.safeFuncCall(i):"loading"===e.loadedJS[t]&&e.jsOnSuccessList[t].unshift(i),!1):(e.loadedJS[t]="loading",n.ajax({url:t,type:"GET",cache:!0,dataType:"script",timeout:o||15e3,success:function(){e.loadedJS[t]="loaded",e.jsOnSuccessList[t].unshift(i),e._.each(e.jsOnSuccessList[t],function(t){e.safeFuncCall(t)},this),e.jsOnSuccessList[t]=[]},error:function(){e.safeFuncCall(r)}}),!0)};try{e.localStorage=window.localStorage}catch(r){e.log(r)}e.localStorage||(e.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,t){e&&(document.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/", this.length=document.cookie.match(/ \=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},e.localStorage.length=(document.cookie.match(/\=/g)||e.localStorage).length),e.setItem=function(t,n){try{e.localStorage.setItem(t,n)}catch(i){e.log(i)}},e.JSON=window.JSON}(e,e._,e.$),function(e,t){e.Emitter=function(e){this.mb=e,this._subscribers={}},t.extend(e.Emitter.prototype,{on:function(e,t,n){this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push({callback:n,subscriber:t})},off:function(e,n,i){this._subscribers[e]=t.reject(this._subscribers[e]||[],function(e){return(e.callback==i||void 0===i)&&e.subscriber===n})},trigger:function(e){t.each(this._subscribers[e]||[],t.bind(this._triggerSubscriber,this,e,arguments)),t.each(this._subscribe rs["*"]||[],t.bind(this._triggerSubscriber,this,e,arguments))},_triggerSubscriber:function(t,n,i){try{i.callback.apply(this,n)}catch(r){var o=r.stack||"unavailable";e.log("Uncaught exception",r,"Stack",o,"triggering subscriber",i,"with event",t,"Parameters: ",n)}},__placeholder:!0})}(e,e._),function(e,t){e.MessageBus=function(){this._emitter=new e.Emitter(this),this._dependentEmitter=new e.Emitter(this),this._interceptEmitter=new e.Emitter(this),this._interceptArgs={},this._dependentList={},this._blockList={},this._readyEventList={},this._dispatching=!1,this._publishingQueue=[],this.blockedEvent={},this.blockedParams={},this._messageHistory=[],this._tracer=t.bind(this._internalTracer,this),this.MbId=e.getRandomString(),this.debug=!1},t.extend(e.MessageBus.prototype,{addTracer:function(e){e&&t.isFunction(e)&&(this._tracer?this._tracer=t.wrap(this._tracer,function(n){e.apply(this,t.rest(arguments))}):this._tracer=e)},_internalTracer:function(){this._messageHistory.push (t.toArray(arguments))},messageTraceSnapshot:function(){return t.toArray(this._messageHistory)},addDependent:function(n,i,r,o){if(!n||""==n||!i||""==i)return void console.error("MB: addDependent called on message bus from subscriber "+r+" with no event name given.");this.debug&&e.log("MB DEBUG: '"+n+"' depends on '"+i+"'. Added by '"+r+"'"),this._dependentList[n]=this._dependentList[n]||[],this._dependentList[n].push(i),this._blockList[i]=this._blockList[i]||[],this._blockList[i].push(n),this.blockedParams[n]=[];var a=e._.bind(function(r){if(1==this.blockedEvent[r]){var a=e.safeClone(t.flatten(arguments)),s=e.safeClone(this.blockedParams[n]);a.shift(),s.shift();var l=o&&o.apply(this,[n,i,s,a])||s;l=[r].concat(l),delete this.blockedEvent[r],this.blockedParams[r]=[],this.debug&&e.log("MB DEBUG: unblocking '"+r+"' because of '"+i+"' with args ",l),this._publish.apply(this,l)}},this);this._dependentEmitter.on(n,r,a)},removeDependent:function(t,n){return t&&am p;""!=t&&n&&""!=n?(this.debug&&e.log("MB DEBUG: '"+t+"' no longer depends on '"+n+"'"),void this._clearDependent(t,n)):void console.warn("MB: removeDependent called on message bus with no event name given.")},publish:function(){if(!arguments||!arguments[0]||""==arguments[0])return void console.error("MB: publish called on message bus with no event name given.");var n=e.safeClone(t.flatten(arguments));if(this._publishingQueue.push(n),this.debug&&e.log("MB DEBUG: queueing '"+arguments[0]+"' w/ args",n),!this._dispatching){this._dispatching=!0;for(var i=this._publishingQueue.shift();i;)this._publish.apply(this,i),i=this._publishingQueue.shift();this._dispatching=!1}},_publish:function(n){this._readyEventList[n]=1;var i=e.safeClone(t.flatten(arguments));if(this._interceptEmitter.trigger.apply(this._interceptEmitter,i),this._interceptArgs[n]===!1)return void(this._interceptArgs[n]=!0);if(this._interceptArgs[n]&&(i=t.flatten([n,this._interceptArgs[n ]])),this._tracer&&t.isFunction(this._tracer)){var r=t.flatten(["publish"].concat(i));this._tracer.apply(this._tracer,r)}this._noDependency(n)?(this.debug&&e.log("MB DEBUG: publishing '"+n+"' w/ args ",i),this._emitter.trigger.apply(this._emitter,i),t.each(this._blockList[n],function(e){this._clearDependent(e,n),i[0]=e,this._dependentEmitter.trigger.apply(this._dependentEmitter,i)},this),delete this._blockList[n]):(this.debug&&e.log("MB DEBUG: blocking '"+n+"' because of '"+this._dependentList?this._dependentList[n]:"[null]'"),this.blockedEvent[n]=1,this.blockedParams[n]=i)},intercept:function(n,i,r){this._interceptEmitter.on(n,i,t.bind(function(o){if(!n||""==n)return void console.error("MB: intercept called on message bus from subscriber "+i+" with no event name given.");var a=e.safeClone(t.flatten(arguments));0!=this._interceptArgs[n]&&(this._interceptArgs[n]=r.apply(this,a))},this)),this._interceptArgs[n]=[n]},subscribe:function(e,t,n){return e& ;&""!=e?void this._emitter.on(e,t,n):void console.error("MB: subscribe called on message bus from subscriber "+t+" with no event name given.")},unsubscribe:function(e,t,n){return e&&""!=e?void this._emitter.off(e,t,n):void console.error("MB: unsubscribe called on message bus from subscriber "+t+" with no event name given.")},_noDependency:function(e){return this._dependentList[e]?0===this._dependentList[e].length:!0},_clearDependent:function(t,n){var i=this._dependentList[t];this._dependentList[t]=e._.filter(i,function(e){return e!==n},this)},startDebug:function(){return this.debug=!0,"MB DEBUGGING STARTED"},stopDebug:function(){return this.debug=!1,"MB DEBUGGING STOPPED"},listDependencies:function(){var e,t="------------------------------------\n[blocked] Message --> Dependency\n------------------------------------\n";if(this._dependentList)for(var n in this._dependentList)if(this._dependentList[n])for(e=0;e "+this._dependentList[n]+"\n";return t+="------------------ ------------------"}})}(e,e._),function(e,t){e.StateMachine={create:function(n){var i,r=e.HM.safeObject("statemachine.create.cfg",n),o=e.HM.safeDomId("statemachine.create.cfg.initial",r.initial),a=e.HM.safeObject("statemachine.create.cfg.target",r.target,{}),s=e.HM.safeArrayOfElements("statemachine.create.cfg.events",r.events,function(t){return e.HM.safeObject("statemachine.create.cfg.events[]",t)},[]),l=e.HM.safeString("statemachine.create.cfg.moduleName",r.moduleName,""),c=e.HM.safeObject("statemachine.create.cfg.messageBus",r.messageBus),u={};a.debugTransitions=!1;var d="";e.StateMachine.addToActiveList(r.moduleName,a);var p=function(t){var n=null,i=t.replace(/[^\/]*\//,"").match(/^(.)(.*)/),r="on"+i[1].toUpperCase()+i[2];if(a[r])n=a[r];else{var o=t.replace(/\/.*/,"").match(/^(.)(.*)/),s="on"+o[1].toUpperCase()+o[2]+i[1].toUpperCase()+i[2];a[s]&&(n=a[s])}if(n)try{var l=n.apply(a,arguments);return l!==!1?"ok":"fail"}catch(c){if(e.log(c),e.TEST_TEST_TEST)throw c;return"fail "}return"not_found"},h=function(e){var t,n=e.from instanceof Array?e.from:e.from?[e.from]:["*"];for(u[e.name]=u[e.name]||{},t=0;t1)return console.log("More than one player to choose. Please specify the target div of the intended player as a parameter"),console.log("Available players are: ",t.keys(e.players)),t.keys(e.players);if(e.playerCount-1&&(i+="useHtml5=true&"),console.log("If you are copying this link, do not highlight. right click and press 'copy link address'"),i},exposeDebugApi:function(t,n){e.publicApi&&(e.publicApi.DEBUG||(e.publicApi.DEBUG={}),e.publicApi.DEBUG.consoleOutput=e.consoleOutput,e.publicApi.DEBUG.startRecordingConsoleOutput=e.startRecordingConsoleOutput,e.publicApi.DEBUG.stopRecordingConsoleOutput=e.stopRecordingConsoleOutput,e.publicApi.DEBUG.clearRecordedConsoleOutput=e.clearRecordedConsoleOutput,e.publicApi.DEBUG.setMaxConsoleOutputLines=e.setMaxConsoleOutputLines,e.publicApi.DEBUG.listStateMachines=e._.bind(e.StateMachine.getActiveLis t,e.StateMachine),e.publicApi.DEBUG.startDebugStateMachine=e._.bind(e.StateMachine.startDebugTransitionsFor,e.StateMachine),e.publicApi.DEBUG.stopDebugStateMachine=e._.bind(e.StateMachine.stopDebugTransitionsFor,e.StateMachine),e.publicApi.DEBUG[t]=e.publicApi.DEBUG[t]||{},e.publicApi.DEBUG[t].startDebugMB=e._.bind(n.mb.startDebug,n.mb),e.publicApi.DEBUG[t].stopDebugMB=e._.bind(n.mb.stopDebug,n.mb),e.publicApi.DEBUG[t].listMBDependencies=e._.bind(n.mb.listDependencies,n.mb))},__placeholder:0})}(e,e._,e.$),function(e,t,n){function i(t){if(t.origin===s){if(t.data===l)return clearTimeout(E),void r(p);var n=null;try{n=e.JSON.parse(t.data)}catch(i){}n&&n.callback&&m[n.callback]&&(m[n.callback](n.result),delete m[n.callback])}}function r(e){var t;for(h=e;void 0!=(t=f.pop());)o(t[0],t[1],t[2])}function o(t,n,i){if(h===u)return void f.push(arguments);if(h!==d&&g.contentWindow.postMessage){var r={method:t,arguments:n,callback:Math.random().toString(36).substri ng(7)};m[r.callback]=i,g.contentWindow.postMessage(JSON.stringify(r),s)}else{var o;o="setItem"==t?e[t].apply(e.localStorage,n):e.localStorage[t].apply(e.localStorage,n),!i||i(o)}}var a=t.template("/ooyala_storage.html")({server:e.SERVER.API}),s=e.SERVER.API,l="LOADED",c=3e3,u=0,d=1,p=2,h=u,f=[],m={},E=null,g=document.createElement("iframe");g.style.display="none",g.src=a,n(document).ready(function(){document.body.appendChild(g),E=setTimeout(function(){r(d)},c)}),window.addEventListener?window.addEventListener("message",i,!1):window.attachEvent&&window.attachEvent("onmessage",i),e.ooyalaStorage={getItem:function(e,t){o("getItem",[e],t)},key:function(e,t){o("key",[e],t)},setItem:function(e,t,n){o("setItem",[e,t],n)},removeItem:function(e,t){o("removeItem",[e],t)},hasOwnProperty:function(e,t){o("hasOwnProperty",[e],t)}},!e.TEST_TEST_TEST||(e.ooyalaStorage._getIframeState=function(){return h})}(e,e._,e.$),function(e,t,n){callbackQueue=[],e.GUID=void 0,e.ooyalaStorage.getItem("oo yala_guid",t.bind(function(t){for(t?e.GUID=t:(e.GUID=generateDeviceId(),e.ooyalaStorage.setItem("ooyala_guid",e.GUID));void 0!=(callback=callbackQueue.pop());)callback(e.GUID)}),this),e.publicApi.getGuid=e.getGuid=function(t){if(e.GUID){if("function"==typeof t)try{t(e.GUID)}catch(n){}}else callbackQueue.push(t)},generateDeviceId=function(){var t=(new Date).getTime()+window.navigator.userAgent+Math.random().toString(16).split(".")[1];return new e.jsSHA(t,"ASCII").getHash("SHA-256","B64")},e.plugin("DeviceId",function(e,t,n,i){return function(t,n){t.subscribe(e.EVENTS.PLAYER_CREATED,"DeviceId",function(){e.publicApi.getGuid(function(n){t.publish(e.EVENTS.GUID_SET,n)})})}})}(e,e._,e.$),function(e,t,n){var i=function(t,n){this.id=n,this.mb=t,this.resizeTimer=null,this.width=0,this.height=0,this.useCustomControls=!e.uiParadigm.match(/mobile/),this.useNativeControls=!!e.uiParadigm.match(/native/),this.originalZ=null,this.originalOverflow=null,this.playbackReady=!1,e.StateMachine.create({i nitial:"Init",messageBus:this.mb,moduleName:"ChromelessUi",target:this,events:[{name:e.EVENTS.PLAYER_CREATED,from:"Init",to:"PlayerCreated"},{name:e.EVENTS.EMBED_CODE_CHANGED,from:"*",to:"WaitingPlaybackReady"},{name:e.EVENTS.PLAYBACK_READY,from:"WaitingPlaybackReady",to:"Ready"},{name:e.EVENTS.INITIAL_PLAY,from:"*"},{name:e.EVENTS.WILL_PLAY,from:["Ready","Paused"],to:"StartingToPlay"},{name:e.EVENTS.PLAYING,from:["StartingToPlay","Paused"],to:"Playing"},{name:e.EVENTS.ERROR,from:"*"},{name:e.EVENTS.PLAY,from:"*"},{name:e.EVENTS.WILL_CHANGE_FULLSCREEN,from:"*"},{name:e.EVENTS.FULLSCREEN_CHANGED,from:"*"},{name:e.EVENTS.VC_PLAYING,from:"*"},{name:e.EVENTS.INITIAL_PLAY,from:"*"},{name:e.EVENTS.REPLAY,from:"*"},{name:e.EVENTS.WILL_PLAY_ADS,from:"*"},{name:e.EVENTS.PLAY_MIDROLL_STREAM,from:"*"},{name:e.EVENTS.PLAYING,from:"*"}]})};n.extend(i.prototype,{onInitialPlay:function(){this.playbackReady&&this.rootElement.find("div.plugins").show()},onPlayerCreated:function(i,r,o){this.e lementId=r,this.topMostElement=t("#"+this.elementId),this.topMostElement.append(' '),this.rootElement=this.topMostElement.find("div.innerWrapper"),this.params=o,this.rootElement.append(" ");var a=["fullscreenchange","webkitfullscreenchange"],s=n.bind(this._onBrowserOriginatedFullscreenChange,this),l=this.rootElement;n.each(a,function(e){l.on(e,s)}),t(document).on("mozfullscreenchange",s),document.onwebkitfullscreenchange=s,t(document).on("MSFullscreenChange",s),l.resize(n.bind(this._onResize,this)),t(document).resize(n.bind(this._onResize,this)),t(window).resize(n.bind(this._onResize,this)),t(window).on("beforeunload",n.bind(this._onBeforeUnload,this)),this.mb.publish(e.EVENTS.PLAYER_EMBEDDED,{videoWrapperClass:"innerWrapper",pluginsClass:"plugins"})},onEmbedCodeChanged:function(e,t){this.rootElement.find("div.plugins").hide(),this.playbackReady=!1},onPlaybackReady:function(e,t){this.playbackReady=!0},onError:function(e,t){},onPlaying:function(e,t){this._updatePlayingUi()},onVideoPlaying:function(e){this._updatePlayingUi()},_updatePlayingUi:function(){this.rootElement.find("div.plugins").show()},_isFullscreen:function(){if(this.rootElement.hasClass("fullscreen"))retu rn!0;var e=document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.webkitDisplayingFullscreen||document.msFullscreenElement;return!!e},_onBrowserOriginatedFullscreenChange:function(){e.d("Fullscreen Changed",this._isFullscreen()),this.mb.publish(e.EVENTS.SIZE_CHANGED,this.rootElement.innerWidth(),this.rootElement.innerHeight()),this.mb.publish(e.EVENTS.FULLSCREEN_CHANGED,this._isFullscreen())},onFullscreenChanged:function(e,t){!t||this.originalZ||this.originalOverflow?!t&&!this.originalZ&&!this.originalOverflow&&(this.rootElement.css("z-index",this.originalZ),this.rootElement.css("overflow",this.originalOverflow),this.originalZ=null,this.originalOverflow=null,this.rootElement.find("div.plugins").hide()):(this.originalZ=this.rootElement.css("z-index"),this.originalOverflow=this.rootElement.css("overflow"),this.rootElement.css("z-index",this.originalZ+1e3),this.rootElement.css("overflow","visible"))},_onResize:function(){this.resizeTi mer&&clearTimeout(this.resizeTimer),this.resizeTimer=n.delay(n.bind(function(){this.width==this.rootElement.innerWidth()&&this.height==this.rootElement.innerHeight()||(this.width=this.rootElement.innerWidth(),this.height=this.rootElement.innerHeight(),this.mb.publish(e.EVENTS.SIZE_CHANGED,this.width,this.height))},this),100)},onPlay:function(){!this.useCustomControls&&!this.useNativeControls&&this.mb.publish(e.EVENTS.WILL_CHANGE_FULLSCREEN,!0)},onWillChangeFullscreen:function(e,t){(this.useNativeControls||this.useCustomControls)&&(t?this._showFullscreen():this._hideFullscreen())},onInitialPlay:function(){this.rootElement.find("div.plugins").show()},onReplay:function(){this.mb.publish(e.EVENTS.SEEK,0),this.mb.publish(e.EVENTS.PLAY)},onWillPlayAds:function(){this._updatePlayingUi()},onPlayMidrollStream:function(){this._updatePlayingUi()},onPlaying:function(){this._updatePlayingUi()},_getActiveVideo:function(){var e=this.rootElement.find("video.v ideo"),t=e.get(0),n=this.rootElement.find("div.plugins video").get(0);return n&&!this._isVideoDomVisible("video.video")&&(t=n),t},_showFullscreen:function(){var n=this.rootElement[0],i=this._getActiveVideo(),r=n.requestFullScreen||n.requestFullscreen||n.mozRequestFullScreen||n.webkitRequestFullScreen||n.msRequestFullscreen;(!r||e.isAndroid&&!e.isChrome)&&i&&i.webkitEnterFullscreen?(i.isFullScreenMode=!0,i.webkitEnterFullscreen()):r?(t(i).css("background-color","black"),r.call(n)):this.rootElement.addClass("fullscreen"),this.mb.publish(e.EVENTS.FULLSCREEN_CHANGED,!0)},_hideFullscreen:function(){var n=this._getActiveVideo();document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():n&&n.webkitExitFullscreen?(n.isFullScreenMode=!1,n.webkitExitFullscreen()):document.msExitFullscreen?document.msExitFullscreen():this.rootE lement.removeClass("fullscreen"),t(n).css("background-color",""),this.mb.publish(e.EVENTS.FULLSCREEN_CHANGED,!1)},_isVideoDomVisible:function(t){return this.rootElement.find(t).css("display")==e.CSS.VISIBLE_DISPLAY},_onBeforeUnload:function(t){this.mb.publish(e.EVENTS.PAGE_UNLOAD_REQUESTED,!0)},_updatePlayingUi:function(){this.rootElement.find("div.plugins").show()},__placeholder:!0}),e.registerModule("chromeless_ui",function(e,t){return new i(e,t)})}(e,e.$,e._),function(e,t,n){var i=function(n,i){this.toString=function(){return"playback-controller"},this.mb=n,this.id=i,this.playbackElements={},this.currentPlaybackElement=null,this.willPlayFromBeginning=!0,this.metadataHasFetched=!1,this.isFirstStream=!0,this.playedAtLeastOnce=!1,this.endScreenShown=!1,this.playerParams=null,this.shouldPreload=!0,this.initialTime=0,this.mb.subscribe(e.EVENTS.PLAYER_CREATED,"playback",t.bind(this.playerCreated,this)),this.mb.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"playback",t.bind(this.embedCodeChange d,this)),this.mb.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,"playback",t.bind(this.contentTreeFetched,this)),this.mb.subscribe(e.EVENTS.METADATA_FETCHED,"playback",t.bind(this.metadataFetched,this)),this.mb.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,"playback",t.bind(this.authorizationFetched,this)),this.mb.subscribe(e.EVENTS.INITIAL_PLAY,"playback",t.bind(this.initialPlay,this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_FROM_BEGINNING,"playback",t.bind(this.onWillPlayFromBeginning,this)),this.mb.subscribe(e.EVENTS.PLAYED,"playback",t.bind(this.played,this)),this.mb.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"playback",t.bind(this.vcVideoElementCreated,this)),this.mb.subscribe(e.EVENTS.VC_PLAYED,"playback",t.bind(this.vcPlayed,this)),this.mb.subscribe(e.EVENTS.VC_PLAYING,"playback",t.bind(this.vcPlaying,this)),this.mb.subscribe(e.EVENTS.VC_CAN_PLAY,"playback",t.bind(this.vcCanPlay,this)),this.mb.subscribe(e.EVENTS.VC_PAUSED,"playback",t.bind(this.vcPaused,this)),this.mb.subscribe(e.EVENTS.VC _SEEKED,"playback",t.bind(this.vcSeeked,this)),this.mb.subscribe(e.EVENTS.VC_PLAY_FAILED,"playback",t.bind(this.vcPlayFailed,this)),this.mb.subscribe(e.EVENTS.VC_ERROR,"playback",t.bind(this.vcError,this)),this.mb.subscribe(e.EVENTS.VC_WILL_PLAY,"playback",t.bind(this.vcWillPlay,this)),this.mb.subscribe(e.EVENTS.REPLAY,"playback",t.bind(this.replay,this)),this.mb.subscribe(e.EVENTS.WILL_RESUME_MAIN_VIDEO,"playback",t.bind(this.willResume,this))};t.extend(i.prototype,{getStreams:function(n){if(!n)return null;if(t.isEmpty(n.streams))return null;var i={};for(var r in n.streams)n.streams[r].url&&n.streams[r].delivery_type&&(i[n.streams[r].delivery_type]=e.decode64(n.streams[r].url.data));return i.remote_asset&&(i[e.VIDEO.ENCODING.UNKNOWN]=i.remote_asset,delete i.remote_asset),i},checkDataReady:function(){null!=this.contentTree&&this.metadataHasFetched&&null!=this.authorization&&this.dataReady()},dataReady:function(){var t=e.VIDEO.MAIN;this .streams=this.getStreams(this.authorization),this.playbackElements[t]={streams:this.streams},this.currentPlaybackElement=t,this.publishClosedCaptionInfo(this.contentTree);var n={closedCaptions:this.playbackElements[t].closedCaptions,crossorigin:"anonymous"};this.mb.publish(e.EVENTS.VC_CREATE_VIDEO_ELEMENT,t,this.streams,null,n)},resetStreamData:function(){this.contentTree=null,this.metadataHasFetched=!1,this.authorization=null,this.streams=null,this.currentEmbedCode=null,this.endScreenShown=!1,this.isFirstStream||(this.initialTime=0),this.isFirstStream=!1,this.playedAtLeastOnce=!1},preloadStream:function(){this.shouldPreload&&(this.streams=this.getStreams(this.authorization),this.mb.publish(e.EVENTS.VC_PRELOAD,this.currentPlaybackElement))},triggerAutoplay:function(){var t=this.playerParams?"true"===this.playerParams.autoPlay||this.playerParams.autoPlay===!0||"true"===this.playerParams.autoplay||this.playerParams.autoplay===!0:!1;0==this.playedAtLeastOnce&&t&& ;e.allowAutoPlay&&this.mb.publish(e.EVENTS.INITIAL_PLAY)},triggerLoopPlay:function(){var t=this.playerParams?"true"===this.playerParams.loop||this.playerParams.loop===!0:!1;t&&this.mb.publish(e.EVENTS.REPLAY)},playerCreated:function(n,i,r){if(this.playerParams=r,"object"==typeof this.playerParams&&(void 0!==this.playerParams.locale&&e.setLocale(this.playerParams.locale),this.playerParams.preload===!1&&(this.shouldPreload=!1),void 0!==this.playerParams.initialTime)){var o=parseInt(this.playerParams.initialTime,10);!isNaN(o)&&o>0&&(this.initialTime=o)}e.isIos&&7==e.iosMajorVersion?window.addEventListener("pageshow",t.bind(function(){this.mb.publish(e.EVENTS.PAUSE)},this)):(e.isAndroid||e.isIos)&&document.addEventListener("visibilitychange",t.bind(function(t){document.hidden&&this.mb.publish(e.EVENTS.PAUSE)},this))},authorizationFetched:function(e,t){this.authorization=t,this.checkDataReady()},contentTre eFetched:function(e,t){this.contentTree=t,this.checkDataReady()},publishClosedCaptionInfo:function(n){if(n){var i={};if(n.closed_captions_vtt&&n.closed_captions_vtt.captions&&t.size(n.closed_captions_vtt.captions)>0&&(i.closed_captions_vtt=n.closed_captions_vtt.captions),n.closed_captions&&n.closed_captions.length>0&&(i.closed_captions_dfxp=n.closed_captions[0]),t.size(i)>0){var r={};if(r.languages=n.closed_captions_vtt&&n.closed_captions_vtt.languages||i.closed_captions_dfxp&&i.closed_captions_dfxp.languages,r.locale={},r.languages&&r.languages.length>0){for(var o=0;o0&&e.push(n)}),e},this);e.Video={plugin:function(e){if(this.validate(e)){i("Registering video plugin:",e.name);for(var t=0;t-1&&o[a].splice(s,1)}if(t.isFunction(r[e].destroy))try{r[e].destroy()}catch(l){i("Error destroying a video plugin",e,".",l)}delete r[e]}},validate:function(e){function n(e){i(e)}function o(i,r,o){return t.h as(e,i)?typeof e[i]!=r?(n("The video plugin '"+o+"' property '"+i+"' should be type '"+r+"'"),!1):!0:(n("The video plugin '"+o+"' requires a '"+i+"' property"),!1)}function a(i,r){return t.isFunction(e[i])?!0:(n("The video plugin '"+r+"' requires a '"+i+"' function"),!1)}var s={name:"string",encodings:"object",ready:"boolean",features:"object",technology:"string"},l=["create"];if(!e)return n("The video plugin must be defined"),!1;if(!t.isObject(e))return n("The video plugin must be an object"),!1;for(var c in s)if(!o(c,s[c],e.name))return!1;for(var u=0;u0?E=c[t.keys(c)[0]]:m&&m.length>0&&t.size(c)>0&&(E=c[m[0]]),E?(Y(E,i,s,h,a[h],l),void(this.activeInstances[i]?(W(i),f&&d.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,i)):d.publish(e.EVENTS.VC_ERROR,i,{code:e.ERROR.VC.UNABLE_TO_CREATE_VIDEO_ELEMENT}))):void d.publish(e.EVENTS.VC_ERROR,i,{code:e.ERROR.VC.UNSUPPORTED_ENCODING})},this),F=t.bind(function(e){if(!e)return t.keys(r);var n=[];for(name in r)r[n ame].technology===e&&n.push(name);return n},this),U=t.bind(function(e){if(!e||e.length-1&&$(t.name)>=t.maxSupportedElements?X(t,n,r,o,a):Q(t,n,i,r,o,a)}},this),G=t.bind(function(t){if(e.requiresSingleVideoElement&&(t.technology===e.VIDEO.TECHNOLOGY.HTML5||t.technology===e.VIDEO.TECHNOLOGY.MIXED))for(var n in this.activeInstances)if((r[this.activeInstances[n].plugin].technology===e.VIDEO.TECHNOLOGY.HTML5||r[this.activeInstances[n].plugin].technology===e.VIDEO.TECHNOLOGY.MIXED)&&this.activeInstances[n].element)return!0;return!1},this),z=t.bind(function(n,i){var o=t.contains(r[this.activeInstances[n].plugin].features,e.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE),a=t.contains(i.features,e.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_TAKE),s=r[this.activeInstances[n].plugin].technology===i.technology,l=i.technology!==e.VIDEO.TECHNOLOGY.MIXED;return o&&a&&s&&l},this),q=t.bind(function(n){var i=null;for(var o in this.activeInstances)if(r[this.a ctiveInstances[o].plugin].technology===n&&this.activeInstances[o].element){if(t.contains(r[this.activeInstances[o].plugin].features,e.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE))return o;i=o}return i},this),K=t.bind(function(e,t,n,i,r,o,a){if(e&&t){this.activeInstances[a].element.sharedObjectToInstance=t;var l=new v({plugin:e,parentContainer:r,sharedObjectToInstance:a,isControllingObject:!1});f.push(l);var c=new s(this,t,e);this.activeInstances[t]?this.activeInstances[t].element=l:this.activeInstances[t]=new y({plugin:e,parentContainer:r,element:l,encoding:n,stream:i,vtcInterface:c,isControllingElement:!0,params:o}),o&&(Ve(t,o.closedCaptions),Te(t,o.crossorigin));var u=this.activeInstances[a].element.domId,d=Le(u);l.wrapper=e.createFromExisting(d,c,this.elementId),Me(t,n,i)}},this),$=t.bind(function(e){for(var t=0,n=0;nt||t>1)return void i("Can not assign volume with invalid value",t);if(T=t,n)Ae(n,"setVolume",[T]);else for(var r=0;r0&&"number"==typeo f s.height&&s.height>0&&(t.extend(s,{videoId:n}),d.publish(e.EVENTS.ASSET_DIMENSION,s));break;case this.EVENTS.BITRATES_AVAILABLE:d.publish(e.EVENTS.BITRATE_INFO_AVAILABLE,{bitrates:a});break;case this.EVENTS.BITRATE_CHANGED:He(a)?d.publish(e.EVENTS.BITRATE_CHANGED,a):i("Invalid bitrate object reported",a)}},this.markNotReady=function(t){t&&this.activeInstances[t]&&!C&&(h.push(t),null===p&&(d.addDependent(e.EVENTS.PLAYBACK_READY,e.EVENTS.VC_READY,"vtc",be),p=setTimeout(_e,u)))},this.markReady=function(n){null===p&&0===h.length||(h=n?t.without(h,n):[],0===h.length&&(null!==p&&(clearTimeout(p),p=null),d.publish(e.EVENTS.VC_READY)))};var be=function(e,t,n,i){return n},_e=t.bind(function(){this.markReady()},this),Se=function(e,n,i){if(e){var r=e.wrapper;if(r){try{if(t.isFunction(r[n]))return r[n].apply(r,i)}catch(o){console.warn("Video tech plugin",e&&e.plugin,"at function '"+n+"' threw exception - ",o)}r eturn null}}},Ae=t.bind(function(e,t,n){return this.activeInstances[e]&&this.activeInstances[e].element&&this.activeInstances[e].isControllingElement?Se(this.activeInstances[e].element,t,n):void 0},this),Te=t.bind(function(e,t){this.activeInstances[e]&&(this.activeInstances[e].crossorigin=t,Ce(e))},this),Ce=t.bind(function(e){this.activeInstances[e]&&(this.activeInstances[e].crossorigin?Ae(e,"setCrossorigin",[this.activeInstances[e].crossorigin]):Ae(e,"setCrossorigin",[null]))},this),Ne=t.bind(function(e){var t=Oe(e);Ce(e),this.activeInstances[e].element.wrapper.controller=this.activeInstances[e].vtcInterface,De(this.activeInstances[e],t)},this),Oe=t.bind(function(e){var t=this.activeInstances[e];if(t.isControllingElement)return t;var n=null;for(var i in this.activeInstances)if(this.activeInstances[i]&&this.activeInstances[i].element&&this.activeInstances[i].element===t.element&&this.activeInstances[i].isControllingElement){n=t his.activeInstances[i];break}return t.isControllingElement=!0,n?(n.isControllingElement=!1,n):void 0},this),Re=t.bind(function(e){var t=this.activeInstances[e];if(t.isControllingElement){var n=null;for(var i in this.activeInstances)if(this.activeInstances[i]&&this.activeInstances[i].element&&this.activeInstances[i].element===t.element&&!this.activeInstances[i].isControllingElement){n=this.activeInstances[i];break}t.isControllingElement=!1,n&&(n.isControllingElement=!0)}},this),Ie=t.bind(function(e){if(!this.activeInstances[e].element.isControllingObject){var t=this.activeInstances[e].element.sharedObjectToInstance;Se(this.activeInstances[t].element,"sharedElementGive",[]),this.activeInstances[t].element.isControllingObject=!1,Se(this.activeInstances[e].element,"sharedElementTake",[]),this.activeInstances[e].element.isControllingObject=!0,De(this.activeInstances[e],this.activeInstances[t])}},this),De=t.bind(function(e,t){t&&(t.playing===!0?t.pl ayhead=Se(t.element,"getCurrentTime"):t.playhead=0),e.stream&&(Se(e.element,"setVideoUrl",[e.stream,e.encoding]),e.playing=!1),e.playhead>0&&Se(e.element,"setInitialTime",[e.playhead]),e.element&&e.element.wrapper&&(e.element.wrapper.disableNativeSeek=e.disableNativeSeek)},this);this.disposeAnyElementKeepInstance=function(){var t=e.VIDEO.TECHNOLOGY.HTML5,n=we(t);Pe(n)};var we=t.bind(function(t){var n=null;for(var i in this.activeInstances)if(this.activeInstances[i]&&this.activeInstances[i].element){var o=r[this.activeInstances[i].plugin].technology;if(o===t)return i;o===e.VIDEO.TECHNOLOGY.MIXED&&(n=i)}return n},this),Pe=t.bind(function(e){if(e){this.activeInstances[e].playing===!0?this.activeInstances[e].playhead=Se(this.activeInstances[e].element,"getCurrentTime"):this.activeInstances[e].playhead=0,this.focusVideoId===e&&ne(e);for(var n in this.activeInstances)n!==e&&this.activeInstances[n]&&this.activeInsta nces[n].element&&this.activeInstances[n].element===this.activeInstances[e].element&&(this.activeInstances[n].isControllingElement=!0,this.activeInstances[n].element=null);this.activeInstances[e].element&&(Se(this.activeInstances[e].element,"destroy",[]),f=t.without(f,this.activeInstances[e].element),this.activeInstances[n].isControllingElement=!0,this.activeInstances[e].element=null)}},this),xe=t.bind(function(e){var t=this.activeInstances[e].playhead;Y(r[this.activeInstances[e].plugin],e,this.activeInstances[e].parentContainer,this.activeInstances[e].encoding,this.activeInstances[e].stream,this.activeInstances[e].params),Z("recreate",{videoId:e}),t>0&&Se(this.activeInstances[e].element,"setInitialTime",[t]),this.activeInstances[e].element&&this.activeInstances[e].element.wrapper&&(this.activeInstances[e].element.wrapper.disableNativeSeek=this.activeInstances[e].disableNativeSeek)},this),ke=t.bind(function(e){this.activeInstances[e] &&!this.activeInstances[e].element&&xe(e),this.activeInstances[e].isControllingElement||Ne(e),Ie(e)},this),Le=t.bind(function(e){var t=n("#"+e);if(t.length>0&&!t.is("video")){var i=t.find("video").attr("id");if(i)return i}return e},this),Me=t.bind(function(e,t,n){return this.activeInstances[e]?(this.activeInstances[e].playhead=0,this.activeInstances[e].playing=!1,this.activeInstances[e].stream=n,this.activeInstances[e].encoding=t,Ae(e,"setVideoUrl",[n,t])):void 0},this),Ve=t.bind(function(e,t){this.activeInstances[e]&&(this.activeInstances[e].closedCaptions=t)},this),Fe=t.bind(function(t,n){return S?(Ue(),void d.publish(e.EVENTS.VC_PLAY_FAILED,n,JSON.stringify(t))):(e.d("Error not emitted: "+t),A.push(t),d.publish(e.EVENTS.PAGE_PROBABLY_UNLOADING),void 0)},this),Ue=t.bind(function(){S=!0;var n="";t.each(A,function(t){d.publish(e.EVENTS.VC_PLAY_FAILED,n,JSON.stringify(t))}),A=[]},this),Be=t.bind(function(){S=!1,clearTimeout(_),t.delay(t.bind(functio n(){_=t.delay(Ue,5e3)},this),1)},this),je=function(){return Math.random().toString(36).substring(7)},He=function(e){if(!e)return!1;var t=void 0!==e.id&&"string"==typeof e.id,n=void 0!==e.bitrate&&"number"==typeof e.bitrate,i=void 0!==e.height&&"number"==typeof e.height,r=void 0!==e.width&&"number"==typeof e.width;return t&&n&&i&&r};P()};e.registerModule("videoController",function(e,t){return new l(e,t)})}(e,e._,e.$),function(e,t,n){var i=function(t,n,i){this.mb=t,this.id=n,this.params=i||{},this.contentTree={},this.metadata={},this.sasResponse={},this.authToken=e.localStorage.getItem("oo_auth_token"),this._aborting=!1,this._contentAjax=null,this._metadataAjax=null,this._sasAjax=null,e.StateMachine.create({initial:"Init",messageBus:this.mb,moduleName:"Api",target:this,events:[{name:e.EVENTS.SET_EMBED_CODE,from:"*",to:"Init"},{name:e.EVENTS.EMBED_CODE_CHANGED,from:"Init",to:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_CONTE NT_TREE,from:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_METADATA,from:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_AUTHORIZATION,from:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_AD_AUTHORIZATION,from:["WaitingForAPIResponse","Init"]},{name:e.EVENTS.PLAYBACK_READY,from:"WaitingForAPIResponse",to:"Init"}]})};t.extend(i.prototype,{onSetEmbedCode:function(t,n,i){this.rootEmbedCode=n,this.adSetCode=i?i.adSetCode:void 0,this.embedToken=i&&i.embedToken||this.embedToken,this.authToken=i&&i.authToken||this.authToken,this.mb.publish(e.EVENTS.EMBED_CODE_CHANGED,n,i)},onEmbedCodeChanged:function(n,i){this.currentEmbedCode=i,this._abort(this._contentAjax),this._abort(this._metadataAjax),this._abort(this._sasAjax);var r={embedCode:this.currentEmbedCode,pcode:e.playerParams.pcode||"unknown",playerBrandingId:e.playerParams.playerBrandingId||"unknown",params:{}};t.isEmpty(this.adSetCode)||t.extend(r.params,{adSetCode:this.adSetCode}),t.isEmpty(this.embedToken)||t .extend(r.params,{embedToken:this.embedToken});var o=t.extend({},r,{server:e.SERVER.API}),a=t.extend({},r,{server:e.SERVER.AUTH});this.mb.publish(e.EVENTS.WILL_FETCH_METADATA,o),e.requiredInEnvironment("html5-playback")&&(this.mb.publish(e.EVENTS.WILL_FETCH_PLAYER_XML,o),this.mb.publish(e.EVENTS.WILL_FETCH_CONTENT_TREE,o),this.mb.publish(e.EVENTS.WILL_FETCH_AUTHORIZATION,a))},onWillFetchContentTree:function(i,r){"undefined"!=typeof this.contentTree[this.currentEmbedCode]?this.mb.publish(e.EVENTS.CONTENT_TREE_FETCHED,this.contentTree[this.currentEmbedCode]):this._contentAjax=n.ajax({url:e.URLS.CONTENT_TREE(r)+"?"+n.param(r.params),type:"GET",dataType:"json",crossDomain:!0,success:t.bind(this._onContentTreeFetched,this),error:t.bind(this._onApiError,this)})},_onContentTreeFetched:function(n){var i=e.HM.safeObject("playbackControl.contentTree",n,{});this._contentAjax=null,i.errors&&0==i.errors.code&&t.each(i.content_tree,t.bind(function(e,t){this.contentTree[t]= i.content_tree[t]},this));var r=["Video","VideoAd","LiveStream","Channel","MultiChannel"];if(this.contentTree[this.currentEmbedCode]){var o=i.content_tree[this.currentEmbedCode].hostedAtURL;""!=o&&null!=o||(i.content_tree[this.currentEmbedCode].hostedAtURL=document.URL);var a=r.indexOf(this.contentTree[this.currentEmbedCode].content_type)>=0;a?this.mb.publish(e.EVENTS.CONTENT_TREE_FETCHED,this.contentTree[this.currentEmbedCode],this.currentEmbedCode):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.CONTENT_TREE})}else this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.UNPLAYABLE_CONTENT})},onWillFetchMetadata:function(i,r){"undefined"!=typeof this.metadata[this.currentEmbedCode]?this.mb.publish(e.EVENTS.METADATA_FETCHED,this.metadata[this.currentEmbedCode]):this._metadataAjax=n.ajax({url:e.URLS.METADATA(r)+"&"+n.param(r.params),type:"GET",dataType:"json",crossDomain:!0,success:t.bind(this._onMetadataFetched,this),error:t.bind(this._onApiError,this)})},_onMetadataFetched:fun ction(n){this.metadata=this.metadata||{};var i=e.HM.safeObject("api.metadata",n,{});this._metadataAjax=null,i.errors&&0==i.errors.code&&t.each(i.metadata,t.bind(function(e,n){this.metadata[n]=i.metadata[n],this.metadata[n].modules=this.metadata[n].modules||{},this.metadata[n].modules=t.extend(this.metadata[n].modules,this.params.modules||{})},this)),this.mb.publish(e.EVENTS.METADATA_FETCHED,this.metadata[this.currentEmbedCode]||{}),i.errors&&i.errors.player_movie_mismatch&&"undefined"!=typeof window.console&&"function"==typeof window.console.log&&console.log("WARNING: Player and movie providers do not match")},onWillFetchAuthorization:function(n,i){this.sasResponse[this.currentEmbedCode]&&0==this.sasResponse[this.currentEmbedCode].code?this.mb.publish(e.EVENTS.AUTHORIZATION_FETCHED,this.sasResponse[this.currentEmbedCode]):this._sendSasRequest(i,t.bind(this._onAuthorizationFetched,this),t.bind(this._onApiError,this))},_onAuthori zationFetched:function(n){var i,r;this._sasAjax=null;var o=e.HM.safeObject("playbackControl.sasResponse",n,{});return o.auth_token?(e.setItem("oo_auth_token",o.auth_token),this.authToken=o.auth_token):(e.localStorage.removeItem("oo_auth_token"),this.authToken=null),t.each(o.authorization_data,t.bind(function(e,t){this.sasResponse[t]=o.authorization_data[t],o.debug_data&&(this.sasResponse[t].debug_data=o.debug_data),o.user_info&&(this.sasResponse[t].user_info=o.user_info),o.auth_token&&(this.sasResponse[t].auth_token=o.auth_token),o.heartbeat_data&&(this.sasResponse[t].heartbeat_data=o.heartbeat_data)},this)),i=this.sasResponse[this.currentEmbedCode].code,0==i?void this.mb.publish(e.EVENTS.AUTHORIZATION_FETCHED,this.sasResponse[this.currentEmbedCode]):t.isString(i)?(r=i.split(","),void(t.contains(r,"2")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.DOMAIN}):t.contains(r,"3")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.GEO}):t.contains(r ,"4")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.FUTURE}):t.contains(r,"5")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.PAST}):t.contains(r,"13")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.DEVICE}):t.contains(r,"18")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.CONCURRENT_STREAMS}):t.contains(r,"24")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.PROXY}):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.GENERIC}))):void this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.GENERIC})},onWillFetchAdAuthorization:function(e,n){this._sendSasRequest(n,t.bind(this._onAdAuthorizationFetched,this))},_onAdAuthorizationFetched:function(n){var i=e.HM.safeObject("playbackControl.sasResponse",n,{}),r={};t.each(i.authorization_data,t.bind(function(e,t){r[t]=i.authorization_data[t]},this)),this.mb.publish(e.EVENTS.AD_AUTHORIZATION_FETCHED,r)},_sendSasRequest:function(t,i,r){var o=e.supportedVideoProfiles,a=e.device;n.extend(t.params,{device:a,domain:e.d ocDomain}),o&&n.extend(t.params,{profiles:o}),this.authToken&&n.extend(t.params,{auth_token:this.authToken}),this._sasAjax=n.ajax({url:e.URLS.SAS(t)+"?"+n.param(t.params),type:"GET",dataType:"json",crossDomain:!0,success:i,error:r})},_abort:function(e){e&&(this._aborting=!0,e.abort(),this._aborting=!1)},_onApiError:function(t,n,i){this._aborting||(e.d(i,n,t),this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.NETWORK,xhrStatus:n}))},__placeholder:!0}),e.registerModule("api",function(e,t,n){return new i(e,t,n)})}(e,e._,e.$),e.plugin("Channels",function(e,t,n,i){var r=function(t,n){this.id=n,this.mb=t,this.channel_tree=null,this.channel_pos=-1,this.replay=!1,e.StateMachine.create({initial:"Init",messageBus:this.mb,moduleName:"Channels",target:this,events:[{name:e.EVENTS.PLAYER_CREATED, from:"*"}]})};return t.extend(r.prototype,{onPlayerCreated:function(n,i,r){this.enableChannels=r.enableChannels||e.playerParams.enableChannels||!1,this.mb.intercept(e.EVENTS.CONTENT _TREE_FETCHED,"channels",t.bind(this._checkTreeForChannel,this))},_checkTreeForChannel:function(n,i){var r=["Channel","MultiChannel"];if(i&&(r.indexOf(i.content_type)>=0||i.lineup)){if(this.enableChannels){if(e.requiredInEnvironment("html5-playback")||e.requiredInEnvironment("cast-playback")){if(!i.children)return"Channel"==i.content_type?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.EMPTY_CHANNEL}):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.EMPTY_CHANNEL_SET}),!1;this.channel_tree=i,this.channel_pos=0,this.mb.subscribe(e.EVENTS.PLAYED,"channels",t.bind(this.onPlayed,this)),this.mb.subscribe(e.EVENTS.PLAYBACK_READY,"channels",t.bind(this.onPlaybackReady,this)),this.mb.publish(e.EVENTS.SET_EMBED_CODE,i.children[0].embed_code)}return!1}return this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.CHANNEL_CONTENT}),!1}return[i]},onPlayed:function(t){this.channel_pos++,this.channel_tree.children[this.channel_pos]?this.mb.publish(e.EVENTS.SET_EMBED_CODE,this.channel_tree.children[this. channel_pos].embed_code):(this.channel_pos=0,this.mb.publish(e.EVENTS.SET_EMBED_CODE,this.channel_tree.children[0].embed_code))},onPlaybackReady:function(t){this.channel_pos>0&&this.mb.publish(e.EVENTS.PLAY)}}),r}),e.plugin("ExternalId",function(e,t,n,i){var r=function(n,i){this.id=i,this.mb=n,this.mb.intercept(e.EVENTS.SET_EMBED_CODE,"ExternalId",t.bind(this._checkExternalId,this))};return t.extend(r.prototype,{_checkExternalId:function(t,n,i){var r=n.match("^extId:(.*)");return r&&r[1]?(this.externalId=r[1],this.options=i,this._fetchExternalId({externalId:this.externalId,pcode:e.playerParams.pcode||"1kNG061cgaoolOncv54OAO1ceO-I",server:e.SERVER.API}),!1):[n,i]},_fetchExternalId:function(i){this._contentAjax=n.ajax({url:e.URLS.EXTERNAL_ID(i),type:"GET",dataType:"json",crossDomain:!0,cache:!1,success:t.bind(this._onExternalIdFetched,this),error:t.bind(this._onExternalIdError,this)})},_onExternalIdFetched:function(n){var i=null,r=e.HM.safeObject("playbackControl.co ntentTree",n,{});r.errors&&0==r.errors.code&&t.each(r.content_tree,t.bind(function(e,t){e.external_id===this.externalId&&(i=t)},this)),t.extend(this.options,{originalId:this.externalId}),i?this.mb.publish(e.EVENTS.SET_EMBED_CODE,i,this.options):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.INVALID_EXTERNAL_ID})},_onExternalIdError:function(t){this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.INVALID_EXTERNAL_ID})}}),r}),function(e,t,n){var i=function(n,i){e.requiredInEnvironment("html5-playback")&&(this.mb=n,this.id=i,this.embedCode=null,this.authToken=null,this.heartbeatInterval=300,this.timer=null,this.retries=3,this.AUTH_HEARTBEAT_URL=t.template("/player_api/v1/auth_heartbeat/pcode//auth_token/?embed_code="),this.mb.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"auth_heartbeat",t.bind(this._onEmbedCodeChanged,this)),this.mb.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,"auth_heartbeat",t.bind(this._onAuthorizationFetched,this)))};t.extend(i.prototype,{_onEmbedCodeCha nged:function(e,t){this.embedCode=t,this.timer&&clearInterval(this.timer),this.ajax&&(this.ajax.error=null,this.ajax.abort(),this.ajax=null),this.retries=3},_onAuthorizationFetched:function(e,n){n.heartbeat_data&&n.heartbeat_data.heartbeat_interval&&(this.heartbeatInterval=n.heartbeat_data.heartbeat_interval),n.auth_token&&(this.authToken=n.auth_token),n.require_heartbeat===!0&&(this.timer=setInterval(t.bind(this._onTimerTick,this),1e3*this.heartbeatInterval),this._onTimerTick())},_onTimerTick:function(){this.ajax=n.ajax({url:this.AUTH_HEARTBEAT_URL({server:e.SERVER.AUTH,pcode:e.playerParams.pcode||"unknown",authToken:this.authToken||"",embedCode:this.embedCode||""}),type:"GET",dataType:"json",crossDomain:!0,cache:!1,success:t.bind(this._onHeartbeatResponse,this),error:t.bind(this._onHeartbeatErrorResponse,this)})},_onHeartbeatResponse:function(t){this.ajax=null,t.message&&"OK"==t.message&&t.signature?!t.expires||t.expi res-1?this._onHeartbeatError(e.ERROR.API.SAS.ERROR_INVALID_ENTITLEMENTS):this._onHeartbeatError(e.ERROR.API.SAS.CONCURRENT_STREAMS)},_onHeartbeatError:function(t){return this.ajax=null,this.retries--,this.retries>0?void this._onTimerTick():(this.timer&&clearInterval(this.timer),void this.mb.publish(e.EVENTS.ERROR,{code:t}))}}),e.registerModule("auth_heartbeat",function(e,t){return new i(e,t)})}(e,e._,e.$),function(e,t,n){e.EVENTS.AMC_ALL_ADS_DONE="adManagerControllerAllAdsDone",e.EVENTS.AMC_PREROLLS_DONE="adManagerControllerPrerollsDone",e.EVENTS.AMC_ALL_READY="adManagerControllerAllReady",e.EVENTS.AD_POD_STARTED="adPodStarted",e.EVENTS.AD_POD_ENDED="adPodEnded",e.EVENTS.NONLINEAR_AD_PLAYED="nonlinearAdPlayed",e.EVENTS.HIDE_NONLINEAR_AD="hideNonlinearAd",e.EVENTS.SHOW_NONLINEAR_AD="showNonlinearAd",e.EVENTS.SHOW_NONLINEAR_AD_CLOSE_BUTTON="showNonlinearAdCloseButton",e.EVENTS.NONLINEAR_AD_DISPLAYED="nonlinearAdDisplayed",e.EVENTS.AD_MANAGER_HANDLED_ADS="adManagerHandledAds ",e.EVENTS.SHOW_AD_SKIP_BUTTON="showAdSkipButton",e.EVENTS.SHOW_AD_CONTROLS="showAdControls",e.EVENTS.SHOW_AD_MARQUEE="showAdMarquee";var i=3e3,r=5e3,o=5,a=2e3,s={},l={PAUSE_AD_ON_CLICK:"pauseAdOnClick",AD_LOAD_TIMEOUT:"adLoadTimeout",DISPLAY_CUE_POINTS:"displayCuePointMarkers",REPLAY_ADS:"replayAds",SHOW_NONLINEAR_CLOSE_BUTTON:"showNonLinearCloseButton",SHOW_LINEAR_AD_SKIP_BUTTON:"showLinearAdSkipButton",LINEAR_AD_SKIP_BUTTON_START_TIME:"linearAdSkipButtonStartTime",ALLOW_AD_CLICK_THROUGH_ON_VIDEO:"allowAdClickThroughOnVideo"},c=[];e.Ads={manager:function(i){if("function"==typeof i){var r=i.apply({},[t,n]);e.Ads.validateAdManager(r)&&(e.log("AMC: Registering ad manager factory: "+r.name),s[r.name]=i)}},unregisterAdManager:function(t){e.log("AMC: Removing an ad manager factory: "+t),t&&s[t]&&(c.push(t),delete s[t])},validateAdManager:function(n){function i(t){e.log("AMC: "+t)}function r(e,r,o){return t.has(n,e)?typeof n[e]!=r?(i("The ad manager '"+o+"' proper ty '"+e+"' should be type '"+r+"'"),!1):!0:(i("The ad manager '"+o+"' requires a '"+e+"' property"),!1)}function o(e,r){return t.isFunction(n[e])?!0:(i("The ad manager '"+r+"' requires a '"+e+"' function"),!1)}var a={name:"string",ready:"boolean"},l=["initialize","buildTimeline","playAd","cancelAd"];if(!n)return i(" The ad manager must be defined"),!1;if(!t.isObject(n))return i("The ad manager must be an object"),!1;for(var c in a)if(!r(c,a[c],n.name))return!1;for(var u=0;un?n:e.position},this);o.publish(e.EVENTS.RESET_CUE_POINTS,i)},c()};e.AdManagerController=function(c,m){var E="adManagerController",g=c,v=!1,y={},b=!1;this.adManagerSettings={},this.playerSettings={},this.backlotSettings=null,this.pageSettings=null;var _=null,S=null,A=null,T="";this.currentEmbedCode="",this.movieMetadata=null,this.startTime=-1,this.movieDuration=-1,this.isLiveStream=!1;var C=-1,N=-1,O=[],R=[],I=[],D=!1,w=0,P=0,x=!1,k=!1,L=0,M=!1,V=!1,F=!1;this.ended=!1,this.waitForPostrollToPlay=!0;var U={},B=!1,j= !1,H=!1,W=!1,Y=null,G=null;this.adStarted=!1;var z=!1,q=!1,K={},$={},X=!0,Q=null,Z=!1,J=!1;this.ui=null,this.platform=null,this["interface"]=null,this.adManagers={},this.unregisteredAdManagers=[],this.MAX_AD_MODULE_LOAD_TIMEOUT=5e3,this.MAX_AD_REQUEST_TIMEOUT=a,this.AD_SETTINGS=l,this.EVENTS={INITIAL_PLAY_REQUESTED:"initialPlayRequested",REPLAY_REQUESTED:"replayRequested",PLAY_STARTED:"playStarted",PLAYHEAD_TIME_CHANGED:"playheadTimeChanged",PAUSE:"pause",RESUME:"resume",CONTENT_COMPLETED:"contentCompleted",CONTENT_AND_ADS_COMPLETED:"contentAndAdsCompleted",SIZE_CHANGED:"sizeChanged",CONTROLS_SHOWN:"controlsShown",CONTROLS_HIDDEN:"controlsHidden",CONTENT_CHANGED:"contentChanged",FULLSCREEN_CHANGED:"fullscreenChanged",VOLUME_CHANGED:"volumeChanged",MAIN_CONTENT_IN_FOCUS:"mainContentInFocus"};var ee={SEEKED:"seeked",CONTENT_VIDEO_PLAYED:"contentVideoPlayed"};this.ADTYPE={LINEAR_OVERLAY:"linearOverlay",NONLINEAR_OVERLAY:"nonlinearOverlay",LINEAR_VIDEO:"linearVideo",COMPANION:"companion "},this.AD_CANCEL_CODE={SKIPPED:"skipped",TIMEOUT:"timeout",ERROR:"error",STREAM_ENDED:"streamEnded"},this.Ad=function(e){e||(e={}),this.id=t.uniqueId(e.adManager+"_"),this.position=e.position||0,this.duration=e.duration||0,this.adManager=e.adManager,this.ad=e.ad||{},this.adType=e.adType||f.ADTYPE.LINEAR_VIDEO,this.isLinear=e.adType==f.ADTYPE.LINEAR_VIDEO||e.adType==f.ADTYPE.LINEAR_OVERLAY,this.streams=e.streams||{},this.played=!1};var te=["Init","Ready","Playback","Reload","Overlay"],ne=["LinearAd"];this.fsm=e.StateMachine.create({initial:"Init",messageBus:g,moduleName:E,target:this,events:[{name:e.EVENTS.PLAYER_CREATED,from:"Init",to:"Init"},{name:e.EVENTS.PLAY,from:ne,to:"*"},{name:e.EVENTS.INITIAL_PLAY,from:"*",to:"Playback"},{name:e.EVENTS.SET_EMBED_CODE,from:"*",to:"Reload"},{name:e.EVENTS.EMBED_CODE_CHANGED,from:"*",to:"Ready"},{name:e.EVENTS.PLAYED,from:"*",to:"Ready"},{name:e.EVENTS.REPLAY,from:"*",to:"Playback"},{name:e.EVENTS.AMC_ALL_READY,from:"*",to:"Ready"},{name:e.EVE NTS.WILL_PLAY_ADS,from:te,to:"LinearAd"},{name:e.EVENTS.AD_POD_STARTED,from:"*",to:"LinearAd"},{name:e.EVENTS.WILL_PLAY_NONLINEAR_AD,from:"*",to:"*"},{name:e.EVENTS.PLAY_NONLINEAR_AD,from:"*",to:"Overlay"},{name:e.EVENTS.NONLINEAR_AD_PLAYED,from:"*",to:"Playback"},{name:e.EVENTS.ADS_PLAYED,from:"*",to:"Playback"}]});var ie=t.bind(function(){if(!b&&S&&_&&A){b=!0,t.delay(t.bind(le,this),i);for(var n in l)"undefined"!=typeof this.pageSettings[l[n]]&&(this.adManagerSettings[l[n]]=this.pageSettings[l[n]]);for(var a in this.adManagers){var s=this.adManagers[a];if(s){var c=e.getInnerProperty(this.backlotSettings,["modules",a,"metadata"])||{};c=t.extend(c,e.getInnerProperty(this.pageSettings,[a]));for(var n in l)if("undefined"!=typeof c[l[n]]){if("google-ima-ads-manager"==s.name&&null!=this.adManagerSettings[l[n]])return;this.adManagerSettings[l[n]]=c[l[n]]}h(s,"loadMetadata",[c,e.getInnerProperty(this.backlotSettings,["base"])||{},this.movieMetadata] )}}this.adManagerSettings[l.PAUSE_AD_ON_CLICK]="undefined"==typeof this.adManagerSettings[l.PAUSE_AD_ON_CLICK]?!0:re(this.adManagerSettings[l.PAUSE_AD_ON_CLICK]),this.adManagerSettings[l.DISPLAY_CUE_POINTS]="undefined"==typeof this.adManagerSettings[l.DISPLAY_CUE_POINTS]?!0:re(this.adManagerSettings[l.DISPLAY_CUE_POINTS]),this.adManagerSettings[l.REPLAY_ADS]="undefined"==typeof this.adManagerSettings[l.REPLAY_ADS]?!0:re(this.adManagerSettings[l.REPLAY_ADS]),this.adManagerSettings[l.SHOW_NONLINEAR_CLOSE_BUTTON]="undefined"==typeof this.adManagerSettings[l.SHOW_NONLINEAR_CLOSE_BUTTON]?!1:re(this.adManagerSettings[l.SHOW_NONLINEAR_CLOSE_BUTTON]),this.adManagerSettings[l.SHOW_LINEAR_AD_SKIP_BUTTON]="undefined"==typeof this.adManagerSettings[l.SHOW_LINEAR_AD_SKIP_BUTTON]?!1:re(this.adManagerSettings[l.SHOW_LINEAR_AD_SKIP_BUTTON]),this.adManagerSettings[l.LINEAR_AD_SKIP_BUTTON_START_TIME]="undefined"==typeof this.adManagerSettings[l.LINEAR_AD_SKIP_BUTTON_START_TIME]?o:parseInt(this.adMana gerSettings[l.LINEAR_AD_SKIP_BUTTON_START_TIME]),this.adManagerSettings[l.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]="undefined"==typeof this.adManagerSettings[l.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]?!0:re(this.adManagerSettings[l.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]),this.ui.shouldDisplayCuePointMarkers(),null!=this.adManagerSettings[l.AD_LOAD_TIMEOUT]&&(r=1e3*this.adManagerSettings[l.AD_LOAD_TIMEOUT]),se()}},this),re=t.bind(function(e){return e=e.toString().toLowerCase(),"true"===e||"yes"===e||"1"===e},this),oe=t.bind(function(t){if(t=t||!1,g.removeDependent(e.EVENTS.PLAYBACK_READY,e.EVENTS.AMC_ALL_READY),g.removeDependent(e.EVENTS.WILL_PLAY_FROM_BEGINNING,e.EVENTS.AMC_PREROLLS_DONE),g.removeDependent(e.EVENTS.PLAYED,e.EVENTS.AMC_ALL_ADS_DONE),g.removeDependent(e.EVENTS.PLAYED,e.EVENTS.AD_MANAGER_HANDLED_ADS),U={},!t){var n=function(e,t,n,i){return n};g.addDependent(e.EVENTS.PLAYBACK_READY,e.EVENTS.AMC_ALL_READY,E,n),g.addDependent(e.EVENTS.WILL_PLAY_FROM_BEGINNING,e.EVENTS.AMC_PREROLLS_DONE ,E,n),g.addDependent(e.EVENTS.PLAYED,e.EVENTS.AMC_ALL_ADS_DONE,E,n)}},this);this.onPlayerCreated=function(i,r,o){var a=t.bind(function(){Ye(),g.publish(e.EVENTS.AMC_ALL_READY,Object.keys(this.adManagers))},this);for(var l in s){var c=s[l],f=c.apply({},[t,n]);e.log("AMC: Registering ad manager: "+f.name),this.adManagers[f.name]=f}if(!this.adManagers||t.isEmpty(this.adManagers))return void a();if(!e.supportAds||!e.requiredInEnvironment("ads")||e.requiredInEnvironment("flash-playback"))return void a();if(this.ui=new p(g,this.adManagerSettings,this.adManagers),this.platform=new d(g),this["interface"]=new u(this),this.pageSettings=o,S=!0,o&&null!=o.initialTime&&(this.startTime=o.initialTime),this.ui.elementId=r,this.ui.rootElement=n("#"+r),!this.ui.rootElement)return a();this.ui.height=this.ui.rootElement.height(),this.ui.width=this.ui.rootElement.width(),oe(),g.intercept(e.EVENTS.DESTROY,E,t.bind(this.onDestroy,this));for(var m in this.adManagers)this.adManagers[m]&& amp;h(this.adManagers[m],"initialize",[this["interface"],r]);g.subscribe(e.EVENTS.PLAYER_EMBEDDED,E,t.bind(this.onPlayerEmbedded,this)),g.subscribe(e.EVENTS.METADATA_FETCHED,E,t.bind(this.onMetadataFetched,this)),g.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,E,t.bind(this.onContentTreeFetched,this)),g.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,E,t.bind(this.onAuthorizationFetched,this)),g.subscribe(e.EVENTS.UI_READY,E,t.bind(this.onUiReady,this)),g.subscribe(e.EVENTS.PLAYBACK_READY,E,t.bind(this.onPlaybackReady,this)),g.subscribe(e.EVENTS.WILL_PLAY_FROM_BEGINNING,E,t.bind(this.onWillPlayFromBeginning,this)),g.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,E,t.bind(this.onPlayheadTimeChanged,this)),g.subscribe(e.EVENTS.PAUSE,E,t.bind(this.onPause,this)),g.subscribe(e.EVENTS.WILL_PLAY,E,t.bind(this.onWillPlay,this)),g.subscribe(e.EVENTS.PLAYING,E,t.bind(this.onPlaying,this)),g.subscribe(e.EVENTS.SEEK,E,t.bind(this.onSeek,this)),g.subscribe(e.EVENTS.SEEKED,E,t.bind(this.onSeeked,this)),g.subscribe (e.EVENTS.VC_PLAY,E,we),g.subscribe(e.EVENTS.VC_PLAYING,E,t.bind(this.onVideoPlaying,this)),g.subscribe(e.EVENTS.VC_PLAY_FAILED,E,t.bind(this.onVideoPlayFailed,this)),g.subscribe(e.EVENTS.VC_PLAYED,E,t.bind(this.onVideoPlayed,this)),g.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,E,t.bind(this.onVideoElementInFocus,this)),g.subscribe(e.EVENTS.FULLSCREEN_CHANGED,E,t.bind(this.onFullscreenChanged,this)),g.subscribe(e.EVENTS.SIZE_CHANGED,E,t.bind(this.onSizeChanged,this)),g.subscribe(e.EVENTS.VOLUME_CHANGED,E,t.bind(this.onVolumeChanged,this)),g.subscribe(e.EVENTS.CONTROLS_SHOWN,E,t.bind(this.onControlsShown,this)),g.subscribe(e.EVENTS.CONTROLS_HIDDEN,E,t.bind(this.onControlsHidden,this)),g.subscribe(e.EVENTS.ADS_CLICKED,E,t.bind(this.onAdsClicked,this)),g.subscribe(e.EVENTS.SKIP_AD,E,t.bind(this.onSkipAd,this)),g.subscribe(e.EVENTS.WILL_PAUSE_ADS,E,t.bind(this.onWillPauseAds,this)),g.subscribe(e.EVENTS.WILL_RESUME_ADS,E,t.bind(this.onWillResumeAds,this)),g.subscribe(e.EVENTS.AD_POD_END ED,E,t.bind(this.onAdPodEnded,this)),ie()};var ae=t.bind(function(){!H&&!t.isEmpty(this.ui.uiParameters)&&(this.ui.setupAndRegisterUi(),H=!0)},this);this.onPlayerEmbedded=function(e,t){t&&(this.ui.uiParameters=t)},this.onUiReady=function(e,t){t&&(this.ui.aliceUiParameters=t),this.ui.useSingleVideoElement||ae()},this.onPlaybackReady=function(){this.ui.useSingleVideoElement||ae()},this.onMetadataFetched=function(e,t){this.backlotSettings=t,_=!0,ie()},this.onContentTreeFetched=function(e,t){this.movieMetadata=t,A=!0,t&&t.duration&&-1==this.movieDuration&&(this.movieDuration=t.duration/1e3),ie()},this.onAuthorizationFetched=function(e,t){this.isLiveStream=!1,t&&t.streams&&t.streams[0]&&(this.isLiveStream=t.streams[0].is_live_stream)},this.loadAdModule=function(n,i,r){t.defer(function(n,i,r,o){e.loadScriptOnce(r,t.bind(function(){o(!0),n.onAdManagerReady()},n,i,o),t.bind(function(){o(!1),n.removeAdManager(i)} ,n,i,o),n.MAX_AD_MODULE_LOAD_TIMEOUT)},this,n,i,r)},this.onAdManagerReady=function(){se()},this.removeAdManager=function(t){e.log("AMC: removing failed ad manager "+t),this.unregisterAdManager(t),se()};var se=t.bind(function(){if(!v){for(var t in this.adManagers)if(!this.adManagers[t].ready)return;v=!0,ce(),g.publish(e.EVENTS.AMC_ALL_READY,Object.keys(this.adManagers))}},this),le=t.bind(function(){if(!v){for(var t in this.adManagers)this.adManagers[t].ready||this.removeAdManager(t);v||(v=!0,ce(),g.publish(e.EVENTS.AMC_ALL_READY,Object.keys(this.adManagers)))}},this);this.onAdManagerControllerAllReady=function(){return!s||t.isEmpty(s)?(e.log("AMC: No ad manager factories, destroying AMC"),void Ye()):void(j=!1)};var ce=t.bind(function(){for(var e in this.adManagers){var n=this.adManagers[e];if(n){var i=h(n,"buildTimeline",[]);t.isArray(i)&&(O=t.union(O,i),ue(O))}}O=pe(O),this.ui.resetCuePoints(O,this.movieDuration)},this),ue=t.bind(function(e){t.each(e,function(e){_e(e)&&a mp;(e.ad.lastPlayed=e.position,R.push(e))},this)},this);this.appendToTimeline=function(e){t.isArray(e)&&(O=O.concat(e),O=pe(O),ue(e))};var de=t.bind(function(e){I.push(e),I=pe(I)},this),pe=function(t){var n=t;return!e._.isArray(n)||!n.length||n.length=0?Ee():Fe({type:I[0].adManager,duration:o})):void(this.tryAdsCompleted()||V||g.publish(e.EVENTS.AMC_PREROLLS_DONE))}},this),fe=t.bind(function(e,n,i){i!==ee.SEEKED?t.each(R,function(t){var r=t.ad.lastPlayed+t.ad.repeatAfter;if(e>=r&&e0){var o,a=t.ad.repeatAfter;o=e>t.position?Math.floor((e-t.position)/a)*a+t.position:a*Math.floor(e/a),t.ad.lastPlayed=o}else t.ad.lastPlayed=r;(!n||!n&&i===ee.CONTENT_VIDEO_PLAYED)&&I.push(t)}},this):e>=N&&t.each(R,function(t){var n,i=t.ad.repeatAfter,r=ve();if(n=e>t.position?Math.floor((e-t.position)/i)*i+t.position:i*Math.floor(e/i),r)r&&e>=n&&(t.ad.lastPlayed=n);else{var o=t.ad.lastPlayed+i;e>=o&&w>e&&I.push(t) ,t.ad.lastPlayed=n}},this)},this),me=t.bind(function(e,n,i){if(void 0!=O&&0!=O.length){var r=0;for(n&&(I=[]);O[P]&&O[P].position>e&&P>0;)P--;for(var o=P;O[o]&&o0&&O[o].position!=I[I.length-1].position&&(I=[],r=0),O[o].played||D&&O[o].position=0?o++:(I.push(O[o]),O[o].isLinear&&(r+=O[o].duration),o++);return I.length>0?fe(e,!0,i):(fe(e,!1,i),t.each(I,function(e){e.isLinear&&(r+=e.duration)},this)),I=pe(I),r}},this);this.getTimeline=function(){return O},this.getRepeatAds=function(){return t.clone(R)},this.getAdQueue=function(){return I},this.isLastAdPlayed=function(){return 0==O.length||O[O.length-1].played},this.sendURLToLoadAndPlayNonLinearAd=function(t,n,i){g.publish(e.EVENTS.PLAY_NONLINEAR_AD,{ad:t,url:i}),this.notifyNonlinearAdStarted(n),i&&this.adManagerSettings[l.SHOW_NONLINEAR_CLOSE_BUTTON]&&g.publish(e.EVENTS.SHOW_NONLINEAR_AD_CLOSE_BUTTON)},this.showSkipVideoAdButton=func tion(e,t){"boolean"==typeof e&&(X=e,t&&(Q=t))};var Ee=t.bind(function(){var t=n.inArray(this.currentState,ne)>=0,i=k||!V&&C>0||this.startTime>=this.movieDuration;if(this.startTime>=this.movieDuration&&(C=Number.MAX_VALUE),me(C,i),I.length0?I[0].position:null},ye=t.bind(function(t){q=!0,Y&&this.adManagers[Y.adManager]&&(be(Y,t),g.publish(e.EVENTS.ADS_PLAYED))},this),be=t.bind(function(e,t){e&&this.adManagers[e.adManager]&&h(this.adManagers[e.adManager],"cancelAd",[e,t])},this);this.playAd=function(n){if(n)if(Y=n,Y.played=!0,n.isLinear){e.log("AMC: Will play a linear ad for time: "+n.position+" at playhead "+C);var i=t.bind(function(t,n,i){e.log("AMC: Cancelling an ad due to timeout "+i),be(n,{code:this.AD_CANCEL_CODE.TIMEOUT}),t.publish(e.EVENTS.SINGLE_AD_PLAYED,i),t.publish(e.EVENTS.AD_POD_ENDED,i)},this,g,n,n.id);Se(n,i,r),n.adManager&&this.adManagers[n.adManager]?n.adType===this.ADTYPE.LINEAR_VIDEO ?(g.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc",Ae),g.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"amc",t.bind(Te,this,n)),g.subscribe(e.EVENTS.VC_ERROR,"amc",t.bind(Oe,this,n.id)),this.ui.createAdVideoElement(n.streams,this.adManagers[n.adManager].videoRestrictions)):h(this.adManagers[n.adManager],"playAd",[n]):this.notifyPodEnded(n.id)}else W=!0,Y=n,G=Y,g.publish(e.EVENTS.WILL_PLAY_NONLINEAR_AD,n)};var _e=t.bind(function(e){return e&&e.ad?e.ad.repeatAfter:null},this),Se=t.bind(function(e,n,i){e&&"function"==typeof n&&!this.isAdManagerControllingAds(e.adManager)&&(K[e.id]=t.delay(n,i))},this),Ae=t.bind(function(t,n){n&&n.videoId===e.VIDEO.ADS&&(g.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc"),this.ui.transitionToAd())},this),Te=t.bind(function(t,n,i){i==e.VIDEO.ADS&&(g.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"amc"),g.unsubscribe(e.EVENTS.VC_ERROR,"amc"),h(this.adManagers[t.adManager],"playAd",[t]),t.adType= ==this.ADTYPE.LINEAR_VIDEO&&g.publish(e.EVENTS.VC_PLAY,e.VIDEO.ADS))},this),Ce=t.bind(function(e){Ne(e),this.adStarted=!0},this),Ne=t.bind(function(e){K&&K[e]&&(clearTimeout(K[e]),delete K[e])},this),Oe=t.bind(function(t,n,i,r){i===e.VIDEO.ADS&&(g.unsubscribe(e.EVENTS.VC_ERROR,"amc"),Y&&Y.isLinear&&this.adManagers[Y.adManager]&&h(this.adManagers[Y.adManager],"adVideoError",[Y,r]),this.notifyPodEnded(t))},this);this.notifyPodStarted=function(t,n){e.log("AMC: Start ad pod "+t),Ne(t),g.publish(e.EVENTS.AD_POD_STARTED,n)},this.notifyPodEnded=function(t){e.log("AMC: End ad pod "+t),J=!0,Ne(t),Re(),g.publish(e.EVENTS.AD_POD_ENDED,t)},this.notifyNonlinearAdStarted=function(t){e.log("AMC: Start of non-linear ad "+t),Ce(t)},this.notifyNonlinearAdEnded=function(t){G=null,e.log("AMC: End of non-linear ad "+t),g.publish(e.EVENTS.NONLINEAR_AD_PLAYED,t),Re()},this.notifyLinearAdStarted=function(t,n){e.log("AMC: Start of linear ad "+t),Z=!0,g .publish(e.EVENTS.WILL_PLAY_SINGLE_AD,n),Ce(t)},this.notifyLinearAdEnded=function(t){e.log("AMC: End of linear ad "+t),Z=!1,clearTimeout($),g.publish(e.EVENTS.SINGLE_AD_PLAYED,t)},this.hidePlayerUi=function(){g.publish(e.EVENTS.SHOW_AD_CONTROLS,!1),g.publish(e.EVENTS.SHOW_AD_MARQUEE,!1)};var Re=t.bind(function(){g.publish(e.EVENTS.SHOW_AD_CONTROLS,!0),g.publish(e.EVENTS.SHOW_AD_MARQUEE,!0)},this);this.raiseAdError=function(t){g.publish(e.EVENTS.ADS_ERROR,t)},this.addPlayerListener=function(e,n){t.indexOf(t.values(this.EVENTS),e)=0&&n.splice(i,1),n.length0)},this.onReplay=function(){this.startTime=0,C=0,He(),je(),oe(),ge(),Ie(this.EVENTS.REPLAY_REQUESTED),t.each(O,t.bind(function(e){e.played=!this.adManagerSettings[l.REPLAY_ADS]},this)),he(this.startTime,!1)},this.onWillPlayFromBeginning=function(){V||n.inArray(this.currentState,ne)>=0||(T=this.currentEmbedCode)},this.onSetEmbedCode=function(e,n,i){i&&(this.pageSettings=t.extend(this.pageSettings,i))},this.onEmbedC odeChanged=function(e,t){for(var n in this.adManagers)this.adManagers[n].ready=!1;t!=this.currentEmbedCode&&(T=this.currentEmbedCode),this.currentEmbedCode=t,""!=T&&T!=this.currentEmbedCode&&(Ie(this.EVENTS.CONTENT_CHANGED),Me())},this.onPlayheadTimeChanged=function(n,i,r,o,a,s){if(s===e.VIDEO.MAIN){if(!V)return;if(C=i,this.movieDuration=r,i>N&&(N=i),M||k||x)return;if(!B&&C>this.startTime&&(e.log("Reached start time at playhead: "+C+" for start time: "+this.startTime),B=!0),-1==this.startTime)return void(this.startTime=C);B&&he(C,!0),Ie(this.EVENTS.PLAYHEAD_TIME_CHANGED,i,r)}else if(s===e.VIDEO.ADS){var c={};c[l.SHOW_LINEAR_AD_SKIP_BUTTON]=X;var u=De(l.SHOW_LINEAR_AD_SKIP_BUTTON,[this.pageSettings,c,this.adManagerSettings]);if("undefined"!=typeof u&&(u=re(u)),u){var d;Q&&(d=Q.indexOf("%")===Q.length-1?parseInt(Q)/100*Y.duration:parseInt(Q)),c[l.LINEAR_AD_SKIP_BUTTON_START_TIME]=d;var p=De(l.LINEAR_AD_SKIP_ BUTTON_START_TIME,[this.pageSettings,c,this.adManagerSettings]);t.isNumber(p)&&p>=0&&i>=p&&g.publish(e.EVENTS.SHOW_AD_SKIP_BUTTON)}}};var De=t.bind(function(e,t){var n,i;for(var r in t)if(n=t[r],i=n[e],"undefined"!=typeof i)break;return i},this);this.onPause=function(){if(n.inArray(this.currentState,ne)>=0&&this.adStarted)return void(Y&&this.adManagers[Y.adManager]&&g.publish(e.EVENTS.WILL_PAUSE_ADS));if(M=!0,W){var t="pauseOverlayTimer";Ie(t)}V&&Ie(this.EVENTS.PAUSE)},this.onWillPauseAds=function(){Y&&this.adManagers[Y.adManager]&&(h(this.adManagers[Y.adManager],"pauseAd",[Y]),g.publish(e.EVENTS.VC_PAUSE,e.VIDEO.ADS),z=!0)},this.onWillResumeAds=function(){Y&&this.adManagers[Y.adManager]&&(h(this.adManagers[Y.adManager],"resumeAd",[Y]),g.publish(e.EVENTS.VC_PLAY,e.VIDEO.ADS),z=!1)},this.onWillPlay=function(e,t){V||Ie(this.EVENTS.PLAY_STARTED),M&&F&&Ie(this.EVENTS.RESUME,t ),F&&(V=!0),M&&(M=!1,k&&Le())};var we=t.bind(function(t,n){n==e.VIDEO.MAIN&&(F=!0)},this);this.onPlaying=function(){x=!1,V=!0},this.onVideoPlayed=function(t,n){n===e.VIDEO.MAIN?Pe(t,n):n===e.VIDEO.ADS&&Y&&Y.isLinear&&this.adManagers[Y.adManager]&&h(this.adManagers[Y.adManager],"adVideoEnded")},this.onVideoElementInFocus=function(t,n){n===e.VIDEO.MAIN&&(Re(),Ie(this.EVENTS.MAIN_CONTENT_IN_FOCUS))};var Pe=t.bind(function(t,n){n===e.VIDEO.MAIN&&(W&&ye({code:this.AD_CANCEL_CODE.STREAM_ENDED}),this.ended=!0,G=null,W=!1,this.waitForPostrollToPlay=!1, Ie(this.EVENTS.CONTENT_COMPLETED),he(Number.MAX_VALUE,!1,ee.CONTENT_VIDEO_PLAYED))},this);this.onPlayed=function(){V=!1,F=!1,T=this.currentEmbedCode},this.onSeek=function(e,t){return n.inArray(this.currentState,ne)>=0?void(Y&&Y.adManager&&h(this.adManagers[Y.adManager],"seekAd")):(!B&&t!=this.startTime&&(B=!0),D=t>=w,L =t,C=t,x=!0,void 0)},this.onSeeked=function(e,t){"number"==typeof t&&(C=t),t>N&&(N=t),x=!1,ke()},this.onVideoPlaying=function(t,n){n===e.VIDEO.ADS&&h(this.adManagers[Y.adManager],"adVideoPlaying")},this.onVideoPlayFailed=function(t,n,i){n===e.VIDEO.ADS?Y&&Y.isLinear&&this.adManagers[Y.adManager]&&h(this.adManagers[Y.adManager],"adVideoError",[Y,i]):n===e.VIDEO.MAIN&&We()};var xe=t.bind(function(){k=!1,x=!1},this),ke=t.bind(function(){V&&(x=!1,k=!0,M||Le())},this),Le=t.bind(function(){xe(),B&&he(C,!0,ee.SEEKED)},this),Me=t.bind(function(){ye({code:this.AD_CANCEL_CODE.STREAM_ENDED}),We(),j=!0},this);this.onFullscreenChanged=function(e,t){Ie(this.EVENTS.FULLSCREEN_CHANGED,t)},this.onSizeChanged=function(e,t,n){0>t||0>n||(this.ui.height=n,this.ui.width=t,Ie(this.EVENTS.SIZE_CHANGED,t,n))},this.onControlsShown=function(){Ie(this.EVENTS.CONTROLS_SHOWN)},this.onControlsHidden=function(){Ie(this.EVENTS.CONTROLS _HIDDEN)},this.onVolumeChanged=function(e,t){Ie(this.EVENTS.VOLUME_CHANGED)},this.adsClicked=function(t){if(Y)if(!z||t&&"learnMoreButton"==t.source){if(this.adManagerSettings[l.PAUSE_AD_ON_CLICK]&&(Y&&!Y.isLinear?g.publish(e.EVENTS.PAUSE):this.onPause()),Y.isLinear&&!this.adManagerSettings[l.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]&&t&&"videoWindow"==t.source)return;this.adManagers[Y.adManager]&&h(this.adManagers[Y.adManager],"playerClicked",[Y,!0])}else g.publish(e.EVENTS.PLAY)},this.onSkipAd=function(){"LinearAd"==this.currentState?(e.log("AMC: Canceling linear ad due to skip button clicked."),be(Y,{code:this.AD_CANCEL_CODE.SKIPPED})):"Overlay"==this.currentState&&(e.log("AMC: Canceling nonlinear ad due to skip button clicked."),Ve())};var Ve=t.bind(function(){W&&Y&&this.adManagers[Y.adManager]&&(q=!0,h(this.adManagers[Y.adManager],"cancelOverlay",[Y]),g.publish(e.EVENTS.NONLINEAR_AD_PLAYED),g.publish( e.EVENTS.ADS_PLAYED))},this),Fe=t.bind(function(n){xe(),W&&Y&&this.adManagers[Y.adManager]&&(t.isFunction(this.adManagers[Y.adManager].hideOverlay)?(h(this.adManagers[Y.adManager],"hideOverlay",[Y]),g.publish(e.EVENTS.HIDE_NONLINEAR_AD)):Ve()),g.publish(e.EVENTS.WILL_PLAY_ADS,n)},this),Ue=t.bind(function(){Ee()},this);this.onWillPlayAds=function(){Ue()},this.onAdPodStarted=function(){g.publish(e.EVENTS.DISABLE_SEEKING,e.VIDEO.ADS)},this.onWillPlayNonlinearAd=function(n,i){var o=t.bind(function(t,n,i){G=null,e.log("AMC: Cancelling a non-linear ad due to timeout "+i),be(n,{code:this.AD_CANCEL_CODE.TIMEOUT}),t.publish(e.EVENTS.NONLINEAR_AD_PLAYED,i)},this,g,i,i.id);Se(i,o,r),i.adManager&&this.adManagers[i.adManager]?h(this.adManagers[i.adManager],"playAd",[i]):this.notifyNonlinearAdEnded(i.id)},this.onPlayNonlinearAd=function(){};var Be=t.bind(function(e){je(),q||Ee()},this);this.onAdPodEnded=function(t,n){J=!1,g.publish(e.EVENTS.ENABLE_SEEKING,e.VIDEO.A DS),g.publish(e.EVENTS.VC_SET_VIDEO_STREAMS,e.VIDEO.ADS,null),Be(n)},this.onNonlinearAdPlayed=function(e,t){Be(t)},this.tryAdsCompleted=function(){var t=!1;return this.ended&&!this.waitForPostrollToPlay&&(I.length2;if(null==e&&(e=[]),m&&e.reduce===m)return i&&(t=C.bind(t,i)),r?e.reduce(t,n):e.reduce(t);if(N(e,function(e,o,a){r?n=t.call(i,n,e,o,a):(n=e,r=!0)}),!r)throw new TypeError("Reduce of empty array with no initial value");return n},C.reduceRight=C.foldr=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),E&&e.reduceRight===E)return i&&(t=C.bind(t,i)),r?e.reduceRight(t,n):e.reduceRight(t);var o=C.toArray(e).reverse();return i&&!r&&(t=C.bind(t,i)),r?C.reduce(o,t,n,i):C.reduce(o,t)},C.find=C.detect=function(e,t,n){var i;return O(e,function(e,r,o){return t.call(n,e,r,o)?(i=e,!0):void 0}),i},C.filter=C.select=function(e,t,n){var i=[];return null==e?i:g&&e.filter===g?e.filter(t,n):(N (e,function(e,r,o){t.call(n,e,r,o)&&(i[i.length]=e)}),i)},C.reject=function(e,t,n){var i=[];return null==e?i:(N(e,function(e,r,o){t.call(n,e,r,o)||(i[i.length]=e)}),i)},C.every=C.all=function(e,t,n){var i=!0;return null==e?i:v&&e.every===v?e.every(t,n):(N(e,function(e,r,a){return(i=i&&t.call(n,e,r,a))?void 0:o}),!!i)};var O=C.some=C.any=function(e,t,n){t||(t=C.identity);var i=!1;return null==e?i:y&&e.some===y?e.some(t,n):(N(e,function(e,r,a){return i||(i=t.call(n,e,r,a))?o:void 0}),!!i)};C.include=C.contains=function(e,t){var n=!1;return null==e?n:b&&e.indexOf===b?-1!=e.indexOf(t):n=O(e,function(e){return e===t})},C.invoke=function(e,t){var n=c.call(arguments,2);return C.map(e,function(e){return(C.isFunction(t)?t||e:e[t]).apply(e,n)})},C.pluck=function(e,t){return C.map(e,function(e){return e[t]})},C.max=function(e,t,n){if(!t&&C.isArray(e)&&e[0]===+e[0])return Math.max.apply(Math,e);if(!t&&C.isEmpty(e))return-(1/0);var i={computed:-(1/0)};return N(e,function(e,r,o){var a=t?t.call(n,e,r,o):e;a>=i.computed&&(i={value:e,computed:a})}),i.value},C.min=function(e,t,n){if(!t&&C.isArray(e)&&e[0]===+e[0])return Math.min.apply(Math,e);if(!t&&C.isEmpty(e))return 1/0;var i={computed:1/0};return N(e,function(e,r,o){var a=t?t.call(n,e,r,o):e;an?-1:n>i?1:0}),"value")},C.groupBy=function(e,t){var n={},i=C.isFunction(t)?t:function(e){return e[t]};return N(e,function(e,t){var r=i(e,t);(n[r]||(n[r]=[])).push(e)}),n},C.sortedIndex=function(e,t,n){n||(n=C.identity);for(var i=0,r=e.length;r>i;){var o=i+r>>1;n(e[o])=0})})},C.difference=function(e){var t=C.flatten(c.call(arguments,1),!0);return C.filter(e,function(e){return!C.include(t,e)})},C.zip=function(){for(var e=c.call(arguments),t=C.max(C.pluck(e,"length")),n=new Array(t),i=0;t>i;i++)n[i]=C.pluck(e,""+i);return n},C.indexOf=function(e,t,n){if(null==e)return-1;var i,r;if(n)return i=C.sortedIndex(e,t),e[i]===t?i:-1;i f(b&&e.indexOf===b)return e.indexOf(t);for(i=0,r=e.length;r>i;i++)if(i in e&&e[i]===t)return i;return-1},C.lastIndexOf=function(e,t){if(null==e)return-1;if(_&&e.lastIndexOf===_)return e.lastIndexOf(t);for(var n=e.length;n--;)if(n in e&&e[n]===t)return n;return-1},C.range=function(e,t,n){arguments.lengthr;)o[r++]=e,e+=n;return o};var R=function(){};C.bind=function(e,t){var n,i;if(e.bind===T&&T)return T.apply(e,c.call(arguments,1));if(!C.isFunction(e))throw new TypeError;return i=c.call(arguments,2),n=function(){if(this instanceof n){R.prototype=e.prototype;var r=new R,o=e.apply(r,i.concat(c.call(arguments)));return Object(o)===o?o:r}return e.apply(t,i.concat(c.call(arguments)))}},C.bindAll=function(e){var t=c.call(arguments,1);return 0==t.length&&(t=C.functions(e)),N(t,function(t){e[t]=C.bind(e[t],e)}),e},C.memoize=function(e,t){var n={};return t||(t=C.identity),function(){var i=t.apply(this,arguments);return C.has(n,i)?n[i]:n[i]=e.a pply(this,arguments)}},C.delay=function(e,t){var n=c.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},C.defer=function(e){return C.delay.apply(C,[e,1].concat(c.call(arguments,1)))},C.throttle=function(e,t){var n,i,r,o,a,s,l=C.debounce(function(){a=o=!1},t);return function(){n=this,i=arguments;var c=function(){r=null,a&&e.apply(n,i),l()};return r||(r=setTimeout(c,t)),o?a=!0:s=e.apply(n,i),l(),o=!0,s}},C.debounce=function(e,t,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||e.apply(r,o)};n&&!i&&e.apply(r,o),clearTimeout(i),i=setTimeout(a,t)}},C.once=function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments))}},C.wrap=function(e,t){return function(){var n=[e].concat(c.call(arguments,0));return t.apply(this,n)}},C.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},C.after=function(e,t){return 0>=e?t():fu nction(){return--ei;i++)t.call(n,i)},C.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},C.result=function(e,t){if(null==e)return null;var n=e[t];return C.isFunction(n)?n.call(e):n},C.mixin=function(e){N(C.functions(e),function(t){F(t,C[t]=e[t])})};var I=0;C.uniqueId=function(e){var t=I++;return e?e+t:t},C.templateSettings={evaluate://g,interpolate://g,escape://g};var D=/.^/,w={"\\":"\\","'":"'",r:"\r",n:"\n",t:" ",u2028:"\u2028",u2029:"\u2029"};for(var P in w)w[w[P]]=P;var x=/\\|'|\r|\n|\t|\u2028|\u2029/g,k=/\\(\\|'|r|n|t|u2028|u2029)/g,L=function(e){return e.replace(k,function(e,t){return w[t]})};C.template=function(e,t,n){n=C.defaults(n||{},C.templateSettings);var i="__p+='"+e.replace(x,function(e){return"\\"+w[e]}).replace(n.escape||D,function(e,t){return"'+\n_.escape("+L(t)+")+\n'"}).replace(n.interpolate||D,function(e,t){return"'+\n("+L(t)+")+\n'"}).replace(n.evaluate||D,function(e,t){return"'; \n"+L(t)+"\n;__p+='"})+"';\n";n.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+i+"return __p;\n";var r=new Function(n.variable||"obj","_",i);if(t)return r(t,C);var o=function(e){return r.call(this,e,C)};return o.source="function("+(n.variable||"obj")+"){\n"+i+"}",o},C.chain=function(e){return C(e).chain()};var M=function(e){this._wrapped=e};C.prototype=M.prototype;var V=function(e,t){return t?C(e).chain():e},F=function(e,t){M.prototype[e]=function(){var e=c.call(arguments);return u.call(e,this._wrapped),V(t.apply(C,e),this._chain)}};C.mixin(C),N(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];M.prototype[e]=function(){var n=this._wrapped;t.apply(n,arguments);var i=n.length;return("shift"==e||"splice"==e)&&0===i&&delete n[0],V(n,this._chain)}}),N(["concat","join","slice"],function(e){var t=a[e];M.prototype[e]=function(){return V(t.apply(this._wrapped,argum ents),this._chain)}}),M.prototype.chain=function(){return this._chain=!0,this},M.prototype.value=function(){return this._wrapped}}).call(this)},{}]},{},[4]),e.exposeStaticApi("Analytics",e.Analytics),e.plugin("AnalyticsFrameworkTranslator",function(e,t,n,i){var r,o,a=function(n,i){this.id=i,r=n,o=new e.Analytics.Framework,r.subscribe("*","AnalyticsFrameworkTranslator",t.bind(s,this))},s=function(t){try{if(t){var n,i=Array.prototype.slice.call(arguments,1);switch(t){case e.EVENTS.PLAYER_CREATED:try{n=i[1]}catch(r){c(t),n={}}o.setPluginMetadata(n),o.publishEvent(e.Analytics.EVENTS.VIDEO_PLAYER_CREATED,[n]);break;case e.EVENTS.EMBED_CODE_CHANGED:try{n=new e.Analytics.EVENT_DATA.VideoSourceData(i[0],i[1])}catch(r){c(t),n={}}o.publishEvent(e.Analytics.EVENTS.VIDEO_SOURCE_CHANGED,[n]);break;case e.EVENTS.CONTENT_TREE_FETCHED:try{var a=i[0];n=new e.Analytics.EVENT_DATA.VideoContentMetadata(a.title,a.description,a.duration,a.closed_captions,a.content_type,a.hostedAtURL)}catch(r){c(t),n={}}o .publishEvent(e.Analytics.EVENTS.VIDEO_CONTENT_METADATA_UPDATED,[n]);break;case e.EVENTS.METADATA_FETCHED:try{n=i[0]}catch(r){c(t),n={}}o.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_METADATA_UPDATED,[n]);break;case e.EVENTS.INITIAL_PLAY:o.publishEvent(e.Analytics.EVENTS.INITIAL_PLAYBACK_REQUESTED);break;case e.EVENTS.PLAY:o.publishEvent(e.Analytics.EVENTS.VIDEO_PLAY_REQUESTED);break;case e.EVENTS.DOWNLOADING:try{n=new e.Analytics.EVENT_DATA.VideoDownloadingMetadata(i[0],i[1],i[2],i[3].start,i[3].end)}catch(r){n={},c(t)}o.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_DOWNLOADING,[n]);break;case e.EVENTS.BUFFERING:try{n=new e.Analytics.EVENT_DATA.VideoBufferingStartedData(i[0])}catch(r){c(t),n={}}o.publishEvent(e.Analytics.EVENTS.VIDEO_BUFFERING_STARTED,[n]);break;case e.EVENTS.BUFFERED:try{n=n=new e.Analytics.EVENT_DATA.VideoBufferingEndedData(i[0])}catch(r){c(t),n={}}o.publishEvent(e.Analytics.EVENTS.VIDEO_BUFFERING_ENDED,[n]);break;case e.EVENTS.PLAYING:o.publishEvent(e.Analytics.E VENTS.VIDEO_PLAYING);break;case e.EVENTS.PLAYED:o.publishEvent(e.Analytics.EVENTS.PLAYBACK_COMPLETED);break;case e.EVENTS.PAUSE:o.publishEvent(e.Analytics.EVENTS.VIDEO_PAUSE_REQUESTED);break;case e.EVENTS.PAUSED:o.publishEvent(e.Analytics.EVENTS.VIDEO_PAUSED);break;case e.EVENTS.REPLAY:o.publishEvent(e.Analytics.EVENTS.VIDEO_REPLAY_REQUESTED);break;case e.EVENTS.SEEK:try{n=new e.Analytics.EVENT_DATA.VideoSeekRequestedData(i[0])}catch(r){c(t),n={}}o.publishEvent(e.Analytics.EVENTS.VIDEO_SEEK_REQUESTED,[n]);break;case e.EVENTS.SEEKED:try{n=new e.Analytics.EVENT_DATA.VideoSeekCompletedData(i[0])}catch(r){c(t),n={}}o.publishEvent(e.Analytics.EVENTS.VIDEO_SEEK_COMPLETED,[n]);break;case e.EVENTS.WILL_PLAY_ADS:o.publishEvent(e.Analytics.EVENTS.AD_BREAK_STARTED);break;case e.EVENTS.ADS_PLAYED:o.publishEvent(e.Analytics.EVENTS.AD_BREAK_ENDED);break;case e.EVENTS.DESTROY:o.publishEvent(e.Analytics.EVENTS.DESTROY)}}}catch(r){}},l=function(e){return"Error AnalyticsFrameworkTranslator: "+e},c=fu nction(t){e.log(l(t+" data changed and is causing an error."))};return a}),function(e,t,n){e.AnalyticsBase=function(e,t){},n.extend(e.AnalyticsBase.prototype,{loadSucceed:function(){},reportEvent:function(){throw"Please override this function"},setup:function(e,t,i){this.mb=e,this.elementId=t,this._loaded=!1,this._bufferedEvents=[],this.mb.subscribe("*",i,n.bind(this._onAnalyticsEvent,this))},loadExternalAnalyticsJs:function(i){t.getScriptRetry(i,n.bind(this._onLoaded,this),{error:function(){e.log("can not load url",i)}})},_onLoaded:function(){this._loaded=!0,this.loadSucceed(),this._bufferedEvents&&n.each(this._bufferedEvents,function(e){this._safeReportEvent.apply(this,e)},this)},_onAnalyticsEvent:function(){this._loaded?this._safeReportEvent.apply(this,arguments):this._bufferedEvents.push(arguments)},_safeReportEvent:function(){try{this.reportEvent.apply(this,arguments)}catch(t){e.log("can not log event")}},__place_holder:!0})}(e,e.$,e._),function(e,t,n){var i="ooyala_ana lytics",r=e.inherit(e.AnalyticsBase,function(t,r){e.requiredInEnvironment("html5-playback")&&(this.setup(t,r,i),this.lastEmbedCode="",this.currentEmbedcode="",this.playingInstreamAd=!1,this.guid=void 0,this.accountId=void 0,this.accountIdSet=!1,this.guidSet=!1,this.parameters=void 0,this.documentUrl=void 0,t.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,i,n.bind(this._onAuthorizationFetched,this)),t.subscribe(e.EVENTS.ERROR,i,n.bind(this._onErrorEvent,this)),t.subscribe(e.EVENTS.GUID_SET,i,n.bind(this._onGuidSet,this)),t.subscribe(e.EVENTS.REPORT_DISCOVERY_IMPRESSION,i,n.bind(this._onReportDiscoveryImpression,this)), t.subscribe(e.EVENTS.REPORT_DISCOVERY_CLICK,i,n.bind(this._onReportDiscoveryClick,this)),t.subscribe(e.EVENTS.PLAYER_CREATED,i,n.bind(this._onPlayerCreated,this)))});n.extend(r.prototype,{_onGuidSet:function(e,t){this.guid=t,this.guidSet=!0,this._onGuidAndAccountIdSet()},_onPlayerCreated:function(e,t,n){this.parameters=n,this.parameters&&this.parameters.docUr l?this.documentUrl=this.parameters.docUrl:this.parameters&&this.parameters.flashParams&&this.parameters.flashParams.docUrl&&(this.documentUrl=this.parameters.flashParams.docUrl)},_onAuthorizationFetched:function(t,r){r.user_info&&r.user_info.account_id?this.accountId=r.user_info.account_id:r.debug_data&&r.debug_data.user_info&&r.debug_data.user_info.account_id&&(this.accountId=r.debug_data.user_info.account_id),this.mb.unsubscribe(e.EVENTS.ERROR,i),this.mb.unsubscribe(e.EVENTS.AUTHORIZATION_FETCHED,i),n.isNumber(this.accountId)&&(this.accountId=this.accountId.toString()),n.isString(this.accountId)?e.d("OO.OoyalaAnalytics: SAS authorization fetched with accountId == "+this.accountId):(this.accountId=void 0,e.d("OO.OoyalaAnalytics: SAS authorization fetched without an accountId")),this.accountIdSet=!0,this._onGuidAndAccountIdSet()},_onGuidAndAccountIdSet:function(){this.guidSet&&this.accountIdSet&&(e.d("Lo ading Analtics Module..."),this.loadExternalAnalyticsJs(e.URLS.ANALYTICS({server:e.SERVER.ANALYTICS})))},_onErrorEvent:function(t,i){if(i&&i.code){var r=i.code,o=!1;n.each(e.ERROR.API.SAS,function(e,t){e===r&&(o=!0)}),o&&this._onAuthorizationError(t,r)}},_onAuthorizationError:function(t,n){this.mb.unsubscribe(e.EVENTS.ERROR,i),this.mb.unsubscribe(e.EVENTS.AUTHORIZATION_FETCHED,i),e.d("OO.OoyalaAnalytics: SAS authorization failed, loading external analytics module ..."),this.loadExternalAnalyticsJs(e.URLS.ANALYTICS({server:e.SERVER.ANALYTICS}))},_onReportDiscoveryImpression:function(t,n){if(this.reporter)try{this.reporter.reportDiscoveryImpression(n.relatedVideos,n.custom)}catch(i){e.log("Failed to report a discovery impression event with params "+JSON.stringify(n)+": "+i)}},_onReportDiscoveryClick:function(t,n){if(this.reporter)try{this.reporter.reportDiscoveryClick(n.clickedVideo,n.custom)}catch(i){e.log("Failed to report a discovery click event with params "+JSON.stringify(n)+": "+i)}},loadSucceed:function(){if(window.Ooyala&&window.Ooyala.Reporter&&(r.Reporter=Ooyala.Reporter,r.Pinger=Ooyala.Pinger,this.reporter=null,e.playerParams.pcode)){var t={accountId:this.accountId,guid:this.guid,playerBrandingId:e.playerParams.playerBrandingId};this.documentUrl&&(t=n.extend(t,{documentUrl:this.documentUrl})),this.reporter=new r.Reporter(e.playerParams.pcode,t)}},reportEvent:function(t,n,i){if(this.reporter)switch(t){case e.EVENTS.PLAYER_CREATED:this.reporter.reportPlayerLoad();break;case e.EVENTS.EMBED_CODE_CHANGED:n!=this.currentEmbedcode?this.lastEmbedCode=this.currentEmbedcode:this.lastEmbedCode="",this.currentEmbedcode=n;break;case e.EVENTS.CONTENT_TREE_FETCHED:this.reporter.initializeVideo(this.currentEmbedcode,n.duration);break;case e.EVENTS.WILL_PLAY_FROM_BEGINNING:this.lastEmbedCode===this.currentEmbedcode?this.reporter.reportReplay():(this.reporter.reportVideoStarted(),this.lastEmbedCode=this.currentEmbedcode); break;case e.EVENTS.WILL_PLAY_ADS:this.playingInstreamAd=!0;var r=Ooyala.Reporter.AdSource.UNKNOWN;n&&n.type&&"string"==typeof n.type&&(r=Ooyala.Reporter.AdSource[n.type.toUpperCase()]),this.reporter.setAdSource(r,this.currentEmbedcode,n&&n.click_url),this.reporter.reportAdImpression();break;case e.EVENTS.ADS_PLAYED:this.playingInstreamAd=!1;break;case e.EVENTS.ADS_CLICKED:this.reporter.reportAdClickToVideo();break;case e.EVENTS.PLAYHEAD_TIME_CHANGED:this.playingInstreamAd?this.reporter.reportAdPlaythrough(n,i):n>0&&this.reporter.reportPlayheadUpdate(Math.floor(1e3*n));break;case e.EVENTS.REPORT_EXPERIMENT_VARIATIONS:this.reporter.reportExperimentVariation(n.variationIds);break;case e.EVENTS.INITIAL_PLAY:this.reporter.reportPlayRequested()}},__place_holder:!0}),e.registerModule(i,function(e,t){return new r(e,t)})}(e,e.$,e._),e.plugin("Librato",function(e,t,n,i){var r=Math.floor(10*Math.random());if(r>0)return function(){};var o="-above-r ange",a="-below-range",s="-within-range",l={events:[{name:"v4-load-time",low:500,high:2e3},{name:"v4-playback-ready",low:1e3,high:3e3},{name:"v4-time-to-first-content-frame",low:1e3,high:5e3},{name:"v4-time-to-first-ad-frame",low:1e3,high:5e3}]},c=function(){this.basic_auth_token="abelrios@ooyala.com:95d53e8841835839469f2a2f96fd95b564342ffadff759ad9d49f1897805db1b",window.btoa?this.basic_auth_token=btoa(this.basic_auth_token):this.basic_auth_token=window.base64.encode(this.basic_auth_token),this.source=this._generateSourceString()};t.extend(c.prototype,{_measureDurationMilli:function(e,t){return t-e},_addMetricValue:function(e,t,n){return e[t]={value:n,source:this.source},e},_reportSingleMetric:function(e,t){var n={};this._addMetricValue(n,e,t),this._sendReport(n)},_sendReport:function(e){n.ajax({url:"https://metrics-api.librato.com/v1/metrics",type:"post",data:{gauges:e},dataType:"json",headers:{Authorization:"Basic "+this.basic_auth_token},success:function(e){}})},_getThresholdTex t:function(e,t){var n=s;return e>t.high?n=o:e--");return e.featureEnabled("flash-playback")?n.platform="flash":n.platform="html5",e.isIos?n.os="ios":e.isAndroid?n.os="android":e.isMacOs?n.os="macosx":e.isWinPhone?n.os="winphone":e.isWindows?n.os="windows":n.os="generic",e.isChrome?n.browser="chrome":e.isFirefox?n.browser="firefox":e.isIE11Plus?n.browser="ie11plus":e.isIE?n.browser="ieold":e.isSafari?n.browser="safari":n.browser="generic",i(n)},start:function(){var n={};if(this._addMetricValue(n,"v4-load",1),window.performance&&window.performance.getEntries){var i=".*.ooyala.com.*v3/"+e.playerParams.playerBrandingId,r=t.find(window.performance.getEntriesByType("resource"),function(e){return e.name.match(i)||e.name.match("mjolnir")});!r||r.duration>0&&this._addMetricValue(n,this._getThresholdText(r.duration,this._matchEvent("v4-load-time")),1)}this._sendReport(n)}});var u=new c;t.defer(t.bind(u.start,u));var d=function(n,i){this.id=i,this.mb=n,this.initialization Ts=this._takeTimestamp(),this.mb.subscribe(e.EVENTS.SET_EMBED_CODE,"librato",t.bind(this._onSetEmbedCode,this)),this.mb.subscribe(e.EVENTS.PLAYBACK_READY,"librato",t.bind(this._onPlaybackReady,this)),this.mb.subscribe(e.EVENTS.INITIAL_PLAY,"librato",t.bind(this._onInitialPlay,this)),this.mb.subscribe(e.EVENTS.PLAY,"librato",t.bind(this._onInitialPlay,this)),this.mb.subscribe(e.EVENTS.PLAYING,"librato",t.bind(this._onInitialPlay,this)),this.mb.subscribe(e.EVENTS.ADS_PLAYED,"librato",t.bind(this._onAdsPlayed,this)),this.mb.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"librato",t.bind(this._onPlayheadTimeChanged,this)),this.mb.subscribe(e.EVENTS.PLAY_FAILED,"librato",t.bind(this._onPlayerPlayFailure,this)),this.mb.subscribe(e.EVENTS.ERROR,"librato",t.bind(this._onPlayerError,this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_ADS,"librato",t.bind(this._willPlayAds,this))};return t.extend(d.prototype,{_takeTimestamp:function(){return(new Date).getTime()},_onSetEmbedCode:function(){this.setEmbedCode Ts=this._takeTimestamp(),this.wasPlayStartReported=!1,this.wasTimeToFirstFrameReported=!1,this.wasTimeToFirstAdFrameReported=!1,this.adsPlaying=!1},_onPlaybackReady:function(){u._reportSingleMetric("v4-playback-ready",1),this.playbackReadyTs=this._takeTimestamp();var e=u._measureDurationMilli(this.setEmbedCodeTs,this.playbackReadyTs);u._reportSingleMetric(u._getThresholdText(e,u._matchEvent("v4-playback-ready")),1)},_onInitialPlay:function(){this.wasPlayStartReported||(this.lastStateChangeTs=this._takeTimestamp(),this.wasPlayStartReported=!0,u._reportSingleMetric("v4-play",1))},_willPlayAds:function(){this.lastStateChangeTs=this._takeTimestamp(),this.adsPlaying=!0,u._reportSingleMetric("v4-play-ad",1)},_onAdsPlayed:function(){this.lastStateChangeTs=this._takeTimestamp(),this.adsPlaying=!1},_onPlayheadTimeChanged:function(e,t){if((!this.wasTimeToFirstFrameReported||!this.wasTimeToFirstAdFrameReported)&&t&&!(0>=t)){this.firstFrameTs=this._takeTimestamp();var n=u._me asureDurationMilli(this.lastStateChangeTs,this.firstFrameTs);!this.wasTimeToFirstFrameReported&&!this.adsPlaying&&(u._reportSingleMetric(u._getThresholdText(n,u._matchEvent("v4-time-to-first-content-frame")),1),this.wasTimeToFirstFrameReported=!0),this.adsPlaying&&!this.wasTimeToFirstAdFrameReported&&(u._reportSingleMetric(u._getThresholdText(n,u._matchEvent("v4-time-to-first-ad-frame")),1),this.wasTimeToFirstAdFrameReported=!0)}},_onPlayerPlayFailure:function(){u._reportSingleMetric("v4-play-fail",1)},_onPlayerError:function(e,t){this.errorTs=this._takeTimestamp(),u._reportSingleMetric("v4-error",1)}}),d}),e.exposeStaticApi("EVENTS",e.EVENTS),e.exposeStaticApi("CONSTANTS",e.CONSTANTS),e.publicApi.log=e.log,e.exposeStaticApi("ERROR",e.ERROR),e.exposeStaticApi("STATE",e.STATE),e.exposeStaticApi("VERSION",e.VERSION),e.exposeStaticApi("VIDEO",e.VIDEO),e.publicApi.$=e.$,e.publicApi._=e._,e.publicApi.__static.apiReady=!0,e.$(document).ready(function(){e.pu blicApi.__static.docReady=!0,e.tryCallReady()})}()}catch(err){err&&window.console&&window.console.log&&window.console.log(err,err.stack)}!function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a&embed_code=&expires=&tag_url="),EXTERNAL_ID:t.template("/player_api/v1/content_tree/external_id//"),CONTENT_TREE:t.template("/player_api/v1/content_tree/embed_code//"),METADATA:t.template("/player_api/v1/metadata/embed_code//?videoPcode="),SAS:t.template("/player_api/v1/authorization/embed_code//"),ANALYTICS:t.template("/reporter.js"),__end_marker:!0},e.VIDEO={MAIN:"main",ADS:"ads",ENCODING :{AUDIO:"audio",DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",MP4:"mp4",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake",BITRATE_CONTROL:"bitrateControl"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},e.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSITION:"-100000px",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},e.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","","[timestamp]","","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:' ',__end_marker:!0},e.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:":",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:4,__end_marker:!0}}(OO,OO._)},{}],5:[function(){!function(e,t,n){e.playerParams=n.safeObject("environment.playerParams",e.playerParams,{}),e.configurePublisher=function(t){e.playerParams.pcode=e.playerParams.pcode||t.pcode||"",e.playerParams.playerBrandingId=e.playerParams.playerBrandingId||t.playerBrandingId||"",e.playerParams.debug=e.playerParams.debug||t.debug||""},e.isPublisherConfigured=function(){return e.playerParams.pcode&&e.playerParams.playerBrandingId},e.playerParams.tweaks=e.playerParams.tweaks||"",e.playerParams.tweaks=n.safeString("environment.playerParams.tweaks",e.playerParams.tweaks,""),e.playerParams.tweaks=e.playerParams.tweaks.split(","),e.tweaks={},e.tweaks["android-enable-hls"]=t.contains(e.playerParams.tweaks,"android-enable-hls"),e.tweaks["html5-fo rce-mp4"]=t.contains(e.playerParams.tweaks,"html5-force-mp4"),e.playerParams.maxAdsTimeout=e.playerParams.maxAdsTimeout||5,e.playerParams.maxVastWrapperDepth=e.playerParams.maxVastWrapperDepth||3,e.playerParams.minLiveSeekWindow=e.playerParams.minLiveSeekWindow||10,e.guid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}),e.playerCount=0,e.isProd=e.playerParams.environment&&e.playerParams.environment.match(/^prod/i),e.platform=window.navigator.platform,e.os=window.navigator.appVersion,e.supportsVideo=!!document.createElement("video").canPlayType,e.browserSupportsCors=function(){try{return t.has(new XMLHttpRequest,"withCredentials")||t.has(XMLHttpRequest.prototype,"withCredentials")}catch(e){return!1}}(),e.isWindows=function(){return e.platform.match(/Win/)}(),e.isIos=function(){return e.platform.match(/iPhone/)||e.platform.match(/iPad/)||e.platform.match(/iPod/)}(),e.isIphone=function(){ret urn e.platform.match(/iPhone/)||e.platform.match(/iPod/)}(),e.isIpad=function(){return e.platform.match(/iPad/)}(),e.iosMajorVersion=function(){try{return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/)?parseInt(window.navigator.userAgent.match(/OS (\d+)/)[1],10):null}catch(e){return null}}(),e.isAndroid=function(){return e.os.match(/Android/)}(),e.isAndroid4Plus=function(){return e.isAndroid&&!e.os.match(/Android [23]/)}(),e.isRimDevice=function(){return e.os.match(/BlackBerry/)||e.os.match(/PlayBook/)}(),e.isFirefox=function(){return!!window.navigator.userAgent.match(/Firefox/)}(),e.isChrome=function(){return!!window.navigator.userAgent.match(/Chrome/)}(),e.isSafari=function(){return!!window.navigator.userAgent.match(/AppleWebKit/)&&!window.navigator.userAgent.match(/Chrome/)}(),e.chromeMajorVersion=function(){try{return parseInt(window.navigator.userAgent.match(/Chrome.([0-9]*)/)[1],10)}catch(e){return null}}(),e.isIE=function(){return!!window.navigator.use rAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/)}(),e.isEdge=function(){return!!window.navigator.userAgent.match(/Edge/)}(),e.isIE11Plus=function(){if(!window.navigator.userAgent.match(/Trident/))return!1;var e=window.navigator.userAgent.match(/rv:(\d*)/),t=e&&e[1];return t>=11}(),e.isWinPhone=function(){return!!e.os.match(/Windows Phone/)||!!e.os.match(/ZuneWP/)||!!e.os.match(/XBLWP/)}(),e.isSmartTV=function(){return!!window.navigator.userAgent.match(/SmartTV/)||!!window.navigator.userAgent.match(/NetCast/)}(),e.isMacOs=function(){return!e.isIos&&!!e.os.match(/Mac/)}(),e.isMacOsLionOrLater=function(){var t=e.os.match(/Mac OS X ([0-9]+)_([0-9]+)/);return null==t||t.length=10&&parseInt(t[2],10)>=7}(),e.isKindleHD=function(){return!!e.os.match(/Silk\/2/)}(),e.supportAds=function(){return!e.isWinPhone&&!e.os.match(/Android [23]/)}(),e.allowGesture=function(){return e.isIos}(),e.allowAutoPlay=function(){return!e.isIos&&!e. isAndroid}(),e.supportTouch=function(){return!(!document.documentElement.hasOwnProperty||!document.documentElement.hasOwnProperty("ontouchstart"))}(),e.docDomain=function(){var t=null;try{t=document.domain}catch(n){}return e._.isEmpty(t)?e.isSmartTV?"SmartTV":"unknown":t}(),e.uiParadigm=function(){var t="tablet";return e.isAndroid4Plus&&e.tweaks["android-enable-hls"]?t="tablet":e.isIphone?t="mobile-native":e.os.match(/BlackBerry/)?t="mobile-native":e.os.match(/iPad/)?t="tablet":e.isKindleHD?t="mobile-native":e.os.match(/Silk/)?t="mobile":e.os.match(/Android 2/)?window.orientation%180==0&&window.outerWidth/window.devicePixelRatio=0;return document.cookie="ooyala_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT",e}(),e.isSSL="https:"==document.location.protocol,e.SERVER={API:e.isSSL?e.playerParams.api_ssl_server||"https://player.ooyala.com":e.playerParams.api_server||"http://player.ooyala.com",AUTH:e.isSSL?e.playerParams.auth_ssl_server||"https://player.ooyala.com/s as":e.playerParams.auth_server||"http://player.ooyala.com/sas",ANALYTICS:e.isSSL?e.playerParams.analytics_ssl_server||"https://player.ooyala.com":e.playerParams.analytics_server||"http://player.ooyala.com",HASTUR:e.isSSL?e.playerParams.hastur_ssl_server||(e.isProd?"https://l.ooyala.com/player_events":"https://l-staging.ooyala.com/player_events"):e.playerParams.hastur_server||(e.isProd?"http://l.ooyala.com/player_events":"http://l-staging.ooyala.com/player_events")},e.requiredInEnvironment=e.featureEnabled=function(t){return!!e.environmentRequiredFeatures.match(new RegExp(t))},e.chromeExtensionEnabled=!!document.getElementById("ooyala-extension-installed"),e.locale="",e.setLocale=function(t){e.locale=t.toUpperCase()},e.getLocale=function(){return(e.locale||document.documentElement.lang||navigator.language||navigator.userLanguage||"en").substr(0,2).toUpperCase()}}(OO,OO._,OO.HM)},{}],6:[function(e,t,n){var i=function(e,t){var n=function(t){if(this.config=t||{},!e.isObject(this.config) )throw new Error("Hazmat is not initialized properly");this.fail=e.isFunction(this.config.fail)?this.config.fail:n.fail,this.warn=e.isFunction(this.config.warn)?this.config.warn:n.warn,this.log=e.isFunction(this.config.log)?this.config.log:n.log};return e.extend(n,{ID_REGEX:/^[\_A-Za-z0-9]+$/,create:function(e){return new n(e)},noConflict:function(){return t.Hazmat=n.original,n},log:function(){console&&e.isFunction(console.log)&&console.log.apply(console,arguments)},fail:function(e,t){var i=e||"",r=t||{};throw n.log("Hazmat Failure::",i,r),new Error("Hazmat Failure "+i.toString())},warn:function(e,t){var i=e||"",r=t||{};n.log("Hazmat Warning::",i,r)},fixDomId:function(t){return e.isString(t)&&t.length>0?t.replace(/[^A-Za-z0-9\_]/g,""):null},isDomId:function(t){return e.isString(t)&&t.match(n.ID_REGEX)},__placeholder:!0}),e.extend(n.prototype,{_safeValue:function(t,n,i,r){var o=i;return e.isFunction(i)&&(i=e.once(function(){try{return o.appl y(this,arguments)}catch(e){}})),r.checker(n)?n:r.evalFallback&&e.isFunction(i)&&r.checker(i(n))?(this.warn("Expected valid "+r.name+" for "+t+" but was able to sanitize it:",[n,i(n)]),i(n)):r.checker(o)?(this.warn("Expected valid "+r.name+" for "+t+" but was able to fallback to default value:",[n,o]),o):void this.fail("Expected valid "+r.name+" for "+t+" but received:",n)},safeString:function(t,n,i){return this._safeValue(t,n,i,{name:"String",checker:e.isString,evalFallback:!0})},safeStringOrNull:function(t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"String",checker:e.isString,evalFallback:!0})},safeDomId:function(e,t,i){return this._safeValue(e,t,i,{name:"DOM ID",checker:n.isDomId,evalFallback:!0})},safeFunction:function(t,n,i){return this._safeValue(t,n,i,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeFunctionOrNull:function(t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeObject:functio n(t,n,i){return this._safeValue(t,n,i,{name:"Object",checker:e.isObject,evalFallback:!1})},safeObjectOrNull:function(t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"Object",checker:e.isObject,evalFallback:!1})},safeArray:function(t,n,i){return this._safeValue(t,n,i,{name:"Array",checker:e.isArray,evalFallback:!1})},safeArrayOfElements:function(t,n,i,r){var o=this._safeValue(t,n,r,{name:"Array",checker:e.isArray,evalFallback:!1});return e.map(o,i)},__placeholder:!0}),n};if("undefined"!=typeof window&&"undefined"!=typeof window._){var r=i(window._,window);r.original=window.Hazmat,window.Hazmat=r}else{var o=e("underscore"),r=i(o);o.extend(n,r)}},{underscore:7}],7:[function(e,t,n){(function(){function e(t,n,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return t===n;if(t._chain&&(t=t._wrapped),n._chain&&(n=n._wrapped),t.isEqual&&C.isFunction(t.isEqual))return t.isEqual(n);if(n.isEqual&&C.isFunction(n.isEqual))return n.isEqual(t);var r =d.call(t);if(r!=d.call(n))return!1;switch(r){case"[object String]":return t==String(n);case"[object Number]":return t!=+t?n!=+n:0==t?1/t==1/n:t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object RegExp]":return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}if("object"!=typeof t||"object"!=typeof n)return!1;for(var o=i.length;o--;)if(i[o]==t)return!0;i.push(t);var a=0,s=!0;if("[object Array]"==r){if(a=t.length,s=a==n.length)for(;a--&&(s=a in t==a in n&&e(t[a],n[a],i)););}else{if("constructor"in t!="constructor"in n||t.constructor!=n.constructor)return!1;for(var l in t)if(C.has(t,l)&&(a++,!(s=C.has(n,l)&&e(t[l],n[l],i))))break;if(s){for(l in n)if(C.has(n,l)&&!a--)break;s=!a}}return i.pop(),s}var i=this,r=i._,o={},a=Array.prototype,s=Object.prototype,l=Function.prototype,c=a.slice,u=a.unshift,d=s.toString,p=s.hasOwnProperty,h=a.forEach,f=a.map,m=a.reduce ,E=a.reduceRight,g=a.filter,v=a.every,y=a.some,b=a.indexOf,_=a.lastIndexOf,S=Array.isArray,A=Object.keys,T=l.bind,C=function(e){return new M(e)};"undefined"!=typeof n?("undefined"!=typeof t&&t.exports&&(n=t.exports=C),n._=C):i._=C,C.VERSION="1.3.3";var N=C.each=C.forEach=function(e,t,n){if(null!=e)if(h&&e.forEach===h)e.forEach(t,n);else if(e.length===+e.length){for(var i=0,r=e.length;r>i;i++)if(i in e&&t.call(n,e[i],i,e)===o)return}else for(var a in e)if(C.has(e,a)&&t.call(n,e[a],a,e)===o)return};C.map=C.collect=function(e,t,n){var i=[];return null==e?i:f&&e.map===f?e.map(t,n):(N(e,function(e,r,o){i[i.length]=t.call(n,e,r,o)}),e.length===+e.length&&(i.length=e.length),i)},C.reduce=C.foldl=C.inject=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),m&&e.reduce===m)return i&&(t=C.bind(t,i)),r?e.reduce(t,n):e.reduce(t);if(N(e,function(e,o,a){r?n=t.call(i,n,e,o,a):(n=e,r=!0)}),!r)throw new T ypeError("Reduce of empty array with no initial value");return n},C.reduceRight=C.foldr=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),E&&e.reduceRight===E)return i&&(t=C.bind(t,i)),r?e.reduceRight(t,n):e.reduceRight(t);var o=C.toArray(e).reverse();return i&&!r&&(t=C.bind(t,i)),r?C.reduce(o,t,n,i):C.reduce(o,t)},C.find=C.detect=function(e,t,n){var i;return O(e,function(e,r,o){return t.call(n,e,r,o)?(i=e,!0):void 0}),i},C.filter=C.select=function(e,t,n){var i=[];return null==e?i:g&&e.filter===g?e.filter(t,n):(N(e,function(e,r,o){t.call(n,e,r,o)&&(i[i.length]=e)}),i)},C.reject=function(e,t,n){var i=[];return null==e?i:(N(e,function(e,r,o){t.call(n,e,r,o)||(i[i.length]=e)}),i)},C.every=C.all=function(e,t,n){var i=!0;return null==e?i:v&&e.every===v?e.every(t,n):(N(e,function(e,r,a){return(i=i&&t.call(n,e,r,a))?void 0:o}),!!i)};var O=C.some=C.any=function(e,t,n){t||(t=C.identity);var i=!1;return nul l==e?i:y&&e.some===y?e.some(t,n):(N(e,function(e,r,a){return i||(i=t.call(n,e,r,a))?o:void 0}),!!i)};C.include=C.contains=function(e,t){var n=!1;return null==e?n:b&&e.indexOf===b?-1!=e.indexOf(t):n=O(e,function(e){return e===t})},C.invoke=function(e,t){var n=c.call(arguments,2);return C.map(e,function(e){return(C.isFunction(t)?t||e:e[t]).apply(e,n)})},C.pluck=function(e,t){return C.map(e,function(e){return e[t]})},C.max=function(e,t,n){if(!t&&C.isArray(e)&&e[0]===+e[0])return Math.max.apply(Math,e);if(!t&&C.isEmpty(e))return-1/0;var i={computed:-1/0};return N(e,function(e,r,o){var a=t?t.call(n,e,r,o):e;a>=i.computed&&(i={value:e,computed:a})}),i.value},C.min=function(e,t,n){if(!t&&C.isArray(e)&&e[0]===+e[0])return Math.min.apply(Math,e);if(!t&&C.isEmpty(e))return 1/0;var i={computed:1/0};return N(e,function(e,r,o){var a=t?t.call(n,e,r,o):e;an?-1:n>i?1:0}),"value")},C.groupBy=function(e,t){var n={},i=C.isFu nction(t)?t:function(e){return e[t]};return N(e,function(e,t){var r=i(e,t);(n[r]||(n[r]=[])).push(e); }),n},C.sortedIndex=function(e,t,n){n||(n=C.identity);for(var i=0,r=e.length;r>i;){var o=i+r>>1;n(e[o])=0})})},C.difference=function(e){var t=C.flatten(c.call(arguments,1),!0);return C.filter(e,function(e){return!C.include(t,e)})},C.zip=function(){for(var e=c.call(arguments),t=C.max(C.pluck(e,"length")),n=new Array(t),i=0;t>i;i++)n[i]=C.pluck(e,""+i);return n},C.indexOf=function(e,t,n){if(null==e)return-1;var i,r;if(n)return i=C.sortedIndex(e,t),e[i]===t?i:-1;if(b&&e.indexOf===b)return e.indexOf(t);for(i=0,r=e.length;r>i;i++)if(i in e&&e[i]===t)return i;return-1},C.lastIndexOf=function(e,t){if(null==e)return-1;if(_&&e.lastIndexOf===_)return e.lastIndexOf(t);for(var n=e.length;n--;)if(n in e&&e[n]===t)return n;return-1},C.range=function(e,t,n){arguments.lengthr;)o[r++]=e,e+=n;return o};var R=function(){};C.bind=function(e,t){var n,i;if(e .bind===T&&T)return T.apply(e,c.call(arguments,1));if(!C.isFunction(e))throw new TypeError;return i=c.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,i.concat(c.call(arguments)));R.prototype=e.prototype;var r=new R,o=e.apply(r,i.concat(c.call(arguments)));return Object(o)===o?o:r}},C.bindAll=function(e){var t=c.call(arguments,1);return 0==t.length&&(t=C.functions(e)),N(t,function(t){e[t]=C.bind(e[t],e)}),e},C.memoize=function(e,t){var n={};return t||(t=C.identity),function(){var i=t.apply(this,arguments);return C.has(n,i)?n[i]:n[i]=e.apply(this,arguments)}},C.delay=function(e,t){var n=c.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},C.defer=function(e){return C.delay.apply(C,[e,1].concat(c.call(arguments,1)))},C.throttle=function(e,t){var n,i,r,o,a,s,l=C.debounce(function(){a=o=!1},t);return function(){n=this,i=arguments;var c=function(){r=null,a&&e.apply(n,i),l()};return r||(r=setTimeout(c,t)),o?a=!0:s=e.ap ply(n,i),l(),o=!0,s}},C.debounce=function(e,t,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||e.apply(r,o)};n&&!i&&e.apply(r,o),clearTimeout(i),i=setTimeout(a,t)}},C.once=function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments))}},C.wrap=function(e,t){return function(){var n=[e].concat(c.call(arguments,0));return t.apply(this,n)}},C.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},C.after=function(e,t){return 0>=e?t():function(){return--ei;i++)t.call(n,i)},C.escape=function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},C.result=function(e,t){if(null==e)return null;var n=e[t];return C.isFunction(n)?n.call(e):n},C.mixin=function(e){N(C.functions(e),function(t){F(t,C[t]=e[t])})};var I=0;C.uniqueId=function(e){var t=I++;return e?e+t:t},C.templateSettings={evalua te://g,interpolate://g,escape://g};var D=/.^/,w={"\\":"\\","'":"'",r:"\r",n:"\n",t:" ",u2028:"\u2028",u2029:"\u2029"};for(var P in w)w[w[P]]=P;var x=/\\|'|\r|\n|\t|\u2028|\u2029/g,k=/\\(\\|'|r|n|t|u2028|u2029)/g,L=function(e){return e.replace(k,function(e,t){return w[t]})};C.template=function(e,t,n){n=C.defaults(n||{},C.templateSettings);var i="__p+='"+e.replace(x,function(e){return"\\"+w[e]}).replace(n.escape||D,function(e,t){return"'+\n_.escape("+L(t)+")+\n'"}).replace(n.interpolate||D,function(e,t){return"'+\n("+L(t)+")+\n'"}).replace(n.evaluate||D,function(e,t){return"';\n"+L(t)+"\n;__p+='"})+"';\n";n.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+i+"return __p;\n";var r=new Function(n.variable||"obj","_",i);if(t)return r(t,C);var o=function(e){return r.call(this,e,C)};return o.source="function("+(n.variable||"obj")+"){\n"+i+"}",o},C.chain=function(e){return C(e).chain()};var M=function(e){this._wrap ped=e};C.prototype=M.prototype;var V=function(e,t){return t?C(e).chain():e},F=function(e,t){M.prototype[e]=function(){var e=c.call(arguments);return u.call(e,this._wrapped),V(t.apply(C,e),this._chain)}};C.mixin(C),N(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];M.prototype[e]=function(){var n=this._wrapped;t.apply(n,arguments);var i=n.length;return"shift"!=e&&"splice"!=e||0!==i||delete n[0],V(n,this._chain)}}),N(["concat","join","slice"],function(e){var t=a[e];M.prototype[e]=function(){return V(t.apply(this._wrapped,arguments),this._chain)}}),M.prototype.chain=function(){return this._chain=!0,this},M.prototype.value=function(){return this._wrapped}}).call(this)},{}],8:[function(e){e("../../../html5-common/js/utils/InitModules/InitOO.js"),e("../../../html5-common/js/utils/InitModules/InitOOUnderscore.js"),e("../../../html5-common/js/utils/InitModules/InitOOHazmat.js"),e("../../../html5-common/js/utils/constants.js"),e("../../../html5-common /js/utils/environment.js"),function(e,t){var n="ooyalaHtml5VideoTech",i=0,r=function(){this.name=n,this.ready=!0,this.features=[OO.VIDEO.FEATURE.CLOSED_CAPTIONS,OO.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE],this.technology=OO.VIDEO.TECHNOLOGY.HTML5;var e=function(){var e=document.createElement("video"),t=[OO.VIDEO.ENCODING.MP4];return OO.isSafari||OO.isIE||OO.isEdge||t.push(OO.VIDEO.ENCODING.WEBM),(e.canPlayType("application/vnd.apple.mpegurl")||e.canPlayType("application/x-mpegURL"))&&t.push(OO.VIDEO.ENCODING.HLS),t};this.encodings=e(),this.create=function(e,n,r,a){if(!(this.maxSupportedElements>0&&i>=this.maxSupportedElements)){var s=t("");s.attr("class","video"),s.attr("id",n),s.attr("preload","none"),s.css(a),OO.isIos&&s.attr("x-webkit-airplay","allow");var l={width:e.width(),height:e.height()},c=new o(n,s[0],l);return i++,c.controller=r,r.notify(r.EVENTS.CAN_PLAY),c.subscribeAllEvents(),e.append(s),c}},this.destroy=function(){this.ready=!1,this.encod ings=[],this.create=function(){}},this.maxSupportedElements=function(){var e=OO.isIos,t=OO.isAndroid&&(!a.isAndroid4Plus||OO.chromeMajorVersion0&&OO.isChrome&&(s=s+(/\?/.test(s)?"&":"?")+"_="+Z()),g=t==OO.VIDEO.ENCODING.HLS,n=!0,w(),a.src=""===s?null:s),n};var w=e.bind(function(){f=!1,d=!1,p=!1,h=null,u=!1,m=!1,y=!0,E=0,l=!1,_={height:0,width:0},S={value:0,reached:!0},A=!0,T=!1,he()},this);this.load=function(n){if(!u||n){if(n)try{OO.isIos&&8==OO.iosMajorVersion?t(a).on("durationchange",e.bind(function(){a.currentTime=0,E=0},this)):(a.currentTime=0,E=0),a.pause()}catch(i){console.log("VTC_OO: Failed to rewind video, probably ok; continuing")}a.load(),u=!0}},this.setInitialTime=function(e){p||0===e||(S.value=e,S.reached=!1,OO.isAndroid?oe(S.value):this.seek(S.value))},this.play=function(){a.seeking?f=!0:te(!1)},this.pause=function(){f=!1,a.pause()},this.seek=function(e){var t=re(a,e);return null!==t?(a.currentTime=t,m=!0,!0):(oe(e),!1)},this.setVolu me=function(e){var t=e;0>t?t=0:t>1&&(t=1),a.volume=t},this.getCurrentTime=function(){return a.currentTime},this.primeVideoElement=function(){te(!0),a.pause()},this.applyCss=function(e){t(a).css(e),J()},this.destroy=function(){a.pause(),a.src="",D(),t(a).remove(),i--,I&&document.removeEventListener("visibilitychange",I)},this.setClosedCaptions=function(n,i,r){if(t(a).find("."+v).remove(),null!=n)if(OO.isSafari&&0!==a.textTracks.length&&"CC"==n)for(var o=0;o"),e.delay(function(){if(a.textTracks[0].mode=s,OO.isFirefox)for(var e=0;e0&&(t=e.target.buffered.end(0)),this.controller.notify(this.controller.EVENTS.PROGRESS,{currentTime:e.target.currentTime,duration:le(e.target.duration),buffer:t,seekRange:ne(e.target.seekable)})},this),L=e.bind(function(e){he();var n=e.target.error?e.target.error.code:-1;(4!==n||"null"!==t(e.target).attr("src")&&""!==t(e.target).attr("src"))&&this.controller.notify(this.controller.EVENTS.ERROR,{err orcode:n})},this),M=e.bind(function(e){OO.isIpad&&0===e.target.currentTime&&a.pause(),this.controller.notify(this.controller.EVENTS.STALLED,{url:a.currentSrc})},this),V=e.bind(function(){(OO.isFirefox||OO.isIos)&&N&&F(),d=!0,y&&this.controller.notify(this.controller.EVENTS.ASSET_DIMENSION,{width:a.videoWidth,height:a.videoHeight})},this),F=e.bind(function(){N=!1,this.controller.notify(this.controller.EVENTS.BUFFERED,{url:a.currentSrc})},this),U=e.bind(function(){if(!T){if(this.controller.notify(this.controller.EVENTS.PLAYING),de(),y&&a.textTracks&&a.textTracks.length>0)for(var e=0;e0&&e.target.currentTime>=S.value&&(S.value=0),se(this.controller.EVENTS.TIME_UPDATE,e),ae(),J(),ue(e)},this),z=e.bind(function(e){T||this.controller.notify(this.controller.EVENTS.PLAY,{url:e.target.src})},this),q=e.bind(function(){T||(this.controller.notify(this.controller.EVENTS.PAUSED),ce())},this),K=e.bind(function(){this.con troller.notify(this.controller.EVENTS.RATE_CHANGE)},this),$=e.bind(function(e){this.controller.notify(this.controller.EVENTS.VOLUME_CHANGE,{volume:e.target.volume})},this),X=e.bind(function(e){this.controller.notify(this.controller.EVENTS.FULLSCREEN_CHANGED,{isFullScreen:!0,paused:e.target.paused})},this),Q=e.bind(function(e){this.controller.notify(this.controller.EVENTS.FULLSCREEN_CHANGED,{isFullScreen:!1,paused:e.target.paused})},this),Z=function(){return Math.random().toString(36).substring(7)},J=function(){if(OO.isIpad){var e=a.videoWidth,n=a.videoHeight,i=b.width,r=b.height;if(e!=_.width||n!=_.height){var o=R;n/e>r/i?(o.width="",o.height="100%"):(o.width="100%",o.height=""),t(a).css(o),_.width=e,_.height=n}}},ee=e.bind(function(){f&&(f=!1,te(!1))},this),te=e.bind(function(e){T=e,u||this.load(!0),a.play(),T||(p=!0,l=!1)},this),ne=function(e){return e&&e.length&&"function"==typeof e.start&&"function"==typeof e.end?{start:e.length>0?e.start(0) :0,end:e.length>0?e.end(0):0}:{start:0,end:0}},ie=function(e,t){t-e=t?t-.01:0>e?0:e;return OO.isIpad&&.1>n&&(n=.1),n},re=function(e,t){if("number"!=typeof t||!A)return null;var n=ne(e.seekable);if(0===n.start&&0===n.end)return null;var i=ie(t,e.duration);return n.start=i?i:null},oe=function(e){h=e},ae=e.bind(function(){null!==h&&this.seek(h)&&(h=null)},this),se=e.bind(function(e,t){if(!T&&!(m||S.value>0)){var n=0;t.target.buffered&&t.target.buffered.length>0&&(n=t.target.buffered.end(0));var i=t&&t.target?t.target.currentTime:null;if(i&&"number"!=typeof i&&(i=Number(i)),OO.isSafari&&!d)var r=ne(null);else var r=ne(t.target.seekable);this.controller.notify(e,{currentTime:i,duration:le(t.target.duration),buffer:n,seekRange:r})}},this),le=function(e){return 1/0===e||isNaN(e)?0:e},ce=e.bind(function(){OO.isSafari&&!OO.isIos&&a.ended&&(console.log("VTC_OO : Force through the end of stream for Safari",a.currentSrc,a.duration,a.currentTime),W())},this),ue=e.bind(function(t){if(g){var n=le(t.target.duration),i=Math.floor(n);a.currentTime==n&&n>i&&(console.log("VTC_OO: manually triggering end of stream for m3u8",s,n,a.currentTime),e.defer(W))}},this),de=e.bind(function(){if((OO.isChrome||OO.isIos||OO.isIE11Plus)&&!C){var e=300;C=setInterval(pe,e)}},this),pe=e.bind(function(){return p?a.ended?he():void(a.paused||a.currentTime!=O?(O=a.currentTime,N&&F()):N||B()):void 0},this),he=e.bind(function(){clearInterval(C),C=null,N=!1,O=-1},this)},a={isAndroid4Plus:function(){if(!window.navigator.appVersion.match(/Android/))return!1;var t=window.navigator.appVersion.match(/Android [1-9]/)||[];return(e.first(t)||"").slice(-1)>="4"}()};OO.Video.plugin(new r)}(OO._,OO.$)},{"../../../html5-common/js/utils/InitModules/InitOO.js":1,"../../../html5-common/js/utils/InitModules/InitOOHazmat.js":2,"../../../html5-common/j s/utils/InitModules/InitOOUnderscore.js":3,"../../../html5-common/js/utils/constants.js":4,"../../../html5-common/js/utils/environment.js":5}]},{},[8]),!function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return r(n?n:t)},u,u.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a0||e.keyCode===n.KEYCODES.UP_ARROW_KEY&&this.controller.state.volumeState.volume560){var r=n.createElement(l,{key:"adTitle",ref:"adTitle",itemClassName:"adTitle"},t);e.push(r)}var c=a.getLocalizedString(this.props.language,i.SKIN_TEXT.AD,this.props.localizableStrings),u=this.props.currentAdsInfo.currentAdItem.indexInPod,d=this.props.currentAdsInfo.numberOfAds;this.isValidAdPlaybackInfo(u)&&this.i sValidAdPlaybackInfo(d)&&(c=c+": ("+u+"/"+d+")");var p=a.formatSeconds(Math.max(0,parseInt(this.props.adVideoDuration-this.props.currentPlayhead)));c=c+" - "+p;var h=n.createElement(l,{key:"adPlaybackInfo",itemClassName:"adPlaybackInfo"},c);e.push(h);var f=n.createElement(l,{key:"flexibleSpace",itemClassName:"flexibleSpace"});e.push(f);var m=o({learnMore:!0,hidden:!this.props.currentAdsInfo.currentAdItem.hasClickUrl});if(null!==this.props.currentAdsInfo.currentAdItem&&this.isValidAdPlaybackInfo(this.props.currentAdsInfo.currentAdItem.hasClickUrl)){var E=a.getLocalizedString(this.props.language,i.SKIN_TEXT.LEARN_MORE,this.props.localizableStrings),g=n.createElement(l,{key:"learnMoreButton",ref:"learnMoreButton",onButtonClicked:this.handleLearnMoreButtonClick,itemClassName:m},n.createElement(s,n.__spread({},this.props,{icon:"learn",className:"buttonIcon"})),E);e.push(g)}var v=o({skipButton:!0,visible:this.props.currentAdsInfo.skipAdButtonEnabled,enabled:this.props.curr entAdsInfo.skipAdButtonEnabled}),y=a.getLocalizedString(this.props.language,i.SKIN_TEXT.SKIP_AD,this.props.localizableStrings),b=(this.props.skinConfig.icons.skip.fontStyleClass+" skipIcon",n.createElement(l,{key:"skipButton",ref:"skipButton",onButtonClicked:this.handleSkipAdButtonClick,itemClassName:v},n.createElement(s,n.__spread({},this.props,{icon:"skip",className:"buttonIcon"})),y));return e.push(b),e},render:function(){var e=null;this.props.controller.state.buffering===!0&&(e=n.createElement(r,{loadingImage:this.props.skinConfig.general.loadingImage.imageResource.url}));var t=this.populateAdTopBar();return n.createElement("div",{className:"adScreenPanel"},e,n.createElement("div",{className:"adTopBar",ref:"adTopBar",onClick:this.handleAdTopBarClick,onTouchEnd:this.handleAdTopBarClick},t))}});t.exports=c},{"../components/icon":10,"../constants/constants":20,"./spinner":15,"./utils":17,classnames:37,react:196}],4:[function(e,t){var n=e("react"),i=e("../components/icon"),r =n.createClass({displayName:"CloseButton",render:function(){return n.createElement("button",{className:this.props.cssClass,onClick:this.props.closeAction},n.createElement(i,n.__spread({},this.props,{icon:"dismiss",className:this.props.className})))}});r.propTypes={closeAction:n.PropTypes.func,fontStyleClass:n.PropTypes.string,cssClass:n.PropTypes.string},r.defaultProps={cssClass:"closeBtn"},t.exports=r},{"../components/icon":10,react:196}],5:[function(e,t){var n=e("react"),i=e("../constants/constants"),r=e("./utils"),o=e("classnames"),a=e("../components/icon"),s=n.createClass({displayName:"ClosedCaptionPanel",render:function(){var e=r.getLocalizedString(this.props.language,i.SKIN_TEXT.CC_OPTIONS,this.props.localizableStrings);return n.createElement("div",{className:"closed-captions-panel"},n.createElement("div",{className:"closed-captions-panel-title"},e,n.createElement(a,n.__spread({},this.props,{icon:"cc"}))),n.createElement(l,n.__spread({},this.props)),n.createElement(u,n.__sprea d({},this.props)),n.createElement(c,n.__spread({},this.props)))}});t.exports=s;var l=n.createClass({displayName:"OnOffSwitch",handleOnOffSwitch:function(){this.props.controller.toggleClosedCaptionEnabled()},render:function(){var e=o({"switch-thumb":!0,"switch-thumb-on":this.props.closedCaptionOptions.enabled,"switch-thumb-off":!this.props.closedCaptionOptions.enabled}),t=o({"switch-body":!0,"switch-body-off":!this.props.closedCaptionOptions.enabled}),a=o({"switch-captions switch-captions-on":!0,"switch-captions-active":this.props.closedCaptionOptions.enabled}),s=o({"switch-captions switch-captions-off":!0,"switch-captions-active":!this.props.closedCaptionOptions.enabled}),l=r.getLocalizedString(this.props.language,i.SKIN_TEXT.OFF,this.props.localizableStrings),c=r.getLocalizedString(this.props.language,i.SKIN_TEXT.ON,this.props.localizableStrings);return n.createElement("div",{className:"switch-container"},n.createElement("span",{className:s},l),n.createElement("div",{className:"swi tch-element"},n.createElement("span",{className:t}),n.createElement("span",{className:e})),n.createElement("span",{className:a},c),n.createElement("a",{className:"switch-container-selectable",onClick:this.handleOnOffSwitch}))}}),c=n.createClass({displayName:"CCPreviewPanel",render:function(){var e=r.getLocalizedString(this.props.language,i.SKIN_TEXT.CLOSED_CAPTION_PREVIEW,this.props.localizableStrings),t=r.getLocalizedString(this.props.closedCaptionOptions.language,i.SKIN_TEXT.SAMPLE_TEXT,this.props.localizableStrings);t||(t=r.getLocalizedString("en",i.SKIN_TEXT.SAMPLE_TEXT,this.props.localizableStrings));var a=o({"preview-caption":!0,disabled:!this.props.closedCaptionOptions.enabled}),s=o({"preview-text":!0,disabled:!this.props.closedCaptionOptions.enabled});return n.createElement("div",{className:"preview-panel"},n.createElement("div",{className:a},e),n.createElement("div",{className:s},t))}}),u=n.createClass({displayName:"LanguageTabContent",propTypes:{languagesPerPage:n.PropType s.objectOf(n.PropTypes.number)},getDefaultProps:function(){return{languagesPerPage:{xs:1,sm:4,md:4,lg:15},responsiveView:"md"}},getInitialState:function(){return{selectedLanguage:this.props.closedCaptionOptions.language,currentPage:1}},componentWillReceiveProps:function(e){if(e.responsiveView!=this.props.responsiveView){var t=this.props.responsiveView,n=e.responsiveView,i=this.state.currentPage*this.props.languagesPerPage[t]-this.props.languagesPerPage[t],r=Math.floor(i/e.languagesPerPage[n])+1;this.setState({currentPage:r})}},changeLanguage:function(e){this.props.closedCaptionOptions.enabled&&(this.props.controller.onClosedCaptionLanguageChange(e),this.setState({selectedLanguage:e}))},handleLeftChevronClick:function(e){e.preventDefault(),this.setState({currentPage:this.state.currentPage-1})},handleRightChevronClick:function(e){e.preventDefault(),this.setState({currentPage:this.state.currentPage+1})},setClassname:function(e){return o({item:!0,"item-selected":this.props.close dCaptionOptions.language==e&&this.props.closedCaptionOptions.enabled,disabled:!this.props.closedCaptionOptions.enabled})},render:function(){var e=this.props.closedCaptionOptions.availableLanguages,t=this.props.responsiveView,i=this.props.languagesPerPage[t],r=i*(this.state.currentPage-1),s=i*this.state.currentPage,l=e.languages.slice(r,s);if(e.languages.length>1)for(var c=[],u=0;u=e.languages.length});return n.createElement("div",{className:"language-container"},n.createElement("div",{className:"language-panel flexcontainer"},c),n.createElement("a",{className:d,ref:"leftChevron",onClick:this.handleLeftChevronClick},n.createElement(a,n.__spread({},this.props,{icon:"left"}))),n.createElement("a",{className:p,ref:"rightChevron",onClick:this.handleRightChevronClick},n.createElement(a,n.__spread({},this.props,{icon:"right"}))))}})},{"../components/icon":10,"../constants/constants":20,"./utils":17,classnames:37,react:196}],6:[function(e,t){var n=e("react"),i=e("react-dom"),r=e( "../constants/constants"),o=e("classnames"),a=e("./slider"),s=e("./utils"),l=e("./videoQualityPopover"),c=e("../components/icon"),u=n.createClass({displayName:"ControlBar",getInitialState:function(){return this.isMobile=this.props.controller.state.isMobile,this.responsiveUIMultiple=this.getResponsiveUIMultiple(this.props.responsiveView),this.volumeSliderValue=0,this.moreOptionsItems=null,{currentVolumeHead:0,showVideoQualityPopover:!1}},componentWillReceiveProps:function(e){e.responsiveView!=this.props.responsiveView&&(this.responsiveUIMultiple=this.getResponsiveUIMultiple(e.responsiveView))},componentWillUnmount:function(){this.props.controller.cancelTimer(),s.isAndroid()&&this.props.controller.hideVolumeSliderBar()},getResponsiveUIMultiple:function(e){var t=this.props.skinConfig.responsive.breakpoints[e].multiplier;return t},handleControlBarMouseUp:function(e){"touchend"!=e.type&&this.isMobile||(e.stopPropagation(),e.cancelBubble=!0,this.props.controller.st ate.accessibilityControlsEnabled=!0,this.props.controller.startHideControlBarTimer())},handleFullscreenClick:function(e){e.stopPropagation(),e.cancelBubble=!0,e.preventDefault(),this.props.controller.toggleFullscreen()},handleVolumeIconClick:function(e){this.isMobile?(this.props.controller.startHideControlBarTimer(),e.stopPropagation(),e.cancelBubble=!0,this.props.controller.state.volumeState.volumeSliderVisible?this.props.controller.handleMuteClick():this.props.controller.showVolumeSliderBar()):this.props.controller.handleMuteClick()},handlePlayClick:function(){this.props.controller.togglePlayPause()},handleShareClick:function(){this.props.controller.toggleShareScreen()},handleQualityClick:function(){this.props.responsiveView==this.props.skinConfig.responsive.breakpoints.xs.id?this.props.controller.toggleScreen(r.SCREEN.VIDEO_QUALITY_SCREEN):this.toggleQualityPopover()},toggleQualityPopover:function(){this.setState({showVideoQualityPopover:!this.state.showVideoQualityPopover})},han dleVolumeClick:function(e){e.preventDefault();var t=parseFloat(e.target.dataset.volume);this.props.controller.setVolume(t)},handleDiscoveryClick:function(){this.props.controller.toggleDiscoveryScreen()},handleMoreOptionsClick:function(){this.props.controller.toggleMoreOptionsScreen(this.moreOptionsItems)},handleClosedCaptionClick:function(){this.props.controller.toggleClosedCaptionScreen()},highlight:function(e){var t=this.props.skinConfig.controlBar.iconStyle.active.color,n=this.props.skinConfig.controlBar.iconStyle.active.opacity;s.highlight(e.target,n,t)},removeHighlight:function(e){var t=this.props.skinConfig.controlBar.iconStyle.inactive.color,n=this.props.skinConfig.controlBar.iconStyle.inactive.opacity;s.removeHighlight(e.target,n,t)},volumeHighlight:function(){this.highlight({target:i.findDOMNode(this.refs.volumeIcon)})},volumeRemoveHighlight:function(){this.removeHighlight({ target:i.findDOMNode(this.refs.volumeIcon)})},handleWatermarkClick:function(){var e=this.props.skinC onfig.controlBar.watermark.clickUrl;e&&window.open(e,"_blank")},changeVolumeSlider:function(e){var t=parseFloat(e.target.value);this.props.controller.setVolume(t),this.setState({volumeSliderValue:e.target.value})},populateControlBar:function(){var e=this.setupItemStyle(),t="";t=this.props.playerState==r.STATE.PLAYING?"pause":this.props.playerState==r.STATE.END?"replay":"play";var i=this.props.controller.state.volumeState.muted?"volumeOff":"volume",u="";u=this.props.controller.state.fullscreen?"compress":"expand";var d=0;d=s.formatSeconds(null==this.props.duration||"undefined"==typeof this.props.duration||""==this.props.duration?0:this.props.duration);for(var p=[],h=0;10>h;h++){var f=this.props.controller.state.volumeState.volume>=(h+1)/10,m=o({volumeBar:!0,on:f});p.push(n.createElement("a",{"data-volume":(h+1)/10,className:m,key:h,onClick:this.handleVolumeClick}))}var E,g=n.createElement("div",{className:"volumeSlider"},n.createElement(a,{value:parseFloat(this.props.co ntroller.state.volumeState.volume),onChange:this.changeVolumeSlider,className:"slider slider-volume",itemRef:"volumeSlider",minValue:"0",maxValue:"1",step:"0.1"}));E=this.isMobile?this.props.controller.state.volumeState.volumeSliderVisible?g:null:p;for(var v=this.state.showVideoQualityPopover?n.createElement(l,n.__spread({},this.props,{togglePopoverAction:this.toggleQualityPopover})):null,y={color:this.props.skinConfig.controlBar.iconStyle.inactive.color},b=this.props.skinConfig.controlBar.watermark.imageResource.url,_=isFinite(parseInt(this.props.currentPlayhead))?s.formatSeconds(parseInt(this.props.currentPlayhead)):null,S=this.props.authorization.streams[0].is_live_stream?null:n.createElement("span",{className:"total-time"},d),A=s.getLocalizedString(this.props.language,r.SKIN_TEXT.LIVE,this.props.localizableStrings),T=o({quality:!0,controlBarItem:!0,selected:this.state.showVideoQualityPopover}),C=o({watermark:!0,controlBarItem:!0,nonClickableWatermark:!this.props.skinConfig.contr olBar.watermark.clickUrl}),N={playPause:n.createElement("button",{className:"playPause controlBarItem",onClick:this.handlePlayClick,key:"playPause"},n.createElement(c,n.__spread({},this.props,{icon:t,style:e.iconCharacter,onMouseOver:this.highlight,onMouseOut:this.removeHighlight}))),live:n.createElement("div",{className:"live controlBarItem",key:"live"},n.createElement("div",{className:"liveIndicator"},n.createElement("div",{className:"liveCircle"}),n.createElement("span",{className:"liveText"}," ",A))),volume:n.createElement("div",{className:"volume controlBarItem",key:"volume"},n.createElement(c,n.__spread({},this.props,{icon:i,ref:"volumeIcon",style:this.props.skinConfig.controlBar.iconStyle.inactive,onClick:this.handleVolumeIconClick,onMouseOver:this.volumeHighlight,onMouseOut:this.volumeRemoveHighlight})),E),timeDuration:n.createElement("div",{className:"timeDuration controlBarDuration",style:y,key:"timeDuration"},n.createElement("span",null,_),S),flexibleSpace:n.createElement ("div",{className:"flexibleSpace controlBarFlexSpace",key:"flexibleSpace"}),moreOptions:n.createElement("button",{className:"moreOptions controlBarItem",onClick:this.handleMoreOptionsClick,key:"moreOptions"},n.createElement(c,n.__spread({},this.props,{icon:"ellipsis",style:e.iconCharacter,onMouseOver:this.highlight,onMouseOut:this.removeHighlight}))),quality:n.createElement("div",{className:"popover-button-container",key:"quality"},v,n.createElement("button",{className:T,onClick:this.handleQualityClick},n.createElement(c,n.__spread({},this.props,{icon:"quality",style:e.iconCharacter,onMouseOver:this.highlight,onMouseOut:this.removeHighlight})))),discovery:n.createElement("button",{className:"discovery controlBarItem",onClick:this.handleDiscoveryClick,key:"discovery"},n.createElement(c,n.__spread({},this.props,{icon:"discovery",style:e.iconCharacter,onMouseOver:this.highlight,onMouseOut:this.removeHighlight}))),closedCaption:n.createElement("button",{className:"closedCaption controlB arItem",onClick:this.handleClosedCaptionClick,key:"closedCaption"},n.createElement(c,n.__spread({},this.props,{icon:"cc",style:e.iconCharacter,onMouseOver:this.highlight,onMouseOut:this.removeHighlight}))),share:n.createElement("button",{className:"share controlBarItem",onClick:this.handleShareClick,key:"share"},n.createElement(c,n.__spread({},this.props,{icon:"share",style:e.iconCharacter,onMouseOver:this.highlight,onMouseOut:this.removeHighlight}))),fullscreen:n.createElement("button",{className:"fullscreen controlBarItem",onClick:this.handleFullscreenClick,key:"fullscreen"},n.createElement(c,n.__spread({},this.props,{icon:u,style:e.iconCharacter,onMouseOver:this.highlight,onMouseOut:this.removeHighlight}))),watermark:n.createElement("div",{className:C,key:"watermark",style:e.watermarkImageStyle},n.createElement("img",{src:b,onClick:this.handleWatermarkClick}))},O=[],R=this.props.controller.state.isPlayingAd?this.props.skinConfig.buttons.desktopAd:this.props.skinConfig.buttons.des ktopContent,I=null,D=0,w=0;w0?0:45,M=2*r.UI.DEFAULT_SCRUBBERBAR_LEFT_RIGHT_PADDING,V=0;V=e.length}),y=n.createElement("div",{className:m},n.createElement("a",{className:"discoveryCountDownIconStyle",onClick:this.handleDiscoveryCountDownClick},n.createElement(s,n.__spread({},this.props,{timeToShow:this.props.skinConfig.discoveryScreen.countDownTime,ref:"CountDownClock"})),n.createElement(c,n.__spread({},this.props,{icon:"pause"})))),b=[],_=0;_",this.props.assetId).replace("",this.props.playerParam.playerBrandingId).replace("",this.props.playerParam.pcode)}catch(a){i=""}return n.createElement("div",{className:"shareTabPanel"},n.createElement("textarea",{className:"form-control",rows:"3",value:i,readOnly:!0}))}},handleEmailClick:function(e){e.preventDefault();var t=r.getLocalizedString(this.props.language,o.SKIN_TEXT.EMAIL_BODY,this.props.localizableStrings),n="mailto:";n+="?subject="+encodeURIComponent(this.props.contentTree.title),n+="&body="+encodeURIComponent(t+location.href),w indow.open(n,"_blank","height=315,width=780")},handleFacebookClick:function(){var e="http://www.facebook.com/sharer.php";e+="?u="+encodeURIComponent(location.href),window.open(e,"facebook window","height=315,width=780")},handleGPlusClick:function(){var e="https://plus.google.com/share";e+="?url="+encodeURIComponent(location.href),window.open(e,"google+ window","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600")},handleTwitterClick:function(){var e="https://twitter.com/intent/tweet";e+="?text="+encodeURIComponent(this.props.contentTree.title+": "),e+="&url="+encodeURIComponent(location.href),window.open(e,"twitter window","height=300,width=750")},showPanel:function(e){this.setState({activeTab:e})},render:function(){var e=i({shareTab:!0,active:this.state.activeTab==this.tabs.SHARE}),t=i({embedTab:!0,active:this.state.activeTab==this.tabs.EMBED}),a=r.getLocalizedString(this.props.language,o.SKIN_TEXT.SHARE,this.props.localizableStrings),s=r.getLocalizedString (this.props.language,o.SKIN_TEXT.EMBED,this.props.localizableStrings);return n.createElement("div",{className:"share-container"},n.createElement("div",{className:"tabRow"},n.createElement("a",{className:e,onClick:this.showPanel.bind(this,this.tabs.SHARE)},a),n.createElement("a",{className:t,onClick:this.showPanel.bind(this,this.tabs.EMBED)},s)),this.getActivePanel())}});a.defaultProps={contentTree:{title:""}},t.exports=a},{"../constants/constants":20,"./utils":17,classnames:37,react:196}],14:[function(e,t){var n=e("react"),i=(e("react-dom"),e("./utils")),r=n.createClass({displayName:"Slider",componentDidMount:function(){this.handleSliderColoring(this.props)},componentWillReceiveProps:function(e){e.value!=this.props.value&&this.handleSliderColoring(e)},handleSliderColoring:function(e){if(!i.isEdge()){var t=this.refs[this.props.itemRef],n=window.getComputedStyle(t,null),r=n.getPropertyValue("border-left-color"),o=n.getPropertyValue("border-right-color"),a=(e.value-e.minValue)/ (e.maxValue-e.minValue);t.style.backgroundImage=["-webkit-gradient(","linear, ","left top, ","right top, ","color-stop("+a+", "+r+"), ","color-stop("+a+", "+o+")",")"].join(""); }},changeValue:function(e){"change"!=e.type||i.isIE()?i.isIE()&&this.props.onChange(e):(this.props.onChange(e),this.handleSliderColoring(this.props))},render:function(){return n.createElement("input",{type:"range",className:this.props.className,min:this.props.minValue,max:this.props.maxValue,value:this.props.value,step:this.props.step,ref:this.props.itemRef,onChange:this.changeValue,onClick:this.changeValue,onMouseMove:this.changeValue})}});t.exports=r},{"./utils":17,react:196,"react-dom":39}],15:[function(e,t){var n=e("react"),i=n.createClass({displayName:"Spinner",render:function(){return n.createElement("div",{className:"spinner-screen"},n.createElement("div",{className:"spinner-wrapper"},n.createElement("img",{src:this.props.loadingImage,className:"spinner"})))}});t.exports=i},{react:196}],16:[fu nction(e,t){var n=e("react"),i=e("classnames"),r=e("./../constants/constants"),o=e("./utils"),a=e("./closeButton"),s=e("./countDownClock"),l=e("../components/icon"),c=n.createClass({displayName:"UpNextPanel",closeUpNextPanel:function(){this.props.controller.upNextDismissButtonClicked()},handleStartUpNextClick:function(e){e.preventDefault();var t={clickedVideo:this.props.upNextInfo.upNextData,custom:{source:r.SCREEN.UP_NEXT_SCREEN,countdown:0,autoplay:!0}};this.props.controller.sendDiscoveryClickEvent(t,!1)},render:function(){var e=o.getLocalizedString(this.props.language,r.SKIN_TEXT.UP_NEXT,this.props.localizableStrings),t=i({upNextPanel:!0,upNextPanelBottom:this.props.controlBarVisible});return n.createElement("div",{className:t},n.createElement("a",{className:"upNextContent",onClick:this.handleStartUpNextClick},n.createElement("img",{className:"contentImage",src:this.props.upNextInfo.upNextData.preview_image_url}),n.createElement(l,n.__spread({},this.props,{icon:"play"}))),n.creat eElement("div",{className:"contentMetadata"},n.createElement("div",{className:"upNextTitle"},n.createElement(s,n.__spread({},this.props,{timeToShow:this.props.skinConfig.upNext.timeToShow,currentPlayhead:this.props.currentPlayhead})),n.createElement("div",{className:"upNextTitleText text-truncate text-capitalize"},e,": ",this.props.upNextInfo.upNextData.name)),n.createElement("div",{className:"contentDescription text-truncate text-capitalize"},this.props.upNextInfo.upNextData.description)),n.createElement(a,n.__spread({},this.props,{cssClass:"upNextCloseBtn",closeAction:this.closeUpNextPanel})))}});c.propTypes={upNextInfo:n.PropTypes.shape({upNextData:n.PropTypes.shape({preview_image_url:n.PropTypes.string,name:n.PropTypes.string,description:n.PropTypes.string})}),skinConfig:n.PropTypes.shape({upNext:n.PropTypes.shape({timeToShow:n.PropTypes.string}),icons:n.PropTypes.objectOf(n.PropTypes.object)})},c.defaultProps={skinConfig:{upNext:{timeToShow:"10"},icons:{play:{fontStyleClass:"ic on icon-play"},dismiss:{fontStyleClass:"icon icon-close"}}},upNextInfo:{upNextData:{}},controller:{upNextDismissButtonClicked:function(){},sendDiscoveryClickEvent:function(){}}},t.exports=c},{"../components/icon":10,"./../constants/constants":20,"./closeButton":4,"./countDownClock":7,"./utils":17,classnames:37,react:196}],17:[function(e,t){var n={truncateTextToWidth:function(e,t){var n=document.createElement("span");n.style.visibility="hidden",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.whiteSpace="nowrap",n.innerHTML=t,e.appendChild(n);var i=e.clientWidth,r=n.scrollWidth,o="";if(r>1.8*i){var a=i/r,s=1.8*Math.floor(a*t.length)-3;o=t.slice(0,s)+"..."}else o=t;return e.removeChild(n),o},clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},extend:function(e,t){var i=n.clone(e);for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);return i},formatSeconds:function(e){var t=parseInt(e,10)%60,n=parseInt(e/3600,10),i=pars eInt((e-3600*n)/60,10);return 10>n&&(n="0"+n),10>i&&(i="0"+i),10>t&&(t="0"+t),parseInt(n,10)>0?n+":"+i+":"+t:i+":"+t},validateEmail:function(e){var t=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;return t.test(e)},isSafari:function(){return!!window.navigator.userAgent.match(/AppleWebKit/)&&!window.navigator.userAgent.match(/Chrome/)},isEdge:function(){return!!window.navigator.userAgent.match(/Edge/)},isIE:function(){return!!window.navigator.userAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/)},isAndroid:function(){var e=window.navigato r.appVersion;return!!e.match(/Android/)},isIos:function(){var e=window.navigator.platform;return!!(e.match(/iPhone/)||e.match(/iPad/)||e.match(/iPod/))},isIPhone:function(){var e=window.navigator.platform;return!(!e.match(/iPhone/)&&!e.match(/iPod/))},isMobile:function(){return this.isAndroid()||this.isIos()},isIE10:function(){return!!window.navigator.userAgent.match(/MSIE 10/)},getLanguageToUse:function(e){var t,n,i=e.localization;if(t=i.defaultLanguage,!t){t=window.navigator.languages?window.navigator.languages[0]:window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.language;for(var r=t.substr(0,2),o=0;o=o,l},_isValid:function(e){var t=e&&"moreOptions"==e.location||"controlBar"==e.location&&e.whenDoesNotFit&&void 0!==e.minWidth&&e.minWidth>=0;return t},_collapse:function(e,t,n){for(var i={fit:t.slice(),overflow:[]},r=t.reduce(function(e,t){return e+n*t.minWidth},0),o=t.length-1;o>=0;--o){var a=t[o];this._is OnlyInMoreOptions(a)&&(r=this._collapseLastItemMatching(i,a,r)),r>e&&this._isCollapsable(a)&&(r=this._collapseLastItemMatching(i,a,r))}return i},_isOnlyInMoreOptions:function(e){var t="moreOptions"==e.location;return t},_isCollapsable:function(e){var t="controlBar"==e.location&&e.whenDoesNotFit&&"keep"!=e.whenDoesNotFit;return t},_collapseLastItemMatching:function(e,t,n){var i=e.fit.lastIndexOf(t);return i>-1&&(e.fit.splice(i,1),e.overflow.unshift(t),t.minWidth&&(n-=t.minWidth)),n},_isOverflow:function(e){return e.whenDoesNotFit&&"moveToMoreOptions"==e.whenDoesNotFit}};t.exports=n},{}],18:[function(e,t){var n=e("react"),i=e("classnames"),r=e("../components/icon"),o=n.createClass({displayName:"VideoQualityPanel",getInitialState:function(){return{selected:this.props.videoQualityOptions.selectedBitrate?this.props.videoQualityOptions.selectedBitrate.id:"auto"}},handleVideoQualityClick:function(e,t){t.preventDefault(); var n={id:e};this.props.controller.sendVideoQualityChangeEvent(n),this.setState({selected:e}),this.props.togglePopoverAction()},addAutoButton:function(e){var t=i({"quality-auto-btn":!0,selected:"auto"==this.state.selected});e.unshift(n.createElement("li",{className:"auto-li",key:"auto-li"},n.createElement("a",{className:t,key:"auto",onClick:this.handleVideoQualityClick.bind(this,"auto")},n.createElement("div",{className:"quality-auto-icon"},n.createElement(r,n.__spread({},this.props,{icon:"auto"}))),n.createElement("div",{className:"quality-auto-label"},"Auto"))))},render:function(){for(var e=this.props.videoQualityOptions.availableBitrates,t=[],r=0;r ");var p={};c.getJSON(d.skin.config,l.bind(function(r){r.localization.availableLanguageFile.forEach(function(e){c.getJSON(e.languageFile,l.bind(function(t){p[e.language]=t,this.renderSkin()},this))},this),c.extend(!0,r,d.skin.inline),this.state.config=r,this.skin=n.render(t.createElement(s,{skinConfig:r,localizableStrings:p,language:i.getLanguageToUse(r),controller:this,closedCaptionOptions:this.state.closedCaptionOptions,pauseAnimationDisabled:this.state.pauseAnimationDisabled}),document.querySelector("#"+this.state.elementId+" .player_skin")),new o(this),this.state.configLoaded=!0,this.renderSkin();var a=this.state.config.adScreen.showControlBar?"":" full";c("#"+this.state.elementId+" .player_skin").append(" "),this.state.pluginsElement=c("#"+this.state.elementId+" .player_skin_plugins"),this.state.pluginsClickElement=c("#"+this.state.elementId+" .player_skin_plugins_click_layer"),this.state.pluginsElement.mouseover(function(){this.showControlBar(),this.renderSkin(),this.startHideControlBarTimer()}.bind(this)),this.state.pluginsElement.mouseout(function(){this.hideControlBar()}.bind(this)),this.state.pluginsClickElement.click(function(){this.state.pluginsClickElement.removeClass("showing"),this.mb.publish(e.EVENTS.PLAY)}.bind(this)),this.state.pluginsClickElement.mouseover(function(){this.showControlBar(),this.renderSkin(),this.startHideControlBarTimer()}.bind(this)),this.state.pluginsClickElement.mouseout(function(){this.hideControlBar()}.bind(this)),this.mb.publish(e.EVENTS.UI_READY,{videoWrapperClass:"innerWrapper",pluginsClass:"player_skin_plugins"})},this)),this.state.isMobile=i.isMobile(),this.externalPluginSubscription(),this.state.screenToShow=r.SCREEN.LOADING_SCREEN},onVcVideoEl ementCreated:function(t,n){var r=c("#"+n.domId),o=r.find("video");o.length&&(r=o),r.get(0).addEventListener("loadedmetadata",this.metaDataLoaded.bind(this)),i.isIE10()&&r.attr("controls","controls"),n.videoId===e.VIDEO.MAIN&&(this.state.mainVideoElement=r,this.enableFullScreen(),this.updateAspectRatio())},metaDataLoaded:function(){this.enableIosFullScreen()},onPlayerDestroy:function(){var e=this.state.elementId,t=document.querySelector("#"+e+" .player_skin");n.unmountComponentAtNode(t),this.mb=null},onEmbedCodeChanged:function(e,t,n){this.state.videoQualityOptions.availableBitrates=null,this.state.closedCaptionOptions.availableLanguages=null,this.state.discoveryData=null,this.state.assetId=t,c.extend(!0,this.state.playerParam,n),this.subscribeBasicPlaybackEvents()},onAuthorizationFetched:function(e,t){this.state.authorization=t},onContentTreeFetched:function(e,t){this.resetUpNextInfo(!0),this.state.contentTree=t,this.state.playerState=r.STATE.START,this.rende rSkin({contentTree:t})},onVolumeChanged:function(e,t){this.state.volumeState.volume=t},resetUpNextInfo:function(e){e&&(this.state.upNextInfo.upNextData=null),this.state.upNextInfo.countDownFinished=!1,this.state.upNextInfo.countDownCancelled=!1},onPlayheadTimeChanged:function(t,n,o,a,s,l){"main"==l?this.state.mainVideoPlayhead=n:l==e.VIDEO.ADS&&(this.state.adVideoDuration=o),this.state.duration=o,this.state.screenToShow!==r.SCREEN.AD_SCREEN&&(this.skin.props.skinConfig.upNext.showUpNext?i.isIPhone()||i.isIos()&&this.state.fullscreen||this.showUpNextScreenWhenReady(n,o):this.state.playerState===r.STATE.PLAYING?this.state.screenToShow=r.SCREEN.PLAYING_SCREEN:this.state.playerState===r.STATE.PAUSE&&(this.state.screenToShow=r.SCREEN.PAUSE_SCREEN)),this.state.seeking?this.state.queuedPlayheadUpdate=[n,o,a]:this.skin.updatePlayhead(n,o,a)},showUpNextScreenWhenReady:function(e,t){var n=0,i=this.skin.props.skinConfig.upNext.timeToShow;n=-1===i.indexOf ("%")?parseInt(i):(1-parseInt(i)/100)*t,this.state.upNextInfo.timeToShow=n,this.state.upNextInfo.showing=n>=t-e&&!this.state.upNextInfo.countDownCancelled&&this.state.isPlayingAd!==!0&&null!==this.state.upNextInfo.upNextData&&(this.state.playerState===r.STATE.PLAYING||this.state.playerState===r.STATE.PAUSE)},onInitialPlay:function(){this.state.isInitialPlay=!0},onPlaying:function(t,n){n==e.VIDEO.MAIN&&(this.state.pauseAnimationDisabled=!1,this.state.screenToShow=r.SCREEN.PLAYING_SCREEN,this.state.playerState=r.STATE.PLAYING,this.setClosedCaptionsLanguage(),this.state.mainVideoElement.removeClass("blur"),this.state.isInitialPlay=!1,this.renderSkin()),n==e.VIDEO.ADS&&(this.state.adPauseAnimationDisabled=!0,this.state.pluginsElement.addClass("showing"),this.state.pluginsClickElement.removeClass("showing"),null!==this.state.currentAdsInfo.currentAdItem&&(this.state.playerState=r.STATE.PLAYING,this.state.screenToShow=r.SCREEN.AD_ SCREEN,this.renderSkin()))},onPause:function(t,n,i){i===r.PAUSE_REASON.TRANSITION&&(this.state.pauseAnimationDisabled=!0,this.endSeeking()),n==e.VIDEO.ADS&&this.state.pluginsElement.children().length>0&&this.state.pluginsClickElement.addClass("showing")},onPaused:function(t,n){n==this.focusedElement&&(n==e.VIDEO.MAIN&&this.state.screenToShow!=r.SCREEN.AD_SCREEN&&this.state.screenToShow!=r.SCREEN.LOADING_SCREEN?(this.state.duration-this.state.mainVideoPlayhead0},onAdPodStarted:function(t,n){e.log("onAdPodStarted is called from event = "+t+"with "+n+"ads"),this.state.currentAdsInfo.numberOfAds=n,this.renderSkin()},onWillPlaySingleAd:function(t,n){e.log("onWillPlaySingleAd is called with adItem = "+n),null!==n&&(this.state.adVideoDuration=n.duration,this.state.screenToShow=r.SCREEN.AD_SCREEN,this.state.isPlayingAd=!0,this.state.currentAdsInfo.currentAdItem=n,this.state.playerState=r.STATE.PLAYING,this.skin.state.currentPlayhead =0,this.state.mainVideoElement.removeClass("blur"),this.renderSkin())},onSingleAdPlayed:function(){e.log("onSingleAdPlayed is called"),this.state.isPlayingAd=!1,this.state.adVideoDuration=0,this.state.currentAdsInfo.skipAdButtonEnabled=!1},onShowAdSkipButton:function(){this.state.currentAdsInfo.skipAdButtonEnabled=!0,this.renderSkin()},onShowAdControls:function(e,t){this.state.showAdControls=t,t&&this.state.config.adScreen.showControlBar?(this.state.pluginsElement.removeClass("full"),this.state.pluginsClickElement.removeClass("full")):(this.state.pluginsElement.addClass("full"),this.state.pluginsClickElement.addClass("full")),this.renderSkin()},onShowAdMarquee:function(e,t){this.state.showAdMarquee=t,this.renderSkin()},onSkipAdClicked:function(){this.state.isSkipAdClicked=!0,e.log("onSkipAdClicked is called"),this.state.currentAdsInfo.skipAdButtonEnabled=!1,this.mb.publish(e.EVENTS.SKIP_AD),this.renderSkin()},onAdsClicked:function(t){e.log("on ads clicked is called",t),this. mb.publish(e.EVENTS.ADS_CLICKED,{source:t})},publishOverlayRenderingEvent:function(t){this.mb.publish(e.EVENTS.OVERLAY_RENDERING,{marginHeight:t})},onPlayNonlinearAd:function(e,t){t.url&&(this.state.adOverlayUrl=t.url,this.state.showAdOverlay=!0), this.state.pluginsElement.addClass("overlay_showing");var n=c("#"+this.state.elementId+" .player_skin"),i=(n.width(),n.height(),{});if(t.ad.height&&-1!==t.ad.height){var r=t.ad.paddingHeight?t.ad.paddingHeight:0;i.height=t.ad.height+r+"px",i.top="auto"}else i.top=0,i.bottom=0;if(t.ad.width&&-1!==t.ad.width){var r=t.ad.paddingWidth?t.ad.paddingWidth:0;i.width=t.ad.width+r+"px",i.left="50%",i.transform="translateX(-50%)"}this.state.pluginsElement.css(i),this.renderSkin()},onAdOverlayLoaded:function(){this.mb.publish(e.EVENTS.NONLINEAR_AD_DISPLAYED)},onVideoElementFocus:function(t,n){this.focusedElement=n,n==e.VIDEO.MAIN&&(this.state.pluginsElement.removeClass("showing"),this.state.pluginsClickElement.removeCla ss("showing"))},closeNonlinearAd:function(){this.state.adOverlayUrl=null,this.state.showAdOverlay=!1,this.state.showAdOverlayCloseButton=!1,this.state.pluginsElement.removeClass("overlay_showing"),this.state.pluginsElement.css({top:"",left:"",right:"",bottom:"",height:"0px",width:"0px",transform:""}),this.renderSkin()},hideNonlinearAd:function(){this.state.showAdOverlay=!1,this.state.pluginsElement.removeClass("overlay_showing"),this.renderSkin()},showNonlinearAd:function(){this.state.showAdOverlay=!0,this.state.pluginsElement.addClass("overlay_showing"),this.renderSkin()},showNonlinearAdCloseButton:function(){this.state.showAdOverlayCloseButton=!0,this.renderSkin()},onBitrateInfoAvailable:function(e,t){t&&t.bitrates&&(this.state.videoQualityOptions.availableBitrates=t.bitrates,this.renderSkin({videoQualityOptions:{availableBitrates:t.bitrates}}))},onClosedCaptionsInfoAvailable:function(e,t){this.state.closedCaptionOptions.availableLanguages=t,1==t.languages.length&a mp;&(this.state.closedCaptionOptions.language=t.languages[0]),this.state.closedCaptionOptions.enabled&&this.setClosedCaptionsLanguage()},onClosedCaptionCueChanged:function(){},onRelatedVideosFetched:function(t,n){e.log("onRelatedVideosFetched is called"),n.videos&&(this.state.discoveryData={relatedVideos:n.videos},this.state.upNextInfo.upNextData=n.videos[0],this.renderSkin())},enableFullScreen:function(){a.enabled&&(this.state.isFullScreenSupported=!0,document.addEventListener(a.raw.fullscreenchange,this.onFullscreenChanged.bind(this)))},enableIosFullScreen:function(){this.state.isFullScreenSupported||this.state.mainVideoElement.get(0).webkitSupportsFullscreen&&(this.state.isVideoFullScreenSupported=!0,this.state.mainVideoElement.get(0).addEventListener("webkitbeginfullscreen",this.webkitBeginFullscreen.bind(this)),this.state.mainVideoElement.get(0).addEventListener("webkitendfullscreen",this.webkitEndFullscreen.bind(this)))},onFullscreenChanged: function(){this.state.isFullScreenSupported?this.state.fullscreen=a.isFullscreen:this.toggleFullscreen(),this.renderSkin()},toggleFullscreen:function(){this.state.isFullScreenSupported?a.toggle(this.state.mainVideoWrapper.get(0)):this.state.isVideoFullScreenSupported?this.state.fullscreen?this.state.mainVideoElement.get(0).webkitExitFullscreen():this.state.mainVideoElement.get(0).webkitEnterFullscreen():this.state.isFullWindow?this.exitFullWindow():this.enterFullWindow(),this.state.fullscreen=!this.state.fullscreen,this.renderSkin()},enterFullWindow:function(){this.state.isFullWindow=this.state.fullscreen=!0,document.addEventListener("keydown",this.exitFullWindowOnEscKey.bind(this)),document.documentElement.style.overflow="hidden",this.state.mainVideoWrapper.addClass("fullscreen")},exitFullWindow:function(){this.state.isFullWindow=this.state.fullscreen=!1,document.removeEventListener("keydown",this.exitFullWindowOnEscKey),document.documentElement.style.overflow="visible",this.state. mainVideoWrapper.removeClass("fullscreen")},webkitBeginFullscreen:function(){this.state.fullscreen=!0},webkitEndFullscreen:function(){this.state.fullscreen=!1},exitFullWindowOnEscKey:function(e){e.keyCode===r.KEYCODES.ESCAPE_KEY&&(e.preventDefault(),this.exitFullWindow())},onErrorEvent:function(e,t){this.unsubscribeBasicPlaybackEvents(),this.state.screenToShow=r.SCREEN.ERROR_SCREEN,this.state.playerState=r.STATE.ERROR,this.state.errorCode=t,this.renderSkin()},unsubscribeFromMessageBus:function(){this.unsubscribeBasicPlaybackEvents(),this.mb.unsubscribe(e.EVENTS.PLAYER_CREATED,"customerUi"),this.mb.unsubscribe(e.EVENTS.CONTENT_TREE_FETCHED,"customerUi"),this.mb.unsubscribe(e.EVENTS.AUTHORIZATION_FETCHED,"customerUi"),this.mb.unsubscribe(e.EVENTS.PLAYBACK_READY,"customerUi"),this.mb.unsubscribe(e.EVENTS.ERROR,"customerUi")},unsubscribeBasicPlaybackEvents:function(){this.mb.unsubscribe(e.EVENTS.INITIAL_PLAY,"customerUi"),this.mb.unsubscribe(e.EVENTS.VC_PLAYED,"customerUi"),this .mb.unsubscribe(e.EVENTS.VC_PLAYING,"customerUi"),this.mb.unsubscribe(e.EVENTS.VC_PAUSE,"customerUi"),this.mb.unsubscribe(e.EVENTS.VC_PAUSED,"customerUi"),this.mb.unsubscribe(e.EVENTS.PLAYED,"customerUi"),this.mb.unsubscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"customerUi"),this.mb.unsubscribe(e.EVENTS.SEEKED,"customerUi"),this.mb.unsubscribe(e.EVENTS.BUFFERING,"customerUi"),this.mb.unsubscribe(e.EVENTS.BUFFERED,"customerUi"),this.mb.unsubscribe(e.EVENTS.CLOSED_CAPTIONS_INFO_AVAILABLE,"customerUi"),this.mb.unsubscribe(e.EVENTS.BITRATE_INFO_AVAILABLE,"customerUi"),this.mb.unsubscribe(e.EVENTS.CLOSED_CAPTION_CUE_CHANGED,"customerUi"),this.mb.unsubscribe(e.EVENTS.VOLUME_CHANGED,"customerUi"),i.isIPhone()||(this.mb.unsubscribe(e.EVENTS.ADS_PLAYED,"customerUi"),this.mb.unsubscribe(e.EVENTS.WILL_PLAY_ADS,"customerUi"),this.mb.unsubscribe(e.EVENTS.AD_POD_STARTED,"customerUi"),this.mb.unsubscribe(e.EVENTS.WILL_PLAY_SINGLE_AD,"customerUi"),this.mb.unsubscribe(e.EVENTS.SINGLE_AD_PLAYED,"customerUi "),this.mb.unsubscribe(e.EVENTS.PLAY_NONLINEAR_AD,"customerUi"),this.mb.unsubscribe(e.EVENTS.NONLINEAR_AD_PLAYED,"customerUi"),this.mb.unsubscribe(e.EVENTS.HIDE_NONLINEAR_AD,"customerUi"),this.mb.unsubscribe(e.EVENTS.SHOW_NONLINEAR_AD,"customerUi"),this.mb.unsubscribe(e.EVENTS.SHOW_AD_SKIP_BUTTON,"customerUi"),this.mb.unsubscribe(e.EVENTS.SHOW_AD_CONTROLS,"customerUi"),this.mb.unsubscribe(e.EVENTS.SHOW_AD_MARQUEE,"customerUi"),e.EVENTS.DISCOVERY_API&&this.mb.unsubscribe(e.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED,"customerUi")),this.state.isSubscribed=!1},renderSkin:function(e){this.state.configLoaded&&(l.extend(this.state,e),this.skin.switchComponent(this.state))},toggleDiscoveryScreen:function(){switch(this.state.playerState){case r.STATE.PLAYING:this.togglePlayPause(),this.sendDiscoveryDisplayEvent("pauseScreen"),setTimeout(function(){this.state.screenToShow=r.SCREEN.DISCOVERY_SCREEN,this.state.playerState=r.STATE.PAUSE,this.renderSkin(),e.log("finished toggleDi scoveryScreen")}.bind(this),1);break;case r.STATE.PAUSE:this.state.screenToShow===r.SCREEN.DISCOVERY_SCREEN?(this.state.pauseAnimationDisabled=!0,this.state.screenToShow=r.SCREEN.PAUSE_SCREEN):(this.sendDiscoveryDisplayEvent("pauseScreen"),this.state.screenToShow=r.SCREEN.DISCOVERY_SCREEN);break;case r.STATE.END:this.state.screenToShow===r.SCREEN.DISCOVERY_SCREEN?this.state.screenToShow=r.SCREEN.END_SCREEN:(this.sendDiscoveryDisplayEvent("endScreen"),this.state.screenToShow=r.SCREEN.DISCOVERY_SCREEN)}this.renderSkin()},toggleMute:function(t){this.mb.publish(e.EVENTS.CHANGE_VOLUME,t?0:1)},togglePlayPause:function(){switch(this.state.playerState){case r.STATE.START:this.mb.publish(e.EVENTS.INITIAL_PLAY);break;case r.STATE.END:(i.isAndroid()||i.isIos())&&this.state.isSkipAdClicked?this.state.isSkipAdClicked=!1:this.mb.publish(e.EVENTS.REPLAY);break;case r.STATE.PAUSE:this.mb.publish(e.EVENTS.PLAY);break;case r.STATE.PLAYING:this.mb.publish(e.EVENTS.PAUSE)}},seek:function(t){thi s.mb.publish(e.EVENTS.SEEK,t),this.state.screenToShow==r.SCREEN.END_SCREEN&&(this.state.pauseAnimationDisabled=!0,this.state.screenToShow=r.SCREEN.PAUSE_SCREEN,this.state.playerState=r.STATE.PAUSE,this.renderSkin())},setVolume:function(t){this.state.volumeState.muted=!1,this.state.volumeState.volume=t,this.mb.publish(e.EVENTS.CHANGE_VOLUME,t),this.renderSkin()},handleMuteClick:function(){var e={};this.state.volumeState.muted?(e={oldVolume:0,muted:!this.state.volumeState.muted},this.setVolume(this.state.volumeState.oldVolume)):(e={oldVolume:this.state.volumeState.volume,muted:!this.state.volumeState.muted},this.setVolume(0)),this.state.volumeState.oldVolume=e.oldVolume,this.state.volumeState.muted=e.muted},toggleShareScreen:function(){this.state.screenToShow==r.SCREEN.SHARE_SCREEN?this.closeScreen():(this.state.playerState==r.STATE.PLAYING&&this.mb.publish(e.EVENTS.PAUSE),setTimeout(function(){this.state.screenToShow=r.SCREEN.SHARE_SCREEN,this.renderSkin()}.bind(this) ,1))},toggleScreen:function(t){this.state.screenToShow==t?this.closeScreen():(this.state.playerState==r.STATE.PLAYING&&this.mb.publish(e.EVENTS.PAUSE),setTimeout(function(){this.state.screenToShow=t,this.renderSkin()}.bind(this),1))},sendDiscoveryClickEvent:function(t,n){this.state.upNextInfo.showing=!1,n?(this.state.upNextInfo.delayedContentData=t,this.state.upNextInfo.delayedSetEmbedCodeEvent=!0):(this.state.screenToShow=r.SCREEN.LOADING_SCREEN,this.renderSkin(),this.mb.publish(e.EVENTS.PAUSE),this.mb.publish(e.EVENTS.SET_EMBED_CODE,t.clickedVideo.embed_code),this.mb.publish(e.EVENTS.DISCOVERY_API.SEND_CLICK_EVENT,t))},sendDiscoveryDisplayEvent:function(t){var n={relatedVideos:this.state.discoveryData.relatedVideos,custom:{source:t}};this.mb.publish(e.EVENTS.DISCOVERY_API.SEND_DISPLAY_EVENT,n)},sendVideoQualityChangeEvent:function(t){this.state.videoQualityOptions.selectedBitrate={id:t.id},this.mb.publish(e.EVENTS.SET_TARGET_BITRATE,t.id)},setClosedCaptionsLanguage:functio n(){var t=this.state.closedCaptionOptions.enabled?this.state.closedCaptionOptions.language:"",n=this.state.closedCaptionOptions.enabled?"showing":"disabled";this.mb.publish(e.EVENTS.SET_CLOSED_CAPTIONS_LANGUAGE,t,{mode:n})},toggleClosedCaptionScreen:function(){this.state.screenToShow==r.SCREEN.CLOSEDCAPTION_SCREEN?this.closeScreen():(this.state.playerState==r.STATE.PLAYING&&this.mb.publish(e.EVENTS.PAUSE),setTimeout(function(){this.state.screenToShow=r.SCREEN.CLOSEDCAPTION_SCREEN,this.renderSkin()}.bind(this),1))},closeScreen:function(){this.state.pauseAnimationDisabled=!0,this.state.playerState==r.STATE.PAUSE?this.state.screenToShow=r.SCREEN.PAUSE_SCREEN:this.state.playerState==r.STATE.END&&(this.state.screenToShow=r.SCREEN.END_SCREEN),this.renderSkin()},onClosedCaptionLanguageChange:function(e){this.state.closedCaptionOptions.language=e,this.setClosedCaptionsLanguage(),this.renderSkin()},toggleClosedCaptionEnabled:function(){this.state.closedCaptionOptions.enabled= !this.state.closedCaptionOptions.enabled,this.setClosedCaptionsLanguage(),this.renderSkin()},upNextDismissButtonClicked:function(){this.state.upNextInfo.countDownCancelled=!0,this.state.upNextInfo.showing=!1,this.renderSkin()},toggleMoreOptionsScreen:function(e){this.state.screenToShow==r.SCREEN.MORE_OPTIONS_SCREEN?this.closeMoreOptionsScreen():this.displayMoreOptionsScreen(e)},closeMoreOptionsScreen:function(){this.state.pauseAnimationDisabled=!0,this.state.screenToShow=r.SCREEN.PAUSE_SCREEN,this.state.playerState=r.STATE.PAUSE,this.state.moreOptionsItems=null,this.renderSkin()},displayMoreOptionsScreen:function(t){this.mb.publish(e.EVENTS.PAUSE),this.state.moreOptionsItems=t,setTimeout(function(){this.state.screenToShow=r.SCREEN.MORE_OPTIONS_SCREEN,this.renderSkin()}.bind(this),1)},enablePauseAnimation:function(){this.state.pauseAnimationDisabled=!1},beginSeeking:function(){this.state.seeking=!0},endSeeking:function(){this.state.seeking=!1},updateSeekingPlayhead:function(e){e=Math .min(Math.max(0,e),this.skin.state.duration),this.skin.updatePlayhead(e,this.skin.state.duration,this.skin.state.buffered)},hideVolumeSliderBar:function(){this.state.volumeState.volumeSliderVisible=!1,this.renderSkin()},showVolumeSliderBar:function(){this.state.volumeState.volumeSliderVisible=!0,this.renderSkin()},startHideControlBarTimer:function(){if(1==this.skin.props.skinConfig.controlBar.autoHide){this.cancelTimer();var e=setTimeout(function(){this.state.controlBarVisible===!0&&this.hideControlBar()}.bind(this),3e3);this.state.timer=e}},showControlBar:function(){this.state.controlBarVisible=!0},hideControlBar:function(){this.state.controlBarVisible=!1,i.isAndroid()&&this.hideVolumeSliderBar()},cancelTimer:function(){null!==this.state.timer&&(clearTimeout(this.state.timer),this.state.timer=null)},updateAspectRatio:function(){this.skin&&this.skin.props.skinConfig.responsive.aspectRatio&&"auto"!=this.skin.props.skinConfig.responsive.aspectRa tio&&(this.state.mainVideoAspectRatio=this.skin.props.skinConfig.responsive.aspectRatio,this.setAspectRatio())},calculateAspectRatio:function(e,t){var n=(t/e*100).toFixed(2);return n},setAspectRatio:function(){this.state.mainVideoAspectRatio>0&&this.state.mainVideoAspectRatio=e[n].minWidth:e[n].minWidth&&e[n].maxWidth?t.classes[e[n].name]=t.ids[e[n].id]=this.state.componentWidth>=e[n].minWidth&&this.state.componentWidth-1,"action-icon-bottom":this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("bottom")>-1,"action-icon-left":this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("left")>-1,"action-icon-right":this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("right")>-1,hidden:!this.props.skinConfig.pauseScreen.showPauseIcon,"icon-hidden":this.props.playerState!=i.STATE.PAUSE})),t=null;this.props.skinConfig.adScreen.showAdMarquee&&this.props.controller.state.showAd Marquee&&(t=n.createElement(r,n.__spread({},this.props)));var o=null;return this.props.skinConfig.adScreen.showControlBar&&(o=this.getPlaybackControlItems()),n.createElement("div",{className:"state-screen adScreen",ref:"adScreen",onMouseOver:this.showControlBar,onMouseOut:this.hideControlBar,onMouseMove:this.handlePlayerMouseMove,onMouseUp:this.handleClick},n.createElement("a",{className:e},n.createElement(u,n.__spread({},this.props,{icon:"pause"}))),n.createElement("div",{className:"adPanel",ref:"adPanel",onClick:this.handlePlayerClicked,onTouchEnd:this.handleTouchEnd},t),n.createElement("div",null,o))}});t.exports=d},{"../components/adPanel":3,"../components/controlBar":6,"../components/icon":10,"../components/scrubberBar":12,"../components/utils":17,"../constants/constants":20,"../mixins/resizeMixin":24,classnames:37,react:196}],27:[function(e,t){var n=e("react"),i=e("../components/closedCaptionPanel"),r=e("../components/closeButton"),o=e("../mixins/accessibilityM ixin"),a=n.createClass({displayName:"ClosedCaptionScreen",mixins:[o],handleClose:function(){this.props.controller.toggleClosedCaptionScreen()},render:function(){return n.createElement("div",{className:"state-screen closedCaptionsScreen"},n.createElement(i,n.__spread({},this.props,{closedCaptionOptions:this.props.closedCaptionOptions,languagesPerPage:{xs:1,sm:4,md:4,lg:15}})),n.createElement(r,n.__spread({},this.props,{closeAction:this.handleClose})))}});a.propTypes={skinConfig:n.PropTypes.shape({icons:n.PropTypes.shape({dismiss:n.PropTypes.shape({fontStyleClass:n.PropTypes.string})})})},a.defaultProps={skinConfig:{icons:{dismiss:{fontStyleClass:"icon icon-close"}}},controller:{toggleClosedCaptionScreen:function(){},state:{accessibilityControlsEnabled:!0}}},t.exports=a},{"../components/closeButton":4,"../components/closedCaptionPanel":5,"../mixins/accessibilityMixin":22,react:196}],28:[function(e,t){var n=e("react"),i=e("../constants/constants"),r=e("../components/discoveryPanel"),o= e("../components/closeButton"),a=e("classnames"),s=e("../mixins/accessibilityMixin"),l=n.createClass({displayName:"DiscoveryScreen",mixins:[s],handleClose:function(){this.props.controller.toggleDiscoveryScreen()},render:function(){var e=a({"promo-style":!0,"invisible hidden":this.props.playerState!==i.STATE.END});return n.createElement("div",{className:"discoveryScreen"},n.createElement("div",{className:e}),n.createElement(r,n.__spread({},this.props,{videosPerPage:{xs:2,sm:4,md:6,lg:8}})),n.createElement(o,n.__spread({},this.props,{closeAction:this.handleClose})))}});l.propTypes={skinConfig:n.PropTypes.shape({icons:n.PropTypes.shape({dismiss:n.PropTypes.shape({fontStyleClass:n.PropTypes.string})})})},l.defaultProps={skinConfig:{icons:{dismiss:{fontStyleClass:"icon icon-close"}}},controller:{toggleDiscoveryScreen:function(){},state:{accessibilityControlsEnabled:!0}}},t.exports=l},{"../components/closeButton":4,"../components/discoveryPanel":9,"../constants/constants":20,"../mixins/ac cessibilityMixin":22,classnames:37,react:196}],29:[function(e,t){var n=e("react"),i=e("classnames"),r=e("../components/controlBar"),o=(e("../mixins/resizeMixin"),e("../components/icon")),a=e("../components/scrubberBar"),s=n.createClass({displayName:"EndScreen",getInitialState:function(){return{controlBarVisible:!0}},handleClick:function(e){e.preventDefault(),this.props.controller.state.accessibilityControlsEnabled=!0,this.props.controller.togglePlayPause()},render:function(){var e=({color:this.props.skinConfig.endScreen.replayIconStyle.color,opacity:this.props.skinConfig.endScreen.replayIconStyle.opacity,fontFamily:this.props.skinConfig.icons.replay.fontFamilyName},i({"action-icon":!0,hidden:!this.props.skinConfig.endScreen.showReplayButton}));return n.createElement("div",{className:"state-screen endScreen"},n.createElement("div",{className:"underlay-gradient"}),n.createElement("a",{className:"state-screen-selectable",onClick:this.handleClick}),n.createElement("a",{className:e,onCli ck:this.handleClick},n.createElement(o,n.__spread({},this.props,{icon:"replay"}))),n.createElement(a,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible})),n.createElement(r,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible,playerState:this.props.playerState,authorization:this.props.authorization})))}});t.exports=s},{"../components/controlBar":6,"../components/icon":10,"../components/scrubberBar":12,"../mixins/resizeMixin":24,classnames:37,react:196}],30:[function(e,t){var n=e("react"),i=e("classnames"),r=e("../constants/constants"),o=e("../components/utils"),a=e("../mixins/accessibilityMixin"),s=n.createClass({displayName:"ErrorScreen",mixins:[a],render:function(){var e,t,a;r.ERROR_MESSAGE.hasOwnProperty(this.props.errorCode.code)?(e=o.getLocalizedString(this.props.language,r.ERROR_MESSAGE[this.props.errorCode.code].title,this.props.localizableStrings),t=o.getLocalizedString(this.props.language,r.ERROR_MESSAGE[this.props.errorCode.code].d escription,this.props.localizableStrings),a=o.getLocalizedString(this.props.language,r.SKIN_TEXT.ERROR_ACTION,this.props.localizableStrings)):(t=o.getLocalizedString(this.props.language,r.SKIN_TEXT.UNKNOWN_ERROR,this.props.localizableStrings),e=null,a=null);var s=i({"error-content":!0,"center-block":!0});return n.createElement("div",{className:"state-screen errorScreen"},n.createElement("div",{className:s},n.createElement("div",{className:"error-title text-uppercase"},e),n.createElement("div",{className:"error-description"},t),n.createElement("div",{className:"error-action text-uppercase"},a)))}});s.defaultProps={controller:{state:{accessibilityControlsEnabled:!0}}},t.exports=s},{"../components/utils":17,"../constants/constants":20,"../mixins/accessibilityMixin":22,classnames:37,react:196}],31:[function(e,t){var n=e("react"),i=e("react-dom"),r=e("../components/moreOptionsPanel"),o=e("../components/closeButton"),a=e("../mixins/accessibilityMixin"),s=n.createClass({displayName:"MoreOp tionsScreen",mixins:[a],getInitialState:function(){return{controlBarWidth:0}},componentDidMount:function(){this.setState({controlBarWidth:i.findDOMNode(this).clientWidth})},handleClose:function(){this.props.controller.closeScreen(); },render:function(){return n.createElement("div",{className:"state-screen MoreOptionsScreen"},n.createElement(r,n.__spread({},this.props,{controlBarWidth:this.state.controlBarWidth})),n.createElement(o,n.__spread({},this.props,{closeAction:this.handleClose})))}});s.defaultProps={skinConfig:{icons:{dismiss:{fontStyleClass:"icon icon-close"}}},controller:{closeScreen:function(){},state:{accessibilityControlsEnabled:!0}}},t.exports=s},{"../components/closeButton":4,"../components/moreOptionsPanel":11,"../mixins/accessibilityMixin":22,react:196,"react-dom":39}],32:[function(e,t){var n=e("react"),i=e("react-dom"),r=e("classnames"),o=e("../components/controlBar"),a=e("../components/scrubberBar"),s=e("../components/adOverlay"),l=e("../components/upNextPanel"),c =e("../mixins/resizeMixin"),u=e("../components/icon"),d=e("../components/utils"),p=n.createClass({displayName:"PauseScreen",mixins:[c],getInitialState:function(){return{descriptionText:this.props.contentTree.description,controlBarVisible:!0,animate:!1}},componentDidMount:function(){this.handleResize(),this.setState({animate:!0})},componentWillUnmount:function(){this.props.controller.enablePauseAnimation()},handleResize:function(){this.setState({descriptionText:d.truncateTextToWidth(i.findDOMNode(this.refs.description),this.props.contentTree.description)})},handleClick:function(e){e.preventDefault(),this.props.controller.togglePlayPause(),this.props.controller.state.accessibilityControlsEnabled=!0},render:function(){var e={color:this.props.skinConfig.startScreen.titleFont.color},t={color:this.props.skinConfig.startScreen.descriptionFont.color},i=({color:this.props.skinConfig.pauseScreen.PauseIconStyle.color,opacity:this.props.skinConfig.pauseScreen.PauseIconStyle.opacity,fontFamily:t his.props.skinConfig.icons.pause.fontFamilyName},r({"fading-underlay":!this.props.pauseAnimationDisabled,"fading-underlay-active":this.props.pauseAnimationDisabled,"animate-fade":this.state.animate&&!this.props.pauseAnimationDisabled})),c=r({"state-screen-info":!0,"info-panel-top":this.props.skinConfig.pauseScreen.infoPanelPosition.toLowerCase().indexOf("top")>-1,"info-panel-bottom":this.props.skinConfig.pauseScreen.infoPanelPosition.toLowerCase().indexOf("bottom")>-1,"info-panel-left":this.props.skinConfig.pauseScreen.infoPanelPosition.toLowerCase().indexOf("left")>-1,"info-panel-right":this.props.skinConfig.pauseScreen.infoPanelPosition.toLowerCase().indexOf("right")>-1}),d=r({"state-screen-title":!0,"text-truncate":!0,"text-capitalize":!0,"pull-right":this.props.skinConfig.pauseScreen.infoPanelPosition.toLowerCase().indexOf("right")>-1}),p=r({"state-screen-description":!0,"pull-right":this.props.skinConfig.pauseScreen.infoPanelPosition.toLowerCase().indexOf ("right")>-1}),h=r({"action-icon-pause":!this.props.pauseAnimationDisabled,"action-icon":this.props.pauseAnimationDisabled,"animate-pause":this.state.animate&&!this.props.pauseAnimationDisabled,"action-icon-top":this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("top")>-1,"action-icon-bottom":this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("bottom")>-1,"action-icon-left":this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("left")>-1,"action-icon-right":this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("right")>-1,hidden:!this.props.skinConfig.pauseScreen.showPauseIcon||this.props.pauseAnimationDisabled}),f=n.createElement("div",{className:d,style:e},this.props.contentTree.title),m=n.createElement("div",{className:p,ref:"description",style:t},this.state.descriptionText);return n.createElement("div",{className:"state-screen pauseScreen"},n.createElement("div",{classNam e:i}),n.createElement("div",{className:c},this.props.skinConfig.startScreen.showTitle?f:null,this.props.skinConfig.startScreen.showDescription?m:null),n.createElement("a",{className:"state-screen-selectable",onClick:this.handleClick}),n.createElement("a",{className:h,onClick:this.handleClick},n.createElement(u,n.__spread({},this.props,{icon:"pause"}))),n.createElement(s,n.__spread({},this.props,{overlay:this.props.controller.state.adOverlayUrl,showOverlay:this.props.controller.state.showAdOverlay,showOverlayCloseButton:this.props.controller.state.showAdOverlayCloseButton,controlBarVisible:this.state.controlBarVisible})),n.createElement(a,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible})),n.createElement(o,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible,playerState:this.state.playerState,authorization:this.props.authorization})),this.props.controller.state.upNextInfo.showing&&this.props.controller.state.upNextInfo.upNextData?n .createElement(l,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible,currentPlayhead:this.props.currentPlayhead})):null)}});t.exports=p},{"../components/adOverlay":2,"../components/controlBar":6,"../components/icon":10,"../components/scrubberBar":12,"../components/upNextPanel":16,"../components/utils":17,"../mixins/resizeMixin":24,classnames:37,react:196,"react-dom":39}],33:[function(e,t){var n=e("react"),i=e("react-dom"),r=e("../components/controlBar"),o=e("../components/scrubberBar"),a=e("../components/adOverlay"),s=e("../components/upNextPanel"),l=e("../components/spinner"),c=e("../mixins/resizeMixin"),u=n.createClass({displayName:"PlayingScreen",mixins:[c],getInitialState:function(){return this.isMobile=this.props.controller.state.isMobile,{controlBarVisible:!0,timer:null}},componentDidMount:function(){(this.isMobile||this.props.fullscreen)&&this.props.controller.startHideControlBarTimer()},componentWillUpdate:function(e){e&&(0==e.controller. state.controlBarVisible&&1==this.state.controlBarVisible&&this.hideControlBar(),!this.props.fullscreen&&e.fullscreen&&this.props.controller.startHideControlBarTimer(),this.props.fullscreen&&!e.fullscreen&&this.isMobile&&(this.setState({controlBarVisible:!0}),this.props.controller.showControlBar(),this.props.controller.startHideControlBarTimer()))},componentWillUnmount:function(){this.props.controller.cancelTimer()},handleResize:function(){this.isMounted()&&this.props.controller.startHideControlBarTimer()},handlePlayerMouseUp:function(e){this.isMobile||(e.stopPropagation(),e.cancelBubble=!0,this.props.controller.togglePlayPause(),this.props.controller.state.accessibilityControlsEnabled=!0)},handleTouchEnd:function(e){e.preventDefault(),this.state.controlBarVisible?this.props.controller.togglePlayPause():(this.showControlBar(e),this.props.controller.startHideControlBarTimer())},handlePlayerMouseMove:function(){!this.isMob ile&&this.props.fullscreen&&(this.showControlBar(),this.props.controller.startHideControlBarTimer())},showControlBar:function(e){this.isMobile&&"touchend"!=e.type||(this.setState({controlBarVisible:!0}),this.props.controller.showControlBar(),i.findDOMNode(this.refs.PlayingScreen).style.cursor="auto")},hideControlBar:function(e){1!=this.props.controlBarAutoHide||this.isMobile&&e||(this.setState({controlBarVisible:!1}),this.props.controller.hideControlBar(),i.findDOMNode(this.refs.PlayingScreen).style.cursor="none")},render:function(){var e=null;return this.props.controller.state.adOverlayUrl&&this.props.controller.state.showAdOverlay&&(e=n.createElement(a,n.__spread({},this.props,{overlay:this.props.controller.state.adOverlayUrl,showOverlay:this.props.controller.state.showAdOverlay,showOverlayCloseButton:this.props.controller.state.showAdOverlayCloseButton,controlBarVisible:this.state.controlBarVisible}))),n.createElement("div",{classNa me:"state-screen playingScreen",ref:"PlayingScreen",onMouseOver:this.showControlBar,onMouseOut:this.hideControlBar,onMouseMove:this.handlePlayerMouseMove},this.props.controller.state.buffering?n.createElement(l,{loadingImage:this.props.skinConfig.general.loadingImage.imageResource.url}):null,n.createElement("div",{className:"default-screen"},n.createElement("div",{className:"state-screen-selectable",onMouseUp:this.handlePlayerMouseUp,onTouchEnd:this.handleTouchEnd}),e,n.createElement(o,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible})),n.createElement(r,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible,playerState:this.props.playerState,authorization:this.props.authorization}))),this.props.controller.state.upNextInfo.showing&&this.props.controller.state.upNextInfo.upNextData?n.createElement(s,n.__spread({},this.props,{controlBarVisible:this.state.controlBarVisible,currentPlayhead:this.props.currentPlayhead})):null)}});t.exports =u},{"../components/adOverlay":2,"../components/controlBar":6,"../components/scrubberBar":12,"../components/spinner":15,"../components/upNextPanel":16,"../mixins/resizeMixin":24,react:196,"react-dom":39}],34:[function(e,t){var n=e("react"),i=e("../components/sharePanel"),r=e("../components/closeButton"),o=e("../mixins/accessibilityMixin"),a=n.createClass({displayName:"ShareScreen",mixins:[o],handleClose:function(){this.props.controller.closeScreen()},render:function(){return n.createElement("div",{className:"share-screen"},n.createElement(i,n.__spread({},this.props)),n.createElement(r,n.__spread({},this.props,{closeAction:this.handleClose})))}});a.propTypes={skinConfig:n.PropTypes.shape({icons:n.PropTypes.objectOf(n.PropTypes.object)})},a.defaultProps={skinConfig:{icons:{dismiss:{fontStyleClass:"icon icon-close"}}},controller:{closeScreen:function(){},state:{accessibilityControlsEnabled:!0}}},t.exports=a},{"../components/closeButton":4,"../components/sharePanel":13,"../mixins/access ibilityMixin":22,react:196}],35:[function(e,t){var n=e("react"),i=e("react-dom"),r=e("classnames"),o=e("../constants/constants"),a=e("../components/spinner"),s=e("../components/icon"),l=e("../mixins/resizeMixin"),c=e("../components/utils"),u=n.createClass({displayName:"StartScreen",mixins:[l],getInitialState:function(){return{playButtonClicked:!1,descriptionText:this.props.contentTree.description}},componentDidMount:function(){this.handleResize()},handleResize:function(){this.setState({descriptionText:c.truncateTextToWidth(i.findDOMNode(this.refs.description),this.props.contentTree.description)})},handleClick:function(e){e.preventDefault(),this.props.controller.togglePlayPause(),this.props.controller.state.accessibilityControlsEnabled=!0,this.setState({playButtonClicked:!0})},render:function(){var e={color:this.props.skinConfig.startScreen.titleFont.color},t={color:this.props.skinConfig.startScreen.descriptionFont.color},i={color:this.props.skinConfig.startScreen.playIconStyle.color ,opacity:this.props.skinConfig.startScreen.playIconStyle.opacity};i.fontFamily=this.props.controller.state.playerState==o.STATE.END?this.props.skinConfig.icons.replay.fontFamilyName:this.props.skinConfig.icons.play.fontFamilyName;var l=this.props.skinConfig.startScreen.showPromo?this.props.contentTree.promo_image:"",c={backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%), url('"+l+"')"},u=r({"state-screen-poster":"small"!=this.props.skinConfig.startScreen.promoImageSize,"state-screen-poster-small":"small"==this.props.skinConfig.startScreen.promoImageSize}),d=r({"state-screen-info":!0,"info-panel-top":this.props.skinConfig.startScreen.infoPanelPosition.toLowerCase().indexOf("top")>-1,"info-panel-bottom":this.props.skinConfig.startScreen.infoPanelPosition.toLowerCase().indexOf("bottom")>-1,"info-panel-left":this.props.skinConfig.startScreen.infoPanelPosition.toLowerCase().indexOf("left")>-1,"info-panel-right":this.props.skinConfig.startScreen. infoPanelPosition.toLowerCase().indexOf("right")>-1}),p=r({"state-screen-title":!0,"text-truncate":!0,"text-capitalize":!0,"pull-right":this.props.skinConfig.startScreen.infoPanelPosition.toLowerCase().indexOf("right")>-1}),h=r({"state-screen-description":!0,"pull-right":this.props.skinConfig.startScreen.infoPanelPosition.toLowerCase().indexOf("right")>-1}),f=r({"action-icon":!0,"action-icon-top":this.props.skinConfig.startScreen.playButtonPosition.toLowerCase().indexOf("top")>-1,"action-icon-bottom":this.props.skinConfig.startScreen.playButtonPosition.toLowerCase().indexOf("bottom")>-1,"action-icon-left":this.props.skinConfig.startScreen.playButtonPosition.toLowerCase().indexOf("left")>-1,"action-icon-right":this.props.skinConfig.startScreen.playButtonPosition.toLowerCase().indexOf("right")>-1,hidden:!this.props.skinConfig.startScreen.showPlayButton}),m=n.createElement("div",{className:p,style:e},this.props.contentTree.title),E=this.props.controller.state.playe rState==o.STATE.END?"replay":"play",g=n.createElement("div",{className:h,ref:"description",style:t},this.state.descriptionText),v=n.createElement("a",{className:f,onClick:this.handleClick},n.createElement(s,n.__spread({},this.props,{icon:E})));return n.createElement("div",{className:"state-screen startScreen"},n.createElement("div",{className:u,style:c},n.createElement("a",{className:"state-screen-selectable",onClick:this.handleClick})),n.createElement("div",{className:d},this.props.skinConfig.startScreen.showTitle?m:null,this.props.skinConfig.startScreen.showDescription?g:null),this.state.playButtonClicked&&this.props.controller.state.playerState==o.STATE.START||this.props.controller.state.buffering?n.createElement(a,{loadingImage:this.props.skinConfig.general.loadingImage.imageResource.url}):v)}});u.propTypes={skinConfig:n.PropTypes.shape({startScreen:n.PropTypes.shape({playIconStyle:n.PropTypes.shape({color:n.PropTypes.string})}),icons:n.PropTypes.objectOf(n.PropTypes.obj ect)})},u.defaultProps={skinConfig:{general:{loadingImage:{imageResource:{url:null}}},startScreen:{titleFont:{},descriptionFont:{},playIconStyle:{color:"white"},infoPanelPosition:"topLeft",playButtonPosition:"center",showPlayButton:!0,showPromo:!0,showTitle:!0,showDescription:!0,promoImageSize:"default"},icons:{play:{fontStyleClass:"icon icon-play"},replay:{fontStyleClass:"icon icon-upnext-replay"}}},controller:{togglePlayPause:function(){},state:{playerState:"start",buffering:!1}},contentTree:{promo_image:"",description:"",title:""}},t.exports=u},{"../components/icon":10,"../components/spinner":15,"../components/utils":17,"../constants/constants":20,"../mixins/resizeMixin":24,classnames:37,react:196,"react-dom":39}],36:[function(e,t){var n=e("react"),i=e("../constants/constants"),r=e("../components/videoQualityPanel"),o=e("../components/closeButton"),a=e("../mixins/accessibilityMixin"),s=e("react-scrollbar/dist/no-css"),l=e("../components/icon"),c=n.createClass({displayName:"VideoQ ualityScreen",mixins:[a],handleClose:function(){this.props.controller.toggleScreen(i.SCREEN.VIDEO_QUALITY_SCREEN)},render:function(){return n.createElement("div",{className:"state-screen quality-screen"},n.createElement("div",{className:"quality-panel-title"},"Video Quality",n.createElement(l,n.__spread({},this.props,{icon:"quality"}))),n.createElement(s,{className:"quality-screen-content"},n.createElement(r,n.__spread({},this.props))),n.createElement(o,n.__spread({},this.props,{closeAction:this.handleClose})))}});c.propTypes={skinConfig:n.PropTypes.shape({icons:n.PropTypes.shape({dismiss:n.PropTypes.shape({fontStyleClass:n.PropTypes.string})})})},c.defaultProps={skinConfig:{icons:{dismiss:{fontStyleClass:"icon icon-close"}}},controller:{toggleScreen:function(){},state:{accessibilityControlsEnabled:!0}}},t.exports=c},{"../components/closeButton":4,"../components/icon":10,"../components/videoQualityPanel":18,"../constants/constants":20,"../mixins/accessibilityMixin":22,react:196,"rea ct-scrollbar/dist/no-css":40}],37:[function(e,t){!function(){"use strict";function e(){for(var t=[],i=0;i=e||e>t?s(b,h):y=setTimeout(l,e)}function c(){return(y&&b||h&&T)&&(f=e.apply(E,p)),i(),f}function u(){s(T,y)}function d(){if(p=arguments,m=v(),E=this,b=T&&(y||!S),A===!1)var n=S&&!y;else{_||h||S||(_=m);var i=A-(m-_),r=(0>=i||i>A)&&(S||h);r?(h&&(h=clearTimeout(h)),_=m,f=e.apply(E,p)):h||(h=setTimeout(u,i))}return r&&y?y=clearTimeout(y):y||t===A||(y=setTimeout(l,t)),n&&(r=!0,f=e.apply(E,p)),!r||y||h||(p=E=void 0),f}var p,h,f,m,E,y,b,_=0,S=!1,A=!1,T=!0;if("function"!=typeof e)throw new TypeError(a);return t=o(t)||0,r(n)&&(S=!!n.leading,A="maxWait"in n&&g(o(n.maxWait)||0,t),T="trailing"in n?!!n.trailing:T),d.cancel=i,d.flush=c,d}function i(e){var t=r(e)?E.call(e):"";return t==l||t==c}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){if(r(e)){var t= i(e.valueOf)?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=p.test(e);return n||h.test(e)?f(e.slice(2),n?2:8):d.test(e)?s:+e}var a="Expected a function",s=NaN,l="[object Function]",c="[object GeneratorFunction]",u=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt,m=Object.prototype,E=m.toString,g=Math.max,v=Date.now;t.exports=n},{}],39:[function(e,t){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":75}],40:[function(e,t,n){!function(i,r){"object"==typeof n&&"object"==typeof t?t.exports=r(e("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof n?n.ScrollArea=r(e("react")):i.ScrollArea=r(i.React)}(this,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";v ar i=n(2)["default"];Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),o=i(r);t["default"]=o["default"],e.exports=t["default"]},function(e){var t=Object;e.exports={create:t.create,getProto:t.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:t.getOwnPropertyDescriptor,setDesc:t.defineProperty,setDescs:t.defineProperties,getKeys:t.keys,getNames:t.getOwnPropertyNames,getSymbols:t.getOwnPropertySymbols,each:[].forEach}},function(e,t){"use strict";t["default"]=function(e){return e&&e.__esModule?e:{"default":e}},t.__esModule=!0},function(e){var t=e.exports={version:"1.2.1"};"number"==typeof __e&&(__e=t)},function(t){t.exports=e},function(e,t,n){var i=n(38),r=n(3),o="prototype",a=function(e,t){return function(){return e.apply(t,arguments)}},s=function(e,t,n){var l,c,u,d,p=e&s.G,h=e&s.P,f=p?i:e&s.S?i[t]:(i[t]||{})[o],m=p?r:r[t]||(r[t]={});p&&(n=t);for(l in n)c=!(e&s.F)&&f&&l in f,c&&l in m||(u=c?f[l]:n[l],p&& amp;"function"!=typeof f[l]?d=n[l]:e&s.B&&c?d=a(u,i):e&s.W&&f[l]==u?!function(e){d=function(t){return this instanceof e?new e(t):e(t)},d[o]=e[o]}(u):d=h&&"function"==typeof u?a(Function.call,u):u,m[l]=d,h&&((m[o]||(m[o]={}))[l]=u))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},function(e,t,n){"use strict";function i(e){return p?d["default"].findDOMNode(e):e}function r(){h||p||(h=!0,console.error("With React 0.14 and later versions, you no longer need to wrap child into a function."))}function o(){!h&&p&&(h=!0,console.error("With React 0.13, you need to wrap child into a function."))}function a(e){return 0>e?0:e}function s(e){var t=arguments.lengtht.realHeight-t.containerHeight&&(e=t.realHeight-t.containerHeight),0>e&&(e=0),e}},{key:"normalizeLeftPosition",value:function(e,t){return e>t.realWidth-t.containerWidth?e=t.realWidth-t.containerWidth:0>e&&(e=0),e}},{key:"computeSizes",value:fun ction(){var e=this.content.offsetHeight,t=this.wrapper.offsetHeight,n=this.content.offsetWidth,i=this.wrapper.offsetWidth;return{realHeight:e,containerHeight:t,realWidth:n,containerWidth:i}}},{key:"setSizesToState",value:function(){var e=this.computeSizes();(e.realHeight!==this.state.realHeight||e.realWidth!==this.state.realWidth)&&this.setStateFromEvent(this.getModifiedPositionsIfNeeded(e))}},{key:"scrollTop",value:function(){this.scrollYTo(0)}},{key:"scrollBottom",value:function(){this.scrollYTo(this.state.realHeight-this.state.containerHeight)}},{key:"scrollLeft",value:function(){this.scrollXTo(0)}},{key:"scrollRight",value:function(){this.scrollXTo(this.state.realWidth-this.state.containerWidth)}},{key:"scrollYTo",value:function(e){if(this.canScrollY()){var t=this.normalizeTopPosition(e,this.computeSizes());this.setStateFromEvent({topPosition:t},g.api)}}},{key:"scrollXTo",value:function(e){if(this.canScrollX()){var t=this.normalizeLeftPosition(e,this.computeSizes());this .setStateFromEvent({leftPosition:t},g.api)}}},{key:"canScrollY",value:function(){var e=arguments.lengthe.containerHeight;return t&&this.props.vertical}},{key:"canScrollX",value:function(){var e=arguments.lengthe.containerWidth;return t&&this.props.horizontal}},{key:"getModifiedPositionsIfNeeded",value:function(e){var t=e.realHeight-e.containerHeight;this.state.topPosition>=t&&(e.topPosition=this.canScrollY(e)?h.positiveOrZero(t):0);var n=e.realWidth-e.containerWidth;return this.state.leftPosition>=n&&(e.leftPosition=this.canScrollX(e)?h.positiveOrZero(n):0),e}}]),t}(u["default"].Component);t["default"]=v,v.childContextTypes={scrollArea:u["default"].PropTypes.object},v.propTypes={className:u["default"].PropTypes.string,style:u["default"].PropTypes.object,speed:u["default"].PropTypes.number,contentClassName:u["default"].PropTypes.string,contentStyle:u["default"].PropTypes.object,vertical:u["default"].PropTypes.bool,verticalContainerStyle:u["defaul t"].PropTypes.object,verticalScrollbarStyle:u["default"].PropTypes.object,horizontal:u["default"].PropTypes.bool,horizontalContainerStyle:u["default"].PropTypes.object,horizontalScrollbarStyle:u["default"].PropTypes.object,onScroll:u["default"].PropTypes.func,contentWindow:u["default"].PropTypes.any,ownerDocument:u["default"].PropTypes.any,smoothScrolling:u["default"].PropTypes.bool,minScrollSize:u["default"].PropTypes.number,swapWheelAxes:u["default"].PropTypes.bool},v.defaultProps={speed:1,vertical:!0,horizontal:!0,smoothScrolling:!1,swapWheelAxes:!1,contentWindow:"object"==typeof window?window:void 0,ownerDocument:"object"==typeof document?document:void 0 },e.exports=t["default"]},function(e,t,n){"use strict";var i=n(10)["default"],r=n(11)["default"],o=n(8)["default"],a=n(7)["default"],s=n(9)["default"],l=n(2)["default"];Object.defineProperty(t,"__esModule",{value:!0});var c=n(4),u=l(c),d=n(17),p=n(6),h=function(e){function t(e){a(this,t),i(Object.getPrototypeOf(t.prototype),"con structor",this).call(this,e);var n=this.calculateState(e);this.state={position:n.position,scrollSize:n.scrollSize,isDragging:!1,lastClientPosition:0},this.bindedHandleMouseMove="vertical"===e.type?this.handleMouseMoveForVertical.bind(this):this.handleMouseMoveForHorizontal.bind(this),this.bindedHandleMouseUp=this.handleMouseUp.bind(this)}return r(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.ownerDocument&&(this.props.ownerDocument.addEventListener("mousemove",this.bindedHandleMouseMove),this.props.ownerDocument.addEventListener("mouseup",this.bindedHandleMouseUp))}},{key:"componentWillReceiveProps",value:function(e){this.setState(this.calculateState(e))}},{key:"componentWillUnmount",value:function(){this.props.ownerDocument&&(this.props.ownerDocument.removeEventListener("mousemove",this.bindedHandleMouseMove),this.props.ownerDocument.removeEventListener("mouseup",this.bindedHandleMouseUp))}},{key:"calculateFractionalPosition",value:function(e,t,n){v ar i=e-t;return 1-(i-n)/i}},{key:"calculateState",value:function(e){var t=this.calculateFractionalPosition(e.realSize,e.containerSize,e.position),n=e.containerSize*e.containerSize/e.realSize,i=ns;)for(var l,c=r(arguments[s++]),u=o(c),d=u.length,p=0;d>p;)a(c,l=u[p++])&&(t[l]=c[l]);return t}:Object.assign},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t,n){var i=n(32);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var i=n(1);e.exports=function(e){var t=i.getKeys(e),n=i.getSymbols;if(n)for(var r,o=n(e),a=i.isEnum,s=0;o.length>s;)a.call(e,r=o[s++])&&t.push(r);return t}},function(e){var t="undefined",n=e.exports=typeof window!=t&&window.Math==Math?window:typeof self!=t&&self. Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,t,n){e.exports=function(e,t){var i=n(5),r=(n(3).Object||{})[e]||Object[e],o={};o[e]=t(r),i(i.S+i.F*n(13)(function(){r(1)}),"Object",o)}},function(e,t,n){var i=n(1).getDesc,r=n(15),o=n(33),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(36)(Function.call,i(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var i=n(14),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(5);i(i.S+i.F,"Object",{assign:n(34)})},function(e,t,n){var i=n(42);n(40)("getOwnPropertyDescriptor", function(e){return function(t,n){return e(i(t),n)}})},function(e,t,n){var i=n(5);i(i.S,"Object",{setPrototypeOf:n(41).set})},function(e,t,n){function i(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var i=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),i?e.style.lineHeight=i:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var o=e.nodeName,a=document.createElement(o);a.innerHTML=" ";var s=r(e,"font-size");a.style.fontSize=s;var l=document.body;l.appendChild(a);var c=a.offsetHeight;n=c,l.removeChild(a)}return n}var r=n(48);e.exports=i},function(e){var t=function(e,t,n){return n=window.getComputedStyle,(n?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]};e.exports=t},function(e,t,n){"use strict";function i(e){return e&&a mp;e.__esModule?e:{"default":e}}function r(){function e(){var t=f(),n=t-g;g=t,v+=n*s,v>r*u&&(v=0);for(var i=Math.ceil(v/r),o=0;o=v)m[o].nextState=c(r/1e3,d);else for(var y=0;i>y;y++){m[o].nextState=c(r/1e3,h);var b=[h,m[o].nextState];m[o].prevState=b[0],h=b[1]}}v-=i*r;for(var _=1+v/r,o=0;o1)for(var r=1;r<=12}function i(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function r(e){switch(e){case O.topCompositionStart:return R.compositionStart;case O.topCompositionEnd:return R.compositionEnd;case O.topCompositionUpdate:return R.compositionUpdate}}function o(e,t){return e===O.topKeyDown&&t.keyCode===b}function a(e,t){switch(e){case O.topKeyUp:return-1!==y.indexOf(t.keyCode);case O.topKeyDown:return t.keyCode!==b;case O.topKeyPress:case O.topMouseDown:case O.topBlur:return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function l(e,t,n,i,l){var c,u;if(_?c=r(e):D?a(e,i)&a mp;&(c=R.compositionEnd):o(e,i)&&(c=R.compositionStart),!c)return null;T&&(D||c!==R.compositionStart?c===R.compositionEnd&&D&&(u=D.getData()):D=m.getPooled(t));var d=E.getPooled(c,n,i,l);if(u)d.data=u;else{var p=s(i);null!==p&&(d.data=p)}return h.accumulateTwoPhaseDispatches(d),d}function c(e,t){switch(e){case O.topCompositionEnd:return s(t);case O.topKeyPress:var n=t.which;return n!==C?null:(I=!0,N);case O.topTextInput:var i=t.data;return i===N&&I?null:i;default:return null}}function u(e,t){if(D){if(e===O.topCompositionEnd||a(e,t)){var n=D.getData();return m.release(D),D=null,n}return null}switch(e){case O.topPaste:return null;case O.topKeyPress:return t.which&&!i(t)?String.fromCharCode(t.which):null;case O.topCompositionEnd:return T?null:t.data;default:return null}}function d(e,t,n,i,r){var o;if(o=A?c(e,i):u(e,i),!o)return null;var a=g.getPooled(R.beforeInput,n,i,r);return a.data=o,h.accumulateTwoPhaseDispatches(a),a}var p=e("./EventConstants"),h=e("./EventPropagators"),f=e("fbjs/lib/ExecutionEnvironment"),m=e("./FallbackCompositionState"),E=e("./SyntheticCompositionEvent"),g=e("./SyntheticInputEvent"),v=e("fbjs/lib/keyOf"),y=[9,13,27,32],b=229,_=f.canUseDOM&&"CompositionEvent"in window,S=null;f.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var A=f.canUseDOM&&"TextEvent"in window&&!S&&!n(),T=f.canUseDOM&&(!_||S&&S>8&&11>=S),C=32,N=String.fromCharCode(C),O=p.topLevelTypes,R={beforeInput:{phasedRegistrationNames:{bubbled:v({onBeforeInput:null}),captured:v({onBeforeInputCapture:null})},dependencies:[O.topCompositionEnd,O.topKeyPress,O.topTextInput,O.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:v({onCompositionEnd:null}),captured:v({onCompositionEndCapture:null})},dependencies:[O.topBlur,O.topCompositionEnd,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionStart:{phasedRegistrat ionNames:{bubbled:v({onCompositionStart:null}),captured:v({onCompositionStartCapture:null})},dependencies:[O.topBlur,O.topCompositionStart,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:v({onCompositionUpdate:null}),captured:v({onCompositionUpdateCapture:null})},dependencies:[O.topBlur,O.topCompositionUpdate,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]}},I=!1,D=null,w={eventTypes:R,extractEvents:function(e,t,n,i,r){return[l(e,t,n,i,r),d(e,t,n,i,r)]}};t.exports=w},{"./EventConstants":54,"./EventPropagators":58,"./FallbackCompositionState":59,"./SyntheticCompositionEvent":130,"./SyntheticInputEvent":134,"fbjs/lib/ExecutionEnvironment":170,"fbjs/lib/keyOf":188}],43:[function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fl exOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},r=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){r.forEach(function(t){i[n(t,e)]=i[e]})});var o={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,o utlineColor:!0}},a={isUnitlessNumber:i,shorthandPropertyExpansions:o};t.exports=a},{}],44:[function(e,t){"use strict";var n=e("./CSSProperty"),i=e("fbjs/lib/ExecutionEnvironment"),r=e("./ReactPerf"),o=(e("fbjs/lib/camelizeStyleName"),e("./dangerousStyleValue")),a=e("fbjs/lib/hyphenateStyleName"),s=e("fbjs/lib/memoizeStringOnly"),l=(e("fbjs/lib/warning"),s(function(e){return a(e)})),c=!1,u="cssFloat";if(i.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(p){c=!0}void 0===document.documentElement.style.cssFloat&&(u="styleFloat")}var h={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];null!=i&&(t+=l(n)+":",t+=o(n,i)+";")}return t||null},setValueForStyles:function(e,t){var i=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=o(r,t[r]);if("float"===r&&(r=u),a)i[r]=a;else{var s=c&&n.shorthandPropertyExpansions[r];if(s)for(var l in s)i[l]="";else i[r]=""}}}};r.measureMethods(h,"CSSPropertyO perations",{setValueForStyles:"setValueForStyles"}),t.exports=h},{"./CSSProperty":43,"./ReactPerf":111,"./dangerousStyleValue":145,"fbjs/lib/ExecutionEnvironment":170,"fbjs/lib/camelizeStyleName":172,"fbjs/lib/hyphenateStyleName":183,"fbjs/lib/memoizeStringOnly":190,"fbjs/lib/warning":195}],45:[function(e,t){"use strict";function n(){this._callbacks=null,this._contexts=null}var i=e("./PooledClass"),r=e("./Object.assign"),o=e("fbjs/lib/invariant");r(n.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?o(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n8));var k=!1;b.canUseDOM&&(k=T("input")&&(!("documentMode"in document)||document.documentMode>9));var L={get:function(){return P.get.call(this)},set:function(e){w=""+e,P.set.call(this,e)}},M={eventTypes:R,extractEvents: function(e,t,i,r,o){var a,c;if(n(t)?x?a=s:c=l:C(t)?k?a=p:(a=f,c=h):m(t)&&(a=E),a){var u=a(e,t,i);if(u){var d=S.getPooled(R.change,u,r,o);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}c&&c(e,t,i)}};t.exports=M},{"./EventConstants":54,"./EventPluginHub":55,"./EventPropagators":58,"./ReactUpdates":123,"./SyntheticEvent":132,"./getEventTarget":154,"./isEventSupported":159,"./isTextInputElement":160,"fbjs/lib/ExecutionEnvironment":170,"fbjs/lib/keyOf":188}],47:[function(e,t){"use strict";var n=0,i={createReactRootIndex:function(){return n++}};t.exports=i},{}],48:[function(e,t){"use strict";function n(e,t,n){var i=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,i)}var i=e("./Danger"),r=e("./ReactMultiChildUpdateTypes"),o=e("./ReactPerf"),a=e("./setInnerHTML"),s=e("./setTextContent"),l=e("fbjs/lib/invariant"),c={dangerouslyReplaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup,updateTextContent:s,processUpdates:function(e,t){for(var o,c= null,u=null,d=0;d<=1?void 0:i(!1),l.hasOwnProperty(d)){var m=l[d];f.attributeName=m}s.hasOwnProperty(d)&&(f.attributeNamespace=s[d]),c.hasOwnProperty(d)&&(f.propertyName=c[d]),u.hasOwnProperty(d)&&(f.mutationMethod=u[d]),a.properties[d]=f}}},o={},a={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;tt||e.hasOverloadedBooleanValue&&t===!1}var r=e("./DOMProperty"),o=e("./ReactPerf"),a=e("./quoteAttributeValueForBrowser"),s=(e("fbjs/lib/warning"),/^[a-zA-Z_][\w\.\-]*$/),l={},c={},u={createMarkupForID:function(e){return r.ID_ATTRIBUTE_NAME+"="+a(e)},setAttributeForID:function(e,t){e.setAttribute(r.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=r.properties.hasOwnProperty(e)?r.properties[e]:null;if(n){if(i(n,t))return"";var o=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?o+'=""':o+"="+a(t)}return r .isCustomAttribute(e)?null==t?"":e+"="+a(t):null},createMarkupForCustomAttribute:function(e,t){return n(e)&&null!=t?e+"="+a(t):""},setValueForProperty:function(e,t,n){var o=r.properties.hasOwnProperty(t)?r.properties[t]:null;if(o){var a=o.mutationMethod;if(a)a(e,n);else if(i(o,n))this.deleteValueForProperty(e,t);else if(o.mustUseAttribute){var s=o.attributeName,l=o.attributeNamespace;l?e.setAttributeNS(l,s,""+n):o.hasBooleanValue||o.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var c=o.propertyName;o.hasSideEffects&&""+e[c]==""+n||(e[c]=n)}}else r.isCustomAttribute(t)&&u.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,i){n(t)&&(null==i?e.removeAttribute(t):e.setAttribute(t,""+i))},deleteValueForProperty:function(e,t){var n=r.properties.hasOwnProperty(t)?r.properties[t]:null;if(n){var i=n.mutationMethod;if(i)i(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var o=n .propertyName,a=r.getDefaultValueForProperty(e.nodeName,o);n.hasSideEffects&&""+e[o]===a||(e[o]=a)}}else r.isCustomAttribute(t)&&e.removeAttribute(t)}};o.measureMethods(u,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),t.exports=u},{"./DOMProperty":49,"./ReactPerf":111,"./quoteAttributeValueForBrowser":162,"fbjs/lib/warning":195}],51:[function(e,t){"use strict";function n(e){return e.substring(1,e.indexOf(" "))}var i=e("fbjs/lib/ExecutionEnvironment"),r=e("fbjs/lib/createNodesFromMarkup"),o=e("fbjs/lib/emptyFunction"),a=e("fbjs/lib/getMarkupWrap"),s=e("fbjs/lib/invariant"),l=/^(<[^ \/>]+)/,c="data-danger-index",u={dangerouslyRenderMarkup:function(e){i.canUseDOM?void 0:s(!1);for(var t,u={},d=0;d-1?void 0:o(!1),!l.plugins[n]){t.extractEvents?void 0:o(!1),l.plugins[n]=t;var r=t.eventTypes;for(var c in r)i(r[c],t,c)?void 0:o(!1)}}}function i(e,t,n){l.eve ntNameDispatchConfigs.hasOwnProperty(n)?o(!1):void 0,l.eventNameDispatchConfigs[n]=e;var i=e.phasedRegistrationNames;if(i){for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];r(s,t,n)}return!0}return e.registrationName?(r(e.registrationName,t,n),!0):!1}function r(e,t,n){l.registrationNameModules[e]?o(!1):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=e("fbjs/lib/invariant"),a=null,s={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){a?o(!1):void 0,a=Array.prototype.slice.call(e),n()},injectEventPluginsByName:function(e){var t=!1;for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];s.hasOwnProperty(i)&&s[i]===r||(s[i]?o(!1):void 0,s[i]=r,t=!0)}t&&n()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames) if(t.phasedRegistrationNames.hasOwnProperty(n)){var i=l.registrationNameModules[t.phasedRegistrationNames[n]];if(i)return i}return null},_resetEventPlugins:function(){a=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var i=l.registrationNameModules;for(var r in i)i.hasOwnProperty(r)&&delete i[r]}};t.exports=l},{"fbjs/lib/invariant":184}],57:[function(e,t){"use strict";function n(e){return e===m.topMouseUp||e===m.topTouchEnd||e===m.topTouchCancel}function i(e){return e===m.topMouseMove||e===m.topTouchMove}function r(e){return e===m.topMouseDown||e===m.topTouchStart}function o(e,t,n,i){var r=e.type||"unknown-event";e.currentTarget=f.Mount.getNode(i),t?p.invokeGuardedCallbackWithCatch(r,n,e,i):p.invokeGuardedCallback(r,n,e,i),e.currentTarget=null}function a(e,t){var n=e._dispatchListeners,i=e._dispatchIDs;if(Array.isArray(n))for(var r=0;re&&n[e]===r[e ];e++);var a=i-e;for(t=1;a>=t&&n[i-t]===r[o-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),i.addPoolingTo(n),t.exports=n},{"./Object.assign":62,"./PooledClass":63,"./getTextContentAccessor":157}],60:[function(e,t){"use strict";var n,i=e("./DOMProperty"),r=e("fbjs/lib/ExecutionEnvironment"),o=i.injection.MUST_USE_ATTRIBUTE,a=i.injection.MUST_USE_PROPERTY,s=i.injection.HAS_BOOLEAN_VALUE,l=i.injection.HAS_SIDE_EFFECTS,c=i.injection.HAS_NUMERIC_VALUE,u=i.injection.HAS_POSITIVE_NUMERIC_VALUE,d=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(r.canUseDOM){var p=document.implementation;n=p&&p.hasFeature&&p.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:o|s,allowTransparency:o,alt:null,async:s,autoComplete:null,autoPlay:s,capture: o|s,cellPadding:null,cellSpacing:null,charSet:o,challenge:o,checked:a|s,classID:o,className:n?o:a,cols:o|u,colSpan:null,content:null,contentEditable:null,contextMenu:o,controls:a|s,coords:null,crossOrigin:null,data:null,dateTime:o,"default":s,defer:s,dir:null,disabled:o|s,download:d,draggable:null,encType:null,form:o,formAction:o,formEncType:o,formMethod:o,formNoValidate:s,formTarget:o,frameBorder:o,headers:null,height:o,hidden:o|s,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:a,inputMode:o,integrity:null,is:o,keyParams:o,keyType:o,kind:null,label:null,lang:null,list:o,loop:a|s,low:null,manifest:o,marginHeight:null,marginWidth:null,max:null,maxLength:o,media:o,mediaGroup:null,method:null,min:null,minLength:o,multiple:a|s,muted:a|s,name:null,nonce:o,noValidate:s,open:s,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:a|s,rel:null,required:s,reversed:s,role:o,rows:o|u,rowSpan:null,sandbox:null,scope:null,scoped:s ,scrolling:null,seamless:o|s,selected:a|s,shape:null,size:o|u,sizes:o,span:u,spellCheck:null,src:null,srcDoc:a,srcLang:null,srcSet:o,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:a|l,width:o,wmode:o,wrap:null,about:o,datatype:o,inlist:o,prefix:o,property:o,resource:o,"typeof":o,vocab:o,autoCapitalize:o,autoCorrect:o,autoSave:null,color:null,itemProp:o,itemScope:o|s,itemType:o,itemID:o,itemRef:o,results:null,security:o,unselectable:o},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=h},{"./DOMProperty":49,"fbjs/lib/ExecutionEnvironment":170}],61:[function(e,t){"use strict";function n(e){null!=e.checkedLink&&null!=e.valueLink? l(!1):void 0}function i(e){n(e),null!=e.value||null!=e.onChange?l(!1):void 0}function r(e){n(e),null!=e.checked||null!=e.onChange?l(!1):void 0}function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var a=e("./ReactPropTypes"),s=e("./ReactPropTypeLocations"),l=e("fbjs/lib/invariant"),c=(e("fbjs/lib/warning"),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),u={value:function(e,t){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:a.func},d={},p={checkPropTypes:function(e,t,n){for(var i in u){if(u.hasOwnProperty(i))var r=u[i](t,i,e,s.prop);r instanceof Error&&!(r.message in d)&&(d[r.message]=!0,o(n))}},getValue:function(e){return e.valueLink?(i(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(r(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(i(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(r(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=p},{"./ReactPropTypeLocations":113,"./ReactPropTypes":114,"fbjs/lib/invariant":184,"fbjs/lib/warning":195}],62:[function(e,t){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var t=Object(e),n=Object.prototype.hasOwnProperty,i=1;i=0||null!=t.is}function m(e){h(e),this._tag=e.toLowerCase(),this._renderedChildren=nu ll,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var E=e("./AutoFocusUtils"),g=e("./CSSPropertyOperations"),v=e("./DOMProperty"),y=e("./DOMPropertyOperations"),b=e("./EventConstants"),_=e("./ReactBrowserEventEmitter"),S=e("./ReactComponentBrowserEnvironment"),A=e("./ReactDOMButton"),T=e("./ReactDOMInput"),C=e("./ReactDOMOption"),N=e("./ReactDOMSelect"),O=e("./ReactDOMTextarea"),R=e("./ReactMount"),I=e("./ReactMultiChild"),D=e("./ReactPerf"),w=e("./ReactUpdateQueue"),P=e("./Object.assign"),x=e("./canDefineProperty"),k=e("./escapeTextContentForBrowser"),L=e("fbjs/lib/invariant"),M=(e("./isEventSupported"),e("fbjs/lib/keyOf")),V=e("./setInnerHTML"),F=e("./setTextContent"),U=(e("fbjs/lib/shallowEqual"),e("./validateDOMNesting"),e("fbjs/lib/warning"),_.deleteListener),B=_.listenTo,j=_.registrationNameModules,H={string:!0,number:!0},W=M({children:null}),Y=M({style:null}),G= M({__html:null}),z=1,q={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},K={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},$={listing:!0,pre:!0,textarea:!0},X=(P({menuitem:!0},K),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Q={},Z={}.hasOwnProperty;m.displayName="ReactDOMComponent",m.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var i=this._currentElement.props;switch(this._tag){case"i frame":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(u,this);break;case"button":i=A.getNativeProps(this,i,n);break;case"input":T.mountWrapper(this,i,n),i=T.getNativeProps(this,i,n);break;case"option":C.mountWrapper(this,i,n),i=C.getNativeProps(this,i,n);break;case"select":N.mountWrapper(this,i,n),i=N.getNativeProps(this,i,n),n=N.processChildContext(this,i,n);break;case"textarea":O.mountWrapper(this,i,n),i=O.getNativeProps(this,i,n)}s(this,i);var r;if(t.useCreateElement){var o=n[R.ownerDocumentContextKey],a=o.createElement(this._currentElement.type);y.setAttributeForID(a,this._rootNodeID),R.getID(a),this._updateDOMProperties({},i,t,a),this._createInitialChildren(t,i,n,a),r=a}else{var l=this._createOpenTagMarkupAndPutListeners(t,i),c=this._createContentMarkup(t,i,n);r=!c&&K[this._tag]?l+"/>":l+">"+c+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(d,this );case"button":case"select":case"textarea":i.autoFocus&&t.getReactMountReady().enqueue(E.focusDOMComponent,this)}return r},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(null!=r)if(j.hasOwnProperty(i))r&&l(this._rootNodeID,i,r,e);else{i===Y&&(r&&(r=this._previousStyleCopy=P({},t.style)),r=g.createMarkupForStyles(r));var o=null;null!=this._tag&&f(this._tag,t)?i!==W&&(o=y.createMarkupForCustomAttribute(i,r)):o=y.createMarkupForProperty(i,r),o&&(n+=" "+o)}}if(e.renderToStaticMarkup)return n;var a=y.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(e,t,n){var i="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(i=r.__html);else{var o=H[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)i=k(o);else if(null!=a){var s=this.mountChildren(a,e,n);i=s.join("")}}return $[this._t ag]&&"\n"===i.charAt(0)?"\n"+i:i},_createInitialChildren:function(e,t,n,i){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&V(i,r.__html);else{var o=H[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)F(i,o);else if(null!=a)for(var s=this.mountChildren(a,e,n),l=0;lt.end?(n=t.end,i=t.start):(n=t.start,i=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",i-n),r.select()}function a(e,t){if(window.getSelection){var n=window.getSelection(),i=e[c()].length,r=Math.min(t.start,i),o="undefined"==typeof t.end?r:Math.min(t.end,i);if(!n.extend&&r>o){var a=o;o=r,r=a}var s=l(e,r),u=l(e,o);if(s&&u){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),r>o?(n.addRange(d),n.extend(u.node,u.offset)):(d.setEnd(u.node,u.offset),n.addRange(d))}}}var s=e("fbjs/lib/ExecutionEnvironment"),l=e("./getNodeForCharacterOffset"),c=e("./getTextContentAccessor"),u=s .canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:u?i:r,setOffsets:u?o:a};t.exports=d},{"./getNodeForCharacterOffset":156,"./getTextContentAccessor":157,"fbjs/lib/ExecutionEnvironment":170}],85:[function(e,t){"use strict";var n=e("./ReactDefaultInjection"),i=e("./ReactServerRendering"),r=e("./ReactVersion");n.inject();var o={renderToString:i.renderToString,renderToStaticMarkup:i.renderToStaticMarkup,version:r};t.exports=o},{"./ReactDefaultInjection":89,"./ReactServerRendering":120,"./ReactVersion":124}],86:[function(e,t){"use strict";var n=e("./DOMChildrenOperations"),i=e("./DOMPropertyOperations"),r=e("./ReactComponentBrowserEnvironment"),o=e("./ReactMount"),a=e("./Object.assign"),s=e("./escapeTextContentForBrowser"),l=e("./setTextContent"),c=(e("./validateDOMNesting"),function(){});a(c.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){if(t his._rootNodeID=e,t.useCreateElement){var r=n[o.ownerDocumentContextKey],a=r.createElement("span");return i.setAttributeForID(a,e),o.getID(a),l(a,this._stringText),a}var c=s(this._stringText);return t.renderToStaticMarkup?c:""+c+""},receiveComponent:function(e){if(e!==this._currentElement){this._currentElement=e;var t=""+e;if(t!==this._stringText){this._stringText=t;var i=o.getNode(this._rootNodeID);n.updateTextContent(i,t)}}},unmountComponent:function(){r.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=c},{"./DOMChildrenOperations":48,"./DOMPropertyOperations":50,"./Object.assign":62,"./ReactComponentBrowserEnvironment":71,"./ReactMount":105,"./escapeTextContentForBrowser":147,"./setTextContent":165,"./validateDOMNesting":168}],87:[function(e,t){"use strict";function n(){this._rootNodeID&&c.updateWrapper(this)}function i(e){var t=this._currentElement.props,i=r.executeOnChange(t,e);return a.asap(n,this),i}var r=e("./LinkedValueUtils"),o=e("./ReactDOMIDOperations"),a= e("./ReactUpdates"),s=e("./Object.assign"),l=e("fbjs/lib/invariant"),c=(e("fbjs/lib/warning"),{getNativeProps:function(e,t){null!=t.dangerouslySetInnerHTML?l(!1):void 0;var n=s({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=t.defaultValue,o=t.children;null!=o&&(null!=n?l(!1):void 0,Array.isArray(o)&&(o.length<=1?void 0:l(!1),o=o[0]),n=""+o),null==n&&(n="");var a=r.getValue(t);e._wrapperState={initialValue:""+(null!=a?a:n),onChange:i.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=r.getValue(t);null!=n&&o.updatePropertyByID(e._rootNodeID,"value",""+n)}});t.exports=c},{"./LinkedValueUtils":61,"./Object.assign":62,"./ReactDOMIDOperations":80,"./ReactUpdates":123, "fbjs/lib/invariant":184,"fbjs/lib/warning":195}],88:[function(e,t){"use strict";function n(){this.reinitializeTransaction()}var i=e("./ReactUpdates"),r=e("./Transa ction"),o=e("./Object.assign"),a=e("fbjs/lib/emptyFunction"),s={initialize:a,close:function(){d.isBatchingUpdates=!1}},l={initialize:a,close:i.flushBatchedUpdates.bind(i)},c=[l,s];o(n.prototype,r.Mixin,{getTransactionWrappers:function(){return c}});var u=new n,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,i,r,o){var a=d.isBatchingUpdates;d.isBatchingUpdates=!0,a?e(t,n,i,r,o):u.perform(e,null,t,n,i,r,o)}};t.exports=d},{"./Object.assign":62,"./ReactUpdates":123,"./Transaction":140,"fbjs/lib/emptyFunction":176}],89:[function(e,t){"use strict";function n(){T||(T=!0,E.EventEmitter.injectReactEventListener(m),E.EventPluginHub.injectEventPluginOrder(a),E.EventPluginHub.injectInstanceHandle(g),E.EventPluginHub.injectMount(v),E.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:S,EnterLeaveEventPlugin:s,ChangeEventPlugin:r,SelectEventPlugin:b,BeforeInputEventPlugin:i}),E.NativeComponent.injectGenericComponentClass(h),E.NativeComponent.injectTextComponentClass(f),E.Class.injec tMixin(u),E.DOMProperty.injectDOMPropertyConfig(c),E.DOMProperty.injectDOMPropertyConfig(A),E.EmptyComponent.injectEmptyComponent("noscript"),E.Updates.injectReconcileTransaction(y),E.Updates.injectBatchingStrategy(p),E.RootIndex.injectCreateReactRootIndex(l.canUseDOM?o.createReactRootIndex:_.createReactRootIndex),E.Component.injectEnvironment(d))}var i=e("./BeforeInputEventPlugin"),r=e("./ChangeEventPlugin"),o=e("./ClientReactRootIndex"),a=e("./DefaultEventPluginOrder"),s=e("./EnterLeaveEventPlugin"),l=e("fbjs/lib/ExecutionEnvironment"),c=e("./HTMLDOMPropertyConfig"),u=e("./ReactBrowserComponentMixin"),d=e("./ReactComponentBrowserEnvironment"),p=e("./ReactDefaultBatchingStrategy"),h=e("./ReactDOMComponent"),f=e("./ReactDOMTextComponent"),m=e("./ReactEventListener"),E=e("./ReactInjection"),g=e("./ReactInstanceHandles"),v=e("./ReactMount"),y=e("./ReactReconcileTransaction"),b=e("./SelectEventPlugin"),_=e("./ServerReactRootIndex"),S=e("./SimpleEventPlugin"),A=e("./SVGDOMPropertyConfig "),T=!1;t.exports={inject:n}},{"./BeforeInputEventPlugin":42,"./ChangeEventPlugin":46,"./ClientReactRootIndex":47,"./DefaultEventPluginOrder":52,"./EnterLeaveEventPlugin":53,"./HTMLDOMPropertyConfig":60,"./ReactBrowserComponentMixin":65,"./ReactComponentBrowserEnvironment":71,"./ReactDOMComponent":77,"./ReactDOMTextComponent":86,"./ReactDefaultBatchingStrategy":88,"./ReactDefaultPerf":90,"./ReactEventListener":98,"./ReactInjection":99,"./ReactInstanceHandles":101,"./ReactMount":105,"./ReactReconcileTransaction":115,"./SVGDOMPropertyConfig":125,"./SelectEventPlugin":126,"./ServerReactRootIndex":127,"./SimpleEventPlugin":128,"fbjs/lib/ExecutionEnvironment":170}],90:[function(e,t){"use strict";function n(e){return Math.floor(100*e)/100}function i(e,t,n){e[t]=(e[t]||0)+n}var r=e("./DOMProperty"),o=e("./ReactDefaultPerfAnalysis"),a=e("./ReactMount"),s=e("./ReactPerf"),l=e("fbjs/lib/performanceNow"),c={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){c._injected||s.inject ion.injectMeasure(c.measure),c._allMeasurements.length=0,s.enableMeasure=!0},stop:function(){s.enableMeasure=!1},getLastMeasurements:function(){return c._allMeasurements},printExclusive:function(e){e=e||c._allMeasurements;var t=o.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":n(e.inclusive),"Exclusive mount time (ms)":n(e.exclusive),"Exclusive render time (ms)":n(e.render),"Mount time per instance (ms)":n(e.exclusive/e.count),"Render time per instance (ms)":n(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||c._allMeasurements;var t=o.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":n(e.time),Instances:e.count}})),console.log("Total time:",o.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=o.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.comp onentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||c._allMeasurements,console.table(c.getMeasurementsSummaryMap(e)),console.log("Total time:",o.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||c._allMeasurements;var t=o.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[r.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",o.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,i){var r=c._allMeasurements[c._allMeasurements.length-1].writes;r[e]=r[e]||[],r[e].push({type:t,time:n,args:i})},measure:function(e,t,n){return function(){for(var r=arguments.length,o=Array(r),s=0;r>s;s++)o[s]=arguments[s];var u,d,p;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return c._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0,created:{}}),p=l(),d=n.apply(this,o),c._allMeasurements[c._allMeasurements.length-1] .totalTime=l()-p,d;if("_mountImageIntoNode"===t||"ReactBrowserEventEmitter"===e||"ReactDOMIDOperations"===e||"CSSPropertyOperations"===e||"DOMChildrenOperations"===e||"DOMPropertyOperations"===e){if(p=l(),d=n.apply(this,o),u=l()-p,"_mountImageIntoNode"===t){var h=a.getID(o[1]);c._recordWrite(h,t,u,o[0])}else if("dangerouslyProcessChildrenUpdates"===t)o[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=o[1][e.markupIndex]),c._recordWrite(e.parentID,e.type,u,t)});else{var f=o[0];"object"==typeof f&&(f=a.getID(o[0])),c._recordWrite(f,t,u,Array.prototype.slice.call(o,1))}return d}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,o);if(this._currentElement.type===a.TopLevelWrapper)return n.apply(this,o); var m="mountComponent"===t?o[0]:this._rootNodeID,E="_renderValidatedComponent"===t,g="mountComponent"===t,v=c._mountStack,y=c._allMeasurements[c._allMeasurements.length-1];if(E?i(y.counts,m,1):g&&(y.created[m]=!0,v.push(0)),p=l(),d=n.apply(this,o),u=l()-p,E)i(y.render,m,u);else if(g){var b=v.pop();v[v.length-1]+=u,i(y.exclusive,m,u-b),i(y.inclusive,m,u)}else i(y.inclusive,m,u);return y.displayNames[m]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():""},d}}};t.exports=c},{"./DOMProperty":49,"./ReactDefaultPerfAnalysis":91,"./ReactMount":105,"./ReactPerf":111,"fbjs/lib/performanceNow":192}],91:[function(e,t){"use strict";function n(e){for(var t=0,n=0;n=l&&c.push(n[t]);return c.sort(function(e,t){return t.exclusive-e.exclusive}),c}function o(e,t){for(var n,i={},r=0;r "+p.current,i[n]=i[n]||{componentName:n,time:0,count:0},c.inclusive[d]&&(i[n].time+=c.inclusive[d]),c.counts[d]&&(i[n].count+=c.counts[d])}}va r h=[];for(n in i)i[n].time>=l&&h.push(i[n]);return h.sort(function(e,t){return t.time-e.time}),h}function a(e){var t={},n=Object.keys(e.writes),i=s({},e.exclusive,e.inclusive);for(var r in i){for(var o=!1,a=0;a0&&(t[r]=!0)}return t}var s=e("./Object.assign"),l=1.2,c={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",SET_MARKUP:"set innerHTML",TEXT_CONTENT:"set textContent",setValueForProperty:"update attribute",setValueForAttribute:"update attribute",deleteValueForProperty:"remove attribute",setValueForStyles:"update styles",replaceNodeWithMarkup:"replace",updateTextContent:"set textContent"},u={getExclusiveSummary:r,getInclusiveSummary:o,getDOMSummary:i,getTotalTime:n};t.exports=u},{"./Object.assign":62}],92:[function(e,t){"use strict";var n=e("./ReactCurrentOwner"),i=e("./Object.assign"),r=(e("./canDefineProperty"),"function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")|| 60103),o={key:!0,ref:!0,__self:!0,__source:!0},a=function(e,t,n,i,o,a,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:a};return l};a.createElement=function(e,t,i){var r,s={},l=null,c=null,u=null,d=null;if(null!=t){c=void 0===t.ref?null:t.ref,l=void 0===t.key?null:""+t.key,u=void 0===t.__self?null:t.__self,d=void 0===t.__source?null:t.__source;for(r in t)t.hasOwnProperty(r)&&!o.hasOwnProperty(r)&&(s[r]=t[r])}var p=arguments.length-2;if(1===p)s.children=i;else if(p>1){for(var h=Array(p),f=0;p>f;f++)h[f]=arguments[f+2];s.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(r in m)"undefined"==typeof s[r]&&(s[r]=m[r])}return a(e,l,c,u,d,n.current,s)},a.createFactory=function(e){var t=a.createElement.bind(null,e);return t.type=e,t},a.cloneAndReplaceKey=function(e,t){var n=a(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},a.cloneAndReplaceProps=function(e,t){var n=a(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},a. cloneElement=function(e,t,r){var s,l=i({},e.props),c=e.key,u=e.ref,d=e._self,p=e._source,h=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,h=n.current),void 0!==t.key&&(c=""+t.key);for(s in t)t.hasOwnProperty(s)&&!o.hasOwnProperty(s)&&(l[s]=t[s])}var f=arguments.length-2;if(1===f)l.children=r;else if(f>1){for(var m=Array(f),E=0;f>E;E++)m[E]=arguments[E+2];l.children=m}return a(e.type,c,u,d,p,h,l)},a.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.exports=a},{"./Object.assign":62,"./ReactCurrentOwner":74,"./canDefineProperty":144}],93:[function(e,t){"use strict";function n(){if(u.current){var e=u.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(e,t){e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,r("uniqueKey",e,t))}function r(e,t,i){var r=n();if(!r){var o="string"==typeof i?i:i.displayName||i.name;o&&(r=" Check the top-level render call using <"+o+">.")}var a=h[e]||(h[e]={});if(a[r])return null;a[r]=!0;var s={parentOrOwner:r,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==u.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function o(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n=a;a++)if(i(e,a)&&i(t,a))o=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,o);return r(s)?void 0:d(!1),s}function c(e,t,n,i,r,l){e=e||"",t=t||"",e===t?d(!1):void 0;var c=o(t,e);c||o(e,t)?void 0:d(!1);for(var u=0,p=c?a:s,h=e;;h=p(h,t)){var m;if(r&&h===e||l&&h===t||(m=n(h,c,i)),m===!1||h===t)break;u++1){var t=e.indexOf(p,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,i,r){var o=l(e,t);o!==e&&c(e,o,n,i,!1,!0),o!==t&&c(o,t,n,r,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1), c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:l,_getNextDescendantID:s,isAncestorIDOf:o,SEPARATOR:p};t.exports=m},{"./ReactRootIndex":118,"fbjs/lib/invariant":184}],102:[function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=n},{}],103:[function(e,t){"use strict";var n=e("./ReactChildren"),i=e("./ReactComponent"),r=e("./ReactClass"),o=e("./ReactDOMFactories"),a=e("./ReactElement"),s=(e("./ReactElementValidator"),e("./ReactPropTypes")),l=e("./ReactVersion"),c=e("./Object.assign"),u=e("./onlyChild"),d=a.createElement,p=a.createFactory,h=a.cloneElement,f={Children:{map:n.map,forEach:n.forEach,count:n.count,toArray:n.toArray,only:u},Component:i,createEl ement:d,cloneElement:h,isValidElement:a.isValidElement,PropTypes:s,createClass:r.createClass,createFactory:p,createMixin:function(e){return e},DOM:o,version:l,__spread:c};t.exports=f},{"./Object.assign":62,"./ReactChildren":68,"./ReactClass":69,"./ReactComponent":70,"./ReactDOMFactories":78,"./ReactElement":92,"./ReactElementValidator":93,"./ReactPropTypes":114,"./ReactVersion":124,"./onlyChild":161}],104:[function(e,t){"use strict";var n=e("./adler32"),i=/\/?>/,r={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=n(e);return e.replace(i," "+r.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var i=t.getAttribute(r.CHECKSUM_ATTR_NAME);i=i&&parseInt(i,10);var o=n(e);return o===i}};t.exports=r},{"./adler32":143}],105:[function(e,t){"use strict";function n(e,t){for(var n=Math.min(e.length,t.length),i=0;n>i;i++)if(e.charAt(i)!==t.charAt(i))return i;return e.length===t.length?-1:n}function i(e){return e?e.nodeType===j?e.document Element:e.firstChild:null}function r(e){var t=i(e);return t&&$.getID(t)}function o(e){var t=a(e);if(t)if(U.hasOwnProperty(t)){var n=U[t];n!==e&&(u(n,t)?L(!1):void 0,U[t]=e)}else U[t]=e;return t}function a(e){return e&&e.getAttribute&&e.getAttribute(F)||""}function s(e,t){var n=a(e);n!==t&&delete U[n],e.setAttribute(F,t),U[t]=e}function l(e){return U.hasOwnProperty(e)&&u(U[e],e)||(U[e]=$.findReactNodeByID(e)),U[e]}function c(e){var t=C.get(e)._rootNodeID;return A.isNullComponentID(t)?null:(U.hasOwnProperty(t)&&u(U[t],t)||(U[t]=$.findReactNodeByID(t)),U[t])}function u(e,t){if(e){a(e)!==t?L(!1):void 0;var n=$.findReactContainerForID(t);if(n&&x(n,e))return!0}return!1}function d(e){delete U[e]}function p(e){var t=U[e];return t&&u(t,e)?void(q=t):!1}function h(e){q=null,T.traverseAncestors(e,p);var t=q;return q=null,t}function f(e,t,n,i,r,o){_.useCreateElement&&(o=w({},o),o[W]=n.nodeType===j?n:n.ownerDocument); var a=R.mountComponent(e,t,i,o);e._renderedComponent._topLevelWrapper=e,$._mountImageIntoNode(a,n,r,i)}function m(e,t,n,i,r){var o=D.ReactReconcileTransaction.getPooled(i);o.perform(f,null,e,t,n,o,i,r),D.ReactReconcileTransaction.release(o)}function E(e,t){for(R.unmountComponent(e),t.nodeType===j&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function g(e){var t=r(e);return t?t!==T.getReactRootIDFromNodeID(t):!1}function v(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=a(e);if(t){var n,i=T.getReactRootIDFromNodeID(t),r=e;do if(n=a(r),r=r.parentNode,null==r)return null;while(n!==i);if(r===G[i])return e}}return null}var y=e("./DOMProperty"),b=e("./ReactBrowserEventEmitter"),_=(e("./ReactCurrentOwner"),e("./ReactDOMFeatureFlags")),S=e("./ReactElement"),A=e("./ReactEmptyComponentRegistry"),T=e("./ReactInstanceHandles"),C=e("./ReactInstanceMap"),N=e("./ReactMarkupChecksum"),O=e("./ReactPerf"),R=e("./ReactReconciler"),I=e("./ReactUpdate Queue"),D=e("./ReactUpdates"),w=e("./Object.assign"),P=e("fbjs/lib/emptyObject"),x=e("fbjs/lib/containsNode"),k=e("./instantiateReactComponent"),L=e("fbjs/lib/invariant"),M=e("./setInnerHTML"),V=e("./shouldUpdateReactComponent"),F=(e("./validateDOMNesting"),e("fbjs/lib/warning"),y.ID_ATTRIBUTE_NAME),U={},B=1,j=9,H=11,W="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),Y={},G={},z=[],q=null,K=function(){};K.prototype.isReactComponent={},K.prototype.render=function(){return this.props};var $={TopLevelWrapper:K,_instancesByReactRootID:Y,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,i){return $.scrollMonitor(n,function(){I.enqueueElementInternal(e,t),i&&I.enqueueCallbackInternal(e,i)}),e},_registerComponent:function(e,t){!t||t.nodeType!==B&&t.nodeType!==j&&t.nodeType!==H?L(!1):void 0,b.ensureScrollValueMonitoring();var n=$.registerContainer(t);return Y[n]=e,n},_renderNewRootComponent:function(e,t,n,i){var r=k(e,null),o=$._re gisterComponent(r,t);return D.batchedUpdates(m,r,o,t,n,i),r},renderSubtreeIntoContainer:function(e,t,n,i){return null==e||null==e._reactInternalInstance?L(!1):void 0,$._renderSubtreeIntoContainer(e,t,n,i)},_renderSubtreeIntoContainer:function(e,t,n,o){S.isValidElement(t)?void 0:L(!1);var s=new S(K,null,null,null,null,null,t),l=Y[r(n)];if(l){var c=l._currentElement,u=c.props;if(V(u,t)){var d=l._renderedComponent.getPublicInstance(),p=o&&function(){o.call(d)};return $._updateRootComponent(l,s,n,p),d}$.unmountComponentAtNode(n)}var h=i(n),f=h&&!!a(h),m=g(n),E=f&&!l&&!m,v=$._renderNewRootComponent(s,n,E,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):P)._renderedComponent.getPublicInstance();return o&&o.call(v),v},render:function(e,t,n){return $._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=r(e);return t&&(t=T.getReactRootIDFromNodeID(t)),t||(t=T.createReactRootID()),G [t]=e,t},unmountComponentAtNode:function(e){!e||e.nodeType!==B&&e.nodeType!==j&&e.nodeType!==H?L(!1):void 0;var t=r(e),n=Y[t];if(!n){var i=(g(e),a(e));return i&&i===T.getReactRootIDFromNodeID(i),!1}return D.batchedUpdates(E,n,e),delete Y[t],delete G[t],!0},findReactContainerForID:function(e){var t=T.getReactRootIDFromNodeID(e),n=G[t];return n},findReactNodeByID:function(e){var t=$.findReactContainerForID(e);return $.findComponentRoot(t,e)},getFirstReactDOM:function(e){return v(e)},findComponentRoot:function(e,t){var n=z,i=0,r=h(t)||e;for(n[0]=r.firstChild,n.length=1;i<<anonymous>>"}var g=e("./ReactElement"),v=e("./ReactPropTypeLocationNames"),y=e("fbjs/lib/emptyFunction"),b=e("./getIteratorFn"),_="<<anonymous>>",S={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:r(),arrayOf:o,element:a(),instanceOf:s,node:d(),objectOf:c,oneOf:l,oneOfType:u,shape:p};t.exports=S},{"./Reac tElement":92,"./ReactPropTypeLocationNames":112,"./getIteratorFn":155,"fbjs/lib/emptyFunction":176}],115:[function(e,t){"use strict";function n(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=!e&&a.useCreateElement}var i=e("./CallbackQueue"),r=e("./PooledClass"),o=e("./ReactBrowserEventEmitter"),a=e("./ReactDOMFeatureFlags"),s=e("./ReactInputSelection"),l=e("./Transaction"),c=e("./Object.assign"),u={initialize:s.getSelectionInformation,close:s.restoreSelection},d={initialize:function(){var e=o.isEnabled();return o.setEnabled(!1),e},close:function(e){o.setEnabled(e)}},p={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[u,d,p],f={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};c(n.prototype,l.Mixin,f),r.addPool ingTo(n),t.exports=n},{"./CallbackQueue":45,"./Object.assign":62,"./PooledClass":63,"./ReactBrowserEventEmitter":66,"./ReactDOMFeatureFlags":79,"./ReactInputSelection":100,"./Transaction":140}],116:[function(e,t){"use strict";function n(){i.attachRefs(this,this._currentElement)}var i=e("./ReactRef"),r={mountComponent:function(e,t,i,r){var o=e.mountComponent(t,i,r);return e._currentElement&&null!=e._currentElement.ref&&i.getReactMountReady().enqueue(n,e),o},unmountComponent:function(e){i.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,r,o){var a=e._currentElement;if(t!==a||o!==e._context){var s=i.shouldUpdateRefs(a,t);s&&i.detachRefs(e,a),e.receiveComponent(t,r,o),s&&e._currentElement&&null!=e._currentElement.ref&&r.getReactMountReady().enqueue(n,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};t.exports=r},{"./ReactRef":117}],117:[function(e,t){"use strict";function n(e,t,n ){"function"==typeof e?e(t.getPublicInstance()):r.addComponentAsRefTo(t,e,n)}function i(e,t,n){"function"==typeof e?e(null):r.removeComponentAsRefFrom(t,e,n)}var r=e("./ReactOwner"),o={};o.attachRefs=function(e,t){if(null!==t&&t!==!1){var i=t.ref;null!=i&&n(i,e,t._owner)}},o.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,i=null===t||t===!1;return n||i||t._owner!==e._owner||t.ref!==e.ref},o.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&i(n,e,t._owner)}},t.exports=o},{"./ReactOwner":110}],118:[function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){i.createReactRootIndex=e}},i={createReactRootIndex:null,injection:n};t.exports=i},{}],119:[function(e,t){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(){}};t.exports=n},{}],120:[function(e,t){"use strict";function n(e){o.isValidElement(e)?void 0:h(!1);var t;try{u.injection.injectBatchingStrategy(l);var n=a.createReactRootID();return t=c.getPooled (!1),t.perform(function(){var i=p(e,null),r=i.mountComponent(n,t,d);return s.addChecksumToMarkup(r)},null)}finally{c.release(t),u.injection.injectBatchingStrategy(r)}}function i(e){o.isValidElement(e)?void 0:h(!1);var t;try{u.injection.injectBatchingStrategy(l);var n=a.createReactRootID();return t=c.getPooled(!0),t.perform(function(){var i=p(e,null);return i.mountComponent(n,t,d)},null)}finally{c.release(t),u.injection.injectBatchingStrategy(r)}}var r=e("./ReactDefaultBatchingStrategy"),o=e("./ReactElement"),a=e("./ReactInstanceHandles"),s=e("./ReactMarkupChecksum"),l=e("./ReactServerBatchingStrategy"),c=e("./ReactServerRenderingTransaction"),u=e("./ReactUpdates"),d=e("fbjs/lib/emptyObject"),p=e("./instantiateReactComponent"),h=e("fbjs/lib/invariant");t.exports={renderToString:n,renderToStaticMarkup:i}},{"./ReactDefaultBatchingStrategy":88,"./ReactElement":92,"./ReactInstanceHandles":101,"./ReactMarkupChecksum":104,"./ReactServerBatchingStrategy":119,"./ReactServerRenderingTransacti on":121,"./ReactUpdates":123,"./instantiateReactComponent":158,"fbjs/lib/emptyObject":177,"fbjs/lib/invariant":184}],121:[function(e,t){"use strict";function n(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=r.getPooled(null),this.useCreateElement=!1}var i=e("./PooledClass"),r=e("./CallbackQueue"),o=e("./Transaction"),a=e("./Object.assign"),s=e("fbjs/lib/emptyFunction"),l={initialize:function(){this.reactMountReady.reset()},close:s},c=[l],u={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},destructor:function(){r.release(this.reactMountReady),this.reactMountReady=null}};a(n.prototype,o.Mixin,u),i.addPoolingTo(n),t.exports=n},{"./CallbackQueue":45,"./Object.assign":62,"./PooledClass":63,"./Transaction":140,"fbjs/lib/emptyFunction":176}],122:[function(e,t){"use strict";function n(e){a.enqueueUpdate(e)}function i(e,t){var n=o.get(e);return n?n:null}var r=(e("./ReactCurrentOwner"),e("./ReactElement" )),o=e("./ReactInstanceMap"),a=e("./ReactUpdates"),s=e("./Object.assign"),l=e("fbjs/lib/invariant"),c=(e("fbjs/lib/warning"),{isMounted:function(e){var t=o.get(e);return t?!!t._renderedComponent:!1},enqueueCallback:function(e,t){"function"!=typeof t?l(!1):void 0;var r=i(e);return r?(r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],void n(r)):null},enqueueCallbackInternal:function(e,t){"function"!=typeof t?l(!1):void 0,e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],n(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,n(t))},enqueueReplaceState:function(e,t){var r=i(e,"replaceState");r&&(r._pendingStateQueue=[t],r._pendingReplaceState=!0,n(r))},enqueueSetState:function(e,t){var r=i(e,"setState");if(r){var o=r._pendingStateQueue||(r._pendingStateQueue=[]);o.push(t),n(r)}},enqueueSetProps:function(e,t){var n=i(e,"setProps");n&&c.enqueueSetPropsInternal(n,t)},enqueueSetPropsInter nal:function(e,t){var i=e._topLevelWrapper;i?void 0:l(!1);var o=i._pendingElement||i._currentElement,a=o.props,c=s({},a.props,t);i._pendingElement=r.cloneAndReplaceProps(o,r.cloneAndReplaceProps(a,c)),n(i)},enqueueReplaceProps:function(e,t){var n=i(e,"replaceProps");n&&c.enqueueReplacePropsInternal(n,t)},enqueueReplacePropsInternal:function(e,t){var i=e._topLevelWrapper;i?void 0:l(!1);var o=i._pendingElement||i._currentElement,a=o.props;i._pendingElement=r.cloneAndReplaceProps(o,r.cloneAndReplaceProps(a,t)),n(i)},enqueueElementInternal:function(e,t){e._pendingElement=t,n(e)}});t.exports=c},{"./Object.assign":62,"./ReactCurrentOwner":74,"./ReactElement":92,"./ReactInstanceMap":102,"./ReactUpdates":123,"fbjs/lib/invariant":184,"fbjs/lib/warning":195}],123:[function(e,t){"use strict";function n(){C.ReactReconcileTransaction&&y?void 0:m(!1)}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransacti on=C.ReactReconcileTransaction.getPooled(!1)}function r(e,t,i,r,o,a){n(),y.batchedUpdates(e,t,i,r,o,a)}function o(e,t){return e._mountOrder-t._mountOrder}function a(e){var t=e.dirtyComponentsLength;t!==E.length?m(!1):void 0,E.sort(o);for(var n=0;t>n;n++){var i=E[n],r=i._pendingCallbacks;if(i._pendingCallbacks=null,p.performUpdateIfNecessary(i,e.reconcileTransaction),r)for(var a=0;a<=11,m={select:{phasedRegistrationNames:{bubbled:d({onSelect:null}),captured:d({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},E=null,g=null,v=null,y=!1,b=!1,_=d({onSelect:null}),S={eventTypes:m,extractEvents:function(e,t,n,r,o){if(!b)return null;switch(e){case h.topFocus:(u(t)||"true"===t.contentEditable)&&(E=t,g=n,v=null);break;case h.topBlur:E=null,g=null,v=null;break;case h.topMouseDown:y=!0;break;case h.topContextMenu:case h.topMouseUp:return y=!1,i(r,o);case h.topSelectionChange:if(f)break;case h.topKeyDown:case h.topKeyUp:return i(r,o)}return null},didPutListener:function(e,t){t===_&&(b=!0)}};t.exports=S},{"./EventConstants":54,"./EventPropagators":58,"./ReactInputSelection":100,"./SyntheticEvent":132,"./isTextInputElement":160,"fbjs/lib/ExecutionEnvironment":170,"fbjs/lib/getActiveElement":179,"fbjs/lib/keyOf":188,"fbjs/lib/shallowEqual":193}],127:[function(e,t){"use strict";var n=Math.pow(2,53),i={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};t.exports=i},{}],128:[function(e,t){"use strict";var n=e("./EventConstants"),i=e("fbjs/lib/EventListener"),r=e("./EventPropagators"),o=e("./ReactMount"),a=e("./SyntheticClipboardEvent"),s=e("./SyntheticEvent"),l=e("./SyntheticFocusEvent"),c=e("./SyntheticKeyboardEvent"),u=e("./SyntheticMouseEvent"),d=e("./SyntheticDragEvent"),p=e("./SyntheticTouchEvent"),h=e("./SyntheticUIEvent"),f=e("./SyntheticWheelEvent"),m=e("fbjs/lib/emptyFunction"),E=e("./getEventCharCode"),g=e("fbjs/lib/invariant"),v=e("fbjs/li b/keyOf"),y=n.topLevelTypes,b={abort:{phasedRegistrationNames:{bubbled:v({onAbort:!0}),captured:v({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:v({onBlur:!0}),captured:v({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:v({onCanPlay:!0}),captured:v({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:v({onCanPlayThrough:!0}),captured:v({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:v({onClick:!0}),captured:v({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:v({onContextMenu:!0}),captured:v({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:v({onCopy:!0}),captured:v({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:v({onCut:!0}),captured:v({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:v({onDoubleClick:!0}),captured:v({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:v({onDrag:!0}),captured:v({onDragCapture:!0})}},dragEnd:{pha sedRegistrationNames:{bubbled:v({onDragEnd:!0}),captured:v({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:v({onDragEnter:!0}),captured:v({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:v({onDragExit:!0}),captured:v({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:v({onDragLeave:!0}),captured:v({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:v({onDragOver:!0}),captured:v({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:v({onDragStart:!0}),captured:v({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:v({onDrop:!0}),captured:v({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:v({onDurationChange:!0}),captured:v({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:v({onEmptied:!0}),captured:v({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:v({onEncrypted:!0}),captured:v({onEncryptedCapture:!0})}},ended:{ phasedRegistrationNames:{bubbled:v({onEnded:!0}),captured:v({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:v({onError:!0}),captured:v({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:v({onFocus:!0}),captured:v({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:v({onInput:!0}),captured:v({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:v({onKeyDown:!0}),captured:v({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:v({onKeyPress:!0}),captured:v({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:v({onKeyUp:!0}),captured:v({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:v({onLoad:!0}),captured:v({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:v({onLoadedData:!0}),captured:v({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:v({onLoadedMetadata:!0}),captured:v({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:v({onL oadStart:!0}),captured:v({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:v({onMouseDown:!0}),captured:v({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:v({onMouseMove:!0}),captured:v({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:v({onMouseOut:!0}),captured:v({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:v({onMouseOver:!0}),captured:v({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:v({onMouseUp:!0}),captured:v({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:v({onPaste:!0}),captured:v({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:v({onPause:!0}),captured:v({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:v({onPlay:!0}),captured:v({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:v({onPlaying:!0}),captured:v({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:v({onProgress:!0}),captured:v({onProgr essCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:v({onRateChange:!0}),captured:v({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:v({onReset:!0}),captured:v({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:v({onScroll:!0}),captured:v({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:v({onSeeked:!0}),captured:v({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:v({onSeeking:!0}),captured:v({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:v({onStalled:!0}),captured:v({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:v({onSubmit:!0}),captured:v({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:v({onSuspend:!0}),captured:v({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:v({onTimeUpdate:!0}),captured:v({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:v({onTouchCancel:!0}),captured:v({onTouchCancelCapture:!0})}},touc hEnd:{phasedRegistrationNames:{bubbled:v({onTouchEnd:!0}),captured:v({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:v({onTouchMove:!0}),captured:v({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:v({onTouchStart:!0}),captured:v({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:v({onVolumeChange:!0}),captured:v({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:v({onWaiting:!0}),captured:v({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:v({onWheel:!0}),captured:v({onWheelCapture:!0})}}},_={topAbort:b.abort,topBlur:b.blur,topCanPlay:b.canPlay,topCanPlayThrough:b.canPlayThrough,topClick:b.click,topContextMenu:b.contextMenu,topCopy:b.copy,topCut:b.cut,topDoubleClick:b.doubleClick,topDrag:b.drag,topDragEnd:b.dragEnd,topDragEnter:b.dragEnter,topDragExit:b.dragExit,topDragLeave:b.dragLeave,topDragOver:b.dragOver,topDragStart:b.dragStart,topDrop:b.drop,topDurationChange:b.durationCha nge,topEmptied:b.emptied,topEncrypted:b.encrypted,topEnded:b.ended,topError:b.error,topFocus:b.focus,topInput:b.input,topKeyDown:b.keyDown,topKeyPress:b.keyPress,topKeyUp:b.keyUp,topLoad:b.load,topLoadedData:b.loadedData,topLoadedMetadata:b.loadedMetadata,topLoadStart:b.loadStart,topMouseDown:b.mouseDown,topMouseMove:b.mouseMove,topMouseOut:b.mouseOut,topMouseOver:b.mouseOver,topMouseUp:b.mouseUp,topPaste:b.paste,topPause:b.pause,topPlay:b.play,topPlaying:b.playing,topProgress:b.progress,topRateChange:b.rateChange,topReset:b.reset,topScroll:b.scroll,topSeeked:b.seeked,topSeeking:b.seeking,topStalled:b.stalled,topSubmit:b.submit,topSuspend:b.suspend,topTimeUpdate:b.timeUpdate,topTouchCancel:b.touchCancel,topTouchEnd:b.touchEnd,topTouchMove:b.touchMove,topTouchStart:b.touchStart,topVolumeChange:b.volumeChange,topWaiting:b.waiting,topWheel:b.wheel};for(var S in _)_[S].dependencies=[S];var A=v({onClick:null}),T={},C={eventTypes:b,extractEvents:function(e,t,n,i,o){var m=_[e];if(!m)return null;var v;switch(e){case y.topAbort:case y.topCanPlay:case y.topCanPlayThrough:case y.topDurationChange:case y.topEmptied:case y.topEncrypted:case y.topEnded:case y.topError:case y.topInput:case y.topLoad:case y.topLoadedData:case y.topLoadedMetadata:case y.topLoadStart:case y.topPause:case y.topPlay:case y.topPlaying:case y.topProgress:case y.topRateChange:case y.topReset:case y.topSeeked:case y.topSeeking:case y.topStalled:case y.topSubmit:case y.topSuspend:case y.topTimeUpdate:case y.topVolumeChange:case y.topWaiting:v=s;break;case y.topKeyPress:if(0===E(i))return null;case y.topKeyDown:case y.topKeyUp:v=c;break;case y.topBlur:case y.topFocus:v=l;break;case y.topClick:if(2===i.button)return null;case y.topContextMenu:case y.topDoubleClick:case y.topMouseDown:case y.topMouseMove:case y.topMouseOut:case y.topMouseOver:case y.topMouseUp:v=u;break;case y.topDrag:case y.topDragEnd:case y.topDragEnter:case y.topDragExit:case y.topDragLeave:case y.topDragOver:case y.topDragStart:case y.topDrop:v=d;break;case y.topTouchCancel:case y.topTouchEnd:case y.topTouchMove:case y.topTouchStart:v=p;break;case y.topScroll:v=h;break;case y.topWheel:v=f;break;case y.topCopy:case y.topCut:case y.topPaste:v=a}v?void 0:g(!1);var b=v.getPooled(m,n,i,o);return r.accumulateTwoPhaseDispatches(b),b},didPutListener:function(e,t){if(t===A){var n=o.getNode(e);T[e]||(T[e]=i.listen(n,"click",m))}},willDeleteListener:function(e,t){t===A&&(T[e].remove(),delete T[e])}};t.exports=C},{"./EventConstants":54,"./EventPropagators":58,"./ReactMount":105,"./SyntheticClipboardEvent":129,"./SyntheticDragEvent":131,"./SyntheticEvent":132,"./SyntheticFocusEvent":133,"./SyntheticKeyboardEvent":135,"./SyntheticMouseEvent":136,"./SyntheticTouchEvent":137,"./SyntheticUIEvent":138,"./SyntheticWheelEvent":139,"./getEventCharCode":151,"fbjs/lib/EventListener":169,"fbjs/lib/emptyFunction":176,"fbjs/lib/invariant":184,"fbjs/lib/keyOf":188}],129:[function(e,t){"use strict";function n(e,t,n,r){i.call(this, e,t,n,r)}var i=e("./SyntheticEvent"),r={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};i.augmentClass(n,r),t.exports=n},{"./SyntheticEvent":132}],130:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),r={data:null};i.augmentClass(n,r),t.exports=n},{"./SyntheticEvent":132}],131:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticMouseEvent"),r={dataTransfer:null};i.augmentClass(n,r),t.exports=n},{"./SyntheticMouseEvent":136}],132:[function(e,t){"use strict";function n(e,t,n,i){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];s?this[a]=s(n):"target"===a?this.target=i:this[a]=n[a]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;this.isDefaultPrevented=l?o.thatReturnsTrue:o.thatReturnsFalse,this.isPropagationStopped=o.thatReturnsFalse}var i=e("./ PooledClass"),r=e("./Object.assign"),o=e("fbjs/lib/emptyFunction"),a=(e("fbjs/lib/warning"),{type:null,target:null,currentTarget:o.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});r(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=o.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=o.thatReturnsTrue)},persist:function(){this.isPersistent=o.thatReturnsTrue},isPersistent:o.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),n.Interface=a,n.augmentClass=function(e,t){var n=this,o=Object.create(n.prototype);r(o,e.prototype),e.pr ototype=o,e.prototype.constructor=e,e.Interface=r({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(n,i.fourArgumentPooler),t.exports=n},{"./Object.assign":62,"./PooledClass":63,"fbjs/lib/emptyFunction":176,"fbjs/lib/warning":195}],133:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),r={relatedTarget:null};i.augmentClass(n,r),t.exports=n},{"./SyntheticUIEvent":138}],134:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),r={data:null};i.augmentClass(n,r),t.exports=n},{"./SyntheticEvent":132}],135:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),r=e("./getEventCharCode"),o=e("./getEventKey"),a=e("./getEventModifierState"),s={key:o,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:a,charCode:function(e){return"keypress"===e.type?r(e): 0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?r(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};i.augmentClass(n,s),t.exports=n},{"./SyntheticUIEvent":138,"./getEventCharCode":151,"./getEventKey":152,"./getEventModifierState":153}],136:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),r=e("./ViewportMetrics"),o=e("./getEventModifierState"),a={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:o,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+r.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+r.currentScrollTop}};i.augmentClass(n,a),t.exports=n},{"./SyntheticUIEvent ":138,"./ViewportMetrics":141,"./getEventModifierState":153}],137:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticUIEvent"),r=e("./getEventModifierState"),o={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:r};i.augmentClass(n,o),t.exports=n},{"./SyntheticUIEvent":138,"./getEventModifierState":153}],138:[function(e,t){"use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticEvent"),r=e("./getEventTarget"),o={view:function(e){if(e.view)return e.view;var t=r(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};i.augmentClass(n,o),t.exports=n},{"./SyntheticEvent":132,"./getEventTarget":154}],139:[function(e,t){ "use strict";function n(e,t,n,r){i.call(this,e,t,n,r)}var i=e("./SyntheticMouseEvent"),r={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX" in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};i.augmentClass(n,r),t.exports=n},{"./SyntheticMouseEvent":136}],140:[function(e,t){"use strict";var n=e("fbjs/lib/invariant"),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,i,r,o,a,s,l){this.isInTransaction()?n(!1):void 0;var c,u;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),u=e.call(t,i,r,o,a,s,l),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(d){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return u},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;nr;){for(;rr;r++)n+=t+=e.charCodeAt(r);return t%=i,n%=i,t|n<& lt;16}var i=65521;t.exports=n},{}],144:[function(e,t){"use strict";var n=!1;t.exports=n},{}],145:[function(e,t){"use strict";function n(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var i=isNaN(t);return i||0===t||r.hasOwnProperty(e)&&r[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var i=e("./CSSProperty"),r=i.isUnitlessNumber;t.exports=n},{"./CSSProperty":43}],146:[function(e,t){"use strict";function n(e,t,n,i,r){return r}e("./Object.assign"),e("fbjs/lib/warning"),t.exports=n},{"./Object.assign":62,"fbjs/lib/warning":195}],147:[function(e,t){"use strict";function n(e){return r[e]}function i(e){return(""+e).replace(o,n)}var r={"&":"&",">":">","<":"<",'"':""","'":"'"},o=/[&><"']/g;t.exports=i},{}],148:[function(e,t){"use strict";function n(e){return null==e?null:1===e.nodeType?e:i.has(e)?r.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render?o(!1):void 0,void o(!1))}var i=(e("./ReactCurrentOwner" ),e("./ReactInstanceMap")),r=e("./ReactMount"),o=e("fbjs/lib/invariant");e("fbjs/lib/warning"),t.exports=n},{"./ReactCurrentOwner":74,"./ReactInstanceMap":102,"./ReactMount":105,"fbjs/lib/invariant":184,"fbjs/lib/warning":195}],149:[function(e,t){"use strict";function n(e,t,n){var i=e,r=void 0===i[n];r&&null!=t&&(i[n]=t)}function i(e){if(null==e)return e;var t={};return r(e,n,t),t}var r=e("./traverseAllChildren");e("fbjs/lib/warning"),t.exports=i},{"./traverseAllChildren":167,"fbjs/lib/warning":195}],150:[function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=n},{}],151:[function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=n},{}],152:[function(e,t){"use strict";function n(e){if(e.key){var t=r[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=i(e);return 13===n?"Enter":St ring.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?o[e.keyCode]||"Unidentified":""}var i=e("./getEventCharCode"),r={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=n},{"./getEventCharCode":151}],153:[function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var i=r[e];return i?!!n[i]:!1}function i(){return n}var r={Alt:"altKey",Control:"ctrlKey",Met a:"metaKey",Shift:"shiftKey"};t.exports=i},{}],154:[function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=n},{}],155:[function(e,t){"use strict";function n(e){var t=e&&(i&&e[i]||e[r]);return"function"==typeof t?t:void 0}var i="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";t.exports=n},{}],156:[function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function i(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function r(e,t){for(var r=n(e),o=0,a=0;r;){if(3===r.nodeType){if(a=o+r.textContent.length,t>=o&&a>=t)return{node:r,offset:t-o};o=a}r=n(i(r))}}t.exports=r},{}],157:[function(e,t){"use strict";function n(){return!r&&i.canUseDOM&&(r="textContent"in document.documentElement?"textContent":"innerText"),r}var i=e("fbjs/lib/ExecutionEnvironment"),r=null;t.exports=n},{"fbjs/lib/ExecutionEnvironment": 170}],158:[function(e,t){"use strict";function n(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e){var t;if(null===e||e===!1)t=new o(i);else if("object"==typeof e){var r=e;!r||"function"!=typeof r.type&&"string"!=typeof r.type?l(!1):void 0,t="string"==typeof r.type?a.createInternalComponent(r):n(r.type)?new r.type(r):new c}else"string"==typeof e||"number"==typeof e?t=a.createInstanceForText(e):l(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var r=e("./ReactCompositeComponent"),o=e("./ReactEmptyComponent"),a=e("./ReactNativeComponent"),s=e("./Object.assign"),l=e("fbjs/lib/invariant"),c=(e("fbjs/lib/warning"),function(){});s(c.prototype,r.Mixin,{_instantiateReactComponent:i}),t.exports=i},{"./Object.assign":62,"./ReactCompositeComponent":73,"./ReactEmptyComponent":94,"./ReactNativeComponent":108,"fbjs/lib/invariant" :184,"fbjs/lib/warning":195}],159:[function(e,t){"use strict";function n(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&i&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var i,r=e("fbjs/lib/ExecutionEnvironment");r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=n},{"fbjs/lib/ExecutionEnvironment":170}],160:[function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&i[e.type]||"textarea"===t)}var i={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=n},{}],161:[function(e,t){" use strict";function n(e){return i.isValidElement(e)?void 0:r(!1),e}var i=e("./ReactElement"),r=e("fbjs/lib/invariant");t.exports=n},{"./ReactElement":92,"fbjs/lib/invariant":184}],162:[function(e,t){"use strict";function n(e){return'"'+i(e)+'"'}var i=e("./escapeTextContentForBrowser");t.exports=n},{"./escapeTextContentForBrowser":147}],163:[function(e,t){"use strict";var n=e("./ReactMount");t.exports=n.renderSubtreeIntoContainer},{"./ReactMount":105}],164:[function(e,t){"use strict";var n=e("fbjs/lib/ExecutionEnvironment"),i=/^[ \r\n\t\f]/,r=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,o=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(o=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),n.canUseDOM){var a=document.createElement("div");a.innerHTML=" ",""===a.innerHTML&&(o=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),i.test(t)||"<"===t[0]&&r.tes t(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=o},{"fbjs/lib/ExecutionEnvironment":170}],165:[function(e,t){"use strict";var n=e("fbjs/lib/ExecutionEnvironment"),i=e("./escapeTextContentForBrowser"),r=e("./setInnerHTML"),o=function(e,t){e.textContent=t};n.canUseDOM&&("textContent"in document.documentElement||(o=function(e,t){r(e,i(t))})),t.exports=o},{"./escapeTextContentForBrowser":147,"./setInnerHTML":164,"fbjs/lib/ExecutionEnvironment":170}],166:[function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,i=null===t||t===!1;if(n||i)return n===i;var r=typeof e,o=typeof t;return"string"===r||"number"===r?"string"===o||"number"===o:"object"===o&&e.type===t.type&&e.key===t.key}t.exports=n},{}],167:[function(e,t){"use strict";function n(e){return f[e]}function i(e,t){return e&&null!=e.key?o(e.key):t.toString(36)}function r(e){return(""+e).replace (m,n)}function o(e){return"$"+r(e)}function a(e,t,n,r){var s=typeof e;if(("undefined"===s||"boolean"===s)&&(e=null),null===e||"string"===s||"number"===s||l.isValidElement(e))return n(r,e,""===t?p+i(e,0):t),1;var c,f,m=0,E=""===t?p:t+h;if(Array.isArray(e))for(var g=0;g<(\w+)/;t.exports=i},{"./ExecutionEnvironment":170,"./createArrayFromMixed":174,"./getMarkupWrap":180,"./invariant":184}],176:[function(e,t){"use strict";function n(e){return function(){return e}}function i(){}i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},t.exports=i},{}],177:[function(e,t){"use strict";var n={};t.exports=n},{}],178:[function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}t.exports=n},{}],179:[function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body} }t.exports=n},{}],180:[function(e,t){"use strict";function n(e){return o?void 0:r(!1),d.hasOwnProperty(e)||(e="*"),a.hasOwnProperty(e)||(o.innerHTML="*"===e?"":"<"+e+"></"+e+">",a[e]=!o.firstChild),a[e]?d[e]:null}var i=e("./ExecutionEnvironment"),r=e("./invariant"),o=i.canUseDOM?document.createElement("div"):null,a={},s=[1,'"],l=[1,"",""],c=[3,""," "],u=[1,'',""],d={"*":[1,"?

","

"],area:[1,"",""],col:[2,""," "],legend:[1," "," "],param:[1,""],tr:[2,"",""],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(e){d[e]=u,a[e]=!0}),t.exports=n},{"./ExecutionEnvironment":170,"./invariant":184}],181:[function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=n},{}],182:[function(e,t){"use strict";function n(e){return e.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;t.exports=n},{}],183:[function(e,t){"use strict";function n(e){return i(e).replace(r,"-ms-")}var i=e("./hyphenate"),r=/^ms-/;t.exports=n},{"./hyphenate":182}],184:[function(e,t){"use strict";function n(e,t,n,i,r,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,r,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=n},{}],185:[function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=n},{}],186:[function(e,t){"use strict";function n(e){return i(e)&&3==e.nodeType}var i=e("./isNode");t.exports=n},{"./isNode":185}],187:[function(e,t){"use strict";var n=e("./invariant"),i=function(e){var t,i={};e instanceof Object&&!Array.isArray(e)?void 0:n(!1);for(t in e)e.hasOwnProperty(t)&&(i[t]=t);return i};t.exports=i},{"./invariant":184}],188:[function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=n},{}],189:[function(e,t){"use strict";funct ion n(e,t,n){if(!e)return null;var r={};for(var o in e)i.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r}var i=Object.prototype.hasOwnProperty;t.exports=n},{}],190:[function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=n},{}],191:[function(e,t){"use strict";var n,i=e("./ExecutionEnvironment");i.canUseDOM&&(n=window.performance||window.msPerformance||window.webkitPerformance),t.exports=n||{}},{"./ExecutionEnvironment":170}],192:[function(e,t){"use strict";var n,i=e("./performance");n=i.now?function(){return i.now()}:function(){return Date.now()},t.exports=n},{"./performance":191}],193:[function(e,t){"use strict";function n(e,t){if(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 o=i.bind(t),a=0;ao;o++)r[o]=e[o];return r}var i=e("./invariant");t.exports=n},{"./invariant":184}],1 95:[function(e,t){"use strict";var n=e("./emptyFunction"),i=n;t.exports=i},{"./emptyFunction":176}],196:[function(e,t){"use strict";t.exports=e("./lib/React")},{"./lib/React":64}],197:[function(e,t){!function(){"use strict";var e="undefined"!=typeof t&&t.exports,n="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,i=function(){for(var e,t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement ","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,r=n.length,o={};r>i;i++)if(e=n[i],e&&e[1]in document){for(i=0,t=e.length;t>i;i++)o[n[0][i]]=e[i];return o}return!1}(),r={request:function(e){var t=i.requestFullscreen;e=e||document.documentElement,/5\.1[\.\d]* Safari/.test(navigator.userAgent)?e[t]():e[t](n&&Element.ALLOW_KEYBOARD_INPUT)},exit:function(){document[i.exitFullscreen]()},toggle:function(e){this.isFullscreen?this.exit():this.request(e)},raw:i};return i?(Object.defineProperties(r,{isFullscreen:{get:function(){return Boolean(document[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[i.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(document[i.fullscreenEnabled])}}}),void(e?t.exports=r:window.screenfull=r)):void(e?t.exports=!1:window.screenfull=!1)}()},{}]},{},[21]),OO.plugin("DiscoveryApi",function(e,t,n,i){var r=20;e.EVENTS.DISCOVERY_API={RELATED_VIDEOS_FETCHED:"relatedVideosFe tched",SEND_DISPLAY_EVENT:"sendDisplayEvent",DISPLAY_EVENT_SUCCESS:"displayEventSuccess",SEND_CLICK_EVENT:"sendClickEvent",CLICK_EVENT_SUCCESS:"clickEventSuccess",DISPLAY_EVENT_ERROR:"displayEventError",CLICK_EVENT_ERROR:"clickEventError"},e.exposeStaticApi("EVENTS",e.EVENTS);var o=function(t,n){e.requiredInEnvironment("html5-playback")&&(this.id=n,this.mb=t,this.error=!1,this.relatedVideos=[],this.guid="",this.apiHost=e.playerParams.backlot_api_write_server||"api.ooyala.com",e.StateMachine.create({initial:"Init",messageBus:this.mb,moduleName:"DiscoveryApi",target:this,events:[{name:e.EVENTS.EMBED_CODE_CHANGED,from:"*"},{name:e.EVENTS.DISCOVERY_API.SEND_DISPLAY_EVENT,from:"*"},{name:e.EVENTS.DISCOVERY_API.SEND_CLICK_EVENT,from:"*"},{name:e.EVENTS.GUID_SET,from:"*"}]}))};return t.extend(o.prototype,{onEmbedCodeChanged:function(e,n){if(""===this.guid){var i=t.bind(function(){this._fetchRelatedVideos(n)},this);setTimeout(i,500)}else this._fetchRelatedVideos(n)},onGuidSet:functi on(e,t){this.guid=t},onSendDisplayEvent:function(i,r){if(r){var o=r.relatedVideos;if(o&&t.isArray(o)&&!(t.size(o)<1)){var a=o[0].bucket_info;if(a){if("2"==a.charAt(0))return void this.mb.publish(e.EVENTS.REPORT_DISCOVERY_IMPRESSION,r);r={bucket_info:a,custom:r.custom};var s="http://"+this.apiHost+"/v2/discover/feedback/impression";r.device_id=this.guid,r.discovery_profile_id=e.playerParams.playerBrandingId,r.system="OOYALA",n.ajax({url:s,data:JSON.stringify(r),type:"POST",dataType:"json",crossDomain:!0,cache:!0,success:t.bind(this._displayEventSuccess,this),error:t.bind(this._displayEventError,this)})}}}},_displayEventSuccess:function(){this.mb.publish(e.EVENTS.DISCOVERY_API.DISPLAY_EVENT_SUCCESS)},_displayEventError:function(t,n,i){this.mb.publish(e.EVENTS.DISCOVERY_API.DISPLAY_EVENT_ERROR,{xhr:t,status:n,error:i})},onSendClickEvent:function(i,r){if(r){var o=r.clickedVideo;if(o){var a=o.bucket_info;if(a){if("2"==a.charAt(0))return void this.mb.publish(e.EVENTS.RE PORT_DISCOVERY_CLICK,r);r={bucket_info:a,custom:r.custom};var s="http://"+this.apiHost+"/v2/discover/feedback/play";r.device_id=this.guid,r.discovery_profile_id=e.playerParams.playerBrandingId,r.system="OOYALA",n.ajax({url:s,data:JSON.stringify(r),type:"POST",dataType:"json",crossDomain:!0,cache:!0,success:t.bind(this._clickEventSuccess,this),error:t.bind(this._clickEventError,this)})}}}},_clickEventSuccess:function(){this.mb.publish(e.EVENTS.DISCOVERY_API.CLICK_EVENT_SUCCESS)},_clickEventError:function(t,n,i){this.mb.publish(e.EVENTS.DISCOVERY_API.CLICK_EVENT_ERROR,{xhr:t,status:n,error:i})},_fetchRelatedVideos:function(i){this.error=!1,this.relatedVideos=[];var o={sign_version:"player",pcode:e.playerParams.pcode,discovery_profile_id:e.playerParams.playerBrandingId,video_pcode:e.playerParams.pcode,limit:r,device_id:this.guid,expected_bucket_info_version:2,expires:Math.floor((new Date).getTime()/1e3+3600)},a=encodeURIComponent(this._generateSignature(o));o.device_id=encodeURICompone nt(o.device_id);var s="//"+this.apiHost+"/v2/discover/similar/assets/"+i+"?"+this._generateParamString(o,a);n.ajax({url:s,type:"GET",dataType:"json",crossDomain:!0,cache:!0,success:t.bind(this._onRelatedVideosFetched,this),error:t.bind(this._onApiError,this)})},_onRelatedVideosFetched:function(t){var n=e.HM.safeObject("discovery.relatedVideos",t,{});void 0===n.errors||n.errors&&0===n.errors.code?(this.relatedVideos=n.results||[],this.variationIds=n.variation_ids):(this.relatedVideos=[],this.variationIds=[]),this.mb.publish(e.EVENTS.REPORT_EXPERIMENT_VARIATIONS,{variationIds:this.variationIds}),this.mb.publish(e.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED,{videos:this.relatedVideos})},_onApiError:function(t,n,i){this.error=!0,this.mb.publish(e.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED,{error:!0})},_generateSignature:function(e){var n=e.pcode,i=t.reject(t.keys(e),function(e){return"pcode"===e}),r=new jsSHA(n+this._hashToString(e,"",i),"ASCII");return r.getHash("SHA-256","B64 ").substring(0,43)},_hashToString:function(e,n,i){var r="",o=i||t.keys(e);return t.each(t.sortBy(o,function(e){return e}),function(t){r+=n+t+"="+e[t]}),r},_generateParamString:function(e,t){var n="signature="+t+this._hashToString(e,"&");return n}}),o}),!function n(e,t,i){function r(a,s){if(!t[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=t[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return r(n?n:t)},u,u.exports,n,e,t,i)}return t[a].exports}for(var o="function"==typeof require&&require,a=0;a&embed_code=&expires=&tag_url="),EXTERNAL_ID:t.template("/player_api/v1/content_tree/external_id//"),CONTENT_TREE:t.template("/player_api/v1/content_tree/embed_code//"),METADATA:t.template("/player_api/v1/metadata/embed_code//?videoPcode="),SAS:t.template("/player_api/v1/authorization/embed_code// "),ANALYTICS:t.template("/reporter.js"),__end_marker:!0},e.VIDEO={MAIN:"main",ADS:"ads",ENCODING:{AUDIO:"audio", DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",MP4:"mp4",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},e.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSITION:"-100000px",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},e.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","","[timestamp]","","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL ]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:' ',__end_marker:!0},e.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:":",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:4,__end_marker:!0}}(OO,OO._)},{}],7:[function(){!function(e,t,n){e.playerParams=n.safeObject("environment.playerParams",e.playerParams,{}),e.configurePublisher=function(t){e.playerParams.pcode=e.playerParams.pcode||t.pcode||"",e.playerParams.playerBrandingId=e.playerParams.playerBrandingId||t.playerBrandingId||"",e.playerParams.debug=e.playerParams.debug||t.debug||""},e.isPublisherConfigured=function(){return e.playerParams.pcode&&e.playerParams.playerBrandingId},e.playerParams.tweaks=e.playerParams.tweaks||"",e.playerParams.tweaks=n.safeString("environment.playerParams.tweaks",e.playerParams.tweaks,""),e.playerParams.tweaks=e.playerParams.tweaks.split(","),e.tweaks={},e.tweaks["android-enable-hls"]=t.contains(e.playerParams.tweaks,"android-enable-hls"),e.tweaks["html5-fo rce-mp4"]=t.contains(e.playerParams.tweaks,"html5-force-mp4"),e.playerParams.maxAdsTimeout=e.playerParams.maxAdsTimeout||5,e.playerParams.maxVastWrapperDepth=e.playerParams.maxVastWrapperDepth||3,e.playerParams.minLiveSeekWindow=e.playerParams.minLiveSeekWindow||10,e.guid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}),e.playerCount=0,e.isProd=e.playerParams.environment&&e.playerParams.environment.match(/^prod/i),e.platform=window.navigator.platform,e.os=window.navigator.appVersion,e.supportsVideo=!!document.createElement("video").canPlayType,e.browserSupportsCors=function(){try{return t.has(new XMLHttpRequest,"withCredentials")||t.has(XMLHttpRequest.prototype,"withCredentials")}catch(e){return!1}}(),e.isWindows=function(){return e.platform.match(/Win/)}(),e.isIos=function(){return e.platform.match(/iPhone/)||e.platform.match(/iPad/)||e.platform.match(/iPod/)}(),e.isIphone=function(){ret urn e.platform.match(/iPhone/)||e.platform.match(/iPod/)}(),e.isIpad=function(){return e.platform.match(/iPad/)}(),e.iosMajorVersion=function(){try{return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/)?parseInt(window.navigator.userAgent.match(/OS (\d+)/)[1],10):null}catch(e){return null}}(),e.isAndroid=function(){return e.os.match(/Android/)}(),e.isAndroid4Plus=function(){return e.isAndroid&&!e.os.match(/Android [23]/)}(),e.isRimDevice=function(){return e.os.match(/BlackBerry/)||e.os.match(/PlayBook/)}(),e.isFirefox=function(){return!!window.navigator.userAgent.match(/Firefox/)}(),e.isChrome=function(){return!!window.navigator.userAgent.match(/Chrome/)}(),e.isSafari=function(){return!!window.navigator.userAgent.match(/AppleWebKit/)&&!window.navigator.userAgent.match(/Chrome/)}(),e.chromeMajorVersion=function(){try{return parseInt(window.navigator.userAgent.match(/Chrome.([0-9]*)/)[1],10)}catch(e){return null}}(),e.isIE=function(){return!!window.navigator.use rAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/)}(),e.isIE11Plus=function(){if(!window.navigator.userAgent.match(/Trident/))return!1;var e=window.navigator.userAgent.match(/rv:(\d*)/),t=e&&e[1];return t>=11}(),e.isWinPhone=function(){return!!e.os.match(/Windows Phone/)||!!e.os.match(/ZuneWP/)||!!e.os.match(/XBLWP/)}(),e.isSmartTV=function(){return!!window.navigator.userAgent.match(/SmartTV/)||!!window.navigator.userAgent.match(/NetCast/)}(),e.isMacOs=function(){return!e.isIos&&!!e.os.match(/Mac/)}(),e.isMacOsLionOrLater=function(){var t=e.os.match(/Mac OS X ([0-9]+)_([0-9]+)/);return null==t||t.length<3?!1:parseInt(t[1],10)>=10&&parseInt(t[2],10)>=7}(),e.isKindleHD=function(){return!!e.os.match(/Silk\/2/)}(),e.supportAds=function(){return!e.isWinPhone&&!e.os.match(/Android [23]/)}(),e.allowGesture=function(){return e.isIos}(),e.allowAutoPlay=function(){return!e.isIos&&!e.isAndroid}(),e.supportTouch=function(){ret urn!(!document.documentElement.hasOwnProperty||!document.documentElement.hasOwnProperty("ontouchstart"))}(),e.docDomain=function(){var t=null;try{t=document.domain}catch(n){}return e._.isEmpty(t)?e.isSmartTV?"SmartTV":"unknown":t}(),e.uiParadigm=function(){var t="tablet";return e.isAndroid4Plus&&e.tweaks["android-enable-hls"]?t="tablet":e.isIphone?t="mobile-native":e.os.match(/BlackBerry/)?t="mobile-native":e.os.match(/iPad/)?t="tablet":e.isKindleHD?t="mobile-native":e.os.match(/Silk/)?t="mobile":e.os.match(/Android 2/)?window.orientation%180==0&&window.outerWidth/window.devicePixelRatio<=480?t="mobile":window.outerWidth/window.devicePixelRatio<=560&&(t="mobile"):e.os.match(/Android/)?t="tablet":e.isWinPhone?t="mobile":(e.platform.match(/Mac/)||e.platform.match(/Win/)||e.platform.match(/Linux/))&&(t="desktop"),t}(),e.supportMultiVideo=function(){return e.isAndroid&&!e.isChrome?!1:!e.isIos&&!e.os.match(/Android [23]/)}(),e.require sSingleVideoElement=function(){var t=e.isIos,n=e.isAndroid&&(!e.isAndroid4Plus||e.chromeMajorVersion<40);return t||n}(),e.supportedVideoTypes=function(){if(e.tweaks["html5-force-mp4"])return{mp4:!0};if(e.isWinPhone)return{mp4:!0};if(window.navigator.userAgent.match(/SonyCEBrowser/))return{m3u8:!0};if(e.isAndroid)return e.tweaks["android-enable-hls"]&&e.isAndroid4Plus?{m3u8:!0,mp4:!0}:{mp4:!0};if(e.isSmartTV)return{mp4:!0};var t=document.createElement("video");return"function"!=typeof t.canPlayType?{}:{m3u8:!(!t.canPlayType("application/vnd.apple.mpegurl")&&!t.canPlayType("application/x-mpegURL")||e.isRimDevice||e.isMacOs&&!e.isMacOsLionOrLater),mp4:!!t.canPlayType("video/mp4"),webm:!!t.canPlayType("video/webm")}}(),e.supportedVideoProfiles=function(){return e.isIos||e.isAndroid?"baseline":null}(),e.device=function(){var t="html5";return e.isIphone?t="iphone-html5":e.isIpad?t="ipad-html5":e.isAndroid?t="android-html5":e.isRimDevice?t="rim-html5":e.i sWinPhone?t="winphone-html5":e.isSmartTV&&(t="smarttv-html5"),t}(),e.environmentRequiredFeatures=function(){var n=[];return e.os.match(/Android 2/)?n.push("html5-playback"):(n.push("html5-playback"),e.supportAds&&n.push("ads")),t.reduce(n,function(e,t){return e+t+" "},"")}(),e.supportMidRollAds=function(){return"desktop"===e.uiParadigm&&!e.isIos&&!e.isRimDevice}(),e.supportCookies=function(){document.cookie="ooyala_cookie_test=true";var e=document.cookie.indexOf("ooyala_cookie_test=true")>=0;return document.cookie="ooyala_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT",e}(),e.isSSL="https:"==document.location.protocol,e.SERVER={API:e.isSSL?e.playerParams.api_ssl_server||"https://player.ooyala.com":e.playerParams.api_server||"http://player.ooyala.com",AUTH:e.isSSL?e.playerParams.auth_ssl_server||"https://player.ooyala.com/sas":e.playerParams.auth_server||"http://player.ooyala.com/sas",ANALYTICS:e.isSSL?e.playerParams.analytics_ssl_server||"http s://player.ooyala.com":e.playerParams.analytics_server||"http://player.ooyala.com",HASTUR:e.isSSL?e.playerParams.hastur_ssl_server||(e.isProd?"https://l.ooyala.com/player_events":"https://l-staging.ooyala.com/player_events"):e.playerParams.hastur_server||(e.isProd?"http://l.ooyala.com/player_events":"http://l-staging.ooyala.com/player_events")},e.requiredInEnvironment=e.featureEnabled=function(t){return!!e.environmentRequiredFeatures.match(new RegExp(t))},e.chromeExtensionEnabled=!!document.getElementById("ooyala-extension-installed"),e.locale="",e.setLocale=function(t){e.locale=t.toUpperCase()},e.getLocale=function(){return(e.locale||document.documentElement.lang||navigator.language||navigator.userLanguage||"en").substr(0,2).toUpperCase()}}(OO,OO._,OO.HM)},{}],8:[function(){!function(e,t,n){e.getRandomString=function(){return Math.random().toString(36).substring(7)},e.safeClone=function(i){if(t.isNumber(i)||t.isString(i)||t.isBoolean(i)||t.isFunction(i)||t.isNull(i)||t.isUndefined( i))return i;var r=i instanceof Array?[]:{};try{n.extend(!0,r,i)}catch(o){e.log("deep clone error",o)}return r},e.d=function(){e.isDebug&&e.log.apply(e,arguments),e.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(e.safeClone(arguments))+"")},e.inherit=function(t,n){if("function"!=typeof t)return e.log("invalid inherit, ParentClass need to be a class",t),null;var i=function(){t.apply(this,arguments),"function"==typeof n&&n.apply(this,arguments)},r=new t;return e._.extend(i.prototype,r),i.prototype.parentClass=r,i};var i={};e.attachStyle=function(e,t){var r=n('").appendTo("head");i[t]=i[t]||[],i[t].push(r)},e.removeStyles=function(t){e._.each(i[t],function(e){e.remove()})},e.getInnerProperty=function(e,n){for(var i=e,r=n;r.length>0;){var o=r.shift();if(t.isNull(i)||!t.isObject(i)||t.isFunction(i)||t.isArray(i))return null;i=i[o]}return i},e.formatSeconds=function(e){var t=parseInt(e,10)%60,n=parseInt(e/3600,10),i=parseInt((e-3600*n)/60,10);return 10>n&&(n ="0"+n),10>i&&(i="0"+i),10>t&&(t="0"+t),parseInt(n,10)>0?n+":"+i+":"+t:i+":"+t},e.timeStringToSeconds=function(e){var n=(e||"").split(":");return t.reduce(n,function(e,t){return 60*e+parseInt(t,10)},0)},e.leftPadding=function(e,t){for(var n="0",i=e?e.toString():"";i.length>16,n=(65280&e)>>8,i=255&e;return[t,n,i]},e.changeColor=function(t,n,i){var r=i?Math.max:Math.min,o=i?0:255,a=Math.round(255*n)*(i?-1:1),s=e.hexToRgb(t);return[e.leftPadding(r(s[0]+a,o).toString(16),2),e.leftPadding(r(s[1]+a,o).toString(16),2),e.leftPadding(r(s[2]+a,o).toString(16),2)].join("")},e.decode64=function(e){e=e.replace(/\n/g,"");var t,n="",i=0,r=[],o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";if(window.atob)return atob(e);do{for(t=0;4>t;t++)r[t]=o.indexOf(e.charAt(i++));n+=String.fromCharCode(r[0]<<2|r[1]>>4,64==r[2]?0:(15&r[1])<<4|r[2]>>2,64==r[3]?0:(3&r[2])<<6|r[3])}while(i-1||e.toLowerCase().ind exOf("yes")>-1:!!e},e.regexEscape=function(e){var t=/[<>()\[\]{}]/g;return e.replace(t,"\\$&")},e.getNormalizedTagUrl=function(n,i){var r=(new Date).getTime(),o=escape(document.URL),a=function(i,r){t.each(i,function(t){var i=new RegExp("("+e.regexEscape(t)+")","gi");n=n.replace(i,r)},this)};return a(e.TEMPLATES.RANDOM_PLACE_HOLDER,r),a(e.TEMPLATES.REFERAK_PLACE_HOLDER,o),i&&a(e.TEMPLATES.EMBED_CODE_PLACE_HOLDER,i),n},e.safeSeekRange=function(e){return{start:e.length>0?e.start(0):0,end:e.length>0?e.end(0):0}},e.loadedJS=e.loadedJS||{},e.jsOnSuccessList=e.jsOnSuccessList||{},e.safeFuncCall=function(t){if("function"==typeof t)try{t.apply()}catch(n){e.log("Can not invoke function!",n)}},e.loadScriptOnce=function(t,i,r,o){return e.jsOnSuccessList[t]=e.jsOnSuccessList[t]||[],e.loadedJS[t]?("loaded"===e.loadedJS[t]?e.safeFuncCall(i):"loading"===e.loadedJS[t]&&e.jsOnSuccessList[t].unshift(i),!1):(e.loadedJS[t]="loading",n.ajax({url:t,type:"GET",cache:!0,da taType:"script",timeout:o||15e3,success:function(){e.loadedJS[t]="loaded",e.jsOnSuccessList[t].unshift(i),e._.each(e.jsOnSuccessList[t],function(t){e.safeFuncCall(t)},this),e.jsOnSuccessList[t]=[]},error:function(){e.safeFuncCall(r)}}),!0)};try{e.localStorage=window.localStorage}catch(r){e.log(r)}e.localStorage||(e.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,t){e&&(document.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/", this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},e.localStorage.length=(document.cookie.match(/\=/g)||e.localStorage).length),e.setItem=function(t,n){try{e.localStorage.setItem(t,n)}catch(i){e.log(i)}},e.JSON=window.JSON}(OO,OO._,OO.$)},{}],9:[function(e,t,n){var i=function(e,t){var n=function(t){if(this.config=t||{},!e.isObject(this.config))throw new Error("Hazmat is not initialized properly");this.fail=e.isFunction(this.config.fail)?this.config.fail:n.fail,this.warn=e.isFunction(this.config.warn)?this.config.warn:n.warn,this.log=e.isFunction(this.config.log)?this.config.log:n.log};return e.extend(n,{ID_REGEX:/^[\_A-Za-z0-9]+$/,create:function(e){return new n(e)},noConflict:function(){return t.Hazmat=n.original,n},log:function(){console&&e.isFunction(console.log)&&console.log.apply(console,arguments)},fail:function(e,t){var i=e||"",r=t||{};throw n.log("Hazmat Fai lure::",i,r),new Error("Hazmat Failure "+i.toString())},warn:function(e,t){var i=e||"",r=t||{};n.log("Hazmat Warning::",i,r)},fixDomId:function(t){return e.isString(t)&&t.length>0?t.replace(/[^A-Za-z0-9\_]/g,""):null},isDomId:function(t){return e.isString(t)&&t.match(n.ID_REGEX)},__placeholder:!0}),e.extend(n.prototype,{_safeValue:function(t,n,i,r){var o=i;return e.isFunction(i)&&(i=e.once(function(){try{return o.apply(this,arguments)}catch(e){}})),r.checker(n)?n:r.evalFallback&&e.isFunction(i)&&r.checker(i(n))?(this.warn("Expected valid "+r.name+" for "+t+" but was able to sanitize it:",[n,i(n)]),i(n)):r.checker(o)?(this.warn("Expected valid "+r.name+" for "+t+" but was able to fallback to default value:",[n,o]),o):void this.fail("Expected valid "+r.name+" for "+t+" but received:",n)},safeString:function(t,n,i){return this._safeValue(t,n,i,{name:"String",checker:e.isString,evalFallback:!0})},safeStringOrNull:function(t,n,i){return null==n? n:this._safeValue(t,n,i,{name:"String",checker:e.isString,evalFallback:!0})},safeDomId:function(e,t,i){return this._safeValue(e,t,i,{name:"DOM ID",checker:n.isDomId,evalFallback:!0})},safeFunction:function(t,n,i){return this._safeValue(t,n,i,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeFunctionOrNull:function(t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeObject:function(t,n,i){return this._safeValue(t,n,i,{name:"Object",checker:e.isObject,evalFallback:!1})},safeObjectOrNull:function(t,n,i){return null==n?n:this._safeValue(t,n,i,{name:"Object",checker:e.isObject,evalFallback:!1})},safeArray:function(t,n,i){return this._safeValue(t,n,i,{name:"Array",checker:e.isArray,evalFallback:!1})},safeArrayOfElements:function(t,n,i,r){var o=this._safeValue(t,n,r,{name:"Array",checker:e.isArray,evalFallback:!1});return e.map(o,i)},__placeholder:!0}),n};if("undefined"!=typeof window&&"undefined"!=typeof window._){v ar r=i(window._,window);r.original=window.Hazmat,window.Hazmat=r}else{var o=e("underscore"),r=i(o);o.extend(n,r)}},{underscore:11}],10:[function(e,t){!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=J.type(e);return"function"===n||J.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(J.isFunction(t))return J.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return J.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(se.test(t))return J.filter(t,e,n);t=J.filter(t,e)}return J.grep(e,function(e){return z.call(t,e)>=0!==n})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t=fe[e]={};return J.each(e.match( he)||[],function(e,n){t[n]=!0}),t}function a(){Q.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1),J.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+s.uid++}function l(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(be,"-$1").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:ye.test(n)?J.parseJSON(n):n}catch(r){}ve.set(e,t,n)}else n=void 0;return n}function c(){return!0}function u(){return!1}function d(){try{return Q.activeElement}catch(e){}}function p(e,t){return J.nodeName(e,"table")&&J.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function h(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function f(e){var t=Me.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e, t){for(var n=0,i=e.length;i>n;n++)ge.set(e[n],"globalEval",!t||ge.get(t[n],"globalEval"))}function E(e,t){var n,i,r,o,a,s,l,c;if(1===t.nodeType){if(ge.hasData(e)&&(o=ge.access(e),a=ge.set(t,o),c=o.events)){delete a.handle,a.events={};for(r in c)for(n=0,i=c[r].length;i>n;n++)J.event.add(t,r,c[r][n])}ve.hasData(e)&&(s=ve.access(e),l=J.extend({},s),ve.set(t,l))}}function g(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&J.nodeName(e,t)?J.merge([e],n):n}function v(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function y(t,n){var i,r=J(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(r[0]))?i.display:J.css(r[0],"display");return r.detach(),o}function b(e){var t=Q,n=Be[e];return n||(n=y(e,t),"none"!==n&a mp;&n||(Ue=(Ue||J("")).appendTo(t.documentElement),t=Ue[0].contentDocument,t.write(),t.close(),n=y(e,t),Ue.detach()),Be[e]=n),n}function _(e,t,n){var i,r,o,a,s=e.style;return n=n||We(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||J.contains(e.ownerDocument,e)||(a=J.style(e,t)),He.test(a)&&je.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function S(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function A(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,r=$e.length;r--;)if(t=$e[r]+n,t in e)return t;return i}function T(e,t,n){var i=Ge.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function C(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=J.css(e,n+Se[o],!0,r)),i?("content"===n&&(a-=J.css(e,"padding"+Se[o],! 0,r)),"margin"!==n&&(a-=J.css(e,"border"+Se[o]+"Width",!0,r))):(a+=J.css(e,"padding"+Se[o],!0,r),"padding"!==n&&(a+=J.css(e,"border"+Se[o]+"Width",!0,r)));return a}function N(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=We(e),a="border-box"===J.css(e,"boxSizing",!1,o);if(0>=r||null==r){if(r=_(e,t,o),(0>r||null==r)&&(r=e.style[t]),He.test(r))return r;i=a&&(X.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+C(e,t,n||(a?"border":"content"),i,o)+"px"}function O(e,t){for(var n,i,r,o=[],a=0,s=e.length;s>a;a++)i=e[a],i.style&&(o[a]=ge.get(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Ae(i)&&(o[a]=ge.access(i,"olddisplay",b(i.nodeName)))):(r=Ae(i),"none"===n&&r||ge.set(i,"olddisplay",r?n:J.css(i,"display"))));for(a=0;s>a;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t ?o[a]||"":"none"));return e}function R(e,t,n,i,r){return new R.prototype.init(e,t,n,i,r)}function I(){return setTimeout(function(){Xe=void 0}),Xe=J.now()}function D(e,t){var n,i=0,r={height:e};for(t=t?1:0;4>i;i+=2-t)n=Se[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function w(e,t,n){for(var i,r=(nt[t]||[]).concat(nt["*"]),o=0,a=r.length;a>o;o++)if(i=r[o].call(n,t,e))return i}function P(e,t,n){var i,r,o,a,s,l,c,u,d=this,p={},h=e.style,f=e.nodeType&&Ae(e),m=ge.get(e,"fxshow");n.queue||(s=J._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,J.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=J.css(e,"display"),u="none"===c?ge.get(e,"olddisplay")||b(e.nodeName):c,"inline"===u&&"none"===J.css(e,"float")& amp;&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],Ze.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;f=!0}p[i]=m&&m[i]||J.style(e,i)}else c=void 0;if(J.isEmptyObject(p))"inline"===("none"===c?b(e.nodeName):c)&&(h.display=c);else{m?"hidden"in m&&(f=m.hidden):m=ge.access(e,"fxshow",{}),o&&(m.hidden=!f),f?J(e).show():d.done(function(){J(e).hide()}),d.done(function(){var t;ge.remove(e,"fxshow");for(t in p)J.style(e,t,p[t])});for(i in p)a=w(f?m[i]:0,i,d),i in m||(m[i]=a.start,f&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function x(e,t){var n,i,r,o,a;for(n in e)if(i=J.camelCase(n),r=t[i],o=e[n],J.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),a=J.cssHooks[i],a&&"expand"in a){o=a.expand(o),delet e e[i];for(n in o)n in e||(e[n]=o[n],t[n]=r)}else t[i]=r}function k(e,t,n){var i,r,o=0,a=tt.length,s=J.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Xe||I(),n=Math.max(0,c.startTime+c.duration-t),i=n/c.duration||0,o=1-i,a=0,l=c.tweens.length;l>a;a++)c.tweens[a].run(o);return s.notifyWith(e,[c,o,n]),1>o&&l?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:J.extend({},t),opts:J.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xe||I(),duration:n.duration,tweens:[],createTween:function(t,n){var i=J.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),u=c.props;for(x(u,c.opts.specialEasing);a>o;o++)if(i=tt[o].call(c,e,u,c.opts))return i;return J.map(u,w,c),J.isFunction(c.opts.start)&&c.opts.start. call(e,c),J.fx.timer(J.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function L(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(he)||[];if(J.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function M(e,t,n,i){function r(s){var l;return o[s]=!0,J.each(e[s]||[],function(e,s){var c=s(t,n,i);return"string"!=typeof c||a||o[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)}),l}var o={},a=e===yt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function V(e,t){var n,i,r=J.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&J.extend(!0,e,i),e}function F(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&a mp;&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}function U(e,t,n,i){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=c[l+" "+o]||c["* "+o],!a)for(r in c)if(s=r.split(" "),s[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[r]:c[r]!==!0&&(o=s[0],u.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function B(e,t,n,i){var r;if(J.isArray(t))J.each(t,function(t,r){n||Tt.test(e)?i(e,r):B(e+"["+("object"==typeof r?t: "")+"]",r,n,i)});else if(n||"object"!==J.type(t))i(e,t);else for(r in t)B(e+"["+r+"]",t[r],n,i)}function j(e){return J.isWindow(e)?e:9===e.nodeType&&e.defaultView}var H=[],W=H.slice,Y=H.concat,G=H.push,z=H.indexOf,q={},K=q.toString,$=q.hasOwnProperty,X={},Q=e.document,Z="2.1.3",J=function(e,t){return new J.fn.init(e,t)},ee=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ne=/-([\da-z])/gi,ie=function(e,t){return t.toUpperCase()};J.fn=J.prototype={jquery:Z,constructor:J,selector:"",length:0,toArray:function(){return W.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:W.call(this)},pushStack:function(e){var t=J.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return J.each(this,e,t)},map:function(e){return this.pushStack(J.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1 )},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:G,sort:H.sort,splice:H.splice},J.extend=J.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||J.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],i=e[t],a!==i&&(c&&i&&(J.isPlainObject(i)||(r=J.isArray(i)))?(r?(r=!1,o=n&&J.isArray(n)?n:[]):o=n&&J.isPlainObject(n)?n:{},a[t]=J.extend(c,o,i)):void 0!==i&&(a[t]=i));return a},J.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===J.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:f unction(e){return!J.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"!==J.type(e)||e.nodeType||J.isWindow(e)?!1:!e.constructor||$.call(e.constructor.prototype,"isPrototypeOf")},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?q[K.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=J.trim(e),e&&(1===e.indexOf("use strict")?(t=Q.createElement("script"),t.text=e,Q.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(te,"ms-").replace(ne,ie)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var r,o=0,a=e.length,s=n(e);if(i){if(s)for(;a>o&&(r=t.apply(e[o],i),r!==!1);o++);else for(o in e)if(r=t.apply(e[o],i),r===!1)break}else if(s)for(;a>o&&(r=t.call(e[o],o,e[o]),r!==!1);o++);else for(o in e)if(r=t.call(e[o],o,e[o]) ,r===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ee,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?J.merge(i,"string"==typeof e?[e]:e):G.call(i,e)),i},inArray:function(e,t,n){return null==t?-1:z.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;n>i;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],o=0,a=e.length,s=!n;a>o;o++)i=!t(e[o],o),i!==s&&r.push(e[o]);return r},map:function(e,t,i){var r,o=0,a=e.length,s=n(e),l=[];if(s)for(;a>o;o++)r=t(e[o],o,i),null!=r&&l.push(r);else for(o in e)r=t(e[o],o,i),null!=r&&l.push(r);return Y.apply([],l)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(n=e[t],t=e,e=n),J.isFunction(e)?(i=W.call(arguments,2),r=function(){return e.apply(t||this,i.concat(W.call(arguments)))},r.guid=e.guid=e.guid||J.guid++,r):void 0},now:Date.now,support:X}),J.each("Boolean Number String Function Array Date RegExp Obje ct Error".split(" "),function(e,t){q["[object "+t+"]"]=t.toLowerCase()});var re=function(e){function t(e,t,n,i){var r,o,a,s,l,c,d,h,f,m;if((t?t.ownerDocument||t:B)!==P&&w(t),t=t||P,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!i&&k){if(11!==s&&(r=ve.exec(e)))if(a=r[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&F(t,o)&&o.id===a)return n.push(o),n}else{if(r[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&_.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(a)),n}if(_.qsa&&(!L||!L.test(e))){if(h=d=U,f=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=C(e),(d=t.getAttribute("id"))?h=d.replace(be,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",l=c.length;l--;)c[l]=h+p(c[l]);f=ye.test(e)&&u(t.par entNode)||t,m=c.join(",")}if(m)try{return Z.apply(n,f.querySelectorAll(m)),n}catch(E){}finally{d||t.removeAttribute("id")}}}return O(e.replace(le,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>S.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[U]=!0,e}function r(e){var t=P.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=e.length;i--;)S.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||q)-(~e.sourceIndex||q);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return i(function (t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function u(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function h(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=H++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,l,c=[j,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(l=t[U]||(t[U]={}), (s=l[i])&&s[0]===j&&s[1]===o)return c[2]=s[2];if(l[i]=c,c[2]=e(t,n,a))return!0}}}function f(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function m(e,n,i){for(var r=0,o=n.length;o>r;r++)t(e,n[r],i);return i}function E(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,c=null!=t;l>s;s++)(o=e[s])&&(!n||n(o,i,r)) &&(a.push(o),c&&t.push(s));return a}function g(e,t,n,r,o,a){return r&&!r[U]&&(r=g(r)),o&&!o[U]&&(o=g(o,a)),i(function(i,a,s,l){var c,u,d,p=[],h=[],f=a.length,g=i||m(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?g:E(g,p,e,s,l),y=n?o||(i?e:f||r)?[]:a:v;if(n&&n(v,y,s,l),r)for(c=E(y,h),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(y[h[u]]=!(v[h[u]]=d));if(i){if(o||e){if(o){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(v[u]=d);o(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=o?ee(i,d):p[u])>-1&&(i[c]=!(a[c]=d))}}else y=E(y===a?y.splice(f,y.length):y),o?o(null,a,y,l):Z.apply(a,y)})}function v(e){for(var t,n,i,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,l=h(function(e){return e===t},a,!0),c=h(function(e){return ee(t,e)>-1},a,!0),u=[function(e,n,i){var r=!o&&(i||n!==R)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,r}];r>s;s++)if(n=S.relative[e[s].type])u=[h(f(u),n)];else{ if(n=S.filter[e[s].type].apply(null,e[s].matches),n[U]){for(i=++s;r>i&&!S.relative[e[i].type];i++);return g(s>1&&f(u),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,i>s&&v(e.slice(s,i)),r>i&&v(e=e.slice(i)),r>i&&p(e))}u.push(n)}return f(u)}function y(e,n){var r=n.length>0,o=e.length>0,a=function(i,a,s,l,c){var u,d,p,h=0,f="0",m=i&&[],g=[],v=R,y=i||o&&S.find.TAG("*",c),b=j+=null==v?1:Math.random()||.1,_=y.length;for(c&&(R=a!==P&&a);f!==_&&null!=(u=y[f]);f++){if(o&&u){for(d=0;p=e[d++];)if(p(u,a,s)){l.push(u);break}c&&(j=b)}r&&((u=!p&&u)&&h--,i&&m.push(u))}if(h+=f,r&&f!==h){for(d=0;p=n[d++];)p(m,g,a,s);if(i){if(h>0)for(;f--;)m[f]||g[f]||(g[f]=X.call(l));g=E(g)}Z.apply(l,g),c&&!i&&g.length>0&&h+n.length>1&&t.uniqueSort(l)}return c&&(j=b,R =v),m};return r?i(a):a}var b,_,S,A,T,C,N,O,R,I,D,w,P,x,k,L,M,V,F,U="sizzle"+1*new Date,B=e.document,j=0,H=0,W=n(),Y=n(),G=n(),z=function(e,t){return e===t&&(D=!0),0},q=1<<31,K={}.hasOwnProperty,$=[],X=$.pop,Q=$.push,Z=$.push,J=$.slice,ee=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re=ie.replace("w","w#"),oe="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ce=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\" ]*?)"+ne+"*\\]","g"),pe=new RegExp(ae),he=new RegExp("^"+re+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,Ee=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,_e=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Se=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ae=function(){w()};try{Z.apply($=J.call(B.childNodes),B.childNodes),$[B.childNodes.length].no deType}catch(Te){Z={apply:$.length?function(e,t){Q.apply(e,J.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}_=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},w=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:B;return i!==P&&9===i.nodeType&&i.documentElement?(P=i,x=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ae,!1):n.attachEvent&&n.attachEvent("onunload",Ae)),k=!T(i),_.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByTagName=r(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),_.getElementsByClassName=ge.test(i.getElementsByClassName),_.getById=r(function(e){return x.appendChild(e).id=U,!i.getElementsByName||!i.getElementsByName(U).length}),_.getById?(S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&k){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},S.filter.ID=function(e){var t=e.replace(_e,Se);return function(e){return e.getAttribute("id")===t}}):(delete S.find.ID,S.filter.ID=function(e){var t=e.replace(_e,Se);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),S.find.TAG=_.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):_.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},S.find.CLASS=_.getElementsByClassName&&function(e,t){return k?t.getElementsByClassName(e):void 0},M=[],L=[],(_.qsa=ge.test(i.querySelectorAll))&&(r(function(e){x.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+ne+"*(?:''|\"\")"),e.queryS electorAll("[selected]").length||L.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+U+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+U+"+*").length||L.push(".#.+[+~]")}),r(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(_.matchesSelector=ge.test(V=x.matches||x.webkitMatchesSelector||x.mozMatchesSelector||x.oMatchesSelector||x.msMatchesSelector))&&r(function(e){_.disconnectedMatch=V.call(e,"div"),V.call(e,"[s!='']:x"),M.push("!=",ae)}),L=L.length&&new RegExp(L.join("|")),M=M.length&&new RegExp(M.join("|")),t=ge.test(x.compareDocumentPosition),F=t||ge.test(x.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&am p;&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===i||e.ownerDocument===B&&F(B,e)?-1:t===i||t.ownerDocument===B&&F(B,t)?1:I?ee(I,e)-ee(I,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,r=0,o=e.parentNode,s=t.parentNode,l=[e],c=[t];if(!o||!s)return e===i?-1:t===i?1:o?-1:s?1:I?ee(I,e)-ee(I,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;l[r]===c[r];)r++;return r?a(l[r],c[r]):l[r]===B?-1:c[r]===B?1:0},i):P},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelect or=function(e,n){if((e.ownerDocument||e)!==P&&w(e),n=n.replace(de,"='$1']"),!(!_.matchesSelector||!k||M&&M.test(n)||L&&L.test(n)))try{var i=V.call(e,n);if(i||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){}return t(n,P,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==P&&w(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==P&&w(e);var n=S.attrHandle[t.toLowerCase()],i=n&&K.call(S.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==i?i:_.attributes||!k?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(D=!_.detectDuplicates,I=!_.sortStable&&e.slice(0),e.sort(z),D){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return I=null,e},A=t.getText=function(e){var t,n="",i=0,r=e.nod eType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=A(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=A(t);return n},S=t.selectors={cacheLength:50,createPseudo:i,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(_e,Se),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,Se),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)& amp;&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(_e,Se).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:n?(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(se," ")+" ").indexOf(i)>-1:"|="===n?o===i||o.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t ,n,l){var c,u,d,p,h,f,m=o!==a?"nextSibling":"previousSibling",E=t.parentNode,g=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(E){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?E.firstChild:E.lastChild],a&&v){for(u=E[U]||(E[U]={}),c=u[e]||[],h=c[0]===j&&c[1],p=c[0]===j&&c[2],d=h&&E.childNodes[h];d=++h&&d&&d[m]||(p=h=0)||f.pop();)if(1===d.nodeType&&++p&&d===t){u[e]=[j,h,p];break}}else if(v&&(c=(t[U]||(t[U]={}))[e])&&c[0]===j)p=c[1];else for(;(d=++h&&d&&d[m]||(p=h=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++p||(v&&((d[U]||(d[U]={}))[e]=[j,p]),d!==t)););return p-=r,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(e,n){var r,o=S.pseudos[e]||S.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[U]?o(n):o.length>1? (r=[e,e,"",n],S.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),a=r.length;a--;)i=ee(e,r[a]),e[i]=!(t[i]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=N(e.replace(le,"$1"));return r[U]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(_e,Se),function(t){return(t.textContent||t.innerText||A(t)).indexOf(e)>-1}}),lang:i(function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(_e,Se).toLowerCase(),function(t){var n;do if(n=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.sl ice(1)===t.id},root:function(e){return e===x},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return Ee.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(functio n(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:c(function(e,t,n){for(var i=0>n?n+t:n;++i2&&"ID"===(a=o[0]).type&&_.getById&&9===t.nodeType&&k&&S.relative[o[1].type]){if(t=(S.find.ID(a.matches[0].replace(_e,Se),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=fe.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((l=S.find[s])&&(i=l(a.matches[0].replace(_e,Se),ye.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&p(o),!e)return Z.apply(n,i),n;break}}return(c||N(e,d))(i,t,!k,n,ye.test(e)&&u(t.parentNode)||t),n},_.sortStable=U.split("").sort(z).join("")===U,_.detectDuplicat es=!!D,w(),_.sortDetached=r(function(e){return 1&e.compareDocumentPosition(P.createElement("div"))}),r(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),_.attributes&&r(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);J.find=re,J.expr=re.selectors,J.expr[":"]=J.expr.pseudos,J.unique=re.uniqueSort,J.text=re.getText,J.isXMLDoc=re.isXML,J.contains=re.contains;var oe=J.expr.match.needsContext,ae=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,se=/^.[^:#\[\.,]*$/;J.filter=function(e,t,n){var i=t[0];ret urn n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?J.find.matchesSelector(i,e)?[i]:[]:J.find.matches(e,J.grep(t,function(e){return 1===e.nodeType}))},J.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(J(e).filter(function(){for(t=0;n>t;t++)if(J.contains(r[t],this))return!0}));for(t=0;n>t;t++)J.find(e,r[t],i);return i=this.pushStack(n>1?J.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&oe.test(e)?J(e):e||[],!1).length}});var le,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ue=J.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ce.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||le).find(e):this.constr uctor(t).find(e);if(n[1]){if(t=t instanceof J?t[0]:t,J.merge(this,J.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:Q,!0)),ae.test(n[1])&&J.isPlainObject(t))for(n in t)J.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return i=Q.getElementById(n[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Q,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):J.isFunction(e)?"undefined"!=typeof le.ready?le.ready(e):e(J):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),J.makeArray(e,this))};ue.prototype=J.fn,le=J(Q);var de=/^(?:parents|prev(?:Until|All))/,pe={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&J(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),J.fn.exte nd({has:function(e){var t=J(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(J.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=oe.test(e)||"string"!=typeof e?J(e,t||this.context):0;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&J.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?J.unique(o):o)},index:function(e){return e?"string"==typeof e?z.call(J(e),this[0]):z.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(J.unique(J.merge(this.get(),J(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),J.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return J.dir(e,"parentNode")},parentsUntil:function(e,t,n){return J.dir(e,"par entNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return J.dir(e,"nextSibling")},prevAll:function(e){return J.dir(e,"previousSibling")},nextUntil:function(e,t,n){return J.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return J.dir(e,"previousSibling",n)},siblings:function(e){return J.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return J.sibling(e.firstChild)},contents:function(e){return e.contentDocument||J.merge([],e.childNodes)}},function(e,t){J.fn[e]=function(n,i){var r=J.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=J.filter(i,r)),this.length>1&&(pe[e]||J.unique(r),de.test(e)&&r.reverse()),this.pushStack(r)}});var he=/\S+/g,fe={};J.Callbacks=function(e){e="string"==typeof e?fe[e]||o(e):J.extend({},e);var t,n,i,r,a,s,l=[],c=!e.once&&[],u=function(o){for(t=e.memory&&o,n=!0,s=r||0,r=0,a=l.length,i=!0; l&&a>s;s++)if(l[s].apply(o[0],o[1])===!1&&e.stopOnFalse){t=!1;break}i=!1,l&&(c?c.length&&u(c.shift()):t?l=[]:d.disable())},d={add:function(){if(l){var n=l.length;!function o(t){J.each(t,function(t,n){var i=J.type(n);"function"===i?e.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==i&&o(n)})}(arguments),i?a=l.length:t&&(r=n,u(t))}return this},remove:function(){return l&&J.each(arguments,function(e,t){for(var n;(n=J.inArray(t,l,n))>-1;)l.splice(n,1),i&&(a>=n&&a--,s>=n&&s--)}),this},has:function(e){return e?J.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this},disable:function(){return l=c=t=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,t||d.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!l||n&&!c||(t=t||[],t=[e,t.slice?t.slice():t],i?c.push(t):u(t)),this},fire:function(){return d.fi reWith(this,arguments),this},fired:function(){return!!n}};return d},J.extend({Deferred:function(e){var t=[["resolve","done",J.Callbacks("once memory"),"resolved"],["reject","fail",J.Callbacks("once memory"),"rejected"],["notify","progress",J.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return J.Deferred(function(n){J.each(t,function(t,o){var a=J.isFunction(e[t])&&e[t];r[o[1]](function(){var e=a&&a.apply(this,arguments);e&&J.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?J.extend(e,i):i}},r={};return i.pipe=i.then,J.each(t,function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,argumen ts),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=W.call(arguments),a=o.length,s=1!==a||e&&J.isFunction(e.promise)?a:0,l=1===s?e:J.Deferred(),c=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?W.call(arguments):r,i===t?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);a>r;r++)o[r]&&J.isFunction(o[r].promise)?o[r].promise().done(c(r,i,o)).fail(l.reject).progress(c(r,n,t)):--s;return s||l.resolveWith(i,o),l.promise()}});var me;J.fn.ready=function(e){return J.ready.promise().done(e),this},J.extend({isReady:!1,readyWait:1,holdReady:function(e){e?J.readyWait++:J.ready(!0)},ready:function(e){(e===!0?--J.readyWait:J.isReady)||(J.isReady=!0,e!==!0&&--J.readyWait>0||(me.resolveWith(Q,[J]),J.fn.triggerHandler&&(J(Q).triggerHandler("ready"),J(Q).off("ready"))))}}),J.ready.promise=function(t){return me||(me=J.Deferred(),"co mplete"===Q.readyState?setTimeout(J.ready):(Q.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",a,!1))),me.promise(t)},J.ready.promise();var Ee=J.access=function(e,t,n,i,r,o,a){var s=0,l=e.length,c=null==n;if("object"===J.type(n)){r=!0;for(s in n)J.access(e,t,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,J.isFunction(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(J(e),n)})),t))for(;l>s;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):o};J.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},s.uid=1,s.accepts=J.acceptData,s.prototype={key:function(e){if(!s.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=s.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(i){t[this.expando]=n,J.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var i,r=this.key(e),o=this.cache[r];if("string"==typeof t)o[t]=n;else if(J.isEmptyObject(o))J. extend(this.cache[r],t);else for(i in t)o[i]=t[i];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,J.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{J.isArray(t)?i=t.concat(t.map(J.camelCase)):(r=J.camelCase(t),t in a?i=[t,r]:(i=r,i=i in a?[i]:i.match(he)||[])),n=i.length;for(;n--;)delete a[i[n]]}},hasData:function(e){return!J.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var ge=new s,ve=new s,ye=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,be=/([A-Z])/g;J.extend({hasData:function(e){return ve.hasData(e)||ge.hasData(e)},data:function(e,t,n){return ve.access(e,t,n)},removeData:function(e,t){ve.remove(e,t)},_data:function(e,t,n){return ge.access(e, t,n)},_removeData:function(e,t){ge.remove(e,t)}}),J.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=ve.get(o),1===o.nodeType&&!ge.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=J.camelCase(i.slice(5)),l(o,i,r[i])));ge.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){ve.set(this,e)}):Ee(this,function(t){var n,i=J.camelCase(e);if(o&&void 0===t){if(n=ve.get(o,e),void 0!==n)return n;if(n=ve.get(o,i),void 0!==n)return n;if(n=l(o,i,void 0),void 0!==n)return n}else this.each(function(){var n=ve.get(this,i);ve.set(this,i,t),-1!==e.indexOf("-")&&void 0!==n&&ve.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ve.remove(this,e)})}}),J.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=ge.get(e,t),n&&(!i||J.isArray(n)?i=ge.a ccess(e,t,J.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=J.queue(e,t),i=n.length,r=n.shift(),o=J._queueHooks(e,t),a=function(){J.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ge.get(e,n)||ge.access(e,n,{empty:J.Callbacks("once memory").add(function(){ge.remove(e,[t+"queue",n])})})}}),J.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length x ",X.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ce="undefined";X.focusinBubbles="onfocusin"in e;var Ne=/^key/,Oe=/^(?:mouse|pointer|contextmenu)|click/,Re=/^(?:focusinfocus|focusoutblur)$/,Ie=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,d,p,h,f,m,E=ge.get(e);if(E)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=J.guid++),(l=E.events)||(l=E.events={}),(a=E.handle)||(a=E.handle=function(t){return typeof J!==Ce&&J.event.triggered!==t.type?J.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(he)||[""],c=t.length;c--;)s=Ie.exec(t[c])||[],h=m=s[1],f=(s[2]||"").split(".").sort(),h&&(d=J.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=J.event.special[h]||{},u=J.extend({type:h,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&J.expr.match.needsContext.test(r),namespace:f.join(".")},o),(p=l[h])||(p=l[h]=[],p.delegateCount=0,d.setup&&d.setup.call(e,i,f, a)!==!1||e.addEventListener&&e.addEventListener(h,a,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),J.event.global[h]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,d,p,h,f,m,E=ge.hasData(e)&&ge.get(e);if(E&&(l=E.events)){for(t=(t||"").match(he)||[""],c=t.length;c--;)if(s=Ie.exec(t[c])||[],h=m=s[1],f=(s[2]||"").split(".").sort(),h){for(d=J.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,p=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)u=p[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&d.teardown.call(e,f,E.handle)!==!1||J.removeEvent(e,h,E.handle),delete l[h])}else for(h in l)J.event. remove(e,h+t[c],n,i,!0);J.isEmptyObject(l)&&(delete E.handle,ge.remove(e,"events"))}},trigger:function(t,n,i,r){var o,a,s,l,c,u,d,p=[i||Q],h=$.call(t,"type")?t.type:t,f=$.call(t,"namespace")?t.namespace.split("."):[];if(a=s=i=i||Q,3!==i.nodeType&&8!==i.nodeType&&!Re.test(h+J.event.triggered)&&(h.indexOf(".")>=0&&(f=h.split("."),h=f.shift(),f.sort()),c=h.indexOf(":")<0&&"on"+h,t=t[J.expando]?t:new J.Event(h,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=f.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:J.makeArray(n,[t]),d=J.event.special[h]||{},r||!d.trigger||d.trigger.apply(i,n)!==!1)){if(!r&&!d.noBubble&&!J.isWindow(i)){for(l=d.delegateType||h,Re.test(l+h)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(i.ownerDocument||Q)&&p.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=p[o++])& amp;&!t.isPropagationStopped();)t.type=o>1?l:d.bindType||h,u=(ge.get(a,"events")||{})[t.type]&&ge.get(a,"handle"),u&&u.apply(a,n),u=c&&a[c],u&&u.apply&&J.acceptData(a)&&(t.result=u.apply(a,n),t.result===!1&&t.preventDefault());return t.type=h,r||t.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),n)!==!1||!J.acceptData(i)||c&&J.isFunction(i[h])&&!J.isWindow(i)&&(s=i[c],s&&(i[c]=null),J.event.triggered=h,i[h](),J.event.triggered=void 0,s&&(i[c]=s)),t.result}},dispatch:function(e){e=J.event.fix(e);var t,n,i,r,o,a=[],s=W.call(arguments),l=(ge.get(this,"events")||{})[e.type]||[],c=J.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(a=J.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped(); )(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,i=((J.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==e.type){for(i=[],n=0;s>n;n++)o=t[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?J(r,this).index(l)>=0:J.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,we=/<([\w:]+)/,Pe=/<|
Source: Googling 'Terrence Howard' and 'O.J. Simpson' Together Takes You to a Magical Place

No comments:

Post a Comment