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,80 +1,81 @@
1
- jQuery.webshims.register("dom-extend",function(a,g,i,j,m){var u=g.modules,o=/\s*,\s*/,s={},r={},n={},v={},p={},q=a.fn.val,t=function(f,k,w,c,b){return b?q.call(a(f)):q.call(a(f),w)};a.fn.val=function(f){var k=this[0];arguments.length&&null==f&&(f="");if(!arguments.length)return!k||1!==k.nodeType?q.call(this):a.prop(k,"value",f,"val",!0);if(a.isArray(f))return q.apply(this,arguments);var w=a.isFunction(f);return this.each(function(c){k=this;1===k.nodeType&&(w?(c=f.call(k,c,a.prop(k,"value",m,"val",
2
- !0)),null==c&&(c=""),a.prop(k,"value",c,"val")):a.prop(k,"value",f,"val"))})};var h="_webshimsLib"+Math.round(1E3*Math.random()),e=function(f,k,c){f=f.jquery?f[0]:f;if(!f)return c||{};var b=a.data(f,h);c!==m&&(b||(b=a.data(f,h,{})),k&&(b[k]=c));return k?b&&b[k]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(f){a.fn[f.name]=function(){return this.map(function(){var a=e(this,
3
- "shadowData");return a&&a[f.prop]||this})}});["removeAttr","prop","attr"].forEach(function(f){s[f]=a[f];a[f]=function(k,c,b,e,h){var x="val"==e,z=!x?s[f]:t;if(!k||!r[c]||1!==k.nodeType||!x&&e&&"attr"==f&&a.attrFn[c])return z(k,c,b,e,h);var y=(k.nodeName||"").toLowerCase(),d=n[y],g="attr"==f&&(!1===b||null===b)?"removeAttr":f,l,q,i;d||(d=n["*"]);d&&(d=d[c]);d&&(l=d[g]);if(l){if("value"==c)q=l.isVal,l.isVal=x;if("removeAttr"===g)return l.value.call(k);if(b===m)return l.get?l.get.call(k):l.value;l.set&&
4
- ("attr"==f&&!0===b&&(b=c),i=l.set.call(k,b));if("value"==c)l.isVal=q}else i=z(k,c,b,e,h);if((b!==m||"removeAttr"===g)&&p[y]&&p[y][c]){var j;j="removeAttr"==g?!1:"prop"==g?!!b:!0;p[y][c].forEach(function(a){if(!a.only||(a.only="prop"==f)||"attr"==a.only&&"prop"!=f)a.call(k,b,j,x?"val":g,f)})}return i};v[f]=function(k,c,b){n[k]||(n[k]={});n[k][c]||(n[k][c]={});var e=n[k][c][f],d=function(a,k,y){return k&&k[a]?k[a]:y&&y[a]?y[a]:"prop"==f&&"value"==c?function(a){return b.isVal?t(this,c,a,!1,0===arguments.length):
5
- s[f](this,c,a)}:"prop"==f&&"value"==a&&b.value.apply?function(a){var k=s[f](this,c);k&&k.apply&&(k=k.apply(this,arguments));return k}:function(a){return s[f](this,c,a)}};n[k][c][f]=b;if(b.value===m){if(!b.set)b.set=b.writeable?d("set",b,e):g.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+k;}:a.noop;if(!b.get)b.get=d("get",b,e)}["value","get","set"].forEach(function(a){b[a]&&(b["_sup"+a]=d(a,e))})}});var l=!a.browser.msie||8<parseInt(a.browser.version,10),b=function(){var a=g.getPrototypeOf(j.createElement("foobar")),
6
- k=Object.prototype.hasOwnProperty;return function(b,d,h){var p=j.createElement(b),x=g.getPrototypeOf(p);if(l&&x&&a!==x&&(!p[d]||!k.call(p,d))){var z=p[d];h._supvalue=function(){return z&&z.apply?z.apply(this,arguments):z};x[d]=h.value}else h._supvalue=function(){var a=e(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},c.extendValue(b,d,h.value);h.value._supvalue=h._supvalue}}(),c=function(){var f={};g.addReady(function(c,k){var b={},w=function(f){b[f]||(b[f]=a(c.getElementsByTagName(f)),
7
- k[0]&&a.nodeName(k[0],f)&&(b[f]=b[f].add(k)))};a.each(f,function(a,f){w(a);!f||!f.forEach?g.warn("Error: with "+a+"-property. methods: "+f):f.forEach(function(f){b[a].each(f)})});b=null});var k,c=a([]),b=function(c,b){f[c]?f[c].push(b):f[c]=[b];a.isDOMReady&&(k||a(j.getElementsByTagName(c))).each(b)};return{createTmpCache:function(f){a.isDOMReady&&(k=k||a(j.getElementsByTagName(f)));return k||c},flushTmpCache:function(){k=null},content:function(f,c){b(f,function(){var f=a.attr(this,c);null!=f&&a.attr(this,
8
- c,f)})},createElement:function(a,f){b(a,f)},extendValue:function(f,c,k){b(f,function(){a(this).each(function(){e(this,"propValue",{})[c]=this[c];this[c]=k})})}}}(),d=function(a,c){if(a.defaultValue===m)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(g,{getID:function(){var f=(new Date).getTime();return function(c){var c=a(c),b=c.attr("id");b||(f++,b="ID-"+f,c.attr("id",b));
9
- return b}}(),extendUNDEFProp:function(f,c){a.each(c,function(a,c){a in f||(f[a]=c)})},createPropDefault:d,data:e,moveToFirstEvent:function(){var f=a._data?"_data":"data";return function(c,b,d){if((c=(a[f](c,"events")||{})[b])&&1<c.length)b=c.pop(),d||(d="bind"),"bind"==d&&c.delegateCount?c.splice(c.delegateCount,0,b):c.unshift(b)}}(),addShadowDom:function(){var f,c,b,d,l={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(j).height(),this.width=a(j).width(),setInterval(function(){var f=
10
- a(j).height(),c=a(j).width();if(f!=l.height||c!=l.width)l.height=f,l.width=c,d({type:"docresize"})},400)}};d=function(d){clearTimeout(f);f=setTimeout(function(){if("resize"==d.type){var f=a(i).width(),e=a(i).width();if(e==c&&f==b)return;c=e;b=f;l.height=a(j).height();l.width=a(j).width()}a.event.trigger("updateshadowdom")},40)};a(i).bind("resize",d);a.event.customEvent.updateshadowdom=!0;return function(f,c,b){b=b||{};f.jquery&&(f=f[0]);c.jquery&&(c=c[0]);var k=a.data(f,h)||a.data(f,h,{}),d=a.data(c,
11
- h)||a.data(c,h,{}),w={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];w=a.data(b.shadowFocusElement,h)||a.data(b.shadowFocusElement,h,w)}}else b.shadowFocusElement=c;k.hasShadow=c;w.nativeElement=d.nativeElement=f;w.shadowData=d.shadowData=k.shadowData={nativeElement:f,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){e(this,"shadowData",d.shadowData)});if(b.data)w.shadowData.data=
12
- d.shadowData.data=k.shadowData.data=b.data;b=null;l.start()}}(),propTypes:{standard:function(a){d(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){d(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 c=j.createElement("a");c.style.display="none";return function(b,e){d(b);if(!b.prop)b.prop=
13
- {set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(e),k;if(null==b)return"";c.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(c).insertAfter(this),k=c.getAttribute("href",4)}catch(d){k=c.getAttribute("href",4)}a(c).detach()}return k||c.href}}}}(),enumarated:function(a){d(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==a.limitedTo.indexOf(c))c=a.defaultValue;return c}}}},
14
- reflectProperties:function(c,b){"string"==typeof b&&(b=b.split(o));b.forEach(function(b){g.defineNodeNamesProperty(c,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(f,k,d){r[k]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d,k);["prop","attr","removeAttr"].forEach(function(c){var e=d[c];e&&(e="prop"===c?a.extend({writeable:!0},e):a.extend({},e,{writeable:!0}),v[c](f,k,e),"*"!=f&&g.cfg.extendNative&&"prop"==c&&e.value&&
15
- a.isFunction(e.value)&&b(f,k,e),d[c]=e)});d.initAttr&&c.content(f,k);return d},defineNodeNameProperties:function(a,b,d,e){for(var h in b)!e&&b[h].initAttr&&c.createTmpCache(a),d&&(b[h][d]?g.log("override: "+a+"["+h+"] for "+d):(b[h][d]={},["value","set","get"].forEach(function(a){a in b[h]&&(b[h][d][a]=b[h][a],delete b[h][a])}))),b[h]=g.defineNodeNameProperty(a,h,b[h]);e||c.flushTmpCache();return b},createElement:function(b,d,e){var h;a.isFunction(d)&&(d={after:d});c.createTmpCache(b);d.before&&c.createElement(b,
16
- d.before);e&&(h=g.defineNodeNameProperties(b,e,!1,!0));d.after&&c.createElement(b,d.after);c.flushTmpCache();return h},onNodeNamesPropertyModify:function(b,d,e,h){"string"==typeof b&&(b=b.split(o));a.isFunction(e)&&(e={set:e});b.forEach(function(a){p[a]||(p[a]={});"string"==typeof d&&(d=d.split(o));e.initAttr&&c.createTmpCache(a);d.forEach(function(b){p[a][b]||(p[a][b]=[],r[b]=!0);if(e.set){if(h)e.set.only=h;p[a][b].push(e.set)}e.initAttr&&c.content(a,b)});c.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
17
- b,d){d||(d={});if(a.isFunction(d))d.set=d;g.defineNodeNamesProperty(c,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?m:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===m)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?m:c;"boolean"==typeof c?c?a.setAttribute(b,b):
18
- a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var c=[],b={},d,e,h=/:\/\/|^\.*\//,l=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,h.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,p(b,!0)):a(function(){b.langObj[c]&&p(b,!0);b.loading=!1})}),!0):!1},x=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},p=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=u[a.module].options;
19
- if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),x(a.module);else if(!b&&!l(a,d,c)&&!l(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),x(a.module)}};return function(h){if("string"==typeof h&&h!==d)d=h,e=d.split("-")[0],d==e&&(e=!1),a.each(c,function(a,b){p(b)});else if("object"==typeof h)if(h.register)b[h.register]||(b[h.register]=[]),b[h.register].push(h),h.callback();else{if(!h.activeLang)h.activeLang="";c.push(h);p(h)}return d}}()});
20
- a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,d,f){"string"==typeof a&&(a=a.split(o));var e={};a.forEach(function(a){e[a]=g[b](a,c,d,f)});return e}});g.isReady("webshimLocalization",!0)});
21
- (function(a,g){var i=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<i)&&(!a.browser.msie||12>i&&7<i)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(i,o){a.each(j,function(g,p){for(var q=a(g,i).add(o.filter(g)),j=0,h=q.length;j<h;j++)m(q[j],p)});if(i===g){var s=g.getElementsByTagName("header")[0],r=g.getElementsByTagName("footer"),n=r.length;
22
- s&&!a(s).closest("section, article")[0]&&m(s,"banner");n&&(s=r[n-1],a(s).closest("section, article")[0]||m(s,"contentinfo"))}})}})(jQuery,document);
23
- (function(a,g,i){var j=g.audio&&g.video,m=!1,u=i.cfg.mediaelement,o=i.bugs,s=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=a.noop,i.reTest(["mediaelement-swf"],j)})},r;if(j){var n=document.createElement("video");g.videoBuffered="buffered"in n;m="loop"in n;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
- test:g.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(j&&!u.preferFlash){var v=function(g){var q=g.target.parentNode;!u.preferFlash&&(a(g.target).is("audio, video")||q&&a("source:last",q)[0]==g.target)&&i.ready("DOM mediaelement",function(){r&&s();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){r&&!u.preferFlash&&i.mediaelement.createSWF&&!a(g.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",
25
- v,!0),a("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):r||document.removeEventListener("error",v,!0)},20)})})};document.addEventListener("error",v,!0);a("audio, video").each(function(){this.error&&v({target:this})})}o.track=!1;g.track&&function(){if(!o.track)o.track="number"!=typeof a("<track />")[0].readyState;if(!o.track)try{new TextTrackCue(2,3,"")}catch(g){o.track=!0}var q=i.cfg.track,j=function(e){a(e.target).filter("track").each(h)},
26
- h=function(){if(o.track||!q.override&&3==a.prop(this,"readyState"))q.override=!0,i.reTest("track"),document.removeEventListener("error",j,!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")},e=function(){document.addEventListener("error",j,!0);o.track?h():a("track").each(h)};q.override||(i.isReady("track")?e():a(e))}();i.register("mediaelement-core",function(a,
27
- i,t,h,e){r=swfobject.hasFlashPlayerVersion("9.0.115");var l=i.mediaelement,b=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var f=b.attr("type");if(f)d.type=f,d.container=a.trim(f.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=l.getTypeForSrc(d.src,c))d.type=f,d.container=f;if(f=b.attr("media"))d.media=f;return d},c=!r&&"postMessage"in t&&j,d=
28
- function(){var b;return function(){!b&&c&&(b=!0,i.loader.loadScript("https://www.youtube.com/player_api"),a(function(){i.polyfill("mediaelement-yt")}))}}(),f=function(){r?s():d()};i.addPolyfill("mediaelement-yt",{test:!c,d:["dom-support"]});l.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",
29
- "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"]}};l.mimeTypes.source=a.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
30
- -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(l.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};l.srces=function(c,d){c=a(c);if(d)c.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(d)||(d=[d]),d.forEach(function(a){var b=h.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)});
31
- else{var d=[],f=c[0].nodeName.toLowerCase(),e=b(c,f);e.src?d.push(e):a("source",c).each(function(){e=b(this,f);e.src&&d.push(e)});return d}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==e&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));l.srces(this,b);a(this).mediaLoad()})};l.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(",");
32
- l.canThirdPlaySrces=function(b,d){var f="";if(r||c)b=a(b),d=d||l.srces(b),a.each(d,function(a,b){if(b.container&&b.src&&(r&&-1!=l.swfMimeTypes.indexOf(b.container)||c&&"video/youtube"==b.container))return f=b,!1});return f};var k={};l.canNativePlaySrces=function(b,c){var d="";if(j){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!k[f])return d;c=c||l.srces(b);a.each(c,function(a,c){if(c.type&&k[f].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};l.setError=function(b,c){c||(c="can't play sources");
33
- a(b).pause().data("mediaerror",c);i.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var w=function(){var a;return function(b,e,h){i.ready(r?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(b,e,h):a||(a=!0,f(),w(b,e,h))});!a&&c&&!l.createSWF&&d()}}(),A=function(a,b,c,d,f){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,d))?w(a,c,b):f?l.setError(a,!1):A(a,b,!1,d,!0):(c=l.canNativePlaySrces(a,d))?b&&"third"==
34
- b.isActive&&l.setActive(a,"html5",b):f?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):A(a,b,!0,d,!0)},B=/^(?:embed|object|datalist)$/i,n=function(b,c){var d=i.data(b,"mediaelementBase")||i.data(b,"mediaelementBase",{}),f=l.srces(b),h=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(f.length&&h&&!(1!=h.nodeType||B.test(h.nodeName||"")))c=c||i.data(b,"mediaelement"),A(b,c,u.preferFlash||e,f)};a(h).bind("ended",function(b){var c=i.data(b.target,"mediaelement");
35
- (!m||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)});m||i.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=i.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=i.data(this,"mediaelement");n(this,a);j&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});k[b]=i.defineNodeNameProperty(b,
36
- "canPlayType",{prop:{value:function(c){var d="";j&&k[b].prop._supvalue&&(d=k[b].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&r&&(c=a.trim((c||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});i.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=i.data(a,"mediaelementBase")||i.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){n(a);a=null},9)}});t=function(){i.addReady(function(b,c){a("video, audio",
37
- b).add(c.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():n(this);if(j){var b,c,d=this,f=function(){var b=a.prop(d,"buffered");if(b){for(var c="",f=0,e=b.length;f<e;f++)c+=b.end(f);return c}},e=function(){var b=f();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
38
- a.type&&(c=f());clearTimeout(b);b=setTimeout(e,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};g.track&&!o.track&&i.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(i.isReady("mediaelement-core",!0),t(),i.ready("WINDOWLOAD mediaelement",f)):i.ready("mediaelement-swf",t);a(function(){i.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
39
- (function(a){var g=window.Modernizr,i=a.webshims,j=i.bugs,m=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),u=function(){if(m[0].querySelector)try{j.findRequired=!m[0].querySelector("select:required")}catch(a){j.findRequired=!1}};j.findRequired=!1;j.validationMessage=!1;j.valueAsNumberSet=!1;i.capturingEventPrevented=function(g){if(!g._isPolyfilled){var i=g.isDefaultPrevented,
40
- j=g.preventDefault;g.preventDefault=function(){clearTimeout(a.data(g.target,g.type+"DefaultPrevented"));a.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){a.removeData(g.target,g.type+"DefaultPrevented")},30));return j.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!i.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||j.bustedValidity)u();else if(i.capturingEvents(["input"]),i.capturingEvents(["invalid"],!0),
41
- g.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var o=a("input",m).eq(0),s,r=function(a){i.loader.loadList(["dom-extend"]);i.ready("dom-extend",a)},n=function(j){var q=["form-extend","form-message","form-native-fix"];j&&(j.preventDefault(),j.stopImmediatePropagation());clearTimeout(s);setTimeout(function(){m&&(m.remove(),m=o=null)},9);if(!g.bugfreeformvalidation)i.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),i.modules["form-extend"].test=a.noop;i.isReady("form-number-date-api")&&
42
- q.push("form-number-date-api");i.reTest(q);if(o)try{o.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&r(function(){i.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(h){!h&&this&&a.prop(this,"value",a.prop(this,"value"))}});i.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(h){if(!h&&this)h=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(h)}})})}catch(n){}(a.browser.opera||window.testGoodWithFix)&&
43
- r(function(){var h=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(e){var g=i.defineNodeNameProperty(e,"checkValidity",{prop:{value:function(){i.fromSubmit||a(this).bind("invalid.checkvalidity",h);i.fromCheckValidity=!0;var b=g.prop._supvalue.apply(this,arguments);i.fromSubmit||a(this).unbind("invalid.checkvalidity",h);i.fromCheckValidity=!1;return b}}})})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){u();j.validationMessage=!o.prop("validationMessage");
44
- if((g.inputtypes||{}).date){try{o.prop("valueAsNumber",0)}catch(v){}j.valueAsNumberSet="1970-01-01"!=o.prop("value")}o.prop("value","")}m.bind("submit",function(a){g.bugfreeformvalidation=!1;n(a)});s=setTimeout(function(){m&&m.triggerHandler("submit")},9);a("input, select",m).bind("invalid",n).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&g.bugfreeformvalidation&&!i.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,
45
- i=!1;document.addEventListener("contextmenu",function(a){g.test(a.target.nodeName||"")&&(i=a.target.form)&&setTimeout(function(){i=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&i&&i==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
46
- jQuery.webshims.register("form-core",function(a,g,i,j,m,u){var o={radio:1},s={checkbox:1,radio:1},r=a([]),n=g.bugs,v=function(b){var b=a(b),c,d;c=r;if(o[b[0].type])d=b.prop("form"),c=(c=b[0].name)?d?a(d[c]):a(j.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},p=g.getContentValidationMessage=function(b,c,d){var f=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";d&&f[d]&&(f=f[d]);"object"==typeof f&&(c=c||a.prop(b,"validity")||
47
- {valid:1},c.valid||a.each(c,function(a,b){if(b&&"valid"!=a&&f[a])return f=f[a],!1}));if("object"==typeof f)f=f.defaultMessage;return f||""},q={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,
48
- "willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!q[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!q[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(a){try{var c=
49
- a.ownerDocument;return a===c.activeElement&&(!c.hasFocus||c.hasFocus())}catch(d){}return!1};var t=a.event.customEvent||{};(n.bustedValidity||n.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var b=a.find,c=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,f=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,c=function(c){var e=arguments,e=a.call(e,1,e.length);e.unshift(c.replace(d,f));return b.apply(this,
50
- e)},e;for(e in b)b.hasOwnProperty(e)&&(c[e]=b[e]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",j.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(d,f);return c.call(this,a,b)}}();var h=a.prop,e={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,d){var f=h.apply(this,arguments);if(b&&"form"in b&&e[c]&&d!==m&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
51
- "checked"==c&&d&&v(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return f};var l=function(b,c){var d;a.each(b,function(b,e){if(e)return d="customError"==b?a.prop(c,"validationMessage"):b,!1});return d};a(j).bind(u.validityUIEvents||"focusout change refreshvalidityui",function(b){var c,d;if(b.target&&(c=a(b.target).getNativeElement()[0],!("submit"==c.type||!a.prop(c,"willValidate")||"focusout"==b.type&&"radio"==b.type))){d=a.data(c,"webshimsswitchvalidityclass");var f=function(){var d=
52
- a.prop(c,"validity"),f=a(c).getShadowElement(),e,h,g,i;a(c).trigger("refreshCustomValidityRules");d.valid?f.hasClass("form-ui-valid")||(e="form-ui-valid",h="form-ui-invalid",i="changedvaliditystate",g="changedvalid",s[c.type]&&c.checked&&v(c).not(c).removeClass(h).addClass(e).removeAttr("aria-invalid"),a.removeData(c,"webshimsinvalidcause")):(d=l(d,c),a.data(c,"webshimsinvalidcause")!=d&&(a.data(c,"webshimsinvalidcause",d),i="changedvaliditystate"),f.hasClass("form-ui-invalid")||(e="form-ui-invalid",
53
- h="form-ui-valid",s[c.type]&&!c.checked&&v(c).not(c).removeClass(h).addClass(e),g="changedinvalid"));e&&(f.addClass(e).removeClass(h),setTimeout(function(){a(c).trigger(g)},0));i&&setTimeout(function(){a(c).trigger(i)},0);a.removeData(b.target,"webshimsswitchvalidityclass")};d&&clearTimeout(d);"refreshvalidityui"==b.type?f():a.data(b.target,"webshimsswitchvalidityclass",setTimeout(f,9))}});t.changedvaliditystate=!0;t.refreshCustomValidityRules=!0;t.changedvalid=!0;t.changedinvalid=!0;t.refreshvalidityui=
54
- !0;g.triggerInlineForm=function(b,c){a(b).trigger(c)};g.modules["form-core"].getGroupElements=v;n=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==j.compatMode?a(j.body):a(j.documentElement)};n();g.ready("DOM",n);g.getRelOffset=function(b,c){var b=a(b),d=a(c).offset(),f;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){f=b.offset()});d.top-=f.top;d.left-=f.left;return d};g.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":
55
- "label",c,d=!1,f=!1,e,h={hideDelay:5E3,showFor:function(b,c,g,l){h._create();var b=a(b),j=a(b).getShadowElement(),m=h.getOffsetFromBody(j);h.clear();l?this.hide():(this.getMessage(b,c),this.position(j,m),this.show(),this.hideDelay&&(d=setTimeout(e,this.hideDelay)),a(i).bind("resize.validityalert",function(){clearTimeout(f);f=setTimeout(function(){h.position(j)},9)}));g||this.setFocus(j,m)},getOffsetFromBody:function(a){return g.getRelOffset(c,a)},setFocus:function(d,f){var h=a(d).getShadowFocusElement(),
56
- l=g.scrollRoot.scrollTop(),i=(f||h.offset()).top-30,m;g.getID&&"label"==b&&c.attr("for",g.getID(h));l>i&&(g.scrollRoot.animate({scrollTop:i-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(l-i)),80)}),m=!0);try{h[0].focus()}catch(w){}m&&(g.scrollRoot.scrollTop(l),setTimeout(function(){g.scrollRoot.scrollTop(l)},0));setTimeout(function(){a(j).bind("focusout.validityalert",e)},10)},getMessage:function(b,d){d||(d=p(b[0])||b.prop("validationMessage"));d?a("span.va-box",c).text(d):this.hide()},position:function(b,
57
- d){d=d?a.extend({},d):h.getOffsetFromBody(b);d.top+=b.outerHeight();c.css(d)},show:function(){"none"===c.css("display")&&c.css({opacity:0}).show();c.addClass("va-visible").fadeTo(400,1)},hide:function(){c.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(j).unbind(".validityalert");a(i).unbind(".validityalert");c.stop().removeAttr("for")},_create:function(){if(!c)c=h.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
58
- b+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){c.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&c.bgIframe()})}};e=a.proxy(h,"hide");return h}();(function(){var b,c=[],d;a(j).bind("invalid",function(f){if(!f.wrongWebkitInvalid){var e=a(f.target),h=e.getShadowElement();h.hasClass("form-ui-invalid")||(h.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(f.target).trigger("changedinvalid").trigger("changedvaliditystate")},
59
- 0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=f.isDefaultPrevented,h=a.Event("firstinvalidsystem"),a(j).triggerHandler(h,{element:f.target,form:f.target.form,isInvalidUIPrevented:f.isDefaultPrevented}),e.trigger(b);b&&b.isDefaultPrevented()&&f.preventDefault();c.push(f.target);f.extraData="fix";clearTimeout(d);d=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(f.target).trigger(d,d)},9);h=e=null}})})();a.fn.getErrorMessage=function(){var b="",
60
- c=this[0];c&&(b=p(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};u.replaceValidationUI&&g.ready("DOM forms",function(){a(j).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
61
- jQuery.webshims.register("track",function(a,g,i,j){var m=g.mediaelement;(new Date).getTime();var u={subtitles:1,captions:1},o=function(a){var e={};a.addEventListener=function(a,b){e[a]&&g.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&&g.error("always use $.bind/$.unbind to the shimed event: "+a+" already bound fn was: "+e[a]+" your fn was: "+b);e[a]&&delete e[a]};return a},s={getCueById:function(a){for(var e=
62
- null,g=0,b=this.length;g<b;g++)if(this[g].id===a){e=this[g];break}return e}},r={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&&g.error("cue startTime higher than previous cue's startTime")}else this.cues=m.createCueList();a.track&&g.error("cue already part of a track element");
63
- a.track=this;this.cues.push(a)},removeCue:function(){g.error("not implemented yet")},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},n=["kind","label","srclang"],v=Function.prototype.call.bind(Object.prototype.hasOwnProperty),p=function(h,e){var l=[],b=[],c=[],d,f;h||(h=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!e)h.blockTrackListUpdate=!0,e=a.prop(this,"textTracks"),h.blockTrackListUpdate=!1;clearTimeout(h.updateTrackListTimer);
64
- a("track",this).each(function(){var d=a.prop(this,"track");c.push(d);-1==e.indexOf(d)&&b.push(d)});if(h.scriptedTextTracks)for(d=0,f=h.scriptedTextTracks.length;d<f;d++)c.push(h.scriptedTextTracks[d]),-1==e.indexOf(h.scriptedTextTracks[d])&&b.push(h.scriptedTextTracks[d]);for(d=0,f=e.length;d<f;d++)-1==c.indexOf(e[d])&&l.push(e[d]);if(l.length||b.length){e.splice(0);for(d=0,f=c.length;d<f;d++)e.push(c[d]);for(d=0,f=l.length;d<f;d++)a([e]).triggerHandler(a.Event({type:"removetrack",track:e,track:l[d]}));
65
- for(d=0,f=b.length;d<f;d++)a([e]).triggerHandler(a.Event({type:"addtrack",track:e,track:b[d]}));(h.scriptedTextTracks||l.length)&&a(this).triggerHandler("updatetrackdisplay")}},q=function(h,e){var l,b;e||(e=g.data(h,"trackData"));if(e&&!e.isTriggering)e.isTriggering=!0,l=(e.track||{}).mode,b=(e.track||{}).kind,setTimeout(function(){if(l!==(e.track||{}).mode||b!=(e.track||{}).kind)(e.track||{}).readyState?a(h).parent().triggerHandler("updatetrackdisplay"):a(h).triggerHandler("checktrackmode");e.isTriggering=
66
- !1},9)},t=a("<div />")[0];i.TextTrackCue=function(a,e,l){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=e;this.text=l;this.id="";this.pauseOnExit=!1;o(this)};i.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",e="",g=j.createDocumentFragment(),b;if(!v(this,"getCueAsHTML"))b=this.getCueAsHTML=function(){var b,d;if(a!=this.text){a=this.text;e=m.parseCueTextToHTML(a);t.innerHTML=e;for(b=
67
- 0,d=t.childNodes.length;b<d;b++)g.appendChild(t.childNodes[b].cloneNode(!0))}return g.cloneNode(!0)};return b?b.apply(this,arguments):g.cloneNode(!0)},track:null,id:""};m.createCueList=function(){return a.extend([],s)};m.parseCueTextToHTML=function(){var a=/(<\/?[^>]+>)/ig,e=/^(?:c|v|ruby|rt|b|i|u)/,g=/\<\s*\//,b=function(a,b,c,e){g.test(e)?a="</"+a+">":(c.splice(0,1),a="<"+a+" "+b+'="'+c.join(" ").replace(/\"/g,"&#34;")+'">');return a},c=function(a){var c=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);
68
- c[0]&&(c[0]=c[0].toLowerCase(),e.test(c[0])?"c"==c[0]?a=b("span","class",c,a):"v"==c[0]&&(a=b("q","title",c,a)):a="");return a};return function(b){return b.replace(a,c)}}();m.loadTextTrack=function(h,e,i,b){var c=i.track,d=function(){var b=a.prop(e,"src"),i,l;if("disabled"!=c.mode&&b&&a.attr(e,"src")&&(a(h).unbind("play playing timeupdate updatetrackdisplay",d),a(e).unbind("checktrackmode",d),!c.readyState)){i=function(){c.readyState=3;c.cues=null;c.activeCues=c.shimActiveCues=c._shimActiveCues=null;
69
- a(e).triggerHandler("error")};c.readyState=1;try{c.cues=m.createCueList(),c.activeCues=c.shimActiveCues=c._shimActiveCues=m.createCueList(),l=a.ajax({dataType:"text",url:b,success:function(b){"text/vtt"!=l.getResponseHeader("content-type")&&g.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");m.parseCaptions(b,c,function(b){b&&"length"in b?(c.readyState=2,a(e).triggerHandler("load"),a(h).triggerHandler("updatetrackdisplay")):i()})},error:i})}catch(j){i(),
70
- g.warn(j)}}};c.readyState=0;c.shimActiveCues=null;c._shimActiveCues=null;c.activeCues=null;c.cues=null;a(h).unbind("play playing timeupdate updatetrackdisplay",d);a(e).unbind("checktrackmode",d);a(h).bind("play playing timeupdate updatetrackdisplay",d);a(e).bind("checktrackmode",d);if(b)c.mode=u[c.kind]?"showing":"hidden",d()};m.createTextTrack=function(h,e){var i,b;if(e.nodeName&&(b=g.data(e,"trackData")))q(e,b),i=b.track;if(!i)i=o(g.objectCreate(r)),n.forEach(function(b){var d=a.prop(e,b);d&&("srclang"==
71
- b&&(b="language"),i[b]=d)}),e.nodeName?(b=g.data(e,"trackData",{track:i}),m.loadTextTrack(h,e,b,a.prop(e,"default"))):(i.cues=m.createCueList(),i.activeCues=i._shimActiveCues=i.shimActiveCues=m.createCueList(),i.mode="hidden",i.readyState=2);return i};m.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,b=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;
72
- return function(c){var d,f,i,j;if(e.exec(c)||g.exec(c)||b.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)&&(i=""+c.shift().replace(/\s*/ig,""));0<c.length;){if(j=a.exec(c[0]))f=j.slice(1),d=parseInt(3600*(f[0]||0),10)+parseInt(60*(f[1]||0),10)+parseInt(f[2]||0,10)+parseFloat("0."+(f[3]||0)),f=parseInt(3600*(f[4]||0),10)+parseInt(60*(f[5]||0),10)+parseInt(f[6]||0,10)+parseFloat("0."+(f[7]||0));c=c.slice(0,0).concat(c.slice(1));
73
- break}if(!d&&!f)return null;c=c.join("\n");d=new TextTrackCue(d,f,c);if(i)d.id=i;return d}}();m.parseCaptions=function(a,e,i){m.createCueList();var b,c,d,f,k;a?(d=/^WEBVTT(\s*FILE)?/ig,c=function(j,n){for(;j<n;j++){b=a[j];if(d.test(b))k=!0;else if(b.replace(/\s*/ig,"").length){if(!k){g.error("please use WebVTT format. This is the standard");i(null);break}(b=m.parseCaptionChunk(b,j))&&e.addCue(b)}if(f<(new Date).getTime()-9){j++;setTimeout(function(){f=(new Date).getTime();c(j,n)},90);break}}j>=n&&
74
- (k||g.error("please use WebVTT format. This is the standard"),i(e.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){f=(new Date).getTime();a=a.split(/\n\n+/g);c(0,a.length)},9)},9)):g.error("Required parameter captionData not supplied.")};m.createTrackList=function(a,e){e=e||g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});if(!e.textTracks)e.textTracks=[],g.defineProperties(e.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),
75
- o(e.textTracks);return e.textTracks};Modernizr.track||(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var e=g.data(this,"trackData");this.setAttribute("data-kind",a);if(e)e.attrKind=a},get:function(){var a=g.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:
76
- {},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});g.onNodeNamesPropertyModify("track","kind",function(){var h=g.data(this,"trackData");if(h)h.track.kind=a.prop(this,"kind"),q(this,h)});g.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=g.data(this,"trackData"),e;h&&(e=a(this).closest("video, audio"),e[0]&&m.loadTextTrack(e,this,h))}});g.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},
77
- LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(a.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return m.createTextTrack(a(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),e=m.createTrackList(this,a);a.blockTrackListUpdate||p.call(this,a,e);return e},writeable:!1},addTextTrack:{value:function(a,
78
- e,i){a=m.createTextTrack(this,{kind:a||"",label:e||"",srclang:i||""});e=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!e.scriptedTextTracks)e.scriptedTextTracks=[];e.scriptedTextTracks.push(a);p.call(this);return a}}},"prop");a(j).bind("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var e=g.data(h.target,"mediaelementBase");if(e)clearTimeout(e.updateTrackListTimer),e.updateTrackListTimer=setTimeout(function(){p.call(h.target,e)},0)}});g.addReady(function(h,
79
- e){var i=e.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(i).each(function(){p.call(this)}).each(function(){if(Modernizr.track){var b=this.textTracks;a.prop(this,"textTracks").length!=b.length&&g.error("textTracks couldn't be copied");a("track",this).each(function(){var b=a.prop(this,"track"),d=this.track,f,e;if(d){f=a.prop(this,"kind");e=d.readyState||this.readyState;if(d.mode||e)b.mode=d.mode;if("descriptions"!=f)d.mode="string"==typeof d.mode?"disabled":0,this.kind=
80
- "metadata",a(this).attr({kind:f})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});i.each(function(){var a=this,c=g.data(a,"mediaelementBase");if(c)clearTimeout(c.updateTrackListTimer),c.updateTrackListTimer=setTimeout(function(){p.call(a,c)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});
1
+ jQuery.webshims.register("dom-extend",function(b,g,j,k,l){var u=g.modules,m=/\s*,\s*/,p={},r={},o={},s={},n={},h=b.fn.val,w=function(c,f,a,d,e){return e?h.call(b(c)):h.call(b(c),a)};b.fn.val=function(c){var f=this[0];arguments.length&&null==c&&(c="");if(!arguments.length)return!f||1!==f.nodeType?h.call(this):b.prop(f,"value",c,"val",!0);if(b.isArray(c))return h.apply(this,arguments);var a=b.isFunction(c);return this.each(function(d){f=this;1===f.nodeType&&(a?(d=c.call(f,d,b.prop(f,"value",l,"val",
2
+ !0)),null==d&&(d=""),b.prop(f,"value",d,"val")):b.prop(f,"value",c,"val"))})};var t="_webshimsLib"+Math.round(1E3*Math.random()),z=function(c,f,a){c=c.jquery?c[0]:c;if(!c)return a||{};var d=b.data(c,t);a!==l&&(d||(d=b.data(c,t,{})),f&&(d[f]=a));return f?d&&d[f]:d};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(c){b.fn[c.name]=function(){return this.map(function(){var b=z(this,
3
+ "shadowData");return b&&b[c.prop]||this})}});["removeAttr","prop","attr"].forEach(function(c){p[c]=b[c];b[c]=function(f,a,d,e,g){var q="val"==e,v=!q?p[c]:w;if(!f||!r[a]||1!==f.nodeType||!q&&e&&"attr"==c&&b.attrFn[a])return v(f,a,d,e,g);var C=(f.nodeName||"").toLowerCase(),i=o[C],B="attr"==c&&(!1===d||null===d)?"removeAttr":c,h,j,k;i||(i=o["*"]);i&&(i=i[a]);i&&(h=i[B]);if(h){if("value"==a)j=h.isVal,h.isVal=q;if("removeAttr"===B)return h.value.call(f);if(d===l)return h.get?h.get.call(f):h.value;h.set&&
4
+ ("attr"==c&&!0===d&&(d=a),k=h.set.call(f,d));if("value"==a)h.isVal=j}else k=v(f,a,d,e,g);if((d!==l||"removeAttr"===B)&&n[C]&&n[C][a]){var m;m="removeAttr"==B?!1:"prop"==B?!!d:!0;n[C][a].forEach(function(b){if(!b.only||(b.only="prop"==c)||"attr"==b.only&&"prop"!=c)b.call(f,d,m,q?"val":B,c)})}return k};s[c]=function(f,a,d){o[f]||(o[f]={});o[f][a]||(o[f][a]={});var e=o[f][a][c],i=function(b,f,e){return f&&f[b]?f[b]:e&&e[b]?e[b]:"prop"==c&&"value"==a?function(b){return d.isVal?w(this,a,b,!1,0===arguments.length):
5
+ p[c](this,a,b)}:"prop"==c&&"value"==b&&d.value.apply?function(b){var f=p[c](this,a);f&&f.apply&&(f=f.apply(this,arguments));return f}:function(b){return p[c](this,a,b)}};o[f][a][c]=d;if(d.value===l){if(!d.set)d.set=d.writeable?i("set",d,e):g.cfg.useStrict&&"prop"==a?function(){throw a+" is readonly on "+f;}:b.noop;if(!d.get)d.get=i("get",d,e)}["value","get","set"].forEach(function(b){d[b]&&(d["_sup"+b]=i(b,e))})}});var e=!b.browser.msie||8<parseInt(b.browser.version,10),a=function(){var b=g.getPrototypeOf(k.createElement("foobar")),
6
+ f=Object.prototype.hasOwnProperty;return function(a,y,A){var i=k.createElement(a),q=g.getPrototypeOf(i);if(e&&q&&b!==q&&(!i[y]||!f.call(i,y))){var v=i[y];A._supvalue=function(){return v&&v.apply?v.apply(this,arguments):v};q[y]=A.value}else A._supvalue=function(){var b=z(this,"propValue");return b&&b[y]&&b[y].apply?b[y].apply(this,arguments):b&&b[y]},d.extendValue(a,y,A.value);A.value._supvalue=A._supvalue}}(),d=function(){var c={};g.addReady(function(f,a){var d={},x=function(c){d[c]||(d[c]=b(f.getElementsByTagName(c)),
7
+ a[0]&&b.nodeName(a[0],c)&&(d[c]=d[c].add(a)))};b.each(c,function(b,c){x(b);!c||!c.forEach?g.warn("Error: with "+b+"-property. methods: "+c):c.forEach(function(c){d[b].each(c)})});d=null});var f,a=b([]),d=function(a,d){c[a]?c[a].push(d):c[a]=[d];b.isDOMReady&&(f||b(k.getElementsByTagName(a))).each(d)};return{createTmpCache:function(c){b.isDOMReady&&(f=f||b(k.getElementsByTagName(c)));return f||a},flushTmpCache:function(){f=null},content:function(c,a){d(c,function(){var c=b.attr(this,a);null!=c&&b.attr(this,
8
+ a,c)})},createElement:function(b,c){d(b,c)},extendValue:function(c,a,f){d(c,function(){b(this).each(function(){z(this,"propValue",{})[a]=this[a];this[a]=f})})}}}(),i=function(c,b){if(c.defaultValue===l)c.defaultValue="";if(!c.removeAttr)c.removeAttr={value:function(){c[b||"prop"].set.call(this,c.defaultValue);c.removeAttr._supvalue.call(this)}};if(!c.attr)c.attr={}};b.extend(g,{getID:function(){var c=(new Date).getTime();return function(a){var a=b(a),d=a.attr("id");d||(c++,d="ID-"+c,a.attr("id",d));
9
+ return d}}(),extendUNDEFProp:function(c,a){b.each(a,function(b,a){b in c||(c[b]=a)})},createPropDefault:i,data:z,moveToFirstEvent:function(){var c=b._data?"_data":"data";return function(a,d,e){if((a=(b[c](a,"events")||{})[d])&&1<a.length)d=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,d):a.unshift(d)}}(),addShadowDom:function(){var c,a,d,e,i={init:!1,start:function(){if(!this.init&&k.body)this.init=!0,this.height=b(k).height(),this.width=b(k).width(),setInterval(function(){var c=
10
+ b(k).height(),a=b(k).width();if(c!=i.height||a!=i.width)i.height=c,i.width=a,e({type:"docresize"})},600)}};e=function(e){clearTimeout(c);c=setTimeout(function(){if("resize"==e.type){var c=b(j).width(),v=b(j).width();if(v==a&&c==d)return;a=v;d=c;if(k.body)i.height=b(k).height(),i.width=b(k).width()}b.event.trigger("updateshadowdom")},40)};b(j).bind("resize",e);b.event.customEvent.updateshadowdom=!0;return function(c,a,f){f=f||{};c.jquery&&(c=c[0]);a.jquery&&(a=a[0]);var d=b.data(c,t)||b.data(c,t,{}),
11
+ e=b.data(a,t)||b.data(a,t,{}),x={};if(f.shadowFocusElement){if(f.shadowFocusElement){if(f.shadowFocusElement.jquery)f.shadowFocusElement=f.shadowFocusElement[0];x=b.data(f.shadowFocusElement,t)||b.data(f.shadowFocusElement,t,x)}}else f.shadowFocusElement=a;d.hasShadow=a;x.nativeElement=e.nativeElement=c;x.shadowData=e.shadowData=d.shadowData={nativeElement:c,shadowElement:a,shadowFocusElement:f.shadowFocusElement};f.shadowChilds&&f.shadowChilds.each(function(){z(this,"shadowData",e.shadowData)});
12
+ if(f.data)x.shadowData.data=e.shadowData.data=d.shadowData.data=f.data;f=null;g.ready("DOM",function(){i.start()})}}(),propTypes:{standard:function(c){i(c);if(!c.prop)c.prop={set:function(a){c.attr.set.call(this,""+a)},get:function(){return c.attr.get.call(this)||c.defaultValue}}},"boolean":function(c){i(c);if(!c.prop)c.prop={set:function(a){a?c.attr.set.call(this,""):c.removeAttr.value.call(this)},get:function(){return null!=c.attr.get.call(this)}}},src:function(){var a=k.createElement("a");a.style.display=
13
+ "none";return function(f,d){i(f);if(!f.prop)f.prop={set:function(a){f.attr.set.call(this,a)},get:function(){var f=this.getAttribute(d),e;if(null==f)return"";a.setAttribute("href",f+"");if(!b.support.hrefNormalized){try{b(a).insertAfter(this),e=a.getAttribute("href",4)}catch(i){e=a.getAttribute("href",4)}b(a).detach()}return e||a.href}}}}(),enumarated:function(a){i(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==
14
+ a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}},reflectProperties:function(a,f){"string"==typeof f&&(f=f.split(m));f.forEach(function(f){g.defineNodeNamesProperty(a,f,{prop:{set:function(a){b.attr(this,f,a)},get:function(){return b.attr(this,f)||""}}})})},defineNodeNameProperty:function(c,f,e){r[f]=!0;if(e.reflect)g.propTypes[e.propType||"standard"](e,f);["prop","attr","removeAttr"].forEach(function(d){var i=e[d];i&&(i="prop"===d?b.extend({writeable:!0},i):b.extend({},i,{writeable:!0}),s[d](c,
15
+ f,i),"*"!=c&&g.cfg.extendNative&&"prop"==d&&i.value&&b.isFunction(i.value)&&a(c,f,i),e[d]=i)});e.initAttr&&d.content(c,f);return e},defineNodeNameProperties:function(a,b,e,i){for(var n in b)!i&&b[n].initAttr&&d.createTmpCache(a),e&&!b[n][e]&&(b[n][e]={},["value","set","get"].forEach(function(a){a in b[n]&&(b[n][e][a]=b[n][a],delete b[n][a])})),b[n]=g.defineNodeNameProperty(a,n,b[n]);i||d.flushTmpCache();return b},createElement:function(a,f,e){var i;b.isFunction(f)&&(f={after:f});d.createTmpCache(a);
16
+ f.before&&d.createElement(a,f.before);e&&(i=g.defineNodeNameProperties(a,e,!1,!0));f.after&&d.createElement(a,f.after);d.flushTmpCache();return i},onNodeNamesPropertyModify:function(a,f,e,i){"string"==typeof a&&(a=a.split(m));b.isFunction(e)&&(e={set:e});a.forEach(function(a){n[a]||(n[a]={});"string"==typeof f&&(f=f.split(m));e.initAttr&&d.createTmpCache(a);f.forEach(function(b){n[a][b]||(n[a][b]=[],r[b]=!0);if(e.set){if(i)e.set.only=i;n[a][b].push(e.set)}e.initAttr&&d.content(a,b)});d.flushTmpCache()})},
17
+ defineNodeNamesBooleanProperty:function(a,d,e){e||(e={});if(b.isFunction(e))e.set=e;g.defineNodeNamesProperty(a,d,{attr:{set:function(a){this.setAttribute(d,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===l)return a=a.attributes[b]||{},d=a.specified?a.value:null,null==d?l:d;
18
+ "boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],d={},e,i,n=/:\/\/|^\.*\//,h=function(a,d,c){return d&&c&&-1!==b.inArray(d,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,n.test(c)||(c=g.cfg.basePath+c),g.loader.loadScript(c+d+".js",function(){a.langObj[d]?(a.loading=!1,v(a,!0)):b(function(){a.langObj[d]&&v(a,!0);a.loading=!1})}),!0):!1},q=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},v=function(a,b){if(a.activeLang!=e&&
19
+ a.activeLang!==i){var c=u[a.module].options;if(a.langObj[e]||i&&a.langObj[i])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[i],e),q(a.module);else if(!b&&!h(a,e,c)&&!h(a,i,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),q(a.module)}};return function(q){if("string"==typeof q&&q!==e)e=q,i=e.split("-")[0],e==i&&(i=!1),b.each(a,function(a,b){v(b)});else if("object"==typeof q)if(q.register)d[q.register]||(d[q.register]=[]),d[q.register].push(q),q.callback();else{if(!q.activeLang)q.activeLang=
20
+ "";a.push(q);v(q)}return e}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,d,e){"string"==typeof a&&(a=a.split(m));var i={};a.forEach(function(a){i[a]=g[b](a,c,d,e)});return i}});g.isReady("webshimLocalization",!0)});
21
+ (function(b,g){var j=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<j)&&(!b.browser.msie||12>j&&7<j)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(b,g){b.getAttribute("role")||b.setAttribute("role",g)};b.webshims.addReady(function(j,m){b.each(k,function(g,n){for(var h=b(g,j).add(m.filter(g)),k=0,t=h.length;k<t;k++)l(h[k],n)});if(j===g){var p=g.getElementsByTagName("header")[0],r=g.getElementsByTagName("footer"),o=r.length;
22
+ p&&!b(p).closest("section, article")[0]&&l(p,"banner");o&&(p=r[o-1],b(p).closest("section, article")[0]||l(p,"contentinfo"))}})}})(jQuery,document);
23
+ (function(b,g,j){var k=g.audio&&g.video,l=!1,u=j.cfg.mediaelement,m=j.bugs,p=function(){j.ready("mediaelement-swf",function(){if(!j.mediaelement.createSWF)j.modules["mediaelement-swf"].test=b.noop,j.reTest(["mediaelement-swf"],k)})},r;if(k){var o=document.createElement("video");g.videoBuffered="buffered"in o;l="loop"in o;j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
+ test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"))}if(k&&!u.preferFlash){var s=function(g){var h=g.target.parentNode;!u.preferFlash&&(b(g.target).is("audio, video")||h&&b("source:last",h)[0]==g.target)&&j.ready("DOM mediaelement",function(){r&&p();j.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){r&&!u.preferFlash&&j.mediaelement.createSWF&&!b(g.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",
25
+ s,!0),b("audio, video").mediaLoad(),j.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):r||document.removeEventListener("error",s,!0)},20)})})};document.addEventListener("error",s,!0);b("audio, video").each(function(){this.error&&s({target:this})})}m.track=!1;g.track&&function(){if(!m.track)m.track="number"!=typeof b("<track />")[0].readyState;if(!m.track)try{new TextTrackCue(2,3,"")}catch(g){m.track=!0}var h=j.cfg.track,k=function(e){b(e.target).filter("track").each(l)},
26
+ l=function(){if(m.track||!h.override&&3==b.prop(this,"readyState"))h.override=!0,j.reTest("track"),document.removeEventListener("error",k,!0),this&&b.nodeName(this,"track")?j.error("track support was overwritten. Please check your vtt including your vtt mime-type"):j.info("track support was overwritten. due to bad browser support")},p=function(){document.addEventListener("error",k,!0);m.track?l():b("track").each(l)};h.override||(j.isReady("track")?p():b(p))}();j.register("mediaelement-core",function(b,
27
+ h,j,t,o){r=swfobject.hasFlashPlayerVersion("9.0.115");var e=h.mediaelement,a=function(a,c){var a=b(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var f=a.attr("type");if(f)d.type=f,d.container=b.trim(f.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=e.getTypeForSrc(d.src,c))d.type=f,d.container=f;if(f=a.attr("media"))d.media=f;return d},d=!r&&"postMessage"in j&&k,i=
28
+ function(){var a;return function(){!a&&d&&(a=!0,h.loader.loadScript("https://www.youtube.com/player_api"),b(function(){h.polyfill("mediaelement-yt")}))}}(),c=function(){r?p():i()};h.addPolyfill("mediaelement-yt",{test:!d,d:["dom-support"]});e.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",
29
+ "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"]}};e.mimeTypes.source=b.extend({},e.mimeTypes.audio,e.mimeTypes.video);e.getTypeForSrc=function(a,d){if(-1!=a.indexOf("youtube.com/watch?")||
30
+ -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],c;b.each(e.mimeTypes[d],function(b,d){if(-1!==d.indexOf(a))return c=b,!1});return c};e.srces=function(d,c){d=b(d);if(c)d.removeAttr("src").removeAttr("type").find("source").remove(),b.isArray(c)||(c=[c]),c.forEach(function(a){var b=t.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);d.append(b)});
31
+ else{var c=[],f=d[0].nodeName.toLowerCase(),e=a(d,f);e.src?c.push(e):b("source",d).each(function(){e=a(this,f);e.src&&c.push(e)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==o&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));e.srces(this,a);b(this).mediaLoad()})};e.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(",");
32
+ e.canThirdPlaySrces=function(a,c){var f="";if(r||d)a=b(a),c=c||e.srces(a),b.each(c,function(a,b){if(b.container&&b.src&&(r&&-1!=e.swfMimeTypes.indexOf(b.container)||d&&"video/youtube"==b.container))return f=b,!1});return f};var f={};e.canNativePlaySrces=function(a,c){var d="";if(k){var a=b(a),i=(a[0].nodeName||"").toLowerCase();if(!f[i])return d;c=c||e.srces(a);b.each(c,function(b,c){if(c.type&&f[i].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};e.setError=function(a,c){c||(c="can't play sources");
33
+ b(a).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var x=function(){var a;return function(b,f,g){h.ready(r?"mediaelement-swf":"mediaelement-yt",function(){e.createSWF?e.createSWF(b,f,g):a||(a=!0,c(),x(b,f,g))});!a&&d&&!e.createSWF&&i()}}(),y=function(a,b,c,d,f){c||!1!==c&&b&&"third"==b.isActive?(c=e.canThirdPlaySrces(a,d))?x(a,c,b):f?e.setError(a,!1):y(a,b,!1,d,!0):(c=e.canNativePlaySrces(a,d))?b&&"third"==
34
+ b.isActive&&e.setActive(a,"html5",b):f?(e.setError(a,!1),b&&"third"==b.isActive&&e.setActive(a,"html5",b)):y(a,b,!0,d,!0)},A=/^(?:embed|object|datalist)$/i,D=function(a,c){var d=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),f=e.srces(a),i=a.parentNode;clearTimeout(d.loadTimer);b.data(a,"mediaerror",!1);if(f.length&&i&&!(1!=i.nodeType||A.test(i.nodeName||"")))c=c||h.data(a,"mediaelement"),y(a,c,u.preferFlash||o,f)};b(t).bind("ended",function(a){var c=h.data(a.target,"mediaelement");
35
+ (!l||c&&"html5"!=c.isActive||b.prop(a.target,"loop"))&&setTimeout(function(){!b.prop(a.target,"paused")&&b.prop(a.target,"loop")&&b(a.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var c=h.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");D(this,a);k&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});f[a]=h.defineNodeNameProperty(a,
36
+ "canPlayType",{prop:{value:function(c){var d="";k&&f[a].prop._supvalue&&(d=f[a].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&r&&(c=b.trim((c||"").split(";")[0]),-1!=e.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});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(){D(a);a=null},9)}});j=function(){h.addReady(function(a,c){b("video, audio",
37
+ a).add(c.filter("video, audio")).each(function(){b.browser.msie&&8<h.browserVersion&&b.prop(this,"paused")&&!b.prop(this,"readyState")&&b(this).is('audio[preload="none"][controls]:not([autoplay])')?b(this).prop("preload","metadata").mediaLoad():D(this);if(k){var a,c,d=this,f=function(){var a=b.prop(d,"buffered");if(a){for(var c="",f=0,e=a.length;f<e;f++)c+=a.end(f);return c}},e=function(){var a=f();a!=c&&(c=a,b(d).triggerHandler("progress"))};b(this).bind("play loadstart progress",function(b){"progress"==
38
+ b.type&&(c=f());clearTimeout(a);a=setTimeout(e,999)}).bind("emptied stalled mediaerror abort suspend",function(b){"emptied"==b.type&&(c=!1);clearTimeout(a)})}})})};g.track&&!m.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(h.isReady("mediaelement-core",!0),j(),h.ready("WINDOWLOAD mediaelement",c)):h.ready("mediaelement-swf",j);b(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
39
+ (function(b){var g=window.Modernizr,j=b.webshims,k=j.bugs,l=b('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),u=function(){if(l[0].querySelector)try{k.findRequired=!l[0].querySelector("select:required")}catch(b){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;j.capturingEventPrevented=function(g){if(!g._isPolyfilled){var h=g.isDefaultPrevented,
40
+ j=g.preventDefault;g.preventDefault=function(){clearTimeout(b.data(g.target,g.type+"DefaultPrevented"));b.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){b.removeData(g.target,g.type+"DefaultPrevented")},30));return j.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!b.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||k.bustedValidity)u();else if(j.capturingEvents(["input"]),j.capturingEvents(["invalid"],!0),
41
+ g.bugfreeformvalidation=!0,window.opera||b.browser.webkit||window.testGoodWithFix){var m=b("input",l).eq(0),p,r=function(b){j.loader.loadList(["dom-extend"]);j.ready("dom-extend",b)},o=function(k){var h=["form-extend","form-message","form-native-fix"];k&&(k.preventDefault(),k.stopImmediatePropagation());clearTimeout(p);setTimeout(function(){l&&(l.remove(),l=m=null)},9);if(!g.bugfreeformvalidation)j.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),j.modules["form-extend"].test=b.noop;j.isReady("form-number-date-api")&&
42
+ h.push("form-number-date-api");j.reTest(h);if(m)try{m.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&r(function(){j.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(g){!g&&this&&b.prop(this,"value",b.prop(this,"value"))}});j.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(g){if(!g&&this)g=b(this).val(),(b("option:last-child",this)[0]||{}).selected=!0,b(this).val(g)}})})}catch(o){}(b.browser.opera||window.testGoodWithFix)&&
43
+ r(function(){var g=function(b){b.preventDefault()};["form","input","textarea","select"].forEach(function(h){var e=j.defineNodeNameProperty(h,"checkValidity",{prop:{value:function(){j.fromSubmit||b(this).bind("invalid.checkvalidity",g);j.fromCheckValidity=!0;var a=e.prop._supvalue.apply(this,arguments);j.fromSubmit||b(this).unbind("invalid.checkvalidity",g);j.fromCheckValidity=!1;return a}}})})})};l.appendTo("head");if(window.opera||window.testGoodWithFix){u();k.validationMessage=!m.prop("validationMessage");
44
+ if((g.inputtypes||{}).date){try{m.prop("valueAsNumber",0)}catch(s){}k.valueAsNumberSet="1970-01-01"!=m.prop("value")}m.prop("value","")}l.bind("submit",function(b){g.bugfreeformvalidation=!1;o(b)});p=setTimeout(function(){l&&l.triggerHandler("submit")},9);b("input, select",l).bind("invalid",o).filter('[type="submit"]').bind("click",function(b){b.stopImmediatePropagation()}).trigger("click");b.browser.webkit&&g.bugfreeformvalidation&&!j.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,
45
+ h=!1;document.addEventListener("contextmenu",function(b){g.test(b.target.nodeName||"")&&(h=b.target.form)&&setTimeout(function(){h=!1},1)},!1);b(window).bind("invalid",function(b){if(b.originalEvent&&h&&h==b.target.form)b.wrongWebkitInvalid=!0,b.stopImmediatePropagation()})}()}})(jQuery);
46
+ jQuery.webshims.register("form-core",function(b,g,j,k,l,u){var m={radio:1},p={checkbox:1,radio:1},r=b([]),o=g.bugs,s=function(a){var a=b(a),d,e;d=r;if(m[a[0].type])e=a.prop("form"),d=(d=a[0].name)?e?b(e[d]):b(k.getElementsByName(d)).filter(function(){return!b.prop(this,"form")}):a,d=d.filter('[type="radio"]');return d},n=g.getContentValidationMessage=function(a,d,e){var c=b(a).data("errormessage")||a.getAttribute("x-moz-errormessage")||"";e&&c[e]&&(c=c[e]);"object"==typeof c&&(d=d||b.prop(a,"validity")||
47
+ {valid:1},d.valid||b.each(d,function(a,b){if(b&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},h={number:1,range:1,date:1};b.extend(b.expr[":"],{"valid-element":function(a){return!(!b.prop(a,"willValidate")||!(b.prop(a,"validity")||{valid:1}).valid)},"invalid-element":function(a){return!(!b.prop(a,"willValidate")||(b.prop(a,"validity")||{valid:1}).valid)},"required-element":function(a){return!(!b.prop(a,"willValidate")||!b.prop(a,"required"))},"optional-element":function(a){return!!(b.prop(a,
48
+ "willValidate")&&!1===b.prop(a,"required"))},"in-range":function(a){if(!h[b.prop(a,"type")]||!b.prop(a,"willValidate"))return!1;a=b.prop(a,"validity");return!(!a||a.rangeOverflow||a.rangeUnderflow)},"out-of-range":function(a){if(!h[b.prop(a,"type")]||!b.prop(a,"willValidate"))return!1;a=b.prop(a,"validity");return!(!a||!a.rangeOverflow&&!a.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(a){b.expr[":"][a]=b.expr.filters[a+"-element"]});b.expr[":"].focus=function(a){try{var b=
49
+ a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(e){}return!1};var w=b.event.customEvent||{};(o.bustedValidity||o.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var a=b.find,d=b.find.matchesSelector,e=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,c=function(a){return a+"-element"};b.find=function(){var b=Array.prototype.slice,d=function(d){var g=arguments,g=b.call(g,1,g.length);g.unshift(d.replace(e,c));return a.apply(this,
50
+ g)},g;for(g in a)a.hasOwnProperty(g)&&(d[g]=a[g]);return d}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",k.documentElement))b.find.matchesSelector=function(a,b){b=b.replace(e,c);return d.call(this,a,b)}}();var t=b.prop,z={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};b.prop=function(a,d,e){var c=t.apply(this,arguments);if(a&&"form"in a&&z[d]&&e!==l&&b(a).hasClass("form-ui-invalid")&&(b.prop(a,"validity")||{valid:1}).valid)b(a).getShadowElement().removeClass("form-ui-invalid"),
51
+ "checked"==d&&e&&s(a).not(a).removeClass("form-ui-invalid").removeAttr("aria-invalid");return c};var e=function(a,d){var e;b.each(a,function(a,f){if(f)return e="customError"==a?b.prop(d,"validationMessage"):a,!1});return e};b(k).bind(u.validityUIEvents||"focusout change refreshvalidityui",function(a){var d,g;if(a.target&&(d=b(a.target).getNativeElement()[0],!("submit"==d.type||!b.prop(d,"willValidate")||"focusout"==a.type&&"radio"==a.type))){g=b.data(d,"webshimsswitchvalidityclass");var c=function(){var c=
52
+ b.prop(d,"validity"),g=b(d).getShadowElement(),i,h,j,k;b(d).trigger("refreshCustomValidityRules");c.valid?g.hasClass("form-ui-valid")||(i="form-ui-valid",h="form-ui-invalid",k="changedvaliditystate",j="changedvalid",p[d.type]&&d.checked&&s(d).not(d).removeClass(h).addClass(i).removeAttr("aria-invalid"),b.removeData(d,"webshimsinvalidcause")):(c=e(c,d),b.data(d,"webshimsinvalidcause")!=c&&(b.data(d,"webshimsinvalidcause",c),k="changedvaliditystate"),g.hasClass("form-ui-invalid")||(i="form-ui-invalid",
53
+ h="form-ui-valid",p[d.type]&&!d.checked&&s(d).not(d).removeClass(h).addClass(i),j="changedinvalid"));i&&(g.addClass(i).removeClass(h),setTimeout(function(){b(d).trigger(j)},0));k&&setTimeout(function(){b(d).trigger(k)},0);b.removeData(a.target,"webshimsswitchvalidityclass")};g&&clearTimeout(g);"refreshvalidityui"==a.type?c():b.data(a.target,"webshimsswitchvalidityclass",setTimeout(c,9))}});w.changedvaliditystate=!0;w.refreshCustomValidityRules=!0;w.changedvalid=!0;w.changedinvalid=!0;w.refreshvalidityui=
54
+ !0;g.triggerInlineForm=function(a,d){b(a).trigger(d)};g.modules["form-core"].getGroupElements=s;o=function(){g.scrollRoot=b.browser.webkit||"BackCompat"==k.compatMode?b(k.body):b(k.documentElement)};o();g.ready("DOM",o);g.getRelOffset=function(a,d){var a=b(a),e=b(d).offset(),c;b.swap(b(a)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){c=a.offset()});e.top-=c.top;e.left-=c.left;return e};g.validityAlert=function(){var a=!b.browser.msie||7<parseInt(b.browser.version,10)?"span":
55
+ "label",d,e=!1,c=!1,f,h={hideDelay:5E3,showFor:function(a,d,g,k){h._create();var a=b(a),l=b(a).getShadowElement(),m=h.getOffsetFromBody(l);h.clear();k?this.hide():(this.getMessage(a,d),this.position(l,m),this.show(),this.hideDelay&&(e=setTimeout(f,this.hideDelay)),b(j).bind("resize.validityalert",function(){clearTimeout(c);c=setTimeout(function(){h.position(l)},9)}));g||this.setFocus(l,m)},getOffsetFromBody:function(a){return g.getRelOffset(d,a)},setFocus:function(c,e){var i=b(c).getShadowFocusElement(),
56
+ h=g.scrollRoot.scrollTop(),j=(e||i.offset()).top-30,x;g.getID&&"label"==a&&d.attr("for",g.getID(i));h>j&&(g.scrollRoot.animate({scrollTop:j-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(h-j)),80)}),x=!0);try{i[0].focus()}catch(l){}x&&(g.scrollRoot.scrollTop(h),setTimeout(function(){g.scrollRoot.scrollTop(h)},0));setTimeout(function(){b(k).bind("focusout.validityalert",f)},10)},getMessage:function(a,c){c||(c=n(a[0])||a.prop("validationMessage"));c?b("span.va-box",d).text(c):this.hide()},position:function(a,
57
+ c){c=c?b.extend({},c):h.getOffsetFromBody(a);c.top+=a.outerHeight();d.css(c)},show:function(){"none"===d.css("display")&&d.css({opacity:0}).show();d.addClass("va-visible").fadeTo(400,1)},hide:function(){d.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(e);b(k).unbind(".validityalert");b(j).unbind(".validityalert");d.stop().removeAttr("for")},_create:function(){if(!d)d=h.errorBubble=b("<"+a+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
58
+ a+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){d.appendTo("body");b.fn.bgIframe&&b.browser.msie&&7>parseInt(b.browser.version,10)&&d.bgIframe()})}};f=b.proxy(h,"hide");return h}();(function(){var a,d=[],e;b(k).bind("invalid",function(c){if(!c.wrongWebkitInvalid){var f=b(c.target),g=f.getShadowElement();g.hasClass("form-ui-invalid")||(g.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){b(c.target).trigger("changedinvalid").trigger("changedvaliditystate")},
59
+ 0));if(!a)a=b.Event("firstinvalid"),a.isInvalidUIPrevented=c.isDefaultPrevented,g=b.Event("firstinvalidsystem"),b(k).triggerHandler(g,{element:c.target,form:c.target.form,isInvalidUIPrevented:c.isDefaultPrevented}),f.trigger(a);a&&a.isDefaultPrevented()&&c.preventDefault();d.push(c.target);c.extraData="fix";clearTimeout(e);e=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:b(d)};a=!1;d=[];b(c.target).trigger(e,e)},9);g=f=null}})})();b.fn.getErrorMessage=function(){var a="",
60
+ d=this[0];d&&(a=n(d)||b.prop(d,"customValidationMessage")||b.prop(d,"validationMessage"));return a};u.replaceValidationUI&&g.ready("DOM forms",function(){b(k).bind("firstinvalid",function(a){a.isInvalidUIPrevented()||(a.preventDefault(),b.webshims.validityAlert.showFor(a.target,b(a.target).prop("customValidationMessage")))})})});
61
+ jQuery.webshims.register("track",function(b,g,j,k){var l=g.mediaelement;(new Date).getTime();var u={subtitles:1,captions:1,descriptions:1},m=Modernizr.ES5&&Modernizr.objectAccessor,p=function(b){var a={};b.addEventListener=function(b,e){a[b]&&g.error("always use $.bind to the shimed event: "+b+" already bound fn was: "+a[b]+" your fn was: "+e);a[b]=e};b.removeEventListener=function(b,e){a[b]&&a[b]!=e&&g.error("always use $.bind/$.unbind to the shimed event: "+b+" already bound fn was: "+a[b]+" your fn was: "+
62
+ e);a[b]&&delete a[b]};return b},r={getCueById:function(b){for(var a=null,d=0,g=this.length;d<g;d++)if(this[d].id===b){a=this[d];break}return a}},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(b){if(this.cues){var a=this.cues[this.cues.length-1];a&&a.startTime>b.startTime&&g.error("cue startTime higher than previous cue's startTime")}else this.cues=
63
+ l.createCueList();b.track&&b.track.removeCue&&b.track.removeCue(b);b.track=this;this.cues.push(b)},removeCue:function(b){var a=this.cues||[],d=0,i=a.length;if(b.track!=this)g.error("cue not part of track");else{for(;d<i;d++)if(a[d]===b){a.splice(d,1);b.track=null;break}b.track&&g.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"],n={srclang:"language"},h=Function.prototype.call.bind(Object.prototype.hasOwnProperty),
64
+ w=function(e,a){var d=[],i=[],c=[],f,h;e||(e=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!a)e.blockTrackListUpdate=!0,a=b.prop(this,"textTracks"),e.blockTrackListUpdate=!1;clearTimeout(e.updateTrackListTimer);b("track",this).each(function(){var d=b.prop(this,"track");c.push(d);-1==a.indexOf(d)&&i.push(d)});if(e.scriptedTextTracks)for(f=0,h=e.scriptedTextTracks.length;f<h;f++)c.push(e.scriptedTextTracks[f]),-1==a.indexOf(e.scriptedTextTracks[f])&&i.push(e.scriptedTextTracks[f]);
65
+ for(f=0,h=a.length;f<h;f++)-1==c.indexOf(a[f])&&d.push(a[f]);if(d.length||i.length){a.splice(0);for(f=0,h=c.length;f<h;f++)a.push(c[f]);for(f=0,h=d.length;f<h;f++)b([a]).triggerHandler(b.Event({type:"removetrack",track:a,track:d[f]}));for(f=0,h=i.length;f<h;f++)b([a]).triggerHandler(b.Event({type:"addtrack",track:a,track:i[f]}));(e.scriptedTextTracks||d.length)&&b(this).triggerHandler("updatetrackdisplay")}},t=function(e,a){a||(a=g.data(e,"trackData"));if(a&&!a.isTriggering)a.isTriggering=!0,setTimeout(function(){(a.track||
66
+ {}).readyState?b(e).closest("audio, video").triggerHandler("updatetrackdisplay"):b(e).triggerHandler("checktrackmode");a.isTriggering=!1},1)},z=b("<div />")[0];j.TextTrackCue=function(b,a,d){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=b;this.endTime=a;this.text=d;this.id="";this.pauseOnExit=!1;p(this)};j.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var b="",a="",d=k.createDocumentFragment(),g;if(!h(this,
67
+ "getCueAsHTML"))g=this.getCueAsHTML=function(){var c,f;if(b!=this.text){b=this.text;a=l.parseCueTextToHTML(b);z.innerHTML=a;for(c=0,f=z.childNodes.length;c<f;c++)d.appendChild(z.childNodes[c].cloneNode(!0))}return d.cloneNode(!0)};return g?g.apply(this,arguments):d.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return b.extend([],r)};l.parseCueTextToHTML=function(){var b=/(<\/?[^>]+>)/ig,a=/^(?:c|v|ruby|rt|b|i|u)/,d=/\<\s*\//,g=function(a,b,c,e){d.test(e)?a="</"+a+">":(c.splice(0,1),
68
+ a="<"+a+" "+b+'="'+c.join(" ").replace(/\"/g,"&#34;")+'">');return a},c=function(b){var c=b.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);c[0]&&(c[0]=c[0].toLowerCase(),a.test(c[0])?"c"==c[0]?b=g("span","class",c,b):"v"==c[0]&&(b=g("q","title",c,b)):b="");return b};return function(a){return a.replace(b,c)}}();l.loadTextTrack=function(e,a,d,i){var c=d.track,f=function(){var d=b.prop(a,"src"),i,h;if("disabled"!=c.mode&&d&&b.attr(a,"src")&&(b(e).unbind("play playing timeupdate updatetrackdisplay",f),b(a).unbind("checktrackmode",
69
+ f),!c.readyState)){i=function(){c.readyState=3;c.cues=null;c.activeCues=c.shimActiveCues=c._shimActiveCues=null;b(a).triggerHandler("error")};c.readyState=1;try{c.cues=l.createCueList(),c.activeCues=c.shimActiveCues=c._shimActiveCues=l.createCueList(),h=b.ajax({dataType:"text",url:d,success:function(d){"text/vtt"!=h.getResponseHeader("content-type")&&g.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");l.parseCaptions(d,c,function(d){d&&"length"in
70
+ d?(c.readyState=2,b(a).triggerHandler("load"),b(e).triggerHandler("updatetrackdisplay")):i()})},error:i})}catch(j){i(),g.warn(j)}}};c.readyState=0;c.shimActiveCues=null;c._shimActiveCues=null;c.activeCues=null;c.cues=null;b(e).unbind("play playing timeupdate updatetrackdisplay",f);b(a).unbind("checktrackmode",f);b(e).bind("play playing timeupdate updatetrackdisplay",f);b(a).bind("checktrackmode",f);if(i)c.mode=u[c.kind]?"showing":"hidden",f()};l.createTextTrack=function(e,a){var d,i;if(a.nodeName&&
71
+ (i=g.data(a,"trackData")))t(a,i),d=i.track;if(!d)d=p(g.objectCreate(o)),m||s.forEach(function(c){var e=b.prop(a,c);e&&(d[n[c]||c]=e)}),a.nodeName?(m&&s.forEach(function(c){g.defineProperty(d,n[c]||c,{get:function(){return b.prop(a,c)}})}),i=g.data(a,"trackData",{track:d}),l.loadTextTrack(e,a,i,b.prop(a,"default")&&b(a).siblings("track[default]").andSelf()[0]==a)):(m&&s.forEach(function(b){g.defineProperty(d,n[b]||b,{value:a[b],writeable:!1})}),d.cues=l.createCueList(),d.activeCues=d._shimActiveCues=
72
+ d.shimActiveCues=l.createCueList(),d.mode="hidden",d.readyState=2);return d};l.parseCaptionChunk=function(){var b=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,a=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,d=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,i=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(c){var f,h,j,k;if(a.exec(c)||d.exec(c)||i.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)&&
73
+ (j=""+c.shift().replace(/\s*/ig,""));0<c.length;){if(k=b.exec(c[0]))h=k.slice(1),f=parseInt(3600*(h[0]||0),10)+parseInt(60*(h[1]||0),10)+parseInt(h[2]||0,10)+parseFloat("0."+(h[3]||0)),h=parseInt(3600*(h[4]||0),10)+parseInt(60*(h[5]||0),10)+parseInt(h[6]||0,10)+parseFloat("0."+(h[7]||0));c=c.slice(0,0).concat(c.slice(1));break}if(!f&&!h)return g.warn("couldn't extract time information: "+[f,h,c.join("\n"),j].join(" ; ")),null;c=c.join("\n");f=new TextTrackCue(f,h,c);if(j)f.id=j;return f}}();l.parseCaptions=
74
+ function(b,a,d){l.createCueList();var i,c,f,h,j;b?(f=/^WEBVTT(\s*FILE)?/ig,c=function(k,m){for(;k<m;k++){i=b[k];if(f.test(i))j=!0;else if(i.replace(/\s*/ig,"").length){if(!j){g.error("please use WebVTT format. This is the standard");d(null);break}(i=l.parseCaptionChunk(i,k))&&a.addCue(i)}if(h<(new Date).getTime()-30){k++;setTimeout(function(){h=(new Date).getTime();c(k,m)},90);break}}k>=m&&(j||g.error("please use WebVTT format. This is the standard"),d(a.cues))},b=b.replace(/\r\n/g,"\n"),setTimeout(function(){b=
75
+ b.replace(/\r/g,"\n");setTimeout(function(){h=(new Date).getTime();b=b.split(/\n\n+/g);c(0,b.length)},9)},9)):g.error("Required parameter captionData not supplied.")};l.createTrackList=function(b,a){a=a||g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{});if(!a.textTracks)a.textTracks=[],g.defineProperties(a.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),p(a.textTracks);return a.textTracks};Modernizr.track||(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],
76
+ ["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(b){var a=g.data(this,"trackData");this.setAttribute("data-kind",b);if(a)a.attrKind=b},get:function(){var b=g.data(this,"trackData");return b&&"attrKind"in b?b.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});
77
+ b.each(s,function(e,a){var d=n[a]||a;g.onNodeNamesPropertyModify("track",a,function(){var e=g.data(this,"trackData"),c=this;if(e)"kind"==a&&t(this,e),m||(e.track[d]=b.prop(this,a)),clearTimeout(e.changedTrackPropTimer),e.changedTrackPropTimer=setTimeout(function(){b(c).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(e){if(e){var e=g.data(this,"trackData"),a;e&&(a=b(this).closest("video, audio"),a[0]&&l.loadTextTrack(a,this,e))}});g.defineNodeNamesProperties(["track"],
78
+ {ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(b.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(b(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var b=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),a=l.createTrackList(this,b);b.blockTrackListUpdate||w.call(this,b,a);return a},
79
+ writeable:!1},addTextTrack:{value:function(b,a,d){b=l.createTextTrack(this,{kind:b||"",label:a||"",srclang:d||""});a=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!a.scriptedTextTracks)a.scriptedTextTracks=[];a.scriptedTextTracks.push(b);w.call(this);return b}}},"prop");b(k).bind("emptied ended updatetracklist",function(e){if(b(e.target).is("audio, video")){var a=g.data(e.target,"mediaelementBase");if(a)clearTimeout(a.updateTrackListTimer),a.updateTrackListTimer=setTimeout(function(){w.call(e.target,
80
+ a)},0)}});g.addReady(function(e,a){var d=a.filter("video, audio, track").closest("audio, video");b("video, audio",e).add(d).each(function(){w.call(this)}).each(function(){if(Modernizr.track){var a=this.textTracks;b.prop(this,"textTracks").length!=a.length&&g.error("textTracks couldn't be copied");b("track",this).each(function(){var a=b.prop(this,"track"),d=this.track,e,g;if(d){e=b.prop(this,"kind");g=d.readyState||this.readyState;if(d.mode||g)a.mode=d.mode;if("descriptions"!=e)d.mode="string"==typeof d.mode?
81
+ "disabled":0,this.kind="metadata",b(this).attr({kind:e})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});d.each(function(){var a=this,b=g.data(a,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){w.call(a,b)},9)})});Modernizr.track&&b("video, audio").trigger("trackapichange")});