webshims-rails 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/lib/webshims-rails/version.rb +2 -2
  2. data/vendor/assets/javascripts/webshims/minified/polyfiller.js +30 -29
  3. data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +12 -12
  4. data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +76 -76
  5. data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +12 -12
  6. data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +12 -12
  7. data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +27 -27
  8. data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +12 -12
  9. data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +14 -14
  10. data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +63 -60
  11. data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +59 -59
  12. data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +1 -1
  13. data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +1 -1
  14. data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +67 -67
  15. data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +59 -58
  16. data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +81 -80
  17. data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +103 -102
  18. data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +34 -31
  19. data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +41 -38
  20. data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +35 -35
  21. data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +67 -67
  22. data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +17 -17
  23. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-api.js +10 -8
  24. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +24 -23
  25. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +1 -1
  26. data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +9 -0
  27. data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -9
  28. data/vendor/assets/javascripts/webshims/minified/shims/track.js +21 -20
  29. data/vendor/assets/javascripts/webshims/polyfiller.js +144 -140
  30. data/vendor/assets/javascripts/webshims/shims/combos/1.js +10 -6
  31. data/vendor/assets/javascripts/webshims/shims/combos/10.js +11 -7
  32. data/vendor/assets/javascripts/webshims/shims/combos/11.js +10 -6
  33. data/vendor/assets/javascripts/webshims/shims/combos/12.js +10 -6
  34. data/vendor/assets/javascripts/webshims/shims/combos/13.js +10 -6
  35. data/vendor/assets/javascripts/webshims/shims/combos/16.js +10 -6
  36. data/vendor/assets/javascripts/webshims/shims/combos/17.js +10 -6
  37. data/vendor/assets/javascripts/webshims/shims/combos/18.js +986 -924
  38. data/vendor/assets/javascripts/webshims/shims/combos/19.js +10 -6
  39. data/vendor/assets/javascripts/webshims/shims/combos/20.js +1 -1
  40. data/vendor/assets/javascripts/webshims/shims/combos/22.js +1 -1
  41. data/vendor/assets/javascripts/webshims/shims/combos/24.js +10 -6
  42. data/vendor/assets/javascripts/webshims/shims/combos/25.js +820 -768
  43. data/vendor/assets/javascripts/webshims/shims/combos/26.js +820 -768
  44. data/vendor/assets/javascripts/webshims/shims/combos/27.js +821 -769
  45. data/vendor/assets/javascripts/webshims/shims/combos/6.js +986 -924
  46. data/vendor/assets/javascripts/webshims/shims/combos/7.js +986 -924
  47. data/vendor/assets/javascripts/webshims/shims/combos/8.js +10 -6
  48. data/vendor/assets/javascripts/webshims/shims/combos/9.js +11 -7
  49. data/vendor/assets/javascripts/webshims/shims/dom-extend.js +10 -6
  50. data/vendor/assets/javascripts/webshims/shims/form-number-date-api.js +77 -77
  51. data/vendor/assets/javascripts/webshims/shims/form-number-date-ui.js +909 -847
  52. data/vendor/assets/javascripts/webshims/shims/mediaelement-swf.js +1 -1
  53. data/vendor/assets/javascripts/webshims/shims/styles/shim.css +9 -0
  54. data/vendor/assets/javascripts/webshims/shims/track-ui.js +300 -291
  55. data/vendor/assets/javascripts/webshims/shims/track.js +810 -762
  56. metadata +10 -5
