vendor/assets/javascripts/webshims/minified/shims/combos/12.js in webshims-rails-0.4.4 vs vendor/assets/javascripts/webshims/minified/shims/combos/12.js in webshims-rails-0.4.5
- old
+ new
@@ -1,44 +2 @@
-jQuery.webshims.register("dom-extend",function(c,g,h,n,p){var v=g.modules,q=/\s*,\s*/,o={},s={},i={},z={},m={},f=c.fn.val,j=function(b,a,d,e,t){return t?f.call(c(b)):f.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?f.call(this):c.prop(a,"value",b,"val",!0);if(c.isArray(b))return f.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 y="_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,y);d!==p&&(e||(e=c.data(b,y,{})),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){o[b]=c[b];c[b]=function(a,d,e,t,D){var w="val"==t,r=!w?o[b]:j;if(!a||!s[d]||1!==a.nodeType||!w&&t&&"attr"==b&&c.attrFn[d])return r(a,d,e,t,D);var k=(a.nodeName||"").toLowerCase(),A=i[k],B="attr"==b&&(!1===e||null===e)?"removeAttr":b,f,g,l;A||(A=i["*"]);A&&(A=A[d]);A&&(f=A[B]);if(f){if("value"==d)g=f.isVal,f.isVal=w;if("removeAttr"===B)return f.value.call(a);if(e===p)return f.get?f.get.call(a):f.value;f.set&&
-("attr"==b&&!0===e&&(e=d),l=f.set.call(a,e));if("value"==d)f.isVal=g}else l=r(a,d,e,t,D);if((e!==p||"removeAttr"===B)&&m[k]&&m[k][d]){var h;h="removeAttr"==B?!1:"prop"==B?!!e:!0;m[k][d].forEach(function(k){if(!k.only||(k.only="prop"==b)||"attr"==k.only&&"prop"!=b)k.call(a,e,h,w?"val":B,b)})}return l};z[b]=function(a,d,e){i[a]||(i[a]={});i[a][d]||(i[a][d]={});var t=i[a][d][b],f=function(a,r,k){return r&&r[a]?r[a]:k&&k[a]?k[a]:"prop"==b&&"value"==d?function(a){return e.isVal?j(this,d,a,!1,0===arguments.length):
-o[b](this,d,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var k=o[b](this,d);k&&k.apply&&(k=k.apply(this,arguments));return k}:function(k){return o[b](this,d,k)}};i[a][d][b]=e;if(e.value===p){if(!e.set)e.set=e.writeable?f("set",e,t):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+a;}:c.noop;if(!e.get)e.get=f("get",e,t)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=f(a,t))})}});var E=!c.browser.msie||8<parseInt(c.browser.version,10),l=function(){var b=g.getPrototypeOf(n.createElement("foobar")),
-a=Object.prototype.hasOwnProperty;return function(d,e,c){var f=n.createElement(d),w=g.getPrototypeOf(f);if(E&&w&&b!==w&&(!f[e]||!a.call(f,e))){var r=f[e];c._supvalue=function(){return r&&r.apply?r.apply(this,arguments):r};w[e]=c.value}else c._supvalue=function(){var a=C(this,"propValue");return a&&a[e]&&a[e].apply?a[e].apply(this,arguments):a&&a[e]},u.extendValue(d,e,c.value);c.value._supvalue=c._supvalue}}(),u=function(){var b={};g.addReady(function(a,d){var e={},r=function(k){e[k]||(e[k]=c(a.getElementsByTagName(k)),
-d[0]&&c.nodeName(d[0],k)&&(e[k]=e[k].add(d)))};c.each(b,function(a,b){r(a);!b||!b.forEach?g.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){e[a].each(b)})});e=null});var a,d=c([]),e=function(d,e){b[d]?b[d].push(e):b[d]=[e];c.isDOMReady&&(a||c(n.getElementsByTagName(d))).each(e)};return{createTmpCache:function(b){c.isDOMReady&&(a=a||c(n.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})})}}}(),x=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(g,{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,e){a in b||(b[a]=e)})},createPropDefault:x,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={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(f){clearTimeout(b);b=setTimeout(function(){if("resize"==f.type){var b=c(h).width(),j=c(h).width();if(j==a&&b==d)return;a=j;d=b;e.height=e.getHeight();e.width=e.getWidth()}c.event.trigger("updateshadowdom")},"resize"==f.type?50:9)},_create:function(){c.each({Height:"getHeight",Width:"getWidth"},function(a,b){var d=n.body,c=n.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&&n.body)this.init=!0,this._create(),this.height=e.getHeight(),this.width=e.getWidth(),setInterval(this.test,400),c(this.test),c(h).bind("load",this.test),c(h).bind("resize",this.handler),function(){var a=c.fn.animate,b;c.fn.animate=function(){clearTimeout(b);b=setTimeout(function(){e.test();e.handler({type:"animationstart"})},19);return a.apply(this,arguments)}}()}};c.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){e.start()})};
-return function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var e=c.data(a,y)||c.data(a,y,{}),k=c.data(b,y)||c.data(b,y,{}),f={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];f=c.data(d.shadowFocusElement,y)||c.data(d.shadowFocusElement,y,f)}}else d.shadowFocusElement=b;e.hasShadow=b;f.nativeElement=k.nativeElement=a;f.shadowData=k.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};
-d.shadowChilds&&d.shadowChilds.each(function(){C(this,"shadowData",k.shadowData)});if(d.data)f.shadowData.data=k.shadowData.data=e.shadowData.data=d.data;d=null;g.docObserve()}}(),propTypes:{standard:function(b){x(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){x(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=n.createElement("a");b.style.display="none";return function(a,d){x(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(j){f=b.getAttribute("href",4)}c(b).detach()}return f||b.href}}}}(),enumarated:function(b){x(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){g.defineNodeNamesProperty(b,a,{prop:{set:function(b){c.attr(this,a,b)},get:function(){return c.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,d){s[a]=!0;if(d.reflect)g.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}),z[e](b,a,f),"*"!=b&&g.cfg.extendNative&&"prop"==e&&f.value&&c.isFunction(f.value)&&l(b,a,f),d[e]=f)});d.initAttr&&u.content(b,a);return d},defineNodeNameProperties:function(b,a,d,e){for(var c in a)!e&&a[c].initAttr&&u.createTmpCache(b),d&&!a[c][d]&&(a[c][d]={},["value","set","get"].forEach(function(b){b in a[c]&&(a[c][d][b]=a[c][b],delete a[c][b])})),a[c]=g.defineNodeNameProperty(b,c,a[c]);e||u.flushTmpCache();return a},createElement:function(b,a,d){var e;c.isFunction(a)&&
-(a={after:a});u.createTmpCache(b);a.before&&u.createElement(b,a.before);d&&(e=g.defineNodeNameProperties(b,d,!1,!0));a.after&&u.createElement(b,a.after);u.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,a,d,e){"string"==typeof b&&(b=b.split(q));c.isFunction(d)&&(d={set:d});b.forEach(function(b){m[b]||(m[b]={});"string"==typeof a&&(a=a.split(q));d.initAttr&&u.createTmpCache(b);a.forEach(function(a){m[b][a]||(m[b][a]=[],s[a]=!0);if(d.set){if(e)d.set.only=e;m[b][a].push(d.set)}d.initAttr&&
-u.content(b,a)});u.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,a,d){d||(d={});if(c.isFunction(d))d.set=d;g.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,e,f=/:\/\/|^\.*\//,j=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,f.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,r(a,!0)):c(function(){a.langObj[b]&&r(a,!0);a.loading=!1})}),!0):!1},i=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},
-r=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=v[a.module].options;if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),i(a.module);else if(!b&&!j(a,d,c)&&!j(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),i(a.module)}};return function(k){if("string"==typeof k&&k!==d)d=k,e=d.split("-")[0],d==e&&(e=!1),c.each(b,function(a,b){r(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);r(k)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){g[b]=function(b,c,f,j){"string"==typeof b&&(b=b.split(q));var i={};b.forEach(function(b){i[b]=g[a](b,c,f,j)});return i}});g.isReady("webshimLocalization",!0)});
-(function(c,g){var h=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<h)&&(!c.browser.msie||12>h&&7<h)){var n={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(c,g){c.getAttribute("role")||c.setAttribute("role",g)};c.webshims.addReady(function(h,q){c.each(n,function(i,g){for(var f=c(i,h).add(q.filter(i)),j=0,y=f.length;j<y;j++)p(f[j],g)});if(h===g){var o=g.getElementsByTagName("header")[0],s=g.getElementsByTagName("footer"),i=s.length;
-o&&!c(o).closest("section, article")[0]&&p(o,"banner");i&&(o=s[i-1],c(o).closest("section, article")[0]||p(o,"contentinfo"))}})}})(jQuery,document);
-(function(c,g,h){var n=g.audio&&g.video,p=!1,v=h.cfg.mediaelement,q=h.bugs,o="jwplayer"==v.player?"mediaelement-swf":"mediaelement-jaris",s=function(){h.ready(o,function(){if(!h.mediaelement.createSWF)h.mediaelement.loadSwf=!0,h.reTest([o],n)})},i;if(n){var z=document.createElement("video");g.videoBuffered="buffered"in z;p="loop"in z;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(n&&!v.preferFlash){var m=function(f){var j=f.target.parentNode;!v.preferFlash&&(c(f.target).is("audio, video")||j&&c("source:last",j)[0]==f.target)&&h.ready("DOM mediaelement",function(){i&&s();h.ready("WINDOWLOAD "+o,function(){setTimeout(function(){i&&!v.preferFlash&&h.mediaelement.createSWF&&!c(f.target).closest("audio, video").is(".nonnative-api-active")?(v.preferFlash=!0,document.removeEventListener("error",
-m,!0),c("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):i||document.removeEventListener("error",m,!0)},20)})})};document.addEventListener("error",m,!0);c("audio, video").each(function(){this.error&&m({target:this})})}q.track=!1;g.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 j=h.cfg.track,i=function(f){c(f.target).filter("track").each(g)},
-g=function(){if(q.track||!j.override&&3==c.prop(this,"readyState"))j.override=!0,h.reTest("track"),document.removeEventListener("error",i,!0),this&&c.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")},m=function(){document.addEventListener("error",i,!0);q.track?g():c("track").each(g)};j.override||(h.isReady("track")?m():c(m))}();h.register("mediaelement-core",function(c,
-j,h,m,z){i=swfobject.hasFlashPlayerVersion("9.0.115");var l=j.mediaelement,u=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},x=!i&&"postMessage"in h&&n,b=
-function(){var a;return function(){!a&&x&&(a=!0,j.loader.loadScript("https://www.youtube.com/player_api"),c(function(){j.polyfill("mediaelement-yt")}))}}(),a=function(){i?s():b()};j.addPolyfill("mediaelement-yt",{test:!x,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=m.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=u(a,d);e.src?b.push(e):c("source",a).each(function(){e=u(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==z&&(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(i||x)a=c(a),b=b||l.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&(i&&-1!=l.swfMimeTypes.indexOf(b.container)||x&&"video/youtube"==b.container))return d=b,!1});return d};var d={};l.canNativePlaySrces=function(a,b){var e="";if(n){var a=c(a),j=(a[0].nodeName||"").toLowerCase();if(!d[j])return e;b=b||l.srces(a);c.each(b,function(b,c){if(c.type&&d[j].prop._supvalue.call(a[0],c.type))return e=c,!1})}return e};l.setError=function(a,b){b||(b="can't play sources");
-c(a).pause().data("mediaerror",b);j.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var e=function(){var c;return function(d,f,g){j.ready(i?o:"mediaelement-yt",function(){l.createSWF?l.createSWF(d,f,g):c||(c=!0,a(),e(d,f,g))});!c&&x&&!l.createSWF&&b()}}(),t=function(a,b,c,d,f){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,d))?e(a,c,b):f?l.setError(a,!1):t(a,b,!1,d,!0):(c=l.canNativePlaySrces(a,d))?b&&"third"==b.isActive&&l.setActive(a,
-"html5",b):f?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):t(a,b,!0,d,!0)},D=/^(?:embed|object|datalist)$/i,w=function(a,b){var d=j.data(a,"mediaelementBase")||j.data(a,"mediaelementBase",{}),e=l.srces(a),i=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(e.length&&i&&!(1!=i.nodeType||D.test(i.nodeName||"")))b=b||j.data(a,"mediaelement"),t(a,b,v.preferFlash||z,e)};c(m).on("ended",function(a){var b=j.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||j.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=j.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=j.data(this,"mediaelement");w(this,a);n&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});d[a]=j.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var e=
-"";n&&d[a].prop._supvalue&&(e=d[a].prop._supvalue.call(this,b),"no"==e&&(e=""));!e&&i&&(b=c.trim((b||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});j.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=j.data(a,"mediaelementBase")||j.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){w(a);a=null},9)}});h=function(){j.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&
-8<j.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():w(this);if(n){var a,b,d=this,e=function(){var a=c.prop(d,"buffered");if(a){for(var b="",e=0,i=a.length;e<i;e++)b+=a.end(e);return b}},i=function(){var a=e();a!=b&&(b=a,c(d).triggerHandler("progress"))};c(this).on({"play loadstart progress":function(c){"progress"==c.type&&(b=e());clearTimeout(a);a=setTimeout(i,999)},"emptied stalled mediaerror abort suspend":function(c){"emptied"==
-c.type&&(b=!1);clearTimeout(a)}})}})})};g.track&&!q.track&&j.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});n?(j.isReady("mediaelement-core",!0),h(),j.ready("WINDOWLOAD mediaelement",a)):j.ready(o,h);c(function(){j.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
-jQuery.webshims.register("details",function(c,g,h,n,p,v){var q=function(i){var g=c(i).parent("details");if(g[0]&&g.children(":first").get(0)===i)return g},o=function(i,g){var i=c(i),g=c(g),h=c.data(g[0],"summaryElement");c.data(i[0],"detailsElement",g);if(!h||i[0]!==h[0])h&&(h.hasClass("fallback-summary")?h.remove():h.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),
-c.data(g[0],"summaryElement",i),g.prop("open",g.prop("open"))};g.createElement("summary",function(){var i=q(this);if(i&&!c.data(this,"detailsElement")){var h,m,f=c.attr(this,"tabIndex")||"0";o(this,i);c(this).on({"focus.summaryPolyfill":function(){c(this).addClass("summary-has-focus")},"blur.summaryPolyfill":function(){c(this).removeClass("summary-has-focus")},"mouseenter.summaryPolyfill":function(){c(this).addClass("summary-has-hover")},"mouseleave.summaryPolyfill":function(){c(this).removeClass("summary-has-hover")},
-"click.summaryPolyfill":function(f){var g=q(this);if(g){if(!m&&f.originalEvent)return m=!0,f.stopImmediatePropagation(),f.preventDefault(),c(this).trigger("click"),m=!1;clearTimeout(h);h=setTimeout(function(){f.isDefaultPrevented()||g.prop("open",!g.prop("open"))},0)}},"keydown.summaryPolyfill":function(f){if((13==f.keyCode||32==f.keyCode)&&!f.isDefaultPrevented())m=!0,f.preventDefault(),c(this).trigger("click"),m=!1}}).attr({tabindex:f,role:"button"}).prepend('<span class="details-open-indicator" />');
-g.moveToFirstEvent(this,"click")}});var s;g.defineNodeNamesBooleanProperty("details","open",function(g){var h=c(c.data(this,"summaryElement"));if(h){var m=g?"removeClass":"addClass",f=c(this);if(!s&&v.animate){f.stop().css({width:"",height:""});var j={width:f.width(),height:f.height()}}h.attr("aria-expanded",""+g);f[m]("closed-details-summary").children().not(h[0])[m]("closed-details-child");!s&&v.animate&&(g={width:f.width(),height:f.height()},f.css(j).animate(g,{complete:function(){c(this).css({width:"",
-height:""})}}))}});g.createElement("details",function(){s=!0;var g=c.data(this,"summaryElement");g||(g=c("> summary:first-child",this),g[0]?o(g,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+v.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));s=!1})});
+jQuery.webshims.register("dom-extend",function(e,t,n,r,i){"use strict";var s=t.modules,o=/\s*,\s*/,u={},a={},f={},l={},c={},h=e.fn.val,p=function(t,n,r,i,s){return s?h.call(e(t)):h.call(e(t),r)};e.fn.val=function(t){var n=this[0];arguments.length&&t==null&&(t="");if(!arguments.length)return!n||n.nodeType!==1?h.call(this):e.prop(n,"value",t,"val",!0);if(e.isArray(t))return h.apply(this,arguments);var r=e.isFunction(t);return this.each(function(s){n=this;if(n.nodeType===1)if(r){var o=t.call(n,s,e.prop(n,"value",i,"val",!0));o==null&&(o=""),e.prop(n,"value",o,"val")}else e.prop(n,"value",t,"val")})};var d="_webshimsLib"+Math.round(Math.random()*1e3),v=function(t,n,r){t=t.jquery?t[0]:t;if(!t)return r||{};var s=e.data(t,d);return r!==i&&(s||(s=e.data(t,d,{})),n&&(s[n]=r)),n?s&&s[n]:s};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(t){e.fn[t.name]=function(){return this.map(function(){var e=v(this,"shadowData");return e&&e[t.prop]||this})}}),["removeAttr","prop","attr"].forEach(function(n){u[n]=e[n],e[n]=function(t,r,s,o,l){var h=o=="val",d=h?p:u[n];if(!t||!a[r]||t.nodeType!==1||!h&&o&&n=="attr"&&e.attrFn[r])return d(t,r,s,o,l);var v=(t.nodeName||"").toLowerCase(),m=f[v],g=n!="attr"||s!==!1&&s!==null?n:"removeAttr",y,b,w;m||(m=f["*"]),m&&(m=m[r]),m&&(y=m[g]);if(y){r=="value"&&(b=y.isVal,y.isVal=h);if(g==="removeAttr")return y.value.call(t);if(s===i)return y.get?y.get.call(t):y.value;y.set&&(n=="attr"&&s===!0&&(s=r),w=y.set.call(t,s)),r=="value"&&(y.isVal=b)}else w=d(t,r,s,o,l);if((s!==i||g==="removeAttr")&&c[v]&&c[v][r]){var E;g=="removeAttr"?E=!1:g=="prop"?E=!!s:E=!0,c[v][r].forEach(function(e){(!e.only||(e.only=n=="prop")||e.only=="attr"&&n!="prop")&&e.call(t,s,E,h?"val":g,n)})}return w},l[n]=function(r,s,o){f[r]||(f[r]={}),f[r][s]||(f[r][s]={});var a=f[r][s][n],l=function(e,t,r){return t&&t[e]?t[e]:r&&r[e]?r[e]:n=="prop"&&s=="value"?function(e){var t=this;return o.isVal?p(t,s,e,!1,arguments.length===0):u[n](t,s,e)}:n=="prop"&&e=="value"&&o.value.apply?function(e){var t=u[n](this,s);return t&&t.apply&&(t=t.apply(this,arguments)),t}:function(e){return u[n](this,s,e)}};f[r][s][n]=o,o.value===i&&(o.set||(o.set=o.writeable?l("set",o,a):t.cfg.useStrict&&s=="prop"?function(){throw s+" is readonly on "+r}:e.noop),o.get||(o.get=l("get",o,a))),["value","get","set"].forEach(function(e){o[e]&&(o["_sup"+e]=l(e,a))})}});var m=!e.browser.msie||parseInt(e.browser.version,10)>8,g=function(){var e=t.getPrototypeOf(r.createElement("foobar")),n=Object.prototype.hasOwnProperty;return function(i,s,o){var u=r.createElement(i),a=t.getPrototypeOf(u);if(m&&a&&e!==a&&(!u[s]||!n.call(u,s))){var f=u[s];o._supvalue=function(){return f&&f.apply?f.apply(this,arguments):f},a[s]=o.value}else o._supvalue=function(){var e=v(this,"propValue");return e&&e[s]&&e[s].apply?e[s].apply(this,arguments):e&&e[s]},y.extendValue(i,s,o.value);o.value._supvalue=o._supvalue}}(),y=function(){var n={};t.addReady(function(r,i){var s={},o=function(t){s[t]||(s[t]=e(r.getElementsByTagName(t)),i[0]&&e.nodeName(i[0],t)&&(s[t]=s[t].add(i)))};e.each(n,function(e,n){o(e);if(!n||!n.forEach){t.warn("Error: with "+e+"-property. methods: "+n);return}n.forEach(function(t){s[e].each(t)})}),s=null});var i,s=e([]),o=function(t,s){n[t]?n[t].push(s):n[t]=[s],e.isDOMReady&&(i||e(r.getElementsByTagName(t))).each(s)},u={};return{createTmpCache:function(t){return e.isDOMReady&&(i=i||e(r.getElementsByTagName(t))),i||s},flushTmpCache:function(){i=null},content:function(t,n){o(t,function(){var t=e.attr(this,n);t!=null&&e.attr(this,n,t)})},createElement:function(e,t){o(e,t)},extendValue:function(t,n,r){o(t,function(){e(this).each(function(){var e=v(this,"propValue",{});e[n]=this[n],this[n]=r})})}}}(),b=function(e,t){e.defaultValue===i&&(e.defaultValue=""),e.removeAttr||(e.removeAttr={value:function(){e[t||"prop"].set.call(this,e.defaultValue),e.removeAttr._supvalue.call(this)}}),e.attr||(e.attr={})};e.extend(t,{getID:function(){var t=(new Date).getTime();return function(n){n=e(n);var r=n.attr("id");return r||(t++,r="ID-"+t,n.attr("id",r)),r}}(),extendUNDEFProp:function(t,n){e.each(n,function(e,n){e in t||(t[e]=n)})},createPropDefault:b,data:v,moveToFirstEvent:function(t,n,r){var i=(e._data(t,"events")||{})[n],s;i&&i.length>1&&(s=i.pop(),r||(r="bind"),r=="bind"&&i.delegateCount?i.splice(i.delegateCount,0,s):i.unshift(s)),t=null},addShadowDom:function(){var i,s,o,u={init:!1,runs:0,test:function(){var e=u.getHeight(),t=u.getWidth();e!=u.height||t!=u.width?(u.height=e,u.width=t,u.handler({type:"docresize"}),u.runs++,u.runs<9&&setTimeout(u.test,90)):u.runs=0},handler:function(t){clearTimeout(i),i=setTimeout(function(){if(t.type=="resize"){var r=e(n).width(),i=e(n).width();if(i==s&&r==o)return;s=i,o=r,u.height=u.getHeight(),u.width=u.getWidth()}e.event.trigger("updateshadowdom")},t.type=="resize"?50:9)},_create:function(){e.each({Height:"getHeight",Width:"getWidth"},function(e,t){var n=r.body,i=r.documentElement;u[t]=function(){return Math.max(n["scroll"+e],i["scroll"+e],n["offset"+e],i["offset"+e],i["client"+e])}})},start:function(){!this.init&&r.body&&(this.init=!0,this._create(),this.height=u.getHeight(),this.width=u.getWidth(),setInterval(this.test,600),e(this.test),t.ready("WINDOWLOAD",this.test),e(n).bind("resize",this.handler),function(){var t=e.fn.animate,n;e.fn.animate=function(){return clearTimeout(n),n=setTimeout(function(){u.test()},99),t.apply(this,arguments)}}())}};return e.event.customEvent.updateshadowdom=!0,t.docObserve=function(){t.ready("DOM",function(){u.start()})},function(n,r,i){i=i||{},n.jquery&&(n=n[0]),r.jquery&&(r=r[0]);var s=e.data(n,d)||e.data(n,d,{}),o=e.data(r,d)||e.data(r,d,{}),u={};i.shadowFocusElement?i.shadowFocusElement&&(i.shadowFocusElement.jquery&&(i.shadowFocusElement=i.shadowFocusElement[0]),u=e.data(i.shadowFocusElement,d)||e.data(i.shadowFocusElement,d,u)):i.shadowFocusElement=r,s.hasShadow=r,u.nativeElement=o.nativeElement=n,u.shadowData=o.shadowData=s.shadowData={nativeElement:n,shadowElement:r,shadowFocusElement:i.shadowFocusElement},i.shadowChilds&&i.shadowChilds.each(function(){v(this,"shadowData",o.shadowData)}),i.data&&(u.shadowData.data=o.shadowData.data=s.shadowData.data=i.data),i=null,t.docObserve()}}(),propTypes:{standard:function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){e.attr.set.call(this,""+t)},get:function(){return e.attr.get.call(this)||e.defaultValue}}},"boolean":function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){t?e.attr.set.call(this,""):e.removeAttr.value.call(this)},get:function(){return e.attr.get.call(this)!=null}}},src:function(){var t=r.createElement("a");return t.style.display="none",function(n,r){b(n);if(n.prop)return;n.prop={set:function(e){n.attr.set.call(this,e)},get:function(){var n=this.getAttribute(r),i;if(n==null)return"";t.setAttribute("href",n+"");if(!e.support.hrefNormalized){try{e(t).insertAfter(this),i=t.getAttribute("href",4)}catch(s){i=t.getAttribute("href",4)}e(t).detach()}return i||t.href}}}}(),enumarated:function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){e.attr.set.call(this,t)},get:function(){var t=(e.attr.get.call(this)||"").toLowerCase();if(!t||e.limitedTo.indexOf(t)==-1)t=e.defaultValue;return t}}}},reflectProperties:function(n,r){typeof r=="string"&&(r=r.split(o)),r.forEach(function(r){t.defineNodeNamesProperty(n,r,{prop:{set:function(t){e.attr(this,r,t)},get:function(){return e.attr(this,r)||""}}})})},defineNodeNameProperty:function(n,r,i){return a[r]=!0,i.reflect&&t.propTypes[i.propType||"standard"](i,r),["prop","attr","removeAttr"].forEach(function(s){var o=i[s];o&&(s==="prop"?o=e.extend({writeable:!0},o):o=e.extend({},o,{writeable:!0}),l[s](n,r,o),n!="*"&&t.cfg.extendNative&&s=="prop"&&o.value&&e.isFunction(o.value)&&g(n,r,o),i[s]=o)}),i.initAttr&&y.content(n,r),i},defineNodeNameProperties:function(e,n,r,i){var s;for(var o in n)!i&&n[o].initAttr&&y.createTmpCache(e),r&&(n[o][r]||(n[o][r]={},["value","set","get"].forEach(function(e){e in n[o]&&(n[o][r][e]=n[o][e],delete n[o][e])}))),n[o]=t.defineNodeNameProperty(e,o,n[o]);return i||y.flushTmpCache(),n},createElement:function(n,r,i){var s;return e.isFunction(r)&&(r={after:r}),y.createTmpCache(n),r.before&&y.createElement(n,r.before),i&&(s=t.defineNodeNameProperties(n,i,!1,!0)),r.after&&y.createElement(n,r.after),y.flushTmpCache(),s},onNodeNamesPropertyModify:function(t,n,r,i){typeof t=="string"&&(t=t.split(o)),e.isFunction(r)&&(r={set:r}),t.forEach(function(e){c[e]||(c[e]={}),typeof n=="string"&&(n=n.split(o)),r.initAttr&&y.createTmpCache(e),n.forEach(function(t){c[e][t]||(c[e][t]=[],a[t]=!0),r.set&&(i&&(r.set.only=i),c[e][t].push(r.set)),r.initAttr&&y.content(e,t)}),y.flushTmpCache()})},defineNodeNamesBooleanProperty:function(n,r,s){s||(s={}),e.isFunction(s)&&(s.set=s),t.defineNodeNamesProperty(n,r,{attr:{set:function(e){this.setAttribute(r,e),s.set&&s.set.call(this,!0)},get:function(){var e=this.getAttribute(r);return e==null?i:r}},removeAttr:{value:function(){this.removeAttribute(r),s.set&&s.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:s.initAttr||!1})},contentAttr:function(e,t,n){if(!e.nodeName)return;var r;if(n===i)return r=e.attributes[t]||{},n=r.specified?r.value:null,n==null?i:n;typeof n=="boolean"?n?e.setAttribute(t,t):e.removeAttribute(t):e.setAttribute(t,n)},activeLang:function(){var n=[],r={},i,o,u=/:\/\/|^\.*\//,a=function(n,r,i){var s;return r&&i&&e.inArray(r,i.availabeLangs||[])!==-1?(n.loading=!0,s=i.langSrc,u.test(s)||(s=t.cfg.basePath+s),t.loader.loadScript(s+r+".js",function(){n.langObj[r]?(n.loading=!1,l(n,!0)):e(function(){n.langObj[r]&&l(n,!0),n.loading=!1})}),!0):!1},f=function(e){r[e]&&r[e].forEach(function(e){e.callback()})},l=function(e,t){if(e.activeLang!=i&&e.activeLang!==o){var n=s[e.module].options;e.langObj[i]||o&&e.langObj[o]?(e.activeLang=i,e.callback(e.langObj[i]||e.langObj[o],i),f(e.module)):!t&&!a(e,i,n)&&!a(e,o,n)&&e.langObj[""]&&e.activeLang!==""&&(e.activeLang="",e.callback(e.langObj[""],i),f(e.module))}},c=function(t){return typeof t=="string"&&t!==i?(i=t,o=i.split("-")[0],i==o&&(o=!1),e.each(n,function(e,t){l(t)})):typeof t=="object"&&(t.register?(r[t.register]||(r[t.register]=[]),r[t.register].push(t),t.callback()):(t.activeLang||(t.activeLang=""),n.push(t),l(t))),i};return c}()}),e.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(e,n){t[e]=function(e,r,i,s){typeof e=="string"&&(e=e.split(o));var u={};return e.forEach(function(e){u[e]=t[n](e,r,i,s)}),u}}),t.isReady("webshimLocalization",!0)}),function(e,t){var n=e.webshims.browserVersion;if(e.browser.mozilla&&n>5)return;if(!e.browser.msie||n<12&&n>7){var r={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},i=function(e,t){var n=e.getAttribute("role");n||e.setAttribute("role",t)};e.webshims.addReady(function(n,s){e.each(r,function(t,r){var o=e(t,n).add(s.filter(t));for(var u=0,a=o.length;u<a;u++)i(o[u],r)});if(n===t){var o=t.getElementsByTagName("header")[0],u=t.getElementsByTagName("footer"),a=u.length;o&&!e(o).closest("section, article")[0]&&i(o,"banner");if(!a)return;var f=u[a-1];e(f).closest("section, article")[0]||i(f,"contentinfo")}})}}(jQuery,document),jQuery.webshims.register("details",function(e,t,n,r,i,s){var o=function(t){var n=e(t).parent("details");if(n[0]&&n.children(":first").get(0)===t)return n},u=function(t,n){t=e(t),n=e(n);var r=e.data(n[0],"summaryElement");e.data(t[0],"detailsElement",n);if(!r||t[0]!==r[0])r&&(r.hasClass("fallback-summary")?r.remove():r.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),e.data(n[0],"summaryElement",t),n.prop("open",n.prop("open"))},a=function(t){var n=e.data(t,"summaryElement");return n||(n=e("> summary:first-child",t),n[0]?u(n,t):(e(t).prependPolyfill('<summary class="fallback-summary">'+s.text+"</summary>"),n=e.data(t,"summaryElement"))),n};t.createElement("summary",function(){var n=o(this);if(!n||e.data(this,"detailsElement"))return;var r,i,s=e.attr(this,"tabIndex")||"0";u(this,n),e(this).on({"focus.summaryPolyfill":function(){e(this).addClass("summary-has-focus")},"blur.summaryPolyfill":function(){e(this).removeClass("summary-has-focus")},"mouseenter.summaryPolyfill":function(){e(this).addClass("summary-has-hover")},"mouseleave.summaryPolyfill":function(){e(this).removeClass("summary-has-hover")},"click.summaryPolyfill":function(t){var n=o(this);if(n){if(!i&&t.originalEvent)return i=!0,t.stopImmediatePropagation(),t.preventDefault(),e(this).trigger("click"),i=!1,!1;clearTimeout(r),r=setTimeout(function(){t.isDefaultPrevented()||n.prop("open",!n.prop("open"))},0)}},"keydown.summaryPolyfill":function(t){(t.keyCode==13||t.keyCode==32)&&!t.isDefaultPrevented()&&(i=!0,t.preventDefault(),e(this).trigger("click"),i=!1)}}).attr({tabindex:s,role:"button"}).prepend('<span class="details-open-indicator" />'),t.moveToFirstEvent(this,"click")});var f;t.defineNodeNamesBooleanProperty("details","open",function(t){var n=e(e.data(this,"summaryElement"));if(!n)return;var r=t?"removeClass":"addClass",i=e(this);if(!f&&s.animate){i.stop().css({width:"",height:""});var o={width:i.width(),height:i.height()}}n.attr("aria-expanded",""+t),i[r]("closed-details-summary").children().not(n[0])[r]("closed-details-child");if(!f&&s.animate){var u={width:i.width(),height:i.height()};i.css(o).animate(u,{complete:function(){e(this).css({width:"",height:""})}})}}),t.createElement("details",function(){f=!0;var t=a(this);e.prop(this,"open",e.prop(this,"open")),f=!1})}),function(e,t,n){"use strict";var r=t.audio&&t.video,i=!1,s=n.bugs,o=function(){n.ready(a,function(){n.mediaelement.createSWF||(n.mediaelement.loadSwf=!0,n.reTest([a],r))})},u=n.cfg.mediaelement,a=u&&u.player=="jwplayer"?"mediaelement-swf":"mediaelement-jaris",f;if(!u){n.error("mediaelement wasn't implemented but loaded");return}if(r){var l=document.createElement("video");t.videoBuffered="buffered"in l,i="loop"in l,n.capturingEvents(["play","playing","waiting","paused","ended","durationchange","loadedmetadata","canplay","volumechange"]),t.videoBuffered||(n.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:t.videoBuffered,d:["dom-support"]}),n.reTest("mediaelement-native-fix"))}if(r&&!u.preferFlash){var c=function(t){var r=t.target.parentNode;!u.preferFlash&&(e(t.target).is("audio, video")||r&&e("source:last",r)[0]==t.target)&&n.ready("DOM mediaelement",function(){f&&o(),n.ready("WINDOWLOAD "+a,function(){setTimeout(function(){f&&!u.preferFlash&&n.mediaelement.createSWF&&!e(t.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",c,!0),e("audio, video").mediaLoad(),n.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+t.target.src)):f||document.removeEventListener("error",c,!0)},20)})})};document.addEventListener("error",c,!0),e("audio, video").each(function(){this.error&&c({target:this})})}t.track&&!s.track&&function(){s.track||(s.track=typeof e("<track />")[0].readyState!="number");if(!s.track)try{new TextTrackCue(2,3,"")}catch(t){s.track=!0}var r=n.cfg.track,i=function(t){e(t.target).filter("track").each(o)},o=function(){if(s.track||!r.override&&e.prop(this,"readyState")==3)r.override=!0,n.reTest("track"),document.removeEventListener("error",i,!0),this&&e.nodeName(this,"track")?n.error("track support was overwritten. Please check your vtt including your vtt mime-type"):n.info("track support was overwritten. due to bad browser support")},u=function(){document.addEventListener("error",i,!0),s.track?o():e("track").each(o)};r.override||(n.isReady("track")?u():e(u))}(),n.register("mediaelement-core",function(e,n,l,c,h){f=swfobject.hasFlashPlayerVersion("9.0.115"),e("html").addClass(f?"swf":"no-swf");var p=n.mediaelement;p.parseRtmp=function(e){var t=e.src.split("://"),r=t[1].split("/"),i,s,o;e.server=t[0]+"://"+r[0]+"/",e.streamId=[];for(i=1,s=r.length;i<s;i++)!o&&r[i].indexOf(":")!==-1&&(r[i]=r[i].split(":")[1],o=!0),o?e.streamId.push(r[i]):e.server+=r[i]+"/";e.streamId.length||n.error("Could not parse rtmp url"),e.streamId=e.streamId.join("/"),console.log(e)};var d=function(t,n){t=e(t);var r={src:t.attr("src")||"",elem:t,srcProp:t.prop("src")},i;if(!r.src)return r;i=t.attr("data-server"),i!=null&&(r.server=i),i=t.attr("type"),i?(r.type=i,r.container=e.trim(i.split(";")[0])):(n||(n=t[0].nodeName.toLowerCase(),n=="source"&&(n=(t.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),r.server?(r.type=n+"/rtmp",r.container=n+"/rtmp"):(i=p.getTypeForSrc(r.src,n,r),i&&(r.type=i,r.container=i))),i=t.attr("media"),i&&(r.media=i);if(r.type=="audio/rtmp"||r.type=="video/rtmp")r.server?r.streamId=r.src:p.parseRtmp(r);return r},v=!f&&"postMessage"in l&&r,m=function(){if(m.loaded)return;m.loaded=!0,e(function(){n.loader.loadList(["track-ui"])})},g=function(){var t;return function(){if(t||!v)return;t=!0,n.loader.loadScript("https://www.youtube.com/player_api"),e(function(){n.polyfill("mediaelement-yt")})}}(),y=function(){f?o():g()};n.addPolyfill("mediaelement-yt",{test:!v,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"],"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=e.extend({},p.mimeTypes.audio,p.mimeTypes.video),p.getTypeForSrc=function(t,n,r){if(t.indexOf("youtube.com/watch?")!=-1||t.indexOf("youtube.com/v/")!=-1)return"video/youtube";if(t.indexOf("rtmp")===0)return n+"/rtmp";t=t.split("?")[0].split("."),t=t[t.length-1];var i;return e.each(p.mimeTypes[n],function(e,n){if(n.indexOf(t)!==-1)return i=e,!1}),i},p.srces=function(t,n){t=e(t);if(!n){n=[];var r=t[0].nodeName.toLowerCase(),i=d(t,r);return i.src?n.push(i):e("source",t).each(function(){i=d(this,r),i.src&&n.push(i)}),n}t.removeAttr("src").removeAttr("type").find("source").remove(),e.isArray(n)||(n=[n]),n.forEach(function(e){var n=c.createElement("source");typeof e=="string"&&(e={src:e}),n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.media&&n.setAttribute("media",e.media),t.append(n)})},e.fn.loadMediaSrc=function(t,n){return this.each(function(){n!==h&&(e(this).removeAttr("poster"),n&&e.attr(this,"poster",n)),p.srces(this,t),e(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","video/rtmp","audio/rtmp"],p.canThirdPlaySrces=function(t,n){var r="";if(f||v)t=e(t),n=n||p.srces(t),e.each(n,function(e,t){if(t.container&&t.src&&(f&&p.swfMimeTypes.indexOf(t.container)!=-1||v&&t.container=="video/youtube"))return r=t,!1});return r};var b={};p.canNativePlaySrces=function(t,n){var i="";if(r){t=e(t);var s=(t[0].nodeName||"").toLowerCase();if(!b[s])return i;n=n||p.srces(t),e.each(n,function(e,n){if(n.type&&b[s].prop._supvalue.call(t[0],n.type))return i=n,!1})}return i},p.setError=function(t,r){r||(r="can't play sources"),e(t).pause().data("mediaerror",r),n.warn("mediaelementError: "+r),setTimeout(function(){e(t).data("mediaerror")&&e(t).trigger("mediaerror")},1)};var w=function(){var e;return function(t,r,i){e||m(),n.ready(f?a:"mediaelement-yt",function(){p.createSWF?p.createSWF(t,r,i):e||(e=!0,y(),w(t,r,i))}),!e&&v&&!p.createSWF&&g()}}(),E=function(e,t,n,r,i){var s;n||n!==!1&&t&&t.isActive=="third"?(s=p.canThirdPlaySrces(e,r),s?w(e,s,t):i?p.setError(e,!1):E(e,t,!1,r,!0)):(s=p.canNativePlaySrces(e,r),s?t&&t.isActive=="third"&&p.setActive(e,"html5",t):i?(p.setError(e,!1),t&&t.isActive=="third"&&p.setActive(e,"html5",t)):E(e,t,!0,r,!0))},S=/^(?:embed|object|datalist)$/i,x=function(t,r){var i=n.data(t,"mediaelementBase")||n.data(t,"mediaelementBase",{}),s=p.srces(t),o=t.parentNode;clearTimeout(i.loadTimer),e.data(t,"mediaerror",!1);if(!s.length||!o||o.nodeType!=1||S.test(o.nodeName||""))return;r=r||n.data(t,"mediaelement"),E(t,r,u.preferFlash||h,s)};e(c).on("ended",function(t){var r=n.data(t.target,"mediaelement");if(i&&(!r||r.isActive=="html5")&&!e.prop(t.target,"loop"))return;setTimeout(function(){if(e.prop(t.target,"paused")||!e.prop(t.target,"loop"))return;e(t.target).prop("currentTime",0).play()},1)}),i||n.defineNodeNamesBooleanProperty(["audio","video"],"loop"),["audio","video"].forEach(function(t){var i=n.defineNodeNameProperty(t,"load",{prop:{value:function(){var e=n.data(this,"mediaelement");x(this,e),r&&(!e||e.isActive=="html5")&&i.prop._supvalue&&i.prop._supvalue.apply(this,arguments)}}});b[t]=n.defineNodeNameProperty(t,"canPlayType",{prop:{value:function(n){var i="";return r&&b[t].prop._supvalue&&(i=b[t].prop._supvalue.call(this,n),i=="no"&&(i="")),!i&&f&&(n=e.trim((n||"").split(";")[0]),p.swfMimeTypes.indexOf(n)!=-1&&(i="maybe")),i}}})}),n.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var e=this,t=n.data(e,"mediaelementBase")||n.data(e,"mediaelementBase",{});clearTimeout(t.loadTimer),t.loadTimer=setTimeout(function(){x(e),e=null},9)}});var T=function(){n.addReady(function(t,i){var s=e("video, audio",t).add(i.filter("video, audio")).each(function(){e.browser.msie&&n.browserVersion>8&&e.prop(this,"paused")&&!e.prop(this,"readyState")&&e(this).is('audio[preload="none"][controls]:not([autoplay])')?e(this).prop("preload","metadata").mediaLoad():x(this);if(r){var t,i,s=this,o=function(){var t=e.prop(s,"buffered");if(!t)return;var n="";for(var r=0,i=t.length;r<i;r++)n+=t.end(r);return n},u=function(){var t=o();t!=i&&(i=t,e(s).triggerHandler("progress"))};e(this).on({"play loadstart progress":function(e){e.type=="progress"&&(i=o()),clearTimeout(t),t=setTimeout(u,999)},"emptied stalled mediaerror abort suspend":function(e){e.type=="emptied"&&(i=!1),clearTimeout(t)}})}});!m.loaded&&e("track",s).length&&m(),s=null})};t.track&&!s.track&&n.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}}),r?(n.isReady("mediaelement-core",!0),T(),n.ready("WINDOWLOAD mediaelement",y)):n.ready(a,T),n.ready("WINDOWLOAD mediaelement",m)})}(jQuery,Modernizr,jQuery.webshims);
\ No newline at end of file