webshims-rails 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. data/lib/webshims-rails/version.rb +2 -2
  2. data/vendor/assets/javascripts/webshims/extras/custom-validity.js +261 -261
  3. data/vendor/assets/javascripts/webshims/extras/modernizr-custom.js +534 -534
  4. data/vendor/assets/javascripts/webshims/extras/mousepress.js +60 -60
  5. data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +1 -1
  6. data/vendor/assets/javascripts/webshims/minified/polyfiller.js +24 -24
  7. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/README +82 -82
  8. data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +35 -34
  9. data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +79 -82
  10. data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +45 -44
  11. data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +43 -42
  12. data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +28 -27
  13. data/vendor/assets/javascripts/webshims/minified/shims/combos/15.js +4 -4
  14. data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +57 -59
  15. data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +64 -66
  16. data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +53 -54
  17. data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +64 -66
  18. data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +72 -73
  19. data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +42 -46
  20. data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +52 -50
  21. data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +55 -59
  22. data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +66 -64
  23. data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +80 -82
  24. data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +60 -59
  25. data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +79 -81
  26. data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +101 -104
  27. data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +94 -95
  28. data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +26 -29
  29. data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +33 -36
  30. data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +51 -54
  31. data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +27 -28
  32. data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +27 -28
  33. data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +39 -38
  34. data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +65 -68
  35. data/vendor/assets/javascripts/webshims/minified/shims/details.js +4 -4
  36. data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +23 -22
  37. data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +19 -22
  38. data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +14 -14
  39. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-api.js +9 -9
  40. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +18 -19
  41. data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +45 -43
  42. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-de.txt +33 -33
  43. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-en.txt +34 -34
  44. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +12 -12
  45. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-jaris.js +23 -0
  46. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-native-fix.js +1 -1
  47. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +26 -30
  48. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-yt.js +3 -3
  49. data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +689 -686
  50. data/vendor/assets/javascripts/webshims/minified/shims/swf/JarisFLVPlayer.swf +0 -0
  51. data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -9
  52. data/vendor/assets/javascripts/webshims/minified/shims/track.js +21 -21
  53. data/vendor/assets/javascripts/webshims/polyfiller.js +1191 -1175
  54. data/vendor/assets/javascripts/webshims/shims/combos/1.js +1754 -1714
  55. data/vendor/assets/javascripts/webshims/shims/combos/10.js +3247 -3320
  56. data/vendor/assets/javascripts/webshims/shims/combos/11.js +1633 -1588
  57. data/vendor/assets/javascripts/webshims/shims/combos/12.js +1636 -1591
  58. data/vendor/assets/javascripts/webshims/shims/combos/13.js +1100 -1058
  59. data/vendor/assets/javascripts/webshims/shims/combos/14.js +476 -476
  60. data/vendor/assets/javascripts/webshims/shims/combos/15.js +316 -314
  61. data/vendor/assets/javascripts/webshims/shims/combos/16.js +2094 -2104
  62. data/vendor/assets/javascripts/webshims/shims/combos/17.js +2258 -2267
  63. data/vendor/assets/javascripts/webshims/shims/combos/18.js +1380 -1364
  64. data/vendor/assets/javascripts/webshims/shims/combos/19.js +2239 -2247
  65. data/vendor/assets/javascripts/webshims/shims/combos/2.js +2339 -2294
  66. data/vendor/assets/javascripts/webshims/shims/combos/20.js +1493 -1606
  67. data/vendor/assets/javascripts/webshims/shims/combos/21.js +1733 -1635
  68. data/vendor/assets/javascripts/webshims/shims/combos/22.js +2295 -2408
  69. data/vendor/assets/javascripts/webshims/shims/combos/23.js +2269 -2168
  70. data/vendor/assets/javascripts/webshims/shims/combos/24.js +2775 -2780
  71. data/vendor/assets/javascripts/webshims/shims/combos/25.js +1505 -1456
  72. data/vendor/assets/javascripts/webshims/shims/combos/26.js +2111 -2115
  73. data/vendor/assets/javascripts/webshims/shims/combos/27.js +3264 -3331
  74. data/vendor/assets/javascripts/webshims/shims/combos/3.js +3020 -2970
  75. data/vendor/assets/javascripts/webshims/shims/combos/4.js +770 -822
  76. data/vendor/assets/javascripts/webshims/shims/combos/5.js +1025 -1077
  77. data/vendor/assets/javascripts/webshims/shims/combos/59.js +1706 -1753
  78. data/vendor/assets/javascripts/webshims/shims/combos/6.js +444 -433
  79. data/vendor/assets/javascripts/webshims/shims/combos/7.js +699 -688
  80. data/vendor/assets/javascripts/webshims/shims/combos/8.js +1488 -1445
  81. data/vendor/assets/javascripts/webshims/shims/combos/9.js +2445 -2518
  82. data/vendor/assets/javascripts/webshims/shims/details.js +148 -146
  83. data/vendor/assets/javascripts/webshims/shims/dom-extend.js +952 -912
  84. data/vendor/assets/javascripts/webshims/shims/es5.js +802 -802
  85. data/vendor/assets/javascripts/webshims/shims/excanvas.js +924 -924
  86. data/vendor/assets/javascripts/webshims/shims/form-core.js +606 -659
  87. data/vendor/assets/javascripts/webshims/shims/form-datalist.js +681 -676
  88. data/vendor/assets/javascripts/webshims/shims/form-message.js +164 -163
  89. data/vendor/assets/javascripts/webshims/shims/form-native-extend.js +255 -255
  90. data/vendor/assets/javascripts/webshims/shims/form-number-date-api.js +383 -383
  91. data/vendor/assets/javascripts/webshims/shims/form-number-date-ui.js +61 -50
  92. data/vendor/assets/javascripts/webshims/shims/form-shim-extend.js +1569 -1472
  93. data/vendor/assets/javascripts/webshims/shims/geolocation.js +168 -168
  94. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ar.js +32 -32
  95. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ch-ZN.js +32 -32
  96. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-de.txt +33 -33
  97. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-el.js +32 -32
  98. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-en.txt +34 -34
  99. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-es.js +31 -31
  100. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-fr.js +32 -32
  101. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-he.js +32 -32
  102. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-hi.js +32 -32
  103. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-hu.js +32 -32
  104. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-it.js +32 -32
  105. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ja.js +32 -32
  106. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-nl.js +32 -32
  107. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-pt-PT.js +32 -32
  108. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ru.js +31 -31
  109. data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-sv.js +32 -32
  110. data/vendor/assets/javascripts/webshims/shims/json-storage.js +308 -308
  111. data/vendor/assets/javascripts/webshims/shims/mediaelement-core.js +536 -533
  112. data/vendor/assets/javascripts/webshims/shims/mediaelement-jaris.js +861 -0
  113. data/vendor/assets/javascripts/webshims/shims/mediaelement-native-fix.js +98 -98
  114. data/vendor/assets/javascripts/webshims/shims/mediaelement-swf.js +957 -1073
  115. data/vendor/assets/javascripts/webshims/shims/mediaelement-yt.js +543 -543
  116. data/vendor/assets/javascripts/webshims/shims/styles/shim.css +689 -686
  117. data/vendor/assets/javascripts/webshims/shims/swf/JarisFLVPlayer.swf +0 -0
  118. data/vendor/assets/javascripts/webshims/shims/track-ui.js +9 -8
  119. data/vendor/assets/javascripts/webshims/shims/track.js +17 -11
  120. metadata +6 -6
  121. data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +0 -7
  122. data/vendor/assets/javascripts/webshims/shims/FlashCanvas/README +0 -62
  123. data/vendor/assets/javascripts/webshims/shims/FlashCanvasPro/README +0 -82
  124. data/vendor/assets/javascripts/webshims/shims/form-native-fix.js +0 -261
