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.
- data/lib/webshims-rails/version.rb +2 -2
- data/vendor/assets/javascripts/webshims/extras/custom-validity.js +261 -261
- data/vendor/assets/javascripts/webshims/extras/modernizr-custom.js +534 -534
- data/vendor/assets/javascripts/webshims/extras/mousepress.js +60 -60
- data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +1 -1
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +24 -24
- data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/README +82 -82
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +35 -34
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +79 -82
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +45 -44
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +43 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +28 -27
- data/vendor/assets/javascripts/webshims/minified/shims/combos/15.js +4 -4
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +57 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +64 -66
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +53 -54
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +64 -66
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +72 -73
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +42 -46
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +52 -50
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +55 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +66 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +80 -82
- data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +60 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +79 -81
- data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +101 -104
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +94 -95
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +26 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +33 -36
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +51 -54
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +27 -28
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +27 -28
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +39 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +65 -68
- data/vendor/assets/javascripts/webshims/minified/shims/details.js +4 -4
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +23 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +19 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +14 -14
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-api.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +18 -19
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +45 -43
- data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-de.txt +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-en.txt +34 -34
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +12 -12
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-jaris.js +23 -0
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-native-fix.js +1 -1
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +26 -30
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-yt.js +3 -3
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +689 -686
- data/vendor/assets/javascripts/webshims/minified/shims/swf/JarisFLVPlayer.swf +0 -0
- data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/shims/track.js +21 -21
- data/vendor/assets/javascripts/webshims/polyfiller.js +1191 -1175
- data/vendor/assets/javascripts/webshims/shims/combos/1.js +1754 -1714
- data/vendor/assets/javascripts/webshims/shims/combos/10.js +3247 -3320
- data/vendor/assets/javascripts/webshims/shims/combos/11.js +1633 -1588
- data/vendor/assets/javascripts/webshims/shims/combos/12.js +1636 -1591
- data/vendor/assets/javascripts/webshims/shims/combos/13.js +1100 -1058
- data/vendor/assets/javascripts/webshims/shims/combos/14.js +476 -476
- data/vendor/assets/javascripts/webshims/shims/combos/15.js +316 -314
- data/vendor/assets/javascripts/webshims/shims/combos/16.js +2094 -2104
- data/vendor/assets/javascripts/webshims/shims/combos/17.js +2258 -2267
- data/vendor/assets/javascripts/webshims/shims/combos/18.js +1380 -1364
- data/vendor/assets/javascripts/webshims/shims/combos/19.js +2239 -2247
- data/vendor/assets/javascripts/webshims/shims/combos/2.js +2339 -2294
- data/vendor/assets/javascripts/webshims/shims/combos/20.js +1493 -1606
- data/vendor/assets/javascripts/webshims/shims/combos/21.js +1733 -1635
- data/vendor/assets/javascripts/webshims/shims/combos/22.js +2295 -2408
- data/vendor/assets/javascripts/webshims/shims/combos/23.js +2269 -2168
- data/vendor/assets/javascripts/webshims/shims/combos/24.js +2775 -2780
- data/vendor/assets/javascripts/webshims/shims/combos/25.js +1505 -1456
- data/vendor/assets/javascripts/webshims/shims/combos/26.js +2111 -2115
- data/vendor/assets/javascripts/webshims/shims/combos/27.js +3264 -3331
- data/vendor/assets/javascripts/webshims/shims/combos/3.js +3020 -2970
- data/vendor/assets/javascripts/webshims/shims/combos/4.js +770 -822
- data/vendor/assets/javascripts/webshims/shims/combos/5.js +1025 -1077
- data/vendor/assets/javascripts/webshims/shims/combos/59.js +1706 -1753
- data/vendor/assets/javascripts/webshims/shims/combos/6.js +444 -433
- data/vendor/assets/javascripts/webshims/shims/combos/7.js +699 -688
- data/vendor/assets/javascripts/webshims/shims/combos/8.js +1488 -1445
- data/vendor/assets/javascripts/webshims/shims/combos/9.js +2445 -2518
- data/vendor/assets/javascripts/webshims/shims/details.js +148 -146
- data/vendor/assets/javascripts/webshims/shims/dom-extend.js +952 -912
- data/vendor/assets/javascripts/webshims/shims/es5.js +802 -802
- data/vendor/assets/javascripts/webshims/shims/excanvas.js +924 -924
- data/vendor/assets/javascripts/webshims/shims/form-core.js +606 -659
- data/vendor/assets/javascripts/webshims/shims/form-datalist.js +681 -676
- data/vendor/assets/javascripts/webshims/shims/form-message.js +164 -163
- data/vendor/assets/javascripts/webshims/shims/form-native-extend.js +255 -255
- data/vendor/assets/javascripts/webshims/shims/form-number-date-api.js +383 -383
- data/vendor/assets/javascripts/webshims/shims/form-number-date-ui.js +61 -50
- data/vendor/assets/javascripts/webshims/shims/form-shim-extend.js +1569 -1472
- data/vendor/assets/javascripts/webshims/shims/geolocation.js +168 -168
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ar.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ch-ZN.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-de.txt +33 -33
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-el.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-en.txt +34 -34
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-es.js +31 -31
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-fr.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-he.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-hi.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-hu.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-it.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ja.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-nl.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-pt-PT.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-ru.js +31 -31
- data/vendor/assets/javascripts/webshims/shims/i18n/errormessages-sv.js +32 -32
- data/vendor/assets/javascripts/webshims/shims/json-storage.js +308 -308
- data/vendor/assets/javascripts/webshims/shims/mediaelement-core.js +536 -533
- data/vendor/assets/javascripts/webshims/shims/mediaelement-jaris.js +861 -0
- data/vendor/assets/javascripts/webshims/shims/mediaelement-native-fix.js +98 -98
- data/vendor/assets/javascripts/webshims/shims/mediaelement-swf.js +957 -1073
- data/vendor/assets/javascripts/webshims/shims/mediaelement-yt.js +543 -543
- data/vendor/assets/javascripts/webshims/shims/styles/shim.css +689 -686
- data/vendor/assets/javascripts/webshims/shims/swf/JarisFLVPlayer.swf +0 -0
- data/vendor/assets/javascripts/webshims/shims/track-ui.js +9 -8
- data/vendor/assets/javascripts/webshims/shims/track.js +17 -11
- metadata +6 -6
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +0 -7
- data/vendor/assets/javascripts/webshims/shims/FlashCanvas/README +0 -62
- data/vendor/assets/javascripts/webshims/shims/FlashCanvasPro/README +0 -82
- 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,
|
2
|
-
!0)),null==
|
3
|
-
"shadowData");return
|
4
|
-
("attr"==a&&!0===
|
5
|
-
|
6
|
-
|
7
|
-
c[0]&&d.nodeName(c[0],a)&&(
|
8
|
-
a,b)})},createElement:function(b,a){
|
9
|
-
return
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
a.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
a.
|
20
|
-
|
21
|
-
(
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"
|
30
|
-
-
|
31
|
-
|
32
|
-
c.
|
33
|
-
|
34
|
-
|
35
|
-
(
|
36
|
-
"
|
37
|
-
a
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
b)
|
48
|
-
b
|
49
|
-
|
50
|
-
f.
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
"
|
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,""")+'">');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(
|
2
|
-
!0)),null==
|
3
|
-
"shadowData");return
|
4
|
-
("attr"==
|
5
|
-
p[
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
return
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
a.
|
20
|
-
|
21
|
-
(
|
22
|
-
|
23
|
-
(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"
|
30
|
-
-
|
31
|
-
|
32
|
-
|
33
|
-
b(a).
|
34
|
-
b.
|
35
|
-
(
|
36
|
-
"
|
37
|
-
|
38
|
-
|
39
|
-
(
|
40
|
-
|
41
|
-
g.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
"
|
49
|
-
|
50
|
-
|
51
|
-
"
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
d
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
{
|
67
|
-
"
|
68
|
-
|
69
|
-
f)
|
70
|
-
|
71
|
-
(i=
|
72
|
-
|
73
|
-
(
|
74
|
-
|
75
|
-
|
76
|
-
[
|
77
|
-
|
78
|
-
|
79
|
-
|
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,""")+'">');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,
|
2
|
-
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==
|
3
|
-
function(a,
|
4
|
-
for(var c=0;c<d;c++)if(c in
|
5
|
-
|
6
|
-
|
7
|
-
!0,r="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=r.length,
|
8
|
-
a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(
|
9
|
-
if(!String.prototype.trim||a.trim()){var 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},
|
11
|
-
(function(a,
|
12
|
-
if(!
|
13
|
-
|
14
|
-
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var
|
15
|
-
n;if(
|
16
|
-
jQuery.webshims.register("dom-extend",function(a,h,
|
17
|
-
!0)),null==
|
18
|
-
"shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){r[d]=a[d];a[d]=function(c,
|
19
|
-
("attr"==d&&!0===
|
20
|
-
r[d](this,
|
21
|
-
c=Object.prototype.hasOwnProperty;return function(
|
22
|
-
|
23
|
-
c,d)})},createElement:function(a,d){
|
24
|
-
return
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
(
|
37
|
-
|
38
|
-
(
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
"
|
45
|
-
-
|
46
|
-
|
47
|
-
b.
|
48
|
-
|
49
|
-
|
50
|
-
(
|
51
|
-
"
|
52
|
-
|
53
|
-
a.
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
"
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
a
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
a
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
(
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
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,""")+'">');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")});
|