Permalink
Browse files

webshims 1.9.0 final

  • Loading branch information...
1 parent 08f8c29 commit 1dddb41bac2e038efc4a7fbe16d9dcc76b61945f @aFarkas committed Sep 4, 2012
Showing with 808 additions and 953 deletions.
  1. +8 −2 demos/demos/mediaelement.html
  2. +8 −8 demos/index.html
  3. +16 −5 demos/js-webshim/dev/extras/modernizr-custom.js
  4. +3 −1 demos/js-webshim/dev/polyfiller.js
  5. +1 −12 demos/js-webshim/dev/shims/combos/10.js
  6. +1 −12 demos/js-webshim/dev/shims/combos/12.js
  7. +1 −12 demos/js-webshim/dev/shims/combos/16.js
  8. +1 −12 demos/js-webshim/dev/shims/combos/17.js
  9. +1 −12 demos/js-webshim/dev/shims/combos/20.js
  10. +1 −12 demos/js-webshim/dev/shims/combos/22.js
  11. +1 −12 demos/js-webshim/dev/shims/combos/23.js
  12. +1 −12 demos/js-webshim/dev/shims/combos/24.js
  13. +1 −12 demos/js-webshim/dev/shims/combos/8.js
  14. +1 −12 demos/js-webshim/dev/shims/combos/9.js
  15. +1 −12 demos/js-webshim/dev/shims/mediaelement-core.js
  16. +25 −4 demos/js-webshim/dev/shims/track-ui.js
  17. +11 −3 demos/js-webshim/dev/shims/track.js
  18. +4 −4 demos/js-webshim/minified/extras/modernizr-custom.js
  19. +28 −28 demos/js-webshim/minified/polyfiller.js
  20. +79 −80 demos/js-webshim/minified/shims/combos/10.js
  21. +32 −33 demos/js-webshim/minified/shims/combos/12.js
  22. +49 −50 demos/js-webshim/minified/shims/combos/16.js
  23. +62 −63 demos/js-webshim/minified/shims/combos/17.js
  24. +40 −41 demos/js-webshim/minified/shims/combos/20.js
  25. +56 −57 demos/js-webshim/minified/shims/combos/22.js
  26. +67 −68 demos/js-webshim/minified/shims/combos/23.js
  27. +79 −80 demos/js-webshim/minified/shims/combos/24.js
  28. +27 −28 demos/js-webshim/minified/shims/combos/8.js
  29. +67 −68 demos/js-webshim/minified/shims/combos/9.js
  30. +16 −17 demos/js-webshim/minified/shims/mediaelement-core.js
  31. +9 −8 demos/js-webshim/minified/shims/track-ui.js
  32. +18 −18 demos/js-webshim/minified/shims/track.js
  33. +5 −2 readme.md
  34. +16 −5 src/extras/modernizr-custom.js
  35. +3 −1 src/polyfiller.js
  36. +1 −12 src/shims/combos/10.js
  37. +1 −12 src/shims/combos/12.js
  38. +1 −12 src/shims/combos/16.js
  39. +1 −12 src/shims/combos/17.js
  40. +1 −12 src/shims/combos/20.js
  41. +1 −12 src/shims/combos/22.js
  42. +1 −12 src/shims/combos/23.js
  43. +1 −12 src/shims/combos/24.js
  44. +1 −12 src/shims/combos/8.js
  45. +1 −12 src/shims/combos/9.js
  46. +1 −12 src/shims/mediaelement-core.js
  47. +25 −4 src/shims/track-ui.js
  48. +11 −3 src/shims/track.js
  49. +2 −2 tests/iframe.html
  50. +20 −6 tests/unit/interactive-validation.js
