vendor/assets/javascripts/webshims/minified/shims/combos/9.js in webshims-rails-0.4.3 vs vendor/assets/javascripts/webshims/minified/shims/combos/9.js in webshims-rails-0.4.4

- old
+ new

@@ -1,68 +1,65 @@ -jQuery.webshims.register("dom-extend",function(b,f,k,l,n){var s=f.modules,p=/\s*,\s*/,w={},o={},t={},y={},x={},g=b.fn.val,H=function(d,a,c,e,h){return h?g.call(b(d)):g.call(b(d),c)};b.fn.val=function(d){var a=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!a||1!==a.nodeType?g.call(this):b.prop(a,"value",d,"val",!0);if(b.isArray(d))return g.apply(this,arguments);var c=b.isFunction(d);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=d.call(a,e,b.prop(a,"value",n,"val", -!0)),null==e&&(e=""),b.prop(a,"value",e,"val")):b.prop(a,"value",d,"val"))})};var D="_webshimsLib"+Math.round(1E3*Math.random()),u=function(d,a,c){d=d.jquery?d[0]:d;if(!d)return c||{};var e=b.data(d,D);c!==n&&(e||(e=b.data(d,D,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){b.fn[d.name]=function(){return this.map(function(){var b=u(this, -"shadowData");return b&&b[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){w[d]=b[d];b[d]=function(a,c,e,h,f){var i="val"==h,r=!i?w[d]:H;if(!a||!o[c]||1!==a.nodeType||!i&&h&&"attr"==d&&b.attrFn[c])return r(a,c,e,h,f);var E=(a.nodeName||"").toLowerCase(),z=t[E],A="attr"==d&&(!1===e||null===e)?"removeAttr":d,g,j,k;z||(z=t["*"]);z&&(z=z[c]);z&&(g=z[A]);if(g){if("value"==c)j=g.isVal,g.isVal=i;if("removeAttr"===A)return g.value.call(a);if(e===n)return g.get?g.get.call(a):g.value;g.set&& -("attr"==d&&!0===e&&(e=c),k=g.set.call(a,e));if("value"==c)g.isVal=j}else k=r(a,c,e,h,f);if((e!==n||"removeAttr"===A)&&x[E]&&x[E][c]){var l;l="removeAttr"==A?!1:"prop"==A?!!e:!0;x[E][c].forEach(function(b){if(!b.only||(b.only="prop"==d)||"attr"==b.only&&"prop"!=d)b.call(a,e,l,i?"val":A,d)})}return k};y[d]=function(a,c,e){t[a]||(t[a]={});t[a][c]||(t[a][c]={});var h=t[a][c][d],B=function(b,a,E){return a&&a[b]?a[b]:E&&E[b]?E[b]:"prop"==d&&"value"==c?function(b){return e.isVal?H(this,c,b,!1,0===arguments.length): -w[d](this,c,b)}:"prop"==d&&"value"==b&&e.value.apply?function(b){var a=w[d](this,c);a&&a.apply&&(a=a.apply(this,arguments));return a}:function(b){return w[d](this,c,b)}};t[a][c][d]=e;if(e.value===n){if(!e.set)e.set=e.writeable?B("set",e,h):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:b.noop;if(!e.get)e.get=B("get",e,h)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=B(b,h))})}});var j=!b.browser.msie||8<parseInt(b.browser.version,10),q=function(){var b=f.getPrototypeOf(l.createElement("foobar")), -a=Object.prototype.hasOwnProperty;return function(c,e,h){var B=l.createElement(c),i=f.getPrototypeOf(B);if(j&&i&&b!==i&&(!B[e]||!a.call(B,e))){var r=B[e];h._supvalue=function(){return r&&r.apply?r.apply(this,arguments):r};i[e]=h.value}else h._supvalue=function(){var b=u(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},v.extendValue(c,e,h.value);h.value._supvalue=h._supvalue}}(),v=function(){var d={};f.addReady(function(a,c){var i={},r=function(d){i[d]||(i[d]=b(a.getElementsByTagName(d)), -c[0]&&b.nodeName(c[0],d)&&(i[d]=i[d].add(c)))};b.each(d,function(b,a){r(b);!a||!a.forEach?f.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){i[b].each(a)})});i=null});var a,c=b([]),e=function(c,e){d[c]?d[c].push(e):d[c]=[e];b.isDOMReady&&(a||b(l.getElementsByTagName(c))).each(e)};return{createTmpCache:function(d){b.isDOMReady&&(a=a||b(l.getElementsByTagName(d)));return a||c},flushTmpCache:function(){a=null},content:function(a,d){e(a,function(){var a=b.attr(this,d);null!=a&&b.attr(this, -d,a)})},createElement:function(b,a){e(b,a)},extendValue:function(a,d,c){e(a,function(){b(this).each(function(){u(this,"propValue",{})[d]=this[d];this[d]=c})})}}}(),F=function(b,a){if(b.defaultValue===n)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={}};b.extend(f,{getID:function(){var d=(new Date).getTime();return function(a){var a=b(a),c=a.attr("id");c||(d++,c="ID-"+d,a.attr("id",c)); -return c}}(),extendUNDEFProp:function(d,a){b.each(a,function(b,a){b in d||(d[b]=a)})},createPropDefault:F,data:u,moveToFirstEvent:function(){var d=b._data?"_data":"data";return function(a,c,e){if((a=(b[d](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(){var d,a,c,e,h={init:!1,start:function(){if(!this.init&&l.body)this.init=!0,this.height=b(l).height(),this.width=b(l).width(),setInterval(function(){var a= -b(l).height(),d=b(l).width();if(a!=h.height||d!=h.width)h.height=a,h.width=d,e({type:"docresize"})},600)}};e=function(e){clearTimeout(d);d=setTimeout(function(){if("resize"==e.type){var d=b(k).width(),r=b(k).width();if(r==a&&d==c)return;a=r;c=d;if(l.body)h.height=b(l).height(),h.width=b(l).width()}b.event.trigger("updateshadowdom")},40)};b(k).bind("resize",e);b.event.customEvent.updateshadowdom=!0;return function(a,d,c){c=c||{};a.jquery&&(a=a[0]);d.jquery&&(d=d[0]);var e=b.data(a,D)||b.data(a,D,{}), -z=b.data(d,D)||b.data(d,D,{}),A={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];A=b.data(c.shadowFocusElement,D)||b.data(c.shadowFocusElement,D,A)}}else c.shadowFocusElement=d;e.hasShadow=d;A.nativeElement=z.nativeElement=a;A.shadowData=z.shadowData=e.shadowData={nativeElement:a,shadowElement:d,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){u(this,"shadowData",z.shadowData)}); -if(c.data)A.shadowData.data=z.shadowData.data=e.shadowData.data=c.data;c=null;f.ready("DOM",function(){h.start()})}}(),propTypes:{standard:function(b){F(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){F(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 d=l.createElement("a");d.style.display= -"none";return function(a,c){F(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(c),f;if(null==a)return"";d.setAttribute("href",a+"");if(!b.support.hrefNormalized){try{b(d).insertAfter(this),f=d.getAttribute("href",4)}catch(x){f=d.getAttribute("href",4)}b(d).detach()}return f||d.href}}}}(),enumarated:function(b){F(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(d,a){"string"==typeof a&&(a=a.split(p));a.forEach(function(a){f.defineNodeNamesProperty(d,a,{prop:{set:function(d){b.attr(this,a,d)},get:function(){return b.attr(this,a)||""}}})})},defineNodeNameProperty:function(d,a,c){o[a]=!0;if(c.reflect)f.propTypes[c.propType||"standard"](c,a);["prop","attr","removeAttr"].forEach(function(e){var h=c[e];h&&(h="prop"===e?b.extend({writeable:!0},h):b.extend({},h,{writeable:!0}),y[e](d, -a,h),"*"!=d&&f.cfg.extendNative&&"prop"==e&&h.value&&b.isFunction(h.value)&&q(d,a,h),c[e]=h)});c.initAttr&&v.content(d,a);return c},defineNodeNameProperties:function(b,a,c,e){for(var h in a)!e&&a[h].initAttr&&v.createTmpCache(b),c&&!a[h][c]&&(a[h][c]={},["value","set","get"].forEach(function(b){b in a[h]&&(a[h][c][b]=a[h][b],delete a[h][b])})),a[h]=f.defineNodeNameProperty(b,h,a[h]);e||v.flushTmpCache();return a},createElement:function(d,a,c){var e;b.isFunction(a)&&(a={after:a});v.createTmpCache(d); -a.before&&v.createElement(d,a.before);c&&(e=f.defineNodeNameProperties(d,c,!1,!0));a.after&&v.createElement(d,a.after);v.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,a,c,e){"string"==typeof d&&(d=d.split(p));b.isFunction(c)&&(c={set:c});d.forEach(function(b){x[b]||(x[b]={});"string"==typeof a&&(a=a.split(p));c.initAttr&&v.createTmpCache(b);a.forEach(function(a){x[b][a]||(x[b][a]=[],o[a]=!0);if(c.set){if(e)c.set.only=e;x[b][a].push(c.set)}c.initAttr&&v.content(b,a)});v.flushTmpCache()})}, -defineNodeNamesBooleanProperty:function(d,a,c){c||(c={});if(b.isFunction(c))c.set=c;f.defineNodeNamesProperty(d,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?n:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===n)return b=b.attributes[a]||{},c=b.specified?b.value:null,null==c?n:c; -"boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var d=[],a={},c,e,x=/:\/\/|^\.*\//,g=function(a,c,d){return c&&d&&-1!==b.inArray(c,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,x.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){a.langObj[c]?(a.loading=!1,r(a,!0)):b(function(){a.langObj[c]&&r(a,!0);a.loading=!1})}),!0):!1},i=function(b){a[b]&&a[b].forEach(function(b){b.callback()})},r=function(b,a){if(b.activeLang!=c&& -b.activeLang!==e){var d=s[b.module].options;if(b.langObj[c]||e&&b.langObj[e])b.activeLang=c,b.callback(b.langObj[c]||b.langObj[e],c),i(b.module);else if(!a&&!g(b,c,d)&&!g(b,e,d)&&b.langObj[""]&&""!==b.activeLang)b.activeLang="",b.callback(b.langObj[""],c),i(b.module)}};return function(i){if("string"==typeof i&&i!==c)c=i,e=c.split("-")[0],c==e&&(e=!1),b.each(d,function(b,a){r(a)});else if("object"==typeof i)if(i.register)a[i.register]||(a[i.register]=[]),a[i.register].push(i),i.callback();else{if(!i.activeLang)i.activeLang= -"";d.push(i);r(i)}return c}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){f[b]=function(b,d,x,g){"string"==typeof b&&(b=b.split(p));var i={};b.forEach(function(b){i[b]=f[a](b,d,x,g)});return i}});f.isReady("webshimLocalization",!0)}); -(function(b,f){var k=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<k)&&(!b.browser.msie||12>k&&7<k)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},n=function(b,f){b.getAttribute("role")||b.setAttribute("role",f)};b.webshims.addReady(function(k,p){b.each(l,function(f,x){for(var g=b(f,k).add(p.filter(f)),l=0,o=g.length;l<o;l++)n(g[l],x)});if(k===f){var w=f.getElementsByTagName("header")[0],o=f.getElementsByTagName("footer"),t=o.length; -w&&!b(w).closest("section, article")[0]&&n(w,"banner");t&&(w=o[t-1],b(w).closest("section, article")[0]||n(w,"contentinfo"))}})}})(jQuery,document); -(function(b,f,k){var l=f.audio&&f.video,n=!1,s=k.cfg.mediaelement,p=k.bugs,w=function(){k.ready("mediaelement-swf",function(){if(!k.mediaelement.createSWF)k.modules["mediaelement-swf"].test=b.noop,k.reTest(["mediaelement-swf"],l)})},o;if(l){var t=document.createElement("video");f.videoBuffered="buffered"in t;n="loop"in t;k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement", -test:f.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"))}if(l&&!s.preferFlash){var y=function(f){var g=f.target.parentNode;!s.preferFlash&&(b(f.target).is("audio, video")||g&&b("source:last",g)[0]==f.target)&&k.ready("DOM mediaelement",function(){o&&w();k.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){o&&!s.preferFlash&&k.mediaelement.createSWF&&!b(f.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error", -y,!0),b("audio, video").mediaLoad(),k.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):o||document.removeEventListener("error",y,!0)},20)})})};document.addEventListener("error",y,!0);b("audio, video").each(function(){this.error&&y({target:this})})}p.track=!1;f.track&&function(){if(!p.track)p.track="number"!=typeof b("<track />")[0].readyState;if(!p.track)try{new TextTrackCue(2,3,"")}catch(f){p.track=!0}var g=k.cfg.track,l=function(f){b(f.target).filter("track").each(o)}, -o=function(){if(p.track||!g.override&&3==b.prop(this,"readyState"))g.override=!0,k.reTest("track"),document.removeEventListener("error",l,!0),this&&b.nodeName(this,"track")?k.error("track support was overwritten. Please check your vtt including your vtt mime-type"):k.info("track support was overwritten. due to bad browser support")},n=function(){document.addEventListener("error",l,!0);p.track?o():b("track").each(o)};g.override||(k.isReady("track")?n():b(n))}();k.register("mediaelement-core",function(b, -g,k,t,u){o=swfobject.hasFlashPlayerVersion("9.0.115");var j=g.mediaelement,q=function(a,c){var a=b(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=b.trim(e.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=j.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},v=!o&&"postMessage"in k&&l,y= -function(){var a;return function(){!a&&v&&(a=!0,g.loader.loadScript("https://www.youtube.com/player_api"),b(function(){g.polyfill("mediaelement-yt")}))}}(),d=function(){o?w():y()};g.addPolyfill("mediaelement-yt",{test:!v,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=b.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(a,c){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;b.each(j.mimeTypes[c],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};j.srces=function(a,c){a=b(a);if(c)a.removeAttr("src").removeAttr("type").find("source").remove(),b.isArray(c)||(c=[c]),c.forEach(function(b){var c=t.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 c=[],d=a[0].nodeName.toLowerCase(),e=q(a,d);e.src?c.push(e):b("source",a).each(function(){e=q(this,d);e.src&&c.push(e)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==u&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));j.srces(this,a);b(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(a,c){var d="";if(o||v)a=b(a),c=c||j.srces(a),b.each(c,function(b,a){if(a.container&&a.src&&(o&&-1!=j.swfMimeTypes.indexOf(a.container)||v&&"video/youtube"==a.container))return d=a,!1});return d};var a={};j.canNativePlaySrces=function(c,d){var e="";if(l){var c=b(c),f=(c[0].nodeName||"").toLowerCase();if(!a[f])return e;d=d||j.srces(c);b.each(d,function(b,d){if(d.type&&a[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};j.setError=function(a,c){c||(c="can't play sources"); -b(a).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var c=function(){var b;return function(a,e,f){g.ready(o?"mediaelement-swf":"mediaelement-yt",function(){j.createSWF?j.createSWF(a,e,f):b||(b=!0,d(),c(a,e,f))});!b&&v&&!j.createSWF&&y()}}(),e=function(b,a,d,f,g){d||!1!==d&&a&&"third"==a.isActive?(d=j.canThirdPlaySrces(b,f))?c(b,d,a):g?j.setError(b,!1):e(b,a,!1,f,!0):(d=j.canNativePlaySrces(b,f))?a&&"third"== -a.isActive&&j.setActive(b,"html5",a):g?(j.setError(b,!1),a&&"third"==a.isActive&&j.setActive(b,"html5",a)):e(b,a,!0,f,!0)},h=/^(?:embed|object|datalist)$/i,B=function(a,c){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),f=j.srces(a),k=a.parentNode;clearTimeout(d.loadTimer);b.data(a,"mediaerror",!1);if(f.length&&k&&!(1!=k.nodeType||h.test(k.nodeName||"")))c=c||g.data(a,"mediaelement"),e(a,c,s.preferFlash||u,f)};b(t).bind("ended",function(a){var c=g.data(a.target,"mediaelement"); -(!n||c&&"html5"!=c.isActive||b.prop(a.target,"loop"))&&setTimeout(function(){!b.prop(a.target,"paused")&&b.prop(a.target,"loop")&&b(a.target).prop("currentTime",0).play()},1)});n||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=g.defineNodeNameProperty(c,"load",{prop:{value:function(){var b=g.data(this,"mediaelement");B(this,b);l&&(!b||"html5"==b.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});a[c]=g.defineNodeNameProperty(c, -"canPlayType",{prop:{value:function(d){var e="";l&&a[c].prop._supvalue&&(e=a[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&o&&(d=b.trim((d||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var b=this,a=g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){B(b);b=null},9)}});k=function(){g.addReady(function(a,c){b("video, audio", -a).add(c.filter("video, audio")).each(function(){b.browser.msie&&8<g.browserVersion&&b.prop(this,"paused")&&!b.prop(this,"readyState")&&b(this).is('audio[preload="none"][controls]:not([autoplay])')?b(this).prop("preload","metadata").mediaLoad():B(this);if(l){var a,c,d=this,e=function(){var a=b.prop(d,"buffered");if(a){for(var c="",e=0,f=a.length;e<f;e++)c+=a.end(e);return c}},f=function(){var a=e();a!=c&&(c=a,b(d).triggerHandler("progress"))};b(this).bind("play loadstart progress",function(b){"progress"== -b.type&&(c=e());clearTimeout(a);a=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(b){"emptied"==b.type&&(c=!1);clearTimeout(a)})}})})};f.track&&!p.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(g.isReady("mediaelement-core",!0),k(),g.ready("WINDOWLOAD mediaelement",d)):g.ready("mediaelement-swf",k);b(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims); -jQuery.webshims.register("mediaelement-swf",function(b,f,k,l,n,s){var p=f.mediaelement,w=k.swfobject,o=Modernizr.audio&&Modernizr.video,t=w.hasFlashPlayerVersion("9.0.115"),y=0,k={paused:!0,ended:!1,currentSrc:"",duration:k.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(b){if(b)f.error("buffered index size error");else return 0},end:function(b){if(b)f.error("buffered index size error");else return 0},length:0}},x=Object.keys(k),g={currentTime:0,volume:1, -muted:!1};Object.keys(g);var H=b.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:n},k,g),D=/^jwplayer-/,u=function(b){if(b=l.getElementById(b.replace(D,"")))return b=f.data(b,"mediaelement"),"third"==b.isActive?b:null},j=function(b){return(b=f.data(b,"mediaelement"))&&"third"==b.isActive?b:null},q=function(a,m){m=b.Event(m);m.preventDefault();b.event.trigger(m,n,a)},v=s.playerPath||f.cfg.basePath+ -"jwplayer/"+(s.playerName||"player.swf"),F=s.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(s.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(s.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(s.jwAttrs,{bgcolor:"#000000"});var d=function(a,m){var c=a.duration;if(!(c&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=c}catch(d){}a.duration&& -a.duration!=a._lastDuration?(q(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&p.jwEvents.Model.META(b.extend({duration:a.duration},m),a),a._durationCalcs--):a._durationCalcs++}},a=function(b,m){3>b&&clearTimeout(m._canplaythroughTimer);if(3<=b&&3>m.readyState)m.readyState=b,q(m._elem,"canplay"),clearTimeout(m._canplaythroughTimer),m._canplaythroughTimer=setTimeout(function(){a(4,m)},4E3);if(4<=b&&4>m.readyState)m.readyState=b,q(m._elem,"canplaythrough");m.readyState=b};b.extend(b.event.customEvent, -{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});p.jwEvents={View:{PLAY:function(b){var a=u(b.id);if(a&&!a.stopPlayPause&&(a._ppFlag=!0,a.paused==b.state)){a.paused=!b.state;if(a.ended)a.ended=!1;q(a._elem,b.state?"play":"pause")}}},Model:{BUFFER:function(c){var m=u(c.id);if(m&&"percentage"in c&&m._bufferedEnd!=c.percentage){m.networkState=100==c.percentage?1:2;(isNaN(m.duration)||5<c.percentage&&25>c.percentage||100===c.percentage)&&d(m,c);if(m.ended)m.ended= -!1;if(m.duration){2<c.percentage&&20>c.percentage?a(3,m):20<c.percentage&&a(4,m);if(m._bufferedEnd&&m._bufferedEnd>c.percentage)m._bufferedStart=m.currentTime||0;m._bufferedEnd=c.percentage;m.buffered.length=1;if(100==c.percentage)m.networkState=1,a(4,m);b.event.trigger("progress",n,m._elem,!0)}}},META:function(b,c){if(c=c&&c.networkState?c:u(b.id))if("duration"in b){if(!c._metadata||!((!b.height||c.videoHeight==b.height)&&b.duration===c.duration)){c._metadata=!0;var d=c.duration;if(b.duration)c.duration= -b.duration;c._lastDuration=c.duration;if(b.height||b.width)c.videoHeight=b.height||0,c.videoWidth=b.width||0;if(!c.networkState)c.networkState=2;1>c.readyState&&a(1,c);c.duration&&d!==c.duration&&q(c._elem,"durationchange");q(c._elem,"loadedmetadata")}}else c._callMeta=!0},TIME:function(b){var c=u(b.id);if(c&&c.currentTime!==b.position){c.currentTime=b.position;c.duration&&c.duration<c.currentTime&&d(c,b);2>c.readyState&&a(2,c);if(c.ended)c.ended=!1;q(c._elem,"timeupdate")}},STATE:function(b){var c= -u(b.id);if(c)switch(b.newstate){case "BUFFERING":if(c.ended)c.ended=!1;a(1,c);q(c._elem,"waiting");break;case "PLAYING":c.paused=!1;c._ppFlag=!0;c.duration||d(c,b);3>c.readyState&&a(3,c);if(c.ended)c.ended=!1;q(c._elem,"playing");break;case "PAUSED":if(!c.paused&&!c.stopPlayPause)c.paused=!0,c._ppFlag=!0,q(c._elem,"pause");break;case "COMPLETED":4>c.readyState&&a(4,c),c.ended=!0,q(c._elem,"ended")}}},Controller:{ERROR:function(b){var a=u(b.id);a&&p.setError(a._elem,b.message)},SEEK:function(b){var a= -u(b.id);if(a){if(a.ended)a.ended=!1;if(a.paused)try{a.jwapi.sendEvent("play","false")}catch(c){}if(a.currentTime!=b.position)a.currentTime=b.position,q(a._elem,"timeupdate")}},VOLUME:function(b){var a=u(b.id);if(a&&(b=b.percentage/100,a.volume!=b))a.volume=b,q(a._elem,"volumechange")},MUTE:function(b){if(!b.state){var a=u(b.id);if(a&&a.muted!=b.state)a.muted=b.state,q(a._elem,"volumechange")}}}};var c=function(a){var c=!0;b.each(p.jwEvents,function(d,e){b.each(e,function(b){try{a.jwapi["add"+d+"Listener"](b, -"jQuery.webshims.mediaelement.jwEvents."+d+"."+b)}catch(e){return c=!1}})});return c},e=function(b){var a=b.actionQueue.length,c=0,d;if(a&&"third"==b.isActive)for(;b.actionQueue.length&&a>c;)c++,d=b.actionQueue.shift(),b.jwapi[d.fn].apply(b.jwapi,d.args);if(b.actionQueue.length)b.actionQueue=[]},h=function(a){a&&(a._ppFlag===n&&b.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===n||!a.paused))try{b(a._elem).play()}catch(c){}},1)},B=function(a){if(a&& -"video"==a._elemNodeName){var c,d,e,f,g,C,h,k,i=function(i,j){if(j&&i&&!(1>j||1>i||"third"!=a.isActive))if(c&&(c.remove(),c=!1),f=i,g=j,clearTimeout(h),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){C=C||b(a._elem).getShadowElement();var l;d&&!e?(l=C.height(),i*=l/j,j=l):!d&&e&&(l=C.width(),j*=l/i,i=l);k=!0;setTimeout(function(){k=!1},9);C.css({width:i,height:j})}},j=function(){if(!("third"!=a.isActive||b.prop(a._elem,"readyState")&&b.prop(this,"videoWidth"))){var f=b.prop(a._elem, -"poster");if(f&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))c&&(c.remove(),c=!1),c=b('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.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?(i(d,e),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;e=a.naturalHeight||a.height||a.offsetHeight; -i(d,e);c&&(c.remove(),c=!1);a=null},9);b(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?b(this).triggerHandler("alreadycomplete"):(clearTimeout(h),h=setTimeout(function(){b(a._elem).triggerHandler("error")},9999))})}};b(a._elem).bind("loadedmetadata",function(){i(b.prop(this,"videoWidth"),b.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){k||i(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize"); -j();b.prop(a._elem,"readyState")&&i(b.prop(a._elem,"videoWidth"),b.prop(a._elem,"videoHeight"))}};p.playerResize=function(a){a&&(a=l.getElementById(a.replace(D,"")))&&b(a).triggerHandler("swfstageresize")};b(l).bind("emptied",function(b){b=j(b.target);h(b)});var i;p.jwPlayerReady=function(a){var d=u(a.id),I=0,g=function(){if(!(9<I))if(I++,c(d)){if(d.wasSwfReady)b(d._elem).mediaLoad();else{var i=parseFloat(a.version,10);(5.1>i||6<=i)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady= -!0;d.tryedReframeing=0;e(d);h(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(g,9*I),2<I&&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(i);d.jwData=a;d.shadowElem.removeClass("flashblocker-assumed");b.prop(d._elem,"volume",d.volume);b.prop(d._elem,"muted",d.muted);g()}};var r=b.noop;if(o){var E={play:1,playing:1}, -z="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),A=z.map(function(b){return b+".webshimspolyfill"}).join(" "),K=function(a){var c=f.data(a.target,"mediaelement");c&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==c.activating)&&(a.stopImmediatePropagation(),E[a.type]&&c.isActive!=c.activating&&b(a.target).pause())},r=function(a){b(a).unbind(A).bind(A,K);z.forEach(function(b){f.moveToFirstEvent(a,b)})};r(l)}p.setActive=function(a,c, -d){d||(d=f.data(a,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e=f.data(a,"shadowData");d.activating=c;b(a).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],b(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(b(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);b(a).trigger("mediaelementapichange")}}; -var L=function(){var b="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),c=b.length;return function(d){if(d){var e=c,f=d.networkState;for(a(0,d);--e;)delete d[b[e]];d.actionQueue=[];d.buffered.length=0;f&&q(d._elem,"emptied")}}}(),J=function(a,c){var d=a._elem,e=a.shadowElem;b(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width|| -b(d).width(),height:d.style.height||b(d).height()})};p.createSWF=function(a,c,d){if(t){1>y?y=1:y++;var e=b.extend({},s.jwVars,{image:b.prop(a,"poster")||"",file:c.srcProp}),g=b(a).data("jwvars")||{};d||(d=f.data(a,"mediaelement"));if(d&&d.swfCreated)p.setActive(a,"third",d),L(d),d.currentSrc=c.srcProp,b.extend(e,g),s.changeJW(e,a,c,d,"load"),G(a,"sendEvent",["LOAD",e]);else{var h=b.prop(a,"controls"),C="jwplayer-"+f.getID(a),k=b.extend({},s.jwParams,b(a).data("jwparams")),j=a.nodeName.toLowerCase(), -l=b.extend({},s.jwAttrs,{name:C,id:C},b(a).data("jwattrs")),n=b('<div class="polyfill-'+j+' polyfill-mediaelement" id="wrapper-'+C+'"><div id="'+C+'"></div>').css({position:"relative",overflow:"hidden"}),d=f.data(a,"mediaelement",f.objectCreate(H,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:j},_elem:{value:a},currentSrc:{value:c.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(b){if(b>=d.buffered.length)f.error("buffered index size error");else return 0},end:function(b){if(b>= -d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));J(d,h);n.insertBefore(a);o&&b.extend(d,{volume:b.prop(a,"volume"),muted:b.prop(a,"muted")});b.extend(e,{id:C,controlbar:h?s.jwVars.controlbar||("video"==j?"over":"bottom"):"video"==j?"none":"bottom",icons:""+(h&&"video"==j)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+F):F;f.addShadowDom(a,n);r(a);p.setActive(a, -"third",d);s.changeJW(e,a,c,d,"embed");b(a).bind("updatemediaelementdimensions updateshadowdom",function(){J(d,b.prop(a,"controls"))});B(d);w.embedSWF(v,C,"100%","100%","9.0.0",!1,e,k,l,function(c){if(c.success)d.jwapi=c.ref,h||b(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&n[0].parentNode||"none"==c.ref.style.display)n.addClass("flashblocker-assumed"),b(a).trigger("flashblocker"),f.warn("flashblocker assumed");b(c.ref).css({minHeight:"2px",minWidth:"2px", -display:"block"})},9),i||(clearTimeout(i),i=setTimeout(function(){var a=b(c.ref);1<a[0].offsetWidth&&1<a[0].offsetHeight&&0===location.protocol.indexOf("file:")?f.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>a[0].offsetWidth||2>a[0].offsetHeight)&&f.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){b(a).mediaLoad()}, -1)};var G=function(b,a,c,d){return(d=d||j(b))?(d.jwapi&&d.jwapi[a]?d.jwapi[a].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:a,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(a){var c={},d,e=function(b){"audio"==a&&("videoHeight"==b||"videoWidth"==b)||(c[b]={get:function(){var a=j(this);return a?a[b]:o&&d[b].prop._supget?d[b].prop._supget.apply(this):H[b]},writeable:!1})},g=function(a,b){e(a);delete c[a].writeable; -c[a].set=b};g("volume",function(a){var b=j(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+a/100);G(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,q(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=j(this);if(b){if(a=!!a,G(this,"sendEvent",["mute",""+a],b),!(b.muted== -a||"third"!=b.isActive))b.muted=a,q(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.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);G(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,q(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this, -arguments)});["play","pause"].forEach(function(b){c[b]={value:function(){var a=j(this);if(a)a.stopPlayPause&&clearTimeout(a.stopPlayPause),G(this,"sendEvent",["play","play"==b],a),setTimeout(function(){if("third"==a.isActive&&(a._ppFlag=!0,a.paused!=("play"!=b)))a.paused="play"!=b,q(a._elem,b)},1);else if(d[b].prop._supvalue)return d[b].prop._supvalue.apply(this,arguments)}}});x.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(c,d){var e=j(this);b(this)[d?"addClass":"removeClass"]("webshims-controls"); -if(e){try{G(this,d?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==a&&J(e,d);b(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(a,c,"prop")});if(t){var M=b.cleanData,N=b.browser.msie&&9>f.browserVersion,O={object:1,OBJECT:1};b.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&y)for(b=0;b<c;b++)if(O[a[b].nodeName]){if("sendEvent"in a[b]){y--;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){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0}, -NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))}); +jQuery.webshims.register("dom-extend",function(b,f,g,k,l){var p=f.modules,n=/\s*,\s*/,q={},B={},m={},z={},t={},h=b.fn.val,A=function(d,a,c,e,o){return o?h.call(b(d)):h.call(b(d),c)};b.fn.val=function(d){var a=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!a||1!==a.nodeType?h.call(this):b.prop(a,"value",d,"val",!0);if(b.isArray(d))return h.apply(this,arguments);var c=b.isFunction(d);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=d.call(a,e,b.prop(a,"value",l,"val", +!0)),null==e&&(e=""),b.prop(a,"value",e,"val")):b.prop(a,"value",d,"val"))})};var v="_webshimsLib"+Math.round(1E3*Math.random()),r=function(d,a,c){d=d.jquery?d[0]:d;if(!d)return c||{};var e=b.data(d,v);c!==l&&(e||(e=b.data(d,v,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){b.fn[d.name]=function(){return this.map(function(){var a=r(this, +"shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){q[d]=b[d];b[d]=function(a,c,e,o,u){var f="val"==o,w=!f?q[d]:A;if(!a||!B[c]||1!==a.nodeType||!f&&o&&"attr"==d&&b.attrFn[c])return w(a,c,e,o,u);var j=(a.nodeName||"").toLowerCase(),x=m[j],E="attr"==d&&(!1===e||null===e)?"removeAttr":d,h,i,g;x||(x=m["*"]);x&&(x=x[c]);x&&(h=x[E]);if(h){if("value"==c)i=h.isVal,h.isVal=f;if("removeAttr"===E)return h.value.call(a);if(e===l)return h.get?h.get.call(a):h.value;h.set&& +("attr"==d&&!0===e&&(e=c),g=h.set.call(a,e));if("value"==c)h.isVal=i}else g=w(a,c,e,o,u);if((e!==l||"removeAttr"===E)&&t[j]&&t[j][c]){var n;n="removeAttr"==E?!1:"prop"==E?!!e:!0;t[j][c].forEach(function(j){if(!j.only||(j.only="prop"==d)||"attr"==j.only&&"prop"!=d)j.call(a,e,n,f?"val":E,d)})}return g};z[d]=function(a,c,e){m[a]||(m[a]={});m[a][c]||(m[a][c]={});var o=m[a][c][d],u=function(a,b,j){return b&&b[a]?b[a]:j&&j[a]?j[a]:"prop"==d&&"value"==c?function(a){return e.isVal?A(this,c,a,!1,0===arguments.length): +q[d](this,c,a)}:"prop"==d&&"value"==a&&e.value.apply?function(a){var j=q[d](this,c);j&&j.apply&&(j=j.apply(this,arguments));return j}:function(a){return q[d](this,c,a)}};m[a][c][d]=e;if(e.value===l){if(!e.set)e.set=e.writeable?u("set",e,o):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:b.noop;if(!e.get)e.get=u("get",e,o)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=u(a,o))})}});var D=!b.browser.msie||8<parseInt(b.browser.version,10),i=function(){var b=f.getPrototypeOf(k.createElement("foobar")), +a=Object.prototype.hasOwnProperty;return function(c,e,o){var u=k.createElement(c),h=f.getPrototypeOf(u);if(D&&h&&b!==h&&(!u[e]||!a.call(u,e))){var w=u[e];o._supvalue=function(){return w&&w.apply?w.apply(this,arguments):w};h[e]=o.value}else o._supvalue=function(){var a=r(this,"propValue");return a&&a[e]&&a[e].apply?a[e].apply(this,arguments):a&&a[e]},y.extendValue(c,e,o.value);o.value._supvalue=o._supvalue}}(),y=function(){var d={};f.addReady(function(a,c){var e={},w=function(j){e[j]||(e[j]=b(a.getElementsByTagName(j)), +c[0]&&b.nodeName(c[0],j)&&(e[j]=e[j].add(c)))};b.each(d,function(a,b){w(a);!b||!b.forEach?f.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){e[a].each(b)})});e=null});var a,c=b([]),e=function(c,e){d[c]?d[c].push(e):d[c]=[e];b.isDOMReady&&(a||b(k.getElementsByTagName(c))).each(e)};return{createTmpCache:function(d){b.isDOMReady&&(a=a||b(k.getElementsByTagName(d)));return a||c},flushTmpCache:function(){a=null},content:function(a,d){e(a,function(){var a=b.attr(this,d);null!=a&&b.attr(this, +d,a)})},createElement:function(a,b){e(a,b)},extendValue:function(a,d,c){e(a,function(){b(this).each(function(){r(this,"propValue",{})[d]=this[d];this[d]=c})})}}}(),C=function(b,a){if(b.defaultValue===l)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={}};b.extend(f,{getID:function(){var d=(new Date).getTime();return function(a){var a=b(a),c=a.attr("id");c||(d++,c="ID-"+d,a.attr("id",c)); +return c}}(),extendUNDEFProp:function(d,a){b.each(a,function(a,b){a in d||(d[a]=b)})},createPropDefault:C,data:r,moveToFirstEvent:function(){var d=b._data?"_data":"data";return function(a,c,e){if((a=(b[d](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(){var d,a,c,e={init:!1,runs:0,test:function(){var a=e.getHeight(),b=e.getWidth();a!=e.height||b!=e.width?(e.height=a,e.width=b,e.handler({type:"docresize"}), +e.runs++,30>e.runs&&setTimeout(e.test,30)):e.runs=0},handler:function(o){clearTimeout(d);d=setTimeout(function(){if("resize"==o.type){var d=b(g).width(),f=b(g).width();if(f==a&&d==c)return;a=f;c=d;e.height=e.getHeight();e.width=e.getWidth()}b.event.trigger("updateshadowdom")},"resize"==o.type?50:9)},_create:function(){b.each({Height:"getHeight",Width:"getWidth"},function(a,b){var d=k.body,c=k.documentElement;e[b]=function(){return Math.max(d["scroll"+a],c["scroll"+a],d["offset"+a],c["offset"+a],c["client"+ +a])}})},start:function(){if(!this.init&&k.body)this.init=!0,this._create(),this.height=e.getHeight(),this.width=e.getWidth(),setInterval(this.test,400),b(this.test),b(g).bind("load",this.test),b(g).bind("resize",this.handler),function(){var a=b.fn.animate,d;b.fn.animate=function(){clearTimeout(d);d=setTimeout(function(){e.test();e.handler({type:"animationstart"})},19);return a.apply(this,arguments)}}()}};b.event.customEvent.updateshadowdom=!0;f.docObserve=function(){f.ready("DOM",function(){e.start()})}; +return function(a,d,c){c=c||{};a.jquery&&(a=a[0]);d.jquery&&(d=d[0]);var e=b.data(a,v)||b.data(a,v,{}),j=b.data(d,v)||b.data(d,v,{}),x={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];x=b.data(c.shadowFocusElement,v)||b.data(c.shadowFocusElement,v,x)}}else c.shadowFocusElement=d;e.hasShadow=d;x.nativeElement=j.nativeElement=a;x.shadowData=j.shadowData=e.shadowData={nativeElement:a,shadowElement:d,shadowFocusElement:c.shadowFocusElement}; +c.shadowChilds&&c.shadowChilds.each(function(){r(this,"shadowData",j.shadowData)});if(c.data)x.shadowData.data=j.shadowData.data=e.shadowData.data=c.data;c=null;f.docObserve()}}(),propTypes:{standard:function(b){C(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){C(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 d=k.createElement("a");d.style.display="none";return function(a,c){C(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(c),f;if(null==a)return"";d.setAttribute("href",a+"");if(!b.support.hrefNormalized){try{b(d).insertAfter(this),f=d.getAttribute("href",4)}catch(h){f=d.getAttribute("href",4)}b(d).detach()}return f||d.href}}}}(),enumarated:function(b){C(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(d,a){"string"==typeof a&&(a=a.split(n));a.forEach(function(a){f.defineNodeNamesProperty(d,a,{prop:{set:function(d){b.attr(this,a,d)},get:function(){return b.attr(this,a)||""}}})})},defineNodeNameProperty:function(d,a,c){B[a]=!0;if(c.reflect)f.propTypes[c.propType||"standard"](c,a);["prop","attr","removeAttr"].forEach(function(e){var h=c[e];h&&(h="prop"===e?b.extend({writeable:!0}, +h):b.extend({},h,{writeable:!0}),z[e](d,a,h),"*"!=d&&f.cfg.extendNative&&"prop"==e&&h.value&&b.isFunction(h.value)&&i(d,a,h),c[e]=h)});c.initAttr&&y.content(d,a);return c},defineNodeNameProperties:function(b,a,c,e){for(var h in a)!e&&a[h].initAttr&&y.createTmpCache(b),c&&!a[h][c]&&(a[h][c]={},["value","set","get"].forEach(function(b){b in a[h]&&(a[h][c][b]=a[h][b],delete a[h][b])})),a[h]=f.defineNodeNameProperty(b,h,a[h]);e||y.flushTmpCache();return a},createElement:function(d,a,c){var e;b.isFunction(a)&& +(a={after:a});y.createTmpCache(d);a.before&&y.createElement(d,a.before);c&&(e=f.defineNodeNameProperties(d,c,!1,!0));a.after&&y.createElement(d,a.after);y.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,a,c,e){"string"==typeof d&&(d=d.split(n));b.isFunction(c)&&(c={set:c});d.forEach(function(b){t[b]||(t[b]={});"string"==typeof a&&(a=a.split(n));c.initAttr&&y.createTmpCache(b);a.forEach(function(a){t[b][a]||(t[b][a]=[],B[a]=!0);if(c.set){if(e)c.set.only=e;t[b][a].push(c.set)}c.initAttr&& +y.content(b,a)});y.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,a,c){c||(c={});if(b.isFunction(c))c.set=c;f.defineNodeNamesProperty(d,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?l:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===l)return b=b.attributes[a]||{}, +c=b.specified?b.value:null,null==c?l:c;"boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var d=[],a={},c,e,h=/:\/\/|^\.*\//,i=function(a,c,d){return c&&d&&-1!==b.inArray(c,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,h.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){a.langObj[c]?(a.loading=!1,w(a,!0)):b(function(){a.langObj[c]&&w(a,!0);a.loading=!1})}),!0):!1},A=function(b){a[b]&&a[b].forEach(function(a){a.callback()})}, +w=function(a,b){if(a.activeLang!=c&&a.activeLang!==e){var d=p[a.module].options;if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),A(a.module);else if(!b&&!i(a,c,d)&&!i(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),A(a.module)}};return function(j){if("string"==typeof j&&j!==c)c=j,e=c.split("-")[0],c==e&&(e=!1),b.each(d,function(a,b){w(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="";d.push(j);w(j)}return c}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){f[b]=function(b,d,h,i){"string"==typeof b&&(b=b.split(n));var A={};b.forEach(function(b){A[b]=f[a](b,d,h,i)});return A}});f.isReady("webshimLocalization",!0)}); +(function(b,f){var g=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<g)&&(!b.browser.msie||12>g&&7<g)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(b,f){b.getAttribute("role")||b.setAttribute("role",f)};b.webshims.addReady(function(g,n){b.each(k,function(f,k){for(var h=b(f,g).add(n.filter(f)),A=0,m=h.length;A<m;A++)l(h[A],k)});if(g===f){var q=f.getElementsByTagName("header")[0],B=f.getElementsByTagName("footer"),m=B.length; +q&&!b(q).closest("section, article")[0]&&l(q,"banner");m&&(q=B[m-1],b(q).closest("section, article")[0]||l(q,"contentinfo"))}})}})(jQuery,document); +(function(b,f,g){var k=f.audio&&f.video,l=!1,p=g.cfg.mediaelement,n=g.bugs,q="jwplayer"==p.player?"mediaelement-swf":"mediaelement-jaris",B=function(){g.ready(q,function(){if(!g.mediaelement.createSWF)g.mediaelement.loadSwf=!0,g.reTest([q],k)})},m;if(k){var z=document.createElement("video");f.videoBuffered="buffered"in z;l="loop"in z;g.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(g.addPolyfill("mediaelement-native-fix", +{f:"mediaelement",test:f.videoBuffered,d:["dom-support"]}),g.reTest("mediaelement-native-fix"))}if(k&&!p.preferFlash){var t=function(h){var f=h.target.parentNode;!p.preferFlash&&(b(h.target).is("audio, video")||f&&b("source:last",f)[0]==h.target)&&g.ready("DOM mediaelement",function(){m&&B();g.ready("WINDOWLOAD "+q,function(){setTimeout(function(){m&&!p.preferFlash&&g.mediaelement.createSWF&&!b(h.target).closest("audio, video").is(".nonnative-api-active")?(p.preferFlash=!0,document.removeEventListener("error", +t,!0),b("audio, video").mediaLoad(),g.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+h.target.src)):m||document.removeEventListener("error",t,!0)},20)})})};document.addEventListener("error",t,!0);b("audio, video").each(function(){this.error&&t({target:this})})}n.track=!1;f.track&&function(){if(!n.track)n.track="number"!=typeof b("<track />")[0].readyState;if(!n.track)try{new TextTrackCue(2,3,"")}catch(h){n.track=!0}var f=g.cfg.track,k=function(h){b(h.target).filter("track").each(m)}, +m=function(){if(n.track||!f.override&&3==b.prop(this,"readyState"))f.override=!0,g.reTest("track"),document.removeEventListener("error",k,!0),this&&b.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")},l=function(){document.addEventListener("error",k,!0);n.track?m():b("track").each(m)};f.override||(g.isReady("track")?l():b(l))}();g.register("mediaelement-core",function(b, +g,v,r,t){m=swfobject.hasFlashPlayerVersion("9.0.115");var i=g.mediaelement,y=function(a,c){var a=b(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=b.trim(e.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=i.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},C=!m&&"postMessage"in v&&k,d= +function(){var a;return function(){!a&&C&&(a=!0,g.loader.loadScript("https://www.youtube.com/player_api"),b(function(){g.polyfill("mediaelement-yt")}))}}(),a=function(){m?B():d()};g.addPolyfill("mediaelement-yt",{test:!C,d:["dom-support"]});i.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv", +"f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};i.mimeTypes.source=b.extend({},i.mimeTypes.audio,i.mimeTypes.video);i.getTypeForSrc=function(a,c){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;b.each(i.mimeTypes[c],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};i.srces=function(a,c){a=b(a);if(c)a.removeAttr("src").removeAttr("type").find("source").remove(),b.isArray(c)||(c=[c]),c.forEach(function(b){var c=r.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)}); +else{var c=[],d=a[0].nodeName.toLowerCase(),e=y(a,d);e.src?c.push(e):b("source",a).each(function(){e=y(this,d);e.src&&c.push(e)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==t&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));i.srces(this,a);b(this).mediaLoad()})};i.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(","); +i.canThirdPlaySrces=function(a,c){var d="";if(m||C)a=b(a),c=c||i.srces(a),b.each(c,function(b,a){if(a.container&&a.src&&(m&&-1!=i.swfMimeTypes.indexOf(a.container)||C&&"video/youtube"==a.container))return d=a,!1});return d};var c={};i.canNativePlaySrces=function(a,d){var e="";if(k){var a=b(a),f=(a[0].nodeName||"").toLowerCase();if(!c[f])return e;d=d||i.srces(a);b.each(d,function(b,d){if(d.type&&c[f].prop._supvalue.call(a[0],d.type))return e=d,!1})}return e};i.setError=function(a,c){c||(c="can't play sources"); +b(a).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var e=function(){var b;return function(c,f,h){g.ready(m?q:"mediaelement-yt",function(){i.createSWF?i.createSWF(c,f,h):b||(b=!0,a(),e(c,f,h))});!b&&C&&!i.createSWF&&d()}}(),o=function(a,b,c,d,f){c||!1!==c&&b&&"third"==b.isActive?(c=i.canThirdPlaySrces(a,d))?e(a,c,b):f?i.setError(a,!1):o(a,b,!1,d,!0):(c=i.canNativePlaySrces(a,d))?b&&"third"==b.isActive&&i.setActive(a, +"html5",b):f?(i.setError(a,!1),b&&"third"==b.isActive&&i.setActive(a,"html5",b)):o(a,b,!0,d,!0)},u=/^(?:embed|object|datalist)$/i,z=function(a,c){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),e=i.srces(a),f=a.parentNode;clearTimeout(d.loadTimer);b.data(a,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||u.test(f.nodeName||"")))c=c||g.data(a,"mediaelement"),o(a,c,p.preferFlash||t,e)};b(r).on("ended",function(a){var c=g.data(a.target,"mediaelement");(!l||c&&"html5"!=c.isActive|| +b.prop(a.target,"loop"))&&setTimeout(function(){!b.prop(a.target,"paused")&&b.prop(a.target,"loop")&&b(a.target).prop("currentTime",0).play()},1)});l||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var d=g.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");z(this,a);k&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});c[a]=g.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(d){var e= +"";k&&c[a].prop._supvalue&&(e=c[a].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&m&&(d=b.trim((d||"").split(";")[0]),-1!=i.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(){z(a);a=null},9)}});v=function(){g.addReady(function(a,c){b("video, audio",a).add(c.filter("video, audio")).each(function(){b.browser.msie&& +8<g.browserVersion&&b.prop(this,"paused")&&!b.prop(this,"readyState")&&b(this).is('audio[preload="none"][controls]:not([autoplay])')?b(this).prop("preload","metadata").mediaLoad():z(this);if(k){var a,c,d=this,e=function(){var a=b.prop(d,"buffered");if(a){for(var c="",e=0,M=a.length;e<M;e++)c+=a.end(e);return c}},f=function(){var a=e();a!=c&&(c=a,b(d).triggerHandler("progress"))};b(this).on({"play loadstart progress":function(b){"progress"==b.type&&(c=e());clearTimeout(a);a=setTimeout(f,999)},"emptied stalled mediaerror abort suspend":function(b){"emptied"== +b.type&&(c=!1);clearTimeout(a)}})}})})};f.track&&!n.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(g.isReady("mediaelement-core",!0),v(),g.ready("WINDOWLOAD mediaelement",a)):g.ready(q,v);b(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims); +jQuery.webshims.register("mediaelement-swf",function(b,f,g,k,l,p){var n=f.mediaelement,q=g.swfobject,B=Modernizr.audio&&Modernizr.video,m=q.hasFlashPlayerVersion("9.0.115"),z=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)f.error("buffered index size error");else return 0},end:function(a){if(a)f.error("buffered index size error");else return 0},length:0}},t=Object.keys(g),h={currentTime:0,volume:1, +muted:!1};Object.keys(h);var A=b.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:l},g,h),v=/^jwplayer-/,r=function(a){if(a=k.getElementById(a.replace(v,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},D=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},i=function(a,c){c=b.Event(c);c.preventDefault();b.event.trigger(c,l,a)},y=p.playerPath||f.cfg.basePath+ +"jwplayer/"+(p.playerName||"player.swf"),C=p.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(p.params,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(p.vars,{screencolor:"ffffffff"});f.extendUNDEFProp(p.attrs,{bgcolor:"#000000"});var d=function(a,c){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?(i(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&n.jwEvents.Model.META(b.extend({duration:a.duration},c),a),a._durationCalcs--):a._durationCalcs++}},a=function(b,c){3>b&&clearTimeout(c._canplaythroughTimer);if(3<=b&&3>c.readyState)c.readyState=b,i(c._elem,"canplay"),clearTimeout(c._canplaythroughTimer),c._canplaythroughTimer=setTimeout(function(){a(4,c)},4E3);if(4<=b&&4>c.readyState)c.readyState=b,i(c._elem,"canplaythrough");c.readyState=b};b.extend(b.event.customEvent, +{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});n.jwEvents={View:{PLAY:function(a){var b=r(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;i(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(c){var s=r(c.id);if(s&&"percentage"in c&&s._bufferedEnd!=c.percentage){s.networkState=100==c.percentage?1:2;(isNaN(s.duration)||5<c.percentage&&25>c.percentage||100===c.percentage)&&d(s,c);if(s.ended)s.ended= +!1;if(s.duration){2<c.percentage&&20>c.percentage?a(3,s):20<c.percentage&&a(4,s);if(s._bufferedEnd&&s._bufferedEnd>c.percentage)s._bufferedStart=s.currentTime||0;s._bufferedEnd=c.percentage;s.buffered.length=1;if(100==c.percentage)s.networkState=1,a(4,s);b.event.trigger("progress",l,s._elem,!0)}}},META:function(b,c){if(c=c&&c.networkState?c:r(b.id))if("duration"in b){if(!c._metadata||!((!b.height||c.videoHeight==b.height)&&b.duration===c.duration)){c._metadata=!0;var d=c.duration;if(b.duration)c.duration= +b.duration;c._lastDuration=c.duration;if(b.height||b.width)c.videoHeight=b.height||0,c.videoWidth=b.width||0;if(!c.networkState)c.networkState=2;1>c.readyState&&a(1,c);c.duration&&d!==c.duration&&i(c._elem,"durationchange");i(c._elem,"loadedmetadata")}}else c._callMeta=!0},TIME:function(b){var c=r(b.id);if(c&&c.currentTime!==b.position){c.currentTime=b.position;c.duration&&c.duration<c.currentTime&&d(c,b);2>c.readyState&&a(2,c);if(c.ended)c.ended=!1;i(c._elem,"timeupdate")}},STATE:function(b){var c= +r(b.id);if(c)switch(b.newstate){case "BUFFERING":if(c.ended)c.ended=!1;a(1,c);i(c._elem,"waiting");break;case "PLAYING":c.paused=!1;c._ppFlag=!0;c.duration||d(c,b);3>c.readyState&&a(3,c);if(c.ended)c.ended=!1;i(c._elem,"playing");break;case "PAUSED":if(!c.paused&&!c.stopPlayPause)c.paused=!0,c._ppFlag=!0,i(c._elem,"pause");break;case "COMPLETED":4>c.readyState&&a(4,c),c.ended=!0,i(c._elem,"ended")}}},Controller:{ERROR:function(a){var b=r(a.id);b&&n.setError(b._elem,a.message)},SEEK:function(a){var b= +r(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,i(b._elem,"timeupdate")}},VOLUME:function(a){var b=r(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,i(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=r(a.id);if(b&&b.muted!=a.state)b.muted=a.state,i(b._elem,"volumechange")}}}};var c=function(a){var c=!0;b.each(n.jwEvents,function(d,e){b.each(e,function(b){try{a.jwapi["add"+d+"Listener"](b, +"jQuery.webshims.mediaelement.jwEvents."+d+"."+b)}catch(e){return c=!1}})});return c},e=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},o=function(a){a&&(a._ppFlag===l&&b.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===l||!a.paused))try{b(a._elem).play()}catch(c){}},1)};n.playerResize=function(a){a&& +(a=k.getElementById(a.replace(v,"")))&&b(a).triggerHandler("swfstageresize")};b(k).on("emptied",function(a){a=D(a.target);o(a)});var u;n.jwPlayerReady=function(a){var d=r(a.id),g=0,h=function(){if(!(9<g))if(g++,c(d)){if(d.wasSwfReady)b(d._elem).mediaLoad();else{var i=parseFloat(a.version,10);(5.1>i||6<=i)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=!0;d.tryedReframeing=0;e(d);o(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(h,9*g),2<g&&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(u);d.jwData=a;d.shadowElem.removeClass("flashblocker-assumed");b.prop(d._elem,"volume",d.volume);b.prop(d._elem,"muted",d.muted);h()}};var G=b.noop;if(B){var w={play:1,playing:1},j="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),x=j.map(function(a){return a+ +".webshimspolyfill"}).join(" "),E=function(a){var c=f.data(a.target,"mediaelement");c&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==c.activating)&&(a.stopImmediatePropagation(),w[a.type]&&c.isActive!=c.activating&&b(a.target).pause())},G=function(a){b(a).off(x).on(x,E);j.forEach(function(b){f.moveToFirstEvent(a,b)})};G(k)}n.setActive=function(a,c,d){d||(d=f.data(a,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e= +f.data(a,"shadowData");d.activating=c;b(a).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],b(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(b(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);b(a).trigger("mediaelementapichange")}};var I=function(){var b="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","), +c=b.length;return function(d){if(d){var e=c,f=d.networkState;for(a(0,d);--e;)delete d[b[e]];d.actionQueue=[];d.buffered.length=0;f&&i(d._elem,"emptied")}}}(),H=function(a,c){var d=a._elem,e=a.shadowElem;b(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width||b(d).width(),height:d.style.height||b(d).height()})};n.createSWF=function(a,c,d){if(m){1>z?z=1:z++;var e=b.extend({},p.vars,{image:b.prop(a,"poster")||"",file:c.srcProp}), +g=b(a).data("vars")||{};d||(d=f.data(a,"mediaelement"));if(d&&d.swfCreated)n.setActive(a,"third",d),I(d),d.currentSrc=c.srcProp,b.extend(e,g),p.changeSWF(e,a,c,d,"load"),F(a,"sendEvent",["LOAD",e]);else{var h=b.prop(a,"controls"),i="jwplayer-"+f.getID(a),j=b.extend({},p.params,b(a).data("params")),k=a.nodeName.toLowerCase(),o=b.extend({},p.attrs,{name:i,id:i},b(a).data("attrs")),l=b('<div class="polyfill-'+k+' polyfill-mediaelement" id="wrapper-'+i+'"><div id="'+i+'"></div>').css({position:"relative", +overflow:"hidden"}),d=f.data(a,"mediaelement",f.objectCreate(A,{actionQueue:{value:[]},shadowElem:{value:l},_elemNodeName:{value:k},_elem:{value:a},currentSrc:{value:c.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=d.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>=d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));H(d,h);l.insertBefore(a); +B&&b.extend(d,{volume:b.prop(a,"volume"),muted:b.prop(a,"muted")});b.extend(e,{id:i,controlbar:h?p.vars.controlbar||("video"==k?"over":"bottom"):"video"==k?"none":"bottom",icons:""+(h&&"video"==k)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+C):C;f.addShadowDom(a,l);G(a);n.setActive(a,"third",d);p.changeSWF(e,a,c,d,"embed");b(a).on("updatemediaelementdimensions updateshadowdom",function(){H(d,b.prop(a,"controls"))});q.embedSWF(y,i,"100%","100%", +"9.0.0",!1,e,j,o,function(c){if(c.success)d.jwapi=c.ref,h||b(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&l[0].parentNode||"none"==c.ref.style.display)l.addClass("flashblocker-assumed"),b(a).trigger("flashblocker"),f.warn("flashblocker assumed");b(c.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),u||(clearTimeout(u),u=setTimeout(function(){var a=b(c.ref);1<a[0].offsetWidth&&1<a[0].offsetHeight&&0===location.protocol.indexOf("file:")? +f.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>a[0].offsetWidth||2>a[0].offsetHeight)&&f.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){b(a).mediaLoad()},1)};var F=function(a,b,c,d){return(d=d||D(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 c={},d,e=function(b){"audio"==a&&("videoHeight"==b||"videoWidth"==b)||(c[b]={get:function(){var a=D(this);return a?a[b]:B&&d[b].prop._supget?d[b].prop._supget.apply(this):A[b]},writeable:!1})},g=function(a,b){e(a);delete c[a].writeable;c[a].set=b};g("volume",function(a){var b=D(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+ +a/100);F(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,i(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=D(this);if(b){if(a=!!a,F(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"third"!=b.isActive))b.muted=a,i(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime", +function(a){var b=D(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,i(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){c[a]={value:function(){var b=D(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,i(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});t.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(c,d){var e=D(this);b(this)[d?"addClass":"removeClass"]("webshims-controls");if(e){try{F(this,d?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"== +a&&H(e,d);b(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(a,c,"prop")});if(m){var J=b.cleanData,K=b.browser.msie&&9>f.browserVersion,L={object:1,OBJECT:1};b.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&z)for(b=0;b<c;b++)if(L[a[b].nodeName]){if("sendEvent"in a[b]){z--;try{a[b].sendEvent("play",!1)}catch(e){}}if(K)try{for(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(f){}}return J.apply(this,arguments)}}B||(["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"== +a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});