@@ -1,103 +1,104 @@
1
- (function(){var a=Function.prototype.call,f=Object.prototype,h=Array.prototype.slice,o,l;if(!Function.prototype.bind)Function.prototype.bind=function(a){var c=this;if("function"!=typeof c)throw new TypeError;var b=h.call(arguments,1),e=function(){if(this instanceof e){var d=function(){};d.prototype=c.prototype;var d=new d,p=c.apply(d,b.concat(h.call(arguments)));return null!==p&&Object(p)===p?p:d}return c.apply(a,b.concat(h.call(arguments)))};return e};l=a.bind(f.toString);o=a.bind(f.hasOwnProperty);
2
- if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==l(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,c){var b=i(this),e=0,d=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(;e<d;)e in b&&a.call(c,b[e],e,b),e++};if(!Array.prototype.map)Array.prototype.map=function(a,c){var b=i(this),e=b.length>>>0,d=Array(e);if("[object Function]"!=l(a))throw new TypeError;for(var p=0;p<e;p++)p in b&&(d[p]=a.call(c,b[p],p,b));return d};if(!Array.prototype.filter)Array.prototype.filter=
3
- function(a,c){var b=i(this),e=b.length>>>0,d=[];if("[object Function]"!=l(a))throw new TypeError;for(var p=0;p<e;p++)p in b&&a.call(c,b[p],p,b)&&d.push(b[p]);return d};if(!Array.prototype.every)Array.prototype.every=function(a,c){var b=i(this),e=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(var d=0;d<e;d++)if(d in b&&!a.call(c,b[d],d,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,c){var b=i(this),e=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;
4
- for(var d=0;d<e;d++)if(d in b&&a.call(c,b[d],d,b))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var c=i(this),b=c.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e=0,d;if(2<=arguments.length)d=arguments[1];else{do{if(e in c){d=c[e++];break}if(++e>=b)throw new TypeError;}while(1)}for(;e<b;e++)e in c&&(d=a.call(void 0,d,c[e],e,c));return d};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var c=
5
- i(this),b=c.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e,b=b-1;if(2<=arguments.length)e=arguments[1];else{do{if(b in c){e=c[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(e=a.call(void 0,e,c[b],b,c));while(b--);return e};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var c=i(this),b=c.length>>>0;if(!b)return-1;var e=0;1<arguments.length&&(e=k(arguments[1]));for(e=0<=e?e:b-Math.abs(e);e<b;e++)if(e in
6
- c&&c[e]===a)return e;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var c=i(this),b=c.length>>>0;if(!b)return-1;var e=b-1;1<arguments.length&&(e=k(arguments[1]));for(e=0<=e?e:b-Math.abs(e);0<=e;e--)if(e in c&&a===c[e])return e;return-1};if(2!=[1,2].splice(0).length){var s=Array.prototype.splice;Array.prototype.splice=function(a,c){return!arguments.length?[]:s.apply(this,[void 0===a?0:a,void 0===c?this.length-a:c].concat(h.call(arguments,2)))}}if(!Object.keys){var j=
7
- !0,t="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=t.length,q;for(q in{toString:null})j=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var c=[],b;for(b in a)o(a,b)&&c.push(b);if(j)for(b=0;b<n;b++){var e=t[b];o(a,e)&&c.push(e)}return c}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,c,b;if(!isFinite(this))throw new RangeError;
8
- a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(c=a.length;c--;)b=a[c],10>b&&(a[c]="0"+b);return a.slice(0,3).join("-")+"T"+a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";
9
- if(!String.prototype.trim||a.trim()){var a="["+a+"]",u=RegExp("^"+a+a+"*"),r=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(u,"").replace(r,"")}}if("0".split(void 0,0).length){var v=String.prototype.split;String.prototype.split=function(a,c){return void 0===a&&0===c?[]:v.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var x=String.prototype.substr;String.prototype.substr=function(a,c){return x.call(this,0>a?0>(a=this.length+a)?0:a:a,c)}}var k=function(a){a=+a;
10
- a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},g="a"!="a"[0],i=function(a){if(null==a)throw new TypeError;return g&&"string"==typeof a&&a?a.split(""):Object(a)}})();
11
- (function(a,f){var h=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);h&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});h=!!a.bar}catch(f){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=f.browserVersion));Modernizr.advancedObjectProperties=h;
12
- if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var o=Function.prototype.call.bind(Object.prototype.hasOwnProperty);f.objectCreate=function(a,h,j,o){var n;n=function(){};n.prototype=a;n=new n;if(!o&&!("__proto__"in n)&&!Modernizr.objectAccessor)n.__proto__=a;h&&f.defineProperties(n,h);if(j)n.options=jQuery.extend(!0,{},n.options||{},j),j=n.options;n._create&&jQuery.isFunction(n._create)&&n._create(j);return n};f.defineProperties=function(a,
13
- h){for(var j in h)o(h,j)&&f.defineProperty(a,j,h[j]);return a};f.defineProperty=function(a,f,j){if("object"!=typeof j||null===j)return a;if(o(j,"value"))return a[f]=j.value,a;a.__defineGetter__&&("function"==typeof j.get&&a.__defineGetter__(f,j.get),"function"==typeof j.set&&a.__defineSetter__(f,j.set));return a};f.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};f.getOwnPropertyDescriptor=function(a,f){if("object"!==
14
- typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var j;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return j=Object.getOwnPropertyDescriptor(a,f)}catch(h){}j={configurable:!0,enumerable:!0,writable:!0,value:void 0};var n=a.__lookupGetter__&&a.__lookupGetter__(f),q=a.__lookupSetter__&&a.__lookupSetter__(f);if(!n&&!q){if(!o(a,f))return;j.value=a[f];return j}delete j.writable;delete j.value;j.get=j.set=void 0;if(n)j.get=
15
- n;if(q)j.set=q;return j}}})(jQuery,jQuery.webshims);
16
- jQuery.webshims.register("dom-extend",function(a,f,h,o,l){var s=f.modules,j=/\s*,\s*/,t={},n={},q={},u={},r={},v=a.fn.val,x=function(e,d,p,b,c){return c?v.call(a(e)):v.call(a(e),p)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?v.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return v.apply(this,arguments);var p=a.isFunction(e);return this.each(function(b){d=this;1===d.nodeType&&(p?(b=e.call(d,b,a.prop(d,"value",l,"val",
17
- !0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",e,"val"))})};var k="_webshimsLib"+Math.round(1E3*Math.random()),g=function(e,d,p){e=e.jquery?e[0]:e;if(!e)return p||{};var b=a.data(e,k);p!==l&&(b||(b=a.data(e,k,{})),d&&(b[d]=p));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(e){a.fn[e.name]=function(){return this.map(function(){var a=g(this,
18
- "shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){t[e]=a[e];a[e]=function(d,b,c,f,g){var w="val"==f,k=!w?t[e]:x;if(!d||!n[b]||1!==d.nodeType||!w&&f&&"attr"==e&&a.attrFn[b])return k(d,b,c,f,g);var z=(d.nodeName||"").toLowerCase(),i=q[z],m="attr"==e&&(!1===c||null===c)?"removeAttr":e,j,h,v;i||(i=q["*"]);i&&(i=i[b]);i&&(j=i[m]);if(j){if("value"==b)h=j.isVal,j.isVal=w;if("removeAttr"===m)return j.value.call(d);if(c===l)return j.get?j.get.call(d):j.value;j.set&&
19
- ("attr"==e&&!0===c&&(c=b),v=j.set.call(d,c));if("value"==b)j.isVal=h}else v=k(d,b,c,f,g);if((c!==l||"removeAttr"===m)&&r[z]&&r[z][b]){var o;o="removeAttr"==m?!1:"prop"==m?!!c:!0;r[z][b].forEach(function(a){if(!a.only||(a.only="prop"==e)||"attr"==a.only&&"prop"!=e)a.call(d,c,o,w?"val":m,e)})}return v};u[e]=function(d,b,c){q[d]||(q[d]={});q[d][b]||(q[d][b]={});var g=q[d][b][e],i=function(a,d,f){return d&&d[a]?d[a]:f&&f[a]?f[a]:"prop"==e&&"value"==b?function(a){return c.isVal?x(this,b,a,!1,0===arguments.length):
20
- t[e](this,b,a)}:"prop"==e&&"value"==a&&c.value.apply?function(a){var d=t[e](this,b);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return t[e](this,b,a)}};q[d][b][e]=c;if(c.value===l){if(!c.set)c.set=c.writeable?i("set",c,g):f.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+d;}:a.noop;if(!c.get)c.get=i("get",c,g)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=i(a,g))})}});var i=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=f.getPrototypeOf(o.createElement("foobar")),
21
- d=Object.prototype.hasOwnProperty;return function(b,k,m){var j=o.createElement(b),w=f.getPrototypeOf(j);if(i&&w&&a!==w&&(!j[k]||!d.call(j,k))){var y=j[k];m._supvalue=function(){return y&&y.apply?y.apply(this,arguments):y};w[k]=m.value}else m._supvalue=function(){var a=g(this,"propValue");return a&&a[k]&&a[k].apply?a[k].apply(this,arguments):a&&a[k]},c.extendValue(b,k,m.value);m.value._supvalue=m._supvalue}}(),c=function(){var e={};f.addReady(function(d,b){var c={},p=function(e){c[e]||(c[e]=a(d.getElementsByTagName(e)),
22
- b[0]&&a.nodeName(b[0],e)&&(c[e]=c[e].add(b)))};a.each(e,function(a,e){p(a);!e||!e.forEach?f.warn("Error: with "+a+"-property. methods: "+e):e.forEach(function(e){c[a].each(e)})});c=null});var d,b=a([]),c=function(b,c){e[b]?e[b].push(c):e[b]=[c];a.isDOMReady&&(d||a(o.getElementsByTagName(b))).each(c)};return{createTmpCache:function(e){a.isDOMReady&&(d=d||a(o.getElementsByTagName(e)));return d||b},flushTmpCache:function(){d=null},content:function(e,d){c(e,function(){var e=a.attr(this,d);null!=e&&a.attr(this,
23
- d,e)})},createElement:function(a,e){c(a,e)},extendValue:function(e,d,b){c(e,function(){a(this).each(function(){g(this,"propValue",{})[d]=this[d];this[d]=b})})}}}(),b=function(a,d){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(f,{getID:function(){var e=(new Date).getTime();return function(d){var d=a(d),b=d.attr("id");b||(e++,b="ID-"+e,d.attr("id",b));
24
- return b}}(),extendUNDEFProp:function(e,d){a.each(d,function(a,d){a in e||(e[a]=d)})},createPropDefault:b,data:g,moveToFirstEvent:function(){var e=a._data?"_data":"data";return function(d,b,c){if((d=(a[e](d,"events")||{})[b])&&1<d.length)b=d.pop(),c||(c="bind"),"bind"==c&&d.delegateCount?d.splice(d.delegateCount,0,b):d.unshift(b)}}(),addShadowDom:function(){var e,d,b,c,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(o).height(),this.width=a(o).width(),setInterval(function(){var e=
25
- a(o).height(),d=a(o).width();if(e!=f.height||d!=f.width)f.height=e,f.width=d,c({type:"docresize"})},400)}};c=function(c){clearTimeout(e);e=setTimeout(function(){if("resize"==c.type){var e=a(h).width(),g=a(h).width();if(g==d&&e==b)return;d=g;b=e;f.height=a(o).height();f.width=a(o).width()}a.event.trigger("updateshadowdom")},40)};a(h).bind("resize",c);a.event.customEvent.updateshadowdom=!0;return function(e,d,b){b=b||{};e.jquery&&(e=e[0]);d.jquery&&(d=d[0]);var c=a.data(e,k)||a.data(e,k,{}),i=a.data(d,
26
- k)||a.data(d,k,{}),p={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];p=a.data(b.shadowFocusElement,k)||a.data(b.shadowFocusElement,k,p)}}else b.shadowFocusElement=d;c.hasShadow=d;p.nativeElement=i.nativeElement=e;p.shadowData=i.shadowData=c.shadowData={nativeElement:e,shadowElement:d,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){g(this,"shadowData",i.shadowData)});if(b.data)p.shadowData.data=
27
- i.shadowData.data=c.shadowData.data=b.data;b=null;f.start()}}(),propTypes:{standard:function(a){b(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){b(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var e=o.createElement("a");e.style.display="none";return function(d,c){b(d);if(!d.prop)d.prop=
28
- {set:function(a){d.attr.set.call(this,a)},get:function(){var d=this.getAttribute(c),b;if(null==d)return"";e.setAttribute("href",d+"");if(!a.support.hrefNormalized){try{a(e).insertAfter(this),b=e.getAttribute("href",4)}catch(f){b=e.getAttribute("href",4)}a(e).detach()}return b||e.href}}}}(),enumarated:function(a){b(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,d)},get:function(){var d=(a.attr.get.call(this)||"").toLowerCase();if(!d||-1==a.limitedTo.indexOf(d))d=a.defaultValue;return d}}}},
29
- reflectProperties:function(e,d){"string"==typeof d&&(d=d.split(j));d.forEach(function(d){f.defineNodeNamesProperty(e,d,{prop:{set:function(e){a.attr(this,d,e)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(e,d,b){n[d]=!0;if(b.reflect)f.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(c){var g=b[c];g&&(g="prop"===c?a.extend({writeable:!0},g):a.extend({},g,{writeable:!0}),u[c](e,d,g),"*"!=e&&f.cfg.extendNative&&"prop"==c&&g.value&&
30
- a.isFunction(g.value)&&m(e,d,g),b[c]=g)});b.initAttr&&c.content(e,d);return b},defineNodeNameProperties:function(a,d,b,g){for(var i in d)!g&&d[i].initAttr&&c.createTmpCache(a),b&&(d[i][b]?f.log("override: "+a+"["+i+"] for "+b):(d[i][b]={},["value","set","get"].forEach(function(a){a in d[i]&&(d[i][b][a]=d[i][a],delete d[i][a])}))),d[i]=f.defineNodeNameProperty(a,i,d[i]);g||c.flushTmpCache();return d},createElement:function(e,b,g){var i;a.isFunction(b)&&(b={after:b});c.createTmpCache(e);b.before&&c.createElement(e,
31
- b.before);g&&(i=f.defineNodeNameProperties(e,g,!1,!0));b.after&&c.createElement(e,b.after);c.flushTmpCache();return i},onNodeNamesPropertyModify:function(b,d,g,f){"string"==typeof b&&(b=b.split(j));a.isFunction(g)&&(g={set:g});b.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(j));g.initAttr&&c.createTmpCache(a);d.forEach(function(b){r[a][b]||(r[a][b]=[],n[b]=!0);if(g.set){if(f)g.set.only=f;r[a][b].push(g.set)}g.initAttr&&c.content(a,b)});c.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
32
- d,c){c||(c={});if(a.isFunction(c))c.set=c;f.defineNodeNamesProperty(b,d,{attr:{set:function(a){this.setAttribute(d,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===l)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?l:c;"boolean"==typeof c?c?a.setAttribute(b,b):
33
- a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var b=[],d={},c,g,i=/:\/\/|^\.*\//,k=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,i.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,m(b,!0)):a(function(){b.langObj[c]&&m(b,!0);b.loading=!1})}),!0):!1},w=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},m=function(a,b){if(a.activeLang!=c&&a.activeLang!==g){var d=s[a.module].options;
34
- if(a.langObj[c]||g&&a.langObj[g])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[g],c),w(a.module);else if(!b&&!k(a,c,d)&&!k(a,g,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),w(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,g=c.split("-")[0],c==g&&(g=!1),a.each(b,function(a,b){m(b)});else if("object"==typeof f)if(f.register)d[f.register]||(d[f.register]=[]),d[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang="";b.push(f);m(f)}return c}}()});
35
- a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){f[a]=function(a,c,e,g){"string"==typeof a&&(a=a.split(j));var i={};a.forEach(function(a){i[a]=f[b](a,c,e,g)});return i}});f.isReady("webshimLocalization",!0)});
36
- (function(a,f){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var o={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,f){a.getAttribute("role")||a.setAttribute("role",f)};a.webshims.addReady(function(h,j){a.each(o,function(f,r){for(var v=a(f,h).add(j.filter(f)),n=0,k=v.length;n<k;n++)l(v[n],r)});if(h===f){var t=f.getElementsByTagName("header")[0],n=f.getElementsByTagName("footer"),q=n.length;
37
- t&&!a(t).closest("section, article")[0]&&l(t,"banner");q&&(t=n[q-1],a(t).closest("section, article")[0]||l(t,"contentinfo"))}})}})(jQuery,document);
38
- (function(a,f,h){var o=f.audio&&f.video,l=!1,s=h.cfg.mediaelement,j=h.bugs,t=function(){h.ready("mediaelement-swf",function(){if(!h.mediaelement.createSWF)h.modules["mediaelement-swf"].test=a.noop,h.reTest(["mediaelement-swf"],o)})},n;if(o){var q=document.createElement("video");f.videoBuffered="buffered"in q;l="loop"in q;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(h.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
39
- test:f.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(o&&!s.preferFlash){var u=function(f){var j=f.target.parentNode;!s.preferFlash&&(a(f.target).is("audio, video")||j&&a("source:last",j)[0]==f.target)&&h.ready("DOM mediaelement",function(){n&&t();h.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!s.preferFlash&&h.mediaelement.createSWF&&!a(f.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error",
40
- u,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);a("audio, video").each(function(){this.error&&u({target:this})})}j.track=!1;f.track&&function(){if(!j.track)j.track="number"!=typeof a("<track />")[0].readyState;if(!j.track)try{new TextTrackCue(2,3,"")}catch(f){j.track=!0}var l=h.cfg.track,n=function(f){a(f.target).filter("track").each(k)},
41
- k=function(){if(j.track||!l.override&&3==a.prop(this,"readyState"))l.override=!0,h.reTest("track"),document.removeEventListener("error",n,!0),this&&a.nodeName(this,"track")?h.error("track support was overwritten. Please check your vtt including your vtt mime-type"):h.info("track support was overwritten. due to bad browser support")},g=function(){document.addEventListener("error",n,!0);j.track?k():a("track").each(k)};l.override||(h.isReady("track")?g():a(g))}();h.register("mediaelement-core",function(a,
42
- h,q,k,g){n=swfobject.hasFlashPlayerVersion("9.0.115");var i=h.mediaelement,m=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var e=b.attr("type");if(e)d.type=e,d.container=a.trim(e.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=i.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},c=!n&&"postMessage"in q&&o,b=
43
- function(){var b;return function(){!b&&c&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),e=function(){n?t():b()};h.addPolyfill("mediaelement-yt",{test:!c,d:["dom-support"]});i.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv",
44
- "f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};i.mimeTypes.source=a.extend({},i.mimeTypes.audio,i.mimeTypes.video);i.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
45
- -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(i.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};i.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=k.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)});
46
- else{var c=[],d=b[0].nodeName.toLowerCase(),e=m(b,d);e.src?c.push(e):a("source",b).each(function(){e=m(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==g&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));i.srces(this,b);a(this).mediaLoad()})};i.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
47
- i.canThirdPlaySrces=function(b,d){var e="";if(n||c)b=a(b),d=d||i.srces(b),a.each(d,function(a,b){if(b.container&&b.src&&(n&&-1!=i.swfMimeTypes.indexOf(b.container)||c&&"video/youtube"==b.container))return e=b,!1});return e};var d={};i.canNativePlaySrces=function(b,c){var e="";if(o){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!d[f])return e;c=c||i.srces(b);a.each(c,function(a,c){if(c.type&&d[f].prop._supvalue.call(b[0],c.type))return e=c,!1})}return e};i.setError=function(b,c){c||(c="can't play sources");
48
- a(b).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var p=function(){var a;return function(d,f,g){h.ready(n?"mediaelement-swf":"mediaelement-yt",function(){i.createSWF?i.createSWF(d,f,g):a||(a=!0,e(),p(d,f,g))});!a&&c&&!i.createSWF&&b()}}(),u=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=i.canThirdPlaySrces(a,d))?p(a,c,b):e?i.setError(a,!1):u(a,b,!1,d,!0):(c=i.canNativePlaySrces(a,d))?b&&"third"==
49
- b.isActive&&i.setActive(a,"html5",b):e?(i.setError(a,!1),b&&"third"==b.isActive&&i.setActive(a,"html5",b)):u(a,b,!0,d,!0)},C=/^(?:embed|object|datalist)$/i,B=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=i.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||C.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),u(b,c,s.preferFlash||g,e)};a(k).bind("ended",function(b){var c=h.data(b.target,"mediaelement");
50
- (!l||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=h.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");B(this,a);o&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});d[b]=h.defineNodeNameProperty(b,
51
- "canPlayType",{prop:{value:function(c){var e="";o&&d[b].prop._supvalue&&(e=d[b].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&n&&(c=a.trim((c||"").split(";")[0]),-1!=i.swfMimeTypes.indexOf(c)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){B(a);a=null},9)}});q=function(){h.addReady(function(b,c){a("video, audio",
52
- b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<h.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():B(this);if(o){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
53
- a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};f.track&&!j.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});o?(h.isReady("mediaelement-core",!0),q(),h.ready("WINDOWLOAD mediaelement",e)):h.ready("mediaelement-swf",q);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
54
- jQuery.webshims.register("mediaelement-swf",function(a,f,h,o,l,s){var j=f.mediaelement,t=h.swfobject,n=Modernizr.audio&&Modernizr.video,q=t.hasFlashPlayerVersion("9.0.115"),u=0,h={paused:!0,ended:!1,currentSrc:"",duration:h.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)f.error("buffered index size error");else return 0},end:function(a){if(a)f.error("buffered index size error");else return 0},length:0}},r=Object.keys(h),v={currentTime:0,volume:1,
55
- muted:!1};Object.keys(v);var x=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:l},h,v),k=/^jwplayer-/,g=function(a){if(a=o.getElementById(a.replace(k,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},i=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},m=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,l,b)},c=s.playerPath||f.cfg.basePath+
56
- "jwplayer/"+(s.playerName||"player.swf"),b=s.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(s.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(s.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(s.jwAttrs,{bgcolor:"#000000"});var e=function(b,c){var d=b.duration;if(!(d&&0<b._durationCalcs)){try{if(b.duration=b.jwapi.getPlaylist()[0].duration,!b.duration||0>=b.duration||b.duration===b._lastDuration)b.duration=d}catch(e){}b.duration&&
57
- b.duration!=b._lastDuration?(m(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&j.jwEvents.Model.META(a.extend({duration:b.duration},c),b),b._durationCalcs--):b._durationCalcs++}},d=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,m(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){d(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,m(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
58
- {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});j.jwEvents={View:{PLAY:function(a){var b=g(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;m(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var c=g(b.id);if(c&&"percentage"in b&&c._bufferedEnd!=b.percentage){c.networkState=100==b.percentage?1:2;(isNaN(c.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&e(c,b);if(c.ended)c.ended=
59
- !1;if(c.duration){2<b.percentage&&20>b.percentage?d(3,c):20<b.percentage&&d(4,c);if(c._bufferedEnd&&c._bufferedEnd>b.percentage)c._bufferedStart=c.currentTime||0;c._bufferedEnd=b.percentage;c.buffered.length=1;if(100==b.percentage)c.networkState=1,d(4,c);a.event.trigger("progress",l,c._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:g(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var c=b.duration;if(a.duration)b.duration=
60
- a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&d(1,b);b.duration&&c!==b.duration&&m(b._elem,"durationchange");m(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=g(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&e(b,a);2>b.readyState&&d(2,b);if(b.ended)b.ended=!1;m(b._elem,"timeupdate")}},STATE:function(a){var b=
61
- g(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;d(1,b);m(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||e(b,a);3>b.readyState&&d(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&d(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=g(a.id);b&&j.setError(b._elem,a.message)},SEEK:function(a){var b=
62
- g(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=g(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=g(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var p=function(b){var c=!0;a.each(j.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
63
- "jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},G=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},C=function(b){b&&(b._ppFlag===l&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===l||!b.paused))try{a(b._elem).play()}catch(c){}},1)},B=function(b){if(b&&
64
- "video"==b._elemNodeName){var c,d,e,f,g,i,k,m,h=function(h,j){if(j&&h&&!(1>j||1>h||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=h,g=j,clearTimeout(k),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){i=i||a(b._elem).getShadowElement();var l;d&&!e?(l=i.height(),h*=l/j,j=l):!d&&e&&(l=i.width(),j*=l/h,h=l);m=!0;setTimeout(function(){m=!1},9);i.css({width:h,height:j})}},j=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,
65
- "poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(k);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(h(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;
66
- h(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(k),k=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){h(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){m||h(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
67
- j();a.prop(b._elem,"readyState")&&h(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};j.playerResize=function(b){b&&(b=o.getElementById(b.replace(k,"")))&&a(b).triggerHandler("swfstageresize")};a(o).bind("emptied",function(a){a=i(a.target);C(a)});var w;j.jwPlayerReady=function(b){var c=g(b.id),d=0,e=function(){if(!(9<d))if(d++,p(c)){if(c.wasSwfReady)a(c._elem).mediaLoad();else{var g=parseFloat(b.version,10);(5.1>g||6<=g)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}c.wasSwfReady=
68
- !0;c.tryedReframeing=0;G(c);C(c)}else clearTimeout(c.reframeTimer),c.reframeTimer=setTimeout(e,9*d),2<d&&9>c.tryedReframeing&&(c.tryedReframeing++,c.shadowElem.css({overflow:"visible"}),setTimeout(function(){c.shadowElem.css({overflow:"hidden"})},16))};if(c&&c.jwapi){if(!c.tryedReframeing)c.tryedReframeing=0;clearTimeout(w);c.jwData=b;c.shadowElem.removeClass("flashblocker-assumed");a.prop(c._elem,"volume",c.volume);a.prop(c._elem,"muted",c.muted);e()}};var y=a.noop;if(n){var z={play:1,playing:1},
69
- E="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),F=E.map(function(a){return a+".webshimspolyfill"}).join(" "),H=function(b){var c=f.data(b.target,"mediaelement");c&&(b.originalEvent&&b.originalEvent.type===b.type)==("third"==c.activating)&&(b.stopImmediatePropagation(),z[b.type]&&c.isActive!=c.activating&&a(b.target).pause())},y=function(b){a(b).unbind(F).bind(F,H);E.forEach(function(a){f.moveToFirstEvent(b,a)})};y(o)}j.setActive=function(b,c,
70
- d){d||(d=f.data(b,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e=f.data(b,"shadowData");d.activating=c;a(b).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],a(b).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(b).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);a(b).trigger("mediaelementapichange")}};
71
- var I=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(c){if(c){var e=b,f=c.networkState;for(d(0,c);--e;)delete c[a[e]];c.actionQueue=[];c.buffered.length=0;f&&m(c._elem,"emptied")}}}(),D=function(b,c){var d=b._elem,e=b.shadowElem;a(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width||
72
- a(d).width(),height:d.style.height||a(d).height()})};j.createSWF=function(d,e,g){if(q){1>u?u=1:u++;var i=a.extend({},s.jwVars,{image:a.prop(d,"poster")||"",file:e.srcProp}),k=a(d).data("jwvars")||{};g||(g=f.data(d,"mediaelement"));if(g&&g.swfCreated)j.setActive(d,"third",g),I(g),g.currentSrc=e.srcProp,a.extend(i,k),s.changeJW(i,d,e,g,"load"),A(d,"sendEvent",["LOAD",i]);else{var h=a.prop(d,"controls"),m="jwplayer-"+f.getID(d),l=a.extend({},s.jwParams,a(d).data("jwparams")),p=d.nodeName.toLowerCase(),
73
- o=a.extend({},s.jwAttrs,{name:m,id:m},a(d).data("jwattrs")),r=a('<div class="polyfill-'+p+' polyfill-mediaelement" id="wrapper-'+m+'"><div id="'+m+'"></div>').css({position:"relative",overflow:"hidden"}),g=f.data(d,"mediaelement",f.objectCreate(x,{actionQueue:{value:[]},shadowElem:{value:r},_elemNodeName:{value:p},_elem:{value:d},currentSrc:{value:e.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>=
74
- g.buffered.length)f.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));D(g,h);r.insertBefore(d);n&&a.extend(g,{volume:a.prop(d,"volume"),muted:a.prop(d,"muted")});a.extend(i,{id:m,controlbar:h?s.jwVars.controlbar||("video"==p?"over":"bottom"):"video"==p?"none":"bottom",icons:""+(h&&"video"==p)},k,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+b):b;f.addShadowDom(d,r);y(d);j.setActive(d,
75
- "third",g);s.changeJW(i,d,e,g,"embed");a(d).bind("updatemediaelementdimensions updateshadowdom",function(){D(g,a.prop(d,"controls"))});B(g);t.embedSWF(c,m,"100%","100%","9.0.0",!1,i,l,o,function(b){if(b.success)g.jwapi=b.ref,h||a(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&r[0].parentNode||"none"==b.ref.style.display)r.addClass("flashblocker-assumed"),a(d).trigger("flashblocker"),f.warn("flashblocker assumed");a(b.ref).css({minHeight:"2px",minWidth:"2px",
76
- display:"block"})},9),w||(clearTimeout(w),w=setTimeout(function(){var c=a(b.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?f.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>c[0].offsetWidth||2>c[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(d).mediaLoad()},
77
- 1)};var A=function(a,b,c,d){return(d=d||i(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(b){var c={},d,e=function(a){"audio"==b&&("videoHeight"==a||"videoWidth"==a)||(c[a]={get:function(){var b=i(this);return b?b[a]:n&&d[a].prop._supget?d[a].prop._supget.apply(this):x[a]},writeable:!1})},g=function(a,b){e(a);delete c[a].writeable;
78
- c[a].set=b};g("volume",function(a){var b=i(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+a/100);A(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,m(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=i(this);if(b){if(a=!!a,A(this,"sendEvent",["mute",""+a],b),!(b.muted==
79
- a||"third"!=b.isActive))b.muted=a,m(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=i(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=!0;b.stopPlayPause=!1},50);A(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,m(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,
80
- arguments)});["play","pause"].forEach(function(a){c[a]={value:function(){var b=i(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),A(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,m(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});r.forEach(e);f.onNodeNamesPropertyModify(b,"controls",function(c,d){var e=i(this);a(this)[d?"addClass":"removeClass"]("webshims-controls");
81
- if(e){try{A(this,d?"showControls":"hideControls",[b],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==b&&D(e,d);a(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(b,c,"prop")});if(q){var J=a.cleanData,K=a.browser.msie&&9>f.browserVersion,L={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&u)for(b=0;b<c;b++)if(L[a[b].nodeName]){if("sendEvent"in a[b]){u--;try{a[b].sendEvent("play",!1)}catch(e){}}if(K)try{for(d in a[b])"function"==typeof a[b][d]&&
82
- (a[b][d]=null)}catch(g){}}return J.apply(this,arguments)}}n||(["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},
1
+ (function(){var a=Function.prototype.call,h=Object.prototype,i=Array.prototype.slice,m,l;if(!Function.prototype.bind)Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var f=i.call(arguments,1),d=function(){if(this instanceof d){var c=function(){};c.prototype=b.prototype;var c=new c,k=b.apply(c,f.concat(i.call(arguments)));return null!==k&&Object(k)===k?k:c}return b.apply(a,f.concat(i.call(arguments)))};return d};l=a.bind(h.toString);m=a.bind(h.hasOwnProperty);
2
+ if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==l(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,g){var f=b(this),d=0,c=f.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(;d<c;)d in f&&a.call(g,f[d],d,f),d++};if(!Array.prototype.map)Array.prototype.map=function(a,g){var f=b(this),d=f.length>>>0,c=Array(d);if("[object Function]"!=l(a))throw new TypeError;for(var k=0;k<d;k++)k in f&&(c[k]=a.call(g,f[k],k,f));return c};if(!Array.prototype.filter)Array.prototype.filter=
3
+ function(a,g){var f=b(this),d=f.length>>>0,c=[];if("[object Function]"!=l(a))throw new TypeError;for(var k=0;k<d;k++)k in f&&a.call(g,f[k],k,f)&&c.push(f[k]);return c};if(!Array.prototype.every)Array.prototype.every=function(a,g){var f=b(this),d=f.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(var c=0;c<d;c++)if(c in f&&!a.call(g,f[c],c,f))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,g){var f=b(this),d=f.length>>>0;if("[object Function]"!=l(a))throw new TypeError;
4
+ for(var c=0;c<d;c++)if(c in f&&a.call(g,f[c],c,f))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var g=b(this),f=g.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!f&&1==arguments.length)throw new TypeError;var d=0,c;if(2<=arguments.length)c=arguments[1];else{do{if(d in g){c=g[d++];break}if(++d>=f)throw new TypeError;}while(1)}for(;d<f;d++)d in g&&(c=a.call(void 0,c,g[d],d,g));return c};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var g=
5
+ b(this),f=g.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!f&&1==arguments.length)throw new TypeError;var d,f=f-1;if(2<=arguments.length)d=arguments[1];else{do{if(f in g){d=g[f--];break}if(0>--f)throw new TypeError;}while(1)}do f in this&&(d=a.call(void 0,d,g[f],f,g));while(f--);return d};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var g=b(this),f=g.length>>>0;if(!f)return-1;var d=0;1<arguments.length&&(d=u(arguments[1]));for(d=0<=d?d:f-Math.abs(d);d<f;d++)if(d in
6
+ g&&g[d]===a)return d;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var g=b(this),f=g.length>>>0;if(!f)return-1;var d=f-1;1<arguments.length&&(d=u(arguments[1]));for(d=0<=d?d:f-Math.abs(d);0<=d;d--)if(d in g&&a===g[d])return d;return-1};if(2!=[1,2].splice(0).length){var q=Array.prototype.splice;Array.prototype.splice=function(a,b){return!arguments.length?[]:q.apply(this,[void 0===a?0:a,void 0===b?this.length-a:b].concat(i.call(arguments,2)))}}if(!Object.keys){var j=
7
+ !0,r="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=r.length,o;for(o in{toString:null})j=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],f;for(f in a)m(a,f)&&b.push(f);if(j)for(f=0;f<n;f++){var d=r[f];m(a,d)&&b.push(d)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,b,f;if(!isFinite(this))throw new RangeError;
8
+ a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(b=a.length;b--;)f=a[b],10>f&&(a[b]="0"+f);return a.slice(0,3).join("-")+"T"+a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";
9
+ if(!String.prototype.trim||a.trim()){var a="["+a+"]",s=RegExp("^"+a+a+"*"),t=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(s,"").replace(t,"")}}if("0".split(void 0,0).length){var v=String.prototype.split;String.prototype.split=function(a,b){return void 0===a&&0===b?[]:v.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var x=String.prototype.substr;String.prototype.substr=function(a,b){return x.call(this,0>a?0>(a=this.length+a)?0:a:a,b)}}var u=function(a){a=+a;
10
+ a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},p="a"!="a"[0],b=function(a){if(null==a)throw new TypeError;return p&&"string"==typeof a&&a?a.split(""):Object(a)}})();
11
+ (function(a,h){var i=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);i&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});i=!!a.bar}catch(h){i=!1}a=null}();Modernizr.objectAccessor=!(!(i||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=h.browserVersion));Modernizr.advancedObjectProperties=i;
12
+ if(!i||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var m=Function.prototype.call.bind(Object.prototype.hasOwnProperty);h.objectCreate=function(a,i,j,m){var n;n=function(){};n.prototype=a;n=new n;if(!m&&!("__proto__"in n)&&!Modernizr.objectAccessor)n.__proto__=a;i&&h.defineProperties(n,i);if(j)n.options=jQuery.extend(!0,{},n.options||{},j),j=n.options;n._create&&jQuery.isFunction(n._create)&&n._create(j);return n};h.defineProperties=function(a,
13
+ i){for(var j in i)m(i,j)&&h.defineProperty(a,j,i[j]);return a};h.defineProperty=function(a,h,j){if("object"!=typeof j||null===j)return a;if(m(j,"value"))return a[h]=j.value,a;a.__defineGetter__&&("function"==typeof j.get&&a.__defineGetter__(h,j.get),"function"==typeof j.set&&a.__defineSetter__(h,j.set));return a};h.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};h.getOwnPropertyDescriptor=function(a,h){if("object"!==
14
+ typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var j;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return j=Object.getOwnPropertyDescriptor(a,h)}catch(i){}j={configurable:!0,enumerable:!0,writable:!0,value:void 0};var n=a.__lookupGetter__&&a.__lookupGetter__(h),o=a.__lookupSetter__&&a.__lookupSetter__(h);if(!n&&!o){if(!m(a,h))return;j.value=a[h];return j}delete j.writable;delete j.value;j.get=j.set=void 0;if(n)j.get=
15
+ n;if(o)j.set=o;return j}}})(jQuery,jQuery.webshims);
16
+ jQuery.webshims.register("dom-extend",function(a,h,i,m,l){var q=h.modules,j=/\s*,\s*/,r={},n={},o={},s={},t={},v=a.fn.val,x=function(d,c,k,b,e){return e?v.call(a(d)):v.call(a(d),k)};a.fn.val=function(d){var c=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!c||1!==c.nodeType?v.call(this):a.prop(c,"value",d,"val",!0);if(a.isArray(d))return v.apply(this,arguments);var k=a.isFunction(d);return this.each(function(b){c=this;1===c.nodeType&&(k?(b=d.call(c,b,a.prop(c,"value",l,"val",
17
+ !0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",d,"val"))})};var u="_webshimsLib"+Math.round(1E3*Math.random()),p=function(d,c,k){d=d.jquery?d[0]:d;if(!d)return k||{};var b=a.data(d,u);k!==l&&(b||(b=a.data(d,u,{})),c&&(b[c]=k));return c?b&&b[c]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){a.fn[d.name]=function(){return this.map(function(){var a=p(this,
18
+ "shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){r[d]=a[d];a[d]=function(c,k,b,e,h){var w="val"==e,f=!w?r[d]:x;if(!c||!n[k]||1!==c.nodeType||!w&&e&&"attr"==d&&a.attrFn[k])return f(c,k,b,e,h);var B=(c.nodeName||"").toLowerCase(),g=o[B],j="attr"==d&&(!1===b||null===b)?"removeAttr":d,i,v,m;g||(g=o["*"]);g&&(g=g[k]);g&&(i=g[j]);if(i){if("value"==k)v=i.isVal,i.isVal=w;if("removeAttr"===j)return i.value.call(c);if(b===l)return i.get?i.get.call(c):i.value;i.set&&
19
+ ("attr"==d&&!0===b&&(b=k),m=i.set.call(c,b));if("value"==k)i.isVal=v}else m=f(c,k,b,e,h);if((b!==l||"removeAttr"===j)&&t[B]&&t[B][k]){var q;q="removeAttr"==j?!1:"prop"==j?!!b:!0;t[B][k].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(c,b,q,w?"val":j,d)})}return m};s[d]=function(c,b,e){o[c]||(o[c]={});o[c][b]||(o[c][b]={});var f=o[c][b][d],g=function(a,c,h){return c&&c[a]?c[a]:h&&h[a]?h[a]:"prop"==d&&"value"==b?function(a){return e.isVal?x(this,b,a,!1,0===arguments.length):
20
+ r[d](this,b,a)}:"prop"==d&&"value"==a&&e.value.apply?function(a){var c=r[d](this,b);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return r[d](this,b,a)}};o[c][b][d]=e;if(e.value===l){if(!e.set)e.set=e.writeable?g("set",e,f):h.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+c;}:a.noop;if(!e.get)e.get=g("get",e,f)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=g(a,f))})}});var b=!a.browser.msie||8<parseInt(a.browser.version,10),e=function(){var a=h.getPrototypeOf(m.createElement("foobar")),
21
+ c=Object.prototype.hasOwnProperty;return function(k,e,f){var j=m.createElement(k),w=h.getPrototypeOf(j);if(b&&w&&a!==w&&(!j[e]||!c.call(j,e))){var y=j[e];f._supvalue=function(){return y&&y.apply?y.apply(this,arguments):y};w[e]=f.value}else f._supvalue=function(){var a=p(this,"propValue");return a&&a[e]&&a[e].apply?a[e].apply(this,arguments):a&&a[e]},g.extendValue(k,e,f.value);f.value._supvalue=f._supvalue}}(),g=function(){var d={};h.addReady(function(c,b){var k={},e=function(d){k[d]||(k[d]=a(c.getElementsByTagName(d)),
22
+ b[0]&&a.nodeName(b[0],d)&&(k[d]=k[d].add(b)))};a.each(d,function(a,d){e(a);!d||!d.forEach?h.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){k[a].each(d)})});k=null});var c,b=a([]),e=function(b,k){d[b]?d[b].push(k):d[b]=[k];a.isDOMReady&&(c||a(m.getElementsByTagName(b))).each(k)};return{createTmpCache:function(d){a.isDOMReady&&(c=c||a(m.getElementsByTagName(d)));return c||b},flushTmpCache:function(){c=null},content:function(d,c){e(d,function(){var d=a.attr(this,c);null!=d&&a.attr(this,
23
+ c,d)})},createElement:function(a,d){e(a,d)},extendValue:function(d,c,b){e(d,function(){a(this).each(function(){p(this,"propValue",{})[c]=this[c];this[c]=b})})}}}(),f=function(a,c){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(h,{getID:function(){var d=(new Date).getTime();return function(c){var c=a(c),b=c.attr("id");b||(d++,b="ID-"+d,c.attr("id",b));
24
+ return b}}(),extendUNDEFProp:function(d,c){a.each(c,function(a,c){a in d||(d[a]=c)})},createPropDefault:f,data:p,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(c,b,e){if((c=(a[d](c,"events")||{})[b])&&1<c.length)b=c.pop(),e||(e="bind"),"bind"==e&&c.delegateCount?c.splice(c.delegateCount,0,b):c.unshift(b)}}(),addShadowDom:function(){var d,c,b,e,f={init:!1,start:function(){if(!this.init&&m.body)this.init=!0,this.height=a(m).height(),this.width=a(m).width(),setInterval(function(){var d=
25
+ a(m).height(),c=a(m).width();if(d!=f.height||c!=f.width)f.height=d,f.width=c,e({type:"docresize"})},600)}};e=function(e){clearTimeout(d);d=setTimeout(function(){if("resize"==e.type){var d=a(i).width(),h=a(i).width();if(h==c&&d==b)return;c=h;b=d;if(m.body)f.height=a(m).height(),f.width=a(m).width()}a.event.trigger("updateshadowdom")},40)};a(i).bind("resize",e);a.event.customEvent.updateshadowdom=!0;return function(d,c,b){b=b||{};d.jquery&&(d=d[0]);c.jquery&&(c=c[0]);var e=a.data(d,u)||a.data(d,u,{}),
26
+ k=a.data(c,u)||a.data(c,u,{}),g={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];g=a.data(b.shadowFocusElement,u)||a.data(b.shadowFocusElement,u,g)}}else b.shadowFocusElement=c;e.hasShadow=c;g.nativeElement=k.nativeElement=d;g.shadowData=k.shadowData=e.shadowData={nativeElement:d,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){p(this,"shadowData",k.shadowData)});
27
+ if(b.data)g.shadowData.data=k.shadowData.data=e.shadowData.data=b.data;b=null;h.ready("DOM",function(){f.start()})}}(),propTypes:{standard:function(a){f(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,""+c)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){f(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var d=m.createElement("a");d.style.display=
28
+ "none";return function(c,b){f(c);if(!c.prop)c.prop={set:function(a){c.attr.set.call(this,a)},get:function(){var c=this.getAttribute(b),e;if(null==c)return"";d.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(d).insertAfter(this),e=d.getAttribute("href",4)}catch(f){e=d.getAttribute("href",4)}a(d).detach()}return e||d.href}}}}(),enumarated:function(a){f(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,c)},get:function(){var c=(a.attr.get.call(this)||"").toLowerCase();if(!c||-1==
29
+ a.limitedTo.indexOf(c))c=a.defaultValue;return c}}}},reflectProperties:function(d,c){"string"==typeof c&&(c=c.split(j));c.forEach(function(c){h.defineNodeNamesProperty(d,c,{prop:{set:function(d){a.attr(this,c,d)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(d,c,b){n[c]=!0;if(b.reflect)h.propTypes[b.propType||"standard"](b,c);["prop","attr","removeAttr"].forEach(function(f){var g=b[f];g&&(g="prop"===f?a.extend({writeable:!0},g):a.extend({},g,{writeable:!0}),s[f](d,
30
+ c,g),"*"!=d&&h.cfg.extendNative&&"prop"==f&&g.value&&a.isFunction(g.value)&&e(d,c,g),b[f]=g)});b.initAttr&&g.content(d,c);return b},defineNodeNameProperties:function(a,c,b,e){for(var f in c)!e&&c[f].initAttr&&g.createTmpCache(a),b&&!c[f][b]&&(c[f][b]={},["value","set","get"].forEach(function(a){a in c[f]&&(c[f][b][a]=c[f][a],delete c[f][a])})),c[f]=h.defineNodeNameProperty(a,f,c[f]);e||g.flushTmpCache();return c},createElement:function(d,c,b){var e;a.isFunction(c)&&(c={after:c});g.createTmpCache(d);
31
+ c.before&&g.createElement(d,c.before);b&&(e=h.defineNodeNameProperties(d,b,!1,!0));c.after&&g.createElement(d,c.after);g.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,c,b,e){"string"==typeof d&&(d=d.split(j));a.isFunction(b)&&(b={set:b});d.forEach(function(a){t[a]||(t[a]={});"string"==typeof c&&(c=c.split(j));b.initAttr&&g.createTmpCache(a);c.forEach(function(c){t[a][c]||(t[a][c]=[],n[c]=!0);if(b.set){if(e)b.set.only=e;t[a][c].push(b.set)}b.initAttr&&g.content(a,c)});g.flushTmpCache()})},
32
+ defineNodeNamesBooleanProperty:function(d,c,b){b||(b={});if(a.isFunction(b))b.set=b;h.defineNodeNamesProperty(d,c,{attr:{set:function(a){this.setAttribute(c,a);b.set&&b.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?l:c}},removeAttr:{value:function(){this.removeAttribute(c);b.set&&b.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:b.initAttr||!1})},contentAttr:function(a,c,b){if(a.nodeName){if(b===l)return a=a.attributes[c]||{},b=a.specified?a.value:null,null==b?l:b;
33
+ "boolean"==typeof b?b?a.setAttribute(c,c):a.removeAttribute(c):a.setAttribute(c,b)}},activeLang:function(){var b=[],c={},e,f,g=/:\/\/|^\.*\//,j=function(c,b,d){return b&&d&&-1!==a.inArray(b,d.availabeLangs||[])?(c.loading=!0,d=d.langSrc,g.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+b+".js",function(){c.langObj[b]?(c.loading=!1,y(c,!0)):a(function(){c.langObj[b]&&y(c,!0);c.loading=!1})}),!0):!1},w=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},y=function(a,c){if(a.activeLang!=e&&
34
+ a.activeLang!==f){var b=q[a.module].options;if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),w(a.module);else if(!c&&!j(a,e,b)&&!j(a,f,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),w(a.module)}};return function(g){if("string"==typeof g&&g!==e)e=g,f=e.split("-")[0],e==f&&(f=!1),a.each(b,function(a,c){y(c)});else if("object"==typeof g)if(g.register)c[g.register]||(c[g.register]=[]),c[g.register].push(g),g.callback();else{if(!g.activeLang)g.activeLang=
35
+ "";b.push(g);y(g)}return e}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){h[a]=function(a,b,d,e){"string"==typeof a&&(a=a.split(j));var f={};a.forEach(function(a){f[a]=h[c](a,b,d,e)});return f}});h.isReady("webshimLocalization",!0)});
36
+ (function(a,h){var i=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<i)&&(!a.browser.msie||12>i&&7<i)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,h){a.getAttribute("role")||a.setAttribute("role",h)};a.webshims.addReady(function(i,j){a.each(m,function(h,t){for(var v=a(h,i).add(j.filter(h)),m=0,n=v.length;m<n;m++)l(v[m],t)});if(i===h){var r=h.getElementsByTagName("header")[0],n=h.getElementsByTagName("footer"),o=n.length;
37
+ r&&!a(r).closest("section, article")[0]&&l(r,"banner");o&&(r=n[o-1],a(r).closest("section, article")[0]||l(r,"contentinfo"))}})}})(jQuery,document);
38
+ (function(a,h,i){var m=h.audio&&h.video,l=!1,q=i.cfg.mediaelement,j=i.bugs,r=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=a.noop,i.reTest(["mediaelement-swf"],m)})},n;if(m){var o=document.createElement("video");h.videoBuffered="buffered"in o;l="loop"in o;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
39
+ test:h.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(m&&!q.preferFlash){var s=function(h){var j=h.target.parentNode;!q.preferFlash&&(a(h.target).is("audio, video")||j&&a("source:last",j)[0]==h.target)&&i.ready("DOM mediaelement",function(){n&&r();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!q.preferFlash&&i.mediaelement.createSWF&&!a(h.target).closest("audio, video").is(".nonnative-api-active")?(q.preferFlash=!0,document.removeEventListener("error",
40
+ s,!0),a("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+h.target.src)):n||document.removeEventListener("error",s,!0)},20)})})};document.addEventListener("error",s,!0);a("audio, video").each(function(){this.error&&s({target:this})})}j.track=!1;h.track&&function(){if(!j.track)j.track="number"!=typeof a("<track />")[0].readyState;if(!j.track)try{new TextTrackCue(2,3,"")}catch(h){j.track=!0}var l=i.cfg.track,m=function(b){a(b.target).filter("track").each(n)},
41
+ n=function(){if(j.track||!l.override&&3==a.prop(this,"readyState"))l.override=!0,i.reTest("track"),document.removeEventListener("error",m,!0),this&&a.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},p=function(){document.addEventListener("error",m,!0);j.track?n():a("track").each(n)};l.override||(i.isReady("track")?p():a(p))}();i.register("mediaelement-core",function(a,
42
+ i,o,s,p){n=swfobject.hasFlashPlayerVersion("9.0.115");var b=i.mediaelement,e=function(c,d){var c=a(c),e={src:c.attr("src")||"",elem:c,srcProp:c.prop("src")};if(!e.src)return e;var f=c.attr("type");if(f)e.type=f,e.container=a.trim(f.split(";")[0]);else if(d||(d=c[0].nodeName.toLowerCase(),"source"==d&&(d=(c.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=b.getTypeForSrc(e.src,d))e.type=f,e.container=f;if(f=c.attr("media"))e.media=f;return e},g=!n&&"postMessage"in o&&m,f=
43
+ function(){var c;return function(){!c&&g&&(c=!0,i.loader.loadScript("https://www.youtube.com/player_api"),a(function(){i.polyfill("mediaelement-yt")}))}}(),d=function(){n?r():f()};i.addPolyfill("mediaelement-yt",{test:!g,d:["dom-support"]});b.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv",
44
+ "f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};b.mimeTypes.source=a.extend({},b.mimeTypes.audio,b.mimeTypes.video);b.getTypeForSrc=function(c,d){if(-1!=c.indexOf("youtube.com/watch?")||
45
+ -1!=c.indexOf("youtube.com/v/"))return"video/youtube";var c=c.split("?")[0].split("."),c=c[c.length-1],e;a.each(b.mimeTypes[d],function(a,b){if(-1!==b.indexOf(c))return e=a,!1});return e};b.srces=function(c,b){c=a(c);if(b)c.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(b)||(b=[b]),b.forEach(function(a){var b=s.createElement("source");"string"==typeof a&&(a={src:a});b.setAttribute("src",a.src);a.type&&b.setAttribute("type",a.type);a.media&&b.setAttribute("media",a.media);c.append(b)});
46
+ else{var b=[],d=c[0].nodeName.toLowerCase(),f=e(c,d);f.src?b.push(f):a("source",c).each(function(){f=e(this,d);f.src&&b.push(f)});return b}};a.fn.loadMediaSrc=function(c,d){return this.each(function(){d!==p&&(a(this).removeAttr("poster"),d&&a.attr(this,"poster",d));b.srces(this,c);a(this).mediaLoad()})};b.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
47
+ b.canThirdPlaySrces=function(c,d){var e="";if(n||g)c=a(c),d=d||b.srces(c),a.each(d,function(a,c){if(c.container&&c.src&&(n&&-1!=b.swfMimeTypes.indexOf(c.container)||g&&"video/youtube"==c.container))return e=c,!1});return e};var c={};b.canNativePlaySrces=function(d,e){var f="";if(m){var d=a(d),g=(d[0].nodeName||"").toLowerCase();if(!c[g])return f;e=e||b.srces(d);a.each(e,function(a,b){if(b.type&&c[g].prop._supvalue.call(d[0],b.type))return f=b,!1})}return f};b.setError=function(c,b){b||(b="can't play sources");
48
+ a(c).pause().data("mediaerror",b);i.warn("mediaelementError: "+b);setTimeout(function(){a(c).data("mediaerror")&&a(c).trigger("mediaerror")},1)};var k=function(){var a;return function(c,e,h){i.ready(n?"mediaelement-swf":"mediaelement-yt",function(){b.createSWF?b.createSWF(c,e,h):a||(a=!0,d(),k(c,e,h))});!a&&g&&!b.createSWF&&f()}}(),z=function(a,c,d,e,f){d||!1!==d&&c&&"third"==c.isActive?(d=b.canThirdPlaySrces(a,e))?k(a,d,c):f?b.setError(a,!1):z(a,c,!1,e,!0):(d=b.canNativePlaySrces(a,e))?c&&"third"==
49
+ c.isActive&&b.setActive(a,"html5",c):f?(b.setError(a,!1),c&&"third"==c.isActive&&b.setActive(a,"html5",c)):z(a,c,!0,e,!0)},A=/^(?:embed|object|datalist)$/i,D=function(c,d){var e=i.data(c,"mediaelementBase")||i.data(c,"mediaelementBase",{}),f=b.srces(c),g=c.parentNode;clearTimeout(e.loadTimer);a.data(c,"mediaerror",!1);if(f.length&&g&&!(1!=g.nodeType||A.test(g.nodeName||"")))d=d||i.data(c,"mediaelement"),z(c,d,q.preferFlash||p,f)};a(s).bind("ended",function(c){var b=i.data(c.target,"mediaelement");
50
+ (!l||b&&"html5"!=b.isActive||a.prop(c.target,"loop"))&&setTimeout(function(){!a.prop(c.target,"paused")&&a.prop(c.target,"loop")&&a(c.target).prop("currentTime",0).play()},1)});l||i.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var e=i.defineNodeNameProperty(d,"load",{prop:{value:function(){var a=i.data(this,"mediaelement");D(this,a);m&&(!a||"html5"==a.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});c[d]=i.defineNodeNameProperty(d,
51
+ "canPlayType",{prop:{value:function(e){var f="";m&&c[d].prop._supvalue&&(f=c[d].prop._supvalue.call(this,e),"no"==f&&(f=""));!f&&n&&(e=a.trim((e||"").split(";")[0]),-1!=b.swfMimeTypes.indexOf(e)&&(f="maybe"));return f}}})});i.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,c=i.data(a,"mediaelementBase")||i.data(a,"mediaelementBase",{});clearTimeout(c.loadTimer);c.loadTimer=setTimeout(function(){D(a);a=null},9)}});o=function(){i.addReady(function(c,b){a("video, audio",
52
+ c).add(b.filter("video, audio")).each(function(){a.browser.msie&&8<i.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():D(this);if(m){var c,b,d=this,e=function(){var c=a.prop(d,"buffered");if(c){for(var b="",e=0,f=c.length;e<f;e++)b+=c.end(e);return b}},f=function(){var c=e();c!=b&&(b=c,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
53
+ a.type&&(b=e());clearTimeout(c);c=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(b=!1);clearTimeout(c)})}})})};h.track&&!j.track&&i.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});m?(i.isReady("mediaelement-core",!0),o(),i.ready("WINDOWLOAD mediaelement",d)):i.ready("mediaelement-swf",o);a(function(){i.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
54
+ jQuery.webshims.register("mediaelement-swf",function(a,h,i,m,l,q){var j=h.mediaelement,r=i.swfobject,n=Modernizr.audio&&Modernizr.video,o=r.hasFlashPlayerVersion("9.0.115"),s=0,i={paused:!0,ended:!1,currentSrc:"",duration:i.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)h.error("buffered index size error");else return 0},end:function(a){if(a)h.error("buffered index size error");else return 0},length:0}},t=Object.keys(i),v={currentTime:0,volume:1,
55
+ muted:!1};Object.keys(v);var x=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:l},i,v),u=/^jwplayer-/,p=function(a){if(a=m.getElementById(a.replace(u,"")))return a=h.data(a,"mediaelement"),"third"==a.isActive?a:null},b=function(a){return(a=h.data(a,"mediaelement"))&&"third"==a.isActive?a:null},e=function(c,b){b=a.Event(b);b.preventDefault();a.event.trigger(b,l,c)},g=q.playerPath||h.cfg.basePath+
56
+ "jwplayer/"+(q.playerName||"player.swf"),f=q.pluginPath||h.cfg.basePath+"swf/jwwebshims.swf";h.extendUNDEFProp(q.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});h.extendUNDEFProp(q.jwVars,{screencolor:"ffffffff"});h.extendUNDEFProp(q.jwAttrs,{bgcolor:"#000000"});var d=function(c,b){var d=c.duration;if(!(d&&0<c._durationCalcs)){try{if(c.duration=c.jwapi.getPlaylist()[0].duration,!c.duration||0>=c.duration||c.duration===c._lastDuration)c.duration=d}catch(f){}c.duration&&
57
+ c.duration!=c._lastDuration?(e(c._elem,"durationchange"),("audio"==c._elemNodeName||c._callMeta)&&j.jwEvents.Model.META(a.extend({duration:c.duration},b),c),c._durationCalcs--):c._durationCalcs++}},c=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,e(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,e(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
58
+ {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});j.jwEvents={View:{PLAY:function(a){var c=p(a.id);if(c&&!c.stopPlayPause&&(c._ppFlag=!0,c.paused==a.state)){c.paused=!a.state;if(c.ended)c.ended=!1;e(c._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var e=p(b.id);if(e&&"percentage"in b&&e._bufferedEnd!=b.percentage){e.networkState=100==b.percentage?1:2;(isNaN(e.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&d(e,b);if(e.ended)e.ended=
59
+ !1;if(e.duration){2<b.percentage&&20>b.percentage?c(3,e):20<b.percentage&&c(4,e);if(e._bufferedEnd&&e._bufferedEnd>b.percentage)e._bufferedStart=e.currentTime||0;e._bufferedEnd=b.percentage;e.buffered.length=1;if(100==b.percentage)e.networkState=1,c(4,e);a.event.trigger("progress",l,e._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:p(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var d=b.duration;if(a.duration)b.duration=
60
+ a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&e(b._elem,"durationchange");e(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=p(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&d(b,a);2>b.readyState&&c(2,b);if(b.ended)b.ended=!1;e(b._elem,"timeupdate")}},STATE:function(a){var b=
61
+ p(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);e(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||d(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;e(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,e(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,e(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=p(a.id);b&&j.setError(b._elem,a.message)},SEEK:function(a){var b=
62
+ p(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,e(b._elem,"timeupdate")}},VOLUME:function(a){var b=p(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,e(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=p(a.id);if(b&&b.muted!=a.state)b.muted=a.state,e(b._elem,"volumechange")}}}};var k=function(b){var c=!0;a.each(j.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
63
+ "jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},z=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},A=function(b){b&&(b._ppFlag===l&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===l||!b.paused))try{a(b._elem).play()}catch(c){}},1)},D=function(b){if(b&&
64
+ "video"==b._elemNodeName){var c,d,e,f,g,h,k,i,j=function(j,l){if(l&&j&&!(1>l||1>j||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=j,g=l,clearTimeout(k),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){h=h||a(b._elem).getShadowElement();var m;d&&!e?(m=h.height(),j*=m/l,l=m):!d&&e&&(m=h.width(),l*=m/j,j=m);i=!0;setTimeout(function(){i=!1},9);h.css({width:j,height:l})}},l=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,
65
+ "poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(k);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(j(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;
66
+ j(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(k),k=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){j(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",l).bind("swfstageresize updatemediaelementdimensions",function(){i||j(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
67
+ l();a.prop(b._elem,"readyState")&&j(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};j.playerResize=function(b){b&&(b=m.getElementById(b.replace(u,"")))&&a(b).triggerHandler("swfstageresize")};a(m).bind("emptied",function(a){a=b(a.target);A(a)});var w;j.jwPlayerReady=function(b){var c=p(b.id),d=0,e=function(){if(!(9<d))if(d++,k(c)){if(c.wasSwfReady)a(c._elem).mediaLoad();else{var f=parseFloat(b.version,10);(5.1>f||6<=f)&&h.warn("mediaelement-swf is only testet with jwplayer 5.6+")}c.wasSwfReady=
68
+ !0;c.tryedReframeing=0;z(c);A(c)}else clearTimeout(c.reframeTimer),c.reframeTimer=setTimeout(e,9*d),2<d&&9>c.tryedReframeing&&(c.tryedReframeing++,c.shadowElem.css({overflow:"visible"}),setTimeout(function(){c.shadowElem.css({overflow:"hidden"})},16))};if(c&&c.jwapi){if(!c.tryedReframeing)c.tryedReframeing=0;clearTimeout(w);c.jwData=b;c.shadowElem.removeClass("flashblocker-assumed");a.prop(c._elem,"volume",c.volume);a.prop(c._elem,"muted",c.muted);e()}};var y=a.noop;if(n){var B={play:1,playing:1},
69
+ F="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),G=F.map(function(a){return a+".webshimspolyfill"}).join(" "),H=function(b){var c=h.data(b.target,"mediaelement");c&&(b.originalEvent&&b.originalEvent.type===b.type)==("third"==c.activating)&&(b.stopImmediatePropagation(),B[b.type]&&c.isActive!=c.activating&&a(b.target).pause())},y=function(b){a(b).unbind(G).bind(G,H);F.forEach(function(a){h.moveToFirstEvent(b,a)})};y(m)}j.setActive=function(b,c,
70
+ d){d||(d=h.data(b,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&h.warn("wrong type for mediaelement activating: "+c);var e=h.data(b,"shadowData");d.activating=c;a(b).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],a(b).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(b).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);a(b).trigger("mediaelementapichange")}};
71
+ var I=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var f=b,g=d.networkState;for(c(0,d);--f;)delete d[a[f]];d.actionQueue=[];d.buffered.length=0;g&&e(d._elem,"emptied")}}}(),E=function(b,c){var d=b._elem,e=b.shadowElem;a(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width||
72
+ a(d).width(),height:d.style.height||a(d).height()})};j.createSWF=function(b,c,d){if(o){1>s?s=1:s++;var e=a.extend({},q.jwVars,{image:a.prop(b,"poster")||"",file:c.srcProp}),k=a(b).data("jwvars")||{};d||(d=h.data(b,"mediaelement"));if(d&&d.swfCreated)j.setActive(b,"third",d),I(d),d.currentSrc=c.srcProp,a.extend(e,k),q.changeJW(e,b,c,d,"load"),C(b,"sendEvent",["LOAD",e]);else{var i=a.prop(b,"controls"),l="jwplayer-"+h.getID(b),m=a.extend({},q.jwParams,a(b).data("jwparams")),z=b.nodeName.toLowerCase(),
73
+ p=a.extend({},q.jwAttrs,{name:l,id:l},a(b).data("jwattrs")),A=a('<div class="polyfill-'+z+' polyfill-mediaelement" id="wrapper-'+l+'"><div id="'+l+'"></div>').css({position:"relative",overflow:"hidden"}),d=h.data(b,"mediaelement",h.objectCreate(x,{actionQueue:{value:[]},shadowElem:{value:A},_elemNodeName:{value:z},_elem:{value:b},currentSrc:{value:c.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=d.buffered.length)h.error("buffered index size error");else return 0},end:function(a){if(a>=
74
+ d.buffered.length)h.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));E(d,i);A.insertBefore(b);n&&a.extend(d,{volume:a.prop(b,"volume"),muted:a.prop(b,"muted")});a.extend(e,{id:l,controlbar:i?q.jwVars.controlbar||("video"==z?"over":"bottom"):"video"==z?"none":"bottom",icons:""+(i&&"video"==z)},k,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+f):f;h.addShadowDom(b,A);y(b);j.setActive(b,
75
+ "third",d);q.changeJW(e,b,c,d,"embed");a(b).bind("updatemediaelementdimensions updateshadowdom",function(){E(d,a.prop(b,"controls"))});D(d);r.embedSWF(g,l,"100%","100%","9.0.0",!1,e,m,p,function(c){if(c.success)d.jwapi=c.ref,i||a(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&A[0].parentNode||"none"==c.ref.style.display)A.addClass("flashblocker-assumed"),a(b).trigger("flashblocker"),h.warn("flashblocker assumed");a(c.ref).css({minHeight:"2px",minWidth:"2px",
76
+ display:"block"})},9),w||(clearTimeout(w),w=setTimeout(function(){var b=a(c.ref);1<b[0].offsetWidth&&1<b[0].offsetHeight&&0===location.protocol.indexOf("file:")?h.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>b[0].offsetWidth||2>b[0].offsetHeight)&&h.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(b).mediaLoad()},
77
+ 1)};var C=function(a,c,d,e){return(e=e||b(a))?(e.jwapi&&e.jwapi[c]?e.jwapi[c].apply(e.jwapi,d||[]):(e.actionQueue.push({fn:c,args:d}),10<e.actionQueue.length&&setTimeout(function(){5<e.actionQueue.length&&e.actionQueue.shift()},99)),e):!1};["audio","video"].forEach(function(c){var d={},f,g=function(a){"audio"==c&&("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var c=b(this);return c?c[a]:n&&f[a].prop._supget?f[a].prop._supget.apply(this):x[a]},writeable:!1})},k=function(a,b){g(a);delete d[a].writeable;
78
+ d[a].set=b};k("volume",function(a){var c=b(this);if(c){if(a*=100,!isNaN(a)){var d=c.muted;(0>a||100<a)&&h.error("volume greater or less than allowed "+a/100);C(this,"sendEvent",["VOLUME",a],c);if(d)try{c.jwapi.sendEvent("mute","true")}catch(g){}a/=100;if(!(c.volume==a||"third"!=c.isActive))c.volume=a,e(c._elem,"volumechange")}}else if(f.volume.prop._supset)return f.volume.prop._supset.apply(this,arguments)});k("muted",function(a){var c=b(this);if(c){if(a=!!a,C(this,"sendEvent",["mute",""+a],c),!(c.muted==
79
+ a||"third"!=c.isActive))c.muted=a,e(c._elem,"volumechange")}else if(f.muted.prop._supset)return f.muted.prop._supset.apply(this,arguments)});k("currentTime",function(a){var c=b(this);if(c){if(a*=1,!isNaN(a)){if(c.paused)clearTimeout(c.stopPlayPause),c.stopPlayPause=setTimeout(function(){c.paused=!0;c.stopPlayPause=!1},50);C(this,"sendEvent",["SEEK",""+a],c);if(c.paused){if(0<c.readyState)c.currentTime=a,e(c._elem,"timeupdate");try{c.jwapi.sendEvent("play","false")}catch(d){}}}}else if(f.currentTime.prop._supset)return f.currentTime.prop._supset.apply(this,
80
+ arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var c=b(this);if(c)c.stopPlayPause&&clearTimeout(c.stopPlayPause),C(this,"sendEvent",["play","play"==a],c),setTimeout(function(){if("third"==c.isActive&&(c._ppFlag=!0,c.paused!=("play"!=a)))c.paused="play"!=a,e(c._elem,a)},1);else if(f[a].prop._supvalue)return f[a].prop._supvalue.apply(this,arguments)}}});t.forEach(g);h.onNodeNamesPropertyModify(c,"controls",function(d,e){var f=b(this);a(this)[e?"addClass":"removeClass"]("webshims-controls");
81
+ if(f){try{C(this,e?"showControls":"hideControls",[c],f)}catch(g){h.warn("you need to generate a crossdomain.xml")}"audio"==c&&E(f,e);a(f.jwapi).attr("tabindex",e?"0":"-1")}});f=h.defineNodeNameProperties(c,d,"prop")});if(o){var J=a.cleanData,K=a.browser.msie&&9>h.browserVersion,L={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&s)for(b=0;b<c;b++)if(L[a[b].nodeName]){if("sendEvent"in a[b]){s--;try{a[b].sendEvent("play",!1)}catch(e){}}if(K)try{for(d in a[b])"function"==typeof a[b][d]&&
82
+ (a[b][d]=null)}catch(f){}}return J.apply(this,arguments)}}n||(["poster","src"].forEach(function(a){h.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){h.defineNodeNamesBooleanProperty(["audio","video"],a)}),h.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},
83
83
  NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});
84
- jQuery.webshims.register("track",function(a,f,h,o){var l=f.mediaelement;(new Date).getTime();var s={subtitles:1,captions:1},j=function(a){var g={};a.addEventListener=function(a,k){g[a]&&f.error("always use $.bind to the shimed event: "+a+" already bound fn was: "+g[a]+" your fn was: "+k);g[a]=k};a.removeEventListener=function(a,k){g[a]&&g[a]!=k&&f.error("always use $.bind/$.unbind to the shimed event: "+a+" already bound fn was: "+g[a]+" your fn was: "+k);g[a]&&delete g[a]};return a},t={getCueById:function(a){for(var g=
85
- null,f=0,h=this.length;f<h;f++)if(this[f].id===a){g=this[f];break}return g}},n={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(a){if(this.cues){var g=this.cues[this.cues.length-1];g&&g.startTime>a.startTime&&f.error("cue startTime higher than previous cue's startTime")}else this.cues=l.createCueList();a.track&&f.error("cue already part of a track element");
86
- a.track=this;this.cues.push(a)},removeCue:function(){f.error("not implemented yet")},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},q=["kind","label","srclang"],u=Function.prototype.call.bind(Object.prototype.hasOwnProperty),r=function(k,g){var i=[],h=[],c=[],b,e;k||(k=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{}));if(!g)k.blockTrackListUpdate=!0,g=a.prop(this,"textTracks"),k.blockTrackListUpdate=!1;clearTimeout(k.updateTrackListTimer);
87
- a("track",this).each(function(){var b=a.prop(this,"track");c.push(b);-1==g.indexOf(b)&&h.push(b)});if(k.scriptedTextTracks)for(b=0,e=k.scriptedTextTracks.length;b<e;b++)c.push(k.scriptedTextTracks[b]),-1==g.indexOf(k.scriptedTextTracks[b])&&h.push(k.scriptedTextTracks[b]);for(b=0,e=g.length;b<e;b++)-1==c.indexOf(g[b])&&i.push(g[b]);if(i.length||h.length){g.splice(0);for(b=0,e=c.length;b<e;b++)g.push(c[b]);for(b=0,e=i.length;b<e;b++)a([g]).triggerHandler(a.Event({type:"removetrack",track:g,track:i[b]}));
88
- for(b=0,e=h.length;b<e;b++)a([g]).triggerHandler(a.Event({type:"addtrack",track:g,track:h[b]}));(k.scriptedTextTracks||i.length)&&a(this).triggerHandler("updatetrackdisplay")}},v=function(k,g){var i,h;g||(g=f.data(k,"trackData"));if(g&&!g.isTriggering)g.isTriggering=!0,i=(g.track||{}).mode,h=(g.track||{}).kind,setTimeout(function(){if(i!==(g.track||{}).mode||h!=(g.track||{}).kind)(g.track||{}).readyState?a(k).parent().triggerHandler("updatetrackdisplay"):a(k).triggerHandler("checktrackmode");g.isTriggering=
89
- !1},9)},x=a("<div />")[0];h.TextTrackCue=function(a,g,i){3!=arguments.length&&f.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=g;this.text=i;this.id="";this.pauseOnExit=!1;j(this)};h.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",g="",f=o.createDocumentFragment(),h;if(!u(this,"getCueAsHTML"))h=this.getCueAsHTML=function(){var c,b;if(a!=this.text){a=this.text;g=l.parseCueTextToHTML(a);x.innerHTML=g;for(c=
90
- 0,b=x.childNodes.length;c<b;c++)f.appendChild(x.childNodes[c].cloneNode(!0))}return f.cloneNode(!0)};return h?h.apply(this,arguments):f.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return a.extend([],t)};l.parseCueTextToHTML=function(){var a=/(<\/?[^>]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,i=/\<\s*\//,h=function(a,c,d,f){i.test(f)?a="</"+a+">":(d.splice(0,1),a="<"+a+" "+c+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return a},c=function(a){var c=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);
91
- c[0]&&(c[0]=c[0].toLowerCase(),f.test(c[0])?"c"==c[0]?a=h("span","class",c,a):"v"==c[0]&&(a=h("q","title",c,a)):a="");return a};return function(b){return b.replace(a,c)}}();l.loadTextTrack=function(h,g,i,j){var c=i.track,b=function(){var e=a.prop(g,"src"),d,i;if("disabled"!=c.mode&&e&&a.attr(g,"src")&&(a(h).unbind("play playing timeupdate updatetrackdisplay",b),a(g).unbind("checktrackmode",b),!c.readyState)){d=function(){c.readyState=3;c.cues=null;c.activeCues=c.shimActiveCues=c._shimActiveCues=null;
92
- a(g).triggerHandler("error")};c.readyState=1;try{c.cues=l.createCueList(),c.activeCues=c.shimActiveCues=c._shimActiveCues=l.createCueList(),i=a.ajax({dataType:"text",url:e,success:function(b){"text/vtt"!=i.getResponseHeader("content-type")&&f.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");l.parseCaptions(b,c,function(b){b&&"length"in b?(c.readyState=2,a(g).triggerHandler("load"),a(h).triggerHandler("updatetrackdisplay")):d()})},error:d})}catch(j){d(),
93
- f.warn(j)}}};c.readyState=0;c.shimActiveCues=null;c._shimActiveCues=null;c.activeCues=null;c.cues=null;a(h).unbind("play playing timeupdate updatetrackdisplay",b);a(g).unbind("checktrackmode",b);a(h).bind("play playing timeupdate updatetrackdisplay",b);a(g).bind("checktrackmode",b);if(j)c.mode=s[c.kind]?"showing":"hidden",b()};l.createTextTrack=function(h,g){var i,m;if(g.nodeName&&(m=f.data(g,"trackData")))v(g,m),i=m.track;if(!i)i=j(f.objectCreate(n)),q.forEach(function(c){var b=a.prop(g,c);b&&("srclang"==
94
- c&&(c="language"),i[c]=b)}),g.nodeName?(m=f.data(g,"trackData",{track:i}),l.loadTextTrack(h,g,m,a.prop(g,"default"))):(i.cues=l.createCueList(),i.activeCues=i._shimActiveCues=i.shimActiveCues=l.createCueList(),i.mode="hidden",i.readyState=2);return i};l.parseCaptionChunk=function(){var a=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,f=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,i=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,h=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;
95
- return function(c){var b,e,d,j;if(f.exec(c)||i.exec(c)||h.exec(c))return null;for(c=c.split(/\n/g);!c[0].replace(/\s+/ig,"").length&&0<c.length;)c.shift();for(c[0].match(/^\s*[a-z0-9]+\s*$/ig)&&(d=""+c.shift().replace(/\s*/ig,""));0<c.length;){if(j=a.exec(c[0]))e=j.slice(1),b=parseInt(3600*(e[0]||0),10)+parseInt(60*(e[1]||0),10)+parseInt(e[2]||0,10)+parseFloat("0."+(e[3]||0)),e=parseInt(3600*(e[4]||0),10)+parseInt(60*(e[5]||0),10)+parseInt(e[6]||0,10)+parseFloat("0."+(e[7]||0));c=c.slice(0,0).concat(c.slice(1));
96
- break}if(!b&&!e)return null;c=c.join("\n");b=new TextTrackCue(b,e,c);if(d)b.id=d;return b}}();l.parseCaptions=function(a,g,i){l.createCueList();var h,c,b,e,d;a?(b=/^WEBVTT(\s*FILE)?/ig,c=function(j,n){for(;j<n;j++){h=a[j];if(b.test(h))d=!0;else if(h.replace(/\s*/ig,"").length){if(!d){f.error("please use WebVTT format. This is the standard");i(null);break}(h=l.parseCaptionChunk(h,j))&&g.addCue(h)}if(e<(new Date).getTime()-9){j++;setTimeout(function(){e=(new Date).getTime();c(j,n)},90);break}}j>=n&&
97
- (d||f.error("please use WebVTT format. This is the standard"),i(g.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){e=(new Date).getTime();a=a.split(/\n\n+/g);c(0,a.length)},9)},9)):f.error("Required parameter captionData not supplied.")};l.createTrackList=function(a,g){g=g||f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{});if(!g.textTracks)g.textTracks=[],f.defineProperties(g.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),
98
- j(g.textTracks);return g.textTracks};Modernizr.track||(f.defineNodeNamesBooleanProperty(["track"],"default"),f.reflectProperties(["track"],["srclang","label"]),f.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));f.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var g=f.data(this,"trackData");this.setAttribute("data-kind",a);if(g)g.attrKind=a},get:function(){var a=f.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:
99
- {},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});f.onNodeNamesPropertyModify("track","kind",function(){var h=f.data(this,"trackData");if(h)h.track.kind=a.prop(this,"kind"),v(this,h)});f.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=f.data(this,"trackData"),g;h&&(g=a(this).closest("video, audio"),g[0]&&l.loadTextTrack(g,this,h))}});f.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},
100
- LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(a.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(a(this).closest("audio, video")[0],this)},writeable:!1}},"prop");f.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{}),g=l.createTrackList(this,a);a.blockTrackListUpdate||r.call(this,a,g);return g},writeable:!1},addTextTrack:{value:function(a,
101
- g,h){a=l.createTextTrack(this,{kind:a||"",label:g||"",srclang:h||""});g=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{});if(!g.scriptedTextTracks)g.scriptedTextTracks=[];g.scriptedTextTracks.push(a);r.call(this);return a}}},"prop");a(o).bind("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var g=f.data(h.target,"mediaelementBase");if(g)clearTimeout(g.updateTrackListTimer),g.updateTrackListTimer=setTimeout(function(){r.call(h.target,g)},0)}});f.addReady(function(h,
102
- g){var i=g.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(i).each(function(){r.call(this)}).each(function(){if(Modernizr.track){var g=this.textTracks;a.prop(this,"textTracks").length!=g.length&&f.error("textTracks couldn't be copied");a("track",this).each(function(){var c=a.prop(this,"track"),b=this.track,e,d;if(b){e=a.prop(this,"kind");d=b.readyState||this.readyState;if(b.mode||d)c.mode=b.mode;if("descriptions"!=e)b.mode="string"==typeof b.mode?"disabled":0,this.kind=
103
- "metadata",a(this).attr({kind:e})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});i.each(function(){var a=this,c=f.data(a,"mediaelementBase");if(c)clearTimeout(c.updateTrackListTimer),c.updateTrackListTimer=setTimeout(function(){r.call(a,c)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});
84
+ jQuery.webshims.register("track",function(a,h,i,m){var l=h.mediaelement;(new Date).getTime();var q={subtitles:1,captions:1,descriptions:1},j=Modernizr.ES5&&Modernizr.objectAccessor,r=function(a){var e={};a.addEventListener=function(a,b){e[a]&&h.error("always use $.bind to the shimed event: "+a+" already bound fn was: "+e[a]+" your fn was: "+b);e[a]=b};a.removeEventListener=function(a,b){e[a]&&e[a]!=b&&h.error("always use $.bind/$.unbind to the shimed event: "+a+" already bound fn was: "+e[a]+" your fn was: "+
85
+ b);e[a]&&delete e[a]};return a},n={getCueById:function(a){for(var e=null,g=0,f=this.length;g<f;g++)if(this[g].id===a){e=this[g];break}return e}},o={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(a){if(this.cues){var e=this.cues[this.cues.length-1];e&&e.startTime>a.startTime&&h.error("cue startTime higher than previous cue's startTime")}else this.cues=
86
+ l.createCueList();a.track&&a.track.removeCue&&a.track.removeCue(a);a.track=this;this.cues.push(a)},removeCue:function(a){var e=this.cues||[],g=0,f=e.length;if(a.track!=this)h.error("cue not part of track");else{for(;g<f;g++)if(e[g]===a){e.splice(g,1);a.track=null;break}a.track&&h.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},s=["kind","label","srclang"],t={srclang:"language"},v=Function.prototype.call.bind(Object.prototype.hasOwnProperty),
87
+ x=function(b,e){var g=[],f=[],d=[],c,k;b||(b=h.data(this,"mediaelementBase")||h.data(this,"mediaelementBase",{}));if(!e)b.blockTrackListUpdate=!0,e=a.prop(this,"textTracks"),b.blockTrackListUpdate=!1;clearTimeout(b.updateTrackListTimer);a("track",this).each(function(){var b=a.prop(this,"track");d.push(b);-1==e.indexOf(b)&&f.push(b)});if(b.scriptedTextTracks)for(c=0,k=b.scriptedTextTracks.length;c<k;c++)d.push(b.scriptedTextTracks[c]),-1==e.indexOf(b.scriptedTextTracks[c])&&f.push(b.scriptedTextTracks[c]);
88
+ for(c=0,k=e.length;c<k;c++)-1==d.indexOf(e[c])&&g.push(e[c]);if(g.length||f.length){e.splice(0);for(c=0,k=d.length;c<k;c++)e.push(d[c]);for(c=0,k=g.length;c<k;c++)a([e]).triggerHandler(a.Event({type:"removetrack",track:e,track:g[c]}));for(c=0,k=f.length;c<k;c++)a([e]).triggerHandler(a.Event({type:"addtrack",track:e,track:f[c]}));(b.scriptedTextTracks||g.length)&&a(this).triggerHandler("updatetrackdisplay")}},u=function(b,e){e||(e=h.data(b,"trackData"));if(e&&!e.isTriggering)e.isTriggering=!0,setTimeout(function(){(e.track||
89
+ {}).readyState?a(b).closest("audio, video").triggerHandler("updatetrackdisplay"):a(b).triggerHandler("checktrackmode");e.isTriggering=!1},1)},p=a("<div />")[0];i.TextTrackCue=function(a,e,g){3!=arguments.length&&h.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=e;this.text=g;this.id="";this.pauseOnExit=!1;r(this)};i.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",e="",g=m.createDocumentFragment(),f;if(!v(this,
90
+ "getCueAsHTML"))f=this.getCueAsHTML=function(){var d,c;if(a!=this.text){a=this.text;e=l.parseCueTextToHTML(a);p.innerHTML=e;for(d=0,c=p.childNodes.length;d<c;d++)g.appendChild(p.childNodes[d].cloneNode(!0))}return g.cloneNode(!0)};return f?f.apply(this,arguments):g.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return a.extend([],n)};l.parseCueTextToHTML=function(){var a=/(<\/?[^>]+>)/ig,e=/^(?:c|v|ruby|rt|b|i|u)/,g=/\<\s*\//,f=function(a,b,d,e){g.test(e)?a="</"+a+">":(d.splice(0,1),
91
+ a="<"+a+" "+b+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return a},d=function(a){var b=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);b[0]&&(b[0]=b[0].toLowerCase(),e.test(b[0])?"c"==b[0]?a=f("span","class",b,a):"v"==b[0]&&(a=f("q","title",b,a)):a="");return a};return function(c){return c.replace(a,d)}}();l.loadTextTrack=function(b,e,g,f){var d=g.track,c=function(){var f=a.prop(e,"src"),g,i;if("disabled"!=d.mode&&f&&a.attr(e,"src")&&(a(b).unbind("play playing timeupdate updatetrackdisplay",c),a(e).unbind("checktrackmode",
92
+ c),!d.readyState)){g=function(){d.readyState=3;d.cues=null;d.activeCues=d.shimActiveCues=d._shimActiveCues=null;a(e).triggerHandler("error")};d.readyState=1;try{d.cues=l.createCueList(),d.activeCues=d.shimActiveCues=d._shimActiveCues=l.createCueList(),i=a.ajax({dataType:"text",url:f,success:function(c){"text/vtt"!=i.getResponseHeader("content-type")&&h.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");l.parseCaptions(c,d,function(c){c&&"length"in
93
+ c?(d.readyState=2,a(e).triggerHandler("load"),a(b).triggerHandler("updatetrackdisplay")):g()})},error:g})}catch(j){g(),h.warn(j)}}};d.readyState=0;d.shimActiveCues=null;d._shimActiveCues=null;d.activeCues=null;d.cues=null;a(b).unbind("play playing timeupdate updatetrackdisplay",c);a(e).unbind("checktrackmode",c);a(b).bind("play playing timeupdate updatetrackdisplay",c);a(e).bind("checktrackmode",c);if(f)d.mode=q[d.kind]?"showing":"hidden",c()};l.createTextTrack=function(b,e){var g,f;if(e.nodeName&&
94
+ (f=h.data(e,"trackData")))u(e,f),g=f.track;if(!g)g=r(h.objectCreate(o)),j||s.forEach(function(b){var c=a.prop(e,b);c&&(g[t[b]||b]=c)}),e.nodeName?(j&&s.forEach(function(b){h.defineProperty(g,t[b]||b,{get:function(){return a.prop(e,b)}})}),f=h.data(e,"trackData",{track:g}),l.loadTextTrack(b,e,f,a.prop(e,"default")&&a(e).siblings("track[default]").andSelf()[0]==e)):(j&&s.forEach(function(a){h.defineProperty(g,t[a]||a,{value:e[a],writeable:!1})}),g.cues=l.createCueList(),g.activeCues=g._shimActiveCues=
95
+ g.shimActiveCues=l.createCueList(),g.mode="hidden",g.readyState=2);return g};l.parseCaptionChunk=function(){var a=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,e=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,g=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,f=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(d){var c,i,j,l;if(e.exec(d)||g.exec(d)||f.exec(d))return null;for(d=d.split(/\n/g);!d[0].replace(/\s+/ig,"").length&&0<d.length;)d.shift();for(d[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&
96
+ (j=""+d.shift().replace(/\s*/ig,""));0<d.length;){if(l=a.exec(d[0]))i=l.slice(1),c=parseInt(3600*(i[0]||0),10)+parseInt(60*(i[1]||0),10)+parseInt(i[2]||0,10)+parseFloat("0."+(i[3]||0)),i=parseInt(3600*(i[4]||0),10)+parseInt(60*(i[5]||0),10)+parseInt(i[6]||0,10)+parseFloat("0."+(i[7]||0));d=d.slice(0,0).concat(d.slice(1));break}if(!c&&!i)return h.warn("couldn't extract time information: "+[c,i,d.join("\n"),j].join(" ; ")),null;d=d.join("\n");c=new TextTrackCue(c,i,d);if(j)c.id=j;return c}}();l.parseCaptions=
97
+ function(a,e,g){l.createCueList();var f,d,c,i,j;a?(c=/^WEBVTT(\s*FILE)?/ig,d=function(m,n){for(;m<n;m++){f=a[m];if(c.test(f))j=!0;else if(f.replace(/\s*/ig,"").length){if(!j){h.error("please use WebVTT format. This is the standard");g(null);break}(f=l.parseCaptionChunk(f,m))&&e.addCue(f)}if(i<(new Date).getTime()-30){m++;setTimeout(function(){i=(new Date).getTime();d(m,n)},90);break}}m>=n&&(j||h.error("please use WebVTT format. This is the standard"),g(e.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=
98
+ a.replace(/\r/g,"\n");setTimeout(function(){i=(new Date).getTime();a=a.split(/\n\n+/g);d(0,a.length)},9)},9)):h.error("Required parameter captionData not supplied.")};l.createTrackList=function(a,e){e=e||h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});if(!e.textTracks)e.textTracks=[],h.defineProperties(e.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),r(e.textTracks);return e.textTracks};Modernizr.track||(h.defineNodeNamesBooleanProperty(["track"],"default"),h.reflectProperties(["track"],
99
+ ["srclang","label"]),h.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));h.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var e=h.data(this,"trackData");this.setAttribute("data-kind",a);if(e)e.attrKind=a},get:function(){var a=h.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});
100
+ a.each(s,function(b,e){var g=t[e]||e;h.onNodeNamesPropertyModify("track",e,function(){var b=h.data(this,"trackData"),d=this;if(b)"kind"==e&&u(this,b),j||(b.track[g]=a.prop(this,e)),clearTimeout(b.changedTrackPropTimer),b.changedTrackPropTimer=setTimeout(function(){a(d).trigger("updatesubtitlestate")},1)})});h.onNodeNamesPropertyModify("track","src",function(b){if(b){var b=h.data(this,"trackData"),e;b&&(e=a(this).closest("video, audio"),e[0]&&l.loadTextTrack(e,this,b))}});h.defineNodeNamesProperties(["track"],
101
+ {ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(a.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(a(this).closest("audio, video")[0],this)},writeable:!1}},"prop");h.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=h.data(this,"mediaelementBase")||h.data(this,"mediaelementBase",{}),e=l.createTrackList(this,a);a.blockTrackListUpdate||x.call(this,a,e);return e},
102
+ writeable:!1},addTextTrack:{value:function(a,e,g){a=l.createTextTrack(this,{kind:a||"",label:e||"",srclang:g||""});e=h.data(this,"mediaelementBase")||h.data(this,"mediaelementBase",{});if(!e.scriptedTextTracks)e.scriptedTextTracks=[];e.scriptedTextTracks.push(a);x.call(this);return a}}},"prop");a(m).bind("emptied ended updatetracklist",function(b){if(a(b.target).is("audio, video")){var e=h.data(b.target,"mediaelementBase");if(e)clearTimeout(e.updateTrackListTimer),e.updateTrackListTimer=setTimeout(function(){x.call(b.target,
103
+ e)},0)}});h.addReady(function(b,e){var g=e.filter("video, audio, track").closest("audio, video");a("video, audio",b).add(g).each(function(){x.call(this)}).each(function(){if(Modernizr.track){var b=this.textTracks;a.prop(this,"textTracks").length!=b.length&&h.error("textTracks couldn't be copied");a("track",this).each(function(){var b=a.prop(this,"track"),c=this.track,e,f;if(c){e=a.prop(this,"kind");f=c.readyState||this.readyState;if(c.mode||f)b.mode=c.mode;if("descriptions"!=e)c.mode="string"==typeof c.mode?
104
+ "disabled":0,this.kind="metadata",a(this).attr({kind:e})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});g.each(function(){var a=this,b=h.data(a,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){x.call(a,b)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});