View
10 demos/demos/mediaelement.html
@@ -19,6 +19,12 @@
<script src="../js-webshim/minified/polyfiller.js"></script>
+ <!--
+ <script src="../../src/polyfiller.js"></script>
+ <script>
+ $.webshims.debug = 'noCombo';
+ </script>
+ -->
<script>
$.webshims.setOptions({
waitReady: true
@@ -285,7 +291,7 @@
"my-poster.jpg"
);
</code> <h2>Track Element support</h2>
- <p>The <code>track</code> feature implements the track element width a WebVTT parser and the including the corresponding DOM- and JS-APIs.</p>
+ <p>The <code>track</code> feature implements the track element width a WebVTT parser and the corresponding DOM- and JS-APIs.</p>
<h3>Implemented/fixed elements, attributes, properties, methods, events</h3>
<ul>
<li><strong>elements:</strong> <a href="http://www.w3.org/TR/html5/the-track-element.html">track</a></li>
@@ -296,7 +302,7 @@
<li><strong>corresponding interfaces</strong>: <a href="http://dev.w3.org/html5/spec/media-elements.html#texttracklist">TextTrackList</a>, <a href="http://dev.w3.org/html5/spec/media-elements.html#texttrack">TextTrack<sup>1</sup></a>, <a href="http://dev.w3.org/html5/spec/media-elements.html#texttrackcuelist">TextTrackCueList</a>, <a href="http://dev.w3.org/html5/spec/media-elements.html#texttrackcue">TextTrackCue</a> including the <a href="http://dev.w3.org/html5/spec/media-elements.html#dom-texttrackcue">TrextTrackCue constructor</a></li>
</ul>
<ul>
- <li><small>1.Use shimActiveCues instead of activeCues property.</small></li>
+ <li><small>1.Use shimActiveCues instead of activeCues property. In case override is set to true or all track supporting browsers (currently only Chrome 23) won't load the flash- or the youtube iframe fallback for video/audio playback, activeCues can be also used savely.</small></li>
</ul>
<h3>Options for the <code>track</code> feature</h3>
View
16 demos/index.html
@@ -161,7 +161,7 @@ <h3 id="quick-install" class="button">Easy &amp; simple Quick install</h3>
});
&lt;/script&gt;
</code>
- <p><small>Note: Webshims do not need all Modernizr tests to work. Here you find <a href="http://modernizr.com/download/#-canvas-audio-video-input-inputtypes-localstorage-sessionstorage-geolocation-shiv-cssclasses-addtest-prefixed-testprop-testallprops-prefixes-domprefixes-load">all Modernizr detections, which are used by webshims</a>.</small></p>
+ <p><small>Note: Webshims do not need all Modernizr tests to work. Here you find <a href="http://modernizr.com/download/#-canvas-audio-video-input-inputtypes-localstorage-sessionstorage-geolocation-shiv-cssclasses-addtest-prefixed-testprop-testallprops-prefixes-domprefixes-elem_track-load">all Modernizr detections, which are used by webshims</a>.</small></p>
</div>
<h3 id="embed-polyfill" class="button">Embedding and configuring the script</h3>
@@ -211,7 +211,7 @@ <h3 id="embed-polyfill" class="button">Embedding and configuring the script</h3>
</code>
<p>If you dont want any log messsages, simply set <code>$.webshims.debug</code> explicitly to <code>false</code>.</p>
<h3>Custom Modernizr build</h3>
- <p>Webshims lib does not need every Modernizr test and supports creating a <a href="http://modernizr.com/download/#-canvas-audio-video-input-inputtypes-localstorage-sessionstorage-geolocation-shiv-cssclasses-addtest-prefixed-testprop-testallprops-prefixes-domprefixes-load">custom Modernizr build</a>. (Webshims lib uses <a href="http://requirejs.org/">requireJS</a> as a script loader, if this is included, if not it uses Modernizr.load/yepnope.) </p>
+ <p>Webshims lib does not need every Modernizr test and supports creating a <a href="http://modernizr.com/download/#-canvas-audio-video-input-inputtypes-localstorage-sessionstorage-geolocation-shiv-cssclasses-addtest-prefixed-testprop-testallprops-prefixes-domprefixes-elem_track-load">custom Modernizr build</a>. (Webshims lib uses <a href="http://requirejs.org/">requireJS</a> as a script loader, if this is included, if not it uses Modernizr.load/yepnope.) </p>
<h3>changing Options path to shims folder</h3>
@@ -402,20 +402,20 @@ <h3 id="polyfill-foucs" class="button">Loading, Performance, FOUCs</h3>
<h3>Customize Webshims lib's polyfiller.js</h3>
<p>While webshims lib comes with a lot of files, the polyfiller.js file is the only file, which has to be embeded directly in the page. The following tool allows you to customize and minimize the polyfiller.js file. (Simply overwrite the polyfiller.js with your customized version. All other files from the download package should stay.):</p>
<form action="http://marijnhaverbeke.nl/uglifyjs" method="post" data-polyfillpath="js-webshim/dev/polyfiller.js">
- <fieldset class="config">
- <label><input type="checkbox" checked disabled /> es5</label>
+ <fieldset class="config">
+ <label><input type="checkbox" checked disabled /> es5</label>
<label><input type="checkbox" checked id="canvas" /> canvas</label>
<label><input type="checkbox" checked id="forms" /> forms/forms-ext</label>
<label><input type="checkbox" checked id="mediaelement" /> mediaelement</label>
<label><input type="checkbox" checked id="localstorage" /> json-storage</label>
<label><input type="checkbox" checked id="geolocation" data-dependent="localstorage" /> geolocation</label>
<label><input type="checkbox" checked id="details" /> details</label>
- </fieldset>
-
- <textarea name="js_code" style="display: none;"></textarea>
+ </fieldset>
+
+ <textarea name="js_code" style="display: none;"></textarea>
<input type="hidden" name="download" value="polyfiller.js" />
<input type="submit" value="download custom polyfiller" />
- </form>
+ </form>
<h3>Loading webshims async</h3>
<p>If webshims lib is loaded async, there are some configurations which have to be changed manually:</p>
<ul>
View
21 demos/js-webshim/dev/extras/modernizr-custom.js
@@ -1,13 +1,13 @@
-/* Modernizr 2.6.1 (Custom Build) | MIT & BSD
- * Build: http://modernizr.com/download/#-canvas-audio-video-input-inputtypes-localstorage-sessionstorage-geolocation-shiv-cssclasses-addtest-prefixed-testprop-testallprops-prefixes-domprefixes-load
+/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
+ * Build: http://modernizr.com/download/#-canvas-audio-video-input-inputtypes-localstorage-sessionstorage-geolocation-shiv-cssclasses-addtest-prefixed-testprop-testallprops-prefixes-domprefixes-elem_track-load
*/
;
window.Modernizr = (function( window, document, undefined ) {
- var version = '2.6.1',
+ var version = '2.6.2',
Modernizr = {},
@@ -306,7 +306,7 @@ window.Modernizr = (function( window, document, undefined ) {
test = typeof test == 'function' ? test() : test;
- if (enableClasses) {
+ if (typeof enableClasses !== "undefined" && enableClasses) {
docElement.className += ' ' + (test ? '' : 'no-') + feature;
}
Modernizr[feature] = test;
@@ -325,7 +325,7 @@ window.Modernizr = (function( window, document, undefined ) {
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
- var saveClones = /^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i;
+ var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
var supportsHtml5Styles;
@@ -521,4 +521,15 @@ window.Modernizr = (function( window, document, undefined ) {
/*yepnope1.5.4|WTFPL*/
(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}})(this,document);
Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0));};
+// Track element + Timed Text Track API
+// http://www.w3.org/TR/html5/video.html#the-track-element
+// http://www.w3.org/TR/html5/media-elements.html#text-track-api
+//
+// While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad)
+// By Addy Osmani
+Modernizr.addTest({
+ texttrackapi: (typeof (document.createElement('video').addTextTrack) === 'function'),
+ // a more strict test for track including UI support: document.createElement('track').kind === 'subtitles'
+ track: ('kind' in document.createElement('track'))
+});
;
View
4 demos/js-webshim/dev/polyfiller.js
@@ -29,7 +29,7 @@
}
var webshims = {
- version: '1.9.0RC3',
+ version: '1.9.0',
cfg: {
useImportantStyles: true,
//removeFOUC: false,
@@ -1150,6 +1150,8 @@
if(!$.fn.on){
webshims.error("webshims 1.9.0 needs jQuery 1.7+. Please use a newer version of jQuery");
+ } else if($.fn.jquery == '1.8.0'){
+ webshims.error("webshims 1.9+ needs jQuery 1.7.1+ or 1.8.1+. We do not support jQ 1.8.0");
}
jScripts
View
13 demos/js-webshim/dev/shims/combos/10.js
@@ -1785,18 +1785,7 @@ jQuery.webshims.register('dom-extend', function($, webshims, window, document, u
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/12.js
@@ -983,18 +983,7 @@ jQuery.webshims.register('dom-extend', function($, webshims, window, document, u
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/16.js
@@ -983,18 +983,7 @@ jQuery.webshims.register('dom-extend', function($, webshims, window, document, u
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/17.js
@@ -983,18 +983,7 @@ jQuery.webshims.register('dom-extend', function($, webshims, window, document, u
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/20.js
@@ -75,18 +75,7 @@
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/22.js
@@ -877,18 +877,7 @@ if((!advancedObjectProperties || !Object.create || !Object.defineProperties || !
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/23.js
@@ -75,18 +75,7 @@
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/24.js
@@ -2321,18 +2321,7 @@ jQuery.webshims.register('form-core', function($, webshims, window, document, un
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/8.js
@@ -983,18 +983,7 @@ jQuery.webshims.register('dom-extend', function($, webshims, window, document, u
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/combos/9.js
@@ -983,18 +983,7 @@ jQuery.webshims.register('dom-extend', function($, webshims, window, document, u
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
13 demos/js-webshim/dev/shims/mediaelement-core.js
@@ -75,18 +75,7 @@
try {
new TextTrackCue(2, 3, '');
} catch(e){
- try {
- new TextTrackCue('', 2, 3, '', '', false);
- var oldTextTrack = TextTrackCue;
- window.TextTrackCue = function(startTime, endTime, text, a, b, c){
- if(arguments.length != 3){
- webshims.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");
- }
- return (arguments.length > 4) ? new oldTextTrack(startTime, endTime, text, a, b || '', c || false) : new oldTextTrack('', startTime, endTime, text, '', false);
- };
- } catch(e){
- bugs.track = true;
- }
+ bugs.track = true;
}
}
View
29 demos/js-webshim/dev/shims/track-ui.js
@@ -3,6 +3,7 @@ jQuery.webshims.register('track-ui', function($, webshims, window, document, und
var enterE = {type: 'enter'};
var exitE = {type: 'exit'};
var showTracks = {subtitles: 1, captions: 1};
+ var mediaelement = webshims.mediaelement;
var usesNativeTrack = function(){
return !options.override && Modernizr.track;
};
@@ -102,15 +103,35 @@ jQuery.webshims.register('track-ui', function($, webshims, window, document, und
forceupdatetrackdisplay: true
});
- webshims.mediaelement.trackDisplay = trackDisplay;
+ mediaelement.trackDisplay = trackDisplay;
- webshims.mediaelement.getActiveCue = function(track, media, time, baseData){
+ if(!mediaelement.createCueList){
+
+ var cueListProto = {
+ getCueById: function(id){
+ var cue = null;
+ for(var i = 0, len = this.length; i < len; i++){
+ if(this[i].id === id){
+ cue = this[i];
+ break;
+ }
+ }
+ return cue;
+ }
+ };
+
+ mediaelement.createCueList = function(){
+ return $.extend([], cueListProto);
+ };
+ }
+
+ mediaelement.getActiveCue = function(track, media, time, baseData){
if(!track._lastFoundCue){
track._lastFoundCue = {index: 0, time: 0};
}
if(Modernizr.track && !options.override && !track._shimActiveCues){
- track._shimActiveCues = [];
+ track._shimActiveCues = mediaelement.createCueList();
}
var i = 0;
@@ -233,7 +254,7 @@ jQuery.webshims.register('track-ui', function($, webshims, window, document, und
for(var i = 0, len = trackList.length; i < len; i++){
track = trackList[i];
if(track.mode != 'disabled' && track.cues && track.cues.length){
- webshims.mediaelement.getActiveCue(track, elem, time, baseData);
+ mediaelement.getActiveCue(track, elem, time, baseData);
}
}
View
14 demos/js-webshim/dev/shims/track.js
@@ -28,7 +28,16 @@ jQuery.webshims.register('track', function($, webshims, window, document, undefi
var cueListProto = {
- getCueById: notImplemented
+ getCueById: function(id){
+ var cue = null;
+ for(var i = 0, len = this.length; i < len; i++){
+ if(this[i].id === id){
+ cue = this[i];
+ break;
+ }
+ }
+ return cue;
+ }
};
var textTrackProto = {
shimActiveCues: null,
@@ -46,7 +55,7 @@ jQuery.webshims.register('track', function($, webshims, window, document, undefi
},
addCue: function(cue){
if(!this.cues){
- this.cues =mediaelement.createCueList();
+ this.cues = mediaelement.createCueList();
} else {
var lastCue = this.cues[this.cues.length-1];
if(lastCue && lastCue.startTime > cue.startTime){
@@ -203,7 +212,6 @@ jQuery.webshims.register('track', function($, webshims, window, document, undefi
tag[0] = tag[0].toLowerCase();
if(allowedTags.test(tag[0])){
if(tag[0] == 'c'){
- tag.splice(0, 1);
html = addToTemplate('span', 'class', tag, html);
} else if(tag[0] == 'v'){
html = addToTemplate('q', 'title', tag, html);
View
8 demos/js-webshim/minified/extras/modernizr-custom.js
@@ -7,14 +7,14 @@ d?d:m}return a.apply(b,e.concat(G.call(arguments)))};return f};n.canvas=function
!0}catch(b){return!1}};n.sessionstorage=function(){try{return sessionStorage.setItem("modernizr","modernizr"),sessionStorage.removeItem("modernizr"),!0}catch(b){return!1}};for(var I in n)J(n,I)&&(B=I.toLowerCase(),h[B]=n[I](),F.push((h[B]?"":"no-")+B));h.input||E();h.addTest=function(b,a){if("object"==typeof b)for(var e in b)J(b,e)&&h.addTest(e,b[e]);else{b=b.toLowerCase();if(h[b]!==C)return h;a="function"==typeof a?a():a;p.className+=" "+(a?"":"no-")+b;h[b]=a}return h};K.cssText="";n=l=null;(function(b,
a){function e(){var a=v.elements;return"string"==typeof a?a.split(" "):a}function f(a){var c=k[a[j]];c||(c={},q++,a[j]=q,k[q]=c);return c}function m(b,c,d){c||(c=a);if(w)return c.createElement(b);d||(d=f(c));c=d.cache[b]?d.cache[b].cloneNode():l.test(b)?(d.cache[b]=d.createElem(b)).cloneNode():d.createElem(b);return c.canHaveChildren&&!h.test(b)?d.frag.appendChild(c):c}function d(a,c){if(!c.cache)c.cache={},c.createElem=a.createElement,c.createFrag=a.createDocumentFragment,c.frag=c.createFrag();a.createElement=
function(b){return!v.shivMethods?c.createElem(b):m(b,a,c)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+e().join().replace(/\w+/g,function(a){c.createElem(a);c.frag.createElement(a);return'c("'+a+'")'})+");return n}")(v,c.frag)}function i(b){b||(b=a);var c=f(b);if(v.shivCSS&&!o&&!c.hasCSS){var k,i=b;k=i.createElement("p");i=i.getElementsByTagName("head")[0]||i.documentElement;k.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
-k=i.insertBefore(k.lastChild,i.firstChild);c.hasCSS=!!k}w||d(b,c);return b}var g=b.html5||{},h=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,l=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,o,j="_html5shiv",q=0,k={},w;(function(){try{var b=a.createElement("a");b.innerHTML="<xyz></xyz>";o="hidden"in b;var c;if(!(c=1==b.childNodes.length)){a.createElement("a");
-var d=a.createDocumentFragment();c="undefined"==typeof d.cloneNode||"undefined"==typeof d.createDocumentFragment||"undefined"==typeof d.createElement}w=c}catch(k){w=o=!0}})();var v={elements:g.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==g.shivCSS,supportsUnknownElements:w,shivMethods:!1!==g.shivMethods,type:"default",shivDocument:i,createElement:m,createDocumentFragment:function(b,
-d){b||(b=a);if(w)return b.createDocumentFragment();for(var d=d||f(b),k=d.frag.cloneNode(),i=0,q=e(),g=q.length;i<g;i++)k.createElement(q[i]);return k}};b.html5=v;i(a)})(this,g);h._version="2.6.1";h._prefixes=A;h._domPrefixes=D;h._cssomPrefixes=t;h.testProp=function(b){return y([b])};h.testAllProps=x;h.prefixed=function(b,a,e){return a?x(b,a,e):x(b,"pfx")};p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+F.join(" "));return h}(this,this.document);
+k=i.insertBefore(k.lastChild,i.firstChild);c.hasCSS=!!k}w||d(b,c);return b}var g=b.html5||{},h=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,l=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o,j="_html5shiv",q=0,k={},w;(function(){try{var b=a.createElement("a");b.innerHTML="<xyz></xyz>";o="hidden"in b;var c;if(!(c=1==b.childNodes.length)){a.createElement("a");var d=a.createDocumentFragment();c="undefined"==typeof d.cloneNode||
+"undefined"==typeof d.createDocumentFragment||"undefined"==typeof d.createElement}w=c}catch(k){w=o=!0}})();var v={elements:g.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==g.shivCSS,supportsUnknownElements:w,shivMethods:!1!==g.shivMethods,type:"default",shivDocument:i,createElement:m,createDocumentFragment:function(b,d){b||(b=a);if(w)return b.createDocumentFragment();
+for(var d=d||f(b),k=d.frag.cloneNode(),i=0,q=e(),g=q.length;i<g;i++)k.createElement(q[i]);return k}};b.html5=v;i(a)})(this,g);h._version="2.6.2";h._prefixes=A;h._domPrefixes=D;h._cssomPrefixes=t;h.testProp=function(b){return y([b])};h.testAllProps=x;h.prefixed=function(b,a,e){return a?x(b,a,e):x(b,"pfx")};p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+F.join(" "));return h}(this,this.document);
(function(s,g,C){function y(a){return"[object Function]"==D.call(a)}function x(a){return"string"==typeof a}function E(){}function h(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function p(){var a=z.shift();u=1;a?a.t?A(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),p()):u=0}function n(b,i,e,f,l,o,j){function q(c){if(!w&&h(k.readyState)&&(n.r=w=1,!u&&p(),k.onload=k.onreadystatechange=null,c)){"img"!=b&&A(function(){B.removeChild(k)},50);for(var q in a[i])a[i].hasOwnProperty(q)&&
a[i][q].onload()}}var j=j||m.errorTimeout,k=g.createElement(b),w=0,v=0,n={t:e,s:i,e:l,a:o,x:j};1===a[i]&&(v=1,a[i]=[]);"object"==b?k.data=i:(k.src=i,k.type=b);k.width=k.height="0";k.onerror=k.onload=k.onreadystatechange=function(){q.call(this,v)};z.splice(f,0,n);"img"!=b&&(v||2===a[i]?(B.insertBefore(k,G?null:t),A(q,j)):a[i].push(k))}function K(a,b,e,f,g){return u=0,b=b||"j",x(a)?n("c"==b?J:H,a,b,this.i++,e,f,g):(z.splice(this.i++,0,a),1==z.length&&p()),this}function l(){var a=m;return a.loader={load:K,
i:0},a}var r=g.documentElement,A=s.setTimeout,t=g.getElementsByTagName("script")[0],D={}.toString,z=[],u=0,F="MozAppearance"in r.style,G=F&&!!g.createRange().compareNode,B=G?r:t.parentNode,r=s.opera&&"[object Opera]"==D.call(s.opera),r=!!g.attachEvent&&!r,H=F?"object":r?"script":"img",J=r?"script":H,I=Array.isArray||function(a){return"[object Array]"==D.call(a)},b=[],a={},e={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},f,m;m=function(d){function i(a){var a=a.split("!"),k=b.length,d=
a.pop(),f=a.length,d={url:d,origUrl:d,prefixes:a},i,c,g;for(c=0;c<f;c++)g=a[c].split("="),(i=e[g.shift()])&&(d=i(d,g));for(c=0;c<k;c++)d=b[c](d);return d}function f(b,d,g,e,h){var c=i(b),j=c.autoCallback;c.url.split(".").pop().split("?").shift();c.bypass||(d&&(d=y(d)?d:d[b]||d[e]||d[b.split("/").pop().split("?")[0]]),c.instead?c.instead(b,d,g,e,h):(a[c.url]?c.noexec=!0:a[c.url]=1,g.load(c.url,c.forceCSS||!c.forceJS&&"css"==c.url.split(".").pop().split("?").shift()?"c":C,c.noexec,c.attrs,c.timeout),
(y(d)||y(j))&&g.load(function(){l();d&&d(c.origUrl,h,e);j&&j(c.origUrl,h,e);a[c.url]=2})))}function g(a,b){function d(a,i){if(a)if(x(a))i||(c=function(){var a=[].slice.call(arguments);h.apply(this,a);j()}),f(a,c,b,0,e);else{if(Object(a)===a)for(l in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(l)&&(!i&&!--m&&(y(c)?c=function(){var a=[].slice.call(arguments);h.apply(this,a);j()}:c[l]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,
b);j()}}(h[l])),f(a[l],c,b,l,e))}else!i&&j()}var e=!!a.test,i=a.load||a.both,c=a.callback||E,h=c,j=a.complete||E,m,l;d(e?a.yep:a.nope,!!i);i&&d(i)}var h,o,j=this.yepnope.loader;if(x(d))f(d,0,j,0);else if(I(d))for(h=0;h<d.length;h++)o=d[h],x(o)?f(o,0,j,0):I(o)?m(o):Object(o)===o&&g(o,j);else Object(d)===d&&g(d,j)};m.addPrefix=function(a,b){e[a]=b};m.addFilter=function(a){b.push(a)};m.errorTimeout=1E4;null==g.readyState&&g.addEventListener&&(g.readyState="loading",g.addEventListener("DOMContentLoaded",
f=function(){g.removeEventListener("DOMContentLoaded",f,0);g.readyState="complete"},0));s.yepnope=l();s.yepnope.executeStack=p;s.yepnope.injectJs=function(a,b,e,f,l,o){var j=g.createElement("script"),n,k,f=f||m.errorTimeout;j.src=a;for(k in e)j.setAttribute(k,e[k]);b=o?p:b||E;j.onreadystatechange=j.onload=function(){!n&&h(j.readyState)&&(n=1,b(),j.onload=j.onreadystatechange=null)};A(function(){n||(n=1,b(1))},f);l?j.onload():t.parentNode.insertBefore(j,t)};s.yepnope.injectCss=function(a,b,e,f,h,l){var f=
-g.createElement("link"),j,b=l?p:b||E;f.href=a;f.rel="stylesheet";f.type="text/css";for(j in e)f.setAttribute(j,e[j]);h||(t.parentNode.insertBefore(f,t),A(b,0))}})(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
+g.createElement("link"),j,b=l?p:b||E;f.href=a;f.rel="stylesheet";f.type="text/css";for(j in e)f.setAttribute(j,e[j]);h||(t.parentNode.insertBefore(f,t),A(b,0))}})(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};Modernizr.addTest({texttrackapi:"function"===typeof document.createElement("video").addTextTrack,track:"kind"in document.createElement("track")});
View
56 demos/js-webshim/minified/polyfiller.js
@@ -1,30 +1,30 @@
(function(b){if(window.jQuery)b(jQuery),b=jQuery.noop;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("polyfiller",["jquery"],b)})(function(b){var D=b(document.scripts||"script"),o=b.event.special,E=b([]),f=window.Modernizr,r=window.asyncWebshims,v=f.addTest,s=parseFloat(b.browser.version,10),p=window.Object,F=window.html5||{};f.genericDOM=!!b("<video><div></div></video>")[0].innerHTML;f.advancedObjectProperties=f.objectAccessor=f.ES5=!!("create"in p&&"seal"in p);if(b.browser.chrome)b.browser.webkit=
-!0;var d={version:"1.9.0RC3",cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loadStyles:!0,disableShivMethods:!0,basePath:function(){var a=D.filter('[src*="polyfiller.js"]'),a=a[0]||a.end()[a.end().length-1],a=(b.support.hrefNormalized?a.src:a.getAttribute("src",4)).split("?")[0];return a=a.slice(0,a.lastIndexOf("/")+1)+"shims/"}()},bugs:{},browserVersion:s,modules:{},features:{},featureList:[],setOptions:function(a,c){"string"==typeof a&&void 0!==c?k[a]=!b.isPlainObject(c)?c:b.extend(!0,
-k[a]||{},c):"object"==typeof a&&b.extend(!0,k,a)},addPolyfill:function(a,c){var c=c||{},e=c.f||a;if(!n[e])n[e]=[],n[e].delayReady=0,d.featureList.push(e),k[e]={};n[e].push(a);c.options=b.extend(k[e],c.options);w(a,c);c.methodNames&&b.each(c.methodNames,function(a,b){d.addMethodName(b)})},polyfill:function(){var a=function(c){var g=[],h;if(k.disableShivMethods&&f.genericDOM&&"html5Clone"in b.support)F.shivMethods=!1;var i=function(){b("html").removeClass("loading-polyfills long-loading-polyfills");
-b(window).unbind(".lP");clearTimeout(h)};g.push("loading-polyfills");b(window).bind("load.lP error.lP",i);h=setTimeout(function(){b("html").addClass("long-loading-polyfills")},600);k.waitReady&&b.isReady&&d.warn("Call webshims.polyfill before DOM-Ready or set waitReady to false.");q(c,i);k.useImportantStyles&&g.push("polyfill-important");g[0]&&b("html").addClass(g.join(" "));k.loadStyles&&u.loadCSS("styles/shim.css");a=b.noop},c;return function(e){var g=[],e=e||d.featureList;"string"==typeof e&&(e=
-e.split(" "));c||(c=-1!==b.inArray("forms",e),!c&&-1!==b.inArray("forms-ext",e)&&(e.push("forms"),c=!0));k.waitReady&&(b.readyWait++,q(e,function(){b.ready(!0)}));b.each(e,function(a,b){n[b]?(b!==n[b][0]&&q(n[b],function(){l(b,!0)}),g=g.concat(n[b])):(d.warn("could not find webshims-feature (aborted): "+b),l(b,!0))});a(e);x(g)}}(),reTest:function(){var a,c,e=function(e,h){var i=m[h],d=h+"Ready",f;if(i&&!i.loaded&&!(i.test&&b.isFunction(i.test)?i.test([]):i.test)){o[d]&&delete o[d];if((f=n[i.f])&&
-!c)f.delayReady++,q(h,function(){f.delayReady--;l(i.f,f.callReady)});a.push(h)}};return function(d,h){c=h;"string"==typeof d&&(d=d.split(" "));a=[];b.each(d,e);x(a)}}(),isReady:function(a,c){if(n[a]&&0<n[a].delayReady){if(c)n[a].callReady=!0;return!1}a+="Ready";if(c){if(o[a]&&o[a].add)return!0;o[a]=b.extend(o[a]||{},{add:function(b){b.handler.call(this,a)}});b.event.trigger(a)}return!(!o[a]||!o[a].add)||!1},ready:function(a,c,e){"string"==typeof a&&(a=a.split(" "));e||(a=b.map(b.grep(a,function(a){return!l(a)}),
-function(a){return a+"Ready"}));a.length?(e=a.shift(),b(document).one(e,function(){q(a,c,!0)})):c(b,d,window,document)},capturingEvents:function(a,c){document.addEventListener&&("string"==typeof a&&(a=[a]),b.each(a,function(a,g){var h=function(a){a=b.event.fix(a);c&&d.capturingEventPrevented&&d.capturingEventPrevented(a);return b.event.handle.call(this,a)};o[g]=o[g]||{};!o[g].setup&&!o[g].teardown&&b.extend(o[g],{setup:function(){this.addEventListener(g,h,!0)},teardown:function(){this.removeEventListener(g,
-h,!0)}})}))},register:function(a,c){var e=m[a];if(e){if(e.noAutoCallback){var g=function(){c(b,d,window,document,void 0,e.options);l(a,!0)};e.d?q(e.d,g):g()}}else d.warn("can't find module: "+a)},c:{},loader:{addModule:function(a,c){m[a]=c;c.name=c.name||a;if(!c.c)c.c=[];b.each(c.c,function(b,c){d.c[c]||(d.c[c]=[]);d.c[c].push(a)})},loadList:function(){var a=[],c=function(c,e){"string"==typeof e&&(e=[e]);b.merge(a,e);u.loadScript(c,!1,e)},e=function(c,e){if(l(c)||-1!=b.inArray(c,a))return!0;var d=
-m[c];if(d)if(d=d.test&&b.isFunction(d.test)?d.test(e):d.test)l(c,!0);else return!1;return!0},g=function(a,c){if(a.d&&a.d.length){var d=function(a,d){!e(d,c)&&-1==b.inArray(d,c)&&c.push(d)};b.each(a.d,function(a,c){m[c]?d(a,c):n[c]&&(b.each(n[c],d),q(n[c],function(){l(c,!0)}))});if(!a.noAutoCallback)a.noAutoCallback=!0}};return function(h){var i,f=[],j,k,l=function(e,h){k=h;b.each(d.c[h],function(c,d){if(-1==b.inArray(d,f)||-1!=b.inArray(d,a))return k=!1});if(k)return c("combos/"+k,d.c[k]),!1};for(j=
-0;j<h.length;j++)i=m[h[j]],!i||e(i.name,h)?i||d.warn("could not find: "+h[j]):(i.css&&u.loadCSS(i.css),i.loadInit&&i.loadInit(),i.loaded=!0,g(i,h),f.push(i.name));for(j=0,h=f.length;j<h;j++)k=!1,i=f[j],-1==b.inArray(i,a)&&("noCombo"!=d.debug&&b.each(m[i].c,l),k||c(m[i].src||i,i))}}(),makePath:function(a){if(-1!=a.indexOf("//")||0===a.indexOf("/"))return a;-1==a.indexOf(".")&&(a+=".js");k.addCacheBuster&&(a+=k.addCacheBuster);return k.basePath+a},loadCSS:function(){var a,c=[];return function(d){d=
-this.makePath(d);-1==b.inArray(d,c)&&(a=a||b("link, style")[0]||b("script")[0],c.push(d),b('<link rel="stylesheet" />').insertBefore(a).attr({href:d}))}}(),loadScript:function(){var a=[];return function(c,d,g){c=u.makePath(c);if(-1==b.inArray(c,a)){var h=function(){h=null;d&&d();g&&("string"==typeof g&&(g=g.split(" ")),b.each(g,function(a,c){m[c]&&(m[c].afterLoad&&m[c].afterLoad(),l(!m[c].noAutoCallback?c:c+"FileLoaded",!0))}))};a.push(c);window.require?require([c],h):window.sssl?sssl(c,h):window.yepnope?
-yepnope.injectJs(c,h):window.steal&&steal(c).then(h)}}}()}};b.webshims=d;var y=("https:"==location.protocol?"https://":"http://")+"ajax.googleapis.com/ajax/libs/",z=y+"jqueryui/1.8.23/",k=d.cfg,n=d.features,l=d.isReady,q=d.ready,j=d.addPolyfill,m=d.modules,u=d.loader,x=u.loadList,w=u.addModule,s=[],G={warn:1,error:1};d.addMethodName=function(a){var a=a.split(":"),c=a[1];1==a.length&&(c=a[0]);a=a[0];b.fn[a]=function(){return this.callProp(c,arguments)}};b.fn.callProp=function(a,c){var e;c||(c=[]);
-this.each(function(){var g=b.prop(this,a);if(g&&g.apply){if(e=g.apply(this,c),void 0!==e)return!1}else d.warn(a+" is not a method of "+this)});return void 0!==e?e:this};d.activeLang=function(){var a=navigator.browserLanguage||navigator.language||"";q("webshimLocalization",function(){d.activeLang(a)});return function(c){if(c)if("string"==typeof c)a=c;else if("object"==typeof c){var b=arguments,g=this;q("webshimLocalization",function(){d.activeLang.apply(g,b)})}return a}}();b.each(["log","error","warn",
-"info"],function(a,c){d[c]=function(a){if((G[c]&&!1!==d.debug||d.debug)&&window.console&&console.log)return console[console[c]?c:"log"](a)}});(function(){b.isDOMReady=b.isReady;if(b.isDOMReady)l("DOM",!0);else{var a=b.ready;b.ready=function(c){if(!0!==c&&!b.isDOMReady)document.body?(b.isDOMReady=!0,l("DOM",!0),b.ready=a):setTimeout(function(){b.ready(c)},13);return a.apply(this,arguments)};b.ready.promise=a.promise}b(function(){b.isDOMReady=!0;l("DOM",!0);setTimeout(function(){l("WINDOWLOAD",!0)},
-9999)});b(window).load(function(){l("DOM",!0);l("WINDOWLOAD",!0)})})();(function(){var a=[];b.extend(d,{addReady:function(c){var b=function(a,b){d.ready("DOM",function(){c(a,b)})};a.push(b);b(document,E)},triggerDomUpdate:function(c){if(!c||!c.nodeType)c&&c.jquery&&c.each(function(){d.triggerDomUpdate(this)});else{var e=c.nodeType;if(!(1!=e&&9!=e)){var g=c!==document?b(c):E;b.each(a,function(a,b){b(c,g)})}}}});b.fn.htmlPolyfill=function(a){a=b.fn.html.call(this,a);a===this&&b.isDOMReady&&this.each(function(){1==
-this.nodeType&&d.triggerDomUpdate(this)});return a};b.each(["after","before","append","prepend","replaceWith"],function(a,e){b.fn[e+"Polyfill"]=function(a){a=b(a);b.fn[e].call(this,a);b.isDOMReady&&a.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return this}});b.each(["insertAfter","insertBefore","appendTo","prependTo","replaceAll"],function(a,e){b.fn[e.replace(/[A-Z]/,function(a){return"Polyfill"+a})]=function(){b.fn[e].apply(this,arguments);b.isDOMReady&&d.triggerDomUpdate(this);
-return this}});b.fn.updatePolyfill=function(){b.isDOMReady&&d.triggerDomUpdate(this);return this};b.each(["getNativeElement","getShadowElement","getShadowFocusElement"],function(a,d){b.fn[d]=function(){return this}})})();(function(){var a=p.prototype.hasOwnProperty,c=["configurable","enumerable","writable"],e=function(a){for(var b=0;3>b;b++)if(void 0===a[c[b]]&&("writable"!==c[b]||void 0!==a.value))a[c[b]]=!0},f=function(b){if(b)for(var c in b)a.call(b,c)&&e(b[c])};if(p.create)d.objectCreate=function(a,
-c,d){f(c);a=p.create(a,c);if(d)a.options=b.extend(!0,{},a.options||{},d),d=a.options;a._create&&b.isFunction(a._create)&&a._create(d);return a};p.defineProperty&&(d.defineProperty=function(a,b,c){e(c);return p.defineProperty(a,b,c)});if(p.defineProperties)d.defineProperties=function(a,b){f(b);return p.defineProperties(a,b)};d.getOwnPropertyDescriptor=p.getOwnPropertyDescriptor;d.getPrototypeOf=p.getPrototypeOf})();w("jquery-ui",{src:z+"jquery-ui.min.js",test:function(){return!(!b.widget||!b.Widget)}});
-w("input-widgets",{src:"",test:function(){return!this.src||!(b.widget&&(!b.fn.datepicker||!b.fn.slider))}});w("swfobject",{src:y+"swfobject/2.2/swfobject.js",test:function(){return"swfobject"in window}});j("es5",{test:!(!f.ES5||!Function.prototype.bind),c:[10,1,22]});j("dom-extend",{f:"dom-support",noAutoCallback:!0,d:["es5"],c:[10,9,12,17,16,8,1,24,19,11,13]});"localstorage"in f&&j("json-storage",{test:f.localstorage&&"sessionStorage"in window&&"JSON"in window,loadInit:function(){x(["swfobject"])},
-noAutoCallback:!0,c:[14]});"geolocation"in f&&j("geolocation",{test:f.geolocation,options:{destroyWrite:!0},d:["json-storage"],c:[14,15]});(function(){if("canvas"in f){var a;j("canvas",{src:"excanvas",test:f.canvas,options:{type:"flash"},noAutoCallback:!0,loadInit:function(){var c=this.options.type;if(c&&-1!==c.indexOf("flash")&&(!window.swfobject||swfobject.hasFlashPlayerVersion("9.0.0")))window.FlashCanvasOptions=window.FlashCanvasOptions||{},a=FlashCanvasOptions,"flash"==c?(b.extend(a,{swfPath:k.basePath+
-"FlashCanvas/"}),this.src="FlashCanvas/flashcanvas"):(b.extend(a,{swfPath:k.basePath+"FlashCanvasPro/"}),this.src="FlashCanvasPro/flashcanvas")},afterLoad:function(){d.addReady(function(a,d){a==document&&window.G_vmlCanvasManager&&G_vmlCanvasManager.init_&&G_vmlCanvasManager.init_(document);b("canvas",a).add(d.filter("canvas")).each(function(){!this.getContext&&window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this)});a==document&&l("canvas",!0)})},methodNames:["getContext"],d:["dom-support"]})}})();
-var C=f.input,A=f.inputtypes;if(C&&A){var B,t=d.bugs,y=b('<select required="" name="a"><option disabled="" /></select>')[0];v("formvalidation",function(){return!(!C.required||!C.pattern)});v("fieldsetdisabled",function(){var a=b("<fieldset />")[0];return"elements"in a&&"disabled"in a});if(f.formvalidation)t.bustedValidity=!1===f.formattribute||!f.fieldsetdisabled||!("value"in document.createElement("output"))||!(b('<input type="date" value="1488-12-11" />')[0].validity||{valid:!0}).valid||!("required"in
-y)||(y.validity||{}).valid;v("styleableinputrange",function(){if(!A.range)return!1;var a=document.createElement("input");a.setAttribute("type","range");return void 0!==a.style.WebkitAppearance});d.validationMessages=d.validityMessages=[];d.inputTypes={};j("form-core",{f:"forms",d:["es5"],test:function(){if(B.lightweightDatalist&&!this.datalistLoaded)this.datalistLoaded=!0,m["form-datalist"].f="forms",d.reTest(["form-datalist"]);return!1},options:{placeholderType:"value",langSrc:"i18n/errormessages-",
-availabeLangs:"ar,ch-ZN,el,es,fr,he,hi,hu,it,ja,nl,pt-PT,ru".split(",")},methodNames:["setCustomValidity","checkValidity"],c:[3,2,59,17,16,5,4,24,19]});B=k.forms;f.formvalidation&&!t.bustedValidity?(j("form-extend",{f:"forms",src:"form-native-extend",test:function(a){return(m["form-number-date-api"].test()||-1==b.inArray("form-number-date-api",a||[]))&&!B.overrideMessages},d:["form-core","dom-support","form-message"],c:[18,7,59,5]}),s=s.concat([2,3,23,21])):(s=s.concat([18,7,4,59,5]),j("form-extend",
-{f:"forms",src:"form-shim-extend",test:function(){return!1},d:["form-core","dom-support"],c:[3,2,23,21]}));j("form-message",{f:"forms",test:function(a){return!(B.customMessages||!f.formvalidation||!m["form-extend"].test(a)||t.validationMessage||t.bustedValidity)},d:["dom-support"],c:[3,2,23,21,59,17,5,4]});j("form-number-date-api",{f:"forms-ext",uiTest:function(){return A.range&&A.date&&A.number},test:function(){return this.uiTest()&&!d.bugs.valueAsNumberSet},d:["forms","dom-support"],c:[18,7,6]});
-j("form-number-date-ui",{f:"forms-ext",test:function(){return m["form-number-date-api"].test()&&!this.options.replaceUI},d:["forms","dom-support","form-number-date-api"],loadInit:function(){x(["jquery-ui"]);m["input-widgets"].src&&x(["input-widgets"])},options:{stepArrows:{number:1,time:1},calculateWidth:!0,slider:{},datepicker:{},langSrc:z+"i18n/jquery.ui.datepicker-"},c:[18,7,6]});j("form-datalist",{f:"forms-ext",test:function(){return C.list&&!B.customDatalist},d:["form-core","dom-support"],c:[3,
-59,18,24,19,11]})}"details"in f||v("details",function(){return"open"in document.createElement("details")});j("details",{test:f.details,d:["dom-support"],options:{text:"Details"},c:[12,13,15]});if("audio"in f&&"video"in f)z=document.createElement("track"),d.mediaelement={},j("mediaelement-core",{f:"mediaelement",noAutoCallback:!0,d:["swfobject","dom-support"],c:[10,9,12,17,16,8,22,23,24,20]}),j("mediaelement-swf",{f:"mediaelement",options:{hasToPlay:"any",preferFlash:!1,jwVars:{},jwParams:{},jwAttrs:{},
-changeJW:b.noop},methodNames:["play","pause","canPlayType","mediaLoad:load"],d:["swfobject","dom-support"],test:function(){if(!f.audio||!f.video)return!1;var a=this.options,b=a.hasToPlay;return!((!window.swfobject||window.swfobject.hasFlashPlayerVersion("9.0.115"))&&(a.preferFlash||"any"!=b&&!f.video[b]&&!f.audio[b]))},c:[10,9,22,20]}),v({texttrackapi:"function"===typeof document.createElement("video").addTextTrack,track:"kind"in z}),t.track=f.track&&(!f.texttrackapi||"string"!=typeof(z.track||{}).mode),
-j("track",{options:{positionDisplay:!0,override:t.track},test:function(){return f.track&&!this.options.override&&!t.track},d:["mediaelement","dom-support"],methodNames:["addTextTrack"],c:[]}),w("track-ui",{d:["track"]});j("feature-dummy",{test:!0,loaded:!0,c:s});b.fn.on||d.error("webshims 1.9.0 needs jQuery 1.7+. Please use a newer version of jQuery");D.filter("[data-polyfill-cfg]").each(function(){try{d.setOptions(b(this).data("polyfillCfg"))}catch(a){d.warn("error parsing polyfill cfg: "+a)}}).end().filter("[data-polyfill]").each(function(){d.polyfill(b.trim(b(this).data("polyfill")||
+!0;var d={version:"1.9.0",cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loadStyles:!0,disableShivMethods:!0,basePath:function(){var a=D.filter('[src*="polyfiller.js"]'),a=a[0]||a.end()[a.end().length-1],a=(b.support.hrefNormalized?a.src:a.getAttribute("src",4)).split("?")[0];return a=a.slice(0,a.lastIndexOf("/")+1)+"shims/"}()},bugs:{},browserVersion:s,modules:{},features:{},featureList:[],setOptions:function(a,c){"string"==typeof a&&void 0!==c?k[a]=!b.isPlainObject(c)?c:b.extend(!0,k[a]||
+{},c):"object"==typeof a&&b.extend(!0,k,a)},addPolyfill:function(a,c){var c=c||{},e=c.f||a;if(!n[e])n[e]=[],n[e].delayReady=0,d.featureList.push(e),k[e]={};n[e].push(a);c.options=b.extend(k[e],c.options);w(a,c);c.methodNames&&b.each(c.methodNames,function(a,b){d.addMethodName(b)})},polyfill:function(){var a=function(c){var g=[],h;if(k.disableShivMethods&&f.genericDOM&&"html5Clone"in b.support)F.shivMethods=!1;var i=function(){b("html").removeClass("loading-polyfills long-loading-polyfills");b(window).unbind(".lP");
+clearTimeout(h)};g.push("loading-polyfills");b(window).bind("load.lP error.lP",i);h=setTimeout(function(){b("html").addClass("long-loading-polyfills")},600);k.waitReady&&b.isReady&&d.warn("Call webshims.polyfill before DOM-Ready or set waitReady to false.");q(c,i);k.useImportantStyles&&g.push("polyfill-important");g[0]&&b("html").addClass(g.join(" "));k.loadStyles&&u.loadCSS("styles/shim.css");a=b.noop},c;return function(e){var g=[],e=e||d.featureList;"string"==typeof e&&(e=e.split(" "));c||(c=-1!==
+b.inArray("forms",e),!c&&-1!==b.inArray("forms-ext",e)&&(e.push("forms"),c=!0));k.waitReady&&(b.readyWait++,q(e,function(){b.ready(!0)}));b.each(e,function(a,b){n[b]?(b!==n[b][0]&&q(n[b],function(){l(b,!0)}),g=g.concat(n[b])):(d.warn("could not find webshims-feature (aborted): "+b),l(b,!0))});a(e);x(g)}}(),reTest:function(){var a,c,e=function(e,h){var i=m[h],d=h+"Ready",f;if(i&&!i.loaded&&!(i.test&&b.isFunction(i.test)?i.test([]):i.test)){o[d]&&delete o[d];if((f=n[i.f])&&!c)f.delayReady++,q(h,function(){f.delayReady--;
+l(i.f,f.callReady)});a.push(h)}};return function(d,h){c=h;"string"==typeof d&&(d=d.split(" "));a=[];b.each(d,e);x(a)}}(),isReady:function(a,c){if(n[a]&&0<n[a].delayReady){if(c)n[a].callReady=!0;return!1}a+="Ready";if(c){if(o[a]&&o[a].add)return!0;o[a]=b.extend(o[a]||{},{add:function(b){b.handler.call(this,a)}});b.event.trigger(a)}return!(!o[a]||!o[a].add)||!1},ready:function(a,c,e){"string"==typeof a&&(a=a.split(" "));e||(a=b.map(b.grep(a,function(a){return!l(a)}),function(a){return a+"Ready"}));
+a.length?(e=a.shift(),b(document).one(e,function(){q(a,c,!0)})):c(b,d,window,document)},capturingEvents:function(a,c){document.addEventListener&&("string"==typeof a&&(a=[a]),b.each(a,function(a,g){var h=function(a){a=b.event.fix(a);c&&d.capturingEventPrevented&&d.capturingEventPrevented(a);return b.event.handle.call(this,a)};o[g]=o[g]||{};!o[g].setup&&!o[g].teardown&&b.extend(o[g],{setup:function(){this.addEventListener(g,h,!0)},teardown:function(){this.removeEventListener(g,h,!0)}})}))},register:function(a,
+c){var e=m[a];if(e){if(e.noAutoCallback){var g=function(){c(b,d,window,document,void 0,e.options);l(a,!0)};e.d?q(e.d,g):g()}}else d.warn("can't find module: "+a)},c:{},loader:{addModule:function(a,c){m[a]=c;c.name=c.name||a;if(!c.c)c.c=[];b.each(c.c,function(b,c){d.c[c]||(d.c[c]=[]);d.c[c].push(a)})},loadList:function(){var a=[],c=function(c,e){"string"==typeof e&&(e=[e]);b.merge(a,e);u.loadScript(c,!1,e)},e=function(c,e){if(l(c)||-1!=b.inArray(c,a))return!0;var d=m[c];if(d)if(d=d.test&&b.isFunction(d.test)?
+d.test(e):d.test)l(c,!0);else return!1;return!0},g=function(a,c){if(a.d&&a.d.length){var d=function(a,d){!e(d,c)&&-1==b.inArray(d,c)&&c.push(d)};b.each(a.d,function(a,c){m[c]?d(a,c):n[c]&&(b.each(n[c],d),q(n[c],function(){l(c,!0)}))});if(!a.noAutoCallback)a.noAutoCallback=!0}};return function(h){var i,f=[],j,k,l=function(e,h){k=h;b.each(d.c[h],function(c,d){if(-1==b.inArray(d,f)||-1!=b.inArray(d,a))return k=!1});if(k)return c("combos/"+k,d.c[k]),!1};for(j=0;j<h.length;j++)i=m[h[j]],!i||e(i.name,h)?
+i||d.warn("could not find: "+h[j]):(i.css&&u.loadCSS(i.css),i.loadInit&&i.loadInit(),i.loaded=!0,g(i,h),f.push(i.name));for(j=0,h=f.length;j<h;j++)k=!1,i=f[j],-1==b.inArray(i,a)&&("noCombo"!=d.debug&&b.each(m[i].c,l),k||c(m[i].src||i,i))}}(),makePath:function(a){if(-1!=a.indexOf("//")||0===a.indexOf("/"))return a;-1==a.indexOf(".")&&(a+=".js");k.addCacheBuster&&(a+=k.addCacheBuster);return k.basePath+a},loadCSS:function(){var a,c=[];return function(d){d=this.makePath(d);-1==b.inArray(d,c)&&(a=a||
+b("link, style")[0]||b("script")[0],c.push(d),b('<link rel="stylesheet" />').insertBefore(a).attr({href:d}))}}(),loadScript:function(){var a=[];return function(c,d,g){c=u.makePath(c);if(-1==b.inArray(c,a)){var h=function(){h=null;d&&d();g&&("string"==typeof g&&(g=g.split(" ")),b.each(g,function(a,c){m[c]&&(m[c].afterLoad&&m[c].afterLoad(),l(!m[c].noAutoCallback?c:c+"FileLoaded",!0))}))};a.push(c);window.require?require([c],h):window.sssl?sssl(c,h):window.yepnope?yepnope.injectJs(c,h):window.steal&&
+steal(c).then(h)}}}()}};b.webshims=d;var y=("https:"==location.protocol?"https://":"http://")+"ajax.googleapis.com/ajax/libs/",z=y+"jqueryui/1.8.23/",k=d.cfg,n=d.features,l=d.isReady,q=d.ready,j=d.addPolyfill,m=d.modules,u=d.loader,x=u.loadList,w=u.addModule,s=[],G={warn:1,error:1};d.addMethodName=function(a){var a=a.split(":"),c=a[1];1==a.length&&(c=a[0]);a=a[0];b.fn[a]=function(){return this.callProp(c,arguments)}};b.fn.callProp=function(a,c){var e;c||(c=[]);this.each(function(){var g=b.prop(this,
+a);if(g&&g.apply){if(e=g.apply(this,c),void 0!==e)return!1}else d.warn(a+" is not a method of "+this)});return void 0!==e?e:this};d.activeLang=function(){var a=navigator.browserLanguage||navigator.language||"";q("webshimLocalization",function(){d.activeLang(a)});return function(c){if(c)if("string"==typeof c)a=c;else if("object"==typeof c){var b=arguments,g=this;q("webshimLocalization",function(){d.activeLang.apply(g,b)})}return a}}();b.each(["log","error","warn","info"],function(a,c){d[c]=function(a){if((G[c]&&
+!1!==d.debug||d.debug)&&window.console&&console.log)return console[console[c]?c:"log"](a)}});(function(){b.isDOMReady=b.isReady;if(b.isDOMReady)l("DOM",!0);else{var a=b.ready;b.ready=function(c){if(!0!==c&&!b.isDOMReady)document.body?(b.isDOMReady=!0,l("DOM",!0),b.ready=a):setTimeout(function(){b.ready(c)},13);return a.apply(this,arguments)};b.ready.promise=a.promise}b(function(){b.isDOMReady=!0;l("DOM",!0);setTimeout(function(){l("WINDOWLOAD",!0)},9999)});b(window).load(function(){l("DOM",!0);l("WINDOWLOAD",
+!0)})})();(function(){var a=[];b.extend(d,{addReady:function(c){var b=function(a,b){d.ready("DOM",function(){c(a,b)})};a.push(b);b(document,E)},triggerDomUpdate:function(c){if(!c||!c.nodeType)c&&c.jquery&&c.each(function(){d.triggerDomUpdate(this)});else{var e=c.nodeType;if(!(1!=e&&9!=e)){var g=c!==document?b(c):E;b.each(a,function(a,b){b(c,g)})}}}});b.fn.htmlPolyfill=function(a){a=b.fn.html.call(this,a);a===this&&b.isDOMReady&&this.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return a};
+b.each(["after","before","append","prepend","replaceWith"],function(a,e){b.fn[e+"Polyfill"]=function(a){a=b(a);b.fn[e].call(this,a);b.isDOMReady&&a.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return this}});b.each(["insertAfter","insertBefore","appendTo","prependTo","replaceAll"],function(a,e){b.fn[e.replace(/[A-Z]/,function(a){return"Polyfill"+a})]=function(){b.fn[e].apply(this,arguments);b.isDOMReady&&d.triggerDomUpdate(this);return this}});b.fn.updatePolyfill=function(){b.isDOMReady&&
+d.triggerDomUpdate(this);return this};b.each(["getNativeElement","getShadowElement","getShadowFocusElement"],function(a,d){b.fn[d]=function(){return this}})})();(function(){var a=p.prototype.hasOwnProperty,c=["configurable","enumerable","writable"],e=function(a){for(var b=0;3>b;b++)if(void 0===a[c[b]]&&("writable"!==c[b]||void 0!==a.value))a[c[b]]=!0},f=function(b){if(b)for(var c in b)a.call(b,c)&&e(b[c])};if(p.create)d.objectCreate=function(a,c,d){f(c);a=p.create(a,c);if(d)a.options=b.extend(!0,
+{},a.options||{},d),d=a.options;a._create&&b.isFunction(a._create)&&a._create(d);return a};p.defineProperty&&(d.defineProperty=function(a,b,c){e(c);return p.defineProperty(a,b,c)});if(p.defineProperties)d.defineProperties=function(a,b){f(b);return p.defineProperties(a,b)};d.getOwnPropertyDescriptor=p.getOwnPropertyDescriptor;d.getPrototypeOf=p.getPrototypeOf})();w("jquery-ui",{src:z+"jquery-ui.min.js",test:function(){return!(!b.widget||!b.Widget)}});w("input-widgets",{src:"",test:function(){return!this.src||
+!(b.widget&&(!b.fn.datepicker||!b.fn.slider))}});w("swfobject",{src:y+"swfobject/2.2/swfobject.js",test:function(){return"swfobject"in window}});j("es5",{test:!(!f.ES5||!Function.prototype.bind),c:[10,1,22]});j("dom-extend",{f:"dom-support",noAutoCallback:!0,d:["es5"],c:[10,9,12,17,16,8,1,24,19,11,13]});"localstorage"in f&&j("json-storage",{test:f.localstorage&&"sessionStorage"in window&&"JSON"in window,loadInit:function(){x(["swfobject"])},noAutoCallback:!0,c:[14]});"geolocation"in f&&j("geolocation",
+{test:f.geolocation,options:{destroyWrite:!0},d:["json-storage"],c:[14,15]});(function(){if("canvas"in f){var a;j("canvas",{src:"excanvas",test:f.canvas,options:{type:"flash"},noAutoCallback:!0,loadInit:function(){var c=this.options.type;if(c&&-1!==c.indexOf("flash")&&(!window.swfobject||swfobject.hasFlashPlayerVersion("9.0.0")))window.FlashCanvasOptions=window.FlashCanvasOptions||{},a=FlashCanvasOptions,"flash"==c?(b.extend(a,{swfPath:k.basePath+"FlashCanvas/"}),this.src="FlashCanvas/flashcanvas"):
+(b.extend(a,{swfPath:k.basePath+"FlashCanvasPro/"}),this.src="FlashCanvasPro/flashcanvas")},afterLoad:function(){d.addReady(function(a,d){a==document&&window.G_vmlCanvasManager&&G_vmlCanvasManager.init_&&G_vmlCanvasManager.init_(document);b("canvas",a).add(d.filter("canvas")).each(function(){!this.getContext&&window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this)});a==document&&l("canvas",!0)})},methodNames:["getContext"],d:["dom-support"]})}})();var C=f.input,A=f.inputtypes;if(C&&A){var B,
+t=d.bugs,y=b('<select required="" name="a"><option disabled="" /></select>')[0];v("formvalidation",function(){return!(!C.required||!C.pattern)});v("fieldsetdisabled",function(){var a=b("<fieldset />")[0];return"elements"in a&&"disabled"in a});if(f.formvalidation)t.bustedValidity=!1===f.formattribute||!f.fieldsetdisabled||!("value"in document.createElement("output"))||!(b('<input type="date" value="1488-12-11" />')[0].validity||{valid:!0}).valid||!("required"in y)||(y.validity||{}).valid;v("styleableinputrange",
+function(){if(!A.range)return!1;var a=document.createElement("input");a.setAttribute("type","range");return void 0!==a.style.WebkitAppearance});d.validationMessages=d.validityMessages=[];d.inputTypes={};j("form-core",{f:"forms",d:["es5"],test:function(){if(B.lightweightDatalist&&!this.datalistLoaded)this.datalistLoaded=!0,m["form-datalist"].f="forms",d.reTest(["form-datalist"]);return!1},options:{placeholderType:"value",langSrc:"i18n/errormessages-",availabeLangs:"ar,ch-ZN,el,es,fr,he,hi,hu,it,ja,nl,pt-PT,ru".split(",")},
+methodNames:["setCustomValidity","checkValidity"],c:[3,2,59,17,16,5,4,24,19]});B=k.forms;f.formvalidation&&!t.bustedValidity?(j("form-extend",{f:"forms",src:"form-native-extend",test:function(a){return(m["form-number-date-api"].test()||-1==b.inArray("form-number-date-api",a||[]))&&!B.overrideMessages},d:["form-core","dom-support","form-message"],c:[18,7,59,5]}),s=s.concat([2,3,23,21])):(s=s.concat([18,7,4,59,5]),j("form-extend",{f:"forms",src:"form-shim-extend",test:function(){return!1},d:["form-core",
+"dom-support"],c:[3,2,23,21]}));j("form-message",{f:"forms",test:function(a){return!(B.customMessages||!f.formvalidation||!m["form-extend"].test(a)||t.validationMessage||t.bustedValidity)},d:["dom-support"],c:[3,2,23,21,59,17,5,4]});j("form-number-date-api",{f:"forms-ext",uiTest:function(){return A.range&&A.date&&A.number},test:function(){return this.uiTest()&&!d.bugs.valueAsNumberSet},d:["forms","dom-support"],c:[18,7,6]});j("form-number-date-ui",{f:"forms-ext",test:function(){return m["form-number-date-api"].test()&&
+!this.options.replaceUI},d:["forms","dom-support","form-number-date-api"],loadInit:function(){x(["jquery-ui"]);m["input-widgets"].src&&x(["input-widgets"])},options:{stepArrows:{number:1,time:1},calculateWidth:!0,slider:{},datepicker:{},langSrc:z+"i18n/jquery.ui.datepicker-"},c:[18,7,6]});j("form-datalist",{f:"forms-ext",test:function(){return C.list&&!B.customDatalist},d:["form-core","dom-support"],c:[3,59,18,24,19,11]})}"details"in f||v("details",function(){return"open"in document.createElement("details")});
+j("details",{test:f.details,d:["dom-support"],options:{text:"Details"},c:[12,13,15]});if("audio"in f&&"video"in f)z=document.createElement("track"),d.mediaelement={},j("mediaelement-core",{f:"mediaelement",noAutoCallback:!0,d:["swfobject","dom-support"],c:[10,9,12,17,16,8,22,23,24,20]}),j("mediaelement-swf",{f:"mediaelement",options:{hasToPlay:"any",preferFlash:!1,jwVars:{},jwParams:{},jwAttrs:{},changeJW:b.noop},methodNames:["play","pause","canPlayType","mediaLoad:load"],d:["swfobject","dom-support"],
+test:function(){if(!f.audio||!f.video)return!1;var a=this.options,b=a.hasToPlay;return!((!window.swfobject||window.swfobject.hasFlashPlayerVersion("9.0.115"))&&(a.preferFlash||"any"!=b&&!f.video[b]&&!f.audio[b]))},c:[10,9,22,20]}),v({texttrackapi:"function"===typeof document.createElement("video").addTextTrack,track:"kind"in z}),t.track=f.track&&(!f.texttrackapi||"string"!=typeof(z.track||{}).mode),j("track",{options:{positionDisplay:!0,override:t.track},test:function(){return f.track&&!this.options.override&&
+!t.track},d:["mediaelement","dom-support"],methodNames:["addTextTrack"],c:[]}),w("track-ui",{d:["track"]});j("feature-dummy",{test:!0,loaded:!0,c:s});b.fn.on?"1.8.0"==b.fn.jquery&&d.error("webshims 1.9+ needs jQuery 1.7.1+ or 1.8.1+. We do not support jQ 1.8.0"):d.error("webshims 1.9.0 needs jQuery 1.7+. Please use a newer version of jQuery");D.filter("[data-polyfill-cfg]").each(function(){try{d.setOptions(b(this).data("polyfillCfg"))}catch(a){d.warn("error parsing polyfill cfg: "+a)}}).end().filter("[data-polyfill]").each(function(){d.polyfill(b.trim(b(this).data("polyfill")||
""))});r&&(r.cfg&&d.setOptions(r.cfg),r.lang&&d.activeLang(r.lang),"polyfill"in r&&d.polyfill(r.polyfill))});
View
159 demos/js-webshim/minified/shims/combos/10.js
@@ -1,84 +1,83 @@
-(function(){var a=Function.prototype.call,b=Object.prototype,g=Array.prototype.slice,l,m;if(!Function.prototype.bind)Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var e=g.call(arguments,1),d=function(){if(this instanceof d){var c=function(){};c.prototype=b.prototype;var c=new c,h=b.apply(c,e.concat(g.call(arguments)));return null!==h&&Object(h)===h?h:c}return b.apply(a,e.concat(g.call(arguments)))};return d};m=a.bind(b.toString);l=a.bind(b.hasOwnProperty);
-if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==m(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){var e=j(this),d=0,c=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(;d<c;)d in e&&a.call(b,e[d],d,e),d++};if(!Array.prototype.map)Array.prototype.map=function(a,b){var e=j(this),d=e.length>>>0,c=Array(d);if("[object Function]"!=m(a))throw new TypeError;for(var h=0;h<d;h++)h in e&&(c[h]=a.call(b,e[h],h,e));return c};if(!Array.prototype.filter)Array.prototype.filter=
-function(a,b){var e=j(this),d=e.length>>>0,c=[];if("[object Function]"!=m(a))throw new TypeError;for(var h=0;h<d;h++)h in e&&a.call(b,e[h],h,e)&&c.push(e[h]);return c};if(!Array.prototype.every)Array.prototype.every=function(a,b){var e=j(this),d=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(var c=0;c<d;c++)if(c in e&&!a.call(b,e[c],c,e))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,b){var e=j(this),d=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;
-for(var c=0;c<d;c++)if(c in e&&a.call(b,e[c],c,e))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var b=j(this),e=b.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var d=0,c;if(2<=arguments.length)c=arguments[1];else{do{if(d in b){c=b[d++];break}if(++d>=e)throw new TypeError;}while(1)}for(;d<e;d++)d in b&&(c=a.call(void 0,c,b[d],d,b));return c};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var b=
-j(this),e=b.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var d,e=e-1;if(2<=arguments.length)d=arguments[1];else{do{if(e in b){d=b[e--];break}if(0>--e)throw new TypeError;}while(1)}do e in this&&(d=a.call(void 0,d,b[e],e,b));while(e--);return d};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=j(this),e=b.length>>>0;if(!e)return-1;var d=0;1<arguments.length&&(d=v(arguments[1]));for(d=0<=d?d:e-Math.abs(d);d<e;d++)if(d in
-b&&b[d]===a)return d;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=j(this),e=b.length>>>0;if(!e)return-1;var d=e-1;1<arguments.length&&(d=v(arguments[1]));for(d=0<=d?d:e-Math.abs(d);0<=d;d--)if(d in b&&a===b[d])return d;return-1};if(2!=[1,2].splice(0).length){var r=Array.prototype.splice;Array.prototype.splice=function(a,b){return!arguments.length?[]:r.apply(this,[void 0===a?0:a,void 0===b?this.length-a:b].concat(g.call(arguments,2)))}}if(!Object.keys){var f=
-!0,s="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),k=s.length,p;for(p in{toString:null})f=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],e;for(e in a)l(a,e)&&b.push(e);if(f)for(e=0;e<k;e++){var d=s[e];l(a,d)&&b.push(d)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,b,e;if(!isFinite(this))throw new RangeError;
+(function(){var a=Function.prototype.call,b=Object.prototype,h=Array.prototype.slice,k,m;if(!Function.prototype.bind)Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var e=h.call(arguments,1),d=function(){if(this instanceof d){var c=function(){};c.prototype=b.prototype;var c=new c,g=b.apply(c,e.concat(h.call(arguments)));return null!==g&&Object(g)===g?g:c}return b.apply(a,e.concat(h.call(arguments)))};return d};m=a.bind(b.toString);k=a.bind(b.hasOwnProperty);
+if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==m(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){var e=l(this),d=0,c=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(;d<c;)d in e&&a.call(b,e[d],d,e),d++};if(!Array.prototype.map)Array.prototype.map=function(a,b){var e=l(this),d=e.length>>>0,c=Array(d);if("[object Function]"!=m(a))throw new TypeError;for(var g=0;g<d;g++)g in e&&(c[g]=a.call(b,e[g],g,e));return c};if(!Array.prototype.filter)Array.prototype.filter=
+function(a,b){var e=l(this),d=e.length>>>0,c=[];if("[object Function]"!=m(a))throw new TypeError;for(var g=0;g<d;g++)g in e&&a.call(b,e[g],g,e)&&c.push(e[g]);return c};if(!Array.prototype.every)Array.prototype.every=function(a,b){var e=l(this),d=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(var c=0;c<d;c++)if(c in e&&!a.call(b,e[c],c,e))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,b){var e=l(this),d=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;
+for(var c=0;c<d;c++)if(c in e&&a.call(b,e[c],c,e))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var b=l(this),e=b.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var d=0,c;if(2<=arguments.length)c=arguments[1];else{do{if(d in b){c=b[d++];break}if(++d>=e)throw new TypeError;}while(1)}for(;d<e;d++)d in b&&(c=a.call(void 0,c,b[d],d,b));return c};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var b=
+l(this),e=b.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var d,e=e-1;if(2<=arguments.length)d=arguments[1];else{do{if(e in b){d=b[e--];break}if(0>--e)throw new TypeError;}while(1)}do e in this&&(d=a.call(void 0,d,b[e],e,b));while(e--);return d};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=l(this),e=b.length>>>0;if(!e)return-1;var d=0;1<arguments.length&&(d=z(arguments[1]));for(d=0<=d?d:e-Math.abs(d);d<e;d++)if(d in
+b&&b[d]===a)return d;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=l(this),e=b.length>>>0;if(!e)return-1;var d=e-1;1<arguments.length&&(d=z(arguments[1]));for(d=0<=d?d:e-Math.abs(d);0<=d;d--)if(d in b&&a===b[d])return d;return-1};if(2!=[1,2].splice(0).length){var s=Array.prototype.splice;Array.prototype.splice=function(a,b){return!arguments.length?[]:s.apply(this,[void 0===a?0:a,void 0===b?this.length-a:b].concat(h.call(arguments,2)))}}if(!Object.keys){var f=
+!0,t="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),j=t.length,o;for(o in{toString:null})f=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],e;for(e in a)k(a,e)&&b.push(e);if(f)for(e=0;e<j;e++){var d=t[e];k(a,d)&&b.push(d)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,b,e;if(!isFinite(this))throw new RangeError;
a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(b=a.length;b--;)e=a[b],10>e&&(a[b]="0"+e);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";
-if(!String.prototype.trim||a.trim()){var a="["+a+"]",w=RegExp("^"+a+a+"*"),x=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(w,"").replace(x,"")}}if("0".split(void 0,0).length){var y=String.prototype.split;String.prototype.split=function(a,b){return void 0===a&&0===b?[]:y.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var C=String.prototype.substr;String.prototype.substr=function(a,b){return C.call(this,0>a?0>(a=this.length+a)?0:a:a,b)}}var v=function(a){a=+a;
-a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},n="a"!="a"[0],j=function(a){if(null==a)throw new TypeError;return n&&"string"==typeof a&&a?a.split(""):Object(a)}})();
-(function(a,b){var g=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);g&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});g=!!a.bar}catch(b){g=!1}a=null}();Modernizr.objectAccessor=!(!(g||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=g;
-if(!g||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var l=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,g,f,l){var k;k=function(){};k.prototype=a;k=new k;if(!l&&!("__proto__"in k)&&!Modernizr.objectAccessor)k.__proto__=a;g&&b.defineProperties(k,g);if(f)k.options=jQuery.extend(!0,{},k.options||{},f),f=k.options;k._create&&jQuery.isFunction(k._create)&&k._create(f);return k};b.defineProperties=function(a,
-g){for(var f in g)l(g,f)&&b.defineProperty(a,f,g[f]);return a};b.defineProperty=function(a,b,f){if("object"!=typeof f||null===f)return a;if(l(f,"value"))return a[b]=f.value,a;a.__defineGetter__&&("function"==typeof f.get&&a.__defineGetter__(b,f.get),"function"==typeof f.set&&a.__defineSetter__(b,f.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
-typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var f;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return f=Object.getOwnPropertyDescriptor(a,b)}catch(g){}f={configurable:!0,enumerable:!0,writable:!0,value:void 0};var k=a.__lookupGetter__&&a.__lookupGetter__(b),p=a.__lookupSetter__&&a.__lookupSetter__(b);if(!k&&!p){if(!l(a,b))return;f.value=a[b];return f}delete f.writable;delete f.value;f.get=f.set=void 0;if(k)f.get=
-k;if(p)f.set=p;return f}}})(jQuery,jQuery.webshims);
-jQuery.webshims.register("dom-extend",function(a,b,g,l,m){var r=b.modules,f=/\s*,\s*/,s={},k={},p={},w={},x={},y=a.fn.val,C=function(d,c,h,b,z){return z?y.call(a(d)):y.call(a(d),h)};a.fn.val=function(d){var c=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!c||1!==c.nodeType?y.call(this):a.prop(c,"value",d,"val",!0);if(a.isArray(d))return y.apply(this,arguments);var h=a.isFunction(d);return this.each(function(b){c=this;1===c.nodeType&&(h?(b=d.call(c,b,a.prop(c,"value",m,"val",
-!0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",d,"val"))})};var v="_webshimsLib"+Math.round(1E3*Math.random()),n=function(d,c,b){d=d.jquery?d[0]:d;if(!d)return b||{};var i=a.data(d,v);b!==m&&(i||(i=a.data(d,v,{})),c&&(i[c]=b));return c?i&&i[c]:i};[{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=n(this,
-"shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){s[d]=a[d];a[d]=function(c,b,i,z,e){var q="val"==z,t=!q?s[d]:C;if(!c||!k[b]||1!==c.nodeType||!q&&z&&"attr"==d&&a.attrFn[b])return t(c,b,i,z,e);var D=(c.nodeName||"").toLowerCase(),A=p[D],B="attr"==d&&(!1===i||null===i)?"removeAttr":d,f,g,j;A||(A=p["*"]);A&&(A=A[b]);A&&(f=A[B]);if(f){if("value"==b)g=f.isVal,f.isVal=q;if("removeAttr"===B)return f.value.call(c);if(i===m)return f.get?f.get.call(c):f.value;f.set&&
-("attr"==d&&!0===i&&(i=b),j=f.set.call(c,i));if("value"==b)f.isVal=g}else j=t(c,b,i,z,e);if((i!==m||"removeAttr"===B)&&x[D]&&x[D][b]){var y;y="removeAttr"==B?!1:"prop"==B?!!i:!0;x[D][b].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(c,i,y,q?"val":B,d)})}return j};w[d]=function(c,h,i){p[c]||(p[c]={});p[c][h]||(p[c][h]={});var z=p[c][h][d],e=function(a,c,b){return c&&c[a]?c[a]:b&&b[a]?b[a]:"prop"==d&&"value"==h?function(a){return i.isVal?C(this,h,a,!1,0===arguments.length):
-s[d](this,h,a)}:"prop"==d&&"value"==a&&i.value.apply?function(a){var c=s[d](this,h);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return s[d](this,h,a)}};p[c][h][d]=i;if(i.value===m){if(!i.set)i.set=i.writeable?e("set",i,z):b.cfg.useStrict&&"prop"==h?function(){throw h+" is readonly on "+c;}:a.noop;if(!i.get)i.get=e("get",i,z)}["value","get","set"].forEach(function(a){i[a]&&(i["_sup"+a]=e(a,z))})}});var j=!a.browser.msie||8<parseInt(a.browser.version,10),o=function(){var a=b.getPrototypeOf(l.createElement("foobar")),
-c=Object.prototype.hasOwnProperty;return function(h,i,e){var f=l.createElement(h),q=b.getPrototypeOf(f);if(j&&q&&a!==q&&(!f[i]||!c.call(f,i))){var t=f[i];e._supvalue=function(){return t&&t.apply?t.apply(this,arguments):t};q[i]=e.value}else e._supvalue=function(){var a=n(this,"propValue");return a&&a[i]&&a[i].apply?a[i].apply(this,arguments):a&&a[i]},u.extendValue(h,i,e.value);e.value._supvalue=e._supvalue}}(),u=function(){var d={};b.addReady(function(c,h){var q={},t=function(d){q[d]||(q[d]=a(c.getElementsByTagName(d)),
-h[0]&&a.nodeName(h[0],d)&&(q[d]=q[d].add(h)))};a.each(d,function(a,d){t(a);!d||!d.forEach?b.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){q[a].each(d)})});q=null});var c,h=a([]),i=function(b,h){d[b]?d[b].push(h):d[b]=[h];a.isDOMReady&&(c||a(l.getElementsByTagName(b))).each(h)};return{createTmpCache:function(d){a.isDOMReady&&(c=c||a(l.getElementsByTagName(d)));return c||h},flushTmpCache:function(){c=null},content:function(d,c){i(d,function(){var d=a.attr(this,c);null!=d&&a.attr(this,
-c,d)})},createElement:function(a,d){i(a,d)},extendValue:function(d,c,b){i(d,function(){a(this).each(function(){n(this,"propValue",{})[c]=this[c];this[c]=b})})}}}(),e=function(a,c){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(b,{getID:function(){var d=(new Date).getTime();return function(c){var c=a(c),b=c.attr("id");b||(d++,b="ID-"+d,c.attr("id",b));
-return b}}(),extendUNDEFProp:function(d,c){a.each(c,function(a,c){a in d||(d[a]=c)})},createPropDefault:e,data:n,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(c,b,i){if((c=(a[d](c,"events")||{})[b])&&1<c.length)b=c.pop(),i||(i="bind"),"bind"==i&&c.delegateCount?c.splice(c.delegateCount,0,b):c.unshift(b)}}(),addShadowDom:function(){var d,c,b,i,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(l).height(),this.width=a(l).width(),setInterval(function(){var d=
-a(l).height(),c=a(l).width();if(d!=e.height||c!=e.width)e.height=d,e.width=c,i({type:"docresize"})},400)}};i=function(i){clearTimeout(d);d=setTimeout(function(){if("resize"==i.type){var d=a(g).width(),t=a(g).width();if(t==c&&d==b)return;c=t;b=d;e.height=a(l).height();e.width=a(l).width()}a.event.trigger("updateshadowdom")},40)};a(g).bind("resize",i);a.event.customEvent.updateshadowdom=!0;return function(d,c,b){b=b||{};d.jquery&&(d=d[0]);c.jquery&&(c=c[0]);var h=a.data(d,v)||a.data(d,v,{}),i=a.data(c,
-v)||a.data(c,v,{}),f={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];f=a.data(b.shadowFocusElement,v)||a.data(b.shadowFocusElement,v,f)}}else b.shadowFocusElement=c;h.hasShadow=c;f.nativeElement=i.nativeElement=d;f.shadowData=i.shadowData=h.shadowData={nativeElement:d,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){n(this,"shadowData",i.shadowData)});if(b.data)f.shadowData.data=
-i.shadowData.data=h.shadowData.data=b.data;b=null;e.start()}}(),propTypes:{standard:function(a){e(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){e(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var d=l.createElement("a");d.style.display="none";return function(c,b){e(c);if(!c.prop)c.prop=
+if(!String.prototype.trim||a.trim()){var a="["+a+"]",w=RegExp("^"+a+a+"*"),y=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(w,"").replace(y,"")}}if("0".split(void 0,0).length){var A=String.prototype.split;String.prototype.split=function(a,b){return void 0===a&&0===b?[]:A.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var D=String.prototype.substr;String.prototype.substr=function(a,b){return D.call(this,0>a?0>(a=this.length+a)?0:a:a,b)}}var z=function(a){a=+a;
+a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},q="a"!="a"[0],l=function(a){if(null==a)throw new TypeError;return q&&"string"==typeof a&&a?a.split(""):Object(a)}})();
+(function(a,b){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(b){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=h;
+if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var k=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,h,f,k){var j;j=function(){};j.prototype=a;j=new j;if(!k&&!("__proto__"in j)&&!Modernizr.objectAccessor)j.__proto__=a;h&&b.defineProperties(j,h);if(f)j.options=jQuery.extend(!0,{},j.options||{},f),f=j.options;j._create&&jQuery.isFunction(j._create)&&j._create(f);return j};b.defineProperties=function(a,
+h){for(var f in h)k(h,f)&&b.defineProperty(a,f,h[f]);return a};b.defineProperty=function(a,b,f){if("object"!=typeof f||null===f)return a;if(k(f,"value"))return a[b]=f.value,a;a.__defineGetter__&&("function"==typeof f.get&&a.__defineGetter__(b,f.get),"function"==typeof f.set&&a.__defineSetter__(b,f.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
+typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var f;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return f=Object.getOwnPropertyDescriptor(a,b)}catch(h){}f={configurable:!0,enumerable:!0,writable:!0,value:void 0};var j=a.__lookupGetter__&&a.__lookupGetter__(b),o=a.__lookupSetter__&&a.__lookupSetter__(b);if(!j&&!o){if(!k(a,b))return;f.value=a[b];return f}delete f.writable;delete f.value;f.get=f.set=void 0;if(j)f.get=
+j;if(o)f.set=o;return f}}})(jQuery,jQuery.webshims);
+jQuery.webshims.register("dom-extend",function(a,b,h,k,m){var s=b.modules,f=/\s*,\s*/,t={},j={},o={},w={},y={},A=a.fn.val,D=function(d,c,g,b,p){return p?A.call(a(d)):A.call(a(d),g)};a.fn.val=function(d){var c=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!c||1!==c.nodeType?A.call(this):a.prop(c,"value",d,"val",!0);if(a.isArray(d))return A.apply(this,arguments);var g=a.isFunction(d);return this.each(function(b){c=this;1===c.nodeType&&(g?(b=d.call(c,b,a.prop(c,"value",m,"val",
+!0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",d,"val"))})};var z="_webshimsLib"+Math.round(1E3*Math.random()),q=function(d,c,b){d=d.jquery?d[0]:d;if(!d)return b||{};var i=a.data(d,z);b!==m&&(i||(i=a.data(d,z,{})),c&&(i[c]=b));return c?i&&i[c]:i};[{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=q(this,
+"shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){t[d]=a[d];a[d]=function(c,b,i,p,e){var r="val"==p,u=!r?t[d]:D;if(!c||!j[b]||1!==c.nodeType||!r&&p&&"attr"==d&&a.attrFn[b])return u(c,b,i,p,e);var E=(c.nodeName||"").toLowerCase(),B=o[E],C="attr"==d&&(!1===i||null===i)?"removeAttr":d,f,h,l;B||(B=o["*"]);B&&(B=B[b]);B&&(f=B[C]);if(f){if("value"==b)h=f.isVal,f.isVal=r;if("removeAttr"===C)return f.value.call(c);if(i===m)return f.get?f.get.call(c):f.value;f.set&&
+("attr"==d&&!0===i&&(i=b),l=f.set.call(c,i));if("value"==b)f.isVal=h}else l=u(c,b,i,p,e);if((i!==m||"removeAttr"===C)&&y[E]&&y[E][b]){var A;A="removeAttr"==C?!1:"prop"==C?!!i:!0;y[E][b].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(c,i,A,r?"val":C,d)})}return l};w[d]=function(c,g,i){o[c]||(o[c]={});o[c][g]||(o[c][g]={});var p=o[c][g][d],e=function(a,c,b){return c&&c[a]?c[a]:b&&b[a]?b[a]:"prop"==d&&"value"==g?function(a){return i.isVal?D(this,g,a,!1,0===arguments.length):
+t[d](this,g,a)}:"prop"==d&&"value"==a&&i.value.apply?function(a){var c=t[d](this,g);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return t[d](this,g,a)}};o[c][g][d]=i;if(i.value===m){if(!i.set)i.set=i.writeable?e("set",i,p):b.cfg.useStrict&&"prop"==g?function(){throw g+" is readonly on "+c;}:a.noop;if(!i.get)i.get=e("get",i,p)}["value","get","set"].forEach(function(a){i[a]&&(i["_sup"+a]=e(a,p))})}});var l=!a.browser.msie||8<parseInt(a.browser.version,10),n=function(){var a=b.getPrototypeOf(k.createElement("foobar")),
+c=Object.prototype.hasOwnProperty;return function(g,i,p){var e=k.createElement(g),r=b.getPrototypeOf(e);if(l&&r&&a!==r&&(!e[i]||!c.call(e,i))){var u=e[i];p._supvalue=function(){return u&&u.apply?u.apply(this,arguments):u};r[i]=p.value}else p._supvalue=function(){var a=q(this,"propValue");return a&&a[i]&&a[i].apply?a[i].apply(this,arguments):a&&a[i]},v.extendValue(g,i,p.value);p.value._supvalue=p._supvalue}}(),v=function(){var d={};b.addReady(function(c,g){var r={},u=function(d){r[d]||(r[d]=a(c.getElementsByTagName(d)),
+g[0]&&a.nodeName(g[0],d)&&(r[d]=r[d].add(g)))};a.each(d,function(a,d){u(a);!d||!d.forEach?b.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){r[a].each(d)})});r=null});var c,g=a([]),i=function(b,g){d[b]?d[b].push(g):d[b]=[g];a.isDOMReady&&(c||a(k.getElementsByTagName(b))).each(g)};return{createTmpCache:function(d){a.isDOMReady&&(c=c||a(k.getElementsByTagName(d)));return c||g},flushTmpCache:function(){c=null},content:function(d,c){i(d,function(){var d=a.attr(this,c);null!=d&&a.attr(this,
+c,d)})},createElement:function(a,d){i(a,d)},extendValue:function(d,c,b){i(d,function(){a(this).each(function(){q(this,"propValue",{})[c]=this[c];this[c]=b})})}}}(),e=function(a,c){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(b,{getID:function(){var d=(new Date).getTime();return function(c){var c=a(c),b=c.attr("id");b||(d++,b="ID-"+d,c.attr("id",b));
+return b}}(),extendUNDEFProp:function(d,c){a.each(c,function(a,c){a in d||(d[a]=c)})},createPropDefault:e,data:q,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(c,b,i){if((c=(a[d](c,"events")||{})[b])&&1<c.length)b=c.pop(),i||(i="bind"),"bind"==i&&c.delegateCount?c.splice(c.delegateCount,0,b):c.unshift(b)}}(),addShadowDom:function(){var d,c,b,i,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(k).height(),this.width=a(k).width(),setInterval(function(){var d=
+a(k).height(),c=a(k).width();if(d!=e.height||c!=e.width)e.height=d,e.width=c,i({type:"docresize"})},400)}};i=function(i){clearTimeout(d);d=setTimeout(function(){if("resize"==i.type){var d=a(h).width(),u=a(h).width();if(u==c&&d==b)return;c=u;b=d;e.height=a(k).height();e.width=a(k).width()}a.event.trigger("updateshadowdom")},40)};a(h).bind("resize",i);a.event.customEvent.updateshadowdom=!0;return function(d,c,b){b=b||{};d.jquery&&(d=d[0]);c.jquery&&(c=c[0]);var g=a.data(d,z)||a.data(d,z,{}),i=a.data(c,
+z)||a.data(c,z,{}),f={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];f=a.data(b.shadowFocusElement,z)||a.data(b.shadowFocusElement,z,f)}}else b.shadowFocusElement=c;g.hasShadow=c;f.nativeElement=i.nativeElement=d;f.shadowData=i.shadowData=g.shadowData={nativeElement:d,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){q(this,"shadowData",i.shadowData)});if(b.data)f.shadowData.data=
+i.shadowData.data=g.shadowData.data=b.data;b=null;e.start()}}(),propTypes:{standard:function(a){e(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){e(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var d=k.createElement("a");d.style.display="none";return function(c,b){e(c);if(!c.prop)c.prop=
{set:function(a){c.attr.set.call(this,a)},get:function(){var c=this.getAttribute(b),e;if(null==c)return"";d.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(d).insertAfter(this),e=d.getAttribute("href",4)}catch(f){e=d.getAttribute("href",4)}a(d).detach()}return e||d.href}}}}(),enumarated:function(a){e(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,c)},get:function(){var c=(a.attr.get.call(this)||"").toLowerCase();if(!c||-1==a.limitedTo.indexOf(c))c=a.defaultValue;return c}}}},
-reflectProperties:function(d,c){"string"==typeof c&&(c=c.split(f));c.forEach(function(c){b.defineNodeNamesProperty(d,c,{prop:{set:function(d){a.attr(this,c,d)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(d,c,h){k[c]=!0;if(h.reflect)b.propTypes[h.propType||"standard"](h,c);["prop","attr","removeAttr"].forEach(function(e){var f=h[e];f&&(f="prop"===e?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),w[e](d,c,f),"*"!=d&&b.cfg.extendNative&&"prop"==e&&f.value&&
-a.isFunction(f.value)&&o(d,c,f),h[e]=f)});h.initAttr&&u.content(d,c);return h},defineNodeNameProperties:function(a,c,h,e){for(var f in c)!e&&c[f].initAttr&&u.createTmpCache(a),h&&(c[f][h]?b.log("override: "+a+"["+f+"] for "+h):(c[f][h]={},["value","set","get"].forEach(function(a){a in c[f]&&(c[f][h][a]=c[f][a],delete c[f][a])}))),c[f]=b.defineNodeNameProperty(a,f,c[f]);e||u.flushTmpCache();return c},createElement:function(d,c,h){var e;a.isFunction(c)&&(c={after:c});u.createTmpCache(d);c.before&&u.createElement(d,
-c.before);h&&(e=b.defineNodeNameProperties(d,h,!1,!0));c.after&&u.createElement(d,c.after);u.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,c,b,e){"string"==typeof d&&(d=d.split(f));a.isFunction(b)&&(b={set:b});d.forEach(function(a){x[a]||(x[a]={});"string"==typeof c&&(c=c.split(f));b.initAttr&&u.createTmpCache(a);c.forEach(function(c){x[a][c]||(x[a][c]=[],k[c]=!0);if(b.set){if(e)b.set.only=e;x[a][c].push(b.set)}b.initAttr&&u.content(a,c)});u.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,
-c,e){e||(e={});if(a.isFunction(e))e.set=e;b.defineNodeNamesProperty(d,c,{attr:{set:function(a){this.setAttribute(c,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?m:c}},removeAttr:{value:function(){this.removeAttribute(c);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,c,b){if(a.nodeName){if(b===m)return a=a.attributes[c]||{},b=a.specified?a.value:null,null==b?m:b;"boolean"==typeof b?b?a.setAttribute(c,c):
-a.removeAttribute(c):a.setAttribute(c,b)}},activeLang:function(){var d=[],c={},e,f,x=/:\/\/|^\.*\//,g=function(c,d,e){return d&&e&&-1!==a.inArray(d,e.availabeLangs||[])?(c.loading=!0,e=e.langSrc,x.test(e)||(e=b.cfg.basePath+e),b.loader.loadScript(e+d+".js",function(){c.langObj[d]?(c.loading=!1,t(c,!0)):a(function(){c.langObj[d]&&t(c,!0);c.loading=!1})}),!0):!1},q=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},t=function(a,c){if(a.activeLang!=e&&a.activeLang!==f){var b=r[a.module].options;
-if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),q(a.module);else if(!c&&!g(a,e,b)&&!g(a,f,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),q(a.module)}};return function(b){if("string"==typeof b&&b!==e)e=b,f=e.split("-")[0],e==f&&(f=!1),a.each(d,function(a,b){t(b)});else if("object"==typeof b)if(b.register)c[b.register]||(c[b.register]=[]),c[b.register].push(b),b.callback();else{if(!b.activeLang)b.activeLang="";d.push(b);t(b)}return e}}()});
-a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){b[a]=function(a,d,e,g){"string"==typeof a&&(a=a.split(f));var q={};a.forEach(function(a){q[a]=b[c](a,d,e,g)});return q}});b.isReady("webshimLocalization",!0)});
-(function(a,b){var g=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<g)&&(!a.browser.msie||12>g&&7<g)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(g,f){a.each(l,function(b,x){for(var y=a(b,g).add(f.filter(b)),k=0,l=y.length;k<l;k++)m(y[k],x)});if(g===b){var s=b.getElementsByTagName("header")[0],k=b.getElementsByTagName("footer"),p=k.length;
-s&&!a(s).closest("section, article")[0]&&m(s,"banner");p&&(s=k[p-1],a(s).closest("section, article")[0]||m(s,"contentinfo"))}})}})(jQuery,document);
-(function(a,b,g){var l=b.audio&&b.video,m=!1,r=g.cfg.mediaelement,f=g.bugs,s=function(){g.ready("mediaelement-swf",function(){if(!g.mediaelement.createSWF)g.modules["mediaelement-swf"].test=a.noop,g.reTest(["mediaelement-swf"],l)})},k;if(l){var p=document.createElement("video");b.videoBuffered="buffered"in p;m="loop"in p;g.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));b.videoBuffered||(g.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
-test:b.videoBuffered,d:["dom-support"]}),g.reTest("mediaelement-native-fix"))}if(l&&!r.preferFlash){var w=function(b){var f=b.target.parentNode;!r.preferFlash&&(a(b.target).is("audio, video")||f&&a("source:last",f)[0]==b.target)&&g.ready("DOM mediaelement",function(){k&&s();g.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){k&&!r.preferFlash&&g.mediaelement.createSWF&&!a(b.target).closest("audio, video").is(".nonnative-api-active")?(r.preferFlash=!0,document.removeEventListener("error",
-w,!0),a("audio, video").mediaLoad(),g.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+b.target.src)):k||document.removeEventListener("error",w,!0)},20)})})};document.addEventListener("error",w,!0);a("audio, video").each(function(){this.error&&w({target:this})})}f.track=!1;b.track&&function(){if(!f.track)f.track="number"!=typeof a("<track />")[0].readyState;if(!f.track)try{new TextTrackCue(2,3,"")}catch(b){try{new TextTrackCue("",2,3,"","",!1);var k=TextTrackCue;
-window.TextTrackCue=function(a,b,d,c,f,i){3!=arguments.length&&g.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");return 4<arguments.length?new k(a,b,d,c,f||"",i||!1):new k("",a,b,d,"",!1)}}catch(l){f.track=!0}}var m=g.cfg.track,n=function(b){a(b.target).filter("track").each(j)},j=function(){if(f.track||!m.override&&3==a.prop(this,"readyState"))m.override=!0,g.reTest("track"),document.removeEventListener("error",n,!0),this&&a.nodeName(this,"track")?
-g.error("track support was overwritten. Please check your vtt including your vtt mime-type"):g.info("track support was overwritten. due to bad browser support")},o=function(){document.addEventListener("error",n,!0);f.track?j():a("track").each(j)};m.override||(g.isReady("track")?o():a(o))}();g.register("mediaelement-core",function(a,g,p,v,n){k=swfobject.hasFlashPlayerVersion("9.0.115");var j=g.mediaelement,o=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=j.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},u=!k&&"postMessage"in p&&l,e=function(){var b;return function(){!b&&u&&(b=!0,g.loader.loadScript("https://www.youtube.com/player_api"),a(function(){g.polyfill("mediaelement-yt")}))}}(),d=function(){k?s():e()};
-g.addPolyfill("mediaelement-yt",{test:!u,d:["dom-support"]});j.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","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"]}};j.mimeTypes.source=a.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(j.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=
-a,!1});return d};j.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=v.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)});else{var c=[],d=b[0].nodeName.toLowerCase(),e=o(b,d);e.src?c.push(e):a("source",b).each(function(){e=o(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=
-function(b,c){return this.each(function(){c!==n&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));j.srces(this,b);a(this).mediaLoad()})};j.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(",");j.canThirdPlaySrces=function(b,c){var d="";if(k||u)b=a(b),c=c||j.srces(b),a.each(c,function(a,b){if(b.container&&
-b.src&&(k&&-1!=j.swfMimeTypes.indexOf(b.container)||u&&"video/youtube"==b.container))return d=b,!1});return d};var c={};j.canNativePlaySrces=function(b,d){var e="";if(l){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!c[f])return e;d=d||j.srces(b);a.each(d,function(a,d){if(d.type&&c[f].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};j.setError=function(b,c){c||(c="can't play sources");a(b).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&
-a(b).trigger("mediaerror")},1)};var h=function(){var a;return function(b,c,f){g.ready(k?"mediaelement-swf":"mediaelement-yt",function(){j.createSWF?j.createSWF(b,c,f):a||(a=!0,d(),h(b,c,f))});!a&&u&&!j.createSWF&&e()}}(),i=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=j.canThirdPlaySrces(a,d))?h(a,c,b):e?j.setError(a,!1):i(a,b,!1,d,!0):(c=j.canNativePlaySrces(a,d))?b&&"third"==b.isActive&&j.setActive(a,"html5",b):e?(j.setError(a,!1),b&&"third"==b.isActive&&j.setActive(a,"html5",b)):i(a,
-b,!0,d,!0)},w=/^(?:embed|object|datalist)$/i,G=function(b,c){var d=g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{}),e=j.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||w.test(f.nodeName||"")))c=c||g.data(b,"mediaelement"),i(b,c,r.preferFlash||n,e)};a(v).bind("ended",function(b){var c=g.data(b.target,"mediaelement");(!m||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,
-"loop")&&a(b.target).prop("currentTime",0).play()},1)});m||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var d=g.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");G(this,a);l&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});c[b]=g.defineNodeNameProperty(b,"canPlayType",{prop:{value:function(d){var e="";l&&c[b].prop._supvalue&&(e=c[b].prop._supvalue.call(this,d),"no"==
-e&&(e=""));!e&&k&&(d=a.trim((d||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){G(a);a=null},9)}});p=function(){g.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<g.browserVersion&&a.prop(this,"paused")&&
-!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():G(this);if(l){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",
-function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};b.track&&!f.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(g.isReady("mediaelement-core",!0),p(),g.ready("WINDOWLOAD mediaelement",d)):g.ready("mediaelement-swf",p);a(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
-jQuery.webshims.register("mediaelement-swf",function(a,b,g,l,m,r){var f=b.mediaelement,s=g.swfobject,k=Modernizr.audio&&Modernizr.video,p=s.hasFlashPlayerVersion("9.0.115"),w=0,g={paused:!0,ended:!1,currentSrc:"",duration:g.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)b.error("buffered index size error");else return 0},end:function(a){if(a)b.error("buffered index size error");else return 0},length:0}},x=Object.keys(g),y={currentTime:0,volume:1,
-muted:!1};Object.keys(y);var C=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:m},g,y),v=/^jwplayer-/,n=function(a){if(a=l.getElementById(a.replace(v,"")))return a=b.data(a,"mediaelement"),"third"==a.isActive?a:null},j=function(a){return(a=b.data(a,"mediaelement"))&&"third"==a.isActive?a:null},o=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,m,b)},u=r.playerPath||b.cfg.basePath+
-"jwplayer/"+(r.playerName||"player.swf"),e=r.pluginPath||b.cfg.basePath+"swf/jwwebshims.swf";b.extendUNDEFProp(r.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});b.extendUNDEFProp(r.jwVars,{screencolor:"ffffffff"});b.extendUNDEFProp(r.jwAttrs,{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&&
-b.duration!=b._lastDuration?(o(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&f.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,o(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,o(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
-{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});f.jwEvents={View:{PLAY:function(a){var b=n(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;o(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var e=n(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=
-!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",m,e._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:n(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=
-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&&o(b._elem,"durationchange");o(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=n(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;o(b._elem,"timeupdate")}},STATE:function(a){var b=
-n(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);o(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;o(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,o(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,o(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=n(a.id);b&&f.setError(b._elem,a.message)},SEEK:function(a){var b=
-n(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,o(b._elem,"timeupdate")}},VOLUME:function(a){var b=n(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,o(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=n(a.id);if(b&&b.muted!=a.state)b.muted=a.state,o(b._elem,"volumechange")}}}};var h=function(b){var c=!0;a.each(f.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
-"jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},i=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=[]},z=function(b){b&&(b._ppFlag===m&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===m||!b.paused))try{a(b._elem).play()}catch(c){}},1)},G=function(b){if(b&&
-"video"==b._elemNodeName){var c,d,e,f,g,h,i,j,k=function(k,l){if(l&&k&&!(1>l||1>k||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=k,g=l,clearTimeout(i),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){h=h||a(b._elem).getShadowElement();var m;d&&!e?(m=h.height(),k*=m/l,l=m):!d&&e&&(m=h.width(),l*=m/k,k=m);j=!0;setTimeout(function(){j=!1},9);h.css({width:k,height:l})}},l=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,
-"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(i);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(k(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;
-k(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(i),i=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){k(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",l).bind("swfstageresize updatemediaelementdimensions",function(){j||k(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
-l();a.prop(b._elem,"readyState")&&k(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};f.playerResize=function(b){b&&(b=l.getElementById(b.replace(v,"")))&&a(b).triggerHandler("swfstageresize")};a(l).bind("emptied",function(a){a=j(a.target);z(a)});var q;f.jwPlayerReady=function(c){var d=n(c.id),e=0,f=function(){if(!(9<e))if(e++,h(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var g=parseFloat(c.version,10);(5.6>g||6<=g)&&b.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=
-!0;d.tryedReframeing=0;i(d);z(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,9*e),2<e&&9>d.tryedReframeing&&(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(q);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);f()}};var t=a.noop;if(k){var D={play:1,playing:1},
-A="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),B=A.map(function(a){return a+".webshimspolyfill"}).join(" "),I=function(c){var d=b.data(c.target,"mediaelement");d&&(c.originalEvent&&c.originalEvent.type===c.type)==("third"==d.activating)&&(c.stopImmediatePropagation(),D[c.type]&&d.isActive!=d.activating&&a(c.target).pause())},t=function(c){a(c).unbind(B).bind(B,I);A.forEach(function(a){b.moveToFirstEvent(c,a)})};t(l)}f.setActive=function(c,d,
+reflectProperties:function(d,c){"string"==typeof c&&(c=c.split(f));c.forEach(function(c){b.defineNodeNamesProperty(d,c,{prop:{set:function(b){a.attr(this,c,b)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(d,c,g){j[c]=!0;if(g.reflect)b.propTypes[g.propType||"standard"](g,c);["prop","attr","removeAttr"].forEach(function(e){var f=g[e];f&&(f="prop"===e?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),w[e](d,c,f),"*"!=d&&b.cfg.extendNative&&"prop"==e&&f.value&&
+a.isFunction(f.value)&&n(d,c,f),g[e]=f)});g.initAttr&&v.content(d,c);return g},defineNodeNameProperties:function(a,c,g,e){for(var f in c)!e&&c[f].initAttr&&v.createTmpCache(a),g&&(c[f][g]?b.log("override: "+a+"["+f+"] for "+g):(c[f][g]={},["value","set","get"].forEach(function(a){a in c[f]&&(c[f][g][a]=c[f][a],delete c[f][a])}))),c[f]=b.defineNodeNameProperty(a,f,c[f]);e||v.flushTmpCache();return c},createElement:function(d,c,g){var e;a.isFunction(c)&&(c={after:c});v.createTmpCache(d);c.before&&v.createElement(d,
+c.before);g&&(e=b.defineNodeNameProperties(d,g,!1,!0));c.after&&v.createElement(d,c.after);v.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,c,g,e){"string"==typeof b&&(b=b.split(f));a.isFunction(g)&&(g={set:g});b.forEach(function(a){y[a]||(y[a]={});"string"==typeof c&&(c=c.split(f));g.initAttr&&v.createTmpCache(a);c.forEach(function(c){y[a][c]||(y[a][c]=[],j[c]=!0);if(g.set){if(e)g.set.only=e;y[a][c].push(g.set)}g.initAttr&&v.content(a,c)});v.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,
+c,g){g||(g={});if(a.isFunction(g))g.set=g;b.defineNodeNamesProperty(d,c,{attr:{set:function(a){this.setAttribute(c,a);g.set&&g.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?m:c}},removeAttr:{value:function(){this.removeAttribute(c);g.set&&g.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:g.initAttr||!1})},contentAttr:function(a,c,b){if(a.nodeName){if(b===m)return a=a.attributes[c]||{},b=a.specified?a.value:null,null==b?m:b;"boolean"==typeof b?b?a.setAttribute(c,c):
+a.removeAttribute(c):a.setAttribute(c,b)}},activeLang:function(){var d=[],c={},e,f,y=/:\/\/|^\.*\//,h=function(c,d,e){return d&&e&&-1!==a.inArray(d,e.availabeLangs||[])?(c.loading=!0,e=e.langSrc,y.test(e)||(e=b.cfg.basePath+e),b.loader.loadScript(e+d+".js",function(){c.langObj[d]?(c.loading=!1,u(c,!0)):a(function(){c.langObj[d]&&u(c,!0);c.loading=!1})}),!0):!1},r=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},u=function(a,c){if(a.activeLang!=e&&a.activeLang!==f){var b=s[a.module].options;
+if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),r(a.module);else if(!c&&!h(a,e,b)&&!h(a,f,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),r(a.module)}};return function(b){if("string"==typeof b&&b!==e)e=b,f=e.split("-")[0],e==f&&(f=!1),a.each(d,function(a,b){u(b)});else if("object"==typeof b)if(b.register)c[b.register]||(c[b.register]=[]),c[b.register].push(b),b.callback();else{if(!b.activeLang)b.activeLang="";d.push(b);u(b)}return e}}()});
+a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){b[a]=function(a,d,e,y){"string"==typeof a&&(a=a.split(f));var r={};a.forEach(function(a){r[a]=b[c](a,d,e,y)});return r}});b.isReady("webshimLocalization",!0)});
+(function(a,b){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(h,f){a.each(k,function(b,y){for(var A=a(b,h).add(f.filter(b)),j=0,k=A.length;j<k;j++)m(A[j],y)});if(h===b){var t=b.getElementsByTagName("header")[0],j=b.getElementsByTagName("footer"),o=j.length;
+t&&!a(t).closest("section, article")[0]&&m(t,"banner");o&&(t=j[o-1],a(t).closest("section, article")[0]||m(t,"contentinfo"))}})}})(jQuery,document);
+(function(a,b,h){var k=b.audio&&b.video,m=!1,s=h.cfg.mediaelement,f=h.bugs,t=function(){h.ready("mediaelement-swf",function(){if(!h.mediaelement.createSWF)h.modules["mediaelement-swf"].test=a.noop,h.reTest(["mediaelement-swf"],k)})},j;if(k){var o=document.createElement("video");b.videoBuffered="buffered"in o;m="loop"in o;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));b.videoBuffered||(h.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
+test:b.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(k&&!s.preferFlash){var w=function(b){var f=b.target.parentNode;!s.preferFlash&&(a(b.target).is("audio, video")||f&&a("source:last",f)[0]==b.target)&&h.ready("DOM mediaelement",function(){j&&t();h.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){j&&!s.preferFlash&&h.mediaelement.createSWF&&!a(b.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error",
+w,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+b.target.src)):j||document.removeEventListener("error",w,!0)},20)})})};document.addEventListener("error",w,!0);a("audio, video").each(function(){this.error&&w({target:this})})}f.track=!1;b.track&&function(){if(!f.track)f.track="number"!=typeof a("<track />")[0].readyState;if(!f.track)try{new TextTrackCue(2,3,"")}catch(b){f.track=!0}var j=h.cfg.track,k=function(b){a(b.target).filter("track").each(m)},
+m=function(){if(f.track||!j.override&&3==a.prop(this,"readyState"))j.override=!0,h.reTest("track"),document.removeEventListener("error",k,!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")},q=function(){document.addEventListener("error",k,!0);f.track?m():a("track").each(m)};j.override||(h.isReady("track")?q():a(q))}();h.register("mediaelement-core",function(a,
+h,o,z,q){j=swfobject.hasFlashPlayerVersion("9.0.115");var l=h.mediaelement,n=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},v=!j&&"postMessage"in o&&k,e=
+function(){var b;return function(){!b&&v&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),d=function(){j?t():e()};h.addPolyfill("mediaelement-yt",{test:!v,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",
+"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?")||
+-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=z.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)});
+else{var c=[],d=b[0].nodeName.toLowerCase(),e=n(b,d);e.src?c.push(e):a("source",b).each(function(){e=n(this,d);e.src&&c.push(e)});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(",");
+l.canThirdPlaySrces=function(b,c){var d="";if(j||v)b=a(b),c=c||l.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(j&&-1!=l.swfMimeTypes.indexOf(b.container)||v&&"video/youtube"==b.container))return d=b,!1});return d};var c={};l.canNativePlaySrces=function(b,d){var e="";if(k){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!c[f])return e;d=d||l.srces(b);a.each(d,function(a,d){if(d.type&&c[f].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};l.setError=function(b,c){c||(c="can't play sources");
+a(b).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var g=function(){var a;return function(b,c,f){h.ready(j?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(b,c,f):a||(a=!0,d(),g(b,c,f))});!a&&v&&!l.createSWF&&e()}}(),i=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,d))?g(a,c,b):e?l.setError(a,!1):i(a,b,!1,d,!0):(c=l.canNativePlaySrces(a,d))?b&&"third"==
+b.isActive&&l.setActive(a,"html5",b):e?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):i(a,b,!0,d,!0)},p=/^(?:embed|object|datalist)$/i,w=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||p.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),i(b,c,s.preferFlash||q,e)};a(z).bind("ended",function(b){var c=h.data(b.target,"mediaelement");
+(!m||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});m||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var d=h.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");w(this,a);k&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});c[b]=h.defineNodeNameProperty(b,
+"canPlayType",{prop:{value:function(d){var e="";k&&c[b].prop._supvalue&&(e=c[b].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&j&&(d=a.trim((d||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){w(a);a=null},9)}});o=function(){h.addReady(function(b,c){a("video, audio",
+b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<h.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():w(this);if(k){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
+a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};b.track&&!f.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(h.isReady("mediaelement-core",!0),o(),h.ready("WINDOWLOAD mediaelement",d)):h.ready("mediaelement-swf",o);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
+jQuery.webshims.register("mediaelement-swf",function(a,b,h,k,m,s){var f=b.mediaelement,t=h.swfobject,j=Modernizr.audio&&Modernizr.video,o=t.hasFlashPlayerVersion("9.0.115"),w=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)b.error("buffered index size error");else return 0},end:function(a){if(a)b.error("buffered index size error");else return 0},length:0}},y=Object.keys(h),A={currentTime:0,volume:1,
+muted:!1};Object.keys(A);var D=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:m},h,A),z=/^jwplayer-/,q=function(a){if(a=k.getElementById(a.replace(z,"")))return a=b.data(a,"mediaelement"),"third"==a.isActive?a:null},l=function(a){return(a=b.data(a,"mediaelement"))&&"third"==a.isActive?a:null},n=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,m,b)},v=s.playerPath||b.cfg.basePath+
+"jwplayer/"+(s.playerName||"player.swf"),e=s.pluginPath||b.cfg.basePath+"swf/jwwebshims.swf";b.extendUNDEFProp(s.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});b.extendUNDEFProp(s.jwVars,{screencolor:"ffffffff"});b.extendUNDEFProp(s.jwAttrs,{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&&
+b.duration!=b._lastDuration?(n(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&f.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,n(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,n(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
+{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});f.jwEvents={View:{PLAY:function(a){var b=q(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;n(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var x=q(b.id);if(x&&"percentage"in b&&x._bufferedEnd!=b.percentage){x.networkState=100==b.percentage?1:2;(isNaN(x.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&d(x,b);if(x.ended)x.ended=
+!1;if(x.duration){2<b.percentage&&20>b.percentage?c(3,x):20<b.percentage&&c(4,x);if(x._bufferedEnd&&x._bufferedEnd>b.percentage)x._bufferedStart=x.currentTime||0;x._bufferedEnd=b.percentage;x.buffered.length=1;if(100==b.percentage)x.networkState=1,c(4,x);a.event.trigger("progress",m,x._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:q(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=
+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&&n(b._elem,"durationchange");n(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=q(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;n(b._elem,"timeupdate")}},STATE:function(a){var b=
+q(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);n(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;n(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,n(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,n(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=q(a.id);b&&f.setError(b._elem,a.message)},SEEK:function(a){var b=
+q(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,n(b._elem,"timeupdate")}},VOLUME:function(a){var b=q(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,n(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=q(a.id);if(b&&b.muted!=a.state)b.muted=a.state,n(b._elem,"volumechange")}}}};var g=function(b){var c=!0;a.each(f.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
+"jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},i=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=[]},p=function(b){b&&(b._ppFlag===m&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===m||!b.paused))try{a(b._elem).play()}catch(c){}},1)},H=function(b){if(b&&
+"video"==b._elemNodeName){var c,d,e,f,g,h,i,l,j=function(j,k){if(k&&j&&!(1>k||1>j||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=j,g=k,clearTimeout(i),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){h=h||a(b._elem).getShadowElement();var m;d&&!e?(m=h.height(),j*=m/k,k=m):!d&&e&&(m=h.width(),k*=m/j,j=m);l=!0;setTimeout(function(){l=!1},9);h.css({width:j,height:k})}},k=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,
+"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(i);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(j(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;
+j(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(i),i=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){j(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",k).bind("swfstageresize updatemediaelementdimensions",function(){l||j(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
+k();a.prop(b._elem,"readyState")&&j(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};f.playerResize=function(b){b&&(b=k.getElementById(b.replace(z,"")))&&a(b).triggerHandler("swfstageresize")};a(k).bind("emptied",function(a){a=l(a.target);p(a)});var r;f.jwPlayerReady=function(c){var d=q(c.id),e=0,f=function(){if(!(9<e))if(e++,g(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var h=parseFloat(c.version,10);(5.6>h||6<=h)&&b.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=
+!0;d.tryedReframeing=0;i(d);p(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,9*e),2<e&&9>d.tryedReframeing&&(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(r);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);f()}};var u=a.noop;if(j){var E={play:1,playing:1},
+B="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),C=B.map(function(a){return a+".webshimspolyfill"}).join(" "),I=function(c){var d=b.data(c.target,"mediaelement");d&&(c.originalEvent&&c.originalEvent.type===c.type)==("third"==d.activating)&&(c.stopImmediatePropagation(),E[c.type]&&d.isActive!=d.activating&&a(c.target).pause())},u=function(c){a(c).unbind(C).bind(C,I);B.forEach(function(a){b.moveToFirstEvent(c,a)})};u(k)}f.setActive=function(c,d,
e){e||(e=b.data(c,"mediaelement"));if(e&&e.isActive!=d){"html5"!=d&&"third"!=d&&b.warn("wrong type for mediaelement activating: "+d);var f=b.data(c,"shadowData");e.activating=d;a(c).pause();e.isActive=d;"third"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(c).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1);a(c).trigger("mediaelementapichange")}};
-var J=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var e=b,f=d.networkState;for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&o(d._elem,"emptied")}}}(),H=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()})};f.createSWF=function(c,d,g){if(p){1>w?w=1:w++;var h=a.extend({},r.jwVars,{image:a.prop(c,"poster")||"",file:d.srcProp}),i=a(c).data("jwvars")||{};g||(g=b.data(c,"mediaelement"));if(g&&g.swfCreated)f.setActive(c,"third",g),J(g),g.currentSrc=d.srcProp,a.extend(h,i),r.changeJW(h,c,d,g,"load"),E(c,"sendEvent",["LOAD",h]);else{var j=a.prop(c,"controls"),F="jwplayer-"+b.getID(c),l=a.extend({},r.jwParams,a(c).data("jwparams")),m=c.nodeName.toLowerCase(),
-o=a.extend({},r.jwAttrs,{name:F,id:F},a(c).data("jwattrs")),n=a('<div class="polyfill-'+m+' polyfill-mediaelement" id="wrapper-'+F+'"><div id="'+F+'"></div>').css({position:"relative",overflow:"hidden"}),g=b.data(c,"mediaelement",b.objectCreate(C,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:m},_elem:{value:c},currentSrc:{value:d.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)b.error("buffered index size error");else return 0},end:function(a){if(a>=
-g.buffered.length)b.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));H(g,j);n.insertBefore(c);k&&a.extend(g,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(h,{id:F,controlbar:j?r.jwVars.controlbar||("video"==m?"over":"bottom"):"video"==m?"none":"bottom",icons:""+(j&&"video"==m)},i,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});h.plugins=h.plugins?h.plugins+(","+e):e;b.addShadowDom(c,n);t(c);f.setActive(c,
-"third",g);r.changeJW(h,c,d,g,"embed");a(c).bind("updatemediaelementdimensions updateshadowdom",function(){H(g,a.prop(c,"controls"))});G(g);s.embedSWF(u,F,"100%","100%","9.0.0",!1,h,l,o,function(d){if(d.success)g.jwapi=d.ref,j||a(d.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!d.ref.parentNode&&n[0].parentNode||"none"==d.ref.style.display)n.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed");a(d.ref).css({minHeight:"2px",minWidth:"2px",
-display:"block"})},9),q||(clearTimeout(q),q=setTimeout(function(){var c=a(d.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?b.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)&&b.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},
-1)};var E=function(a,b,c,d){return(d=d||j(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(c){var d={},e,f=function(a){"audio"==c&&("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=j(this);return b?b[a]:k&&e[a].prop._supget?e[a].prop._supget.apply(this):C[a]},writeable:!1})},g=function(a,b){f(a);delete d[a].writeable;
-d[a].set=b};g("volume",function(a){var c=j(this);if(c){if(a*=100,!isNaN(a)){var d=c.muted;(0>a||100<a)&&b.error("volume greater or less than allowed "+a/100);E(this,"sendEvent",["VOLUME",a],c);if(d)try{c.jwapi.sendEvent("mute","true")}catch(f){}a/=100;if(!(c.volume==a||"third"!=c.isActive))c.volume=a,o(c._elem,"volumechange")}}else if(e.volume.prop._supset)return e.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=j(this);if(b){if(a=!!a,E(this,"sendEvent",["mute",""+a],b),!(b.muted==
-a||"third"!=b.isActive))b.muted=a,o(b._elem,"volumechange")}else if(e.muted.prop._supset)return e.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=j(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);E(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,o(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(e.currentTime.prop._supset)return e.currentTime.prop._supset.apply(this,
-arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var b=j(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),E(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,o(b._elem,a)},1);else if(e[a].prop._supvalue)return e[a].prop._supvalue.apply(this,arguments)}}});x.forEach(f);b.onNodeNamesPropertyModify(c,"controls",function(d,e){var f=j(this);a(this)[e?"addClass":"removeClass"]("webshims-controls");
-if(f){try{E(this,e?"showControls":"hideControls",[c],f)}catch(g){b.warn("you need to generate a crossdomain.xml")}"audio"==c&&H(f,e);a(f.jwapi).attr("tabindex",e?"0":"-1")}});e=b.defineNodeNameProperties(c,d,"prop")});if(p){var K=a.cleanData,L=a.browser.msie&&9>b.browserVersion,M={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&w)for(b=0;b<c;b++)if(M[a[b].nodeName]){if("sendEvent"in a[b]){w--;try{a[b].sendEvent("play",!1)}catch(e){}}if(L)try{for(d in a[b])"function"==typeof a[b][d]&&
-(a[b][d]=null)}catch(f){}}return K.apply(this,arguments)}}k||(["poster","src"].forEach(function(a){b.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)}),b.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},
+var J=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var e=b,f=d.networkState;for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&n(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()})};f.createSWF=function(c,d,g){if(o){1>w?w=1:w++;var h=a.extend({},s.jwVars,{image:a.prop(c,"poster")||"",file:d.srcProp}),i=a(c).data("jwvars")||{};g||(g=b.data(c,"mediaelement"));if(g&&g.swfCreated)f.setActive(c,"third",g),J(g),g.currentSrc=d.srcProp,a.extend(h,i),s.changeJW(h,c,d,g,"load"),F(c,"sendEvent",["LOAD",h]);else{var l=a.prop(c,"controls"),k="jwplayer-"+b.getID(c),m=a.extend({},s.jwParams,a(c).data("jwparams")),n=c.nodeName.toLowerCase(),
+q=a.extend({},s.jwAttrs,{name:k,id:k},a(c).data("jwattrs")),p=a('<div class="polyfill-'+n+' polyfill-mediaelement" id="wrapper-'+k+'"><div id="'+k+'"></div>').css({position:"relative",overflow:"hidden"}),g=b.data(c,"mediaelement",b.objectCreate(D,{actionQueue:{value:[]},shadowElem:{value:p},_elemNodeName:{value:n},_elem:{value:c},currentSrc:{value:d.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)b.error("buffered index size error");else return 0},end:function(a){if(a>=
+g.buffered.length)b.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));G(g,l);p.insertBefore(c);j&&a.extend(g,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(h,{id:k,controlbar:l?s.jwVars.controlbar||("video"==n?"over":"bottom"):"video"==n?"none":"bottom",icons:""+(l&&"video"==n)},i,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});h.plugins=h.plugins?h.plugins+(","+e):e;b.addShadowDom(c,p);u(c);f.setActive(c,
+"third",g);s.changeJW(h,c,d,g,"embed");a(c).bind("updatemediaelementdimensions updateshadowdom",function(){G(g,a.prop(c,"controls"))});H(g);t.embedSWF(v,k,"100%","100%","9.0.0",!1,h,m,q,function(d){if(d.success)g.jwapi=d.ref,l||a(d.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!d.ref.parentNode&&p[0].parentNode||"none"==d.ref.style.display)p.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed");a(d.ref).css({minHeight:"2px",minWidth:"2px",
+display:"block"})},9),r||(clearTimeout(r),r=setTimeout(function(){var c=a(d.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?b.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)&&b.info("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||l(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(c){var d={},e,f=function(a){"audio"==c&&("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=l(this);return b?b[a]:j&&e[a].prop._supget?e[a].prop._supget.apply(this):D[a]},writeable:!1})},g=function(a,b){f(a);delete d[a].writeable;
+d[a].set=b};g("volume",function(a){var c=l(this);if(c){if(a*=100,!isNaN(a)){var d=c.muted;(0>a||100<a)&&b.error("volume greater or less than allowed "+a/100);F(this,"sendEvent",["VOLUME",a],c);if(d)try{c.jwapi.sendEvent("mute","true")}catch(f){}a/=100;if(!(c.volume==a||"third"!=c.isActive))c.volume=a,n(c._elem,"volumechange")}}else if(e.volume.prop._supset)return e.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=l(this);if(b){if(a=!!a,F(this,"sendEvent",["mute",""+a],b),!(b.muted==
+a||"third"!=b.isActive))b.muted=a,n(b._elem,"volumechange")}else if(e.muted.prop._supset)return e.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=l(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,n(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(e.currentTime.prop._supset)return e.currentTime.prop._supset.apply(this,
+arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var b=l(this);if(b)b.stopPlayPause&&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,n(b._elem,a)},1);else if(e[a].prop._supvalue)return e[a].prop._supvalue.apply(this,arguments)}}});y.forEach(f);b.onNodeNamesPropertyModify(c,"controls",function(d,e){var f=l(this);a(this)[e?"addClass":"removeClass"]("webshims-controls");
+if(f){try{F(this,e?"showControls":"hideControls",[c],f)}catch(g){b.warn("you need to generate a crossdomain.xml")}"audio"==c&&G(f,e);a(f.jwapi).attr("tabindex",e?"0":"-1")}});e=b.defineNodeNameProperties(c,d,"prop")});if(o){var K=a.cleanData,L=a.browser.msie&&9>b.browserVersion,M={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&w)for(b=0;b<c;b++)if(M[a[b].nodeName]){if("sendEvent"in a[b]){w--;try{a[b].sendEvent("play",!1)}catch(e){}}if(L)try{for(d in a[b])"function"==typeof a[b][d]&&
+(a[b][d]=null)}catch(f){}}return K.apply(this,arguments)}}j||(["poster","src"].forEach(function(a){b.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)}),b.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"))});
View
65 demos/js-webshim/minified/shims/combos/12.js
@@ -1,44 +1,43 @@
-jQuery.webshims.register("dom-extend",function(c,h,i,m,p){var w=h.modules,q=/\s*,\s*/,r={},n={},j={},u={},f={},g=c.fn.val,E=function(b,a,d,e,o){return o?g.call(c(b)):g.call(c(b),d)};c.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?g.call(this):c.prop(a,"value",b,"val",!0);if(c.isArray(b))return g.apply(this,arguments);var d=c.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(d?(e=b.call(a,e,c.prop(a,"value",p,"val",
+jQuery.webshims.register("dom-extend",function(c,h,k,m,p){var w=h.modules,q=/\s*,\s*/,r={},n={},i={},u={},f={},g=c.fn.val,E=function(b,a,d,e,o){return o?g.call(c(b)):g.call(c(b),d)};c.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?g.call(this):c.prop(a,"value",b,"val",!0);if(c.isArray(b))return g.apply(this,arguments);var d=c.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(d?(e=b.call(a,e,c.prop(a,"value",p,"val",
!0)),null==e&&(e=""),c.prop(a,"value",e,"val")):c.prop(a,"value",b,"val"))})};var x="_webshimsLib"+Math.round(1E3*Math.random()),C=function(b,a,d){b=b.jquery?b[0]:b;if(!b)return d||{};var e=c.data(b,x);d!==p&&(e||(e=c.data(b,x,{})),a&&(e[a]=d));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){c.fn[b.name]=function(){return this.map(function(){var a=C(this,
-"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){r[b]=c[b];c[b]=function(a,d,e,o,A){var k="val"==o,s=!k?r[b]:E;if(!a||!n[d]||1!==a.nodeType||!k&&o&&"attr"==b&&c.attrFn[d])return s(a,d,e,o,A);var v=(a.nodeName||"").toLowerCase(),z=j[v],B="attr"==b&&(!1===e||null===e)?"removeAttr":b,g,h,l;z||(z=j["*"]);z&&(z=z[d]);z&&(g=z[B]);if(g){if("value"==d)h=g.isVal,g.isVal=k;if("removeAttr"===B)return g.value.call(a);if(e===p)return g.get?g.get.call(a):g.value;g.set&&
-("attr"==b&&!0===e&&(e=d),l=g.set.call(a,e));if("value"==d)g.isVal=h}else l=s(a,d,e,o,A);if((e!==p||"removeAttr"===B)&&f[v]&&f[v][d]){var i;i="removeAttr"==B?!1:"prop"==B?!!e:!0;f[v][d].forEach(function(d){if(!d.only||(d.only="prop"==b)||"attr"==d.only&&"prop"!=b)d.call(a,e,i,k?"val":B,b)})}return l};u[b]=function(a,d,e){j[a]||(j[a]={});j[a][d]||(j[a][d]={});var o=j[a][d][b],f=function(a,c,v){return c&&c[a]?c[a]:v&&v[a]?v[a]:"prop"==b&&"value"==d?function(a){return e.isVal?E(this,d,a,!1,0===arguments.length):
-r[b](this,d,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var k=r[b](this,d);k&&k.apply&&(k=k.apply(this,arguments));return k}:function(a){return r[b](this,d,a)}};j[a][d][b]=e;if(e.value===p){if(!e.set)e.set=e.writeable?f("set",e,o):h.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+a;}:c.noop;if(!e.get)e.get=f("get",e,o)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=f(a,o))})}});var l=!c.browser.msie||8<parseInt(c.browser.version,10),D=function(){var b=h.getPrototypeOf(m.createElement("foobar")),
-a=Object.prototype.hasOwnProperty;return function(d,c,o){var f=m.createElement(d),k=h.getPrototypeOf(f);if(l&&k&&b!==k&&(!f[c]||!a.call(f,c))){var s=f[c];o._supvalue=function(){return s&&s.apply?s.apply(this,arguments):s};k[c]=o.value}else o._supvalue=function(){var a=C(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},t.extendValue(d,c,o.value);o.value._supvalue=o._supvalue}}(),t=function(){var b={};h.addReady(function(a,d){var k={},s=function(b){k[b]||(k[b]=c(a.getElementsByTagName(b)),
-d[0]&&c.nodeName(d[0],b)&&(k[b]=k[b].add(d)))};c.each(b,function(a,b){s(a);!b||!b.forEach?h.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){k[a].each(b)})});k=null});var a,d=c([]),e=function(d,e){b[d]?b[d].push(e):b[d]=[e];c.isDOMReady&&(a||c(m.getElementsByTagName(d))).each(e)};return{createTmpCache:function(b){c.isDOMReady&&(a=a||c(m.getElementsByTagName(b)));return a||d},flushTmpCache:function(){a=null},content:function(a,b){e(a,function(){var a=c.attr(this,b);null!=a&&c.attr(this,
+"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){r[b]=c[b];c[b]=function(a,d,e,o,A){var j="val"==o,s=!j?r[b]:E;if(!a||!n[d]||1!==a.nodeType||!j&&o&&"attr"==b&&c.attrFn[d])return s(a,d,e,o,A);var v=(a.nodeName||"").toLowerCase(),z=i[v],B="attr"==b&&(!1===e||null===e)?"removeAttr":b,g,h,l;z||(z=i["*"]);z&&(z=z[d]);z&&(g=z[B]);if(g){if("value"==d)h=g.isVal,g.isVal=j;if("removeAttr"===B)return g.value.call(a);if(e===p)return g.get?g.get.call(a):g.value;g.set&&
+("attr"==b&&!0===e&&(e=d),l=g.set.call(a,e));if("value"==d)g.isVal=h}else l=s(a,d,e,o,A);if((e!==p||"removeAttr"===B)&&f[v]&&f[v][d]){var u;u="removeAttr"==B?!1:"prop"==B?!!e:!0;f[v][d].forEach(function(d){if(!d.only||(d.only="prop"==b)||"attr"==d.only&&"prop"!=b)d.call(a,e,u,j?"val":B,b)})}return l};u[b]=function(a,d,e){i[a]||(i[a]={});i[a][d]||(i[a][d]={});var o=i[a][d][b],f=function(a,c,v){return c&&c[a]?c[a]:v&&v[a]?v[a]:"prop"==b&&"value"==d?function(a){return e.isVal?E(this,d,a,!1,0===arguments.length):
+r[b](this,d,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var j=r[b](this,d);j&&j.apply&&(j=j.apply(this,arguments));return j}:function(a){return r[b](this,d,a)}};i[a][d][b]=e;if(e.value===p){if(!e.set)e.set=e.writeable?f("set",e,o):h.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+a;}:c.noop;if(!e.get)e.get=f("get",e,o)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=f(a,o))})}});var l=!c.browser.msie||8<parseInt(c.browser.version,10),D=function(){var b=h.getPrototypeOf(m.createElement("foobar")),
+a=Object.prototype.hasOwnProperty;return function(d,c,o){var f=m.createElement(d),j=h.getPrototypeOf(f);if(l&&j&&b!==j&&(!f[c]||!a.call(f,c))){var s=f[c];o._supvalue=function(){return s&&s.apply?s.apply(this,arguments):s};j[c]=o.value}else o._supvalue=function(){var a=C(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},t.extendValue(d,c,o.value);o.value._supvalue=o._supvalue}}(),t=function(){var b={};h.addReady(function(a,d){var j={},s=function(b){j[b]||(j[b]=c(a.getElementsByTagName(b)),
+d[0]&&c.nodeName(d[0],b)&&(j[b]=j[b].add(d)))};c.each(b,function(a,b){s(a);!b||!b.forEach?h.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){j[a].each(b)})});j=null});var a,d=c([]),e=function(d,e){b[d]?b[d].push(e):b[d]=[e];c.isDOMReady&&(a||c(m.getElementsByTagName(d))).each(e)};return{createTmpCache:function(b){c.isDOMReady&&(a=a||c(m.getElementsByTagName(b)));return a||d},flushTmpCache:function(){a=null},content:function(a,b){e(a,function(){var a=c.attr(this,b);null!=a&&c.attr(this,
b,a)})},createElement:function(a,b){e(a,b)},extendValue:function(a,b,d){e(a,function(){c(this).each(function(){C(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),y=function(b,a){if(b.defaultValue===p)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}};if(!b.attr)b.attr={}};c.extend(h,{getID:function(){var b=(new Date).getTime();return function(a){var a=c(a),d=a.attr("id");d||(b++,d="ID-"+b,a.attr("id",d));
return d}}(),extendUNDEFProp:function(b,a){c.each(a,function(a,c){a in b||(b[a]=c)})},createPropDefault:y,data:C,moveToFirstEvent:function(){var b=c._data?"_data":"data";return function(a,d,e){if((a=(c[b](a,"events")||{})[d])&&1<a.length)d=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,d):a.unshift(d)}}(),addShadowDom:function(){var b,a,d,e,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=c(m).height(),this.width=c(m).width(),setInterval(function(){var a=
-c(m).height(),b=c(m).width();if(a!=f.height||b!=f.width)f.height=a,f.width=b,e({type:"docresize"})},400)}};e=function(e){clearTimeout(b);b=setTimeout(function(){if("resize"==e.type){var b=c(i).width(),s=c(i).width();if(s==a&&b==d)return;a=s;d=b;f.height=c(m).height();f.width=c(m).width()}c.event.trigger("updateshadowdom")},40)};c(i).bind("resize",e);c.event.customEvent.updateshadowdom=!0;return function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var v=c.data(a,x)||c.data(a,x,{}),e=c.data(b,
+c(m).height(),b=c(m).width();if(a!=f.height||b!=f.width)f.height=a,f.width=b,e({type:"docresize"})},400)}};e=function(e){clearTimeout(b);b=setTimeout(function(){if("resize"==e.type){var b=c(k).width(),s=c(k).width();if(s==a&&b==d)return;a=s;d=b;f.height=c(m).height();f.width=c(m).width()}c.event.trigger("updateshadowdom")},40)};c(k).bind("resize",e);c.event.customEvent.updateshadowdom=!0;return function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var v=c.data(a,x)||c.data(a,x,{}),e=c.data(b,
x)||c.data(b,x,{}),g={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];g=c.data(d.shadowFocusElement,x)||c.data(d.shadowFocusElement,x,g)}}else d.shadowFocusElement=b;v.hasShadow=b;g.nativeElement=e.nativeElement=a;g.shadowData=e.shadowData=v.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){C(this,"shadowData",e.shadowData)});if(d.data)g.shadowData.data=
e.shadowData.data=v.shadowData.data=d.data;d=null;f.start()}}(),propTypes:{standard:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){y(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var b=m.createElement("a");b.style.display="none";return function(a,d){y(a);if(!a.prop)a.prop=
{set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(d),f;if(null==a)return"";b.setAttribute("href",a+"");if(!c.support.hrefNormalized){try{c(b).insertAfter(this),f=b.getAttribute("href",4)}catch(g){f=b.getAttribute("href",4)}c(b).detach()}return f||b.href}}}}(),enumarated:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},
reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(q));a.forEach(function(a){h.defineNodeNamesProperty(b,a,{prop:{set:function(b){c.attr(this,a,b)},get:function(){return c.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,d){n[a]=!0;if(d.reflect)h.propTypes[d.propType||"standard"](d,a);["prop","attr","removeAttr"].forEach(function(e){var f=d[e];f&&(f="prop"===e?c.extend({writeable:!0},f):c.extend({},f,{writeable:!0}),u[e](b,a,f),"*"!=b&&h.cfg.extendNative&&"prop"==e&&f.value&&
c.isFunction(f.value)&&D(b,a,f),d[e]=f)});d.initAttr&&t.content(b,a);return d},defineNodeNameProperties:function(b,a,d,c){for(var f in a)!c&&a[f].initAttr&&t.createTmpCache(b),d&&(a[f][d]?h.log("override: "+b+"["+f+"] for "+d):(a[f][d]={},["value","set","get"].forEach(function(b){b in a[f]&&(a[f][d][b]=a[f][b],delete a[f][b])}))),a[f]=h.defineNodeNameProperty(b,f,a[f]);c||t.flushTmpCache();return a},createElement:function(b,a,d){var f;c.isFunction(a)&&(a={after:a});t.createTmpCache(b);a.before&&t.createElement(b,
a.before);d&&(f=h.defineNodeNameProperties(b,d,!1,!0));a.after&&t.createElement(b,a.after);t.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,a,d,e){"string"==typeof b&&(b=b.split(q));c.isFunction(d)&&(d={set:d});b.forEach(function(b){f[b]||(f[b]={});"string"==typeof a&&(a=a.split(q));d.initAttr&&t.createTmpCache(b);a.forEach(function(a){f[b][a]||(f[b][a]=[],n[a]=!0);if(d.set){if(e)d.set.only=e;f[b][a].push(d.set)}d.initAttr&&t.content(b,a)});t.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
a,d){d||(d={});if(c.isFunction(d))d.set=d;h.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?p:a}},removeAttr:{value:function(){this.removeAttribute(a);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(b,a,d){if(b.nodeName){if(d===p)return b=b.attributes[a]||{},d=b.specified?b.value:null,null==d?p:d;"boolean"==typeof d?d?b.setAttribute(a,a):
-b.removeAttribute(a):b.setAttribute(a,d)}},activeLang:function(){var b=[],a={},d,f,g=/:\/\/|^\.*\//,l=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,g.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,s(a,!0)):c(function(){a.langObj[b]&&s(a,!0);a.loading=!1})}),!0):!1},k=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},s=function(a,b){if(a.activeLang!=d&&a.activeLang!==f){var c=w[a.module].options;
-if(a.langObj[d]||f&&a.langObj[f])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[f],d),k(a.module);else if(!b&&!l(a,d,c)&&!l(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),k(a.module)}};return function(k){if("string"==typeof k&&k!==d)d=k,f=d.split("-")[0],d==f&&(f=!1),c.each(b,function(a,b){s(b)});else if("object"==typeof k)if(k.register)a[k.register]||(a[k.register]=[]),a[k.register].push(k),k.callback();else{if(!k.activeLang)k.activeLang="";b.push(k);s(k)}return d}}()});
-c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){h[b]=function(b,c,f,g){"string"==typeof b&&(b=b.split(q));var k={};b.forEach(function(b){k[b]=h[a](b,c,f,g)});return k}});h.isReady("webshimLocalization",!0)});
-(function(c,h){var i=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<i)&&(!c.browser.msie||12>i&&7<i)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(i,q){c.each(m,function(h,f){for(var g=c(h,i).add(q.filter(h)),j=0,m=g.length;j<m;j++)p(g[j],f)});if(i===h){var r=h.getElementsByTagName("header")[0],n=h.getElementsByTagName("footer"),j=n.length;
-r&&!c(r).closest("section, article")[0]&&p(r,"banner");j&&(r=n[j-1],c(r).closest("section, article")[0]||p(r,"contentinfo"))}})}})(jQuery,document);
-(function(c,h,i){var m=h.audio&&h.video,p=!1,w=i.cfg.mediaelement,q=i.bugs,r=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=c.noop,i.reTest(["mediaelement-swf"],m)})},n;if(m){var j=document.createElement("video");h.videoBuffered="buffered"in j;p="loop"in j;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
-test:h.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(m&&!w.preferFlash){var u=function(f){var g=f.target.parentNode;!w.preferFlash&&(c(f.target).is("audio, video")||g&&c("source:last",g)[0]==f.target)&&i.ready("DOM mediaelement",function(){n&&r();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!w.preferFlash&&i.mediaelement.createSWF&&!c(f.target).closest("audio, video").is(".nonnative-api-active")?(w.preferFlash=!0,document.removeEventListener("error",
-u,!0),c("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);c("audio, video").each(function(){this.error&&u({target:this})})}q.track=!1;h.track&&function(){if(!q.track)q.track="number"!=typeof c("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(f){try{new TextTrackCue("",2,3,"","",!1);var g=TextTrackCue;
-window.TextTrackCue=function(c,f,b,a,d,e){3!=arguments.length&&i.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");return 4<arguments.length?new g(c,f,b,a,d||"",e||!1):new g("",c,f,b,"",!1)}}catch(h){q.track=!0}}var j=i.cfg.track,m=function(f){c(f.target).filter("track").each(l)},l=function(){if(q.track||!j.override&&3==c.prop(this,"readyState"))j.override=!0,i.reTest("track"),document.removeEventListener("error",m,!0),this&&c.nodeName(this,"track")?
-i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},u=function(){document.addEventListener("error",m,!0);q.track?l():c("track").each(l)};j.override||(i.isReady("track")?u():c(u))}();i.register("mediaelement-core",function(c,g,j,i,u){n=swfobject.hasFlashPlayerVersion("9.0.115");var l=g.mediaelement,D=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;
-var e=a.attr("type");if(e)d.type=e,d.container=c.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=l.getTypeForSrc(d.src,b))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},t=!n&&"postMessage"in j&&m,y=function(){var a;return function(){!a&&t&&(a=!0,g.loader.loadScript("https://www.youtube.com/player_api"),c(function(){g.polyfill("mediaelement-yt")}))}}(),b=function(){n?r():y()};
-g.addPolyfill("mediaelement-yt",{test:!t,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","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=c.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(l.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=
-b,!1});return d};l.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(b)||(b=[b]),b.forEach(function(b){var c=i.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)});else{var b=[],d=a[0].nodeName.toLowerCase(),e=D(a,d);e.src?b.push(e):c("source",a).each(function(){e=D(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=
-function(a,b){return this.each(function(){b!==u&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));l.srces(this,a);c(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(",");l.canThirdPlaySrces=function(a,b){var d="";if(n||t)a=c(a),b=b||l.srces(a),c.each(b,function(a,b){if(b.container&&
-b.src&&(n&&-1!=l.swfMimeTypes.indexOf(b.container)||t&&"video/youtube"==b.container))return d=b,!1});return d};var a={};l.canNativePlaySrces=function(b,d){var e="";if(m){var b=c(b),g=(b[0].nodeName||"").toLowerCase();if(!a[g])return e;d=d||l.srces(b);c.each(d,function(c,d){if(d.type&&a[g].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};l.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",b);g.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&
-c(a).trigger("mediaerror")},1)};var d=function(){var a;return function(c,e,f){g.ready(n?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(c,e,f):a||(a=!0,b(),d(c,e,f))});!a&&t&&!l.createSWF&&y()}}(),e=function(a,b,c,f,g){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,f))?d(a,c,b):g?l.setError(a,!1):e(a,b,!1,f,!0):(c=l.canNativePlaySrces(a,f))?b&&"third"==b.isActive&&l.setActive(a,"html5",b):g?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):e(a,
-b,!0,f,!0)},o=/^(?:embed|object|datalist)$/i,A=function(a,b){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),j=l.srces(a),h=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(j.length&&h&&!(1!=h.nodeType||o.test(h.nodeName||"")))b=b||g.data(a,"mediaelement"),e(a,b,w.preferFlash||u,j)};c(i).bind("ended",function(a){var b=g.data(a.target,"mediaelement");(!p||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,
-"loop")&&c(a.target).prop("currentTime",0).play()},1)});p||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var d=g.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");A(this,a);m&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});a[b]=g.defineNodeNameProperty(b,"canPlayType",{prop:{value:function(d){var e="";m&&a[b].prop._supvalue&&(e=a[b].prop._supvalue.call(this,d),"no"==
-e&&(e=""));!e&&n&&(d=c.trim((d||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){A(a);a=null},9)}});j=function(){g.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<g.browserVersion&&c.prop(this,"paused")&&
-!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():A(this);if(m){var a,b,d=this,e=function(){var a=c.prop(d,"buffered");if(a){for(var b="",e=0,g=a.length;e<g;e++)b+=a.end(e);return b}},j=function(){var a=e();a!=b&&(b=a,c(d).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=e());clearTimeout(a);a=setTimeout(j,999)}).bind("emptied stalled mediaerror abort suspend",
-function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};h.track&&!q.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});m?(g.isReady("mediaelement-core",!0),j(),g.ready("WINDOWLOAD mediaelement",b)):g.ready("mediaelement-swf",j);c(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
-jQuery.webshims.register("details",function(c,h,i,m,p,w){var q=function(j){var h=c(j).parent("details");if(h[0]&&h.children(":first").get(0)===j)return h},r=function(j,h){var j=c(j),h=c(h),f=c.data(h[0],"summaryElement");c.data(j[0],"detailsElement",h);if(!f||j[0]!==f[0])f&&(f.hasClass("fallback-summary")?f.remove():f.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),
-c.data(h[0],"summaryElement",j),h.prop("open",h.prop("open"))};h.createElement("summary",function(){var j=q(this);if(j&&!c.data(this,"detailsElement")){var i,f,g=c.attr(this,"tabIndex")||"0";r(this,j);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
-function(g){var h=q(this);if(h){if(!f&&g.originalEvent)return f=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),f=!1;clearTimeout(i);i=setTimeout(function(){g.isDefaultPrevented()||h.prop("open",!h.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(g){if((13==g.keyCode||32==g.keyCode)&&!g.isDefaultPrevented())f=!0,g.preventDefault(),c(this).trigger("click"),f=!1}).attr({tabindex:g,role:"button"}).prepend('<span class="details-open-indicator" />');h.moveToFirstEvent(this,
-"click")}});var n;h.defineNodeNamesBooleanProperty("details","open",function(h){var i=c(c.data(this,"summaryElement"));if(i){var f=h?"removeClass":"addClass",g=c(this);if(!n&&w.animate){g.stop().css({width:"",height:""});var m={width:g.width(),height:g.height()}}i.attr("aria-expanded",""+h);g[f]("closed-details-summary").children().not(i[0])[f]("closed-details-child");!n&&w.animate&&(h={width:g.width(),height:g.height()},g.css(m).animate(h,{complete:function(){c(this).css({width:"",height:""})}}))}});
+b.removeAttribute(a):b.setAttribute(a,d)}},activeLang:function(){var b=[],a={},d,f,g=/:\/\/|^\.*\//,i=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,g.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,s(a,!0)):c(function(){a.langObj[b]&&s(a,!0);a.loading=!1})}),!0):!1},j=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},s=function(a,b){if(a.activeLang!=d&&a.activeLang!==f){var c=w[a.module].options;
+if(a.langObj[d]||f&&a.langObj[f])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[f],d),j(a.module);else if(!b&&!i(a,d,c)&&!i(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),j(a.module)}};return function(j){if("string"==typeof j&&j!==d)d=j,f=d.split("-")[0],d==f&&(f=!1),c.each(b,function(a,b){s(b)});else if("object"==typeof j)if(j.register)a[j.register]||(a[j.register]=[]),a[j.register].push(j),j.callback();else{if(!j.activeLang)j.activeLang="";b.push(j);s(j)}return d}}()});
+c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){h[b]=function(b,c,f,g){"string"==typeof b&&(b=b.split(q));var j={};b.forEach(function(b){j[b]=h[a](b,c,f,g)});return j}});h.isReady("webshimLocalization",!0)});
+(function(c,h){var k=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<k)&&(!c.browser.msie||12>k&&7<k)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(k,q){c.each(m,function(h,f){for(var g=c(h,k).add(q.filter(h)),i=0,m=g.length;i<m;i++)p(g[i],f)});if(k===h){var r=h.getElementsByTagName("header")[0],n=h.getElementsByTagName("footer"),i=n.length;
+r&&!c(r).closest("section, article")[0]&&p(r,"banner");i&&(r=n[i-1],c(r).closest("section, article")[0]||p(r,"contentinfo"))}})}})(jQuery,document);
+(function(c,h,k){var m=h.audio&&h.video,p=!1,w=k.cfg.mediaelement,q=k.bugs,r=function(){k.ready("mediaelement-swf",function(){if(!k.mediaelement.createSWF)k.modules["mediaelement-swf"].test=c.noop,k.reTest(["mediaelement-swf"],m)})},n;if(m){var i=document.createElement("video");h.videoBuffered="buffered"in i;p="loop"in i;k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
+test:h.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"))}if(m&&!w.preferFlash){var u=function(f){var g=f.target.parentNode;!w.preferFlash&&(c(f.target).is("audio, video")||g&&c("source:last",g)[0]==f.target)&&k.ready("DOM mediaelement",function(){n&&r();k.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!w.preferFlash&&k.mediaelement.createSWF&&!c(f.target).closest("audio, video").is(".nonnative-api-active")?(w.preferFlash=!0,document.removeEventListener("error",
+u,!0),c("audio, video").mediaLoad(),k.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);c("audio, video").each(function(){this.error&&u({target:this})})}q.track=!1;h.track&&function(){if(!q.track)q.track="number"!=typeof c("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(f){q.track=!0}var g=k.cfg.track,h=function(f){c(f.target).filter("track").each(i)},
+i=function(){if(q.track||!g.override&&3==c.prop(this,"readyState"))g.override=!0,k.reTest("track"),document.removeEventListener("error",h,!0),this&&c.nodeName(this,"track")?k.error("track support was overwritten. Please check your vtt including your vtt mime-type"):k.info("track support was overwritten. due to bad browser support")},u=function(){document.addEventListener("error",h,!0);q.track?i():c("track").each(i)};g.override||(k.isReady("track")?u():c(u))}();k.register("mediaelement-core",function(c,
+g,i,u,k){n=swfobject.hasFlashPlayerVersion("9.0.115");var l=g.mediaelement,D=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var e=a.attr("type");if(e)d.type=e,d.container=c.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=l.getTypeForSrc(d.src,b))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},t=!n&&"postMessage"in i&&m,y=
+function(){var a;return function(){!a&&t&&(a=!0,g.loader.loadScript("https://www.youtube.com/player_api"),c(function(){g.polyfill("mediaelement-yt")}))}}(),b=function(){n?r():y()};g.addPolyfill("mediaelement-yt",{test:!t,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",
+"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=c.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||
+-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(l.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};l.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(b)||(b=[b]),b.forEach(function(b){var c=u.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)});
+else{var b=[],d=a[0].nodeName.toLowerCase(),e=D(a,d);e.src?b.push(e):c("source",a).each(function(){e=D(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==k&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));l.srces(this,a);c(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(",");
+l.canThirdPlaySrces=function(a,b){var d="";if(n||t)a=c(a),b=b||l.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&(n&&-1!=l.swfMimeTypes.indexOf(b.container)||t&&"video/youtube"==b.container))return d=b,!1});return d};var a={};l.canNativePlaySrces=function(b,d){var e="";if(m){var b=c(b),g=(b[0].nodeName||"").toLowerCase();if(!a[g])return e;d=d||l.srces(b);c.each(d,function(c,d){if(d.type&&a[g].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};l.setError=function(a,b){b||(b="can't play sources");
+c(a).pause().data("mediaerror",b);g.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var d=function(){var a;return function(c,e,f){g.ready(n?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(c,e,f):a||(a=!0,b(),d(c,e,f))});!a&&t&&!l.createSWF&&y()}}(),e=function(a,b,c,f,g){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,f))?d(a,c,b):g?l.setError(a,!1):e(a,b,!1,f,!0):(c=l.canNativePlaySrces(a,f))?b&&"third"==
+b.isActive&&l.setActive(a,"html5",b):g?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):e(a,b,!0,f,!0)},o=/^(?:embed|object|datalist)$/i,A=function(a,b){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),i=l.srces(a),h=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(i.length&&h&&!(1!=h.nodeType||o.test(h.nodeName||"")))b=b||g.data(a,"mediaelement"),e(a,b,w.preferFlash||k,i)};c(u).bind("ended",function(a){var b=g.data(a.target,"mediaelement");
+(!p||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});p||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var d=g.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");A(this,a);m&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});a[b]=g.defineNodeNameProperty(b,
+"canPlayType",{prop:{value:function(d){var e="";m&&a[b].prop._supvalue&&(e=a[b].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&n&&(d=c.trim((d||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){A(a);a=null},9)}});i=function(){g.addReady(function(a,b){c("video, audio",
+a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<g.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():A(this);if(m){var a,b,d=this,e=function(){var a=c.prop(d,"buffered");if(a){for(var b="",e=0,g=a.length;e<g;e++)b+=a.end(e);return b}},i=function(){var a=e();a!=b&&(b=a,c(d).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==
+c.type&&(b=e());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};h.track&&!q.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});m?(g.isReady("mediaelement-core",!0),i(),g.ready("WINDOWLOAD mediaelement",b)):g.ready("mediaelement-swf",i);c(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
+jQuery.webshims.register("details",function(c,h,k,m,p,w){var q=function(i){var h=c(i).parent("details");if(h[0]&&h.children(":first").get(0)===i)return h},r=function(i,h){var i=c(i),h=c(h),f=c.data(h[0],"summaryElement");c.data(i[0],"detailsElement",h);if(!f||i[0]!==f[0])f&&(f.hasClass("fallback-summary")?f.remove():f.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),
+c.data(h[0],"summaryElement",i),h.prop("open",h.prop("open"))};h.createElement("summary",function(){var i=q(this);if(i&&!c.data(this,"detailsElement")){var k,f,g=c.attr(this,"tabIndex")||"0";r(this,i);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
+function(g){var h=q(this);if(h){if(!f&&g.originalEvent)return f=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),f=!1;clearTimeout(k);k=setTimeout(function(){g.isDefaultPrevented()||h.prop("open",!h.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(g){if((13==g.keyCode||32==g.keyCode)&&!g.isDefaultPrevented())f=!0,g.preventDefault(),c(this).trigger("click"),f=!1}).attr({tabindex:g,role:"button"}).prepend('<span class="details-open-indicator" />');h.moveToFirstEvent(this,
+"click")}});var n;h.defineNodeNamesBooleanProperty("details","open",function(h){var k=c(c.data(this,"summaryElement"));if(k){var f=h?"removeClass":"addClass",g=c(this);if(!n&&w.animate){g.stop().css({width:"",height:""});var m={width:g.width(),height:g.height()}}k.attr("aria-expanded",""+h);g[f]("closed-details-summary").children().not(k[0])[f]("closed-details-child");!n&&w.animate&&(h={width:g.width(),height:g.height()},g.css(m).animate(h,{complete:function(){c(this).css({width:"",height:""})}}))}});
h.createElement("details",function(){n=!0;var h=c.data(this,"summaryElement");h||(h=c("> summary:first-child",this),h[0]?r(h,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+w.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));n=!1})});
View
99 demos/js-webshim/minified/shims/combos/16.js
@@ -1,61 +1,60 @@
-jQuery.webshims.register("dom-extend",function(a,h,g,j,m){var t=h.modules,o=/\s*,\s*/,q={},p={},n={},u={},k={},v=a.fn.val,z=function(c,b,d,i,A){return A?v.call(a(c)):v.call(a(c),d)};a.fn.val=function(c){var b=this[0];arguments.length&&null==c&&(c="");if(!arguments.length)return!b||1!==b.nodeType?v.call(this):a.prop(b,"value",c,"val",!0);if(a.isArray(c))return v.apply(this,arguments);var d=a.isFunction(c);return this.each(function(i){b=this;1===b.nodeType&&(d?(i=c.call(b,i,a.prop(b,"value",m,"val",
+jQuery.webshims.register("dom-extend",function(a,h,g,j,m){var u=h.modules,p=/\s*,\s*/,r={},q={},n={},v={},l={},w=a.fn.val,z=function(c,b,d,i,x){return x?w.call(a(c)):w.call(a(c),d)};a.fn.val=function(c){var b=this[0];arguments.length&&null==c&&(c="");if(!arguments.length)return!b||1!==b.nodeType?w.call(this):a.prop(b,"value",c,"val",!0);if(a.isArray(c))return w.apply(this,arguments);var d=a.isFunction(c);return this.each(function(i){b=this;1===b.nodeType&&(d?(i=c.call(b,i,a.prop(b,"value",m,"val",
!0)),null==i&&(i=""),a.prop(b,"value",i,"val")):a.prop(b,"value",c,"val"))})};var s="_webshimsLib"+Math.round(1E3*Math.random()),y=function(c,b,d){c=c.jquery?c[0]:c;if(!c)return d||{};var i=a.data(c,s);d!==m&&(i||(i=a.data(c,s,{})),b&&(i[b]=d));return b?i&&i[b]:i};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(c){a.fn[c.name]=function(){return this.map(function(){var a=y(this,
-"shadowData");return a&&a[c.prop]||this})}});["removeAttr","prop","attr"].forEach(function(c){q[c]=a[c];a[c]=function(b,d,i,A,e){var r="val"==A,w=!r?q[c]:z;if(!b||!p[d]||1!==b.nodeType||!r&&A&&"attr"==c&&a.attrFn[d])return w(b,d,i,A,e);var B=(b.nodeName||"").toLowerCase(),f=n[B],C="attr"==c&&(!1===i||null===i)?"removeAttr":c,h,v,g;f||(f=n["*"]);f&&(f=f[d]);f&&(h=f[C]);if(h){if("value"==d)v=h.isVal,h.isVal=r;if("removeAttr"===C)return h.value.call(b);if(i===m)return h.get?h.get.call(b):h.value;h.set&&
-("attr"==c&&!0===i&&(i=d),g=h.set.call(b,i));if("value"==d)h.isVal=v}else g=w(b,d,i,A,e);if((i!==m||"removeAttr"===C)&&k[B]&&k[B][d]){var x;x="removeAttr"==C?!1:"prop"==C?!!i:!0;k[B][d].forEach(function(a){if(!a.only||(a.only="prop"==c)||"attr"==a.only&&"prop"!=c)a.call(b,i,x,r?"val":C,c)})}return g};u[c]=function(b,d,i){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var f=n[b][d][c],e=function(a,b,B){return b&&b[a]?b[a]:B&&B[a]?B[a]:"prop"==c&&"value"==d?function(a){return i.isVal?z(this,d,a,!1,0===arguments.length):
-q[c](this,d,a)}:"prop"==c&&"value"==a&&i.value.apply?function(a){var b=q[c](this,d);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return q[c](this,d,a)}};n[b][d][c]=i;if(i.value===m){if(!i.set)i.set=i.writeable?e("set",i,f):h.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:a.noop;if(!i.get)i.get=e("get",i,f)}["value","get","set"].forEach(function(a){i[a]&&(i["_sup"+a]=e(a,f))})}});var l=!a.browser.msie||8<parseInt(a.browser.version,10),e=function(){var a=h.getPrototypeOf(j.createElement("foobar")),
-b=Object.prototype.hasOwnProperty;return function(d,i,e){var k=j.createElement(d),r=h.getPrototypeOf(k);if(l&&r&&a!==r&&(!k[i]||!b.call(k,i))){var w=k[i];e._supvalue=function(){return w&&w.apply?w.apply(this,arguments):w};r[i]=e.value}else e._supvalue=function(){var a=y(this,"propValue");return a&&a[i]&&a[i].apply?a[i].apply(this,arguments):a&&a[i]},f.extendValue(d,i,e.value);e.value._supvalue=e._supvalue}}(),f=function(){var c={};h.addReady(function(b,d){var r={},i=function(c){r[c]||(r[c]=a(b.getElementsByTagName(c)),
-d[0]&&a.nodeName(d[0],c)&&(r[c]=r[c].add(d)))};a.each(c,function(a,c){i(a);!c||!c.forEach?h.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){r[a].each(c)})});r=null});var b,d=a([]),i=function(d,i){c[d]?c[d].push(i):c[d]=[i];a.isDOMReady&&(b||a(j.getElementsByTagName(d))).each(i)};return{createTmpCache:function(c){a.isDOMReady&&(b=b||a(j.getElementsByTagName(c)));return b||d},flushTmpCache:function(){b=null},content:function(c,b){i(c,function(){var c=a.attr(this,b);null!=c&&a.attr(this,
-b,c)})},createElement:function(a,c){i(a,c)},extendValue:function(c,b,d){i(c,function(){a(this).each(function(){y(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),x=function(a,b){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(h,{getID:function(){var c=(new Date).getTime();return function(b){var b=a(b),d=b.attr("id");d||(c++,d="ID-"+c,b.attr("id",d));
-return d}}(),extendUNDEFProp:function(c,b){a.each(b,function(a,b){a in c||(c[a]=b)})},createPropDefault:x,data:y,moveToFirstEvent:function(){var c=a._data?"_data":"data";return function(b,d,i){if((b=(a[c](b,"events")||{})[d])&&1<b.length)d=b.pop(),i||(i="bind"),"bind"==i&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(){var c,b,d,i,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(j).height(),this.width=a(j).width(),setInterval(function(){var c=
-a(j).height(),b=a(j).width();if(c!=e.height||b!=e.width)e.height=c,e.width=b,i({type:"docresize"})},400)}};i=function(i){clearTimeout(c);c=setTimeout(function(){if("resize"==i.type){var c=a(g).width(),f=a(g).width();if(f==b&&c==d)return;b=f;d=c;e.height=a(j).height();e.width=a(j).width()}a.event.trigger("updateshadowdom")},40)};a(g).bind("resize",i);a.event.customEvent.updateshadowdom=!0;return function(c,b,d){d=d||{};c.jquery&&(c=c[0]);b.jquery&&(b=b[0]);var i=a.data(c,s)||a.data(c,s,{}),f=a.data(b,
-s)||a.data(b,s,{}),k={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];k=a.data(d.shadowFocusElement,s)||a.data(d.shadowFocusElement,s,k)}}else d.shadowFocusElement=b;i.hasShadow=b;k.nativeElement=f.nativeElement=c;k.shadowData=f.shadowData=i.shadowData={nativeElement:c,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){y(this,"shadowData",f.shadowData)});if(d.data)k.shadowData.data=
-f.shadowData.data=i.shadowData.data=d.data;d=null;e.start()}}(),propTypes:{standard:function(a){x(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){x(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var c=j.createElement("a");c.style.display="none";return function(b,d){x(b);if(!b.prop)b.prop=
-{set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(d),e;if(null==b)return"";c.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(c).insertAfter(this),e=c.getAttribute("href",4)}catch(f){e=c.getAttribute("href",4)}a(c).detach()}return e||c.href}}}}(),enumarated:function(a){x(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}},
-reflectProperties:function(c,b){"string"==typeof b&&(b=b.split(o));b.forEach(function(b){h.defineNodeNamesProperty(c,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(c,b,d){p[b]=!0;if(d.reflect)h.propTypes[d.propType||"standard"](d,b);["prop","attr","removeAttr"].forEach(function(i){var f=d[i];f&&(f="prop"===i?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),u[i](c,b,f),"*"!=c&&h.cfg.extendNative&&"prop"==i&&f.value&&
+"shadowData");return a&&a[c.prop]||this})}});["removeAttr","prop","attr"].forEach(function(c){r[c]=a[c];a[c]=function(b,d,i,x,e){var k="val"==x,t=!k?r[c]:z;if(!b||!q[d]||1!==b.nodeType||!k&&x&&"attr"==c&&a.attrFn[d])return t(b,d,i,x,e);var A=(b.nodeName||"").toLowerCase(),f=n[A],C="attr"==c&&(!1===i||null===i)?"removeAttr":c,h,w,g;f||(f=n["*"]);f&&(f=f[d]);f&&(h=f[C]);if(h){if("value"==d)w=h.isVal,h.isVal=k;if("removeAttr"===C)return h.value.call(b);if(i===m)return h.get?h.get.call(b):h.value;h.set&&
+("attr"==c&&!0===i&&(i=d),g=h.set.call(b,i));if("value"==d)h.isVal=w}else g=t(b,d,i,x,e);if((i!==m||"removeAttr"===C)&&l[A]&&l[A][d]){var j;j="removeAttr"==C?!1:"prop"==C?!!i:!0;l[A][d].forEach(function(a){if(!a.only||(a.only="prop"==c)||"attr"==a.only&&"prop"!=c)a.call(b,i,j,k?"val":C,c)})}return g};v[c]=function(b,d,i){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var x=n[b][d][c],e=function(a,b,A){return b&&b[a]?b[a]:A&&A[a]?A[a]:"prop"==c&&"value"==d?function(a){return i.isVal?z(this,d,a,!1,0===arguments.length):
+r[c](this,d,a)}:"prop"==c&&"value"==a&&i.value.apply?function(a){var b=r[c](this,d);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return r[c](this,d,a)}};n[b][d][c]=i;if(i.value===m){if(!i.set)i.set=i.writeable?e("set",i,x):h.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:a.noop;if(!i.get)i.get=e("get",i,x)}["value","get","set"].forEach(function(a){i[a]&&(i["_sup"+a]=e(a,x))})}});var o=!a.browser.msie||8<parseInt(a.browser.version,10),e=function(){var a=h.getPrototypeOf(j.createElement("foobar")),
+b=Object.prototype.hasOwnProperty;return function(d,i,e){var l=j.createElement(d),k=h.getPrototypeOf(l);if(o&&k&&a!==k&&(!l[i]||!b.call(l,i))){var t=l[i];e._supvalue=function(){return t&&t.apply?t.apply(this,arguments):t};k[i]=e.value}else e._supvalue=function(){var a=y(this,"propValue");return a&&a[i]&&a[i].apply?a[i].apply(this,arguments):a&&a[i]},f.extendValue(d,i,e.value);e.value._supvalue=e._supvalue}}(),f=function(){var c={};h.addReady(function(b,d){var k={},i=function(c){k[c]||(k[c]=a(b.getElementsByTagName(c)),
+d[0]&&a.nodeName(d[0],c)&&(k[c]=k[c].add(d)))};a.each(c,function(a,c){i(a);!c||!c.forEach?h.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){k[a].each(c)})});k=null});var b,d=a([]),i=function(d,i){c[d]?c[d].push(i):c[d]=[i];a.isDOMReady&&(b||a(j.getElementsByTagName(d))).each(i)};return{createTmpCache:function(c){a.isDOMReady&&(b=b||a(j.getElementsByTagName(c)));return b||d},flushTmpCache:function(){b=null},content:function(c,b){i(c,function(){var c=a.attr(this,b);null!=c&&a.attr(this,
+b,c)})},createElement:function(a,c){i(a,c)},extendValue:function(c,b,d){i(c,function(){a(this).each(function(){y(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),B=function(a,b){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(h,{getID:function(){var c=(new Date).getTime();return function(b){var b=a(b),d=b.attr("id");d||(c++,d="ID-"+c,b.attr("id",d));
+return d}}(),extendUNDEFProp:function(c,b){a.each(b,function(a,b){a in c||(c[a]=b)})},createPropDefault:B,data:y,moveToFirstEvent:function(){var c=a._data?"_data":"data";return function(b,d,i){if((b=(a[c](b,"events")||{})[d])&&1<b.length)d=b.pop(),i||(i="bind"),"bind"==i&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(){var c,b,d,i,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(j).height(),this.width=a(j).width(),setInterval(function(){var c=
+a(j).height(),b=a(j).width();if(c!=e.height||b!=e.width)e.height=c,e.width=b,i({type:"docresize"})},400)}};i=function(i){clearTimeout(c);c=setTimeout(function(){if("resize"==i.type){var c=a(g).width(),t=a(g).width();if(t==b&&c==d)return;b=t;d=c;e.height=a(j).height();e.width=a(j).width()}a.event.trigger("updateshadowdom")},40)};a(g).bind("resize",i);a.event.customEvent.updateshadowdom=!0;return function(c,b,d){d=d||{};c.jquery&&(c=c[0]);b.jquery&&(b=b[0]);var i=a.data(c,s)||a.data(c,s,{}),f=a.data(b,
+s)||a.data(b,s,{}),l={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];l=a.data(d.shadowFocusElement,s)||a.data(d.shadowFocusElement,s,l)}}else d.shadowFocusElement=b;i.hasShadow=b;l.nativeElement=f.nativeElement=c;l.shadowData=f.shadowData=i.shadowData={nativeElement:c,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){y(this,"shadowData",f.shadowData)});if(d.data)l.shadowData.data=
+f.shadowData.data=i.shadowData.data=d.data;d=null;e.start()}}(),propTypes:{standard:function(a){B(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){B(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var c=j.createElement("a");c.style.display="none";return function(b,d){B(b);if(!b.prop)b.prop=
+{set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(d),e;if(null==b)return"";c.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(c).insertAfter(this),e=c.getAttribute("href",4)}catch(f){e=c.getAttribute("href",4)}a(c).detach()}return e||c.href}}}}(),enumarated:function(a){B(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}},
+reflectProperties:function(c,b){"string"==typeof b&&(b=b.split(p));b.forEach(function(b){h.defineNodeNamesProperty(c,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(c,b,d){q[b]=!0;if(d.reflect)h.propTypes[d.propType||"standard"](d,b);["prop","attr","removeAttr"].forEach(function(i){var f=d[i];f&&(f="prop"===i?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),v[i](c,b,f),"*"!=c&&h.cfg.extendNative&&"prop"==i&&f.value&&
a.isFunction(f.value)&&e(c,b,f),d[i]=f)});d.initAttr&&f.content(c,b);return d},defineNodeNameProperties:function(a,b,d,i){for(var e in b)!i&&b[e].initAttr&&f.createTmpCache(a),d&&(b[e][d]?h.log("override: "+a+"["+e+"] for "+d):(b[e][d]={},["value","set","get"].forEach(function(a){a in b[e]&&(b[e][d][a]=b[e][a],delete b[e][a])}))),b[e]=h.defineNodeNameProperty(a,e,b[e]);i||f.flushTmpCache();return b},createElement:function(c,b,d){var e;a.isFunction(b)&&(b={after:b});f.createTmpCache(c);b.before&&f.createElement(c,
-b.before);d&&(e=h.defineNodeNameProperties(c,d,!1,!0));b.after&&f.createElement(c,b.after);f.flushTmpCache();return e},onNodeNamesPropertyModify:function(c,b,d,e){"string"==typeof c&&(c=c.split(o));a.isFunction(d)&&(d={set:d});c.forEach(function(a){k[a]||(k[a]={});"string"==typeof b&&(b=b.split(o));d.initAttr&&f.createTmpCache(a);b.forEach(function(b){k[a][b]||(k[a][b]=[],p[b]=!0);if(d.set){if(e)d.set.only=e;k[a][b].push(d.set)}d.initAttr&&f.content(a,b)});f.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
+b.before);d&&(e=h.defineNodeNameProperties(c,d,!1,!0));b.after&&f.createElement(c,b.after);f.flushTmpCache();return e},onNodeNamesPropertyModify:function(c,b,d,e){"string"==typeof c&&(c=c.split(p));a.isFunction(d)&&(d={set:d});c.forEach(function(a){l[a]||(l[a]={});"string"==typeof b&&(b=b.split(p));d.initAttr&&f.createTmpCache(a);b.forEach(function(b){l[a][b]||(l[a][b]=[],q[b]=!0);if(d.set){if(e)d.set.only=e;l[a][b].push(d.set)}d.initAttr&&f.content(a,b)});f.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
b,d){d||(d={});if(a.isFunction(d))d.set=d;h.defineNodeNamesProperty(c,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?m:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===m)return a=a.attributes[b]||{},d=a.specified?a.value:null,null==d?m:d;"boolean"==typeof d?d?a.setAttribute(b,b):
-a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var c=[],b={},d,e,f=/:\/\/|^\.*\//,k=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,w(b,!0)):a(function(){b.langObj[c]&&w(b,!0);b.loading=!1})}),!0):!1},r=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},w=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=t[a.module].options;
-if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),r(a.module);else if(!b&&!k(a,d,c)&&!k(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),r(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),a.each(c,function(a,b){w(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang="";c.push(f);w(f)}return d}}()});
-a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){h[a]=function(a,c,e,f){"string"==typeof a&&(a=a.split(o));var r={};a.forEach(function(a){r[a]=h[b](a,c,e,f)});return r}});h.isReady("webshimLocalization",!0)});
-(function(a,h){var g=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<g)&&(!a.browser.msie||12>g&&7<g)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,h){a.getAttribute("role")||a.setAttribute("role",h)};a.webshims.addReady(function(g,o){a.each(j,function(h,k){for(var v=a(h,g).add(o.filter(h)),j=0,s=v.length;j<s;j++)m(v[j],k)});if(g===h){var q=h.getElementsByTagName("header")[0],p=h.getElementsByTagName("footer"),n=p.length;
-q&&!a(q).closest("section, article")[0]&&m(q,"banner");n&&(q=p[n-1],a(q).closest("section, article")[0]||m(q,"contentinfo"))}})}})(jQuery,document);
-(function(a,h,g){var j=h.audio&&h.video,m=!1,t=g.cfg.mediaelement,o=g.bugs,q=function(){g.ready("mediaelement-swf",function(){if(!g.mediaelement.createSWF)g.modules["mediaelement-swf"].test=a.noop,g.reTest(["mediaelement-swf"],j)})},p;if(j){var n=document.createElement("video");h.videoBuffered="buffered"in n;m="loop"in n;g.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(g.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
-test:h.videoBuffered,d:["dom-support"]}),g.reTest("mediaelement-native-fix"))}if(j&&!t.preferFlash){var u=function(k){var h=k.target.parentNode;!t.preferFlash&&(a(k.target).is("audio, video")||h&&a("source:last",h)[0]==k.target)&&g.ready("DOM mediaelement",function(){p&&q();g.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){p&&!t.preferFlash&&g.mediaelement.createSWF&&!a(k.target).closest("audio, video").is(".nonnative-api-active")?(t.preferFlash=!0,document.removeEventListener("error",
-u,!0),a("audio, video").mediaLoad(),g.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+k.target.src)):p||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);a("audio, video").each(function(){this.error&&u({target:this})})}o.track=!1;h.track&&function(){if(!o.track)o.track="number"!=typeof a("<track />")[0].readyState;if(!o.track)try{new TextTrackCue(2,3,"")}catch(k){try{new TextTrackCue("",2,3,"","",!1);var h=TextTrackCue;
-window.TextTrackCue=function(a,e,c,b,d,i){3!=arguments.length&&g.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");return 4<arguments.length?new h(a,e,c,b,d||"",i||!1):new h("",a,e,c,"",!1)}}catch(j){o.track=!0}}var m=g.cfg.track,n=function(e){a(e.target).filter("track").each(l)},l=function(){if(o.track||!m.override&&3==a.prop(this,"readyState"))m.override=!0,g.reTest("track"),document.removeEventListener("error",n,!0),this&&a.nodeName(this,"track")?
-g.error("track support was overwritten. Please check your vtt including your vtt mime-type"):g.info("track support was overwritten. due to bad browser support")},e=function(){document.addEventListener("error",n,!0);o.track?l():a("track").each(l)};m.override||(g.isReady("track")?e():a(e))}();g.register("mediaelement-core",function(a,g,n,s,y){p=swfobject.hasFlashPlayerVersion("9.0.115");var l=g.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},f=!p&&"postMessage"in n&&j,x=function(){var b;return function(){!b&&f&&(b=!0,g.loader.loadScript("https://www.youtube.com/player_api"),a(function(){g.polyfill("mediaelement-yt")}))}}(),c=function(){p?q():x()};
-g.addPolyfill("mediaelement-yt",{test:!f,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","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?")||-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)});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!==y&&(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(",");l.canThirdPlaySrces=function(b,c){var d="";if(p||f)b=a(b),c=c||l.srces(b),a.each(c,function(a,b){if(b.container&&
-b.src&&(p&&-1!=l.swfMimeTypes.indexOf(b.container)||f&&"video/youtube"==b.container))return d=b,!1});return d};var b={};l.canNativePlaySrces=function(c,d){var e="";if(j){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||l.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};l.setError=function(b,c){c||(c="can't play sources");a(b).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&
-a(b).trigger("mediaerror")},1)};var d=function(){var a;return function(b,e,i){g.ready(p?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(b,e,i):a||(a=!0,c(),d(b,e,i))});!a&&f&&!l.createSWF&&x()}}(),i=function(a,b,c,e,f){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,e))?d(a,c,b):f?l.setError(a,!1):i(a,b,!1,e,!0):(c=l.canNativePlaySrces(a,e))?b&&"third"==b.isActive&&l.setActive(a,"html5",b):f?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):i(a,
-b,!0,e,!0)},A=/^(?:embed|object|datalist)$/i,D=function(b,c){var d=g.data(b,"mediaelementBase")||g.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||A.test(f.nodeName||"")))c=c||g.data(b,"mediaelement"),i(b,c,t.preferFlash||y,e)};a(s).bind("ended",function(b){var c=g.data(b.target,"mediaelement");(!m||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,
-"loop")&&a(b.target).prop("currentTime",0).play()},1)});m||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=g.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");D(this,a);j&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=g.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(d){var e="";j&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==
-e&&(e=""));!e&&p&&(d=a.trim((d||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){D(a);a=null},9)}});n=function(){g.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<g.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(j){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",
-function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};h.track&&!o.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(g.isReady("mediaelement-core",!0),n(),g.ready("WINDOWLOAD mediaelement",c)):g.ready("mediaelement-swf",n);a(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
-(function(a){var h=window.Modernizr,g=a.webshims,j=g.bugs,m=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),t=function(){if(m[0].querySelector)try{j.findRequired=!m[0].querySelector("select:required")}catch(a){j.findRequired=!1}};j.findRequired=!1;j.validationMessage=!1;j.valueAsNumberSet=!1;g.capturingEventPrevented=function(g){if(!g._isPolyfilled){var h=g.isDefaultPrevented,
-j=g.preventDefault;g.preventDefault=function(){clearTimeout(a.data(g.target,g.type+"DefaultPrevented"));a.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){a.removeData(g.target,g.type+"DefaultPrevented")},30));return j.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!h.formvalidation||j.bustedValidity)t();else if(g.capturingEvents(["input"]),g.capturingEvents(["invalid"],!0),
-h.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var o=a("input",m).eq(0),q,p=function(a){g.loader.loadList(["dom-extend"]);g.ready("dom-extend",a)},n=function(j){var n=["form-extend","form-message","form-native-fix"];j&&(j.preventDefault(),j.stopImmediatePropagation());clearTimeout(q);setTimeout(function(){m&&(m.remove(),m=o=null)},9);if(!h.bugfreeformvalidation)g.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),g.modules["form-extend"].test=a.noop;g.isReady("form-number-date-api")&&
-n.push("form-number-date-api");g.reTest(n);if(o)try{o.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&p(function(){g.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(g){!g&&this&&a.prop(this,"value",a.prop(this,"value"))}});g.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(g){if(!g&&this)g=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(g)}})})}catch(z){}(a.browser.opera||window.testGoodWithFix)&&
-p(function(){var h=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(j){var k=g.defineNodeNameProperty(j,"checkValidity",{prop:{value:function(){g.fromSubmit||a(this).bind("invalid.checkvalidity",h);g.fromCheckValidity=!0;var e=k.prop._supvalue.apply(this,arguments);g.fromSubmit||a(this).unbind("invalid.checkvalidity",h);g.fromCheckValidity=!1;return e}}})})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){t();j.validationMessage=!o.prop("validationMessage");
-if((h.inputtypes||{}).date){try{o.prop("valueAsNumber",0)}catch(u){}j.valueAsNumberSet="1970-01-01"!=o.prop("value")}o.prop("value","")}m.bind("submit",function(a){h.bugfreeformvalidation=!1;n(a)});q=setTimeout(function(){m&&m.triggerHandler("submit")},9);a("input, select",m).bind("invalid",n).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&h.bugfreeformvalidation&&!g.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,
+a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var c=[],b={},d,e,f=/:\/\/|^\.*\//,l=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,t(b,!0)):a(function(){b.langObj[c]&&t(b,!0);b.loading=!1})}),!0):!1},k=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},t=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=u[a.module].options;
+if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),k(a.module);else if(!b&&!l(a,d,c)&&!l(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),k(a.module)}};return function(k){if("string"==typeof k&&k!==d)d=k,e=d.split("-")[0],d==e&&(e=!1),a.each(c,function(a,b){t(b)});else if("object"==typeof k)if(k.register)b[k.register]||(b[k.register]=[]),b[k.register].push(k),k.callback();else{if(!k.activeLang)k.activeLang="";c.push(k);t(k)}return d}}()});
+a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){h[a]=function(a,c,e,f){"string"==typeof a&&(a=a.split(p));var k={};a.forEach(function(a){k[a]=h[b](a,c,e,f)});return k}});h.isReady("webshimLocalization",!0)});
+(function(a,h){var g=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<g)&&(!a.browser.msie||12>g&&7<g)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,h){a.getAttribute("role")||a.setAttribute("role",h)};a.webshims.addReady(function(g,p){a.each(j,function(h,l){for(var w=a(h,g).add(p.filter(h)),j=0,s=w.length;j<s;j++)m(w[j],l)});if(g===h){var r=h.getElementsByTagName("header")[0],q=h.getElementsByTagName("footer"),n=q.length;
+r&&!a(r).closest("section, article")[0]&&m(r,"banner");n&&(r=q[n-1],a(r).closest("section, article")[0]||m(r,"contentinfo"))}})}})(jQuery,document);
+(function(a,h,g){var j=h.audio&&h.video,m=!1,u=g.cfg.mediaelement,p=g.bugs,r=function(){g.ready("mediaelement-swf",function(){if(!g.mediaelement.createSWF)g.modules["mediaelement-swf"].test=a.noop,g.reTest(["mediaelement-swf"],j)})},q;if(j){var n=document.createElement("video");h.videoBuffered="buffered"in n;m="loop"in n;g.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(g.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
+test:h.videoBuffered,d:["dom-support"]}),g.reTest("mediaelement-native-fix"))}if(j&&!u.preferFlash){var v=function(l){var h=l.target.parentNode;!u.preferFlash&&(a(l.target).is("audio, video")||h&&a("source:last",h)[0]==l.target)&&g.ready("DOM mediaelement",function(){q&&r();g.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){q&&!u.preferFlash&&g.mediaelement.createSWF&&!a(l.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",
+v,!0),a("audio, video").mediaLoad(),g.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+l.target.src)):q||document.removeEventListener("error",v,!0)},20)})})};document.addEventListener("error",v,!0);a("audio, video").each(function(){this.error&&v({target:this})})}p.track=!1;h.track&&function(){if(!p.track)p.track="number"!=typeof a("<track />")[0].readyState;if(!p.track)try{new TextTrackCue(2,3,"")}catch(l){p.track=!0}var h=g.cfg.track,j=function(l){a(l.target).filter("track").each(m)},
+m=function(){if(p.track||!h.override&&3==a.prop(this,"readyState"))h.override=!0,g.reTest("track"),document.removeEventListener("error",j,!0),this&&a.nodeName(this,"track")?g.error("track support was overwritten. Please check your vtt including your vtt mime-type"):g.info("track support was overwritten. due to bad browser support")},n=function(){document.addEventListener("error",j,!0);p.track?m():a("track").each(m)};h.override||(g.isReady("track")?n():a(n))}();g.register("mediaelement-core",function(a,
+g,n,s,y){q=swfobject.hasFlashPlayerVersion("9.0.115");var o=g.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=o.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},f=!q&&"postMessage"in n&&j,B=
+function(){var b;return function(){!b&&f&&(b=!0,g.loader.loadScript("https://www.youtube.com/player_api"),a(function(){g.polyfill("mediaelement-yt")}))}}(),c=function(){q?r():B()};g.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});o.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",
+"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"]}};o.mimeTypes.source=a.extend({},o.mimeTypes.audio,o.mimeTypes.video);o.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
+-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(o.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};o.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)});
+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!==y&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));o.srces(this,b);a(this).mediaLoad()})};o.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(",");
+o.canThirdPlaySrces=function(b,c){var d="";if(q||f)b=a(b),c=c||o.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(q&&-1!=o.swfMimeTypes.indexOf(b.container)||f&&"video/youtube"==b.container))return d=b,!1});return d};var b={};o.canNativePlaySrces=function(c,d){var e="";if(j){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||o.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};o.setError=function(b,c){c||(c="can't play sources");
+a(b).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var d=function(){var a;return function(b,e,i){g.ready(q?"mediaelement-swf":"mediaelement-yt",function(){o.createSWF?o.createSWF(b,e,i):a||(a=!0,c(),d(b,e,i))});!a&&f&&!o.createSWF&&B()}}(),i=function(a,b,c,e,f){c||!1!==c&&b&&"third"==b.isActive?(c=o.canThirdPlaySrces(a,e))?d(a,c,b):f?o.setError(a,!1):i(a,b,!1,e,!0):(c=o.canNativePlaySrces(a,e))?b&&"third"==
+b.isActive&&o.setActive(a,"html5",b):f?(o.setError(a,!1),b&&"third"==b.isActive&&o.setActive(a,"html5",b)):i(a,b,!0,e,!0)},x=/^(?:embed|object|datalist)$/i,D=function(b,c){var d=g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{}),e=o.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||x.test(f.nodeName||"")))c=c||g.data(b,"mediaelement"),i(b,c,u.preferFlash||y,e)};a(s).bind("ended",function(b){var c=g.data(b.target,"mediaelement");
+(!m||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});m||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=g.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");D(this,a);j&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=g.defineNodeNameProperty(c,
+"canPlayType",{prop:{value:function(d){var e="";j&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&q&&(d=a.trim((d||"").split(";")[0]),-1!=o.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){D(a);a=null},9)}});n=function(){g.addReady(function(b,c){a("video, audio",
+b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<g.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(j){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
+a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};h.track&&!p.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(g.isReady("mediaelement-core",!0),n(),g.ready("WINDOWLOAD mediaelement",c)):g.ready("mediaelement-swf",n);a(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
+(function(a){var h=window.Modernizr,g=a.webshims,j=g.bugs,m=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),u=function(){if(m[0].querySelector)try{j.findRequired=!m[0].querySelector("select:required")}catch(a){j.findRequired=!1}};j.findRequired=!1;j.validationMessage=!1;j.valueAsNumberSet=!1;g.capturingEventPrevented=function(g){if(!g._isPolyfilled){var h=g.isDefaultPrevented,
+j=g.preventDefault;g.preventDefault=function(){clearTimeout(a.data(g.target,g.type+"DefaultPrevented"));a.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){a.removeData(g.target,g.type+"DefaultPrevented")},30));return j.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!h.formvalidation||j.bustedValidity)u();else if(g.capturingEvents(["input"]),g.capturingEvents(["invalid"],!0),
+h.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var p=a("input",m).eq(0),r,q=function(a){g.loader.loadList(["dom-extend"]);g.ready("dom-extend",a)},n=function(j){var n=["form-extend","form-message","form-native-fix"];j&&(j.preventDefault(),j.stopImmediatePropagation());clearTimeout(r);setTimeout(function(){m&&(m.remove(),m=p=null)},9);if(!h.bugfreeformvalidation)g.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),g.modules["form-extend"].test=a.noop;g.isReady("form-number-date-api")&&
+n.push("form-number-date-api");g.reTest(n);if(p)try{p.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&q(function(){g.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(g){!g&&this&&a.prop(this,"value",a.prop(this,"value"))}});g.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(g){if(!g&&this)g=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(g)}})})}catch(z){}(a.browser.opera||window.testGoodWithFix)&&
+q(function(){var h=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(j){var l=g.defineNodeNameProperty(j,"checkValidity",{prop:{value:function(){g.fromSubmit||a(this).bind("invalid.checkvalidity",h);g.fromCheckValidity=!0;var e=l.prop._supvalue.apply(this,arguments);g.fromSubmit||a(this).unbind("invalid.checkvalidity",h);g.fromCheckValidity=!1;return e}}})})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){u();j.validationMessage=!p.prop("validationMessage");
+if((h.inputtypes||{}).date){try{p.prop("valueAsNumber",0)}catch(v){}j.valueAsNumberSet="1970-01-01"!=p.prop("value")}p.prop("value","")}m.bind("submit",function(a){h.bugfreeformvalidation=!1;n(a)});r=setTimeout(function(){m&&m.triggerHandler("submit")},9);a("input, select",m).bind("invalid",n).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&h.bugfreeformvalidation&&!g.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).bind("invalid",function(a){if(a.originalEvent&&h&&h==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
-jQuery.webshims.register("form-core",function(a,h,g,j,m,t){var o={radio:1},q={checkbox:1,radio:1},p=a([]),n=h.bugs,u=function(e){var e=a(e),f,g;f=p;if(o[e[0].type])g=e.prop("form"),f=(f=e[0].name)?g?a(g[f]):a(j.getElementsByName(f)).filter(function(){return!a.prop(this,"form")}):e,f=f.filter('[type="radio"]');return f},k=h.getContentValidationMessage=function(e,f,g){var c=a(e).data("errormessage")||e.getAttribute("x-moz-errormessage")||"";g&&c[g]&&(c=c[g]);"object"==typeof c&&(f=f||a.prop(e,"validity")||
-{valid:1},f.valid||a.each(f,function(a,d){if(d&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},v={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(e){return!(!a.prop(e,"willValidate")||!(a.prop(e,"validity")||{valid:1}).valid)},"invalid-element":function(e){return!(!a.prop(e,"willValidate")||(a.prop(e,"validity")||{valid:1}).valid)},"required-element":function(e){return!(!a.prop(e,"willValidate")||!a.prop(e,"required"))},"optional-element":function(e){return!!(a.prop(e,
-"willValidate")&&!1===a.prop(e,"required"))},"in-range":function(e){if(!v[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||e.rangeOverflow||e.rangeUnderflow)},"out-of-range":function(e){if(!v[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||!e.rangeOverflow&&!e.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(e){a.expr[":"][e]=a.expr.filters[e+"-element"]});a.expr[":"].focus=function(a){try{var f=
+jQuery.webshims.register("form-core",function(a,h,g,j,m,u){var p={radio:1},r={checkbox:1,radio:1},q=a([]),n=h.bugs,v=function(e){var e=a(e),f,g;f=q;if(p[e[0].type])g=e.prop("form"),f=(f=e[0].name)?g?a(g[f]):a(j.getElementsByName(f)).filter(function(){return!a.prop(this,"form")}):e,f=f.filter('[type="radio"]');return f},l=h.getContentValidationMessage=function(e,f,g){var c=a(e).data("errormessage")||e.getAttribute("x-moz-errormessage")||"";g&&c[g]&&(c=c[g]);"object"==typeof c&&(f=f||a.prop(e,"validity")||
+{valid:1},f.valid||a.each(f,function(a,d){if(d&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},w={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(e){return!(!a.prop(e,"willValidate")||!(a.prop(e,"validity")||{valid:1}).valid)},"invalid-element":function(e){return!(!a.prop(e,"willValidate")||(a.prop(e,"validity")||{valid:1}).valid)},"required-element":function(e){return!(!a.prop(e,"willValidate")||!a.prop(e,"required"))},"optional-element":function(e){return!!(a.prop(e,
+"willValidate")&&!1===a.prop(e,"required"))},"in-range":function(e){if(!w[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||e.rangeOverflow||e.rangeUnderflow)},"out-of-range":function(e){if(!w[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||!e.rangeOverflow&&!e.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(e){a.expr[":"][e]=a.expr.filters[e+"-element"]});a.expr[":"].focus=function(a){try{var f=
a.ownerDocument;return a===f.activeElement&&(!f.hasFocus||f.hasFocus())}catch(g){}return!1};var z=a.event.customEvent||{};(n.bustedValidity||n.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var e=a.find,f=a.find.matchesSelector,g=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,c=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,d=function(d){var f=arguments,f=a.call(f,1,f.length);f.unshift(d.replace(g,c));return e.apply(this,
f)},f;for(f in e)e.hasOwnProperty(f)&&(d[f]=e[f]);return d}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",j.documentElement))a.find.matchesSelector=function(a,d){d=d.replace(g,c);return f.call(this,a,d)}}();var s=a.prop,y={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(e,f,g){var c=s.apply(this,arguments);if(e&&"form"in e&&y[f]&&g!==m&&a(e).hasClass("form-ui-invalid")&&(a.prop(e,"validity")||{valid:1}).valid)a(e).getShadowElement().removeClass("form-ui-invalid"),
-"checked"==f&&g&&u(e).not(e).removeClass("form-ui-invalid").removeAttr("aria-invalid");return c};var l=function(e,f){var g;a.each(e,function(c,b){if(b)return g="customError"==c?a.prop(f,"validationMessage"):c,!1});return g};a(j).bind(t.validityUIEvents||"focusout change refreshvalidityui",function(e){var f,g;if(e.target&&(f=a(e.target).getNativeElement()[0],"submit"!=f.type&&a.prop(f,"willValidate"))){g=a.data(f,"webshimsswitchvalidityclass");var c=function(){var b=a.prop(f,"validity"),c=a(f).getShadowElement(),
-g,h,j,k;a(f).trigger("refreshCustomValidityRules");b.valid?c.hasClass("form-ui-valid")||(g="form-ui-valid",h="form-ui-invalid",k="changedvaliditystate",j="changedvalid",q[f.type]&&f.checked&&u(f).not(f).removeClass(h).addClass(g).removeAttr("aria-invalid"),a.removeData(f,"webshimsinvalidcause")):(b=l(b,f),a.data(f,"webshimsinvalidcause")!=b&&(a.data(f,"webshimsinvalidcause",b),k="changedvaliditystate"),c.hasClass("form-ui-invalid")||(g="form-ui-invalid",h="form-ui-valid",q[f.type]&&!f.checked&&u(f).not(f).removeClass(h).addClass(g),
+"checked"==f&&g&&v(e).not(e).removeClass("form-ui-invalid").removeAttr("aria-invalid");return c};var o=function(e,f){var g;a.each(e,function(c,b){if(b)return g="customError"==c?a.prop(f,"validationMessage"):c,!1});return g};a(j).bind(u.validityUIEvents||"focusout change refreshvalidityui",function(e){var f,g;if(e.target&&(f=a(e.target).getNativeElement()[0],"submit"!=f.type&&a.prop(f,"willValidate"))){g=a.data(f,"webshimsswitchvalidityclass");var c=function(){var b=a.prop(f,"validity"),c=a(f).getShadowElement(),
+g,h,j,k;a(f).trigger("refreshCustomValidityRules");b.valid?c.hasClass("form-ui-valid")||(g="form-ui-valid",h="form-ui-invalid",k="changedvaliditystate",j="changedvalid",r[f.type]&&f.checked&&v(f).not(f).removeClass(h).addClass(g).removeAttr("aria-invalid"),a.removeData(f,"webshimsinvalidcause")):(b=o(b,f),a.data(f,"webshimsinvalidcause")!=b&&(a.data(f,"webshimsinvalidcause",b),k="changedvaliditystate"),c.hasClass("form-ui-invalid")||(g="form-ui-invalid",h="form-ui-valid",r[f.type]&&!f.checked&&v(f).not(f).removeClass(h).addClass(g),
j="changedinvalid"));g&&(c.addClass(g).removeClass(h),setTimeout(function(){a(f).trigger(j)},0));k&&setTimeout(function(){a(f).trigger(k)},0);a.removeData(e.target,"webshimsswitchvalidityclass")};g&&clearTimeout(g);"refreshvalidityui"==e.type?c():a.data(e.target,"webshimsswitchvalidityclass",setTimeout(c,9))}});z.changedvaliditystate=!0;z.refreshCustomValidityRules=!0;z.changedvalid=!0;z.changedinvalid=!0;z.refreshvalidityui=!0;h.triggerInlineForm=function(e,f){a(e).trigger(f)};h.modules["form-core"].getGroupElements=
-u;n=function(){h.scrollRoot=a.browser.webkit||"BackCompat"==j.compatMode?a(j.body):a(j.documentElement)};n();h.ready("DOM",n);h.getRelOffset=function(e,f){var e=a(e),g=a(f).offset(),c;a.swap(a(e)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){c=e.offset()});g.top-=c.top;g.left-=c.left;return g};h.validityAlert=function(){var e=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",f,m=!1,c=!1,b,d={hideDelay:5E3,showFor:function(e,h,j,k){d._create();var e=a(e),l=
+v;n=function(){h.scrollRoot=a.browser.webkit||"BackCompat"==j.compatMode?a(j.body):a(j.documentElement)};n();h.ready("DOM",n);h.getRelOffset=function(e,f){var e=a(e),g=a(f).offset(),c;a.swap(a(e)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){c=e.offset()});g.top-=c.top;g.left-=c.left;return g};h.validityAlert=function(){var e=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",f,m=!1,c=!1,b,d={hideDelay:5E3,showFor:function(e,h,j,k){d._create();var e=a(e),l=
a(e).getShadowElement(),n=d.getOffsetFromBody(l);d.clear();k?this.hide():(this.getMessage(e,h),this.position(l,n),f.css({fontSize:e.css("fontSize"),fontFamily:e.css("fontFamily")}),this.show(),this.hideDelay&&(m=setTimeout(b,this.hideDelay)),a(g).bind("resize.validityalert",function(){clearTimeout(c);c=setTimeout(function(){d.position(l)},9)}));j||this.setFocus(l,n)},getOffsetFromBody:function(a){return h.getRelOffset(f,a)},setFocus:function(c,d){var g=a(c).getShadowFocusElement(),k=h.scrollRoot.scrollTop(),
-l=(d||g.offset()).top-30,m;h.getID&&"label"==e&&f.attr("for",h.getID(g));k>l&&(h.scrollRoot.animate({scrollTop:l-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(k-l)),80)}),m=!0);try{g[0].focus()}catch(n){}m&&(h.scrollRoot.scrollTop(k),setTimeout(function(){h.scrollRoot.scrollTop(k)},0));setTimeout(function(){a(j).bind("focusout.validityalert",b)},10)},getMessage:function(b,c){c||(c=k(b[0])||b.prop("validationMessage"));c?a("span.va-box",f).text(c):this.hide()},position:function(b,c){c=c?a.extend({},
+l=(d||g.offset()).top-30,m;h.getID&&"label"==e&&f.attr("for",h.getID(g));k>l&&(h.scrollRoot.animate({scrollTop:l-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(k-l)),80)}),m=!0);try{g[0].focus()}catch(n){}m&&(h.scrollRoot.scrollTop(k),setTimeout(function(){h.scrollRoot.scrollTop(k)},0));setTimeout(function(){a(j).bind("focusout.validityalert",b)},10)},getMessage:function(b,c){c||(c=l(b[0])||b.prop("validationMessage"));c?a("span.va-box",f).text(c):this.hide()},position:function(b,c){c=c?a.extend({},
c):d.getOffsetFromBody(b);c.top+=b.outerHeight();f.css(c)},show:function(){"none"===f.css("display")&&f.css({opacity:0}).show();f.addClass("va-visible").fadeTo(400,1)},hide:function(){f.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(m);a(j).unbind(".validityalert");a(g).unbind(".validityalert");f.stop().removeAttr("for")},_create:function(){if(!f)f=d.errorBubble=a("<"+e+' 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></'+
e+">").css({position:"absolute",display:"none"}),h.ready("DOM",function(){f.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&f.bgIframe()})}};b=a.proxy(d,"hide");return d}();(function(){var e,f=[],g;a(j).bind("invalid",function(c){if(!c.wrongWebkitInvalid){var b=a(c.target),d=b.getShadowElement();d.hasClass("form-ui-invalid")||(d.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(c.target).trigger("changedinvalid").trigger("changedvaliditystate")},
0));if(!e)e=a.Event("firstinvalid"),e.isInvalidUIPrevented=c.isDefaultPrevented,d=a.Event("firstinvalidsystem"),a(j).triggerHandler(d,{element:c.target,form:c.target.form,isInvalidUIPrevented:c.isDefaultPrevented}),b.trigger(e);e&&e.isDefaultPrevented()&&c.preventDefault();f.push(c.target);c.extraData="fix";clearTimeout(g);g=setTimeout(function(){var b={type:"lastinvalid",cancelable:!1,invalidlist:a(f)};e=!1;f=[];a(c.target).trigger(b,b)},9);d=b=null}})})();a.fn.getErrorMessage=function(){var e="",
-f=this[0];f&&(e=k(f)||a.prop(f,"customValidationMessage")||a.prop(f,"validationMessage"));return e};t.replaceValidationUI&&h.ready("DOM forms",function(){a(j).bind("firstinvalid",function(e){e.isInvalidUIPrevented()||(e.preventDefault(),a.webshims.validityAlert.showFor(e.target,a(e.target).prop("customValidationMessage")))})})});
+f=this[0];f&&(e=l(f)||a.prop(f,"customValidationMessage")||a.prop(f,"validationMessage"));return e};u.replaceValidationUI&&h.ready("DOM forms",function(){a(j).bind("firstinvalid",function(e){e.isInvalidUIPrevented()||(e.preventDefault(),a.webshims.validityAlert.showFor(e.target,a(e.target).prop("customValidationMessage")))})})});
View
125 demos/js-webshim/minified/shims/combos/17.js
@@ -1,69 +1,68 @@
-jQuery.webshims.register("dom-extend",function(a,g,h,j,o){var t=g.modules,l=/\s*,\s*/,r={},n={},q={},u={},m={},k=a.fn.val,y=function(c,b,d,i,x){return x?k.call(a(c)):k.call(a(c),d)};a.fn.val=function(c){var b=this[0];arguments.length&&null==c&&(c="");if(!arguments.length)return!b||1!==b.nodeType?k.call(this):a.prop(b,"value",c,"val",!0);if(a.isArray(c))return k.apply(this,arguments);var d=a.isFunction(c);return this.each(function(i){b=this;1===b.nodeType&&(d?(i=c.call(b,i,a.prop(b,"value",o,"val",
-!0)),null==i&&(i=""),a.prop(b,"value",i,"val")):a.prop(b,"value",c,"val"))})};var w="_webshimsLib"+Math.round(1E3*Math.random()),B=function(c,b,d){c=c.jquery?c[0]:c;if(!c)return d||{};var i=a.data(c,w);d!==o&&(i||(i=a.data(c,w,{})),b&&(i[b]=d));return b?i&&i[b]:i};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(c){a.fn[c.name]=function(){return this.map(function(){var a=B(this,
-"shadowData");return a&&a[c.prop]||this})}});["removeAttr","prop","attr"].forEach(function(c){r[c]=a[c];a[c]=function(b,d,i,x,e){var s="val"==x,v=!s?r[c]:y;if(!b||!n[d]||1!==b.nodeType||!s&&x&&"attr"==c&&a.attrFn[d])return v(b,d,i,x,e);var z=(b.nodeName||"").toLowerCase(),f=q[z],g="attr"==c&&(!1===i||null===i)?"removeAttr":c,k,h,l;f||(f=q["*"]);f&&(f=f[d]);f&&(k=f[g]);if(k){if("value"==d)h=k.isVal,k.isVal=s;if("removeAttr"===g)return k.value.call(b);if(i===o)return k.get?k.get.call(b):k.value;k.set&&
-("attr"==c&&!0===i&&(i=d),l=k.set.call(b,i));if("value"==d)k.isVal=h}else l=v(b,d,i,x,e);if((i!==o||"removeAttr"===g)&&m[z]&&m[z][d]){var j;j="removeAttr"==g?!1:"prop"==g?!!i:!0;m[z][d].forEach(function(a){if(!a.only||(a.only="prop"==c)||"attr"==a.only&&"prop"!=c)a.call(b,i,j,s?"val":g,c)})}return l};u[c]=function(b,d,i){q[b]||(q[b]={});q[b][d]||(q[b][d]={});var f=q[b][d][c],e=function(a,b,z){return b&&b[a]?b[a]:z&&z[a]?z[a]:"prop"==c&&"value"==d?function(a){return i.isVal?y(this,d,a,!1,0===arguments.length):
-r[c](this,d,a)}:"prop"==c&&"value"==a&&i.value.apply?function(a){var b=r[c](this,d);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return r[c](this,d,a)}};q[b][d][c]=i;if(i.value===o){if(!i.set)i.set=i.writeable?e("set",i,f):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:a.noop;if(!i.get)i.get=e("get",i,f)}["value","get","set"].forEach(function(a){i[a]&&(i["_sup"+a]=e(a,f))})}});var p=!a.browser.msie||8<parseInt(a.browser.version,10),e=function(){var a=g.getPrototypeOf(j.createElement("foobar")),
-b=Object.prototype.hasOwnProperty;return function(d,i,e){var m=j.createElement(d),s=g.getPrototypeOf(m);if(p&&s&&a!==s&&(!m[i]||!b.call(m,i))){var v=m[i];e._supvalue=function(){return v&&v.apply?v.apply(this,arguments):v};s[i]=e.value}else e._supvalue=function(){var a=B(this,"propValue");return a&&a[i]&&a[i].apply?a[i].apply(this,arguments):a&&a[i]},f.extendValue(d,i,e.value);e.value._supvalue=e._supvalue}}(),f=function(){var c={};g.addReady(function(b,d){var s={},i=function(c){s[c]||(s[c]=a(b.getElementsByTagName(c)),
-d[0]&&a.nodeName(d[0],c)&&(s[c]=s[c].add(d)))};a.each(c,function(a,c){i(a);!c||!c.forEach?g.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){s[a].each(c)})});s=null});var b,d=a([]),i=function(d,i){c[d]?c[d].push(i):c[d]=[i];a.isDOMReady&&(b||a(j.getElementsByTagName(d))).each(i)};return{createTmpCache:function(c){a.isDOMReady&&(b=b||a(j.getElementsByTagName(c)));return b||d},flushTmpCache:function(){b=null},content:function(c,b){i(c,function(){var c=a.attr(this,b);null!=c&&a.attr(this,
-b,c)})},createElement:function(a,c){i(a,c)},extendValue:function(c,b,d){i(c,function(){a(this).each(function(){B(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),A=function(a,b){if(a.defaultValue===o)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(g,{getID:function(){var c=(new Date).getTime();return function(b){var b=a(b),d=b.attr("id");d||(c++,d="ID-"+c,b.attr("id",d));
-return d}}(),extendUNDEFProp:function(c,b){a.each(b,function(a,b){a in c||(c[a]=b)})},createPropDefault:A,data:B,moveToFirstEvent:function(){var c=a._data?"_data":"data";return function(b,d,i){if((b=(a[c](b,"events")||{})[d])&&1<b.length)d=b.pop(),i||(i="bind"),"bind"==i&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(){var c,b,d,i,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(j).height(),this.width=a(j).width(),setInterval(function(){var c=
-a(j).height(),b=a(j).width();if(c!=e.height||b!=e.width)e.height=c,e.width=b,i({type:"docresize"})},400)}};i=function(i){clearTimeout(c);c=setTimeout(function(){if("resize"==i.type){var c=a(h).width(),f=a(h).width();if(f==b&&c==d)return;b=f;d=c;e.height=a(j).height();e.width=a(j).width()}a.event.trigger("updateshadowdom")},40)};a(h).bind("resize",i);a.event.customEvent.updateshadowdom=!0;return function(c,b,d){d=d||{};c.jquery&&(c=c[0]);b.jquery&&(b=b[0]);var i=a.data(c,w)||a.data(c,w,{}),f=a.data(b,
-w)||a.data(b,w,{}),m={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];m=a.data(d.shadowFocusElement,w)||a.data(d.shadowFocusElement,w,m)}}else d.shadowFocusElement=b;i.hasShadow=b;m.nativeElement=f.nativeElement=c;m.shadowData=f.shadowData=i.shadowData={nativeElement:c,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){B(this,"shadowData",f.shadowData)});if(d.data)m.shadowData.data=
-f.shadowData.data=i.shadowData.data=d.data;d=null;e.start()}}(),propTypes:{standard:function(a){A(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){A(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var c=j.createElement("a");c.style.display="none";return function(b,d){A(b);if(!b.prop)b.prop=
+jQuery.webshims.register("dom-extend",function(a,g,i,j,o){var t=g.modules,m=/\s*,\s*/,r={},n={},q={},u={},f={},l=a.fn.val,y=function(c,b,d,h,w){return w?l.call(a(c)):l.call(a(c),d)};a.fn.val=function(c){var b=this[0];arguments.length&&null==c&&(c="");if(!arguments.length)return!b||1!==b.nodeType?l.call(this):a.prop(b,"value",c,"val",!0);if(a.isArray(c))return l.apply(this,arguments);var d=a.isFunction(c);return this.each(function(h){b=this;1===b.nodeType&&(d?(h=c.call(b,h,a.prop(b,"value",o,"val",
+!0)),null==h&&(h=""),a.prop(b,"value",h,"val")):a.prop(b,"value",c,"val"))})};var x="_webshimsLib"+Math.round(1E3*Math.random()),B=function(c,b,d){c=c.jquery?c[0]:c;if(!c)return d||{};var h=a.data(c,x);d!==o&&(h||(h=a.data(c,x,{})),b&&(h[b]=d));return b?h&&h[b]:h};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(c){a.fn[c.name]=function(){return this.map(function(){var a=B(this,
+"shadowData");return a&&a[c.prop]||this})}});["removeAttr","prop","attr"].forEach(function(c){r[c]=a[c];a[c]=function(b,d,h,w,e){var s="val"==w,v=!s?r[c]:y;if(!b||!n[d]||1!==b.nodeType||!s&&w&&"attr"==c&&a.attrFn[d])return v(b,d,h,w,e);var z=(b.nodeName||"").toLowerCase(),k=q[z],g="attr"==c&&(!1===h||null===h)?"removeAttr":c,l,i,m;k||(k=q["*"]);k&&(k=k[d]);k&&(l=k[g]);if(l){if("value"==d)i=l.isVal,l.isVal=s;if("removeAttr"===g)return l.value.call(b);if(h===o)return l.get?l.get.call(b):l.value;l.set&&
+("attr"==c&&!0===h&&(h=d),m=l.set.call(b,h));if("value"==d)l.isVal=i}else m=v(b,d,h,w,e);if((h!==o||"removeAttr"===g)&&f[z]&&f[z][d]){var j;j="removeAttr"==g?!1:"prop"==g?!!h:!0;f[z][d].forEach(function(a){if(!a.only||(a.only="prop"==c)||"attr"==a.only&&"prop"!=c)a.call(b,h,j,s?"val":g,c)})}return m};u[c]=function(b,d,h){q[b]||(q[b]={});q[b][d]||(q[b][d]={});var w=q[b][d][c],e=function(a,b,z){return b&&b[a]?b[a]:z&&z[a]?z[a]:"prop"==c&&"value"==d?function(a){return h.isVal?y(this,d,a,!1,0===arguments.length):
+r[c](this,d,a)}:"prop"==c&&"value"==a&&h.value.apply?function(a){var b=r[c](this,d);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return r[c](this,d,a)}};q[b][d][c]=h;if(h.value===o){if(!h.set)h.set=h.writeable?e("set",h,w):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:a.noop;if(!h.get)h.get=e("get",h,w)}["value","get","set"].forEach(function(a){h[a]&&(h["_sup"+a]=e(a,w))})}});var p=!a.browser.msie||8<parseInt(a.browser.version,10),e=function(){var a=g.getPrototypeOf(j.createElement("foobar")),
+b=Object.prototype.hasOwnProperty;return function(d,h,e){var f=j.createElement(d),s=g.getPrototypeOf(f);if(p&&s&&a!==s&&(!f[h]||!b.call(f,h))){var v=f[h];e._supvalue=function(){return v&&v.apply?v.apply(this,arguments):v};s[h]=e.value}else e._supvalue=function(){var a=B(this,"propValue");return a&&a[h]&&a[h].apply?a[h].apply(this,arguments):a&&a[h]},k.extendValue(d,h,e.value);e.value._supvalue=e._supvalue}}(),k=function(){var c={};g.addReady(function(b,d){var s={},h=function(c){s[c]||(s[c]=a(b.getElementsByTagName(c)),
+d[0]&&a.nodeName(d[0],c)&&(s[c]=s[c].add(d)))};a.each(c,function(a,c){h(a);!c||!c.forEach?g.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){s[a].each(c)})});s=null});var b,d=a([]),h=function(d,h){c[d]?c[d].push(h):c[d]=[h];a.isDOMReady&&(b||a(j.getElementsByTagName(d))).each(h)};return{createTmpCache:function(c){a.isDOMReady&&(b=b||a(j.getElementsByTagName(c)));return b||d},flushTmpCache:function(){b=null},content:function(c,b){h(c,function(){var c=a.attr(this,b);null!=c&&a.attr(this,
+b,c)})},createElement:function(a,c){h(a,c)},extendValue:function(c,b,d){h(c,function(){a(this).each(function(){B(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),A=function(a,b){if(a.defaultValue===o)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(g,{getID:function(){var c=(new Date).getTime();return function(b){var b=a(b),d=b.attr("id");d||(c++,d="ID-"+c,b.attr("id",d));
+return d}}(),extendUNDEFProp:function(c,b){a.each(b,function(a,b){a in c||(c[a]=b)})},createPropDefault:A,data:B,moveToFirstEvent:function(){var c=a._data?"_data":"data";return function(b,d,h){if((b=(a[c](b,"events")||{})[d])&&1<b.length)d=b.pop(),h||(h="bind"),"bind"==h&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(){var c,b,d,h,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(j).height(),this.width=a(j).width(),setInterval(function(){var c=
+a(j).height(),b=a(j).width();if(c!=e.height||b!=e.width)e.height=c,e.width=b,h({type:"docresize"})},400)}};h=function(h){clearTimeout(c);c=setTimeout(function(){if("resize"==h.type){var c=a(i).width(),v=a(i).width();if(v==b&&c==d)return;b=v;d=c;e.height=a(j).height();e.width=a(j).width()}a.event.trigger("updateshadowdom")},40)};a(i).bind("resize",h);a.event.customEvent.updateshadowdom=!0;return function(c,b,d){d=d||{};c.jquery&&(c=c[0]);b.jquery&&(b=b[0]);var h=a.data(c,x)||a.data(c,x,{}),f=a.data(b,
+x)||a.data(b,x,{}),k={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];k=a.data(d.shadowFocusElement,x)||a.data(d.shadowFocusElement,x,k)}}else d.shadowFocusElement=b;h.hasShadow=b;k.nativeElement=f.nativeElement=c;k.shadowData=f.shadowData=h.shadowData={nativeElement:c,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){B(this,"shadowData",f.shadowData)});if(d.data)k.shadowData.data=
+f.shadowData.data=h.shadowData.data=d.data;d=null;e.start()}}(),propTypes:{standard:function(a){A(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){A(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var c=j.createElement("a");c.style.display="none";return function(b,d){A(b);if(!b.prop)b.prop=
{set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(d),e;if(null==b)return"";c.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(c).insertAfter(this),e=c.getAttribute("href",4)}catch(f){e=c.getAttribute("href",4)}a(c).detach()}return e||c.href}}}}(),enumarated:function(a){A(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}},
-reflectProperties:function(c,b){"string"==typeof b&&(b=b.split(l));b.forEach(function(b){g.defineNodeNamesProperty(c,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(c,b,d){n[b]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d,b);["prop","attr","removeAttr"].forEach(function(i){var f=d[i];f&&(f="prop"===i?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),u[i](c,b,f),"*"!=c&&g.cfg.extendNative&&"prop"==i&&f.value&&
-a.isFunction(f.value)&&e(c,b,f),d[i]=f)});d.initAttr&&f.content(c,b);return d},defineNodeNameProperties:function(a,b,d,i){for(var e in b)!i&&b[e].initAttr&&f.createTmpCache(a),d&&(b[e][d]?g.log("override: "+a+"["+e+"] for "+d):(b[e][d]={},["value","set","get"].forEach(function(a){a in b[e]&&(b[e][d][a]=b[e][a],delete b[e][a])}))),b[e]=g.defineNodeNameProperty(a,e,b[e]);i||f.flushTmpCache();return b},createElement:function(c,b,d){var e;a.isFunction(b)&&(b={after:b});f.createTmpCache(c);b.before&&f.createElement(c,
-b.before);d&&(e=g.defineNodeNameProperties(c,d,!1,!0));b.after&&f.createElement(c,b.after);f.flushTmpCache();return e},onNodeNamesPropertyModify:function(c,b,d,e){"string"==typeof c&&(c=c.split(l));a.isFunction(d)&&(d={set:d});c.forEach(function(a){m[a]||(m[a]={});"string"==typeof b&&(b=b.split(l));d.initAttr&&f.createTmpCache(a);b.forEach(function(b){m[a][b]||(m[a][b]=[],n[b]=!0);if(d.set){if(e)d.set.only=e;m[a][b].push(d.set)}d.initAttr&&f.content(a,b)});f.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
+reflectProperties:function(c,b){"string"==typeof b&&(b=b.split(m));b.forEach(function(b){g.defineNodeNamesProperty(c,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(c,b,d){n[b]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d,b);["prop","attr","removeAttr"].forEach(function(h){var f=d[h];f&&(f="prop"===h?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),u[h](c,b,f),"*"!=c&&g.cfg.extendNative&&"prop"==h&&f.value&&
+a.isFunction(f.value)&&e(c,b,f),d[h]=f)});d.initAttr&&k.content(c,b);return d},defineNodeNameProperties:function(a,b,d,h){for(var e in b)!h&&b[e].initAttr&&k.createTmpCache(a),d&&(b[e][d]?g.log("override: "+a+"["+e+"] for "+d):(b[e][d]={},["value","set","get"].forEach(function(a){a in b[e]&&(b[e][d][a]=b[e][a],delete b[e][a])}))),b[e]=g.defineNodeNameProperty(a,e,b[e]);h||k.flushTmpCache();return b},createElement:function(c,b,d){var e;a.isFunction(b)&&(b={after:b});k.createTmpCache(c);b.before&&k.createElement(c,
+b.before);d&&(e=g.defineNodeNameProperties(c,d,!1,!0));b.after&&k.createElement(c,b.after);k.flushTmpCache();return e},onNodeNamesPropertyModify:function(c,b,d,e){"string"==typeof c&&(c=c.split(m));a.isFunction(d)&&(d={set:d});c.forEach(function(a){f[a]||(f[a]={});"string"==typeof b&&(b=b.split(m));d.initAttr&&k.createTmpCache(a);b.forEach(function(b){f[a][b]||(f[a][b]=[],n[b]=!0);if(d.set){if(e)d.set.only=e;f[a][b].push(d.set)}d.initAttr&&k.content(a,b)});k.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
b,d){d||(d={});if(a.isFunction(d))d.set=d;g.defineNodeNamesProperty(c,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?o:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===o)return a=a.attributes[b]||{},d=a.specified?a.value:null,null==d?o:d;"boolean"==typeof d?d?a.setAttribute(b,b):
-a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var c=[],b={},d,e,f=/:\/\/|^\.*\//,m=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,v(b,!0)):a(function(){b.langObj[c]&&v(b,!0);b.loading=!1})}),!0):!1},s=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},v=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=t[a.module].options;
-if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),s(a.module);else if(!b&&!m(a,d,c)&&!m(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),s(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),a.each(c,function(a,b){v(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang="";c.push(f);v(f)}return d}}()});
-a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,e,f){"string"==typeof a&&(a=a.split(l));var s={};a.forEach(function(a){s[a]=g[b](a,c,e,f)});return s}});g.isReady("webshimLocalization",!0)});
-(function(a,g){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},o=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(h,l){a.each(j,function(g,m){for(var k=a(g,h).add(l.filter(g)),j=0,n=k.length;j<n;j++)o(k[j],m)});if(h===g){var r=g.getElementsByTagName("header")[0],n=g.getElementsByTagName("footer"),q=n.length;
+a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var c=[],b={},d,e,f=/:\/\/|^\.*\//,k=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,v(b,!0)):a(function(){b.langObj[c]&&v(b,!0);b.loading=!1})}),!0):!1},s=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},v=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=t[a.module].options;
+if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),s(a.module);else if(!b&&!k(a,d,c)&&!k(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),s(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),a.each(c,function(a,b){v(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang="";c.push(f);v(f)}return d}}()});
+a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,e,f){"string"==typeof a&&(a=a.split(m));var s={};a.forEach(function(a){s[a]=g[b](a,c,e,f)});return s}});g.isReady("webshimLocalization",!0)});
+(function(a,g){var i=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<i)&&(!a.browser.msie||12>i&&7<i)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},o=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(i,m){a.each(j,function(g,f){for(var l=a(g,i).add(m.filter(g)),j=0,n=l.length;j<n;j++)o(l[j],f)});if(i===g){var r=g.getElementsByTagName("header")[0],n=g.getElementsByTagName("footer"),q=n.length;
r&&!a(r).closest("section, article")[0]&&o(r,"banner");q&&(r=n[q-1],a(r).closest("section, article")[0]||o(r,"contentinfo"))}})}})(jQuery,document);
-(function(a,g,h){var j=g.audio&&g.video,o=!1,t=h.cfg.mediaelement,l=h.bugs,r=function(){h.ready("mediaelement-swf",function(){if(!h.mediaelement.createSWF)h.modules["mediaelement-swf"].test=a.noop,h.reTest(["mediaelement-swf"],j)})},n;if(j){var q=document.createElement("video");g.videoBuffered="buffered"in q;o="loop"in q;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(h.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
-test:g.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(j&&!t.preferFlash){var u=function(m){var g=m.target.parentNode;!t.preferFlash&&(a(m.target).is("audio, video")||g&&a("source:last",g)[0]==m.target)&&h.ready("DOM mediaelement",function(){n&&r();h.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!t.preferFlash&&h.mediaelement.createSWF&&!a(m.target).closest("audio, video").is(".nonnative-api-active")?(t.preferFlash=!0,document.removeEventListener("error",
-u,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+m.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);a("audio, video").each(function(){this.error&&u({target:this})})}l.track=!1;g.track&&function(){if(!l.track)l.track="number"!=typeof a("<track />")[0].readyState;if(!l.track)try{new TextTrackCue(2,3,"")}catch(m){try{new TextTrackCue("",2,3,"","",!1);var g=TextTrackCue;
-window.TextTrackCue=function(a,e,c,b,d,i){3!=arguments.length&&h.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");return 4<arguments.length?new g(a,e,c,b,d||"",i||!1):new g("",a,e,c,"",!1)}}catch(j){l.track=!0}}var n=h.cfg.track,o=function(e){a(e.target).filter("track").each(p)},p=function(){if(l.track||!n.override&&3==a.prop(this,"readyState"))n.override=!0,h.reTest("track"),document.removeEventListener("error",o,!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")},e=function(){document.addEventListener("error",o,!0);l.track?p():a("track").each(p)};n.override||(h.isReady("track")?e():a(e))}();h.register("mediaelement-core",function(a,k,h,u,q){n=swfobject.hasFlashPlayerVersion("9.0.115");var p=k.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=p.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},f=!n&&"postMessage"in h&&j,A=function(){var b;return function(){!b&&f&&(b=!0,k.loader.loadScript("https://www.youtube.com/player_api"),a(function(){k.polyfill("mediaelement-yt")}))}}(),c=function(){n?r():A()};
-k.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});p.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","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"]}};p.mimeTypes.source=a.extend({},p.mimeTypes.audio,p.mimeTypes.video);p.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(p.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=
-a,!1});return d};p.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=u.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)});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));p.srces(this,b);a(this).mediaLoad()})};p.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(",");p.canThirdPlaySrces=function(b,c){var d="";if(n||f)b=a(b),c=c||p.srces(b),a.each(c,function(a,b){if(b.container&&
-b.src&&(n&&-1!=p.swfMimeTypes.indexOf(b.container)||f&&"video/youtube"==b.container))return d=b,!1});return d};var b={};p.canNativePlaySrces=function(c,d){var e="";if(j){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||p.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};p.setError=function(b,c){c||(c="can't play sources");a(b).pause().data("mediaerror",c);k.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&
-a(b).trigger("mediaerror")},1)};var d=function(){var a;return function(b,e,i){k.ready(n?"mediaelement-swf":"mediaelement-yt",function(){p.createSWF?p.createSWF(b,e,i):a||(a=!0,c(),d(b,e,i))});!a&&f&&!p.createSWF&&A()}}(),i=function(a,b,c,e,f){c||!1!==c&&b&&"third"==b.isActive?(c=p.canThirdPlaySrces(a,e))?d(a,c,b):f?p.setError(a,!1):i(a,b,!1,e,!0):(c=p.canNativePlaySrces(a,e))?b&&"third"==b.isActive&&p.setActive(a,"html5",b):f?(p.setError(a,!1),b&&"third"==b.isActive&&p.setActive(a,"html5",b)):i(a,
-b,!0,e,!0)},x=/^(?:embed|object|datalist)$/i,C=function(b,c){var d=k.data(b,"mediaelementBase")||k.data(b,"mediaelementBase",{}),e=p.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||x.test(f.nodeName||"")))c=c||k.data(b,"mediaelement"),i(b,c,t.preferFlash||q,e)};a(u).bind("ended",function(b){var c=k.data(b.target,"mediaelement");(!o||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,
-"loop")&&a(b.target).prop("currentTime",0).play()},1)});o||k.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=k.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=k.data(this,"mediaelement");C(this,a);j&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=k.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(d){var e="";j&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==
-e&&(e=""));!e&&n&&(d=a.trim((d||"").split(";")[0]),-1!=p.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});k.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=k.data(a,"mediaelementBase")||k.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){C(a);a=null},9)}});h=function(){k.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<k.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(j){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",
-function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};g.track&&!l.track&&k.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(k.isReady("mediaelement-core",!0),h(),k.ready("WINDOWLOAD mediaelement",c)):k.ready("mediaelement-swf",h);a(function(){k.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
-(function(a){var g=window.Modernizr,h=a.webshims,j=h.bugs,o=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),t=function(){if(o[0].querySelector)try{j.findRequired=!o[0].querySelector("select:required")}catch(a){j.findRequired=!1}};j.findRequired=!1;j.validationMessage=!1;j.valueAsNumberSet=!1;h.capturingEventPrevented=function(g){if(!g._isPolyfilled){var k=g.isDefaultPrevented,
-h=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 h.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!k.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||j.bustedValidity)t();else if(h.capturingEvents(["input"]),h.capturingEvents(["invalid"],!0),
-g.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var l=a("input",o).eq(0),r,n=function(a){h.loader.loadList(["dom-extend"]);h.ready("dom-extend",a)},q=function(m){var k=["form-extend","form-message","form-native-fix"];m&&(m.preventDefault(),m.stopImmediatePropagation());clearTimeout(r);setTimeout(function(){o&&(o.remove(),o=l=null)},9);if(!g.bugfreeformvalidation)h.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),h.modules["form-extend"].test=a.noop;h.isReady("form-number-date-api")&&
-k.push("form-number-date-api");h.reTest(k);if(l)try{l.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&n(function(){h.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(g){!g&&this&&a.prop(this,"value",a.prop(this,"value"))}});h.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(g){if(!g&&this)g=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(g)}})})}catch(j){}(a.browser.opera||window.testGoodWithFix)&&
-n(function(){var g=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(k){var m=h.defineNodeNameProperty(k,"checkValidity",{prop:{value:function(){h.fromSubmit||a(this).bind("invalid.checkvalidity",g);h.fromCheckValidity=!0;var e=m.prop._supvalue.apply(this,arguments);h.fromSubmit||a(this).unbind("invalid.checkvalidity",g);h.fromCheckValidity=!1;return e}}})})})};o.appendTo("head");if(window.opera||window.testGoodWithFix){t();j.validationMessage=!l.prop("validationMessage");
-if((g.inputtypes||{}).date){try{l.prop("valueAsNumber",0)}catch(u){}j.valueAsNumberSet="1970-01-01"!=l.prop("value")}l.prop("value","")}o.bind("submit",function(a){g.bugfreeformvalidation=!1;q(a)});r=setTimeout(function(){o&&o.triggerHandler("submit")},9);a("input, select",o).bind("invalid",q).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&g.bugfreeformvalidation&&!h.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,
-k=!1;document.addEventListener("contextmenu",function(a){g.test(a.target.nodeName||"")&&(k=a.target.form)&&setTimeout(function(){k=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&k&&k==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
-jQuery.webshims.register("form-core",function(a,g,h,j,o,t){var l={radio:1},r={checkbox:1,radio:1},n=a([]),q=g.bugs,u=function(e){var e=a(e),f,g;f=n;if(l[e[0].type])g=e.prop("form"),f=(f=e[0].name)?g?a(g[f]):a(j.getElementsByName(f)).filter(function(){return!a.prop(this,"form")}):e,f=f.filter('[type="radio"]');return f},m=g.getContentValidationMessage=function(e,f,g){var c=a(e).data("errormessage")||e.getAttribute("x-moz-errormessage")||"";g&&c[g]&&(c=c[g]);"object"==typeof c&&(f=f||a.prop(e,"validity")||
-{valid:1},f.valid||a.each(f,function(a,d){if(d&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},k={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(e){return!(!a.prop(e,"willValidate")||!(a.prop(e,"validity")||{valid:1}).valid)},"invalid-element":function(e){return!(!a.prop(e,"willValidate")||(a.prop(e,"validity")||{valid:1}).valid)},"required-element":function(e){return!(!a.prop(e,"willValidate")||!a.prop(e,"required"))},"optional-element":function(e){return!!(a.prop(e,
-"willValidate")&&!1===a.prop(e,"required"))},"in-range":function(e){if(!k[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||e.rangeOverflow||e.rangeUnderflow)},"out-of-range":function(e){if(!k[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||!e.rangeOverflow&&!e.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(e){a.expr[":"][e]=a.expr.filters[e+"-element"]});a.expr[":"].focus=function(a){try{var f=
-a.ownerDocument;return a===f.activeElement&&(!f.hasFocus||f.hasFocus())}catch(g){}return!1};var y=a.event.customEvent||{};(q.bustedValidity||q.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var e=a.find,f=a.find.matchesSelector,g=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,c=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,d=function(d){var f=arguments,f=a.call(f,1,f.length);f.unshift(d.replace(g,c));return e.apply(this,
-f)},f;for(f in e)e.hasOwnProperty(f)&&(d[f]=e[f]);return d}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",j.documentElement))a.find.matchesSelector=function(a,d){d=d.replace(g,c);return f.call(this,a,d)}}();var w=a.prop,B={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(e,f,g){var c=w.apply(this,arguments);if(e&&"form"in e&&B[f]&&g!==o&&a(e).hasClass("form-ui-invalid")&&(a.prop(e,"validity")||{valid:1}).valid)a(e).getShadowElement().removeClass("form-ui-invalid"),
+(function(a,g,i){var j=g.audio&&g.video,o=!1,t=i.cfg.mediaelement,m=i.bugs,r=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=a.noop,i.reTest(["mediaelement-swf"],j)})},n;if(j){var q=document.createElement("video");g.videoBuffered="buffered"in q;o="loop"in q;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
+test:g.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(j&&!t.preferFlash){var u=function(f){var g=f.target.parentNode;!t.preferFlash&&(a(f.target).is("audio, video")||g&&a("source:last",g)[0]==f.target)&&i.ready("DOM mediaelement",function(){n&&r();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!t.preferFlash&&i.mediaelement.createSWF&&!a(f.target).closest("audio, video").is(".nonnative-api-active")?(t.preferFlash=!0,document.removeEventListener("error",
+u,!0),a("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);a("audio, video").each(function(){this.error&&u({target:this})})}m.track=!1;g.track&&function(){if(!m.track)m.track="number"!=typeof a("<track />")[0].readyState;if(!m.track)try{new TextTrackCue(2,3,"")}catch(f){m.track=!0}var g=i.cfg.track,j=function(f){a(f.target).filter("track").each(n)},
+n=function(){if(m.track||!g.override&&3==a.prop(this,"readyState"))g.override=!0,i.reTest("track"),document.removeEventListener("error",j,!0),this&&a.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},o=function(){document.addEventListener("error",j,!0);m.track?n():a("track").each(n)};g.override||(i.isReady("track")?o():a(o))}();i.register("mediaelement-core",function(a,
+l,i,u,q){n=swfobject.hasFlashPlayerVersion("9.0.115");var p=l.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=p.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},k=!n&&"postMessage"in i&&j,A=
+function(){var b;return function(){!b&&k&&(b=!0,l.loader.loadScript("https://www.youtube.com/player_api"),a(function(){l.polyfill("mediaelement-yt")}))}}(),c=function(){n?r():A()};l.addPolyfill("mediaelement-yt",{test:!k,d:["dom-support"]});p.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",
+"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"]}};p.mimeTypes.source=a.extend({},p.mimeTypes.audio,p.mimeTypes.video);p.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
+-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(p.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};p.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=u.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)});
+else{var c=[],d=b[0].nodeName.toLowerCase(),h=e(b,d);h.src?c.push(h):a("source",b).each(function(){h=e(this,d);h.src&&c.push(h)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==q&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));p.srces(this,b);a(this).mediaLoad()})};p.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(",");
+p.canThirdPlaySrces=function(b,c){var d="";if(n||k)b=a(b),c=c||p.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(n&&-1!=p.swfMimeTypes.indexOf(b.container)||k&&"video/youtube"==b.container))return d=b,!1});return d};var b={};p.canNativePlaySrces=function(c,d){var e="";if(j){var c=a(c),h=(c[0].nodeName||"").toLowerCase();if(!b[h])return e;d=d||p.srces(c);a.each(d,function(a,d){if(d.type&&b[h].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};p.setError=function(b,c){c||(c="can't play sources");
+a(b).pause().data("mediaerror",c);l.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var d=function(){var a;return function(b,e,h){l.ready(n?"mediaelement-swf":"mediaelement-yt",function(){p.createSWF?p.createSWF(b,e,h):a||(a=!0,c(),d(b,e,h))});!a&&k&&!p.createSWF&&A()}}(),h=function(a,b,c,e,k){c||!1!==c&&b&&"third"==b.isActive?(c=p.canThirdPlaySrces(a,e))?d(a,c,b):k?p.setError(a,!1):h(a,b,!1,e,!0):(c=p.canNativePlaySrces(a,e))?b&&"third"==
+b.isActive&&p.setActive(a,"html5",b):k?(p.setError(a,!1),b&&"third"==b.isActive&&p.setActive(a,"html5",b)):h(a,b,!0,e,!0)},w=/^(?:embed|object|datalist)$/i,C=function(b,c){var d=l.data(b,"mediaelementBase")||l.data(b,"mediaelementBase",{}),e=p.srces(b),k=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&k&&!(1!=k.nodeType||w.test(k.nodeName||"")))c=c||l.data(b,"mediaelement"),h(b,c,t.preferFlash||q,e)};a(u).bind("ended",function(b){var c=l.data(b.target,"mediaelement");
+(!o||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});o||l.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=l.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=l.data(this,"mediaelement");C(this,a);j&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=l.defineNodeNameProperty(c,
+"canPlayType",{prop:{value:function(d){var e="";j&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&n&&(d=a.trim((d||"").split(";")[0]),-1!=p.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});l.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=l.data(a,"mediaelementBase")||l.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){C(a);a=null},9)}});i=function(){l.addReady(function(b,c){a("video, audio",
+b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<l.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(j){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,h=b.length;e<h;e++)c+=b.end(e);return c}},h=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
+a.type&&(c=e());clearTimeout(b);b=setTimeout(h,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};g.track&&!m.track&&l.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(l.isReady("mediaelement-core",!0),i(),l.ready("WINDOWLOAD mediaelement",c)):l.ready("mediaelement-swf",i);a(function(){l.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
+(function(a){var g=window.Modernizr,i=a.webshims,j=i.bugs,o=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),t=function(){if(o[0].querySelector)try{j.findRequired=!o[0].querySelector("select:required")}catch(a){j.findRequired=!1}};j.findRequired=!1;j.validationMessage=!1;j.valueAsNumberSet=!1;i.capturingEventPrevented=function(f){if(!f._isPolyfilled){var g=f.isDefaultPrevented,
+i=f.preventDefault;f.preventDefault=function(){clearTimeout(a.data(f.target,f.type+"DefaultPrevented"));a.data(f.target,f.type+"DefaultPrevented",setTimeout(function(){a.removeData(f.target,f.type+"DefaultPrevented")},30));return i.apply(this,arguments)};f.isDefaultPrevented=function(){return!(!g.apply(this,arguments)&&!a.data(f.target,f.type+"DefaultPrevented"))};f._isPolyfilled=!0}};if(!g.formvalidation||j.bustedValidity)t();else if(i.capturingEvents(["input"]),i.capturingEvents(["invalid"],!0),
+g.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var m=a("input",o).eq(0),r,n=function(a){i.loader.loadList(["dom-extend"]);i.ready("dom-extend",a)},q=function(f){var l=["form-extend","form-message","form-native-fix"];f&&(f.preventDefault(),f.stopImmediatePropagation());clearTimeout(r);setTimeout(function(){o&&(o.remove(),o=m=null)},9);if(!g.bugfreeformvalidation)i.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),i.modules["form-extend"].test=a.noop;i.isReady("form-number-date-api")&&
+l.push("form-number-date-api");i.reTest(l);if(m)try{m.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&n(function(){i.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(f){!f&&this&&a.prop(this,"value",a.prop(this,"value"))}});i.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(f){if(!f&&this)f=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(f)}})})}catch(j){}(a.browser.opera||window.testGoodWithFix)&&
+n(function(){var f=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(g){var l=i.defineNodeNameProperty(g,"checkValidity",{prop:{value:function(){i.fromSubmit||a(this).bind("invalid.checkvalidity",f);i.fromCheckValidity=!0;var e=l.prop._supvalue.apply(this,arguments);i.fromSubmit||a(this).unbind("invalid.checkvalidity",f);i.fromCheckValidity=!1;return e}}})})})};o.appendTo("head");if(window.opera||window.testGoodWithFix){t();j.validationMessage=!m.prop("validationMessage");
+if((g.inputtypes||{}).date){try{m.prop("valueAsNumber",0)}catch(u){}j.valueAsNumberSet="1970-01-01"!=m.prop("value")}m.prop("value","")}o.bind("submit",function(a){g.bugfreeformvalidation=!1;q(a)});r=setTimeout(function(){o&&o.triggerHandler("submit")},9);a("input, select",o).bind("invalid",q).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&g.bugfreeformvalidation&&!i.bugs.bustedValidity&&function(){var f=/^(?:textarea|input)$/i,
+g=!1;document.addEventListener("contextmenu",function(a){f.test(a.target.nodeName||"")&&(g=a.target.form)&&setTimeout(function(){g=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&g&&g==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
+jQuery.webshims.register("form-core",function(a,g,i,j,o,t){var m={radio:1},r={checkbox:1,radio:1},n=a([]),q=g.bugs,u=function(e){var e=a(e),k,f;k=n;if(m[e[0].type])f=e.prop("form"),k=(k=e[0].name)?f?a(f[k]):a(j.getElementsByName(k)).filter(function(){return!a.prop(this,"form")}):e,k=k.filter('[type="radio"]');return k},f=g.getContentValidationMessage=function(e,k,f){var c=a(e).data("errormessage")||e.getAttribute("x-moz-errormessage")||"";f&&c[f]&&(c=c[f]);"object"==typeof c&&(k=k||a.prop(e,"validity")||
+{valid:1},k.valid||a.each(k,function(a,d){if(d&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},l={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(e){return!(!a.prop(e,"willValidate")||!(a.prop(e,"validity")||{valid:1}).valid)},"invalid-element":function(e){return!(!a.prop(e,"willValidate")||(a.prop(e,"validity")||{valid:1}).valid)},"required-element":function(e){return!(!a.prop(e,"willValidate")||!a.prop(e,"required"))},"optional-element":function(e){return!!(a.prop(e,
+"willValidate")&&!1===a.prop(e,"required"))},"in-range":function(e){if(!l[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||e.rangeOverflow||e.rangeUnderflow)},"out-of-range":function(e){if(!l[a.prop(e,"type")]||!a.prop(e,"willValidate"))return!1;e=a.prop(e,"validity");return!(!e||!e.rangeOverflow&&!e.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(e){a.expr[":"][e]=a.expr.filters[e+"-element"]});a.expr[":"].focus=function(a){try{var k=
+a.ownerDocument;return a===k.activeElement&&(!k.hasFocus||k.hasFocus())}catch(f){}return!1};var y=a.event.customEvent||{};(q.bustedValidity||q.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var e=a.find,k=a.find.matchesSelector,f=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,c=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,d=function(d){var h=arguments,h=a.call(h,1,h.length);h.unshift(d.replace(f,c));return e.apply(this,
+h)},h;for(h in e)e.hasOwnProperty(h)&&(d[h]=e[h]);return d}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",j.documentElement))a.find.matchesSelector=function(a,d){d=d.replace(f,c);return k.call(this,a,d)}}();var x=a.prop,B={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(e,f,g){var c=x.apply(this,arguments);if(e&&"form"in e&&B[f]&&g!==o&&a(e).hasClass("form-ui-invalid")&&(a.prop(e,"validity")||{valid:1}).valid)a(e).getShadowElement().removeClass("form-ui-invalid"),
"checked"==f&&g&&u(e).not(e).removeClass("form-ui-invalid").removeAttr("aria-invalid");return c};var p=function(e,f){var g;a.each(e,function(c,b){if(b)return g="customError"==c?a.prop(f,"validationMessage"):c,!1});return g};a(j).bind(t.validityUIEvents||"focusout change refreshvalidityui",function(e){var f,g;if(e.target&&(f=a(e.target).getNativeElement()[0],"submit"!=f.type&&a.prop(f,"willValidate"))){g=a.data(f,"webshimsswitchvalidityclass");var c=function(){var b=a.prop(f,"validity"),c=a(f).getShadowElement(),
-g,k,h,j;a(f).trigger("refreshCustomValidityRules");b.valid?c.hasClass("form-ui-valid")||(g="form-ui-valid",k="form-ui-invalid",j="changedvaliditystate",h="changedvalid",r[f.type]&&f.checked&&u(f).not(f).removeClass(k).addClass(g).removeAttr("aria-invalid"),a.removeData(f,"webshimsinvalidcause")):(b=p(b,f),a.data(f,"webshimsinvalidcause")!=b&&(a.data(f,"webshimsinvalidcause",b),j="changedvaliditystate"),c.hasClass("form-ui-invalid")||(g="form-ui-invalid",k="form-ui-valid",r[f.type]&&!f.checked&&u(f).not(f).removeClass(k).addClass(g),
-h="changedinvalid"));g&&(c.addClass(g).removeClass(k),setTimeout(function(){a(f).trigger(h)},0));j&&setTimeout(function(){a(f).trigger(j)},0);a.removeData(e.target,"webshimsswitchvalidityclass")};g&&clearTimeout(g);"refreshvalidityui"==e.type?c():a.data(e.target,"webshimsswitchvalidityclass",setTimeout(c,9))}});y.changedvaliditystate=!0;y.refreshCustomValidityRules=!0;y.changedvalid=!0;y.changedinvalid=!0;y.refreshvalidityui=!0;g.triggerInlineForm=function(e,f){a(e).trigger(f)};g.modules["form-core"].getGroupElements=
-u;q=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==j.compatMode?a(j.body):a(j.documentElement)};q();g.ready("DOM",q);g.getRelOffset=function(e,f){var e=a(e),g=a(f).offset(),c;a.swap(a(e)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){c=e.offset()});g.top-=c.top;g.left-=c.left;return g};g.validityAlert=function(){var e=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",f,k=!1,c=!1,b,d={hideDelay:5E3,showFor:function(e,g,j,m){d._create();var e=a(e),n=
-a(e).getShadowElement(),l=d.getOffsetFromBody(n);d.clear();m?this.hide():(this.getMessage(e,g),this.position(n,l),f.css({fontSize:e.css("fontSize"),fontFamily:e.css("fontFamily")}),this.show(),this.hideDelay&&(k=setTimeout(b,this.hideDelay)),a(h).bind("resize.validityalert",function(){clearTimeout(c);c=setTimeout(function(){d.position(n)},9)}));j||this.setFocus(n,l)},getOffsetFromBody:function(a){return g.getRelOffset(f,a)},setFocus:function(c,d){var k=a(c).getShadowFocusElement(),h=g.scrollRoot.scrollTop(),
-n=(d||k.offset()).top-30,m;g.getID&&"label"==e&&f.attr("for",g.getID(k));h>n&&(g.scrollRoot.animate({scrollTop:n-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(h-n)),80)}),m=!0);try{k[0].focus()}catch(l){}m&&(g.scrollRoot.scrollTop(h),setTimeout(function(){g.scrollRoot.scrollTop(h)},0));setTimeout(function(){a(j).bind("focusout.validityalert",b)},10)},getMessage:function(b,c){c||(c=m(b[0])||b.prop("validationMessage"));c?a("span.va-box",f).text(c):this.hide()},position:function(b,c){c=c?a.extend({},
-c):d.getOffsetFromBody(b);c.top+=b.outerHeight();f.css(c)},show:function(){"none"===f.css("display")&&f.css({opacity:0}).show();f.addClass("va-visible").fadeTo(400,1)},hide:function(){f.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(k);a(j).unbind(".validityalert");a(h).unbind(".validityalert");f.stop().removeAttr("for")},_create:function(){if(!f)f=d.errorBubble=a("<"+e+' 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></'+
-e+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){f.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&f.bgIframe()})}};b=a.proxy(d,"hide");return d}();(function(){var e,f=[],g;a(j).bind("invalid",function(c){if(!c.wrongWebkitInvalid){var b=a(c.target),d=b.getShadowElement();d.hasClass("form-ui-invalid")||(d.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(c.target).trigger("changedinvalid").trigger("changedvaliditystate")},
+h,g,i,l;a(f).trigger("refreshCustomValidityRules");b.valid?c.hasClass("form-ui-valid")||(h="form-ui-valid",g="form-ui-invalid",l="changedvaliditystate",i="changedvalid",r[f.type]&&f.checked&&u(f).not(f).removeClass(g).addClass(h).removeAttr("aria-invalid"),a.removeData(f,"webshimsinvalidcause")):(b=p(b,f),a.data(f,"webshimsinvalidcause")!=b&&(a.data(f,"webshimsinvalidcause",b),l="changedvaliditystate"),c.hasClass("form-ui-invalid")||(h="form-ui-invalid",g="form-ui-valid",r[f.type]&&!f.checked&&u(f).not(f).removeClass(g).addClass(h),
+i="changedinvalid"));h&&(c.addClass(h).removeClass(g),setTimeout(function(){a(f).trigger(i)},0));l&&setTimeout(function(){a(f).trigger(l)},0);a.removeData(e.target,"webshimsswitchvalidityclass")};g&&clearTimeout(g);"refreshvalidityui"==e.type?c():a.data(e.target,"webshimsswitchvalidityclass",setTimeout(c,9))}});y.changedvaliditystate=!0;y.refreshCustomValidityRules=!0;y.changedvalid=!0;y.changedinvalid=!0;y.refreshvalidityui=!0;g.triggerInlineForm=function(e,f){a(e).trigger(f)};g.modules["form-core"].getGroupElements=
+u;q=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==j.compatMode?a(j.body):a(j.documentElement)};q();g.ready("DOM",q);g.getRelOffset=function(e,f){var e=a(e),g=a(f).offset(),c;a.swap(a(e)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){c=e.offset()});g.top-=c.top;g.left-=c.left;return g};g.validityAlert=function(){var e=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",k,l=!1,c=!1,b,d={hideDelay:5E3,showFor:function(e,f,g,j){d._create();var e=a(e),n=
+a(e).getShadowElement(),m=d.getOffsetFromBody(n);d.clear();j?this.hide():(this.getMessage(e,f),this.position(n,m),k.css({fontSize:e.css("fontSize"),fontFamily:e.css("fontFamily")}),this.show(),this.hideDelay&&(l=setTimeout(b,this.hideDelay)),a(i).bind("resize.validityalert",function(){clearTimeout(c);c=setTimeout(function(){d.position(n)},9)}));g||this.setFocus(n,m)},getOffsetFromBody:function(a){return g.getRelOffset(k,a)},setFocus:function(c,d){var f=a(c).getShadowFocusElement(),l=g.scrollRoot.scrollTop(),
+i=(d||f.offset()).top-30,n;g.getID&&"label"==e&&k.attr("for",g.getID(f));l>i&&(g.scrollRoot.animate({scrollTop:i-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(l-i)),80)}),n=!0);try{f[0].focus()}catch(m){}n&&(g.scrollRoot.scrollTop(l),setTimeout(function(){g.scrollRoot.scrollTop(l)},0));setTimeout(function(){a(j).bind("focusout.validityalert",b)},10)},getMessage:function(b,c){c||(c=f(b[0])||b.prop("validationMessage"));c?a("span.va-box",k).text(c):this.hide()},position:function(b,c){c=c?a.extend({},
+c):d.getOffsetFromBody(b);c.top+=b.outerHeight();k.css(c)},show:function(){"none"===k.css("display")&&k.css({opacity:0}).show();k.addClass("va-visible").fadeTo(400,1)},hide:function(){k.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(l);a(j).unbind(".validityalert");a(i).unbind(".validityalert");k.stop().removeAttr("for")},_create:function(){if(!k)k=d.errorBubble=a("<"+e+' 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></'+
+e+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){k.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&k.bgIframe()})}};b=a.proxy(d,"hide");return d}();(function(){var e,f=[],g;a(j).bind("invalid",function(c){if(!c.wrongWebkitInvalid){var b=a(c.target),d=b.getShadowElement();d.hasClass("form-ui-invalid")||(d.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(c.target).trigger("changedinvalid").trigger("changedvaliditystate")},
0));if(!e)e=a.Event("firstinvalid"),e.isInvalidUIPrevented=c.isDefaultPrevented,d=a.Event("firstinvalidsystem"),a(j).triggerHandler(d,{element:c.target,form:c.target.form,isInvalidUIPrevented:c.isDefaultPrevented}),b.trigger(e);e&&e.isDefaultPrevented()&&c.preventDefault();f.push(c.target);c.extraData="fix";clearTimeout(g);g=setTimeout(function(){var b={type:"lastinvalid",cancelable:!1,invalidlist:a(f)};e=!1;f=[];a(c.target).trigger(b,b)},9);d=b=null}})})();a.fn.getErrorMessage=function(){var e="",
-f=this[0];f&&(e=m(f)||a.prop(f,"customValidationMessage")||a.prop(f,"validationMessage"));return e};t.replaceValidationUI&&g.ready("DOM forms",function(){a(j).bind("firstinvalid",function(e){e.isInvalidUIPrevented()||(e.preventDefault(),a.webshims.validityAlert.showFor(e.target,a(e.target).prop("customValidationMessage")))})})});
-jQuery.webshims.register("form-message",function(a,g,h,j,o,t){var l=g.validityMessages,h=t.overrideMessages||t.customMessages?["customValidationMessage"]:[];l.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
-stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},l.en||l["en-US"]||{});["select","radio"].forEach(function(a){l.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){l.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
-"time","datetime-local"].forEach(function(a){l.en.rangeOverflow[a]="Value must be at or before {%max}."});l["en-US"]=l["en-US"]||l.en;l[""]=l[""]||l["en-US"];l.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
+g=this[0];g&&(e=f(g)||a.prop(g,"customValidationMessage")||a.prop(g,"validationMessage"));return e};t.replaceValidationUI&&g.ready("DOM forms",function(){a(j).bind("firstinvalid",function(e){e.isInvalidUIPrevented()||(e.preventDefault(),a.webshims.validityAlert.showFor(e.target,a(e.target).prop("customValidationMessage")))})})});
+jQuery.webshims.register("form-message",function(a,g,i,j,o,t){var m=g.validityMessages,i=t.overrideMessages||t.customMessages?["customValidationMessage"]:[];m.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
+stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},m.en||m["en-US"]||{});["select","radio"].forEach(function(a){m.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){m.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
+"time","datetime-local"].forEach(function(a){m.en.rangeOverflow[a]="Value must be at or before {%max}."});m["en-US"]=m["en-US"]||m.en;m[""]=m[""]||m["en-US"];m.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
-checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},l.de||{});["select","radio"].forEach(function(a){l.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){l.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){l.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
-var r=l[""];g.createValidationMessage=function(g,h){var j=r[h];j&&"string"!==typeof j&&(j=j[a.prop(g,"type")]||j[(g.nodeName||"").toLowerCase()]||j.defaultMessage);j&&"value,min,max,title,maxlength,label".split(",").forEach(function(h){if(-1!==j.indexOf("{%"+h)){var k=("label"==h?a.trim(a('label[for="'+g.id+'"]',g.form).text()).replace(/\*$|:$/,""):a.attr(g,h))||"";j=j.replace("{%"+h+"}",k);"value"==h&&(j=j.replace("{%valueLen}",k.length))}});return j||""};(g.bugs.validationMessage||!Modernizr.formvalidation||
-g.bugs.bustedValidity)&&h.push("validationMessage");g.activeLang({langObj:l,module:"form-core",callback:function(a){r=a}});h.forEach(function(h){g.defineNodeNamesProperty(["fieldset","output","button"],h,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(j){var l=g.defineNodeNameProperty(j,h,{prop:{get:function(){var h=this,k="";if(!a.prop(h,"willValidate"))return k;var j=a.prop(h,"validity")||{valid:1};if(j.valid||(k=g.getContentValidationMessage(h,j)))return k;if(j.customError&&
-h.nodeName&&(k=Modernizr.formvalidation&&!g.bugs.bustedValidity&&l.prop._supget?l.prop._supget.call(h):g.data(h,"customvalidationMessage")))return k;a.each(j,function(a,j){if("valid"!=a&&j&&(k=g.createValidationMessage(h,a)))return!1});return k||""},writeable:!1}})})})});
+checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},m.de||{});["select","radio"].forEach(function(a){m.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){m.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){m.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
+var r=m[""];g.createValidationMessage=function(g,i){var j=r[i];j&&"string"!==typeof j&&(j=j[a.prop(g,"type")]||j[(g.nodeName||"").toLowerCase()]||j.defaultMessage);j&&"value,min,max,title,maxlength,label".split(",").forEach(function(f){if(-1!==j.indexOf("{%"+f)){var l=("label"==f?a.trim(a('label[for="'+g.id+'"]',g.form).text()).replace(/\*$|:$/,""):a.attr(g,f))||"";j=j.replace("{%"+f+"}",l);"value"==f&&(j=j.replace("{%valueLen}",l.length))}});return j||""};(g.bugs.validationMessage||!Modernizr.formvalidation||
+g.bugs.bustedValidity)&&i.push("validationMessage");g.activeLang({langObj:m,module:"form-core",callback:function(a){r=a}});i.forEach(function(i){g.defineNodeNamesProperty(["fieldset","output","button"],i,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(j){var m=g.defineNodeNameProperty(j,i,{prop:{get:function(){var f=this,i="";if(!a.prop(f,"willValidate"))return i;var j=a.prop(f,"validity")||{valid:1};if(j.valid||(i=g.getContentValidationMessage(f,j)))return i;if(j.customError&&
+f.nodeName&&(i=Modernizr.formvalidation&&!g.bugs.bustedValidity&&m.prop._supget?m.prop._supget.call(f):g.data(f,"customvalidationMessage")))return i;a.each(j,function(a,j){if("valid"!=a&&j&&(i=g.createValidationMessage(f,a)))return!1});return i||""},writeable:!1}})})})});
View
81 demos/js-webshim/minified/shims/combos/20.js
@@ -1,47 +1,46 @@
-(function(c,d,i){var q=d.audio&&d.video,u=!1,m=i.cfg.mediaelement,n=i.bugs,A=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=c.noop,i.reTest(["mediaelement-swf"],q)})},o;if(q){var v=document.createElement("video");d.videoBuffered="buffered"in v;u="loop"in v;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));d.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
-test:d.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(q&&!m.preferFlash){var r=function(t){var d=t.target.parentNode;!m.preferFlash&&(c(t.target).is("audio, video")||d&&c("source:last",d)[0]==t.target)&&i.ready("DOM mediaelement",function(){o&&A();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){o&&!m.preferFlash&&i.mediaelement.createSWF&&!c(t.target).closest("audio, video").is(".nonnative-api-active")?(m.preferFlash=!0,document.removeEventListener("error",
-r,!0),c("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+t.target.src)):o||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);c("audio, video").each(function(){this.error&&r({target:this})})}n.track=!1;d.track&&function(){if(!n.track)n.track="number"!=typeof c("<track />")[0].readyState;if(!n.track)try{new TextTrackCue(2,3,"")}catch(d){try{new TextTrackCue("",2,3,"","",!1);var k=TextTrackCue;
-window.TextTrackCue=function(c,d,t,g,j,m){3!=arguments.length&&i.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");return 4<arguments.length?new k(c,d,t,g,j||"",m||!1):new k("",c,d,t,"",!1)}}catch(m){n.track=!0}}var o=i.cfg.track,l=function(d){c(d.target).filter("track").each(g)},g=function(){if(n.track||!o.override&&3==c.prop(this,"readyState"))o.override=!0,i.reTest("track"),document.removeEventListener("error",l,!0),this&&c.nodeName(this,"track")?
-i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},j=function(){document.addEventListener("error",l,!0);n.track?g():c("track").each(g)};o.override||(i.isReady("track")?j():c(j))}();i.register("mediaelement-core",function(c,k,i,r,l){o=swfobject.hasFlashPlayerVersion("9.0.115");var g=k.mediaelement,j=function(f,e){var f=c(f),d={src:f.attr("src")||"",elem:f,srcProp:f.prop("src")};if(!d.src)return d;
-var h=f.attr("type");if(h)d.type=h,d.container=c.trim(h.split(";")[0]);else if(e||(e=f[0].nodeName.toLowerCase(),"source"==e&&(e=(f.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),h=g.getTypeForSrc(d.src,e))d.type=h,d.container=h;if(h=f.attr("media"))d.media=h;return d},x=!o&&"postMessage"in i&&q,v=function(){var f;return function(){!f&&x&&(f=!0,k.loader.loadScript("https://www.youtube.com/player_api"),c(function(){k.polyfill("mediaelement-yt")}))}}(),y=function(){o?A():v()};
-k.addPolyfill("mediaelement-yt",{test:!x,d:["dom-support"]});g.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","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"]}};g.mimeTypes.source=c.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(f,e){if(-1!=f.indexOf("youtube.com/watch?")||-1!=f.indexOf("youtube.com/v/"))return"video/youtube";var f=f.split("?")[0].split("."),f=f[f.length-1],d;c.each(g.mimeTypes[e],function(c,e){if(-1!==e.indexOf(f))return d=
-c,!1});return d};g.srces=function(f,e){f=c(f);if(e)f.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(e)||(e=[e]),e.forEach(function(c){var e=r.createElement("source");"string"==typeof c&&(c={src:c});e.setAttribute("src",c.src);c.type&&e.setAttribute("type",c.type);c.media&&e.setAttribute("media",c.media);f.append(e)});else{var e=[],d=f[0].nodeName.toLowerCase(),h=j(f,d);h.src?e.push(h):c("source",f).each(function(){h=j(this,d);h.src&&e.push(h)});return e}};c.fn.loadMediaSrc=
-function(f,e){return this.each(function(){e!==l&&(c(this).removeAttr("poster"),e&&c.attr(this,"poster",e));g.srces(this,f);c(this).mediaLoad()})};g.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(",");g.canThirdPlaySrces=function(f,e){var d="";if(o||x)f=c(f),e=e||g.srces(f),c.each(e,function(c,f){if(f.container&&
-f.src&&(o&&-1!=g.swfMimeTypes.indexOf(f.container)||x&&"video/youtube"==f.container))return d=f,!1});return d};var p={};g.canNativePlaySrces=function(f,e){var d="";if(q){var f=c(f),h=(f[0].nodeName||"").toLowerCase();if(!p[h])return d;e=e||g.srces(f);c.each(e,function(c,e){if(e.type&&p[h].prop._supvalue.call(f[0],e.type))return d=e,!1})}return d};g.setError=function(f,e){e||(e="can't play sources");c(f).pause().data("mediaerror",e);k.warn("mediaelementError: "+e);setTimeout(function(){c(f).data("mediaerror")&&
-c(f).trigger("mediaerror")},1)};var D=function(){var c;return function(e,d,h){k.ready(o?"mediaelement-swf":"mediaelement-yt",function(){g.createSWF?g.createSWF(e,d,h):c||(c=!0,y(),D(e,d,h))});!c&&x&&!g.createSWF&&v()}}(),B=function(c,e,d,h,i){d||!1!==d&&e&&"third"==e.isActive?(d=g.canThirdPlaySrces(c,h))?D(c,d,e):i?g.setError(c,!1):B(c,e,!1,h,!0):(d=g.canNativePlaySrces(c,h))?e&&"third"==e.isActive&&g.setActive(c,"html5",e):i?(g.setError(c,!1),e&&"third"==e.isActive&&g.setActive(c,"html5",e)):B(c,
-e,!0,h,!0)},E=/^(?:embed|object|datalist)$/i,C=function(d,e){var i=k.data(d,"mediaelementBase")||k.data(d,"mediaelementBase",{}),h=g.srces(d),j=d.parentNode;clearTimeout(i.loadTimer);c.data(d,"mediaerror",!1);if(h.length&&j&&!(1!=j.nodeType||E.test(j.nodeName||"")))e=e||k.data(d,"mediaelement"),B(d,e,m.preferFlash||l,h)};c(r).bind("ended",function(d){var e=k.data(d.target,"mediaelement");(!u||e&&"html5"!=e.isActive||c.prop(d.target,"loop"))&&setTimeout(function(){!c.prop(d.target,"paused")&&c.prop(d.target,
-"loop")&&c(d.target).prop("currentTime",0).play()},1)});u||k.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var e=k.defineNodeNameProperty(d,"load",{prop:{value:function(){var c=k.data(this,"mediaelement");C(this,c);q&&(!c||"html5"==c.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});p[d]=k.defineNodeNameProperty(d,"canPlayType",{prop:{value:function(e){var h="";q&&p[d].prop._supvalue&&(h=p[d].prop._supvalue.call(this,e),"no"==
-h&&(h=""));!h&&o&&(e=c.trim((e||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(e)&&(h="maybe"));return h}}})});k.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=this,d=k.data(c,"mediaelementBase")||k.data(c,"mediaelementBase",{});clearTimeout(d.loadTimer);d.loadTimer=setTimeout(function(){C(c);c=null},9)}});i=function(){k.addReady(function(d,e){c("video, audio",d).add(e.filter("video, audio")).each(function(){c.browser.msie&&8<k.browserVersion&&c.prop(this,"paused")&&
-!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():C(this);if(q){var d,e,f=this,g=function(){var d=c.prop(f,"buffered");if(d){for(var e="",g=0,i=d.length;g<i;g++)e+=d.end(g);return e}},i=function(){var d=g();d!=e&&(e=d,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(e=g());clearTimeout(d);d=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",
-function(c){"emptied"==c.type&&(e=!1);clearTimeout(d)})}})})};d.track&&!n.track&&k.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});q?(k.isReady("mediaelement-core",!0),i(),k.ready("WINDOWLOAD mediaelement",y)):k.ready("mediaelement-swf",i);c(function(){k.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
-jQuery.webshims.register("mediaelement-swf",function(c,d,i,q,u,m){var n=d.mediaelement,A=i.swfobject,o=Modernizr.audio&&Modernizr.video,v=A.hasFlashPlayerVersion("9.0.115"),r=0,i={paused:!0,ended:!1,currentSrc:"",duration:i.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)d.error("buffered index size error");else return 0},end:function(a){if(a)d.error("buffered index size error");else return 0},length:0}},t=Object.keys(i),k={currentTime:0,volume:1,
-muted:!1};Object.keys(k);var H=c.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:u},i,k),I=/^jwplayer-/,l=function(a){if(a=q.getElementById(a.replace(I,"")))return a=d.data(a,"mediaelement"),"third"==a.isActive?a:null},g=function(a){return(a=d.data(a,"mediaelement"))&&"third"==a.isActive?a:null},j=function(a,b){b=c.Event(b);b.preventDefault();c.event.trigger(b,u,a)},x=m.playerPath||d.cfg.basePath+
-"jwplayer/"+(m.playerName||"player.swf"),G=m.pluginPath||d.cfg.basePath+"swf/jwwebshims.swf";d.extendUNDEFProp(m.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});d.extendUNDEFProp(m.jwVars,{screencolor:"ffffffff"});d.extendUNDEFProp(m.jwAttrs,{bgcolor:"#000000"});var y=function(a,b){var d=a.duration;if(!(d&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&&
-a.duration!=a._lastDuration?(j(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&n.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},p=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,j(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){p(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,j(b._elem,"canplaythrough");b.readyState=a};c.extend(c.event.customEvent,
-{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});n.jwEvents={View:{PLAY:function(a){var b=l(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;j(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(a){var b=l(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5<a.percentage&&25>a.percentage||100===a.percentage)&&y(b,a);if(b.ended)b.ended=
-!1;if(b.duration){2<a.percentage&&20>a.percentage?p(3,b):20<a.percentage&&p(4,b);if(b._bufferedEnd&&b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,p(4,b);c.event.trigger("progress",u,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:l(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var c=b.duration;if(a.duration)b.duration=
-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&&p(1,b);b.duration&&c!==b.duration&&j(b._elem,"durationchange");j(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=l(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&y(b,a);2>b.readyState&&p(2,b);if(b.ended)b.ended=!1;j(b._elem,"timeupdate")}},STATE:function(a){var b=
-l(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;p(1,b);j(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||y(b,a);3>b.readyState&&p(3,b);if(b.ended)b.ended=!1;j(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,j(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&p(4,b),b.ended=!0,j(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=l(a.id);b&&n.setError(b._elem,a.message)},SEEK:function(a){var b=
-l(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,j(b._elem,"timeupdate")}},VOLUME:function(a){var b=l(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,j(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=l(a.id);if(b&&b.muted!=a.state)b.muted=a.state,j(b._elem,"volumechange")}}}};var D=function(a){var b=!0;c.each(n.jwEvents,function(d,e){c.each(e,function(c){try{a.jwapi["add"+d+"Listener"](c,
-"jQuery.webshims.mediaelement.jwEvents."+d+"."+c)}catch(e){return b=!1}})});return b},B=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=[]},E=function(a){a&&(a._ppFlag===u&&c.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===u||!a.paused))try{c(a._elem).play()}catch(b){}},1)},C=function(a){if(a&&
-"video"==a._elemNodeName){var b,d,e,f,w,s,g,i,h=function(h,j){if(j&&h&&!(1>j||1>h||"third"!=a.isActive))if(b&&(b.remove(),b=!1),f=h,w=j,clearTimeout(g),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){s=s||c(a._elem).getShadowElement();var k;d&&!e?(k=s.height(),h*=k/j,j=k):!d&&e&&(k=s.width(),j*=k/h,h=k);i=!0;setTimeout(function(){i=!1},9);s.css({width:h,height:j})}},j=function(){if(!("third"!=a.isActive||c.prop(a._elem,"readyState")&&c.prop(this,"videoWidth"))){var f=c.prop(a._elem,
-"poster");if(f&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))b&&(b.remove(),b=!1),b=c('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(g);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,e=a.naturalHeight||a.height||a.offsetHeight;e&&d?(h(d,e),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;e=a.naturalHeight||a.height||a.offsetHeight;
-h(d,e);b&&(b.remove(),b=!1);a=null},9);c(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?c(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){c(a._elem).triggerHandler("error")},9999))})}};c(a._elem).bind("loadedmetadata",function(){h(c.prop(this,"videoWidth"),c.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){i||h(f,w)}).bind("emptied",function(){f=void 0;w=void 0}).triggerHandler("swfstageresize");
-j();c.prop(a._elem,"readyState")&&h(c.prop(a._elem,"videoWidth"),c.prop(a._elem,"videoHeight"))}};n.playerResize=function(a){a&&(a=q.getElementById(a.replace(I,"")))&&c(a).triggerHandler("swfstageresize")};c(q).bind("emptied",function(a){a=g(a.target);E(a)});var f;n.jwPlayerReady=function(a){var b=l(a.id),e=0,g=function(){if(!(9<e))if(e++,D(b)){if(b.wasSwfReady)c(b._elem).mediaLoad();else{var f=parseFloat(a.version,10);(5.6>f||6<=f)&&d.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=
+(function(c,d,g){var q=d.audio&&d.video,t=!1,m=g.cfg.mediaelement,n=g.bugs,A=function(){g.ready("mediaelement-swf",function(){if(!g.mediaelement.createSWF)g.modules["mediaelement-swf"].test=c.noop,g.reTest(["mediaelement-swf"],q)})},o;if(q){var u=document.createElement("video");d.videoBuffered="buffered"in u;t="loop"in u;g.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));d.videoBuffered||(g.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
+test:d.videoBuffered,d:["dom-support"]}),g.reTest("mediaelement-native-fix"))}if(q&&!m.preferFlash){var r=function(w){var d=w.target.parentNode;!m.preferFlash&&(c(w.target).is("audio, video")||d&&c("source:last",d)[0]==w.target)&&g.ready("DOM mediaelement",function(){o&&A();g.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){o&&!m.preferFlash&&g.mediaelement.createSWF&&!c(w.target).closest("audio, video").is(".nonnative-api-active")?(m.preferFlash=!0,document.removeEventListener("error",
+r,!0),c("audio, video").mediaLoad(),g.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+w.target.src)):o||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);c("audio, video").each(function(){this.error&&r({target:this})})}n.track=!1;d.track&&function(){if(!n.track)n.track="number"!=typeof c("<track />")[0].readyState;if(!n.track)try{new TextTrackCue(2,3,"")}catch(d){n.track=!0}var i=g.cfg.track,m=function(d){c(d.target).filter("track").each(o)},
+o=function(){if(n.track||!i.override&&3==c.prop(this,"readyState"))i.override=!0,g.reTest("track"),document.removeEventListener("error",m,!0),this&&c.nodeName(this,"track")?g.error("track support was overwritten. Please check your vtt including your vtt mime-type"):g.info("track support was overwritten. due to bad browser support")},p=function(){document.addEventListener("error",m,!0);n.track?o():c("track").each(o)};i.override||(g.isReady("track")?p():c(p))}();g.register("mediaelement-core",function(c,
+i,g,r,p){o=swfobject.hasFlashPlayerVersion("9.0.115");var h=i.mediaelement,k=function(f,e){var f=c(f),d={src:f.attr("src")||"",elem:f,srcProp:f.prop("src")};if(!d.src)return d;var j=f.attr("type");if(j)d.type=j,d.container=c.trim(j.split(";")[0]);else if(e||(e=f[0].nodeName.toLowerCase(),"source"==e&&(e=(f.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),j=h.getTypeForSrc(d.src,e))d.type=j,d.container=j;if(j=f.attr("media"))d.media=j;return d},x=!o&&"postMessage"in g&&q,u=
+function(){var f;return function(){!f&&x&&(f=!0,i.loader.loadScript("https://www.youtube.com/player_api"),c(function(){i.polyfill("mediaelement-yt")}))}}(),y=function(){o?A():u()};i.addPolyfill("mediaelement-yt",{test:!x,d:["dom-support"]});h.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",
+"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"]}};h.mimeTypes.source=c.extend({},h.mimeTypes.audio,h.mimeTypes.video);h.getTypeForSrc=function(f,e){if(-1!=f.indexOf("youtube.com/watch?")||
+-1!=f.indexOf("youtube.com/v/"))return"video/youtube";var f=f.split("?")[0].split("."),f=f[f.length-1],d;c.each(h.mimeTypes[e],function(c,e){if(-1!==e.indexOf(f))return d=c,!1});return d};h.srces=function(f,e){f=c(f);if(e)f.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(e)||(e=[e]),e.forEach(function(c){var e=r.createElement("source");"string"==typeof c&&(c={src:c});e.setAttribute("src",c.src);c.type&&e.setAttribute("type",c.type);c.media&&e.setAttribute("media",c.media);f.append(e)});
+else{var e=[],d=f[0].nodeName.toLowerCase(),j=k(f,d);j.src?e.push(j):c("source",f).each(function(){j=k(this,d);j.src&&e.push(j)});return e}};c.fn.loadMediaSrc=function(f,e){return this.each(function(){e!==p&&(c(this).removeAttr("poster"),e&&c.attr(this,"poster",e));h.srces(this,f);c(this).mediaLoad()})};h.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(",");
+h.canThirdPlaySrces=function(f,e){var d="";if(o||x)f=c(f),e=e||h.srces(f),c.each(e,function(c,f){if(f.container&&f.src&&(o&&-1!=h.swfMimeTypes.indexOf(f.container)||x&&"video/youtube"==f.container))return d=f,!1});return d};var l={};h.canNativePlaySrces=function(f,e){var d="";if(q){var f=c(f),j=(f[0].nodeName||"").toLowerCase();if(!l[j])return d;e=e||h.srces(f);c.each(e,function(c,e){if(e.type&&l[j].prop._supvalue.call(f[0],e.type))return d=e,!1})}return d};h.setError=function(f,e){e||(e="can't play sources");
+c(f).pause().data("mediaerror",e);i.warn("mediaelementError: "+e);setTimeout(function(){c(f).data("mediaerror")&&c(f).trigger("mediaerror")},1)};var D=function(){var c;return function(e,d,j){i.ready(o?"mediaelement-swf":"mediaelement-yt",function(){h.createSWF?h.createSWF(e,d,j):c||(c=!0,y(),D(e,d,j))});!c&&x&&!h.createSWF&&u()}}(),B=function(c,e,d,j,i){d||!1!==d&&e&&"third"==e.isActive?(d=h.canThirdPlaySrces(c,j))?D(c,d,e):i?h.setError(c,!1):B(c,e,!1,j,!0):(d=h.canNativePlaySrces(c,j))?e&&"third"==
+e.isActive&&h.setActive(c,"html5",e):i?(h.setError(c,!1),e&&"third"==e.isActive&&h.setActive(c,"html5",e)):B(c,e,!0,j,!0)},E=/^(?:embed|object|datalist)$/i,C=function(f,d){var g=i.data(f,"mediaelementBase")||i.data(f,"mediaelementBase",{}),j=h.srces(f),k=f.parentNode;clearTimeout(g.loadTimer);c.data(f,"mediaerror",!1);if(j.length&&k&&!(1!=k.nodeType||E.test(k.nodeName||"")))d=d||i.data(f,"mediaelement"),B(f,d,m.preferFlash||p,j)};c(r).bind("ended",function(d){var e=i.data(d.target,"mediaelement");
+(!t||e&&"html5"!=e.isActive||c.prop(d.target,"loop"))&&setTimeout(function(){!c.prop(d.target,"paused")&&c.prop(d.target,"loop")&&c(d.target).prop("currentTime",0).play()},1)});t||i.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var e=i.defineNodeNameProperty(d,"load",{prop:{value:function(){var c=i.data(this,"mediaelement");C(this,c);q&&(!c||"html5"==c.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});l[d]=i.defineNodeNameProperty(d,
+"canPlayType",{prop:{value:function(e){var j="";q&&l[d].prop._supvalue&&(j=l[d].prop._supvalue.call(this,e),"no"==j&&(j=""));!j&&o&&(e=c.trim((e||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(e)&&(j="maybe"));return j}}})});i.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=this,d=i.data(c,"mediaelementBase")||i.data(c,"mediaelementBase",{});clearTimeout(d.loadTimer);d.loadTimer=setTimeout(function(){C(c);c=null},9)}});g=function(){i.addReady(function(d,e){c("video, audio",
+d).add(e.filter("video, audio")).each(function(){c.browser.msie&&8<i.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():C(this);if(q){var d,e,f=this,h=function(){var d=c.prop(f,"buffered");if(d){for(var e="",h=0,j=d.length;h<j;h++)e+=d.end(h);return e}},g=function(){var d=h();d!=e&&(e=d,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==
+c.type&&(e=h());clearTimeout(d);d=setTimeout(g,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(e=!1);clearTimeout(d)})}})})};d.track&&!n.track&&i.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});q?(i.isReady("mediaelement-core",!0),g(),i.ready("WINDOWLOAD mediaelement",y)):i.ready("mediaelement-swf",g);c(function(){i.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
+jQuery.webshims.register("mediaelement-swf",function(c,d,g,q,t,m){var n=d.mediaelement,A=g.swfobject,o=Modernizr.audio&&Modernizr.video,u=A.hasFlashPlayerVersion("9.0.115"),r=0,g={paused:!0,ended:!1,currentSrc:"",duration:g.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)d.error("buffered index size error");else return 0},end:function(a){if(a)d.error("buffered index size error");else return 0},length:0}},w=Object.keys(g),i={currentTime:0,volume:1,
+muted:!1};Object.keys(i);var H=c.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:t},g,i),G=/^jwplayer-/,p=function(a){if(a=q.getElementById(a.replace(G,"")))return a=d.data(a,"mediaelement"),"third"==a.isActive?a:null},h=function(a){return(a=d.data(a,"mediaelement"))&&"third"==a.isActive?a:null},k=function(a,b){b=c.Event(b);b.preventDefault();c.event.trigger(b,t,a)},x=m.playerPath||d.cfg.basePath+
+"jwplayer/"+(m.playerName||"player.swf"),I=m.pluginPath||d.cfg.basePath+"swf/jwwebshims.swf";d.extendUNDEFProp(m.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});d.extendUNDEFProp(m.jwVars,{screencolor:"ffffffff"});d.extendUNDEFProp(m.jwAttrs,{bgcolor:"#000000"});var y=function(a,b){var d=a.duration;if(!(d&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&&
+a.duration!=a._lastDuration?(k(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&n.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},l=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,k(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){l(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,k(b._elem,"canplaythrough");b.readyState=a};c.extend(c.event.customEvent,
+{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});n.jwEvents={View:{PLAY:function(a){var b=p(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;k(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(a){var b=p(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5<a.percentage&&25>a.percentage||100===a.percentage)&&y(b,a);if(b.ended)b.ended=
+!1;if(b.duration){2<a.percentage&&20>a.percentage?l(3,b):20<a.percentage&&l(4,b);if(b._bufferedEnd&&b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,l(4,b);c.event.trigger("progress",t,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:p(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var c=b.duration;if(a.duration)b.duration=
+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&&l(1,b);b.duration&&c!==b.duration&&k(b._elem,"durationchange");k(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=p(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&y(b,a);2>b.readyState&&l(2,b);if(b.ended)b.ended=!1;k(b._elem,"timeupdate")}},STATE:function(a){var b=
+p(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;l(1,b);k(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||y(b,a);3>b.readyState&&l(3,b);if(b.ended)b.ended=!1;k(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,k(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&l(4,b),b.ended=!0,k(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=p(a.id);b&&n.setError(b._elem,a.message)},SEEK:function(a){var b=
+p(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,k(b._elem,"timeupdate")}},VOLUME:function(a){var b=p(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,k(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=p(a.id);if(b&&b.muted!=a.state)b.muted=a.state,k(b._elem,"volumechange")}}}};var D=function(a){var b=!0;c.each(n.jwEvents,function(d,e){c.each(e,function(c){try{a.jwapi["add"+d+"Listener"](c,
+"jQuery.webshims.mediaelement.jwEvents."+d+"."+c)}catch(e){return b=!1}})});return b},B=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=[]},E=function(a){a&&(a._ppFlag===t&&c.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===t||!a.paused))try{c(a._elem).play()}catch(b){}},1)},C=function(a){if(a&&
+"video"==a._elemNodeName){var b,d,e,f,v,s,h,j,g=function(g,i){if(i&&g&&!(1>i||1>g||"third"!=a.isActive))if(b&&(b.remove(),b=!1),f=g,v=i,clearTimeout(h),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){s=s||c(a._elem).getShadowElement();var k;d&&!e?(k=s.height(),g*=k/i,i=k):!d&&e&&(k=s.width(),i*=k/g,g=k);j=!0;setTimeout(function(){j=!1},9);s.css({width:g,height:i})}},i=function(){if(!("third"!=a.isActive||c.prop(a._elem,"readyState")&&c.prop(this,"videoWidth"))){var f=c.prop(a._elem,
+"poster");if(f&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))b&&(b.remove(),b=!1),b=c('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(h);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,e=a.naturalHeight||a.height||a.offsetHeight;e&&d?(g(d,e),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;e=a.naturalHeight||a.height||a.offsetHeight;
+g(d,e);b&&(b.remove(),b=!1);a=null},9);c(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?c(this).triggerHandler("alreadycomplete"):(clearTimeout(h),h=setTimeout(function(){c(a._elem).triggerHandler("error")},9999))})}};c(a._elem).bind("loadedmetadata",function(){g(c.prop(this,"videoWidth"),c.prop(this,"videoHeight"))}).bind("emptied",i).bind("swfstageresize updatemediaelementdimensions",function(){j||g(f,v)}).bind("emptied",function(){f=void 0;v=void 0}).triggerHandler("swfstageresize");
+i();c.prop(a._elem,"readyState")&&g(c.prop(a._elem,"videoWidth"),c.prop(a._elem,"videoHeight"))}};n.playerResize=function(a){a&&(a=q.getElementById(a.replace(G,"")))&&c(a).triggerHandler("swfstageresize")};c(q).bind("emptied",function(a){a=h(a.target);E(a)});var f;n.jwPlayerReady=function(a){var b=p(a.id),e=0,g=function(){if(!(9<e))if(e++,D(b)){if(b.wasSwfReady)c(b._elem).mediaLoad();else{var f=parseFloat(a.version,10);(5.6>f||6<=f)&&d.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=
!0;b.tryedReframeing=0;B(b);E(b)}else clearTimeout(b.reframeTimer),b.reframeTimer=setTimeout(g,9*e),2<e&&9>b.tryedReframeing&&(b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(f);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");c.prop(b._elem,"volume",b.volume);c.prop(b._elem,"muted",b.muted);g()}};var e=c.noop;if(o){var K={play:1,playing:1},
-h="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),J=h.map(function(a){return a+".webshimspolyfill"}).join(" "),L=function(a){var b=d.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==b.activating)&&(a.stopImmediatePropagation(),K[a.type]&&b.isActive!=b.activating&&c(a.target).pause())},e=function(a){c(a).unbind(J).bind(J,L);h.forEach(function(b){d.moveToFirstEvent(a,b)})};e(q)}n.setActive=function(a,b,
+j="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),J=j.map(function(a){return a+".webshimspolyfill"}).join(" "),L=function(a){var b=d.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==b.activating)&&(a.stopImmediatePropagation(),K[a.type]&&b.isActive!=b.activating&&c(a.target).pause())},e=function(a){c(a).unbind(J).bind(J,L);j.forEach(function(b){d.moveToFirstEvent(a,b)})};e(q)}n.setActive=function(a,b,
e){e||(e=d.data(a,"mediaelement"));if(e&&e.isActive!=b){"html5"!=b&&"third"!=b&&d.warn("wrong type for mediaelement activating: "+b);var f=d.data(a,"shadowData");e.activating=b;c(a).pause();e.isActive=b;"third"==b?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],c(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(c(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1);c(a).trigger("mediaelementapichange")}};
-var O=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(c){if(c){var d=b,e=c.networkState;for(p(0,c);--d;)delete c[a[d]];c.actionQueue=[];c.buffered.length=0;e&&j(c._elem,"emptied")}}}(),F=function(a,b){var d=a._elem,e=a.shadowElem;c(d)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?e.css({width:0,height:0}):e.css({width:d.style.width||
-c(d).width(),height:d.style.height||c(d).height()})};n.createSWF=function(a,b,g){if(v){1>r?r=1:r++;var h=c.extend({},m.jwVars,{image:c.prop(a,"poster")||"",file:b.srcProp}),i=c(a).data("jwvars")||{};g||(g=d.data(a,"mediaelement"));if(g&&g.swfCreated)n.setActive(a,"third",g),O(g),g.currentSrc=b.srcProp,c.extend(h,i),m.changeJW(h,a,b,g,"load"),z(a,"sendEvent",["LOAD",h]);else{var w=c.prop(a,"controls"),s="jwplayer-"+d.getID(a),j=c.extend({},m.jwParams,c(a).data("jwparams")),k=a.nodeName.toLowerCase(),
+var O=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(c){if(c){var d=b,e=c.networkState;for(l(0,c);--d;)delete c[a[d]];c.actionQueue=[];c.buffered.length=0;e&&k(c._elem,"emptied")}}}(),F=function(a,b){var d=a._elem,e=a.shadowElem;c(d)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?e.css({width:0,height:0}):e.css({width:d.style.width||
+c(d).width(),height:d.style.height||c(d).height()})};n.createSWF=function(a,b,g){if(u){1>r?r=1:r++;var h=c.extend({},m.jwVars,{image:c.prop(a,"poster")||"",file:b.srcProp}),i=c(a).data("jwvars")||{};g||(g=d.data(a,"mediaelement"));if(g&&g.swfCreated)n.setActive(a,"third",g),O(g),g.currentSrc=b.srcProp,c.extend(h,i),m.changeJW(h,a,b,g,"load"),z(a,"sendEvent",["LOAD",h]);else{var v=c.prop(a,"controls"),s="jwplayer-"+d.getID(a),j=c.extend({},m.jwParams,c(a).data("jwparams")),k=a.nodeName.toLowerCase(),
p=c.extend({},m.jwAttrs,{name:s,id:s},c(a).data("jwattrs")),l=c('<div class="polyfill-'+k+' polyfill-mediaelement" id="wrapper-'+s+'"><div id="'+s+'"></div>').css({position:"relative",overflow:"hidden"}),g=d.data(a,"mediaelement",d.objectCreate(H,{actionQueue:{value:[]},shadowElem:{value:l},_elemNodeName:{value:k},_elem:{value:a},currentSrc:{value:b.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)d.error("buffered index size error");else return 0},end:function(a){if(a>=
-g.buffered.length)d.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));F(g,w);l.insertBefore(a);o&&c.extend(g,{volume:c.prop(a,"volume"),muted:c.prop(a,"muted")});c.extend(h,{id:s,controlbar:w?m.jwVars.controlbar||("video"==k?"over":"bottom"):"video"==k?"none":"bottom",icons:""+(w&&"video"==k)},i,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});h.plugins=h.plugins?h.plugins+(","+G):G;d.addShadowDom(a,l);e(a);n.setActive(a,
-"third",g);m.changeJW(h,a,b,g,"embed");c(a).bind("updatemediaelementdimensions updateshadowdom",function(){F(g,c.prop(a,"controls"))});C(g);A.embedSWF(x,s,"100%","100%","9.0.0",!1,h,j,p,function(b){if(b.success)g.jwapi=b.ref,w||c(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&l[0].parentNode||"none"==b.ref.style.display)l.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),d.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",
+g.buffered.length)d.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));F(g,v);l.insertBefore(a);o&&c.extend(g,{volume:c.prop(a,"volume"),muted:c.prop(a,"muted")});c.extend(h,{id:s,controlbar:v?m.jwVars.controlbar||("video"==k?"over":"bottom"):"video"==k?"none":"bottom",icons:""+(v&&"video"==k)},i,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});h.plugins=h.plugins?h.plugins+(","+I):I;d.addShadowDom(a,l);e(a);n.setActive(a,
+"third",g);m.changeJW(h,a,b,g,"embed");c(a).bind("updatemediaelementdimensions updateshadowdom",function(){F(g,c.prop(a,"controls"))});C(g);A.embedSWF(x,s,"100%","100%","9.0.0",!1,h,j,p,function(b){if(b.success)g.jwapi=b.ref,v||c(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&l[0].parentNode||"none"==b.ref.style.display)l.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),d.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",
display:"block"})},9),f||(clearTimeout(f),f=setTimeout(function(){var a=c(b.ref);1<a[0].offsetWidth&&1<a[0].offsetHeight&&0===location.protocol.indexOf("file:")?d.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>a[0].offsetWidth||2>a[0].offsetHeight)&&d.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){c(a).mediaLoad()},
-1)};var z=function(a,b,c,d){return(d=d||g(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(a){var b={},e,f=function(c){"audio"==a&&("videoHeight"==c||"videoWidth"==c)||(b[c]={get:function(){var a=g(this);return a?a[c]:o&&e[c].prop._supget?e[c].prop._supget.apply(this):H[c]},writeable:!1})},h=function(a,c){f(a);delete b[a].writeable;
-b[a].set=c};h("volume",function(a){var b=g(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&d.error("volume greater or less than allowed "+a/100);z(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(f){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,j(b._elem,"volumechange")}}else if(e.volume.prop._supset)return e.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=g(this);if(b){if(a=!!a,z(this,"sendEvent",["mute",""+a],b),!(b.muted==
-a||"third"!=b.isActive))b.muted=a,j(b._elem,"volumechange")}else if(e.muted.prop._supset)return e.muted.prop._supset.apply(this,arguments)});h("currentTime",function(a){var b=g(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);z(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,j(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(e.currentTime.prop._supset)return e.currentTime.prop._supset.apply(this,
-arguments)});["play","pause"].forEach(function(a){b[a]={value:function(){var b=g(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),z(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,j(b._elem,a)},1);else if(e[a].prop._supvalue)return e[a].prop._supvalue.apply(this,arguments)}}});t.forEach(f);d.onNodeNamesPropertyModify(a,"controls",function(b,e){var f=g(this);c(this)[e?"addClass":"removeClass"]("webshims-controls");
-if(f){try{z(this,e?"showControls":"hideControls",[a],f)}catch(h){d.warn("you need to generate a crossdomain.xml")}"audio"==a&&F(f,e);c(f.jwapi).attr("tabindex",e?"0":"-1")}});e=d.defineNodeNameProperties(a,b,"prop")});if(v){var M=c.cleanData,N=c.browser.msie&&9>d.browserVersion,P={object:1,OBJECT:1};c.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&r)for(b=0;b<c;b++)if(P[a[b].nodeName]){if("sendEvent"in a[b]){r--;try{a[b].sendEvent("play",!1)}catch(e){}}if(N)try{for(d in a[b])"function"==typeof a[b][d]&&
+1)};var z=function(a,b,c,d){return(d=d||h(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(a){var b={},e,f=function(c){"audio"==a&&("videoHeight"==c||"videoWidth"==c)||(b[c]={get:function(){var a=h(this);return a?a[c]:o&&e[c].prop._supget?e[c].prop._supget.apply(this):H[c]},writeable:!1})},g=function(a,c){f(a);delete b[a].writeable;
+b[a].set=c};g("volume",function(a){var b=h(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&d.error("volume greater or less than allowed "+a/100);z(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(f){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,k(b._elem,"volumechange")}}else if(e.volume.prop._supset)return e.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=h(this);if(b){if(a=!!a,z(this,"sendEvent",["mute",""+a],b),!(b.muted==
+a||"third"!=b.isActive))b.muted=a,k(b._elem,"volumechange")}else if(e.muted.prop._supset)return e.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=h(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);z(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,k(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(e.currentTime.prop._supset)return e.currentTime.prop._supset.apply(this,
+arguments)});["play","pause"].forEach(function(a){b[a]={value:function(){var b=h(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),z(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,k(b._elem,a)},1);else if(e[a].prop._supvalue)return e[a].prop._supvalue.apply(this,arguments)}}});w.forEach(f);d.onNodeNamesPropertyModify(a,"controls",function(b,e){var f=h(this);c(this)[e?"addClass":"removeClass"]("webshims-controls");
+if(f){try{z(this,e?"showControls":"hideControls",[a],f)}catch(g){d.warn("you need to generate a crossdomain.xml")}"audio"==a&&F(f,e);c(f.jwapi).attr("tabindex",e?"0":"-1")}});e=d.defineNodeNameProperties(a,b,"prop")});if(u){var M=c.cleanData,N=c.browser.msie&&9>d.browserVersion,P={object:1,OBJECT:1};c.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&r)for(b=0;b<c;b++)if(P[a[b].nodeName]){if("sendEvent"in a[b]){r--;try{a[b].sendEvent("play",!1)}catch(e){}}if(N)try{for(d in a[b])"function"==typeof a[b][d]&&
(a[b][d]=null)}catch(f){}}return M.apply(this,arguments)}}o||(["poster","src"].forEach(function(a){d.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){d.defineNodeNamesBooleanProperty(["audio","video"],a)}),d.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"))});
View
113 demos/js-webshim/minified/shims/combos/22.js
@@ -1,62 +1,61 @@
-(function(){var b=Function.prototype.call,a=Object.prototype,d=Array.prototype.slice,j,k;if(!Function.prototype.bind)Function.prototype.bind=function(g){var b=this;if("function"!=typeof b)throw new TypeError;var h=d.call(arguments,1),m=function(){if(this instanceof m){var a=function(){};a.prototype=b.prototype;var a=new a,k=b.apply(a,h.concat(d.call(arguments)));return null!==k&&Object(k)===k?k:a}return b.apply(g,h.concat(d.call(arguments)))};return m};k=b.bind(a.toString);j=b.bind(a.hasOwnProperty);
-if(!Array.isArray)Array.isArray=function(g){return"[object Array]"==k(g)};if(!Array.prototype.forEach)Array.prototype.forEach=function(g,b){var h=f(this),m=0,a=h.length>>>0;if("[object Function]"!=k(g))throw new TypeError;for(;m<a;)m in h&&g.call(b,h[m],m,h),m++};if(!Array.prototype.map)Array.prototype.map=function(b,a){var h=f(this),m=h.length>>>0,c=Array(m);if("[object Function]"!=k(b))throw new TypeError;for(var e=0;e<m;e++)e in h&&(c[e]=b.call(a,h[e],e,h));return c};if(!Array.prototype.filter)Array.prototype.filter=
-function(b,a){var h=f(this),m=h.length>>>0,c=[];if("[object Function]"!=k(b))throw new TypeError;for(var e=0;e<m;e++)e in h&&b.call(a,h[e],e,h)&&c.push(h[e]);return c};if(!Array.prototype.every)Array.prototype.every=function(b,a){var h=f(this),m=h.length>>>0;if("[object Function]"!=k(b))throw new TypeError;for(var e=0;e<m;e++)if(e in h&&!b.call(a,h[e],e,h))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(b,a){var h=f(this),e=h.length>>>0;if("[object Function]"!=k(b))throw new TypeError;
-for(var c=0;c<e;c++)if(c in h&&b.call(a,h[c],c,h))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(b){var a=f(this),h=a.length>>>0;if("[object Function]"!=k(b))throw new TypeError;if(!h&&1==arguments.length)throw new TypeError;var e=0,c;if(2<=arguments.length)c=arguments[1];else{do{if(e in a){c=a[e++];break}if(++e>=h)throw new TypeError;}while(1)}for(;e<h;e++)e in a&&(c=b.call(void 0,c,a[e],e,a));return c};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(b){var e=
-f(this),a=e.length>>>0;if("[object Function]"!=k(b))throw new TypeError;if(!a&&1==arguments.length)throw new TypeError;var c,a=a-1;if(2<=arguments.length)c=arguments[1];else{do{if(a in e){c=e[a--];break}if(0>--a)throw new TypeError;}while(1)}do a in this&&(c=b.call(void 0,c,e[a],a,e));while(a--);return c};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(b){var a=f(this),e=a.length>>>0;if(!e)return-1;var c=0;1<arguments.length&&(c=y(arguments[1]));for(c=0<=c?c:e-Math.abs(c);c<e;c++)if(c in
-a&&a[c]===b)return c;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(b){var a=f(this),e=a.length>>>0;if(!e)return-1;var c=e-1;1<arguments.length&&(c=y(arguments[1]));for(c=0<=c?c:e-Math.abs(c);0<=c;c--)if(c in a&&b===a[c])return c;return-1};if(2!=[1,2].splice(0).length){var n=Array.prototype.splice;Array.prototype.splice=function(b,c){return!arguments.length?[]:n.apply(this,[void 0===b?0:b,void 0===c?this.length-b:c].concat(d.call(arguments,2)))}}if(!Object.keys){var c=
-!0,u="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),i=u.length,r;for(r in{toString:null})c=!1;Object.keys=function(b){if("object"!=typeof b&&"function"!=typeof b||null===b)throw new TypeError("Object.keys called on a non-object");var a=[],e;for(e in b)j(b,e)&&a.push(e);if(c)for(e=0;e<i;e++){var k=u[e];j(b,k)&&a.push(k)}return a}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var b,c,a;if(!isFinite(this))throw new RangeError;
-b=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(c=b.length;c--;)a=b[c],10>a&&(b[c]="0"+a);return b.slice(0,3).join("-")+"T"+b.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()};b="\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";
-if(!String.prototype.trim||b.trim()){var b="["+b+"]",q=RegExp("^"+b+b+"*"),e=RegExp(b+b+"*$");String.prototype.trim=function(){return(""+this).replace(q,"").replace(e,"")}}if("0".split(void 0,0).length){var C=String.prototype.split;String.prototype.split=function(b,c){return void 0===b&&0===c?[]:C.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var D=String.prototype.substr;String.prototype.substr=function(b,c){return D.call(this,0>b?0>(b=this.length+b)?0:b:b,c)}}var y=function(b){b=+b;
+(function(){var b=Function.prototype.call,a=Object.prototype,d=Array.prototype.slice,k,g;if(!Function.prototype.bind)Function.prototype.bind=function(n){var b=this;if("function"!=typeof b)throw new TypeError;var j=d.call(arguments,1),m=function(){if(this instanceof m){var a=function(){};a.prototype=b.prototype;var a=new a,g=b.apply(a,j.concat(d.call(arguments)));return null!==g&&Object(g)===g?g:a}return b.apply(n,j.concat(d.call(arguments)))};return m};g=b.bind(a.toString);k=b.bind(a.hasOwnProperty);
+if(!Array.isArray)Array.isArray=function(b){return"[object Array]"==g(b)};if(!Array.prototype.forEach)Array.prototype.forEach=function(b,a){var j=f(this),m=0,c=j.length>>>0;if("[object Function]"!=g(b))throw new TypeError;for(;m<c;)m in j&&b.call(a,j[m],m,j),m++};if(!Array.prototype.map)Array.prototype.map=function(b,a){var j=f(this),m=j.length>>>0,c=Array(m);if("[object Function]"!=g(b))throw new TypeError;for(var e=0;e<m;e++)e in j&&(c[e]=b.call(a,j[e],e,j));return c};if(!Array.prototype.filter)Array.prototype.filter=
+function(b,a){var j=f(this),m=j.length>>>0,c=[];if("[object Function]"!=g(b))throw new TypeError;for(var e=0;e<m;e++)e in j&&b.call(a,j[e],e,j)&&c.push(j[e]);return c};if(!Array.prototype.every)Array.prototype.every=function(b,a){var j=f(this),m=j.length>>>0;if("[object Function]"!=g(b))throw new TypeError;for(var e=0;e<m;e++)if(e in j&&!b.call(a,j[e],e,j))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(b,a){var j=f(this),e=j.length>>>0;if("[object Function]"!=g(b))throw new TypeError;
+for(var c=0;c<e;c++)if(c in j&&b.call(a,j[c],c,j))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(b){var a=f(this),e=a.length>>>0;if("[object Function]"!=g(b))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var c=0,i;if(2<=arguments.length)i=arguments[1];else{do{if(c in a){i=a[c++];break}if(++c>=e)throw new TypeError;}while(1)}for(;c<e;c++)c in a&&(i=b.call(void 0,i,a[c],c,a));return i};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(b){var a=
+f(this),c=a.length>>>0;if("[object Function]"!=g(b))throw new TypeError;if(!c&&1==arguments.length)throw new TypeError;var e,c=c-1;if(2<=arguments.length)e=arguments[1];else{do{if(c in a){e=a[c--];break}if(0>--c)throw new TypeError;}while(1)}do c in this&&(e=b.call(void 0,e,a[c],c,a));while(c--);return e};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(b){var c=f(this),a=c.length>>>0;if(!a)return-1;var e=0;1<arguments.length&&(e=y(arguments[1]));for(e=0<=e?e:a-Math.abs(e);e<a;e++)if(e in
+c&&c[e]===b)return e;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(b){var c=f(this),e=c.length>>>0;if(!e)return-1;var a=e-1;1<arguments.length&&(a=y(arguments[1]));for(a=0<=a?a:e-Math.abs(a);0<=a;a--)if(a in c&&b===c[a])return a;return-1};if(2!=[1,2].splice(0).length){var i=Array.prototype.splice;Array.prototype.splice=function(b,a){return!arguments.length?[]:i.apply(this,[void 0===b?0:b,void 0===a?this.length-b:a].concat(d.call(arguments,2)))}}if(!Object.keys){var c=
+!0,u="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),h=u.length,s;for(s in{toString:null})c=!1;Object.keys=function(b){if("object"!=typeof b&&"function"!=typeof b||null===b)throw new TypeError("Object.keys called on a non-object");var a=[],e;for(e in b)k(b,e)&&a.push(e);if(c)for(e=0;e<h;e++){var g=u[e];k(b,g)&&a.push(g)}return a}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var b,a,e;if(!isFinite(this))throw new RangeError;
+b=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(a=b.length;a--;)e=b[a],10>e&&(b[a]="0"+e);return b.slice(0,3).join("-")+"T"+b.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()};b="\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";
+if(!String.prototype.trim||b.trim()){var b="["+b+"]",q=RegExp("^"+b+b+"*"),e=RegExp(b+b+"*$");String.prototype.trim=function(){return(""+this).replace(q,"").replace(e,"")}}if("0".split(void 0,0).length){var C=String.prototype.split;String.prototype.split=function(b,a){return void 0===b&&0===a?[]:C.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var D=String.prototype.substr;String.prototype.substr=function(b,a){return D.call(this,0>b?0>(b=this.length+b)?0:b:b,a)}}var y=function(b){b=+b;
b!==b?b=-1:0!==b&&b!==1/0&&b!==-(1/0)&&(b=(0<b||-1)*Math.floor(Math.abs(b)));return b},o="a"!="a"[0],f=function(b){if(null==b)throw new TypeError;return o&&"string"==typeof b&&b?b.split(""):Object(b)}})();
(function(b,a){var d=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);d&&!b.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var b=document.createElement("foo");Object.defineProperty(b,"bar",{get:function(){return!0}});d=!!b.bar}catch(a){d=!1}b=null}();Modernizr.objectAccessor=!(!(d||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||b.browser.opera&&!(11<=a.browserVersion));Modernizr.advancedObjectProperties=d;
-if(!d||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var j=Function.prototype.call.bind(Object.prototype.hasOwnProperty);a.objectCreate=function(b,d,c,j){var i;i=function(){};i.prototype=b;i=new i;if(!j&&!("__proto__"in i)&&!Modernizr.objectAccessor)i.__proto__=b;d&&a.defineProperties(i,d);if(c)i.options=jQuery.extend(!0,{},i.options||{},c),c=i.options;i._create&&jQuery.isFunction(i._create)&&i._create(c);return i};a.defineProperties=function(b,
-d){for(var c in d)j(d,c)&&a.defineProperty(b,c,d[c]);return b};a.defineProperty=function(b,a,c){if("object"!=typeof c||null===c)return b;if(j(c,"value"))return b[a]=c.value,b;b.__defineGetter__&&("function"==typeof c.get&&b.__defineGetter__(a,c.get),"function"==typeof c.set&&b.__defineSetter__(a,c.set));return b};a.getPrototypeOf=function(b){return Object.getPrototypeOf&&Object.getPrototypeOf(b)||b.__proto__||b.constructor&&b.constructor.prototype};a.getOwnPropertyDescriptor=function(b,a){if("object"!==
-typeof b&&"function"!==typeof b||null===b)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var c;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return c=Object.getOwnPropertyDescriptor(b,a)}catch(d){}c={configurable:!0,enumerable:!0,writable:!0,value:void 0};var i=b.__lookupGetter__&&b.__lookupGetter__(a),r=b.__lookupSetter__&&b.__lookupSetter__(a);if(!i&&!r){if(!j(b,a))return;c.value=b[a];return c}delete c.writable;delete c.value;c.get=c.set=void 0;if(i)c.get=
-i;if(r)c.set=r;return c}}})(jQuery,jQuery.webshims);
-(function(b,a,d){var j=a.audio&&a.video,k=!1,n=d.cfg.mediaelement,c=d.bugs,u=function(){d.ready("mediaelement-swf",function(){if(!d.mediaelement.createSWF)d.modules["mediaelement-swf"].test=b.noop,d.reTest(["mediaelement-swf"],j)})},i;if(j){var r=document.createElement("video");a.videoBuffered="buffered"in r;k="loop"in r;d.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));a.videoBuffered||(d.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
-test:a.videoBuffered,d:["dom-support"]}),d.reTest("mediaelement-native-fix"))}if(j&&!n.preferFlash){var q=function(a){var c=a.target.parentNode;!n.preferFlash&&(b(a.target).is("audio, video")||c&&b("source:last",c)[0]==a.target)&&d.ready("DOM mediaelement",function(){i&&u();d.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){i&&!n.preferFlash&&d.mediaelement.createSWF&&!b(a.target).closest("audio, video").is(".nonnative-api-active")?(n.preferFlash=!0,document.removeEventListener("error",
-q,!0),b("audio, video").mediaLoad(),d.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+a.target.src)):i||document.removeEventListener("error",q,!0)},20)})})};document.addEventListener("error",q,!0);b("audio, video").each(function(){this.error&&q({target:this})})}c.track=!1;a.track&&function(){if(!c.track)c.track="number"!=typeof b("<track />")[0].readyState;if(!c.track)try{new TextTrackCue(2,3,"")}catch(a){try{new TextTrackCue("",2,3,"","",!1);var i=TextTrackCue;
-window.TextTrackCue=function(b,a,c,e,f,g){3!=arguments.length&&d.warn("TextTrackCue has 3 arguments: startTime, endTime and text. everything else is deprecated");return 4<arguments.length?new i(b,a,c,e,f||"",g||!1):new i("",b,a,c,"",!1)}}catch(k){c.track=!0}}var j=d.cfg.track,n=function(a){b(a.target).filter("track").each(f)},f=function(){if(c.track||!j.override&&3==b.prop(this,"readyState"))j.override=!0,d.reTest("track"),document.removeEventListener("error",n,!0),this&&b.nodeName(this,"track")?
-d.error("track support was overwritten. Please check your vtt including your vtt mime-type"):d.info("track support was overwritten. due to bad browser support")},g=function(){document.addEventListener("error",n,!0);c.track?f():b("track").each(f)};j.override||(d.isReady("track")?g():b(g))}();d.register("mediaelement-core",function(b,d,q,r,o){i=swfobject.hasFlashPlayerVersion("9.0.115");var f=d.mediaelement,g=function(a,c){var a=b(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;