vendor/assets/javascripts/webshims/minified/shims/combos/12.js in webshims-rails-0.2 vs vendor/assets/javascripts/webshims/minified/shims/combos/12.js in webshims-rails-0.3

- old
+ new

@@ -1,38 +1,38 @@ -(function(c){if(!Modernizr.genericDOM){var g=document,j,i,l=/<([\w:]+)/,o={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};c.webshims.fixHTML5=function(c){if("string"!=typeof c||o[(l.exec(c)||["",""])[1].toLowerCase()])return c;if(!i){j=g.body;if(!j)return c;i=g.createElement("div");i.style.display="none"}var m=i.cloneNode(!1);j.appendChild(m);m.innerHTML=c;j.removeChild(m);return m.childNodes}}})(jQuery); -jQuery.webshims.register("dom-extend",function(c,g,j,i,l){var o=g.modules,h=/\s*,\s*/,m={},u={},n={},f={},s={},t=c.fn.val,w=function(a,b,d,e,k){return k?t.call(c(a)):t.call(c(a),d)};c.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?t.call(this):c.prop(b,"value",a,"val",!0);if(c.isArray(a))return t.apply(this,arguments);var d=c.isFunction(a);return this.each(function(e){b=this;1===b.nodeType&&(d?(e=a.call(b,e,c.prop(b,"value",l,"val", -!0)),null==e&&(e=""),c.prop(b,"value",e,"val")):c.prop(b,"value",a,"val"))})};var p="_webshimsLib"+Math.round(1E3*Math.random()),r=function(a,b,d){a=a.jquery?a[0]:a;if(!a)return d||{};var e=c.data(a,p);d!==l&&(e||(e=c.data(a,p,{})),b&&(e[b]=d));return b?e&&e[b]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var b=r(this, -"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){m[a]=c[a];c[a]=function(b,d,e,k,A){var f="val"==k,o=!f?m[a]:w;if(!b||!u[d]||1!==b.nodeType||!f&&k&&"attr"==a&&c.attrFn[d])return o(b,d,e,k,A);var y=(b.nodeName||"").toLowerCase(),g=n[y],h="attr"==a&&(!1===e||null===e)?"removeAttr":a,i,t,p;g||(g=n["*"]);g&&(g=g[d]);g&&(i=g[h]);if(i){if("value"==d)t=i.isVal,i.isVal=f;if("removeAttr"===h)return i.value.call(b);if(e===l)return i.get?i.get.call(b):i.value;i.set&& -("attr"==a&&!0===e&&(e=d),p=i.set.call(b,e));if("value"==d)i.isVal=t}else p=o(b,d,e,k,A);if((e!==l||"removeAttr"===h)&&s[y]&&s[y][d]){var j;j="removeAttr"==h?!1:"prop"==h?!!e:!0;s[y][d].forEach(function(d){if(!d.only||(d.only="prop"==a)||"attr"==d.only&&"prop"!=a)d.call(b,e,j,f?"val":h,a)})}return p};f[a]=function(b,d,e){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var k=n[b][d][a],f=function(b,c,k){return c&&c[b]?c[b]:k&&k[b]?k[b]:"prop"==a&&"value"==d?function(b){return e.isVal?w(this,d,b,!1,0===arguments.length): -m[a](this,d,b)}:"prop"==a&&"value"==b&&e.value.apply?function(b){var e=m[a](this,d);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(b){return m[a](this,d,b)}};n[b][d][a]=e;if(e.value===l){if(!e.set)e.set=e.writeable?f("set",e,k):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:c.noop;if(!e.get)e.get=f("get",e,k)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=f(b,k))})}});var z=!c.browser.msie||8<parseInt(c.browser.version,10),x=function(){var a=g.getPrototypeOf(i.createElement("foobar")), -b=Object.prototype.hasOwnProperty;return function(d,e,c){var f=i.createElement(d),o=g.getPrototypeOf(f);if(z&&o&&a!==o&&(!f[e]||!b.call(f,e))){var h=f[e];c._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};o[e]=c.value}else c._supvalue=function(){var b=r(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},q.extendValue(d,e,c.value);c.value._supvalue=c._supvalue}}(),q=function(){var a={};g.addReady(function(b,d){var e={},f=function(a){e[a]||(e[a]=c(b.getElementsByTagName(a)), -d[0]&&c.nodeName(d[0],a)&&(e[a]=e[a].add(d)))};c.each(a,function(b,a){f(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){e[b].each(a)})});e=null});var b,d=c([]),e=function(d,e){a[d]?a[d].push(e):a[d]=[e];c.isDOMReady&&(b||c(i.getElementsByTagName(d))).each(e)};return{createTmpCache:function(a){c.isDOMReady&&(b=b||c(i.getElementsByTagName(a)));return b||d},flushTmpCache:function(){b=null},content:function(b,a){e(b,function(){var b=c.attr(this,a);null!=b&&c.attr(this, -a,b)})},createElement:function(b,a){e(b,a)},extendValue:function(b,a,d){e(b,function(){c(this).each(function(){r(this,"propValue",{})[a]=this[a];this[a]=d})})}}}(),v=function(a,b){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};c.extend(g,{getID:function(){var a=(new Date).getTime();return function(b){var b=c(b),d=b.attr("id");d||(a++,d="ID-"+a,b.attr("id",d));return d}}(),extendUNDEFProp:function(a, -b){c.each(b,function(b,e){b in a||(a[b]=e)})},createPropDefault:v,data:r,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(b,d,e){if((b=(c[a](b,"events")||{})[d])&&1<b.length)d=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!d.shadowFocusElement)d.shadowFocusElement=b;var e=c.data(a,p)||c.data(a,p,{}),k=c.data(b,p)||c.data(b,p,{});e.hasShadow=b;k.nativeElement= -a;k.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){r(this,"shadowData",k.shadowData)});if(d.data)e.shadowData.data=d.data,k.shadowData.data=d.data;d=null},propTypes:{standard:function(a){v(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){v(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this, -""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(h));b.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){c.attr(this,b,a)},get:function(){return c.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,d){u[b]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(e){var k=d[e];k&&(k="prop"===e?c.extend({writeable:!0},k):c.extend({}, -k,{writeable:!0}),f[e](a,b,k),"*"!=a&&g.cfg.extendNative&&"prop"==e&&k.value&&c.isFunction(k.value)&&x(a,b,k),d[e]=k)});d.initAttr&&q.content(a,b);return d},defineNodeNameProperties:function(a,b,d,e){for(var c in b)!e&&b[c].initAttr&&q.createTmpCache(a),d&&(b[c][d]?g.log("override: "+a+"["+c+"] for "+d):(b[c][d]={},["value","set","get"].forEach(function(a){a in b[c]&&(b[c][d][a]=b[c][a],delete b[c][a])}))),b[c]=g.defineNodeNameProperty(a,c,b[c]);e||q.flushTmpCache();return b},createElement:function(a, -b,d){var e;c.isFunction(b)&&(b={after:b});q.createTmpCache(a);b.before&&q.createElement(a,b.before);d&&(e=g.defineNodeNameProperties(a,d,!1,!0));b.after&&q.createElement(a,b.after);q.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,b,d,e){"string"==typeof a&&(a=a.split(h));c.isFunction(d)&&(d={set:d});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(h));d.initAttr&&q.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],u[b]=!0);if(d.set){if(e)d.set.only=e; -s[a][b].push(d.set)}d.initAttr&&q.content(a,b)});q.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,d){d||(d={});if(c.isFunction(d))d.set=d;g.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?l:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d=== -l)return d=(a.attributes[b]||{}).value,null==d?l:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],b={},d,e,f=/:\/\/|^\.*\//,h=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,i(a,!0)):c(function(){a.langObj[b]&&i(a,!0);a.loading=!1})}),!0):!1},n=function(a){b[a]&&b[a].forEach(function(a){a.callback()})}, -i=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=o[a.module].options;if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),n(a.module);else if(!b&&!h(a,d,c)&&!h(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),n(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),c.each(a,function(a,b){i(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f), -f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);i(f)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,e,c,f){"string"==typeof a&&(a=a.split(h));var o={};a.forEach(function(a){o[a]=g[b](a,e,c,f)});return o}});g.isReady("webshimLocalization",!0)}); -(function(c,g){var j=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<j)&&(!c.browser.msie||12>j&&7<j)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(o,h){c.each(i,function(f,g){for(var n=c(f,o).add(h.filter(f)),i=0,m=n.length;i<m;i++)l(n[i],g)});if(o===g){var m=g.getElementsByTagName("header")[0],j=g.getElementsByTagName("footer"),n=j.length; -m&&!c(m).closest("section, article")[0]&&l(m,"banner");n&&(m=j[n-1],c(m).closest("section, article")[0]||l(m,"contentinfo"))}})}})(jQuery,document); -(function(c,g,j){var i=g.audio&&g.video,l=!1;if(i)c=document.createElement("video"),g.videoBuffered="buffered"in c,l="loop"in c,j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),g.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,h,g,j,n){var f=h.mediaelement,s=h.cfg.mediaelement, -t=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=f.getTypeForSrc(d.src,b))d.type=e,d.container=e,h.warn("you should always provide a proper mime-type using the source element. "+d.src+" detected as: "+e),c.nodeName(a[0],"source")&&a.attr("type", -e);if(e=a.attr("media"))d.media=e;return d},w=swfobject.hasFlashPlayerVersion("9.0.115"),p=function(){h.ready("mediaelement-swf",function(){if(!f.createSWF)h.modules["mediaelement-swf"].test=c.noop,h.reTest(["mediaelement-swf"],i)})};f.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"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"]}};f.mimeTypes.source=c.extend({},f.mimeTypes.audio,f.mimeTypes.video);f.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(f.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};f.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 d=j.createElement("source");"string"==typeof b&&(b={src:b});d.setAttribute("src",b.src);b.type&&d.setAttribute("type",b.type);b.media&&d.setAttribute("media",b.media);a.append(d)});else{var b=[],d=a[0].nodeName.toLowerCase(), -e=t(a,d);e.src?b.push(e):c("source",a).each(function(){e=t(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==n&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));f.srces(this,a);c(this).mediaLoad()})};f.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(","); -f.canSwfPlaySrces=function(a,b){var d="";w&&(a=c(a),b=b||f.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=f.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var r={};f.canNativePlaySrces=function(a,b){var d="";if(i){var a=c(a),e=(a[0].nodeName||"").toLowerCase();if(!r[e])return d;b=b||f.srces(a);c.each(b,function(b,c){if(c.type&&r[e].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};f.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror", -b);h.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var z=function(){var a;return function(b,d,c){h.ready("mediaelement-swf",function(){f.createSWF?f.createSWF(b,d,c):a||(a=!0,p(),z(b,d,c))})}}(),x=function(a,b,d,c,g){d||!1!==d&&b&&"flash"==b.isActive?(d=f.canSwfPlaySrces(a,c))?z(a,d,b):g?f.setError(a,!1):x(a,b,!1,c,!0):(d=f.canNativePlaySrces(a,c))?b&&"flash"==b.isActive&&f.setActive(a,"html5",b):g?(f.setError(a,!1),b&&"flash"==b.isActive&& -f.setActive(a,"html5",b)):x(a,b,!0,c,!0)},q=/^(?:embed|object|datalist)$/i,v=function(a,b){var d=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),e=f.srces(a),g=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(e.length&&g&&!(1!=g.nodeType||q.test(g.nodeName||"")))b=b||h.data(a,"mediaelement"),x(a,b,s.preferFlash||n,e)};c(j).bind("ended",function(a){var b=h.data(a.target,"mediaelement");(!l||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)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=h.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");v(this,a);i&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=h.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var e="";i&&r[a].prop._supvalue&&(e=r[a].prop._supvalue.call(this, -b),"no"==e&&(e=""));!e&&w&&(b=c.trim((b||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});g=function(){h.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<h.browserVersion&&c.prop(this, -"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():v(this);if(i){var a,b,f=this,g=function(){var a=c.prop(f,"buffered");if(a){for(var b="",d=0,e=a.length;d<e;d++)b+=a.end(d);return b}},n=function(){var a=g();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=g());clearTimeout(a);a=setTimeout(n,999)}).bind("emptied stalled mediaerror abort suspend", -function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};i?(h.isReady("mediaelement-core",!0),g(),w&&h.ready("WINDOWLOAD mediaelement",p)):h.ready("mediaelement-swf",g)})})(jQuery,Modernizr,jQuery.webshims); -jQuery.webshims.register("details",function(c,g,j,i,l,o){var h=function(g){var f=c(g).parent("details");if(f[0]&&f.children(":first").get(0)===g)return f},m=function(g,f){var g=c(g),f=c(f),h=c.data(f[0],"summaryElement");c.data(g[0],"detailsElement",f);if(!h||g[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(f[0],"summaryElement",g),f.prop("open",f.prop("open"))};g.createElement("summary",function(){var i=h(this);if(i&&!c.data(this,"detailsElement")){var f,j,l=c.attr(this,"tabIndex")||"0";m(this,i);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill", -function(g){var i=h(this);if(i){if(!j&&g.originalEvent)return j=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),j=!1;clearTimeout(f);f=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(f){if((13==f.keyCode||32==f.keyCode)&&!f.isDefaultPrevented())j=!0,f.preventDefault(),c(this).trigger("click"),j=!1}).attr({tabindex:l,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this, -"click")}});var u;g.defineNodeNamesBooleanProperty("details","open",function(g){var f=c(c.data(this,"summaryElement"));if(f){var h=g?"removeClass":"addClass",i=c(this);if(!u&&o.animate){i.stop().css({width:"",height:""});var j={width:i.width(),height:i.height()}}f.attr("aria-expanded",""+g);i[h]("closed-details-summary").children().not(f[0])[h]("closed-details-child");!u&&o.animate&&(g={width:i.width(),height:i.height()},i.css(j).animate(g,{complete:function(){c(this).css({width:"",height:""})}}))}}); -g.createElement("details",function(){u=!0;var g=c.data(this,"summaryElement");g||(g=c("> summary:first-child",this),g[0]?m(g,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+o.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));u=!1})}); +(function(c){if(!Modernizr.genericDOM){var g=document,j,i,l=/<([\w:]+)/,o={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};c.webshims.fixHTML5=function(c){if("string"!=typeof c||o[(l.exec(c)||["",""])[1].toLowerCase()])return c;if(!i){j=g.body;if(!j)return c;i=g.createElement("div");i.style.display="none"}var m=i.cloneNode(!1);j.appendChild(m);m.innerHTML=c;j.removeChild(m);return m.childNodes}}})(jQuery); +jQuery.webshims.register("dom-extend",function(c,g,j,i,l){var o=g.modules,h=/\s*,\s*/,m={},u={},n={},f={},s={},t=c.fn.val,w=function(a,b,d,e,k){return k?t.call(c(a)):t.call(c(a),d)};c.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?t.call(this):c.prop(b,"value",a,"val",!0);if(c.isArray(a))return t.apply(this,arguments);var d=c.isFunction(a);return this.each(function(e){b=this;1===b.nodeType&&(d?(e=a.call(b,e,c.prop(b,"value",l,"val", +!0)),null==e&&(e=""),c.prop(b,"value",e,"val")):c.prop(b,"value",a,"val"))})};var p="_webshimsLib"+Math.round(1E3*Math.random()),r=function(a,b,d){a=a.jquery?a[0]:a;if(!a)return d||{};var e=c.data(a,p);d!==l&&(e||(e=c.data(a,p,{})),b&&(e[b]=d));return b?e&&e[b]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var b=r(this, +"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){m[a]=c[a];c[a]=function(b,d,e,k,A){var f="val"==k,o=!f?m[a]:w;if(!b||!u[d]||1!==b.nodeType||!f&&k&&"attr"==a&&c.attrFn[d])return o(b,d,e,k,A);var y=(b.nodeName||"").toLowerCase(),g=n[y],h="attr"==a&&(!1===e||null===e)?"removeAttr":a,i,t,p;g||(g=n["*"]);g&&(g=g[d]);g&&(i=g[h]);if(i){if("value"==d)t=i.isVal,i.isVal=f;if("removeAttr"===h)return i.value.call(b);if(e===l)return i.get?i.get.call(b):i.value;i.set&& +("attr"==a&&!0===e&&(e=d),p=i.set.call(b,e));if("value"==d)i.isVal=t}else p=o(b,d,e,k,A);if((e!==l||"removeAttr"===h)&&s[y]&&s[y][d]){var j;j="removeAttr"==h?!1:"prop"==h?!!e:!0;s[y][d].forEach(function(d){if(!d.only||(d.only="prop"==a)||"attr"==d.only&&"prop"!=a)d.call(b,e,j,f?"val":h,a)})}return p};f[a]=function(b,d,e){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var k=n[b][d][a],f=function(b,c,k){return c&&c[b]?c[b]:k&&k[b]?k[b]:"prop"==a&&"value"==d?function(b){return e.isVal?w(this,d,b,!1,0===arguments.length): +m[a](this,d,b)}:"prop"==a&&"value"==b&&e.value.apply?function(b){var e=m[a](this,d);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(b){return m[a](this,d,b)}};n[b][d][a]=e;if(e.value===l){if(!e.set)e.set=e.writeable?f("set",e,k):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:c.noop;if(!e.get)e.get=f("get",e,k)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=f(b,k))})}});var z=!c.browser.msie||8<parseInt(c.browser.version,10),x=function(){var a=g.getPrototypeOf(i.createElement("foobar")), +b=Object.prototype.hasOwnProperty;return function(d,e,c){var f=i.createElement(d),o=g.getPrototypeOf(f);if(z&&o&&a!==o&&(!f[e]||!b.call(f,e))){var h=f[e];c._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};o[e]=c.value}else c._supvalue=function(){var b=r(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},q.extendValue(d,e,c.value);c.value._supvalue=c._supvalue}}(),q=function(){var a={};g.addReady(function(b,d){var e={},f=function(a){e[a]||(e[a]=c(b.getElementsByTagName(a)), +d[0]&&c.nodeName(d[0],a)&&(e[a]=e[a].add(d)))};c.each(a,function(b,a){f(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){e[b].each(a)})});e=null});var b,d=c([]),e=function(d,e){a[d]?a[d].push(e):a[d]=[e];c.isDOMReady&&(b||c(i.getElementsByTagName(d))).each(e)};return{createTmpCache:function(a){c.isDOMReady&&(b=b||c(i.getElementsByTagName(a)));return b||d},flushTmpCache:function(){b=null},content:function(b,a){e(b,function(){var b=c.attr(this,a);null!=b&&c.attr(this, +a,b)})},createElement:function(b,a){e(b,a)},extendValue:function(b,a,d){e(b,function(){c(this).each(function(){r(this,"propValue",{})[a]=this[a];this[a]=d})})}}}(),v=function(a,b){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};c.extend(g,{getID:function(){var a=(new Date).getTime();return function(b){var b=c(b),d=b.attr("id");d||(a++,d="ID-"+a,b.attr("id",d));return d}}(),extendUNDEFProp:function(a, +b){c.each(b,function(b,e){b in a||(a[b]=e)})},createPropDefault:v,data:r,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(b,d,e){if((b=(c[a](b,"events")||{})[d])&&1<b.length)d=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!d.shadowFocusElement)d.shadowFocusElement=b;var e=c.data(a,p)||c.data(a,p,{}),k=c.data(b,p)||c.data(b,p,{});e.hasShadow=b;k.nativeElement= +a;k.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){r(this,"shadowData",k.shadowData)});if(d.data)e.shadowData.data=d.data,k.shadowData.data=d.data;d=null},propTypes:{standard:function(a){v(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){v(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this, +""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(h));b.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){c.attr(this,b,a)},get:function(){return c.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,d){u[b]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(e){var k=d[e];k&&(k="prop"===e?c.extend({writeable:!0},k):c.extend({}, +k,{writeable:!0}),f[e](a,b,k),"*"!=a&&g.cfg.extendNative&&"prop"==e&&k.value&&c.isFunction(k.value)&&x(a,b,k),d[e]=k)});d.initAttr&&q.content(a,b);return d},defineNodeNameProperties:function(a,b,d,e){for(var c in b)!e&&b[c].initAttr&&q.createTmpCache(a),d&&(b[c][d]?g.log("override: "+a+"["+c+"] for "+d):(b[c][d]={},["value","set","get"].forEach(function(a){a in b[c]&&(b[c][d][a]=b[c][a],delete b[c][a])}))),b[c]=g.defineNodeNameProperty(a,c,b[c]);e||q.flushTmpCache();return b},createElement:function(a, +b,d){var e;c.isFunction(b)&&(b={after:b});q.createTmpCache(a);b.before&&q.createElement(a,b.before);d&&(e=g.defineNodeNameProperties(a,d,!1,!0));b.after&&q.createElement(a,b.after);q.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,b,d,e){"string"==typeof a&&(a=a.split(h));c.isFunction(d)&&(d={set:d});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(h));d.initAttr&&q.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],u[b]=!0);if(d.set){if(e)d.set.only=e; +s[a][b].push(d.set)}d.initAttr&&q.content(a,b)});q.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,d){d||(d={});if(c.isFunction(d))d.set=d;g.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?l:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d=== +l)return d=(a.attributes[b]||{}).value,null==d?l:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],b={},d,e,f=/:\/\/|^\.*\//,h=function(b,a,d){return a&&d&&-1!==c.inArray(a,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+a+".js",function(){b.langObj[a]?(b.loading=!1,i(b,!0)):c(function(){b.langObj[a]&&i(b,!0);b.loading=!1})}),!0):!1},n=function(a){b[a]&&b[a].forEach(function(a){a.callback()})}, +i=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=o[a.module].options;if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),n(a.module);else if(!b&&!h(a,d,c)&&!h(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),n(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),c.each(a,function(a,b){i(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f), +f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);i(f)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,e,c,f){"string"==typeof a&&(a=a.split(h));var o={};a.forEach(function(a){o[a]=g[b](a,e,c,f)});return o}});g.isReady("webshimLocalization",!0)}); +(function(c,g){var j=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<j)&&(!c.browser.msie||12>j&&7<j)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(o,h){c.each(i,function(f,g){for(var n=c(f,o).add(h.filter(f)),i=0,m=n.length;i<m;i++)l(n[i],g)});if(o===g){var m=g.getElementsByTagName("header")[0],j=g.getElementsByTagName("footer"),n=j.length; +m&&!c(m).closest("section, article")[0]&&l(m,"banner");n&&(m=j[n-1],c(m).closest("section, article")[0]||l(m,"contentinfo"))}})}})(jQuery,document); +(function(c,g,j){var i=g.audio&&g.video,l=!1;if(i)c=document.createElement("video"),g.videoBuffered="buffered"in c,l="loop"in c,j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),g.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,h,g,j,n){var f=h.mediaelement,s=h.cfg.mediaelement, +t=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=f.getTypeForSrc(d.src,b))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},w=swfobject.hasFlashPlayerVersion("9.0.115"),p=function(){h.ready("mediaelement-swf",function(){if(!f.createSWF)h.modules["mediaelement-swf"].test= +c.noop,h.reTest(["mediaelement-swf"],i)})};f.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"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"]}};f.mimeTypes.source=c.extend({},f.mimeTypes.audio,f.mimeTypes.video);f.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(f.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};f.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 d=j.createElement("source");"string"==typeof b&&(b={src:b});d.setAttribute("src",b.src);b.type&&d.setAttribute("type",b.type);b.media&&d.setAttribute("media",b.media);a.append(d)});else{var b=[],d=a[0].nodeName.toLowerCase(),e=t(a,d);e.src?b.push(e):c("source",a).each(function(){e=t(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==n&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));f.srces(this, +a);c(this).mediaLoad()})};f.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(",");f.canSwfPlaySrces=function(a,b){var d="";w&&(a=c(a),b=b||f.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=f.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var r={};f.canNativePlaySrces=function(a, +b){var d="";if(i){var a=c(a),e=(a[0].nodeName||"").toLowerCase();if(!r[e])return d;b=b||f.srces(a);c.each(b,function(b,c){if(c.type&&r[e].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};f.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",b);h.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var z=function(){var a;return function(b,d,c){h.ready("mediaelement-swf",function(){f.createSWF?f.createSWF(b, +d,c):a||(a=!0,p(),z(b,d,c))})}}(),x=function(a,b,d,c,g){d||!1!==d&&b&&"flash"==b.isActive?(d=f.canSwfPlaySrces(a,c))?z(a,d,b):g?f.setError(a,!1):x(a,b,!1,c,!0):(d=f.canNativePlaySrces(a,c))?b&&"flash"==b.isActive&&f.setActive(a,"html5",b):g?(f.setError(a,!1),b&&"flash"==b.isActive&&f.setActive(a,"html5",b)):x(a,b,!0,c,!0)},q=/^(?:embed|object|datalist)$/i,v=function(a,b){var d=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),e=f.srces(a),g=a.parentNode;clearTimeout(d.loadTimer);c.data(a, +"mediaerror",!1);if(e.length&&g&&!(1!=g.nodeType||q.test(g.nodeName||"")))b=b||h.data(a,"mediaelement"),x(a,b,s.preferFlash||n,e)};c(j).bind("ended",function(a){var b=h.data(a.target,"mediaelement");(!l||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)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=h.defineNodeNameProperty(a, +"load",{prop:{value:function(){var a=h.data(this,"mediaelement");v(this,a);i&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=h.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var e="";i&&r[a].prop._supvalue&&(e=r[a].prop._supvalue.call(this,b),"no"==e&&(e=""));!e&&w&&(b=c.trim((b||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a= +this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});g=function(){h.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<h.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():v(this);if(i){var a,b,f=this,g=function(){var a=c.prop(f, +"buffered");if(a){for(var b="",d=0,e=a.length;d<e;d++)b+=a.end(d);return b}},n=function(){var a=g();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=g());clearTimeout(a);a=setTimeout(n,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};i?(h.isReady("mediaelement-core",!0),g(),w&&h.ready("WINDOWLOAD mediaelement",p)):h.ready("mediaelement-swf",g)})})(jQuery,Modernizr, +jQuery.webshims); +jQuery.webshims.register("details",function(c,g,j,i,l,o){var h=function(g){var f=c(g).parent("details");if(f[0]&&f.children(":first").get(0)===g)return f},m=function(g,f){var g=c(g),f=c(f),h=c.data(f[0],"summaryElement");c.data(g[0],"detailsElement",f);if(!h||g[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(f[0], +"summaryElement",g),f.prop("open",f.prop("open"))};g.createElement("summary",function(){var i=h(this);if(i&&!c.data(this,"detailsElement")){var f,j,l=c.attr(this,"tabIndex")||"0";m(this,i);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill", +function(g){var i=h(this);if(i){if(!j&&g.originalEvent)return j=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),j=!1;clearTimeout(f);f=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(f){if((13==f.keyCode||32==f.keyCode)&&!f.isDefaultPrevented())j=!0,f.preventDefault(),c(this).trigger("click"),j=!1}).attr({tabindex:l,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this, +"click")}});var u;g.defineNodeNamesBooleanProperty("details","open",function(g){var f=c(c.data(this,"summaryElement"));if(f){var h=g?"removeClass":"addClass",i=c(this);if(!u&&o.animate){i.stop().css({width:"",height:""});var j={width:i.width(),height:i.height()}}f.attr("aria-expanded",""+g);i[h]("closed-details-summary").children().not(f[0])[h]("closed-details-child");!u&&o.animate&&(g={width:i.width(),height:i.height()},i.css(j).animate(g,{complete:function(){c(this).css({width:"",height:""})}}))}}); +g.createElement("details",function(){u=!0;var g=c.data(this,"summaryElement");g||(g=c("> summary:first-child",this),g[0]?m(g,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+o.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));u=!1})});