@@ -1,59 +1,60 @@
1
- jQuery.webshims.register("dom-extend",function(d,g,k,l,m){var w=g.modules,o=/\s*,\s*/,n={},p={},q={},r={},s={},j=d.fn.val,y=function(a,b,h,A,c){return c?j.call(d(a)):j.call(d(a),h)};d.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?j.call(this):d.prop(b,"value",a,"val",!0);if(d.isArray(a))return j.apply(this,arguments);var h=d.isFunction(a);return this.each(function(c){b=this;1===b.nodeType&&(h?(c=a.call(b,c,d.prop(b,"value",m,"val",
2
- !0)),null==c&&(c=""),d.prop(b,"value",c,"val")):d.prop(b,"value",a,"val"))})};var u="_webshimsLib"+Math.round(1E3*Math.random()),x=function(a,b,h){a=a.jquery?a[0]:a;if(!a)return h||{};var c=d.data(a,u);h!==m&&(c||(c=d.data(a,u,{})),b&&(c[b]=h));return b?c&&c[b]:c};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){d.fn[a.name]=function(){return this.map(function(){var b=x(this,
3
- "shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){n[a]=d[a];d[a]=function(b,h,c,e,f){var v="val"==e,t=!v?n[a]:y;if(!b||!p[h]||1!==b.nodeType||!v&&e&&"attr"==a&&d.attrFn[h])return t(b,h,c,e,f);var B=(b.nodeName||"").toLowerCase(),z=q[B],g="attr"==a&&(!1===c||null===c)?"removeAttr":a,i,j,k;z||(z=q["*"]);z&&(z=z[h]);z&&(i=z[g]);if(i){if("value"==h)j=i.isVal,i.isVal=v;if("removeAttr"===g)return i.value.call(b);if(c===m)return i.get?i.get.call(b):i.value;i.set&&
4
- ("attr"==a&&!0===c&&(c=h),k=i.set.call(b,c));if("value"==h)i.isVal=j}else k=t(b,h,c,e,f);if((c!==m||"removeAttr"===g)&&s[B]&&s[B][h]){var l;l="removeAttr"==g?!1:"prop"==g?!!c:!0;s[B][h].forEach(function(h){if(!h.only||(h.only="prop"==a)||"attr"==h.only&&"prop"!=a)h.call(b,c,l,v?"val":g,a)})}return k};r[a]=function(b,h,c){q[b]||(q[b]={});q[b][h]||(q[b][h]={});var e=q[b][h][a],f=function(b,d,e){return d&&d[b]?d[b]:e&&e[b]?e[b]:"prop"==a&&"value"==h?function(b){return c.isVal?y(this,h,b,!1,0===arguments.length):
5
- n[a](this,h,b)}:"prop"==a&&"value"==b&&c.value.apply?function(b){var c=n[a](this,h);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(b){return n[a](this,h,b)}};q[b][h][a]=c;if(c.value===m){if(!c.set)c.set=c.writeable?f("set",c,e):g.cfg.useStrict&&"prop"==h?function(){throw h+" is readonly on "+b;}:d.noop;if(!c.get)c.get=f("get",c,e)}["value","get","set"].forEach(function(b){c[b]&&(c["_sup"+b]=f(b,e))})}});var c=!d.browser.msie||8<parseInt(d.browser.version,10),e=function(){var a=g.getPrototypeOf(l.createElement("foobar")),
6
- b=Object.prototype.hasOwnProperty;return function(h,d,e){var i=l.createElement(h),v=g.getPrototypeOf(i);if(c&&v&&a!==v&&(!i[d]||!b.call(i,d))){var t=i[d];e._supvalue=function(){return t&&t.apply?t.apply(this,arguments):t};v[d]=e.value}else e._supvalue=function(){var b=x(this,"propValue");return b&&b[d]&&b[d].apply?b[d].apply(this,arguments):b&&b[d]},f.extendValue(h,d,e.value);e.value._supvalue=e._supvalue}}(),f=function(){var a={};g.addReady(function(b,c){var h={},e=function(a){h[a]||(h[a]=d(b.getElementsByTagName(a)),
7
- c[0]&&d.nodeName(c[0],a)&&(h[a]=h[a].add(c)))};d.each(a,function(b,a){e(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){h[b].each(a)})});h=null});var b,h=d([]),c=function(h,c){a[h]?a[h].push(c):a[h]=[c];d.isDOMReady&&(b||d(l.getElementsByTagName(h))).each(c)};return{createTmpCache:function(a){d.isDOMReady&&(b=b||d(l.getElementsByTagName(a)));return b||h},flushTmpCache:function(){b=null},content:function(b,a){c(b,function(){var b=d.attr(this,a);null!=b&&d.attr(this,
8
- a,b)})},createElement:function(b,a){c(b,a)},extendValue:function(b,a,h){c(b,function(){d(this).each(function(){x(this,"propValue",{})[a]=this[a];this[a]=h})})}}}(),i=function(a,b){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};d.extend(g,{getID:function(){var a=(new Date).getTime();return function(b){var b=d(b),h=b.attr("id");h||(a++,h="ID-"+a,b.attr("id",h));
9
- return h}}(),extendUNDEFProp:function(a,b){d.each(b,function(b,c){b in a||(a[b]=c)})},createPropDefault:i,data:x,moveToFirstEvent:function(){var a=d._data?"_data":"data";return function(b,c,e){if((b=(d[a](b,"events")||{})[c])&&1<b.length)c=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,c):b.unshift(c)}}(),addShadowDom:function(){var a,b,c,e,f={init:!1,start:function(){if(!this.init&&l.body)this.init=!0,this.height=d(l).height(),this.width=d(l).width(),setInterval(function(){var b=
10
- d(l).height(),a=d(l).width();if(b!=f.height||a!=f.width)f.height=b,f.width=a,e({type:"docresize"})},600)}};e=function(e){clearTimeout(a);a=setTimeout(function(){if("resize"==e.type){var a=d(k).width(),t=d(k).width();if(t==b&&a==c)return;b=t;c=a;if(l.body)f.height=d(l).height(),f.width=d(l).width()}d.event.trigger("updateshadowdom")},40)};d(k).bind("resize",e);d.event.customEvent.updateshadowdom=!0;return function(b,a,c){c=c||{};b.jquery&&(b=b[0]);a.jquery&&(a=a[0]);var h=d.data(b,u)||d.data(b,u,{}),
11
- e=d.data(a,u)||d.data(a,u,{}),i={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];i=d.data(c.shadowFocusElement,u)||d.data(c.shadowFocusElement,u,i)}}else c.shadowFocusElement=a;h.hasShadow=a;i.nativeElement=e.nativeElement=b;i.shadowData=e.shadowData=h.shadowData={nativeElement:b,shadowElement:a,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){x(this,"shadowData",e.shadowData)});
12
- if(c.data)i.shadowData.data=e.shadowData.data=h.shadowData.data=c.data;c=null;g.ready("DOM",function(){f.start()})}}(),propTypes:{standard:function(a){i(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){i(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var a=l.createElement("a");a.style.display=
13
- "none";return function(b,c){i(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(c),e;if(null==b)return"";a.setAttribute("href",b+"");if(!d.support.hrefNormalized){try{d(a).insertAfter(this),e=a.getAttribute("href",4)}catch(f){e=a.getAttribute("href",4)}d(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,b){"string"==typeof b&&(b=b.split(o));b.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){d.attr(this,b,a)},get:function(){return d.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,c){p[b]=!0;if(c.reflect)g.propTypes[c.propType||"standard"](c,b);["prop","attr","removeAttr"].forEach(function(f){var i=c[f];i&&(i="prop"===f?d.extend({writeable:!0},i):d.extend({},i,{writeable:!0}),r[f](a,
15
- b,i),"*"!=a&&g.cfg.extendNative&&"prop"==f&&i.value&&d.isFunction(i.value)&&e(a,b,i),c[f]=i)});c.initAttr&&f.content(a,b);return c},defineNodeNameProperties:function(a,b,c,e){for(var d in b)!e&&b[d].initAttr&&f.createTmpCache(a),c&&!b[d][c]&&(b[d][c]={},["value","set","get"].forEach(function(a){a in b[d]&&(b[d][c][a]=b[d][a],delete b[d][a])})),b[d]=g.defineNodeNameProperty(a,d,b[d]);e||f.flushTmpCache();return b},createElement:function(a,b,c){var e;d.isFunction(b)&&(b={after:b});f.createTmpCache(a);
16
- b.before&&f.createElement(a,b.before);c&&(e=g.defineNodeNameProperties(a,c,!1,!0));b.after&&f.createElement(a,b.after);f.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,b,c,e){"string"==typeof a&&(a=a.split(o));d.isFunction(c)&&(c={set:c});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(o));c.initAttr&&f.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],p[b]=!0);if(c.set){if(e)c.set.only=e;s[a][b].push(c.set)}c.initAttr&&f.content(a,b)});f.flushTmpCache()})},
17
- defineNodeNamesBooleanProperty:function(a,b,c){c||(c={});if(d.isFunction(c))c.set=c;g.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?m:b}},removeAttr:{value:function(){this.removeAttribute(b);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===m)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?m:c;
18
- "boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var a=[],b={},c,e,f=/:\/\/|^\.*\//,i=function(a,b,c){return b&&c&&-1!==d.inArray(b,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,f.test(c)||(c=g.cfg.basePath+c),g.loader.loadScript(c+b+".js",function(){a.langObj[b]?(a.loading=!1,t(a,!0)):d(function(){a.langObj[b]&&t(a,!0);a.loading=!1})}),!0):!1},v=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},t=function(a,b){if(a.activeLang!=c&&
19
- a.activeLang!==e){var d=w[a.module].options;if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),v(a.module);else if(!b&&!i(a,c,d)&&!i(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),v(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,e=c.split("-")[0],c==e&&(e=!1),d.each(a,function(a,b){t(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang=
20
- "";a.push(f);t(f)}return c}}()});d.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,e,d){"string"==typeof a&&(a=a.split(o));var f={};a.forEach(function(a){f[a]=g[b](a,c,e,d)});return f}});g.isReady("webshimLocalization",!0)});
21
- (function(d,g){var k=d.webshims.browserVersion;if(!(d.browser.mozilla&&5<k)&&(!d.browser.msie||12>k&&7<k)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(d,g){d.getAttribute("role")||d.setAttribute("role",g)};d.webshims.addReady(function(k,o){d.each(l,function(g,s){for(var j=d(g,k).add(o.filter(g)),l=0,u=j.length;l<u;l++)m(j[l],s)});if(k===g){var n=g.getElementsByTagName("header")[0],p=g.getElementsByTagName("footer"),q=p.length;
22
- n&&!d(n).closest("section, article")[0]&&m(n,"banner");q&&(n=p[q-1],d(n).closest("section, article")[0]||m(n,"contentinfo"))}})}})(jQuery,document);
23
- (function(d,g,k){var l=g.audio&&g.video,m=!1,w=k.cfg.mediaelement,o=k.bugs,n=function(){k.ready("mediaelement-swf",function(){if(!k.mediaelement.createSWF)k.modules["mediaelement-swf"].test=d.noop,k.reTest(["mediaelement-swf"],l)})},p;if(l){var q=document.createElement("video");g.videoBuffered="buffered"in q;m="loop"in q;k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
- test:g.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"))}if(l&&!w.preferFlash){var r=function(g){var j=g.target.parentNode;!w.preferFlash&&(d(g.target).is("audio, video")||j&&d("source:last",j)[0]==g.target)&&k.ready("DOM mediaelement",function(){p&&n();k.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){p&&!w.preferFlash&&k.mediaelement.createSWF&&!d(g.target).closest("audio, video").is(".nonnative-api-active")?(w.preferFlash=!0,document.removeEventListener("error",
25
- r,!0),d("audio, video").mediaLoad(),k.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):p||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);d("audio, video").each(function(){this.error&&r({target:this})})}o.track=!1;g.track&&function(){if(!o.track)o.track="number"!=typeof d("<track />")[0].readyState;if(!o.track)try{new TextTrackCue(2,3,"")}catch(g){o.track=!0}var j=k.cfg.track,m=function(c){d(c.target).filter("track").each(l)},
26
- l=function(){if(o.track||!j.override&&3==d.prop(this,"readyState"))j.override=!0,k.reTest("track"),document.removeEventListener("error",m,!0),this&&d.nodeName(this,"track")?k.error("track support was overwritten. Please check your vtt including your vtt mime-type"):k.info("track support was overwritten. due to bad browser support")},n=function(){document.addEventListener("error",m,!0);o.track?l():d("track").each(l)};j.override||(k.isReady("track")?n():d(n))}();k.register("mediaelement-core",function(d,
27
- j,k,q,r){p=swfobject.hasFlashPlayerVersion("9.0.115");var c=j.mediaelement,e=function(a,b){var a=d(a),e={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!e.src)return e;var f=a.attr("type");if(f)e.type=f,e.container=d.trim(f.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=c.getTypeForSrc(e.src,b))e.type=f,e.container=f;if(f=a.attr("media"))e.media=f;return e},f=!p&&"postMessage"in k&&l,i=
28
- function(){var a;return function(){!a&&f&&(a=!0,j.loader.loadScript("https://www.youtube.com/player_api"),d(function(){j.polyfill("mediaelement-yt")}))}}(),a=function(){p?n():i()};j.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});c.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"]}};c.mimeTypes.source=d.extend({},c.mimeTypes.audio,c.mimeTypes.video);c.getTypeForSrc=function(a,b){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],e;d.each(c.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return e=b,!1});return e};c.srces=function(a,b){a=d(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),d.isArray(b)||(b=[b]),b.forEach(function(b){var c=q.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});
31
- else{var b=[],c=a[0].nodeName.toLowerCase(),f=e(a,c);f.src?b.push(f):d("source",a).each(function(){f=e(this,c);f.src&&b.push(f)});return b}};d.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==r&&(d(this).removeAttr("poster"),b&&d.attr(this,"poster",b));c.srces(this,a);d(this).mediaLoad()})};c.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
- c.canThirdPlaySrces=function(a,b){var e="";if(p||f)a=d(a),b=b||c.srces(a),d.each(b,function(a,b){if(b.container&&b.src&&(p&&-1!=c.swfMimeTypes.indexOf(b.container)||f&&"video/youtube"==b.container))return e=b,!1});return e};var b={};c.canNativePlaySrces=function(a,e){var f="";if(l){var a=d(a),h=(a[0].nodeName||"").toLowerCase();if(!b[h])return f;e=e||c.srces(a);d.each(e,function(c,d){if(d.type&&b[h].prop._supvalue.call(a[0],d.type))return f=d,!1})}return f};c.setError=function(a,b){b||(b="can't play sources");
33
- d(a).pause().data("mediaerror",b);j.warn("mediaelementError: "+b);setTimeout(function(){d(a).data("mediaerror")&&d(a).trigger("mediaerror")},1)};var h=function(){var b;return function(d,e,g){j.ready(p?"mediaelement-swf":"mediaelement-yt",function(){c.createSWF?c.createSWF(d,e,g):b||(b=!0,a(),h(d,e,g))});!b&&f&&!c.createSWF&&i()}}(),A=function(a,b,d,e,f){d||!1!==d&&b&&"third"==b.isActive?(d=c.canThirdPlaySrces(a,e))?h(a,d,b):f?c.setError(a,!1):A(a,b,!1,e,!0):(d=c.canNativePlaySrces(a,e))?b&&"third"==
34
- b.isActive&&c.setActive(a,"html5",b):f?(c.setError(a,!1),b&&"third"==b.isActive&&c.setActive(a,"html5",b)):A(a,b,!0,e,!0)},D=/^(?:embed|object|datalist)$/i,C=function(a,b){var e=j.data(a,"mediaelementBase")||j.data(a,"mediaelementBase",{}),f=c.srces(a),h=a.parentNode;clearTimeout(e.loadTimer);d.data(a,"mediaerror",!1);if(f.length&&h&&!(1!=h.nodeType||D.test(h.nodeName||"")))b=b||j.data(a,"mediaelement"),A(a,b,w.preferFlash||r,f)};d(q).bind("ended",function(a){var b=j.data(a.target,"mediaelement");
35
- (!m||b&&"html5"!=b.isActive||d.prop(a.target,"loop"))&&setTimeout(function(){!d.prop(a.target,"paused")&&d.prop(a.target,"loop")&&d(a.target).prop("currentTime",0).play()},1)});m||j.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var e=j.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=j.data(this,"mediaelement");C(this,a);l&&(!a||"html5"==a.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});b[a]=j.defineNodeNameProperty(a,
36
- "canPlayType",{prop:{value:function(e){var f="";l&&b[a].prop._supvalue&&(f=b[a].prop._supvalue.call(this,e),"no"==f&&(f=""));!f&&p&&(e=d.trim((e||"").split(";")[0]),-1!=c.swfMimeTypes.indexOf(e)&&(f="maybe"));return f}}})});j.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=j.data(a,"mediaelementBase")||j.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){C(a);a=null},9)}});k=function(){j.addReady(function(a,b){d("video, audio",
37
- a).add(b.filter("video, audio")).each(function(){d.browser.msie&&8<j.browserVersion&&d.prop(this,"paused")&&!d.prop(this,"readyState")&&d(this).is('audio[preload="none"][controls]:not([autoplay])')?d(this).prop("preload","metadata").mediaLoad():C(this);if(l){var a,b,c=this,e=function(){var a=d.prop(c,"buffered");if(a){for(var b="",e=0,f=a.length;e<f;e++)b+=a.end(e);return b}},f=function(){var a=e();a!=b&&(b=a,d(c).triggerHandler("progress"))};d(this).bind("play loadstart progress",function(c){"progress"==
38
- c.type&&(b=e());clearTimeout(a);a=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};g.track&&!o.track&&j.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(j.isReady("mediaelement-core",!0),k(),j.ready("WINDOWLOAD mediaelement",a)):j.ready("mediaelement-swf",k);d(function(){j.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
39
- jQuery.webshims.register("track",function(d,g,k,l){var m=g.mediaelement;(new Date).getTime();var w={subtitles:1,captions:1,descriptions:1},o=Modernizr.ES5&&Modernizr.objectAccessor,n=function(c){var e={};c.addEventListener=function(c,d){e[c]&&g.error("always use $.bind to the shimed event: "+c+" already bound fn was: "+e[c]+" your fn was: "+d);e[c]=d};c.removeEventListener=function(c,d){e[c]&&e[c]!=d&&g.error("always use $.bind/$.unbind to the shimed event: "+c+" already bound fn was: "+e[c]+" your fn was: "+
40
- d);e[c]&&delete e[c]};return c},p={getCueById:function(c){for(var d=null,f=0,g=this.length;f<g;f++)if(this[f].id===c){d=this[f];break}return d}},q={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(c){if(this.cues){var d=this.cues[this.cues.length-1];d&&d.startTime>c.startTime&&g.error("cue startTime higher than previous cue's startTime")}else this.cues=
41
- m.createCueList();c.track&&c.track.removeCue&&c.track.removeCue(c);c.track=this;this.cues.push(c)},removeCue:function(c){var d=this.cues||[],f=0,i=d.length;if(c.track!=this)g.error("cue not part of track");else{for(;f<i;f++)if(d[f]===c){d.splice(f,1);c.track=null;break}c.track&&g.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},r=["kind","label","srclang"],s={srclang:"language"},j=Function.prototype.call.bind(Object.prototype.hasOwnProperty),
42
- y=function(c,e){var f=[],i=[],a=[],b,h;c||(c=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!e)c.blockTrackListUpdate=!0,e=d.prop(this,"textTracks"),c.blockTrackListUpdate=!1;clearTimeout(c.updateTrackListTimer);d("track",this).each(function(){var b=d.prop(this,"track");a.push(b);-1==e.indexOf(b)&&i.push(b)});if(c.scriptedTextTracks)for(b=0,h=c.scriptedTextTracks.length;b<h;b++)a.push(c.scriptedTextTracks[b]),-1==e.indexOf(c.scriptedTextTracks[b])&&i.push(c.scriptedTextTracks[b]);
43
- for(b=0,h=e.length;b<h;b++)-1==a.indexOf(e[b])&&f.push(e[b]);if(f.length||i.length){e.splice(0);for(b=0,h=a.length;b<h;b++)e.push(a[b]);for(b=0,h=f.length;b<h;b++)d([e]).triggerHandler(d.Event({type:"removetrack",track:e,track:f[b]}));for(b=0,h=i.length;b<h;b++)d([e]).triggerHandler(d.Event({type:"addtrack",track:e,track:i[b]}));(c.scriptedTextTracks||f.length)&&d(this).triggerHandler("updatetrackdisplay")}},u=function(c,e){e||(e=g.data(c,"trackData"));if(e&&!e.isTriggering)e.isTriggering=!0,setTimeout(function(){(e.track||
44
- {}).readyState?d(c).closest("audio, video").triggerHandler("updatetrackdisplay"):d(c).triggerHandler("checktrackmode");e.isTriggering=!1},1)},x=d("<div />")[0];k.TextTrackCue=function(c,d,f){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=c;this.endTime=d;this.text=f;this.id="";this.pauseOnExit=!1;n(this)};k.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var c="",d="",f=l.createDocumentFragment(),g;if(!j(this,
45
- "getCueAsHTML"))g=this.getCueAsHTML=function(){var a,b;if(c!=this.text){c=this.text;d=m.parseCueTextToHTML(c);x.innerHTML=d;for(a=0,b=x.childNodes.length;a<b;a++)f.appendChild(x.childNodes[a].cloneNode(!0))}return f.cloneNode(!0)};return g?g.apply(this,arguments):f.cloneNode(!0)},track:null,id:""};m.createCueList=function(){return d.extend([],p)};m.parseCueTextToHTML=function(){var c=/(<\/?[^>]+>)/ig,d=/^(?:c|v|ruby|rt|b|i|u)/,f=/\<\s*\//,g=function(a,c,d,e){f.test(e)?a="</"+a+">":(d.splice(0,1),
46
- a="<"+a+" "+c+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return a},a=function(a){var c=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);c[0]&&(c[0]=c[0].toLowerCase(),d.test(c[0])?"c"==c[0]?a=g("span","class",c,a):"v"==c[0]&&(a=g("q","title",c,a)):a="");return a};return function(b){return b.replace(c,a)}}();m.loadTextTrack=function(c,e,f,i){var a=f.track,b=function(){var f=d.prop(e,"src"),i,j;if("disabled"!=a.mode&&f&&d.attr(e,"src")&&(d(c).unbind("play playing timeupdate updatetrackdisplay",b),d(e).unbind("checktrackmode",
47
- b),!a.readyState)){i=function(){a.readyState=3;a.cues=null;a.activeCues=a.shimActiveCues=a._shimActiveCues=null;d(e).triggerHandler("error")};a.readyState=1;try{a.cues=m.createCueList(),a.activeCues=a.shimActiveCues=a._shimActiveCues=m.createCueList(),j=d.ajax({dataType:"text",url:f,success:function(b){"text/vtt"!=j.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,a,function(b){b&&"length"in
48
- b?(a.readyState=2,d(e).triggerHandler("load"),d(c).triggerHandler("updatetrackdisplay")):i()})},error:i})}catch(k){i(),g.warn(k)}}};a.readyState=0;a.shimActiveCues=null;a._shimActiveCues=null;a.activeCues=null;a.cues=null;d(c).unbind("play playing timeupdate updatetrackdisplay",b);d(e).unbind("checktrackmode",b);d(c).bind("play playing timeupdate updatetrackdisplay",b);d(e).bind("checktrackmode",b);if(i)a.mode=w[a.kind]?"showing":"hidden",b()};m.createTextTrack=function(c,e){var f,i;if(e.nodeName&&
49
- (i=g.data(e,"trackData")))u(e,i),f=i.track;if(!f)f=n(g.objectCreate(q)),o||r.forEach(function(a){var b=d.prop(e,a);b&&(f[s[a]||a]=b)}),e.nodeName?(o&&r.forEach(function(a){g.defineProperty(f,s[a]||a,{get:function(){return d.prop(e,a)}})}),i=g.data(e,"trackData",{track:f}),m.loadTextTrack(c,e,i,d.prop(e,"default")&&d(e).siblings("track[default]").andSelf()[0]==e)):(o&&r.forEach(function(a){g.defineProperty(f,s[a]||a,{value:e[a],writeable:!1})}),f.cues=m.createCueList(),f.activeCues=f._shimActiveCues=
50
- f.shimActiveCues=m.createCueList(),f.mode="hidden",f.readyState=2);return f};m.parseCaptionChunk=function(){var c=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,d=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,f=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,i=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(a){var b,h,j,k;if(d.exec(a)||f.exec(a)||i.exec(a))return null;for(a=a.split(/\n/g);!a[0].replace(/\s+/ig,"").length&&0<a.length;)a.shift();for(a[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&
51
- (j=""+a.shift().replace(/\s*/ig,""));0<a.length;){if(k=c.exec(a[0]))h=k.slice(1),b=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));a=a.slice(0,0).concat(a.slice(1));break}if(!b&&!h)return g.warn("couldn't extract time information: "+[b,h,a.join("\n"),j].join(" ; ")),null;a=a.join("\n");b=new TextTrackCue(b,h,a);if(j)b.id=j;return b}}();m.parseCaptions=
52
- function(c,d,f){m.createCueList();var i,a,b,h,j;c?(b=/^WEBVTT(\s*FILE)?/ig,a=function(k,l){for(;k<l;k++){i=c[k];if(b.test(i))j=!0;else if(i.replace(/\s*/ig,"").length){if(!j){g.error("please use WebVTT format. This is the standard");f(null);break}(i=m.parseCaptionChunk(i,k))&&d.addCue(i)}if(h<(new Date).getTime()-30){k++;setTimeout(function(){h=(new Date).getTime();a(k,l)},90);break}}k>=l&&(j||g.error("please use WebVTT format. This is the standard"),f(d.cues))},c=c.replace(/\r\n/g,"\n"),setTimeout(function(){c=
53
- c.replace(/\r/g,"\n");setTimeout(function(){h=(new Date).getTime();c=c.split(/\n\n+/g);a(0,c.length)},9)},9)):g.error("Required parameter captionData not supplied.")};m.createTrackList=function(c,d){d=d||g.data(c,"mediaelementBase")||g.data(c,"mediaelementBase",{});if(!d.textTracks)d.textTracks=[],g.defineProperties(d.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),n(d.textTracks);return d.textTracks};Modernizr.track||(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],
54
- ["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(c){var d=g.data(this,"trackData");this.setAttribute("data-kind",c);if(d)d.attrKind=c},get:function(){var c=g.data(this,"trackData");return c&&"attrKind"in c?c.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});
55
- d.each(r,function(c,e){var f=s[e]||e;g.onNodeNamesPropertyModify("track",e,function(){var c=g.data(this,"trackData"),a=this;if(c)"kind"==e&&u(this,c),o||(c.track[f]=d.prop(this,e)),clearTimeout(c.changedTrackPropTimer),c.changedTrackPropTimer=setTimeout(function(){d(a).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(c){if(c){var c=g.data(this,"trackData"),e;c&&(e=d(this).closest("video, audio"),e[0]&&m.loadTextTrack(e,this,c))}});g.defineNodeNamesProperties(["track"],
56
- {ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(d.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return m.createTextTrack(d(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var c=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),d=m.createTrackList(this,c);c.blockTrackListUpdate||y.call(this,c,d);return d},
57
- writeable:!1},addTextTrack:{value:function(c,d,f){c=m.createTextTrack(this,{kind:c||"",label:d||"",srclang:f||""});d=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!d.scriptedTextTracks)d.scriptedTextTracks=[];d.scriptedTextTracks.push(c);y.call(this);return c}}},"prop");d(l).bind("emptied ended updatetracklist",function(c){if(d(c.target).is("audio, video")){var e=g.data(c.target,"mediaelementBase");if(e)clearTimeout(e.updateTrackListTimer),e.updateTrackListTimer=setTimeout(function(){y.call(c.target,
58
- e)},0)}});g.addReady(function(c,e){var f=e.filter("video, audio, track").closest("audio, video");d("video, audio",c).add(f).each(function(){y.call(this)}).each(function(){if(Modernizr.track){var c=this.textTracks;d.prop(this,"textTracks").length!=c.length&&g.error("textTracks couldn't be copied");d("track",this).each(function(){var a=d.prop(this,"track"),b=this.track,c,e;if(b){c=d.prop(this,"kind");e=b.readyState||this.readyState;if(b.mode||e)a.mode=b.mode;if("descriptions"!=c)b.mode="string"==typeof b.mode?
59
- "disabled":0,this.kind="metadata",d(this).attr({kind:c})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});f.each(function(){var c=this,a=g.data(c,"mediaelementBase");if(a)clearTimeout(a.updateTrackListTimer),a.updateTrackListTimer=setTimeout(function(){y.call(c,a)},9)})});Modernizr.track&&d("video, audio").trigger("trackapichange")});
1
+ jQuery.webshims.register("dom-extend",function(d,g,j,n,l){var w=g.modules,s=/\s*,\s*/,q={},t={},o={},x={},r={},p=d.fn.val,i=function(a,c,b,e,k){return k?p.call(d(a)):p.call(d(a),b)};d.fn.val=function(a){var c=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!c||1!==c.nodeType?p.call(this):d.prop(c,"value",a,"val",!0);if(d.isArray(a))return p.apply(this,arguments);var b=d.isFunction(a);return this.each(function(e){c=this;1===c.nodeType&&(b?(e=a.call(c,e,d.prop(c,"value",l,"val",
2
+ !0)),null==e&&(e=""),d.prop(c,"value",e,"val")):d.prop(c,"value",a,"val"))})};var y="_webshimsLib"+Math.round(1E3*Math.random()),v=function(a,c,b){a=a.jquery?a[0]:a;if(!a)return b||{};var e=d.data(a,y);b!==l&&(e||(e=d.data(a,y,{})),c&&(e[c]=b));return c?e&&e[c]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){d.fn[a.name]=function(){return this.map(function(){var c=v(this,
3
+ "shadowData");return c&&c[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){q[a]=d[a];d[a]=function(c,b,e,k,f){var h="val"==k,u=!h?q[a]:i;if(!c||!t[b]||1!==c.nodeType||!h&&k&&"attr"==a&&d.attrFn[b])return u(c,b,e,k,f);var z=(c.nodeName||"").toLowerCase(),A=o[z],g="attr"==a&&(!1===e||null===e)?"removeAttr":a,p,m,j;A||(A=o["*"]);A&&(A=A[b]);A&&(p=A[g]);if(p){if("value"==b)m=p.isVal,p.isVal=h;if("removeAttr"===g)return p.value.call(c);if(e===l)return p.get?p.get.call(c):p.value;p.set&&
4
+ ("attr"==a&&!0===e&&(e=b),j=p.set.call(c,e));if("value"==b)p.isVal=m}else j=u(c,b,e,k,f);if((e!==l||"removeAttr"===g)&&r[z]&&r[z][b]){var n;n="removeAttr"==g?!1:"prop"==g?!!e:!0;r[z][b].forEach(function(b){if(!b.only||(b.only="prop"==a)||"attr"==b.only&&"prop"!=a)b.call(c,e,n,h?"val":g,a)})}return j};x[a]=function(c,b,e){o[c]||(o[c]={});o[c][b]||(o[c][b]={});var k=o[c][b][a],f=function(c,k,z){return k&&k[c]?k[c]:z&&z[c]?z[c]:"prop"==a&&"value"==b?function(c){return e.isVal?i(this,b,c,!1,0===arguments.length):
5
+ q[a](this,b,c)}:"prop"==a&&"value"==c&&e.value.apply?function(c){var e=q[a](this,b);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(c){return q[a](this,b,c)}};o[c][b][a]=e;if(e.value===l){if(!e.set)e.set=e.writeable?f("set",e,k):g.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+c;}:d.noop;if(!e.get)e.get=f("get",e,k)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=f(b,k))})}});var B=!d.browser.msie||8<parseInt(d.browser.version,10),m=function(){var a=g.getPrototypeOf(n.createElement("foobar")),
6
+ c=Object.prototype.hasOwnProperty;return function(b,e,k){var d=n.createElement(b),f=g.getPrototypeOf(d);if(B&&f&&a!==f&&(!d[e]||!c.call(d,e))){var u=d[e];k._supvalue=function(){return u&&u.apply?u.apply(this,arguments):u};f[e]=k.value}else k._supvalue=function(){var b=v(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},h.extendValue(b,e,k.value);k.value._supvalue=k._supvalue}}(),h=function(){var a={};g.addReady(function(b,c){var e={},f=function(a){e[a]||(e[a]=d(b.getElementsByTagName(a)),
7
+ c[0]&&d.nodeName(c[0],a)&&(e[a]=e[a].add(c)))};d.each(a,function(b,a){f(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){e[b].each(a)})});e=null});var c,b=d([]),e=function(b,e){a[b]?a[b].push(e):a[b]=[e];d.isDOMReady&&(c||d(n.getElementsByTagName(b))).each(e)};return{createTmpCache:function(a){d.isDOMReady&&(c=c||d(n.getElementsByTagName(a)));return c||b},flushTmpCache:function(){c=null},content:function(b,a){e(b,function(){var b=d.attr(this,a);null!=b&&d.attr(this,
8
+ a,b)})},createElement:function(b,a){e(b,a)},extendValue:function(b,a,c){e(b,function(){d(this).each(function(){v(this,"propValue",{})[a]=this[a];this[a]=c})})}}}(),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={}};d.extend(g,{getID:function(){var a=(new Date).getTime();return function(c){var c=d(c),b=c.attr("id");b||(a++,b="ID-"+a,c.attr("id",b));
9
+ return b}}(),extendUNDEFProp:function(a,c){d.each(c,function(b,c){b in a||(a[b]=c)})},createPropDefault:f,data:v,moveToFirstEvent:function(){var a=d._data?"_data":"data";return function(c,b,e){if((c=(d[a](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 a,c,b,e={init:!1,runs:0,test:function(){var b=e.getHeight(),a=e.getWidth();b!=e.height||a!=e.width?(e.height=b,e.width=a,e.handler({type:"docresize"}),
10
+ e.runs++,30>e.runs&&setTimeout(e.test,30)):e.runs=0},handler:function(f){clearTimeout(a);a=setTimeout(function(){if("resize"==f.type){var a=d(j).width(),h=d(j).width();if(h==c&&a==b)return;c=h;b=a;e.height=e.getHeight();e.width=e.getWidth()}d.event.trigger("updateshadowdom")},"resize"==f.type?50:9)},_create:function(){d.each({Height:"getHeight",Width:"getWidth"},function(b,a){var c=n.body,d=n.documentElement;e[a]=function(){return Math.max(c["scroll"+b],d["scroll"+b],c["offset"+b],d["offset"+b],d["client"+
11
+ b])}})},start:function(){if(!this.init&&n.body)this.init=!0,this._create(),this.height=e.getHeight(),this.width=e.getWidth(),setInterval(this.test,400),d(this.test),d(j).bind("load",this.test),d(j).bind("resize",this.handler),function(){var b=d.fn.animate,a;d.fn.animate=function(){clearTimeout(a);a=setTimeout(function(){e.test();e.handler({type:"animationstart"})},19);return b.apply(this,arguments)}}()}};d.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){e.start()})};
12
+ return function(b,a,c){c=c||{};b.jquery&&(b=b[0]);a.jquery&&(a=a[0]);var e=d.data(b,y)||d.data(b,y,{}),f=d.data(a,y)||d.data(a,y,{}),h={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];h=d.data(c.shadowFocusElement,y)||d.data(c.shadowFocusElement,y,h)}}else c.shadowFocusElement=a;e.hasShadow=a;h.nativeElement=f.nativeElement=b;h.shadowData=f.shadowData=e.shadowData={nativeElement:b,shadowElement:a,shadowFocusElement:c.shadowFocusElement};
13
+ c.shadowChilds&&c.shadowChilds.each(function(){v(this,"shadowData",f.shadowData)});if(c.data)h.shadowData.data=f.shadowData.data=e.shadowData.data=c.data;c=null;g.docObserve()}}(),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)}}},
14
+ src:function(){var a=n.createElement("a");a.style.display="none";return function(c,b){f(c);if(!c.prop)c.prop={set:function(b){c.attr.set.call(this,b)},get:function(){var c=this.getAttribute(b),f;if(null==c)return"";a.setAttribute("href",c+"");if(!d.support.hrefNormalized){try{d(a).insertAfter(this),f=a.getAttribute("href",4)}catch(h){f=a.getAttribute("href",4)}d(a).detach()}return f||a.href}}}}(),enumarated:function(a){f(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,c)},get:function(){var c=
15
+ (a.attr.get.call(this)||"").toLowerCase();if(!c||-1==a.limitedTo.indexOf(c))c=a.defaultValue;return c}}}},reflectProperties:function(a,c){"string"==typeof c&&(c=c.split(s));c.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){d.attr(this,b,a)},get:function(){return d.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,c,b){t[c]=!0;if(b.reflect)g.propTypes[b.propType||"standard"](b,c);["prop","attr","removeAttr"].forEach(function(e){var f=b[e];f&&(f="prop"===e?d.extend({writeable:!0},
16
+ f):d.extend({},f,{writeable:!0}),x[e](a,c,f),"*"!=a&&g.cfg.extendNative&&"prop"==e&&f.value&&d.isFunction(f.value)&&m(a,c,f),b[e]=f)});b.initAttr&&h.content(a,c);return b},defineNodeNameProperties:function(a,c,b,e){for(var f in c)!e&&c[f].initAttr&&h.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]=g.defineNodeNameProperty(a,f,c[f]);e||h.flushTmpCache();return c},createElement:function(a,c,b){var e;d.isFunction(c)&&
17
+ (c={after:c});h.createTmpCache(a);c.before&&h.createElement(a,c.before);b&&(e=g.defineNodeNameProperties(a,b,!1,!0));c.after&&h.createElement(a,c.after);h.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,c,b,e){"string"==typeof a&&(a=a.split(s));d.isFunction(b)&&(b={set:b});a.forEach(function(a){r[a]||(r[a]={});"string"==typeof c&&(c=c.split(s));b.initAttr&&h.createTmpCache(a);c.forEach(function(c){r[a][c]||(r[a][c]=[],t[c]=!0);if(b.set){if(e)b.set.only=e;r[a][c].push(b.set)}b.initAttr&&
18
+ h.content(a,c)});h.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,c,b){b||(b={});if(d.isFunction(b))b.set=b;g.defineNodeNamesProperty(a,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]||{},
19
+ b=a.specified?a.value:null,null==b?l:b;"boolean"==typeof b?b?a.setAttribute(c,c):a.removeAttribute(c):a.setAttribute(c,b)}},activeLang:function(){var a=[],c={},b,e,f=/:\/\/|^\.*\//,h=function(a,b,c){return b&&c&&-1!==d.inArray(b,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,f.test(c)||(c=g.cfg.basePath+c),g.loader.loadScript(c+b+".js",function(){a.langObj[b]?(a.loading=!1,u(a,!0)):d(function(){a.langObj[b]&&u(a,!0);a.loading=!1})}),!0):!1},p=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
20
+ u=function(a,c){if(a.activeLang!=b&&a.activeLang!==e){var f=w[a.module].options;if(a.langObj[b]||e&&a.langObj[e])a.activeLang=b,a.callback(a.langObj[b]||a.langObj[e],b),p(a.module);else if(!c&&!h(a,b,f)&&!h(a,e,f)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],b),p(a.module)}};return function(f){if("string"==typeof f&&f!==b)b=f,e=b.split("-")[0],b==e&&(e=!1),d.each(a,function(a,b){u(b)});else if("object"==typeof f)if(f.register)c[f.register]||(c[f.register]=[]),c[f.register].push(f),
21
+ f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);u(f)}return b}}()});d.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){g[a]=function(a,e,f,d){"string"==typeof a&&(a=a.split(s));var h={};a.forEach(function(a){h[a]=g[c](a,e,f,d)});return h}});g.isReady("webshimLocalization",!0)});
22
+ (function(d,g){var j=d.webshims.browserVersion;if(!(d.browser.mozilla&&5<j)&&(!d.browser.msie||12>j&&7<j)){var n={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(d,g){d.getAttribute("role")||d.setAttribute("role",g)};d.webshims.addReady(function(j,s){d.each(n,function(g,n){for(var p=d(g,j).add(s.filter(g)),i=0,o=p.length;i<o;i++)l(p[i],n)});if(j===g){var q=g.getElementsByTagName("header")[0],t=g.getElementsByTagName("footer"),o=t.length;
23
+ q&&!d(q).closest("section, article")[0]&&l(q,"banner");o&&(q=t[o-1],d(q).closest("section, article")[0]||l(q,"contentinfo"))}})}})(jQuery,document);
24
+ (function(d,g,j){var n=g.audio&&g.video,l=!1,w=j.cfg.mediaelement,s=j.bugs,q="jwplayer"==w.player?"mediaelement-swf":"mediaelement-jaris",t=function(){j.ready(q,function(){if(!j.mediaelement.createSWF)j.mediaelement.loadSwf=!0,j.reTest([q],n)})},o;if(n){var x=document.createElement("video");g.videoBuffered="buffered"in x;l="loop"in x;j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(j.addPolyfill("mediaelement-native-fix",
25
+ {f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"))}if(n&&!w.preferFlash){var r=function(g){var i=g.target.parentNode;!w.preferFlash&&(d(g.target).is("audio, video")||i&&d("source:last",i)[0]==g.target)&&j.ready("DOM mediaelement",function(){o&&t();j.ready("WINDOWLOAD "+q,function(){setTimeout(function(){o&&!w.preferFlash&&j.mediaelement.createSWF&&!d(g.target).closest("audio, video").is(".nonnative-api-active")?(w.preferFlash=!0,document.removeEventListener("error",
26
+ r,!0),d("audio, video").mediaLoad(),j.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):o||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);d("audio, video").each(function(){this.error&&r({target:this})})}s.track=!1;g.track&&function(){if(!s.track)s.track="number"!=typeof d("<track />")[0].readyState;if(!s.track)try{new TextTrackCue(2,3,"")}catch(g){s.track=!0}var i=j.cfg.track,l=function(g){d(g.target).filter("track").each(n)},
27
+ n=function(){if(s.track||!i.override&&3==d.prop(this,"readyState"))i.override=!0,j.reTest("track"),document.removeEventListener("error",l,!0),this&&d.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")},o=function(){document.addEventListener("error",l,!0);s.track?n():d("track").each(n)};i.override||(j.isReady("track")?o():d(o))}();j.register("mediaelement-core",function(d,
28
+ i,j,r,x){o=swfobject.hasFlashPlayerVersion("9.0.115");var m=i.mediaelement,h=function(a,b){var a=d(a),c={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!c.src)return c;var e=a.attr("type");if(e)c.type=e,c.container=d.trim(e.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=m.getTypeForSrc(c.src,b))c.type=e,c.container=e;if(e=a.attr("media"))c.media=e;return c},f=!o&&"postMessage"in j&&n,a=
29
+ function(){var a;return function(){!a&&f&&(a=!0,i.loader.loadScript("https://www.youtube.com/player_api"),d(function(){i.polyfill("mediaelement-yt")}))}}(),c=function(){o?t():a()};i.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});m.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",
30
+ "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"]}};m.mimeTypes.source=d.extend({},m.mimeTypes.audio,m.mimeTypes.video);m.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||
31
+ -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],c;d.each(m.mimeTypes[b],function(b,e){if(-1!==e.indexOf(a))return c=b,!1});return c};m.srces=function(a,b){a=d(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),d.isArray(b)||(b=[b]),b.forEach(function(b){var c=r.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});
32
+ else{var b=[],c=a[0].nodeName.toLowerCase(),e=h(a,c);e.src?b.push(e):d("source",a).each(function(){e=h(this,c);e.src&&b.push(e)});return b}};d.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==x&&(d(this).removeAttr("poster"),b&&d.attr(this,"poster",b));m.srces(this,a);d(this).mediaLoad()})};m.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(",");
33
+ m.canThirdPlaySrces=function(a,b){var c="";if(o||f)a=d(a),b=b||m.srces(a),d.each(b,function(a,b){if(b.container&&b.src&&(o&&-1!=m.swfMimeTypes.indexOf(b.container)||f&&"video/youtube"==b.container))return c=b,!1});return c};var b={};m.canNativePlaySrces=function(a,c){var e="";if(n){var a=d(a),f=(a[0].nodeName||"").toLowerCase();if(!b[f])return e;c=c||m.srces(a);d.each(c,function(c,d){if(d.type&&b[f].prop._supvalue.call(a[0],d.type))return e=d,!1})}return e};m.setError=function(a,b){b||(b="can't play sources");
34
+ d(a).pause().data("mediaerror",b);i.warn("mediaelementError: "+b);setTimeout(function(){d(a).data("mediaerror")&&d(a).trigger("mediaerror")},1)};var e=function(){var b;return function(d,h,g){i.ready(o?q:"mediaelement-yt",function(){m.createSWF?m.createSWF(d,h,g):b||(b=!0,c(),e(d,h,g))});!b&&f&&!m.createSWF&&a()}}(),k=function(a,b,c,f,d){c||!1!==c&&b&&"third"==b.isActive?(c=m.canThirdPlaySrces(a,f))?e(a,c,b):d?m.setError(a,!1):k(a,b,!1,f,!0):(c=m.canNativePlaySrces(a,f))?b&&"third"==b.isActive&&m.setActive(a,
35
+ "html5",b):d?(m.setError(a,!1),b&&"third"==b.isActive&&m.setActive(a,"html5",b)):k(a,b,!0,f,!0)},D=/^(?:embed|object|datalist)$/i,C=function(a,b){var c=i.data(a,"mediaelementBase")||i.data(a,"mediaelementBase",{}),e=m.srces(a),f=a.parentNode;clearTimeout(c.loadTimer);d.data(a,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||D.test(f.nodeName||"")))b=b||i.data(a,"mediaelement"),k(a,b,w.preferFlash||x,e)};d(r).on("ended",function(a){var b=i.data(a.target,"mediaelement");(!l||b&&"html5"!=b.isActive||
36
+ d.prop(a.target,"loop"))&&setTimeout(function(){!d.prop(a.target,"paused")&&d.prop(a.target,"loop")&&d(a.target).prop("currentTime",0).play()},1)});l||i.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var c=i.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=i.data(this,"mediaelement");C(this,a);n&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});b[a]=i.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(c){var e=
37
+ "";n&&b[a].prop._supvalue&&(e=b[a].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&o&&(c=d.trim((c||"").split(";")[0]),-1!=m.swfMimeTypes.indexOf(c)&&(e="maybe"));return e}}})});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(){C(a);a=null},9)}});j=function(){i.addReady(function(a,b){d("video, audio",a).add(b.filter("video, audio")).each(function(){d.browser.msie&&
38
+ 8<i.browserVersion&&d.prop(this,"paused")&&!d.prop(this,"readyState")&&d(this).is('audio[preload="none"][controls]:not([autoplay])')?d(this).prop("preload","metadata").mediaLoad():C(this);if(n){var a,b,c=this,e=function(){var a=d.prop(c,"buffered");if(a){for(var b="",e=0,f=a.length;e<f;e++)b+=a.end(e);return b}},f=function(){var a=e();a!=b&&(b=a,d(c).triggerHandler("progress"))};d(this).on({"play loadstart progress":function(c){"progress"==c.type&&(b=e());clearTimeout(a);a=setTimeout(f,999)},"emptied stalled mediaerror abort suspend":function(c){"emptied"==
39
+ c.type&&(b=!1);clearTimeout(a)}})}})})};g.track&&!s.track&&i.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});n?(i.isReady("mediaelement-core",!0),j(),i.ready("WINDOWLOAD mediaelement",c)):i.ready(q,j);d(function(){i.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
40
+ jQuery.webshims.register("track",function(d,g,j,n){var l=g.mediaelement;(new Date).getTime();var w={subtitles:1,captions:1,descriptions:1},s=d("<track />"),q=Modernizr.ES5&&Modernizr.objectAccessor,t=function(d){var f={};d.addEventListener=function(a,c){f[a]&&g.error("always use $.on to the shimed event: "+a+" already bound fn was: "+f[a]+" your fn was: "+c);f[a]=c};d.removeEventListener=function(a,c){f[a]&&f[a]!=c&&g.error("always use $.on/$.off to the shimed event: "+a+" already bound fn was: "+
41
+ f[a]+" your fn was: "+c);f[a]&&delete f[a]};return d},o={getCueById:function(d){for(var f=null,a=0,c=this.length;a<c;a++)if(this[a].id===d){f=this[a];break}return f}},x={"0":"disabled",1:"hidden",2:"showing"},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(d){if(this.cues){var f=this.cues[this.cues.length-1];f&&f.startTime>d.startTime&&
42
+ g.error("cue startTime higher than previous cue's startTime")}else this.cues=l.createCueList();d.track&&d.track.removeCue&&d.track.removeCue(d);d.track=this;this.cues.push(d)},removeCue:function(d){var f=this.cues||[],a=0,c=f.length;if(d.track!=this)g.error("cue not part of track");else{for(;a<c;a++)if(f[a]===d){f.splice(a,1);d.track=null;break}d.track&&g.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},p=["kind",
43
+ "label","srclang"],i={srclang:"language"},y=Function.prototype.call.bind(Object.prototype.hasOwnProperty),v=function(h,f){var a=[],c=[],b=[],e,k;h||(h=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!f)h.blockTrackListUpdate=!0,f=d.prop(this,"textTracks"),h.blockTrackListUpdate=!1;clearTimeout(h.updateTrackListTimer);d("track",this).each(function(){var a=d.prop(this,"track");b.push(a);-1==f.indexOf(a)&&c.push(a)});if(h.scriptedTextTracks)for(e=0,k=h.scriptedTextTracks.length;e<
44
+ k;e++)b.push(h.scriptedTextTracks[e]),-1==f.indexOf(h.scriptedTextTracks[e])&&c.push(h.scriptedTextTracks[e]);for(e=0,k=f.length;e<k;e++)-1==b.indexOf(f[e])&&a.push(f[e]);if(a.length||c.length){f.splice(0);for(e=0,k=b.length;e<k;e++)f.push(b[e]);for(e=0,k=a.length;e<k;e++)d([f]).triggerHandler(d.Event({type:"removetrack",track:a[e]}));for(e=0,k=c.length;e<k;e++)d([f]).triggerHandler(d.Event({type:"addtrack",track:c[e]}));(h.scriptedTextTracks||a.length)&&d(this).triggerHandler("updatetrackdisplay")}},
45
+ B=function(h,f){f||(f=g.data(h,"trackData"));if(f&&!f.isTriggering)f.isTriggering=!0,setTimeout(function(){(f.track||{}).readyState?d(h).closest("audio, video").triggerHandler("updatetrackdisplay"):d(h).triggerHandler("checktrackmode");f.isTriggering=!1},1)},m=d("<div />")[0];j.TextTrackCue=function(d,f,a){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=d;this.endTime=f;this.text=a;this.id="";this.pauseOnExit=!1;t(this)};j.TextTrackCue.prototype=
46
+ {onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var d="",f="",a=n.createDocumentFragment(),c;if(!y(this,"getCueAsHTML"))c=this.getCueAsHTML=function(){var b,c;if(d!=this.text){d=this.text;f=l.parseCueTextToHTML(d);m.innerHTML=f;for(b=0,c=m.childNodes.length;b<c;b++)a.appendChild(m.childNodes[b].cloneNode(!0))}return a.cloneNode(!0)};return c?c.apply(this,arguments):a.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return d.extend([],o)};l.parseCueTextToHTML=function(){var d=
47
+ /(<\/?[^>]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,a=/\<\s*\//,c=function(b,c,d,f){a.test(f)?b="</"+b+">":(d.splice(0,1),b="<"+b+" "+c+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return b},b=function(a){var b=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);b[0]&&(b[0]=b[0].toLowerCase(),f.test(b[0])?"c"==b[0]?a=c("span","class",b,a):"v"==b[0]&&(a=c("q","title",b,a)):a="");return a};return function(a){return a.replace(d,b)}}();l.loadTextTrack=function(h,f,a,c){var b=a.track,e=function(){var a=d.prop(f,"src"),
48
+ c,j;if("disabled"!=b.mode&&a&&d.attr(f,"src")&&(d(h).unbind("play playing timeupdate updatetrackdisplay",e),d(f).unbind("checktrackmode",e),!b.readyState)){c=function(){b.readyState=3;b.cues=null;b.activeCues=b.shimActiveCues=b._shimActiveCues=null;d(f).triggerHandler("error")};b.readyState=1;try{b.cues=l.createCueList(),b.activeCues=b.shimActiveCues=b._shimActiveCues=l.createCueList(),j=d.ajax({dataType:"text",url:a,success:function(a){"text/vtt"!=j.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");
49
+ l.parseCaptions(a,b,function(a){a&&"length"in a?(b.readyState=2,d(f).triggerHandler("load"),d(h).triggerHandler("updatetrackdisplay")):c()})},error:c})}catch(i){c(),g.warn(i)}}};b.readyState=0;b.shimActiveCues=null;b._shimActiveCues=null;b.activeCues=null;b.cues=null;d(h).unbind("play playing timeupdate updatetrackdisplay",e);d(f).unbind("checktrackmode",e);d(h).on("play playing timeupdate updatetrackdisplay",e);d(f).on("checktrackmode",e);if(c)b.mode=w[b.kind]?"showing":"hidden",e()};l.createTextTrack=
50
+ function(h,f){var a,c;if(f.nodeName&&(c=g.data(f,"trackData")))B(f,c),a=c.track;if(!a)a=t(g.objectCreate(r)),q||p.forEach(function(b){var c=d.prop(f,b);c&&(a[i[b]||b]=c)}),f.nodeName?(q&&p.forEach(function(b){g.defineProperty(a,i[b]||b,{get:function(){return d.prop(f,b)}})}),c=g.data(f,"trackData",{track:a}),l.loadTextTrack(h,f,c,d.prop(f,"default")&&d(f).siblings("track[default]").andSelf()[0]==f)):(q&&p.forEach(function(b){g.defineProperty(a,i[b]||b,{value:f[b],writeable:!1})}),a.cues=l.createCueList(),
51
+ a.activeCues=a._shimActiveCues=a.shimActiveCues=l.createCueList(),a.mode="hidden",a.readyState=2);return a};l.parseCaptionChunk=function(){var d=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,f=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,a=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,c=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(b){var e,k,j,i;if(f.exec(b)||a.exec(b)||c.exec(b))return null;for(b=b.split(/\n/g);!b[0].replace(/\s+/ig,"").length&&0<b.length;)b.shift();
52
+ for(b[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&(j=""+b.shift().replace(/\s*/ig,""));0<b.length;){if(i=d.exec(b[0]))k=i.slice(1),e=parseInt(3600*(k[0]||0),10)+parseInt(60*(k[1]||0),10)+parseInt(k[2]||0,10)+parseFloat("0."+(k[3]||0)),k=parseInt(3600*(k[4]||0),10)+parseInt(60*(k[5]||0),10)+parseInt(k[6]||0,10)+parseFloat("0."+(k[7]||0));b=b.slice(0,0).concat(b.slice(1));break}if(!e&&!k)return g.warn("couldn't extract time information: "+[e,k,b.join("\n"),j].join(" ; ")),null;b=b.join("\n");e=new TextTrackCue(e,
53
+ k,b);if(j)e.id=j;return e}}();l.parseCaptions=function(d,f,a){l.createCueList();var c,b,e,k,j;d?(e=/^WEBVTT(\s*FILE)?/ig,b=function(i,m){for(;i<m;i++){c=d[i];if(e.test(c))j=!0;else if(c.replace(/\s*/ig,"").length){if(!j){g.error("please use WebVTT format. This is the standard");a(null);break}(c=l.parseCaptionChunk(c,i))&&f.addCue(c)}if(k<(new Date).getTime()-30){i++;setTimeout(function(){k=(new Date).getTime();b(i,m)},90);break}}i>=m&&(j||g.error("please use WebVTT format. This is the standard"),
54
+ a(f.cues))},d=d.replace(/\r\n/g,"\n"),setTimeout(function(){d=d.replace(/\r/g,"\n");setTimeout(function(){k=(new Date).getTime();d=d.split(/\n\n+/g);b(0,d.length)},9)},9)):g.error("Required parameter captionData not supplied.")};l.createTrackList=function(d,f){f=f||g.data(d,"mediaelementBase")||g.data(d,"mediaelementBase",{});if(!f.textTracks)f.textTracks=[],g.defineProperties(f.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),t(f.textTracks);return f.textTracks};Modernizr.track||
55
+ (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(d){var f=g.data(this,"trackData");this.setAttribute("data-kind",d);if(f)f.attrKind=d},get:function(){var d=g.data(this,"trackData");return d&&"attrKind"in d?d.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",
56
+ limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});d.each(p,function(h,f){var a=i[f]||f;g.onNodeNamesPropertyModify("track",f,function(){var c=g.data(this,"trackData"),b=this;if(c)"kind"==f&&B(this,c),q||(c.track[a]=d.prop(this,f)),clearTimeout(c.changedTrackPropTimer),c.changedTrackPropTimer=setTimeout(function(){d(b).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=g.data(this,"trackData"),f;h&&(f=d(this).closest("video, audio"),
57
+ f[0]&&l.loadTextTrack(f,this,h))}});g.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(d.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(d(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var d=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),f=
58
+ l.createTrackList(this,d);d.blockTrackListUpdate||v.call(this,d,f);return f},writeable:!1},addTextTrack:{value:function(d,f,a){d=l.createTextTrack(this,{kind:s.prop("kind",d||"").prop("kind"),label:f||"",srclang:a||""});f=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!f.scriptedTextTracks)f.scriptedTextTracks=[];f.scriptedTextTracks.push(d);v.call(this);return d}}},"prop");d(n).on("emptied ended updatetracklist",function(h){if(d(h.target).is("audio, video")){var f=g.data(h.target,
59
+ "mediaelementBase");if(f)clearTimeout(f.updateTrackListTimer),f.updateTrackListTimer=setTimeout(function(){v.call(h.target,f)},0)}});g.addReady(function(h,f){var a=f.filter("video, audio, track").closest("audio, video");d("video, audio",h).add(a).each(function(){v.call(this)}).each(function(){if(Modernizr.track){var a=this.textTracks;d.prop(this,"textTracks").length!=a.length&&g.error("textTracks couldn't be copied");d("track",this).each(function(){var a=d.prop(this,"track"),c=this.track,f,g;if(c){f=
60
+ d.prop(this,"kind");g=c.readyState||this.readyState;if(c.mode||g)a.mode=x[c.mode]||c.mode;if("descriptions"!=f)c.mode="string"==typeof c.mode?"disabled":0,this.kind="metadata",d(this).attr({kind:f})}}).on("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});a.each(function(){var a=this,b=g.data(a,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){v.call(a,b)},9)})});Modernizr.track&&d("video, audio").trigger("trackapichange")});
@@ -1,81 +1,79 @@
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")});
1
+ jQuery.webshims.register("dom-extend",function(a,g,h,i,l){var v=g.modules,q=/\s*,\s*/,p={},s={},n={},u={},r={},o=a.fn.val,y=function(e,d,b,c,k){return k?o.call(a(e)):o.call(a(e),b)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?o.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return o.apply(this,arguments);var b=a.isFunction(e);return this.each(function(c){d=this;1===d.nodeType&&(b?(c=e.call(d,c,a.prop(d,"value",l,"val",
2
+ !0)),null==c&&(c=""),a.prop(d,"value",c,"val")):a.prop(d,"value",e,"val"))})};var w="_webshimsLib"+Math.round(1E3*Math.random()),x=function(e,d,b){e=e.jquery?e[0]:e;if(!e)return b||{};var c=a.data(e,w);b!==l&&(c||(c=a.data(e,w,{})),d&&(c[d]=b));return d?c&&c[d]:c};[{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=x(this,
3
+ "shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){p[e]=a[e];a[e]=function(d,b,c,k,t){var f="val"==k,z=!f?p[e]:y;if(!d||!s[b]||1!==d.nodeType||!f&&k&&"attr"==e&&a.attrFn[b])return z(d,b,c,k,t);var A=(d.nodeName||"").toLowerCase(),j=n[A],g="attr"==e&&(!1===c||null===c)?"removeAttr":e,o,h,i;j||(j=n["*"]);j&&(j=j[b]);j&&(o=j[g]);if(o){if("value"==b)h=o.isVal,o.isVal=f;if("removeAttr"===g)return o.value.call(d);if(c===l)return o.get?o.get.call(d):o.value;o.set&&
4
+ ("attr"==e&&!0===c&&(c=b),i=o.set.call(d,c));if("value"==b)o.isVal=h}else i=z(d,b,c,k,t);if((c!==l||"removeAttr"===g)&&r[A]&&r[A][b]){var m;m="removeAttr"==g?!1:"prop"==g?!!c:!0;r[A][b].forEach(function(b){if(!b.only||(b.only="prop"==e)||"attr"==b.only&&"prop"!=e)b.call(d,c,m,f?"val":g,e)})}return i};u[e]=function(d,b,c){n[d]||(n[d]={});n[d][b]||(n[d][b]={});var k=n[d][b][e],t=function(a,d,k){return d&&d[a]?d[a]:k&&k[a]?k[a]:"prop"==e&&"value"==b?function(a){return c.isVal?y(this,b,a,!1,0===arguments.length):
5
+ p[e](this,b,a)}:"prop"==e&&"value"==a&&c.value.apply?function(c){var a=p[e](this,b);a&&a.apply&&(a=a.apply(this,arguments));return a}:function(c){return p[e](this,b,c)}};n[d][b][e]=c;if(c.value===l){if(!c.set)c.set=c.writeable?t("set",c,k):g.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+d;}:a.noop;if(!c.get)c.get=t("get",c,k)}["value","get","set"].forEach(function(b){c[b]&&(c["_sup"+b]=t(b,k))})}});var B=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=g.getPrototypeOf(i.createElement("foobar")),
6
+ d=Object.prototype.hasOwnProperty;return function(b,c,k){var t=i.createElement(b),f=g.getPrototypeOf(t);if(B&&f&&a!==f&&(!t[c]||!d.call(t,c))){var z=t[c];k._supvalue=function(){return z&&z.apply?z.apply(this,arguments):z};f[c]=k.value}else k._supvalue=function(){var b=x(this,"propValue");return b&&b[c]&&b[c].apply?b[c].apply(this,arguments):b&&b[c]},j.extendValue(b,c,k.value);k.value._supvalue=k._supvalue}}(),j=function(){var e={};g.addReady(function(b,c){var d={},z=function(e){d[e]||(d[e]=a(b.getElementsByTagName(e)),
7
+ c[0]&&a.nodeName(c[0],e)&&(d[e]=d[e].add(c)))};a.each(e,function(b,c){z(b);!c||!c.forEach?g.warn("Error: with "+b+"-property. methods: "+c):c.forEach(function(c){d[b].each(c)})});d=null});var d,b=a([]),c=function(b,c){e[b]?e[b].push(c):e[b]=[c];a.isDOMReady&&(d||a(i.getElementsByTagName(b))).each(c)};return{createTmpCache:function(c){a.isDOMReady&&(d=d||a(i.getElementsByTagName(c)));return d||b},flushTmpCache:function(){d=null},content:function(b,e){c(b,function(){var b=a.attr(this,e);null!=b&&a.attr(this,
8
+ e,b)})},createElement:function(b,a){c(b,a)},extendValue:function(b,e,d){c(b,function(){a(this).each(function(){x(this,"propValue",{})[e]=this[e];this[e]=d})})}}}(),f=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(g,{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));
9
+ return b}}(),extendUNDEFProp:function(e,d){a.each(d,function(b,c){b in e||(e[b]=c)})},createPropDefault:f,data:x,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={init:!1,runs:0,test:function(){var b=c.getHeight(),a=c.getWidth();b!=c.height||a!=c.width?(c.height=b,c.width=a,c.handler({type:"docresize"}),
10
+ c.runs++,30>c.runs&&setTimeout(c.test,30)):c.runs=0},handler:function(k){clearTimeout(e);e=setTimeout(function(){if("resize"==k.type){var e=a(h).width(),f=a(h).width();if(f==d&&e==b)return;d=f;b=e;c.height=c.getHeight();c.width=c.getWidth()}a.event.trigger("updateshadowdom")},"resize"==k.type?50:9)},_create:function(){a.each({Height:"getHeight",Width:"getWidth"},function(b,a){var e=i.body,d=i.documentElement;c[a]=function(){return Math.max(e["scroll"+b],d["scroll"+b],e["offset"+b],d["offset"+b],d["client"+
11
+ b])}})},start:function(){if(!this.init&&i.body)this.init=!0,this._create(),this.height=c.getHeight(),this.width=c.getWidth(),setInterval(this.test,400),a(this.test),a(h).bind("load",this.test),a(h).bind("resize",this.handler),function(){var b=a.fn.animate,e;a.fn.animate=function(){clearTimeout(e);e=setTimeout(function(){c.test();c.handler({type:"animationstart"})},19);return b.apply(this,arguments)}}()}};a.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){c.start()})};
12
+ return function(b,c,e){e=e||{};b.jquery&&(b=b[0]);c.jquery&&(c=c[0]);var d=a.data(b,w)||a.data(b,w,{}),A=a.data(c,w)||a.data(c,w,{}),f={};if(e.shadowFocusElement){if(e.shadowFocusElement){if(e.shadowFocusElement.jquery)e.shadowFocusElement=e.shadowFocusElement[0];f=a.data(e.shadowFocusElement,w)||a.data(e.shadowFocusElement,w,f)}}else e.shadowFocusElement=c;d.hasShadow=c;f.nativeElement=A.nativeElement=b;f.shadowData=A.shadowData=d.shadowData={nativeElement:b,shadowElement:c,shadowFocusElement:e.shadowFocusElement};
13
+ e.shadowChilds&&e.shadowChilds.each(function(){x(this,"shadowData",A.shadowData)});if(e.data)f.shadowData.data=A.shadowData.data=d.shadowData.data=e.data;e=null;g.docObserve()}}(),propTypes:{standard:function(a){f(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){f(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)}}},
14
+ src:function(){var e=i.createElement("a");e.style.display="none";return function(d,b){f(d);if(!d.prop)d.prop={set:function(b){d.attr.set.call(this,b)},get:function(){var c=this.getAttribute(b),d;if(null==c)return"";e.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(e).insertAfter(this),d=e.getAttribute("href",4)}catch(f){d=e.getAttribute("href",4)}a(e).detach()}return d||e.href}}}}(),enumarated:function(a){f(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,d)},get:function(){var d=
15
+ (a.attr.get.call(this)||"").toLowerCase();if(!d||-1==a.limitedTo.indexOf(d))d=a.defaultValue;return d}}}},reflectProperties:function(e,d){"string"==typeof d&&(d=d.split(q));d.forEach(function(b){g.defineNodeNamesProperty(e,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(e,d,b){s[d]=!0;if(b.reflect)g.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(c){var k=b[c];k&&(k="prop"===c?a.extend({writeable:!0},
16
+ k):a.extend({},k,{writeable:!0}),u[c](e,d,k),"*"!=e&&g.cfg.extendNative&&"prop"==c&&k.value&&a.isFunction(k.value)&&m(e,d,k),b[c]=k)});b.initAttr&&j.content(e,d);return b},defineNodeNameProperties:function(a,d,b,c){for(var k in d)!c&&d[k].initAttr&&j.createTmpCache(a),b&&!d[k][b]&&(d[k][b]={},["value","set","get"].forEach(function(a){a in d[k]&&(d[k][b][a]=d[k][a],delete d[k][a])})),d[k]=g.defineNodeNameProperty(a,k,d[k]);c||j.flushTmpCache();return d},createElement:function(e,d,b){var c;a.isFunction(d)&&
17
+ (d={after:d});j.createTmpCache(e);d.before&&j.createElement(e,d.before);b&&(c=g.defineNodeNameProperties(e,b,!1,!0));d.after&&j.createElement(e,d.after);j.flushTmpCache();return c},onNodeNamesPropertyModify:function(e,d,b,c){"string"==typeof e&&(e=e.split(q));a.isFunction(b)&&(b={set:b});e.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(q));b.initAttr&&j.createTmpCache(a);d.forEach(function(d){r[a][d]||(r[a][d]=[],s[d]=!0);if(b.set){if(c)b.set.only=c;r[a][d].push(b.set)}b.initAttr&&
18
+ j.content(a,d)});j.flushTmpCache()})},defineNodeNamesBooleanProperty:function(e,d,b){b||(b={});if(a.isFunction(b))b.set=b;g.defineNodeNamesProperty(e,d,{attr:{set:function(a){this.setAttribute(d,a);b.set&&b.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);b.set&&b.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:b.initAttr||!1})},contentAttr:function(a,d,b){if(a.nodeName){if(b===l)return a=a.attributes[d]||{},
19
+ b=a.specified?a.value:null,null==b?l:b;"boolean"==typeof b?b?a.setAttribute(d,d):a.removeAttribute(d):a.setAttribute(d,b)}},activeLang:function(){var e=[],d={},b,c,f=/:\/\/|^\.*\//,j=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,z(b,!0)):a(function(){b.langObj[c]&&z(b,!0);b.loading=!1})}),!0):!1},o=function(b){d[b]&&d[b].forEach(function(b){b.callback()})},
20
+ z=function(a,d){if(a.activeLang!=b&&a.activeLang!==c){var e=v[a.module].options;if(a.langObj[b]||c&&a.langObj[c])a.activeLang=b,a.callback(a.langObj[b]||a.langObj[c],b),o(a.module);else if(!d&&!j(a,b,e)&&!j(a,c,e)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],b),o(a.module)}};return function(f){if("string"==typeof f&&f!==b)b=f,c=b.split("-")[0],b==c&&(c=!1),a.each(e,function(b,a){z(a)});else if("object"==typeof f)if(f.register)d[f.register]||(d[f.register]=[]),d[f.register].push(f),
21
+ f.callback();else{if(!f.activeLang)f.activeLang="";e.push(f);z(f)}return b}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){g[a]=function(b,a,e,f){"string"==typeof b&&(b=b.split(q));var j={};b.forEach(function(b){j[b]=g[d](b,a,e,f)});return j}});g.isReady("webshimLocalization",!0)});
22
+ (function(a,g){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(h,q){a.each(i,function(g,i){for(var o=a(g,h).add(q.filter(g)),y=0,n=o.length;y<n;y++)l(o[y],i)});if(h===g){var p=g.getElementsByTagName("header")[0],s=g.getElementsByTagName("footer"),n=s.length;
23
+ p&&!a(p).closest("section, article")[0]&&l(p,"banner");n&&(p=s[n-1],a(p).closest("section, article")[0]||l(p,"contentinfo"))}})}})(jQuery,document);
24
+ (function(a,g,h){var i=g.audio&&g.video,l=!1,v=h.cfg.mediaelement,q=h.bugs,p="jwplayer"==v.player?"mediaelement-swf":"mediaelement-jaris",s=function(){h.ready(p,function(){if(!h.mediaelement.createSWF)h.mediaelement.loadSwf=!0,h.reTest([p],i)})},n;if(i){var u=document.createElement("video");g.videoBuffered="buffered"in u;l="loop"in u;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(h.addPolyfill("mediaelement-native-fix",
25
+ {f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(i&&!v.preferFlash){var r=function(g){var i=g.target.parentNode;!v.preferFlash&&(a(g.target).is("audio, video")||i&&a("source:last",i)[0]==g.target)&&h.ready("DOM mediaelement",function(){n&&s();h.ready("WINDOWLOAD "+p,function(){setTimeout(function(){n&&!v.preferFlash&&h.mediaelement.createSWF&&!a(g.target).closest("audio, video").is(".nonnative-api-active")?(v.preferFlash=!0,document.removeEventListener("error",
26
+ r,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):n||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);a("audio, video").each(function(){this.error&&r({target:this})})}q.track=!1;g.track&&function(){if(!q.track)q.track="number"!=typeof a("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(g){q.track=!0}var i=h.cfg.track,l=function(g){a(g.target).filter("track").each(n)},
27
+ n=function(){if(q.track||!i.override&&3==a.prop(this,"readyState"))i.override=!0,h.reTest("track"),document.removeEventListener("error",l,!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")},s=function(){document.addEventListener("error",l,!0);q.track?n():a("track").each(n)};i.override||(h.isReady("track")?s():a(s))}();h.register("mediaelement-core",function(a,
28
+ h,u,r,B){n=swfobject.hasFlashPlayerVersion("9.0.115");var m=h.mediaelement,j=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=m.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},f=!n&&"postMessage"in u&&i,e=
29
+ function(){var b;return function(){!b&&f&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),d=function(){n?s():e()};h.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});m.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",
30
+ "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"]}};m.mimeTypes.source=a.extend({},m.mimeTypes.audio,m.mimeTypes.video);m.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
31
+ -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(m.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};m.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=r.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)});
32
+ else{var c=[],d=b[0].nodeName.toLowerCase(),e=j(b,d);e.src?c.push(e):a("source",b).each(function(){e=j(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==B&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));m.srces(this,b);a(this).mediaLoad()})};m.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(",");
33
+ m.canThirdPlaySrces=function(b,c){var d="";if(n||f)b=a(b),c=c||m.srces(b),a.each(c,function(b,a){if(a.container&&a.src&&(n&&-1!=m.swfMimeTypes.indexOf(a.container)||f&&"video/youtube"==a.container))return d=a,!1});return d};var b={};m.canNativePlaySrces=function(c,d){var e="";if(i){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||m.srces(c);a.each(d,function(a,d){if(d.type&&b[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};m.setError=function(b,c){c||(c="can't play sources");
34
+ a(b).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var c=function(){var b;return function(a,k,j){h.ready(n?p:"mediaelement-yt",function(){m.createSWF?m.createSWF(a,k,j):b||(b=!0,d(),c(a,k,j))});!b&&f&&!m.createSWF&&e()}}(),k=function(b,a,d,e,f){d||!1!==d&&a&&"third"==a.isActive?(d=m.canThirdPlaySrces(b,e))?c(b,d,a):f?m.setError(b,!1):k(b,a,!1,e,!0):(d=m.canNativePlaySrces(b,e))?a&&"third"==a.isActive&&m.setActive(b,
35
+ "html5",a):f?(m.setError(b,!1),a&&"third"==a.isActive&&m.setActive(b,"html5",a)):k(b,a,!0,e,!0)},t=/^(?:embed|object|datalist)$/i,C=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=m.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||t.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),k(b,c,v.preferFlash||B,e)};a(r).on("ended",function(b){var c=h.data(b.target,"mediaelement");(!l||c&&"html5"!=c.isActive||
36
+ 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(c){var d=h.defineNodeNameProperty(c,"load",{prop:{value:function(){var b=h.data(this,"mediaelement");C(this,b);i&&(!b||"html5"==b.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=h.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(d){var e=
37
+ "";i&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&n&&(d=a.trim((d||"").split(";")[0]),-1!=m.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var b=this,a=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){C(b);b=null},9)}});u=function(){h.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&&
38
+ 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():C(this);if(i){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).on({"play loadstart progress":function(a){"progress"==a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)},"emptied stalled mediaerror abort suspend":function(a){"emptied"==
39
+ a.type&&(c=!1);clearTimeout(b)}})}})})};g.track&&!q.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});i?(h.isReady("mediaelement-core",!0),u(),h.ready("WINDOWLOAD mediaelement",d)):h.ready(p,u);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
40
+ (function(a){var g=window.Modernizr,h=a.webshims,i=h.bugs,l=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input required="" name="a" /></form>'),v=function(){if(l[0].querySelector)try{i.findRequired=!l[0].querySelector("select:required")}catch(a){i.findRequired=!1}},q=a("input",l).eq(0),p=function(a){h.loader.loadList(["dom-extend"]);h.ready("dom-extend",a)};i.findRequired=!1;i.validationMessage=!1;h.capturingEventPrevented=function(g){if(!g._isPolyfilled){var h=
41
+ g.isDefaultPrevented,i=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 i.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||i.bustedValidity)v();else{h.capturingEvents(["input"]);h.capturingEvents(["invalid"],
42
+ !0);if(window.opera||window.testGoodWithFix)l.appendTo("head"),v(),i.validationMessage=!q.prop("validationMessage"),h.reTest(["form-extend","form-message"]),l.remove(),a(function(){p(function(){var g=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(i){var l=h.defineNodeNameProperty(i,"checkValidity",{prop:{value:function(){if(!h.fromSubmit)a(this).on("invalid.checkvalidity",g);h.fromCheckValidity=!0;var i=l.prop._supvalue.apply(this,arguments);h.fromSubmit||a(this).unbind("invalid.checkvalidity",
43
+ g);h.fromCheckValidity=!1;return i}}})})})});a.browser.webkit&&!h.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,h=!1;document.addEventListener("contextmenu",function(a){g.test(a.target.nodeName||"")&&(h=a.target.form)&&setTimeout(function(){h=!1},1)},!1);a(window).on("invalid",function(a){if(a.originalEvent&&h&&h==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
44
+ jQuery.webshims.register("form-core",function(a,g,h,i,l,v){var q={radio:1},p={checkbox:1,radio:1},s=a([]),n=g.bugs,u=function(b){var b=a(b),c,d;c=s;if(q[b[0].type])d=b.prop("form"),c=(c=b[0].name)?d?a(d[c]):a(i.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},r=g.getContentValidationMessage=function(b,c,d){var e=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";d&&e[d]&&(e=e[d]);"object"==typeof e&&(c=c||a.prop(b,"validity")||
45
+ {valid:1},c.valid||a.each(c,function(b,a){if(a&&"valid"!=b&&e[b])return e=e[b],!1}));if("object"==typeof e)e=e.defaultMessage;return e||""},o={number:1,range:1,date:1},y=function(b){var c=!1;a(a.prop(b,"elements")).each(function(){if(c=a(this).is(":invalid"))return!1});return c};a.extend(a.expr[":"],{"valid-element":function(b){return a.nodeName(b,"form")?!y(b):!(!a.prop(b,"willValidate")||!x(b))},"invalid-element":function(b){return a.nodeName(b,"form")?y(b):!(!a.prop(b,"willValidate")||x(b))},"required-element":function(b){return!(!a.prop(b,
46
+ "willValidate")||!a.prop(b,"required"))},"user-error":function(b){return a.prop(b,"willValidate")&&a(b).hasClass("user-error")},"optional-element":function(b){return!!(a.prop(b,"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!o[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(!o[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&
47
+ !b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(b){try{var a=b.ownerDocument;return b===a.activeElement&&(!a.hasFocus||a.hasFocus())}catch(d){}return!1};var w=a.event.customEvent||{},x=function(b){return(a.prop(b,"validity")||{valid:1}).valid};(n.bustedValidity||n.findRequired)&&function(){var b=a.find,c=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,
48
+ e=function(b){return b+"-element"};a.find=function(){var a=Array.prototype.slice,c=function(c){var f=arguments,f=a.call(f,1,f.length);f.unshift(c.replace(d,e));return b.apply(this,f)},f;for(f in b)b.hasOwnProperty(f)&&(c[f]=b[f]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(b,a){a=a.replace(d,e);return c.call(this,b,a)}}();var B=a.prop,m={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,f){var g=
49
+ B.apply(this,arguments);b&&"form"in b&&m[c]&&f!==l&&a(b).hasClass(e)&&x(b)&&(a(b).getShadowElement().removeClass(d),"checked"==c&&f&&u(b).not(b).removeClass(d).removeAttr("aria-invalid"));return g};var j=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},f=function(b){var a;try{a=i.activeElement.name===b}catch(d){}return a},e="user-error",d="user-error form-ui-invalid";a(i).on(v.validityUIEvents||"focusout change refreshvalidityui",
50
+ function(b){var c,g;if(b.target&&(c=a(b.target).getNativeElement()[0],"submit"!=c.type&&a.prop(c,"willValidate"))){g=a.data(c,"webshimsswitchvalidityclass");var h=function(){if(!("focusout"==b.type&&"radio"==c.type&&f(c.name))){var g=a.prop(c,"validity"),k=a(c).getShadowElement(),h,i,t,l;a(c).trigger("refreshCustomValidityRules");g.valid?k.hasClass("user-success")||(h="user-success form-ui-valid",i=d,l="changedvaliditystate",t="changedvalid",p[c.type]&&c.checked&&u(c).not(c).removeClass(i).addClass(h).removeAttr("aria-invalid"),
51
+ a.removeData(c,"webshimsinvalidcause")):(g=j(g,c),a.data(c,"webshimsinvalidcause")!=g&&(a.data(c,"webshimsinvalidcause",g),l="changedvaliditystate"),k.hasClass(e)||(h=d,i="user-success form-ui-valid",p[c.type]&&!c.checked&&u(c).not(c).removeClass(i).addClass(h),t="changedinvalid"));h&&(k.addClass(h).removeClass(i),setTimeout(function(){a(c).trigger(t)},0));l&&setTimeout(function(){a(c).trigger(l)},0);a.removeData(b.target,"webshimsswitchvalidityclass")}};g&&clearTimeout(g);"refreshvalidityui"==b.type?
52
+ h():a.data(c,"webshimsswitchvalidityclass",setTimeout(h,9))}});w.changedvaliditystate=!0;w.refreshCustomValidityRules=!0;w.changedvalid=!0;w.changedinvalid=!0;w.refreshvalidityui=!0;g.triggerInlineForm=function(b,c){a(b).trigger(c)};g.modules["form-core"].getGroupElements=u;n=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};n();g.ready("DOM",n);g.getRelOffset=function(b,c){var b=a(b),d=a(c).offset(),e;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",
53
+ left:0,top:0},function(){e=b.offset()});d.top-=e.top;d.left-=e.left;return d};g.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",c,d=!1,e=!1,f,j={hideDelay:5E3,showFor:function(b,c,g,i){j._create();var b=a(b),l=a(b).getShadowElement(),m=j.getOffsetFromBody(l);j.clear();i?this.hide():(this.getMessage(b,c),this.position(l,m),this.show(),this.hideDelay&&(d=setTimeout(f,this.hideDelay)),a(h).on("resize.validityalert",function(){clearTimeout(e);e=setTimeout(function(){j.position(l)},
54
+ 9)}));g||this.setFocus(l,m)},getOffsetFromBody:function(b){return g.getRelOffset(c,b)},setFocus:function(d,e){var j=a(d).getShadowFocusElement(),k=g.scrollRoot.scrollTop(),h=(e||j.offset()).top-30,l;g.getID&&"label"==b&&c.attr("for",g.getID(j));k>h&&(g.scrollRoot.animate({scrollTop:h-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(k-h)),80)}),l=!0);try{j[0].focus()}catch(t){}l&&(g.scrollRoot.scrollTop(k),setTimeout(function(){g.scrollRoot.scrollTop(k)},0));setTimeout(function(){a(i).on("focusout.validityalert",
55
+ f)},10)},getMessage:function(b,d){d||(d=r(b[0])||b.prop("validationMessage"));d?a("span.va-box",c).text(d):this.hide()},position:function(b,d){d=d?a.extend({},d):j.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(i).unbind(".validityalert");a(h).unbind(".validityalert");c.stop().removeAttr("for")},
56
+ _create:function(){if(!c)c=j.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></'+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()})}};f=a.proxy(j,"hide");return j}();(function(){var b,c=[],f;a(i).on("invalid",function(g){if(!g.wrongWebkitInvalid){var j=
57
+ a(g.target),h=j.getShadowElement();h.hasClass(e)||(h.addClass(d).removeClass("user-success form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,h=a.Event("firstinvalidsystem"),a(i).triggerHandler(h,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),j.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();c.push(g.target);g.extraData=
58
+ "fix";clearTimeout(f);f=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(g.target).trigger(d,d)},9);h=j=null}})})();a.fn.getErrorMessage=function(){var b="",c=this[0];c&&(b=r(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};v.replaceValidationUI&&g.ready("DOM forms",function(){a(i).on("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
59
+ jQuery.webshims.register("track",function(a,g,h,i){var l=g.mediaelement;(new Date).getTime();var v={subtitles:1,captions:1,descriptions:1},q=a("<track />"),p=Modernizr.ES5&&Modernizr.objectAccessor,s=function(a){var f={};a.addEventListener=function(a,d){f[a]&&g.error("always use $.on to the shimed event: "+a+" already bound fn was: "+f[a]+" your fn was: "+d);f[a]=d};a.removeEventListener=function(a,d){f[a]&&f[a]!=d&&g.error("always use $.on/$.off to the shimed event: "+a+" already bound fn was: "+
60
+ f[a]+" your fn was: "+d);f[a]&&delete f[a]};return a},n={getCueById:function(a){for(var f=null,e=0,d=this.length;e<d;e++)if(this[e].id===a){f=this[e];break}return f}},u={"0":"disabled",1:"hidden",2:"showing"},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 f=this.cues[this.cues.length-1];f&&f.startTime>a.startTime&&
61
+ g.error("cue startTime higher than previous cue's startTime")}else this.cues=l.createCueList();a.track&&a.track.removeCue&&a.track.removeCue(a);a.track=this;this.cues.push(a)},removeCue:function(a){var f=this.cues||[],e=0,d=f.length;if(a.track!=this)g.error("cue not part of track");else{for(;e<d;e++)if(f[e]===a){f.splice(e,1);a.track=null;break}a.track&&g.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},o=["kind",
62
+ "label","srclang"],y={srclang:"language"},w=Function.prototype.call.bind(Object.prototype.hasOwnProperty),x=function(j,f){var e=[],d=[],b=[],c,k;j||(j=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!f)j.blockTrackListUpdate=!0,f=a.prop(this,"textTracks"),j.blockTrackListUpdate=!1;clearTimeout(j.updateTrackListTimer);a("track",this).each(function(){var c=a.prop(this,"track");b.push(c);-1==f.indexOf(c)&&d.push(c)});if(j.scriptedTextTracks)for(c=0,k=j.scriptedTextTracks.length;c<
63
+ k;c++)b.push(j.scriptedTextTracks[c]),-1==f.indexOf(j.scriptedTextTracks[c])&&d.push(j.scriptedTextTracks[c]);for(c=0,k=f.length;c<k;c++)-1==b.indexOf(f[c])&&e.push(f[c]);if(e.length||d.length){f.splice(0);for(c=0,k=b.length;c<k;c++)f.push(b[c]);for(c=0,k=e.length;c<k;c++)a([f]).triggerHandler(a.Event({type:"removetrack",track:e[c]}));for(c=0,k=d.length;c<k;c++)a([f]).triggerHandler(a.Event({type:"addtrack",track:d[c]}));(j.scriptedTextTracks||e.length)&&a(this).triggerHandler("updatetrackdisplay")}},
64
+ B=function(j,f){f||(f=g.data(j,"trackData"));if(f&&!f.isTriggering)f.isTriggering=!0,setTimeout(function(){(f.track||{}).readyState?a(j).closest("audio, video").triggerHandler("updatetrackdisplay"):a(j).triggerHandler("checktrackmode");f.isTriggering=!1},1)},m=a("<div />")[0];h.TextTrackCue=function(a,f,e){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=f;this.text=e;this.id="";this.pauseOnExit=!1;s(this)};h.TextTrackCue.prototype=
65
+ {onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",f="",e=i.createDocumentFragment(),d;if(!w(this,"getCueAsHTML"))d=this.getCueAsHTML=function(){var b,c;if(a!=this.text){a=this.text;f=l.parseCueTextToHTML(a);m.innerHTML=f;for(b=0,c=m.childNodes.length;b<c;b++)e.appendChild(m.childNodes[b].cloneNode(!0))}return e.cloneNode(!0)};return d?d.apply(this,arguments):e.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return a.extend([],n)};l.parseCueTextToHTML=function(){var a=
66
+ /(<\/?[^>]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,e=/\<\s*\//,d=function(b,a,d,f){e.test(f)?b="</"+b+">":(d.splice(0,1),b="<"+b+" "+a+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return b},b=function(b){var a=b.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);a[0]&&(a[0]=a[0].toLowerCase(),f.test(a[0])?"c"==a[0]?b=d("span","class",a,b):"v"==a[0]&&(b=d("q","title",a,b)):b="");return b};return function(c){return c.replace(a,b)}}();l.loadTextTrack=function(j,f,e,d){var b=e.track,c=function(){var d=a.prop(f,"src"),
67
+ e,h;if("disabled"!=b.mode&&d&&a.attr(f,"src")&&(a(j).unbind("play playing timeupdate updatetrackdisplay",c),a(f).unbind("checktrackmode",c),!b.readyState)){e=function(){b.readyState=3;b.cues=null;b.activeCues=b.shimActiveCues=b._shimActiveCues=null;a(f).triggerHandler("error")};b.readyState=1;try{b.cues=l.createCueList(),b.activeCues=b.shimActiveCues=b._shimActiveCues=l.createCueList(),h=a.ajax({dataType:"text",url:d,success:function(c){"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");
68
+ l.parseCaptions(c,b,function(c){c&&"length"in c?(b.readyState=2,a(f).triggerHandler("load"),a(j).triggerHandler("updatetrackdisplay")):e()})},error:e})}catch(i){e(),g.warn(i)}}};b.readyState=0;b.shimActiveCues=null;b._shimActiveCues=null;b.activeCues=null;b.cues=null;a(j).unbind("play playing timeupdate updatetrackdisplay",c);a(f).unbind("checktrackmode",c);a(j).on("play playing timeupdate updatetrackdisplay",c);a(f).on("checktrackmode",c);if(d)b.mode=v[b.kind]?"showing":"hidden",c()};l.createTextTrack=
69
+ function(j,f){var e,d;if(f.nodeName&&(d=g.data(f,"trackData")))B(f,d),e=d.track;if(!e)e=s(g.objectCreate(r)),p||o.forEach(function(b){var c=a.prop(f,b);c&&(e[y[b]||b]=c)}),f.nodeName?(p&&o.forEach(function(b){g.defineProperty(e,y[b]||b,{get:function(){return a.prop(f,b)}})}),d=g.data(f,"trackData",{track:e}),l.loadTextTrack(j,f,d,a.prop(f,"default")&&a(f).siblings("track[default]").andSelf()[0]==f)):(p&&o.forEach(function(b){g.defineProperty(e,y[b]||b,{value:f[b],writeable:!1})}),e.cues=l.createCueList(),
70
+ e.activeCues=e._shimActiveCues=e.shimActiveCues=l.createCueList(),e.mode="hidden",e.readyState=2);return e};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,e=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,d=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(b){var c,h,i,l;if(f.exec(b)||e.exec(b)||d.exec(b))return null;for(b=b.split(/\n/g);!b[0].replace(/\s+/ig,"").length&&0<b.length;)b.shift();
71
+ for(b[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&(i=""+b.shift().replace(/\s*/ig,""));0<b.length;){if(l=a.exec(b[0]))h=l.slice(1),c=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));b=b.slice(0,0).concat(b.slice(1));break}if(!c&&!h)return g.warn("couldn't extract time information: "+[c,h,b.join("\n"),i].join(" ; ")),null;b=b.join("\n");c=new TextTrackCue(c,
72
+ h,b);if(i)c.id=i;return c}}();l.parseCaptions=function(a,f,e){l.createCueList();var d,b,c,h,i;a?(c=/^WEBVTT(\s*FILE)?/ig,b=function(m,n){for(;m<n;m++){d=a[m];if(c.test(d))i=!0;else if(d.replace(/\s*/ig,"").length){if(!i){g.error("please use WebVTT format. This is the standard");e(null);break}(d=l.parseCaptionChunk(d,m))&&f.addCue(d)}if(h<(new Date).getTime()-30){m++;setTimeout(function(){h=(new Date).getTime();b(m,n)},90);break}}m>=n&&(i||g.error("please use WebVTT format. This is the standard"),
73
+ e(f.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){h=(new Date).getTime();a=a.split(/\n\n+/g);b(0,a.length)},9)},9)):g.error("Required parameter captionData not supplied.")};l.createTrackList=function(a,f){f=f||g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});if(!f.textTracks)f.textTracks=[],g.defineProperties(f.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),s(f.textTracks);return f.textTracks};Modernizr.track||
74
+ (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 f=g.data(this,"trackData");this.setAttribute("data-kind",a);if(f)f.attrKind=a},get:function(){var a=g.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",
75
+ limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});a.each(o,function(h,f){var e=y[f]||f;g.onNodeNamesPropertyModify("track",f,function(){var d=g.data(this,"trackData"),b=this;if(d)"kind"==f&&B(this,d),p||(d.track[e]=a.prop(this,f)),clearTimeout(d.changedTrackPropTimer),d.changedTrackPropTimer=setTimeout(function(){a(b).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=g.data(this,"trackData"),f;h&&(f=a(this).closest("video, audio"),
76
+ f[0]&&l.loadTextTrack(f,this,h))}});g.defineNodeNamesProperties(["track"],{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");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),f=
77
+ l.createTrackList(this,a);a.blockTrackListUpdate||x.call(this,a,f);return f},writeable:!1},addTextTrack:{value:function(a,f,e){a=l.createTextTrack(this,{kind:q.prop("kind",a||"").prop("kind"),label:f||"",srclang:e||""});f=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!f.scriptedTextTracks)f.scriptedTextTracks=[];f.scriptedTextTracks.push(a);x.call(this);return a}}},"prop");a(i).on("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var f=g.data(h.target,
78
+ "mediaelementBase");if(f)clearTimeout(f.updateTrackListTimer),f.updateTrackListTimer=setTimeout(function(){x.call(h.target,f)},0)}});g.addReady(function(h,f){var e=f.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(e).each(function(){x.call(this)}).each(function(){if(Modernizr.track){var d=this.textTracks;a.prop(this,"textTracks").length!=d.length&&g.error("textTracks couldn't be copied");a("track",this).each(function(){var b=a.prop(this,"track"),c=this.track,d,e;if(c){d=
79
+ a.prop(this,"kind");e=c.readyState||this.readyState;if(c.mode||e)b.mode=u[c.mode]||c.mode;if("descriptions"!=d)c.mode="string"==typeof c.mode?"disabled":0,this.kind="metadata",a(this).attr({kind:d})}}).on("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});e.each(function(){var a=this,b=g.data(a,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){x.call(a,b)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});
@@ -1,104 +1,101 @@
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
- NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});
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")});
1
+ (function(){var a=Function.prototype.call,g=Object.prototype,h=Array.prototype.slice,m,k;if(!Function.prototype.bind)Function.prototype.bind=function(a){var e=this;if("function"!=typeof e)throw new TypeError;var b=h.call(arguments,1),d=function(){if(this instanceof d){var c=function(){};c.prototype=e.prototype;var c=new c,f=e.apply(c,b.concat(h.call(arguments)));return null!==f&&Object(f)===f?f:c}return e.apply(a,b.concat(h.call(arguments)))};return d};k=a.bind(g.toString);m=a.bind(g.hasOwnProperty);
2
+ if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==k(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,e){var b=q(this),d=0,c=b.length>>>0;if("[object Function]"!=k(a))throw new TypeError;for(;d<c;)d in b&&a.call(e,b[d],d,b),d++};if(!Array.prototype.map)Array.prototype.map=function(a,e){var b=q(this),d=b.length>>>0,c=Array(d);if("[object Function]"!=k(a))throw new TypeError;for(var f=0;f<d;f++)f in b&&(c[f]=a.call(e,b[f],f,b));return c};if(!Array.prototype.filter)Array.prototype.filter=
3
+ function(a,e){var b=q(this),d=b.length>>>0,c=[];if("[object Function]"!=k(a))throw new TypeError;for(var f=0;f<d;f++)f in b&&a.call(e,b[f],f,b)&&c.push(b[f]);return c};if(!Array.prototype.every)Array.prototype.every=function(a,e){var b=q(this),d=b.length>>>0;if("[object Function]"!=k(a))throw new TypeError;for(var c=0;c<d;c++)if(c in b&&!a.call(e,b[c],c,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,e){var b=q(this),d=b.length>>>0;if("[object Function]"!=k(a))throw new TypeError;
4
+ for(var c=0;c<d;c++)if(c in b&&a.call(e,b[c],c,b))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var e=q(this),b=e.length>>>0;if("[object Function]"!=k(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var d=0,c;if(2<=arguments.length)c=arguments[1];else{do{if(d in e){c=e[d++];break}if(++d>=b)throw new TypeError;}while(1)}for(;d<b;d++)d in e&&(c=a.call(void 0,c,e[d],d,e));return c};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var e=
5
+ q(this),b=e.length>>>0;if("[object Function]"!=k(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var d,b=b-1;if(2<=arguments.length)d=arguments[1];else{do{if(b in e){d=e[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(d=a.call(void 0,d,e[b],b,e));while(b--);return d};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var e=q(this),b=e.length>>>0;if(!b)return-1;var d=0;1<arguments.length&&(d=v(arguments[1]));for(d=0<=d?d:b-Math.abs(d);d<b;d++)if(d in
6
+ e&&e[d]===a)return d;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var e=q(this),b=e.length>>>0;if(!b)return-1;var d=b-1;1<arguments.length&&(d=v(arguments[1]));for(d=0<=d?d:b-Math.abs(d);0<=d;d--)if(d in e&&a===e[d])return d;return-1};if(2!=[1,2].splice(0).length){var t=Array.prototype.splice;Array.prototype.splice=function(a,e){return!arguments.length?[]:t.apply(this,[void 0===a?0:a,void 0===e?this.length-a:e].concat(h.call(arguments,2)))}}if(!Object.keys){var i=
7
+ !0,r="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=r.length,p;for(p in{toString:null})i=!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 e=[],b;for(b in a)m(a,b)&&e.push(b);if(i)for(b=0;b<n;b++){var d=r[b];m(a,d)&&e.push(d)}return e}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,e,b;if(!isFinite(this))throw new RangeError;
8
+ a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(e=a.length;e--;)b=a[e],10>b&&(a[e]="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+"]",y=RegExp("^"+a+a+"*"),w=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(y,"").replace(w,"")}}if("0".split(void 0,0).length){var u=String.prototype.split;String.prototype.split=function(a,e){return void 0===a&&0===e?[]:u.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var x=String.prototype.substr;String.prototype.substr=function(a,e){return x.call(this,0>a?0>(a=this.length+a)?0:a:a,e)}}var v=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},s="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return s&&"string"==typeof a&&a?a.split(""):Object(a)}})();
11
+ (function(a,g){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(g){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=g.browserVersion));Modernizr.advancedObjectProperties=h;
12
+ if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var m=Function.prototype.call.bind(Object.prototype.hasOwnProperty);g.objectCreate=function(a,h,i,m){var n;n=function(){};n.prototype=a;n=new n;if(!m&&!("__proto__"in n)&&!Modernizr.objectAccessor)n.__proto__=a;h&&g.defineProperties(n,h);if(i)n.options=jQuery.extend(!0,{},n.options||{},i),i=n.options;n._create&&jQuery.isFunction(n._create)&&n._create(i);return n};g.defineProperties=function(a,
13
+ h){for(var i in h)m(h,i)&&g.defineProperty(a,i,h[i]);return a};g.defineProperty=function(a,g,i){if("object"!=typeof i||null===i)return a;if(m(i,"value"))return a[g]=i.value,a;a.__defineGetter__&&("function"==typeof i.get&&a.__defineGetter__(g,i.get),"function"==typeof i.set&&a.__defineSetter__(g,i.set));return a};g.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};g.getOwnPropertyDescriptor=function(a,g){if("object"!==
14
+ typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var i;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return i=Object.getOwnPropertyDescriptor(a,g)}catch(h){}i={configurable:!0,enumerable:!0,writable:!0,value:void 0};var n=a.__lookupGetter__&&a.__lookupGetter__(g),p=a.__lookupSetter__&&a.__lookupSetter__(g);if(!n&&!p){if(!m(a,g))return;i.value=a[g];return i}delete i.writable;delete i.value;i.get=i.set=void 0;if(n)i.get=
15
+ n;if(p)i.set=p;return i}}})(jQuery,jQuery.webshims);
16
+ jQuery.webshims.register("dom-extend",function(a,g,h,m,k){var t=g.modules,i=/\s*,\s*/,r={},n={},p={},y={},w={},u=a.fn.val,x=function(d,c,f,j,b){return b?u.call(a(d)):u.call(a(d),f)};a.fn.val=function(d){var c=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!c||1!==c.nodeType?u.call(this):a.prop(c,"value",d,"val",!0);if(a.isArray(d))return u.apply(this,arguments);var f=a.isFunction(d);return this.each(function(j){c=this;1===c.nodeType&&(f?(j=d.call(c,j,a.prop(c,"value",k,"val",
17
+ !0)),null==j&&(j=""),a.prop(c,"value",j,"val")):a.prop(c,"value",d,"val"))})};var v="_webshimsLib"+Math.round(1E3*Math.random()),s=function(d,c,f){d=d.jquery?d[0]:d;if(!d)return f||{};var j=a.data(d,v);f!==k&&(j||(j=a.data(d,v,{})),c&&(j[c]=f));return c?j&&j[c]:j};[{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=s(this,
18
+ "shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){r[d]=a[d];a[d]=function(c,f,j,b,e){var g="val"==b,A=!g?r[d]:x;if(!c||!n[f]||1!==c.nodeType||!g&&b&&"attr"==d&&a.attrFn[f])return A(c,f,j,b,e);var E=(c.nodeName||"").toLowerCase(),B=p[E],C="attr"==d&&(!1===j||null===j)?"removeAttr":d,i,u,h;B||(B=p["*"]);B&&(B=B[f]);B&&(i=B[C]);if(i){if("value"==f)u=i.isVal,i.isVal=g;if("removeAttr"===C)return i.value.call(c);if(j===k)return i.get?i.get.call(c):i.value;i.set&&
19
+ ("attr"==d&&!0===j&&(j=f),h=i.set.call(c,j));if("value"==f)i.isVal=u}else h=A(c,f,j,b,e);if((j!==k||"removeAttr"===C)&&w[E]&&w[E][f]){var l;l="removeAttr"==C?!1:"prop"==C?!!j:!0;w[E][f].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(c,j,l,g?"val":C,d)})}return h};y[d]=function(c,f,b){p[c]||(p[c]={});p[c][f]||(p[c][f]={});var e=p[c][f][d],z=function(a,c,e){return c&&c[a]?c[a]:e&&e[a]?e[a]:"prop"==d&&"value"==f?function(a){return b.isVal?x(this,f,a,!1,0===arguments.length):
20
+ r[d](this,f,a)}:"prop"==d&&"value"==a&&b.value.apply?function(a){var c=r[d](this,f);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return r[d](this,f,a)}};p[c][f][d]=b;if(b.value===k){if(!b.set)b.set=b.writeable?z("set",b,e):g.cfg.useStrict&&"prop"==f?function(){throw f+" is readonly on "+c;}:a.noop;if(!b.get)b.get=z("get",b,e)}["value","get","set"].forEach(function(a){b[a]&&(b["_sup"+a]=z(a,e))})}});var q=!a.browser.msie||8<parseInt(a.browser.version,10),l=function(){var a=g.getPrototypeOf(m.createElement("foobar")),
21
+ c=Object.prototype.hasOwnProperty;return function(f,b,o){var z=m.createElement(f),i=g.getPrototypeOf(z);if(q&&i&&a!==i&&(!z[b]||!c.call(z,b))){var A=z[b];o._supvalue=function(){return A&&A.apply?A.apply(this,arguments):A};i[b]=o.value}else o._supvalue=function(){var a=s(this,"propValue");return a&&a[b]&&a[b].apply?a[b].apply(this,arguments):a&&a[b]},e.extendValue(f,b,o.value);o.value._supvalue=o._supvalue}}(),e=function(){var d={};g.addReady(function(c,f){var b={},e=function(d){b[d]||(b[d]=a(c.getElementsByTagName(d)),
22
+ f[0]&&a.nodeName(f[0],d)&&(b[d]=b[d].add(f)))};a.each(d,function(a,d){e(a);!d||!d.forEach?g.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){b[a].each(d)})});b=null});var c,f=a([]),b=function(f,b){d[f]?d[f].push(b):d[f]=[b];a.isDOMReady&&(c||a(m.getElementsByTagName(f))).each(b)};return{createTmpCache:function(d){a.isDOMReady&&(c=c||a(m.getElementsByTagName(d)));return c||f},flushTmpCache:function(){c=null},content:function(d,c){b(d,function(){var d=a.attr(this,c);null!=d&&a.attr(this,
23
+ c,d)})},createElement:function(a,d){b(a,d)},extendValue:function(d,c,f){b(d,function(){a(this).each(function(){s(this,"propValue",{})[c]=this[c];this[c]=f})})}}}(),b=function(a,c){if(a.defaultValue===k)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 d=(new Date).getTime();return function(c){var c=a(c),f=c.attr("id");f||(d++,f="ID-"+d,c.attr("id",f));
24
+ return f}}(),extendUNDEFProp:function(d,c){a.each(c,function(a,c){a in d||(d[a]=c)})},createPropDefault:b,data:s,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(c,f,b){if((c=(a[d](c,"events")||{})[f])&&1<c.length)f=c.pop(),b||(b="bind"),"bind"==b&&c.delegateCount?c.splice(c.delegateCount,0,f):c.unshift(f)}}(),addShadowDom:function(){var d,c,b,e={init:!1,runs:0,test:function(){var a=e.getHeight(),d=e.getWidth();a!=e.height||d!=e.width?(e.height=a,e.width=d,e.handler({type:"docresize"}),
25
+ e.runs++,30>e.runs&&setTimeout(e.test,30)):e.runs=0},handler:function(g){clearTimeout(d);d=setTimeout(function(){if("resize"==g.type){var d=a(h).width(),i=a(h).width();if(i==c&&d==b)return;c=i;b=d;e.height=e.getHeight();e.width=e.getWidth()}a.event.trigger("updateshadowdom")},"resize"==g.type?50:9)},_create:function(){a.each({Height:"getHeight",Width:"getWidth"},function(a,d){var c=m.body,b=m.documentElement;e[d]=function(){return Math.max(c["scroll"+a],b["scroll"+a],c["offset"+a],b["offset"+a],b["client"+
26
+ a])}})},start:function(){if(!this.init&&m.body)this.init=!0,this._create(),this.height=e.getHeight(),this.width=e.getWidth(),setInterval(this.test,400),a(this.test),a(h).bind("load",this.test),a(h).bind("resize",this.handler),function(){var d=a.fn.animate,c;a.fn.animate=function(){clearTimeout(c);c=setTimeout(function(){e.test();e.handler({type:"animationstart"})},19);return d.apply(this,arguments)}}()}};a.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){e.start()})};
27
+ return function(d,c,b){b=b||{};d.jquery&&(d=d[0]);c.jquery&&(c=c[0]);var f=a.data(d,v)||a.data(d,v,{}),e=a.data(c,v)||a.data(c,v,{}),j={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];j=a.data(b.shadowFocusElement,v)||a.data(b.shadowFocusElement,v,j)}}else b.shadowFocusElement=c;f.hasShadow=c;j.nativeElement=e.nativeElement=d;j.shadowData=e.shadowData=f.shadowData={nativeElement:d,shadowElement:c,shadowFocusElement:b.shadowFocusElement};
28
+ b.shadowChilds&&b.shadowChilds.each(function(){s(this,"shadowData",e.shadowData)});if(b.data)j.shadowData.data=e.shadowData.data=f.shadowData.data=b.data;b=null;g.docObserve()}}(),propTypes:{standard:function(a){b(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){b(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)}}},
29
+ src:function(){var d=m.createElement("a");d.style.display="none";return function(c,f){b(c);if(!c.prop)c.prop={set:function(a){c.attr.set.call(this,a)},get:function(){var c=this.getAttribute(f),b;if(null==c)return"";d.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(d).insertAfter(this),b=d.getAttribute("href",4)}catch(e){b=d.getAttribute("href",4)}a(d).detach()}return b||d.href}}}}(),enumarated:function(a){b(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,c)},get:function(){var c=
30
+ (a.attr.get.call(this)||"").toLowerCase();if(!c||-1==a.limitedTo.indexOf(c))c=a.defaultValue;return c}}}},reflectProperties:function(d,c){"string"==typeof c&&(c=c.split(i));c.forEach(function(c){g.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)g.propTypes[b.propType||"standard"](b,c);["prop","attr","removeAttr"].forEach(function(e){var o=b[e];o&&(o="prop"===e?a.extend({writeable:!0},
31
+ o):a.extend({},o,{writeable:!0}),y[e](d,c,o),"*"!=d&&g.cfg.extendNative&&"prop"==e&&o.value&&a.isFunction(o.value)&&l(d,c,o),b[e]=o)});b.initAttr&&e.content(d,c);return b},defineNodeNameProperties:function(a,c,b,j){for(var o in c)!j&&c[o].initAttr&&e.createTmpCache(a),b&&!c[o][b]&&(c[o][b]={},["value","set","get"].forEach(function(a){a in c[o]&&(c[o][b][a]=c[o][a],delete c[o][a])})),c[o]=g.defineNodeNameProperty(a,o,c[o]);j||e.flushTmpCache();return c},createElement:function(b,c,f){var j;a.isFunction(c)&&
32
+ (c={after:c});e.createTmpCache(b);c.before&&e.createElement(b,c.before);f&&(j=g.defineNodeNameProperties(b,f,!1,!0));c.after&&e.createElement(b,c.after);e.flushTmpCache();return j},onNodeNamesPropertyModify:function(b,c,f,g){"string"==typeof b&&(b=b.split(i));a.isFunction(f)&&(f={set:f});b.forEach(function(a){w[a]||(w[a]={});"string"==typeof c&&(c=c.split(i));f.initAttr&&e.createTmpCache(a);c.forEach(function(b){w[a][b]||(w[a][b]=[],n[b]=!0);if(f.set){if(g)f.set.only=g;w[a][b].push(f.set)}f.initAttr&&
33
+ e.content(a,b)});e.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,c,f){f||(f={});if(a.isFunction(f))f.set=f;g.defineNodeNamesProperty(b,c,{attr:{set:function(a){this.setAttribute(c,a);f.set&&f.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?k:c}},removeAttr:{value:function(){this.removeAttribute(c);f.set&&f.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:f.initAttr||!1})},contentAttr:function(a,b,f){if(a.nodeName){if(f===k)return a=a.attributes[b]||{},
34
+ f=a.specified?a.value:null,null==f?k:f;"boolean"==typeof f?f?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,f)}},activeLang:function(){var b=[],c={},f,e,o=/:\/\/|^\.*\//,i=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,o.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,A(b,!0)):a(function(){b.langObj[c]&&A(b,!0);b.loading=!1})}),!0):!1},u=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
35
+ A=function(a,b){if(a.activeLang!=f&&a.activeLang!==e){var c=t[a.module].options;if(a.langObj[f]||e&&a.langObj[e])a.activeLang=f,a.callback(a.langObj[f]||a.langObj[e],f),u(a.module);else if(!b&&!i(a,f,c)&&!i(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],f),u(a.module)}};return function(g){if("string"==typeof g&&g!==f)f=g,e=f.split("-")[0],f==e&&(e=!1),a.each(b,function(a,b){A(b)});else if("object"==typeof g)if(g.register)c[g.register]||(c[g.register]=[]),c[g.register].push(g),
36
+ g.callback();else{if(!g.activeLang)g.activeLang="";b.push(g);A(g)}return f}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,d,e,u){"string"==typeof a&&(a=a.split(i));var h={};a.forEach(function(a){h[a]=g[b](a,d,e,u)});return h}});g.isReady("webshimLocalization",!0)});
37
+ (function(a,g){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},k=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(h,i){a.each(m,function(g,n){for(var u=a(g,h).add(i.filter(g)),x=0,m=u.length;x<m;x++)k(u[x],n)});if(h===g){var r=g.getElementsByTagName("header")[0],n=g.getElementsByTagName("footer"),p=n.length;
38
+ r&&!a(r).closest("section, article")[0]&&k(r,"banner");p&&(r=n[p-1],a(r).closest("section, article")[0]||k(r,"contentinfo"))}})}})(jQuery,document);
39
+ (function(a,g,h){var m=g.audio&&g.video,k=!1,t=h.cfg.mediaelement,i=h.bugs,r="jwplayer"==t.player?"mediaelement-swf":"mediaelement-jaris",n=function(){h.ready(r,function(){if(!h.mediaelement.createSWF)h.mediaelement.loadSwf=!0,h.reTest([r],m)})},p;if(m){var y=document.createElement("video");g.videoBuffered="buffered"in y;k="loop"in y;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(h.addPolyfill("mediaelement-native-fix",
40
+ {f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(m&&!t.preferFlash){var w=function(g){var i=g.target.parentNode;!t.preferFlash&&(a(g.target).is("audio, video")||i&&a("source:last",i)[0]==g.target)&&h.ready("DOM mediaelement",function(){p&&n();h.ready("WINDOWLOAD "+r,function(){setTimeout(function(){p&&!t.preferFlash&&h.mediaelement.createSWF&&!a(g.target).closest("audio, video").is(".nonnative-api-active")?(t.preferFlash=!0,document.removeEventListener("error",
41
+ w,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):p||document.removeEventListener("error",w,!0)},20)})})};document.addEventListener("error",w,!0);a("audio, video").each(function(){this.error&&w({target:this})})}i.track=!1;g.track&&function(){if(!i.track)i.track="number"!=typeof a("<track />")[0].readyState;if(!i.track)try{new TextTrackCue(2,3,"")}catch(g){i.track=!0}var k=h.cfg.track,n=function(g){a(g.target).filter("track").each(m)},
42
+ m=function(){if(i.track||!k.override&&3==a.prop(this,"readyState"))k.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")},p=function(){document.addEventListener("error",n,!0);i.track?m():a("track").each(m)};k.override||(h.isReady("track")?p():a(p))}();h.register("mediaelement-core",function(a,
43
+ h,v,s,q){p=swfobject.hasFlashPlayerVersion("9.0.115");var l=h.mediaelement,e=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=l.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},b=!p&&"postMessage"in v&&m,d=
44
+ function(){var c;return function(){!c&&b&&(c=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),c=function(){p?n():d()};h.addPolyfill("mediaelement-yt",{test:!b,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",
45
+ "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?")||
46
+ -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(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=s.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)});
47
+ else{var c=[],d=b[0].nodeName.toLowerCase(),f=e(b,d);f.src?c.push(f):a("source",b).each(function(){f=e(this,d);f.src&&c.push(f)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==q&&(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(",");
48
+ l.canThirdPlaySrces=function(c,d){var e="";if(p||b)c=a(c),d=d||l.srces(c),a.each(d,function(a,c){if(c.container&&c.src&&(p&&-1!=l.swfMimeTypes.indexOf(c.container)||b&&"video/youtube"==c.container))return e=c,!1});return e};var f={};l.canNativePlaySrces=function(b,c){var d="";if(m){var b=a(b),e=(b[0].nodeName||"").toLowerCase();if(!f[e])return d;c=c||l.srces(b);a.each(c,function(a,c){if(c.type&&f[e].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};l.setError=function(b,c){c||(c="can't play sources");
49
+ a(b).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var j=function(){var a;return function(e,f,g){h.ready(p?r:"mediaelement-yt",function(){l.createSWF?l.createSWF(e,f,g):a||(a=!0,c(),j(e,f,g))});!a&&b&&!l.createSWF&&d()}}(),o=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,d))?j(a,c,b):e?l.setError(a,!1):o(a,b,!1,d,!0):(c=l.canNativePlaySrces(a,d))?b&&"third"==b.isActive&&l.setActive(a,
50
+ "html5",b):e?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):o(a,b,!0,d,!0)},z=/^(?:embed|object|datalist)$/i,D=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=l.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||z.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),o(b,c,t.preferFlash||q,e)};a(s).on("ended",function(b){var c=h.data(b.target,"mediaelement");(!k||c&&"html5"!=c.isActive||
51
+ 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)});k||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");D(this,a);m&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});f[b]=h.defineNodeNameProperty(b,"canPlayType",{prop:{value:function(c){var d=
52
+ "";m&&f[b].prop._supvalue&&(d=f[b].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&p&&(c=a.trim((c||"").split(";")[0]),-1!=l.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)}});v=function(){h.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&&
53
+ 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():D(this);if(m){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).on({"play loadstart progress":function(a){"progress"==a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)},"emptied stalled mediaerror abort suspend":function(a){"emptied"==
54
+ a.type&&(c=!1);clearTimeout(b)}})}})})};g.track&&!i.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});m?(h.isReady("mediaelement-core",!0),v(),h.ready("WINDOWLOAD mediaelement",c)):h.ready(r,v);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
55
+ jQuery.webshims.register("mediaelement-swf",function(a,g,h,m,k,t){var i=g.mediaelement,r=h.swfobject,n=Modernizr.audio&&Modernizr.video,p=r.hasFlashPlayerVersion("9.0.115"),y=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)g.error("buffered index size error");else return 0},end:function(a){if(a)g.error("buffered index size error");else return 0},length:0}},w=Object.keys(h),u={currentTime:0,volume:1,
56
+ muted:!1};Object.keys(u);var x=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:k},h,u),v=/^jwplayer-/,s=function(a){if(a=m.getElementById(a.replace(v,"")))return a=g.data(a,"mediaelement"),"third"==a.isActive?a:null},q=function(a){return(a=g.data(a,"mediaelement"))&&"third"==a.isActive?a:null},l=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,k,b)},e=t.playerPath||g.cfg.basePath+
57
+ "jwplayer/"+(t.playerName||"player.swf"),b=t.pluginPath||g.cfg.basePath+"swf/jwwebshims.swf";g.extendUNDEFProp(t.params,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});g.extendUNDEFProp(t.vars,{screencolor:"ffffffff"});g.extendUNDEFProp(t.attrs,{bgcolor:"#000000"});var d=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&&
58
+ b.duration!=b._lastDuration?(l(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&i.jwEvents.Model.META(a.extend({duration:b.duration},c),b),b._durationCalcs--):b._durationCalcs++}},c=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,l(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,l(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
59
+ {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});i.jwEvents={View:{PLAY:function(a){var b=s(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;l(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var e=s(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=
60
+ !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",k,e._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:s(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=
61
+ 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&&l(b._elem,"durationchange");l(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=s(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;l(b._elem,"timeupdate")}},STATE:function(a){var b=
62
+ s(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);l(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;l(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,l(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,l(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=s(a.id);b&&i.setError(b._elem,a.message)},SEEK:function(a){var b=
63
+ s(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,l(b._elem,"timeupdate")}},VOLUME:function(a){var b=s(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,l(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=s(a.id);if(b&&b.muted!=a.state)b.muted=a.state,l(b._elem,"volumechange")}}}};var f=function(b){var c=!0;a.each(i.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
64
+ "jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},j=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=[]},o=function(b){b&&(b._ppFlag===k&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===k||!b.paused))try{a(b._elem).play()}catch(c){}},1)};i.playerResize=function(b){b&&
65
+ (b=m.getElementById(b.replace(v,"")))&&a(b).triggerHandler("swfstageresize")};a(m).on("emptied",function(a){a=q(a.target);o(a)});var z;i.jwPlayerReady=function(b){var c=s(b.id),d=0,e=function(){if(!(9<d))if(d++,f(c)){if(c.wasSwfReady)a(c._elem).mediaLoad();else{var h=parseFloat(b.version,10);(5.1>h||6<=h)&&g.warn("mediaelement-swf is only testet with jwplayer 5.6+")}c.wasSwfReady=!0;c.tryedReframeing=0;j(c);o(c)}else clearTimeout(c.reframeTimer),c.reframeTimer=setTimeout(e,9*d),2<d&&9>c.tryedReframeing&&
66
+ (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(z);c.jwData=b;c.shadowElem.removeClass("flashblocker-assumed");a.prop(c._elem,"volume",c.volume);a.prop(c._elem,"muted",c.muted);e()}};var D=a.noop;if(n){var A={play:1,playing:1},E="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),B=E.map(function(a){return a+
67
+ ".webshimspolyfill"}).join(" "),C=function(b){var c=g.data(b.target,"mediaelement");c&&(b.originalEvent&&b.originalEvent.type===b.type)==("third"==c.activating)&&(b.stopImmediatePropagation(),A[b.type]&&c.isActive!=c.activating&&a(b.target).pause())},D=function(b){a(b).off(B).on(B,C);E.forEach(function(a){g.moveToFirstEvent(b,a)})};D(m)}i.setActive=function(b,c,d){d||(d=g.data(b,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&g.warn("wrong type for mediaelement activating: "+c);var e=
68
+ g.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")}};var H=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),
69
+ b=a.length;return function(d){if(d){var e=b,f=d.networkState;for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&l(d._elem,"emptied")}}}(),G=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||a(d).width(),height:d.style.height||a(d).height()})};i.createSWF=function(c,d,f){if(p){1>y?y=1:y++;var j=a.extend({},t.vars,{image:a.prop(c,"poster")||"",file:d.srcProp}),
70
+ h=a(c).data("vars")||{};f||(f=g.data(c,"mediaelement"));if(f&&f.swfCreated)i.setActive(c,"third",f),H(f),f.currentSrc=d.srcProp,a.extend(j,h),t.changeSWF(j,c,d,f,"load"),F(c,"sendEvent",["LOAD",j]);else{var o=a.prop(c,"controls"),k="jwplayer-"+g.getID(c),l=a.extend({},t.params,a(c).data("params")),m=c.nodeName.toLowerCase(),s=a.extend({},t.attrs,{name:k,id:k},a(c).data("attrs")),q=a('<div class="polyfill-'+m+' polyfill-mediaelement" id="wrapper-'+k+'"><div id="'+k+'"></div>').css({position:"relative",
71
+ overflow:"hidden"}),f=g.data(c,"mediaelement",g.objectCreate(x,{actionQueue:{value:[]},shadowElem:{value:q},_elemNodeName:{value:m},_elem:{value:c},currentSrc:{value:d.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=f.buffered.length)g.error("buffered index size error");else return 0},end:function(a){if(a>=f.buffered.length)g.error("buffered index size error");else return(f.duration-f._bufferedStart)*f._bufferedEnd/100+f._bufferedStart},length:0}}}));G(f,o);q.insertBefore(c);
72
+ n&&a.extend(f,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(j,{id:k,controlbar:o?t.vars.controlbar||("video"==m?"over":"bottom"):"video"==m?"none":"bottom",icons:""+(o&&"video"==m)},h,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});j.plugins=j.plugins?j.plugins+(","+b):b;g.addShadowDom(c,q);D(c);i.setActive(c,"third",f);t.changeSWF(j,c,d,f,"embed");a(c).on("updatemediaelementdimensions updateshadowdom",function(){G(f,a.prop(c,"controls"))});r.embedSWF(e,k,"100%","100%",
73
+ "9.0.0",!1,j,l,s,function(b){if(b.success)f.jwapi=b.ref,o||a(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&q[0].parentNode||"none"==b.ref.style.display)q.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),g.warn("flashblocker assumed");a(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),z||(clearTimeout(z),z=setTimeout(function(){var c=a(b.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?
74
+ g.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)&&g.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},1)};var F=function(a,b,c,d){return(d=d||q(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<
75
+ 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=q(this);return b?b[a]:n&&d[a].prop._supget?d[a].prop._supget.apply(this):x[a]},writeable:!1})},f=function(a,b){e(a);delete c[a].writeable;c[a].set=b};f("volume",function(a){var b=q(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&g.error("volume greater or less than allowed "+
76
+ a/100);F(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,l(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});f("muted",function(a){var b=q(this);if(b){if(a=!!a,F(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"third"!=b.isActive))b.muted=a,l(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});f("currentTime",
77
+ function(a){var b=q(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);F(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,l(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){c[a]={value:function(){var b=q(this);if(b)b.stopPlayPause&&
78
+ clearTimeout(b.stopPlayPause),F(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,l(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});w.forEach(e);g.onNodeNamesPropertyModify(b,"controls",function(c,d){var e=q(this);a(this)[d?"addClass":"removeClass"]("webshims-controls");if(e){try{F(this,d?"showControls":"hideControls",[b],e)}catch(f){g.warn("you need to generate a crossdomain.xml")}"audio"==
79
+ b&&G(e,d);a(e.jwapi).attr("tabindex",d?"0":"-1")}});d=g.defineNodeNameProperties(b,c,"prop")});if(p){var I=a.cleanData,J=a.browser.msie&&9>g.browserVersion,K={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&y)for(b=0;b<c;b++)if(K[a[b].nodeName]){if("sendEvent"in a[b]){y--;try{a[b].sendEvent("play",!1)}catch(e){}}if(J)try{for(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(f){}}return I.apply(this,arguments)}}n||(["poster","src"].forEach(function(a){g.defineNodeNamesProperty("src"==
80
+ a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){g.defineNodeNamesBooleanProperty(["audio","video"],a)}),g.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},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});
81
+ jQuery.webshims.register("track",function(a,g,h,m){var k=g.mediaelement;(new Date).getTime();var t={subtitles:1,captions:1,descriptions:1},i=a("<track />"),r=Modernizr.ES5&&Modernizr.objectAccessor,n=function(a){var b={};a.addEventListener=function(a,c){b[a]&&g.error("always use $.on to the shimed event: "+a+" already bound fn was: "+b[a]+" your fn was: "+c);b[a]=c};a.removeEventListener=function(a,c){b[a]&&b[a]!=c&&g.error("always use $.on/$.off to the shimed event: "+a+" already bound fn was: "+
82
+ b[a]+" your fn was: "+c);b[a]&&delete b[a]};return a},p={getCueById:function(a){for(var b=null,d=0,c=this.length;d<c;d++)if(this[d].id===a){b=this[d];break}return b}},y={"0":"disabled",1:"hidden",2:"showing"},w={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 b=this.cues[this.cues.length-1];b&&b.startTime>a.startTime&&
83
+ g.error("cue startTime higher than previous cue's startTime")}else this.cues=k.createCueList();a.track&&a.track.removeCue&&a.track.removeCue(a);a.track=this;this.cues.push(a)},removeCue:function(a){var b=this.cues||[],d=0,c=b.length;if(a.track!=this)g.error("cue not part of track");else{for(;d<c;d++)if(b[d]===a){b.splice(d,1);a.track=null;break}a.track&&g.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},u=["kind",
84
+ "label","srclang"],x={srclang:"language"},v=Function.prototype.call.bind(Object.prototype.hasOwnProperty),s=function(e,b){var d=[],c=[],f=[],j,h;e||(e=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!b)e.blockTrackListUpdate=!0,b=a.prop(this,"textTracks"),e.blockTrackListUpdate=!1;clearTimeout(e.updateTrackListTimer);a("track",this).each(function(){var d=a.prop(this,"track");f.push(d);-1==b.indexOf(d)&&c.push(d)});if(e.scriptedTextTracks)for(j=0,h=e.scriptedTextTracks.length;j<
85
+ h;j++)f.push(e.scriptedTextTracks[j]),-1==b.indexOf(e.scriptedTextTracks[j])&&c.push(e.scriptedTextTracks[j]);for(j=0,h=b.length;j<h;j++)-1==f.indexOf(b[j])&&d.push(b[j]);if(d.length||c.length){b.splice(0);for(j=0,h=f.length;j<h;j++)b.push(f[j]);for(j=0,h=d.length;j<h;j++)a([b]).triggerHandler(a.Event({type:"removetrack",track:d[j]}));for(j=0,h=c.length;j<h;j++)a([b]).triggerHandler(a.Event({type:"addtrack",track:c[j]}));(e.scriptedTextTracks||d.length)&&a(this).triggerHandler("updatetrackdisplay")}},
86
+ q=function(e,b){b||(b=g.data(e,"trackData"));if(b&&!b.isTriggering)b.isTriggering=!0,setTimeout(function(){(b.track||{}).readyState?a(e).closest("audio, video").triggerHandler("updatetrackdisplay"):a(e).triggerHandler("checktrackmode");b.isTriggering=!1},1)},l=a("<div />")[0];h.TextTrackCue=function(a,b,d){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=b;this.text=d;this.id="";this.pauseOnExit=!1;n(this)};h.TextTrackCue.prototype=
87
+ {onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",b="",d=m.createDocumentFragment(),c;if(!v(this,"getCueAsHTML"))c=this.getCueAsHTML=function(){var c,g;if(a!=this.text){a=this.text;b=k.parseCueTextToHTML(a);l.innerHTML=b;for(c=0,g=l.childNodes.length;c<g;c++)d.appendChild(l.childNodes[c].cloneNode(!0))}return d.cloneNode(!0)};return c?c.apply(this,arguments):d.cloneNode(!0)},track:null,id:""};k.createCueList=function(){return a.extend([],p)};k.parseCueTextToHTML=function(){var a=
88
+ /(<\/?[^>]+>)/ig,b=/^(?:c|v|ruby|rt|b|i|u)/,d=/\<\s*\//,c=function(a,b,c,e){d.test(e)?a="</"+a+">":(c.splice(0,1),a="<"+a+" "+b+'="'+c.join(" ").replace(/\"/g,"&#34;")+'">');return a},f=function(a){var d=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);d[0]&&(d[0]=d[0].toLowerCase(),b.test(d[0])?"c"==d[0]?a=c("span","class",d,a):"v"==d[0]&&(a=c("q","title",d,a)):a="");return a};return function(b){return b.replace(a,f)}}();k.loadTextTrack=function(e,b,d,c){var f=d.track,h=function(){var c=a.prop(b,"src"),
89
+ d,i;if("disabled"!=f.mode&&c&&a.attr(b,"src")&&(a(e).unbind("play playing timeupdate updatetrackdisplay",h),a(b).unbind("checktrackmode",h),!f.readyState)){d=function(){f.readyState=3;f.cues=null;f.activeCues=f.shimActiveCues=f._shimActiveCues=null;a(b).triggerHandler("error")};f.readyState=1;try{f.cues=k.createCueList(),f.activeCues=f.shimActiveCues=f._shimActiveCues=k.createCueList(),i=a.ajax({dataType:"text",url:c,success:function(c){"text/vtt"!=i.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");
90
+ k.parseCaptions(c,f,function(c){c&&"length"in c?(f.readyState=2,a(b).triggerHandler("load"),a(e).triggerHandler("updatetrackdisplay")):d()})},error:d})}catch(l){d(),g.warn(l)}}};f.readyState=0;f.shimActiveCues=null;f._shimActiveCues=null;f.activeCues=null;f.cues=null;a(e).unbind("play playing timeupdate updatetrackdisplay",h);a(b).unbind("checktrackmode",h);a(e).on("play playing timeupdate updatetrackdisplay",h);a(b).on("checktrackmode",h);if(c)f.mode=t[f.kind]?"showing":"hidden",h()};k.createTextTrack=
91
+ function(e,b){var d,c;if(b.nodeName&&(c=g.data(b,"trackData")))q(b,c),d=c.track;if(!d)d=n(g.objectCreate(w)),r||u.forEach(function(c){var e=a.prop(b,c);e&&(d[x[c]||c]=e)}),b.nodeName?(r&&u.forEach(function(c){g.defineProperty(d,x[c]||c,{get:function(){return a.prop(b,c)}})}),c=g.data(b,"trackData",{track:d}),k.loadTextTrack(e,b,c,a.prop(b,"default")&&a(b).siblings("track[default]").andSelf()[0]==b)):(r&&u.forEach(function(a){g.defineProperty(d,x[a]||a,{value:b[a],writeable:!1})}),d.cues=k.createCueList(),
92
+ d.activeCues=d._shimActiveCues=d.shimActiveCues=k.createCueList(),d.mode="hidden",d.readyState=2);return d};k.parseCaptionChunk=function(){var a=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,b=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,d=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,c=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(f){var h,i,k,l;if(b.exec(f)||d.exec(f)||c.exec(f))return null;for(f=f.split(/\n/g);!f[0].replace(/\s+/ig,"").length&&0<f.length;)f.shift();
93
+ for(f[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&(k=""+f.shift().replace(/\s*/ig,""));0<f.length;){if(l=a.exec(f[0]))i=l.slice(1),h=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));f=f.slice(0,0).concat(f.slice(1));break}if(!h&&!i)return g.warn("couldn't extract time information: "+[h,i,f.join("\n"),k].join(" ; ")),null;f=f.join("\n");h=new TextTrackCue(h,
94
+ i,f);if(k)h.id=k;return h}}();k.parseCaptions=function(a,b,d){k.createCueList();var c,f,h,i,l;a?(h=/^WEBVTT(\s*FILE)?/ig,f=function(m,n){for(;m<n;m++){c=a[m];if(h.test(c))l=!0;else if(c.replace(/\s*/ig,"").length){if(!l){g.error("please use WebVTT format. This is the standard");d(null);break}(c=k.parseCaptionChunk(c,m))&&b.addCue(c)}if(i<(new Date).getTime()-30){m++;setTimeout(function(){i=(new Date).getTime();f(m,n)},90);break}}m>=n&&(l||g.error("please use WebVTT format. This is the standard"),
95
+ d(b.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){i=(new Date).getTime();a=a.split(/\n\n+/g);f(0,a.length)},9)},9)):g.error("Required parameter captionData not supplied.")};k.createTrackList=function(a,b){b=b||g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});if(!b.textTracks)b.textTracks=[],g.defineProperties(b.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),n(b.textTracks);return b.textTracks};Modernizr.track||
96
+ (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 b=g.data(this,"trackData");this.setAttribute("data-kind",a);if(b)b.attrKind=a},get:function(){var a=g.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",
97
+ limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});a.each(u,function(e,b){var d=x[b]||b;g.onNodeNamesPropertyModify("track",b,function(){var c=g.data(this,"trackData"),e=this;if(c)"kind"==b&&q(this,c),r||(c.track[d]=a.prop(this,b)),clearTimeout(c.changedTrackPropTimer),c.changedTrackPropTimer=setTimeout(function(){a(e).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(e){if(e){var e=g.data(this,"trackData"),b;e&&(b=a(this).closest("video, audio"),
98
+ b[0]&&k.loadTextTrack(b,this,e))}});g.defineNodeNamesProperties(["track"],{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 k.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",{}),b=
99
+ k.createTrackList(this,a);a.blockTrackListUpdate||s.call(this,a,b);return b},writeable:!1},addTextTrack:{value:function(a,b,d){a=k.createTextTrack(this,{kind:i.prop("kind",a||"").prop("kind"),label:b||"",srclang:d||""});b=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!b.scriptedTextTracks)b.scriptedTextTracks=[];b.scriptedTextTracks.push(a);s.call(this);return a}}},"prop");a(m).on("emptied ended updatetracklist",function(e){if(a(e.target).is("audio, video")){var b=g.data(e.target,
100
+ "mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){s.call(e.target,b)},0)}});g.addReady(function(e,b){var d=b.filter("video, audio, track").closest("audio, video");a("video, audio",e).add(d).each(function(){s.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"),c=this.track,d,e;if(c){d=
101
+ a.prop(this,"kind");e=c.readyState||this.readyState;if(c.mode||e)b.mode=y[c.mode]||c.mode;if("descriptions"!=d)c.mode="string"==typeof c.mode?"disabled":0,this.kind="metadata",a(this).attr({kind:d})}}).on("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(){s.call(a,b)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});