webshims-rails 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails/version.rb +2 -2
- data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +28 -27
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +75 -74
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +41 -39
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +6 -6
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +54 -53
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +62 -61
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +58 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +62 -60
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +62 -60
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +43 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +41 -39
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +48 -47
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +51 -49
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +75 -73
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +83 -79
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +27 -27
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +34 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +58 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +29 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +37 -45
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +57 -56
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +21 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +21 -19
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +5 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +8 -7
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +5 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-api.js +8 -12
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +21 -26
- data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +1 -1
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +28 -26
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +7 -7
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +29 -28
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +24 -19
- metadata +4 -4
@@ -1,42 +1,43 @@
|
|
1
|
-
(function(d,f,
|
2
|
-
|
3
|
-
j);if(j=e.attr("media"))k.media=j;return k},
|
4
|
-
"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"]}};
|
5
|
-
var e=e.split("?")[0].split("."),e=e[e.length-1],f;d.each(
|
6
|
-
j=
|
7
|
-
|
8
|
-
c);f.warn("mediaelementError: "+c);setTimeout(function(){d(e).data("mediaerror")&&d(e).trigger("mediaerror")},1)};var
|
9
|
-
|
10
|
-
"paused")&&d.prop(e.target,"loop")&&d(e.target).prop("currentTime",0).play()},1)});r||f.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(e){var c=f.defineNodeNameProperty(e,"load",{prop:{value:function(){var d=f.data(this,"mediaelement");
|
11
|
-
c),"no"==f&&(f=""));!f&&
|
12
|
-
|
13
|
-
function(d){"emptied"==d.type&&(e=!1);clearTimeout(c)})}})});l&&
|
14
|
-
jQuery.webshims.register("mediaelement-swf",function(d,f,
|
15
|
-
muted:!1};Object.keys(
|
16
|
-
"jwplayer/"+(
|
17
|
-
a.duration!=a._lastDuration?(
|
18
|
-
{View:{PLAY:function(a){var b=
|
19
|
-
b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,c(4,b);d.event.trigger("progress",r,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:
|
20
|
-
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&
|
21
|
-
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||e(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;
|
22
|
-
a.position)b.currentTime=a.position,
|
23
|
-
|
24
|
-
|
25
|
-
a.offsetHeight;f&&c?(
|
26
|
-
h).bind("swfstageresize",function(){j||
|
27
|
-
b.wasSwfReady
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
"none"==
|
35
|
-
|
36
|
-
(
|
37
|
-
|
38
|
-
|
39
|
-
!0
|
40
|
-
|
41
|
-
|
42
|
-
|
1
|
+
(function(d,f,l){var m=f.audio&&f.video,r=!1;if(m)d=document.createElement("video"),f.videoBuffered="buffered"in d,r="loop"in d,l.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),f.videoBuffered||(l.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:f.videoBuffered,d:["dom-support"]}),l.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(d,f,l,t,y){var g=f.mediaelement,C=f.cfg.mediaelement,
|
2
|
+
z=function(e,c){var e=d(e),k={src:e.attr("src")||"",elem:e,srcProp:e.prop("src")};if(!k.src)return k;var j=e.attr("type");if(j)k.type=j,k.container=d.trim(j.split(";")[0]);else if(c||(c=e[0].nodeName.toLowerCase(),"source"==c&&(c=(e.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),j=g.getTypeForSrc(k.src,c))k.type=j,k.container=j,f.warn("you should always provide a proper mime-type using the source element. "+k.src+" detected as: "+j),d.nodeName(e[0],"source")&&e.attr("type",
|
3
|
+
j);if(j=e.attr("media"))k.media=j;return k},v=swfobject.hasFlashPlayerVersion("9.0.115"),A=function(){f.ready("mediaelement-swf",function(){if(!g.createSWF)f.modules["mediaelement-swf"].test=d.noop,f.reTest(["mediaelement-swf"],m)})};g.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",
|
4
|
+
"m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=d.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(e,c){if(-1!=e.indexOf("youtube.com/watch?")||-1!=e.indexOf("youtube.com/v/"))return"video/youtube";
|
5
|
+
var e=e.split("?")[0].split("."),e=e[e.length-1],f;d.each(g.mimeTypes[c],function(d,c){if(-1!==c.indexOf(e))return f=d,!1});return f};g.srces=function(e,c){e=d(e);if(c)e.removeAttr("src").removeAttr("type").find("source").remove(),d.isArray(c)||(c=[c]),c.forEach(function(d){var c=t.createElement("source");"string"==typeof d&&(d={src:d});c.setAttribute("src",d.src);d.type&&c.setAttribute("type",d.type);d.media&&c.setAttribute("media",d.media);e.append(c)});else{var c=[],f=e[0].nodeName.toLowerCase(),
|
6
|
+
j=z(e,f);j.src?c.push(j):d("source",e).each(function(){j=z(this,f);j.src&&c.push(j)});return c}};d.fn.loadMediaSrc=function(e,c){return this.each(function(){c!==y&&(d(this).removeAttr("poster"),c&&d.attr(this,"poster",c));g.srces(this,e);d(this).mediaLoad()})};g.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
|
7
|
+
g.canSwfPlaySrces=function(e,c){var f="";v&&(e=d(e),c=c||g.srces(e),d.each(c,function(d,e){if(e.container&&e.src&&-1!=g.swfMimeTypes.indexOf(e.container))return f=e,!1}));return f};var h={};g.canNativePlaySrces=function(e,c){var f="";if(m){var e=d(e),j=(e[0].nodeName||"").toLowerCase();if(!h[j])return f;c=c||g.srces(e);d.each(c,function(d,c){if(c.type&&h[j].prop._supvalue.call(e[0],c.type))return f=c,!1})}return f};g.setError=function(e,c){c||(c="can't play sources");d(e).pause().data("mediaerror",
|
8
|
+
c);f.warn("mediaelementError: "+c);setTimeout(function(){d(e).data("mediaerror")&&d(e).trigger("mediaerror")},1)};var p=function(){var d;return function(c,k,j){f.ready("mediaelement-swf",function(){g.createSWF?g.createSWF(c,k,j):d||(d=!0,A(),p(c,k,j))})}}(),i=function(d,c,f,j,h){f||!1!==f&&c&&"flash"==c.isActive?(f=g.canSwfPlaySrces(d,j))?p(d,f,c):h?g.setError(d,!1):i(d,c,!1,j,!0):(f=g.canNativePlaySrces(d,j))?c&&"flash"==c.isActive&&g.setActive(d,"html5",c):h?(g.setError(d,!1),c&&"flash"==c.isActive&&
|
9
|
+
g.setActive(d,"html5",c)):i(d,c,!0,j,!0)},D=/^(?:embed|object|datalist)$/i,w=function(e,c){var k=f.data(e,"mediaelementBase")||f.data(e,"mediaelementBase",{}),j=g.srces(e),h=e.parentNode;clearTimeout(k.loadTimer);d.data(e,"mediaerror",!1);if(j.length&&h&&!(1!=h.nodeType||D.test(h.nodeName||"")))c=c||f.data(e,"mediaelement"),i(e,c,C.preferFlash||y,j)};d(t).bind("ended",function(e){var c=f.data(e.target,"mediaelement");(!r||c&&"html5"!=c.isActive||d.prop(e.target,"loop"))&&setTimeout(function(){!d.prop(e.target,
|
10
|
+
"paused")&&d.prop(e.target,"loop")&&d(e.target).prop("currentTime",0).play()},1)});r||f.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(e){var c=f.defineNodeNameProperty(e,"load",{prop:{value:function(){var d=f.data(this,"mediaelement");w(this,d);m&&(!d||"html5"==d.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});h[e]=f.defineNodeNameProperty(e,"canPlayType",{prop:{value:function(c){var f="";m&&h[e].prop._supvalue&&(f=h[e].prop._supvalue.call(this,
|
11
|
+
c),"no"==f&&(f=""));!f&&v&&(c=d.trim((c||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(c)&&(f="maybe"));return f}}})});f.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var d=this,c=f.data(d,"mediaelementBase")||f.data(d,"mediaelementBase",{});clearTimeout(c.loadTimer);c.loadTimer=setTimeout(function(){w(d);d=null},9)}});l=function(){f.addReady(function(e,c){d("video, audio",e).add(c.filter("video, audio")).each(function(){d.browser.msie&&8<f.browserVersion&&d.prop(this,
|
12
|
+
"paused")&&!d.prop(this,"readyState")&&d(this).is('audio[preload="none"][controls]:not([autoplay])')?d(this).prop("preload","metadata").mediaLoad():w(this);if(m){var c,e,g=this,h=function(){var c=d.prop(g,"buffered");if(c){for(var f="",e=0,j=c.length;e<j;e++)f+=c.end(e);return f}},i=function(){var c=h();c!=e&&(e=c,d(g).triggerHandler("progress"))};d(this).bind("play loadstart progress",function(d){"progress"==d.type&&(e=h());clearTimeout(c);c=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",
|
13
|
+
function(d){"emptied"==d.type&&(e=!1);clearTimeout(c)})}})})};m?(f.isReady("mediaelement-core",!0),l(),v&&f.ready("WINDOWLOAD mediaelement",A)):f.ready("mediaelement-swf",l)})})(jQuery,Modernizr,jQuery.webshims);
|
14
|
+
jQuery.webshims.register("mediaelement-swf",function(d,f,l,m,r,n){var q=f.mediaelement,F=l.swfobject,t=Modernizr.audio&&Modernizr.video,y=F.hasFlashPlayerVersion("9.0.115"),g=0,l={paused:!0,ended:!1,currentSrc:"",duration:l.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}},C=Object.keys(l),z={currentTime:0,volume:1,
|
15
|
+
muted:!1};Object.keys(z);var v=d.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:r},l,z),A=/^jwplayer-/,h=function(a){if(a=m.getElementById(a.replace(A,"")))return a=f.data(a,"mediaelement"),"flash"==a.isActive?a:null},p=function(a){return(a=f.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},i=function(a,b){b=d.Event(b);b.preventDefault();d.event.trigger(b,r,a)},D=n.playerPath||f.cfg.basePath+
|
16
|
+
"jwplayer/"+(n.playerName||"player.swf"),w=n.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(n.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(n.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(n.jwAttrs,{bgcolor:"#000000"});var e=function(a,b){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(f){}a.duration&&
|
17
|
+
a.duration!=a._lastDuration?(i(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&q.jwEvents.Model.META(d.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},c=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,i(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,i(b._elem,"canplaythrough");b.readyState=a};q.jwEvents=
|
18
|
+
{View:{PLAY:function(a){var b=h(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(a){var b=h(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5<a.percentage&&25>a.percentage||100===a.percentage)&&e(b,a);if(b.ended)b.ended=!1;if(b.duration){2<a.percentage&&20>a.percentage?c(3,b):20<a.percentage&&c(4,b);if(b._bufferedEnd&&
|
19
|
+
b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,c(4,b);d.event.trigger("progress",r,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:h(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var d=b.duration;if(a.duration)b.duration=a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=
|
20
|
+
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&i(b._elem,"durationchange");i(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=h(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&e(b,a);2>b.readyState&&c(2,b);if(b.ended)b.ended=!1;i(b._elem,"timeupdate")}},STATE:function(a){var b=h(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);i(b._elem,"waiting");
|
21
|
+
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||e(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;i(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,i(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,i(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=h(a.id);b&&q.setError(b._elem,a.message)},SEEK:function(a){var b=h(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(d){}if(b.currentTime!=
|
22
|
+
a.position)b.currentTime=a.position,i(b._elem,"timeupdate")}},VOLUME:function(a){var b=h(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=h(a.id);if(b&&b.muted!=a.state)b.muted=a.state,i(b._elem,"volumechange")}}}};var k=function(a){var b=!0;d.each(q.jwEvents,function(c,f){d.each(f,function(d){try{a.jwapi["add"+c+"Listener"](d,"jQuery.webshims.mediaelement.jwEvents."+c+"."+d)}catch(f){return b=!1}})});return b},j=function(a){var b=
|
23
|
+
a.actionQueue.length,d=0,c;if(b&&"flash"==a.isActive)for(;a.actionQueue.length&&b>d;)d++,c=a.actionQueue.shift(),a.jwapi[c.fn].apply(a.jwapi,c.args);if(a.actionQueue.length)a.actionQueue=[]},G=function(a){a&&(a._ppFlag===r&&d.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("flash"==a.isActive&&(a._ppFlag===r||!a.paused))try{d(a._elem).play()}catch(b){}},1)},K=function(a){if(a&&"video"==a._elemNodeName){var b,c,f,e,s,o,g,j,h=function(h,i){if(i&&h&&!(1>i||1>h||"flash"!=a.isActive))if(b&&
|
24
|
+
(b.remove(),b=!1),e=h,s=i,clearTimeout(g),c="auto"==a._elem.style.width,f="auto"==a._elem.style.height,c||f){o=o||d(a._elem).getShadowElement();var k;c&&!f?(k=o.height(),h*=k/i,i=k):!c&&f&&(k=o.width(),i*=k/h,h=k);j=!0;setTimeout(function(){j=!1},9);o.css({width:h,height:i})}},i=function(){if(!("flash"!=a.isActive||d.prop(a._elem,"readyState")&&d.prop(this,"videoWidth"))){var e=d.prop(a._elem,"poster");if(e&&(c="auto"==a._elem.style.width,f="auto"==a._elem.style.height,c||f))b&&(b.remove(),b=!1),
|
25
|
+
b=d('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(g);var a=this,c=a.naturalWidth||a.width||a.offsetWidth,f=a.naturalHeight||a.height||a.offsetHeight;f&&c?(h(c,f),a=null):setTimeout(function(){c=a.naturalWidth||a.width||a.offsetWidth;f=a.naturalHeight||a.height||a.offsetHeight;h(c,f);b&&(b.remove(),b=!1);a=null},9);d(this).unbind()}).prop("src",e).appendTo("body").each(function(){this.complete||
|
26
|
+
this.error?d(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){d(a._elem).triggerHandler("error")},9999))})}};d(a._elem).bind("loadedmetadata",function(){h(d.prop(this,"videoWidth"),d.prop(this,"videoHeight"))}).bind("emptied",i).bind("swfstageresize",function(){j||h(e,s)}).bind("emptied",function(){e=void 0;s=void 0}).triggerHandler("swfstageresize");i();d.prop(a._elem,"readyState")&&h(d.prop(a._elem,"videoWidth"),d.prop(a._elem,"videoHeight"))}};q.playerResize=function(a){a&&
|
27
|
+
(a=m.getElementById(a.replace(A,"")))&&d(a).triggerHandler("swfstageresize")};d(m).bind("emptied",function(a){a=p(a.target);G(a)});var B;q.jwPlayerReady=function(a){var b=h(a.id),c=0,e=function(){if(!(9<c))if(c++,k(b)){if(b.wasSwfReady)d(b._elem).mediaLoad();else{var g=parseFloat(a.version,10);(5.6>g||6<=g)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=!0;b.tryedReframeing=0;j(b);G(b)}else clearTimeout(b.reframeTimer),b.reframeTimer=setTimeout(e,9*c),2<c&&9>b.tryedReframeing&&
|
28
|
+
(b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(B);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");d.prop(b._elem,"volume",b.volume);d.prop(b._elem,"muted",b.muted);e()}};var E=d.noop;if(t){var L={play:1,playing:1},H="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),I=H.map(function(a){return a+
|
29
|
+
".webshimspolyfill"}).join(" "),M=function(a){var b=f.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("flash"==b.activating)&&(a.stopImmediatePropagation(),L[a.type]&&b.isActive!=b.activating&&d(a.target).pause())},E=function(a){d(a).unbind(I).bind(I,M);H.forEach(function(b){f.moveToFirstEvent(a,b)})};E(m)}q.setActive=function(a,b,c){c||(c=f.data(a,"mediaelement"));if(c&&c.isActive!=b){"html5"!=b&&"flash"!=b&&f.warn("wrong type for mediaelement activating: "+b);
|
30
|
+
var e=f.data(a,"shadowData");c.activating=b;d(a).pause();c.isActive=b;"flash"==b?(e.shadowElement=e.shadowFocusElement=c.shadowElem[0],d(a).hide().getShadowElement().show()):(d(a).show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1)}};var N=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var f=b,e=d.networkState;
|
31
|
+
for(c(0,d);--f;)delete d[a[f]];d.actionQueue=[];d.buffered.length=0;e&&i(d._elem,"emptied")}}}(),J=function(a,b){var c=a._elem,f=a.shadowElem;d(c)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?f.css({width:0,height:0}):f.css({width:c.style.width||d(c).width(),height:c.style.height||d(c).height()})};q.createSWF=function(a,b,c){if(y){1>g?g=1:g++;var e=d.extend({},n.jwVars,{image:d.prop(a,"poster")||"",file:b.srcProp}),h=d(a).data("jwvars")||{};if(c&&c.swfCreated)q.setActive(a,
|
32
|
+
"flash",c),N(c),c.currentSrc=b.srcProp,d.extend(e,h),n.changeJW(e,a,b,c,"load"),x(a,"sendEvent",["LOAD",e]);else{var s=d.prop(a,"controls"),o="jwplayer-"+f.getID(a),j=d.extend({},n.jwParams,d(a).data("jwparams")),i=a.nodeName.toLowerCase(),k=d.extend({},n.jwAttrs,{name:o,id:o},d(a).data("jwattrs")),l=d('<div class="polyfill-'+i+' polyfill-mediaelement" id="wrapper-'+o+'"><div id="'+o+'"></div>').css({position:"relative",overflow:"hidden"}),c=f.data(a,"mediaelement",f.objectCreate(v,{actionQueue:{value:[]},
|
33
|
+
shadowElem:{value:l},_elemNodeName:{value:i},_elem:{value:a},currentSrc:{value:b.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=c.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>=c.buffered.length)f.error("buffered index size error");else return(c.duration-c._bufferedStart)*c._bufferedEnd/100+c._bufferedStart},length:0}}}));J(c,s);l.insertBefore(a);t&&d.extend(c,{volume:d.prop(a,"volume"),muted:d.prop(a,"muted")});d.extend(e,{id:o,
|
34
|
+
controlbar:s?n.jwVars.controlbar||("video"==i?"over":"bottom"):"video"==i?"none":"bottom",icons:""+(s&&"video"==i)},h,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+w):w;f.addShadowDom(a,l);E(a);q.setActive(a,"flash",c);n.changeJW(e,a,b,c,"embed");K(c);F.embedSWF(D,o,"100%","100%","9.0.0",!1,e,j,k,function(b){if(b.success)c.jwapi=b.ref,s||d(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&l[0].parentNode||
|
35
|
+
"none"==b.ref.style.display)l.addClass("flashblocker-assumed"),d(a).trigger("flashblocker"),f.warn("flashblocker assumed");d(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),B||(clearTimeout(B),B=setTimeout(function(){var a=d(b.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"):
|
36
|
+
(2>a[0].offsetWidth||2>a[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){d(a).mediaLoad()},1)};var x=function(a,b,c,d){return(d=d||p(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(a){var b={},c,e=function(d){"audio"==a&&
|
37
|
+
("videoHeight"==d||"videoWidth"==d)||(b[d]={get:function(){var a=p(this);return a?a[d]:t&&c[d].prop._supget?c[d].prop._supget.apply(this):v[d]},writeable:!1})},g=function(a,d){e(a);delete b[a].writeable;b[a].set=d};g("volume",function(a){var b=p(this);if(b){if(a*=100,!isNaN(a)){var d=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+a/100);x(this,"sendEvent",["VOLUME",a],b);if(d)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"flash"!=b.isActive))b.volume=
|
38
|
+
a,i(b._elem,"volumechange")}}else if(c.volume.prop._supset)return c.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=p(this);if(b){if(a=!!a,x(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"flash"!=b.isActive))b.muted=a,i(b._elem,"volumechange")}else if(c.muted.prop._supset)return c.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=p(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=
|
39
|
+
!0;b.stopPlayPause=!1},50);x(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(d){}}}}else if(c.currentTime.prop._supset)return c.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){b[a]={value:function(){var b=p(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),x(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag=
|
40
|
+
!0,b.paused!=("play"!=a)))b.paused="play"!=a,i(b._elem,a)},1);else if(c[a].prop._supvalue)return c[a].prop._supvalue.apply(this,arguments)}}});C.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(b,c){var e=p(this);d(this)[c?"addClass":"removeClass"]("webshims-controls");if(e){try{x(this,c?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==a&&J(e,c);d(e.jwapi).attr("tabindex",c?"0":"-1")}});c=f.defineNodeNameProperties(a,b,"prop")});if(y){var O=
|
41
|
+
d.cleanData,P=d.browser.msie&&9>f.browserVersion,Q={object:1,OBJECT:1};d.cleanData=function(a){var b,d,c;if(a&&(d=a.length)&&g)for(b=0;b<d;b++)if(Q[a[b].nodeName]){if("sendEvent"in a[b]){g--;try{a[b].sendEvent("play",!1)}catch(e){}}if(P)try{for(c in a[b])"function"==typeof a[b][c]&&(a[b][c]=null)}catch(f){}}return O.apply(this,arguments)}}if(!t){var u=m.createElement("a");u.style.display="none";["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],
|
42
|
+
a,{prop:{get:function(){var b=this.getAttribute(a),c;if(null==b)return"";u.setAttribute("href",b+"");if(!d.support.hrefNormalized){try{d(u).appendTo(this),c=u.getAttribute("href",4)}catch(e){c=u.getAttribute("href",4)}d(u).detach()}return c||u.href},set:function(b){d.attr(this,a,b)}}})});["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},
|
43
|
+
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")}});
|
@@ -1,40 +1,42 @@
|
|
1
|
-
jQuery.webshims.register("form-message",function(a,b,n,
|
2
|
-
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){
|
3
|
-
"Value must be at or before {%max}."});
|
1
|
+
jQuery.webshims.register("form-message",function(a,b,n,i,p,d){var c=b.validityMessages,n=d.overrideMessages||d.customMessages?["customValidationMessage"]:[];c.en=c.en||c["en-US"]||{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
2
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){c.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){c.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(a){c.en.rangeOverflow[a]=
|
3
|
+
"Value must be at or before {%max}."});c["en-US"]=c["en-US"]||c.en;c[""]=c[""]||c["en-US"];c.de=c.de||{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
4
4
|
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
5
|
-
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){
|
6
|
-
|
7
|
-
n.push("validationMessage");b.activeLang({langObj:
|
8
|
-
|
9
|
-
a)))return!1});return
|
10
|
-
Modernizr.formvalidation||jQuery.webshims.register("form-extend",function(a,b,n,
|
11
|
-
if("select"==h.nodeName){if(
|
12
|
-
(c
|
13
|
-
a.event.special.invalid.handler),b.moveToFirstEvent(f,"submit"))},teardown:a.noop,handler:function(f){if(!("submit"!=f.type||f.testedValidity||!f.originalEvent||!a.nodeName(f.target,"form")||a.prop(f.target,"noValidate"))){
|
14
|
-
"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return s.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=p.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(b){return!a.test(b)}}()});
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
function(){
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
a.attr(this,
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
if(
|
31
|
-
d
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
a
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
"").
|
5
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){c.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){c.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){c.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var g=
|
6
|
+
c[""];b.createValidationMessage=function(b,c){var d=g[c];d&&"string"!==typeof d&&(d=d[a.prop(b,"type")]||d[(b.nodeName||"").toLowerCase()]||d.defaultMessage);d&&"value,min,max,title,maxlength,label".split(",").forEach(function(c){if(-1!==d.indexOf("{%"+c)){var j=("label"==c?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,c))||"";d=d.replace("{%"+c+"}",j);"value"==c&&(d=d.replace("{%valueLen}",j.length))}});return d||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
|
7
|
+
b.bugs.bustedValidity)&&n.push("validationMessage");b.activeLang({langObj:c,module:"form-core",callback:function(a){g=a}});Modernizr.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var c=a("select",this);if(c[0]&&c[0].options&&c[0].options.length)b=c[0].options}return b}}});n.forEach(function(c){b.defineNodeNamesProperty(["fieldset",
|
8
|
+
"output","button"],c,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(d){var g=b.defineNodeNameProperty(d,c,{prop:{get:function(){var c=this,d="";if(!a.prop(c,"willValidate"))return d;var i=a.prop(c,"validity")||{valid:1};if(i.valid||(d=b.getContentValidationMessage(c,i)))return d;if(i.customError&&c.nodeName&&(d=Modernizr.formvalidation&&!b.bugs.bustedValidity&&g.prop._supget?g.prop._supget.call(c):b.data(c,"customvalidationMessage")))return d;a.each(i,function(a,f){if("valid"!=
|
9
|
+
a&&f&&(d=b.createValidationMessage(c,a)))return!1});return d||""},writeable:!1}})})})});
|
10
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,n,i){b.inputTypes=b.inputTypes||{};var p=b.cfg.forms,d,c=b.inputTypes,g={radio:1,checkbox:1};b.addInputType=function(a,b){c[a]=b};var r={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},m={valueMissing:function(f,c,h){if(!f.prop("required"))return!1;var d=!1;if(!("type"in h))h.type=(f[0].getAttribute("type")||
|
11
|
+
f[0].type||"").toLowerCase();if("select"==h.nodeName){if(c=!c)if(!(c=0>f[0].selectedIndex))f=f[0],c="select-one"==f.type&&2>f.size?!!a("> option:first-child",f).prop("selected"):!1;f=c}else f=g[h.type]?"checkbox"==h.type?!f.is(":checked"):!b.modules["form-core"].getGroupElements(f).filter(":checked")[0]:!c;return f},tooLong:function(){return!1},typeMismatch:function(a,b,h){if(""===b||"select"==h.nodeName)return!1;var d=!1;if(!("type"in h))h.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
|
12
|
+
c[h.type]&&c[h.type].mismatch&&(d=c[h.type].mismatch(b,a));return d},patternMismatch:function(a,c,h){if(""===c||"select"==h.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(d){b.error('invalid pattern value: "'+a+'" | '+d),a=!1}return!a?!1:!a.test(c)}};b.addValidityRule=function(a,b){m[a]=b};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var f=this.form||this;if(!a.data(f,"invalidEventShim")&&(a(f).data("invalidEventShim",
|
13
|
+
!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(f,"submit"),b.bugs.bustedValidity&&a.nodeName(f,"form"))){var c=f.getAttribute("novalidate");f.setAttribute("novalidate","novalidate");b.data(f,"bustedNoValidate",null==c?null:c)}},teardown:a.noop,handler:function(f){if(!("submit"!=f.type||f.testedValidity||!f.originalEvent||!a.nodeName(f.target,"form")||a.prop(f.target,"noValidate"))){d=!0;f.testedValidity=!0;if(!a(f.target).checkValidity())return f.stopImmediatePropagation(),
|
14
|
+
d=!1;d=!1}}};a(i).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var s=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return s.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=p.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(b){return!a.test(b)}}()});
|
15
|
+
b.addInputType("url",{mismatch:function(){var a=p.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
|
16
|
+
return function(b){return!a.test(b)}}()});b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}});b.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},r)}}},"prop");var l=function(f){var c,h=a.prop(f,"validity");if(h)a.data(f,"cachedValidity",
|
17
|
+
h);else return!0;if(!h.valid){c=a.Event("invalid");var g=a(f).trigger(c);if(d&&!l.unhandledInvalids&&!c.isDefaultPrevented())b.validityAlert.showFor(g),l.unhandledInvalids=!0}a.removeData(f,"cachedValidity");return h.valid};b.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var f=!0,c=a("input,textarea,select",this).filter(function(){var a=b.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});l.unhandledInvalids=!1;for(var h=0,d=c.length;h<d;h++)l(c[h])||
|
18
|
+
(f=!1);return f}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){l.unhandledInvalids=!1;return l(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(f){a.removeData(this,"cachedValidity");b.data(this,"customvalidationMessage",""+f)}},willValidate:{set:a.noop,get:function(){var f={button:1,reset:1,hidden:1,image:1};return function(){var b=a(this).getNativeElement()[0];return!(b.disabled||b.readOnly||f[b.type])}}()},validity:{set:a.noop,get:function(){var f=
|
19
|
+
a(this).getNativeElement(),c=f[0],h=a.data(c,"cachedValidity");if(h)return h;h=a.extend({},r);if(!a.prop(c,"willValidate")||"submit"==c.type)return h;var d=f.val(),g={nodeName:c.nodeName.toLowerCase()};h.customError=!!b.data(c,"customvalidationMessage");if(h.customError)h.valid=!1;a.each(m,function(a,b){if(b(f,d,g))h[a]=!0,h.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",h.valid?"false":"true");c=f=null;return h}}},"prop");b.defineNodeNamesBooleanProperty(["input","textarea","select"],
|
20
|
+
"required",{set:function(f){a(this).getShadowFocusElement().attr("aria-required",!!f+"")},initAttr:!a.browser.msie||7<b.browserVersion});b.reflectProperties(["input"],["pattern"]);if(!("maxLength"in i.createElement("textarea"))){var j=function(){var f,b=0,c=a([]),d=1E9,g=function(){var a=c.prop("value"),f=a.length;f>b&&f>d&&(f=Math.max(b,d),c.prop("value",a.substr(0,f)));b=f},j=function(){clearTimeout(f);c.unbind(".maxlengthconstraint")};return function(i,o){j();if(-1<o)d=o,b=a.prop(i,"value").length,
|
21
|
+
c=a(i),c.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),c.bind("keyup.maxlengthconstraint",g),c.bind("blur.maxlengthconstraint",j),f=setInterval(g,200)}}();j.update=function(f,b){f===i.activeElement&&(null==b&&(b=a.prop(f,"maxlength")),j(e.target,b))};a(i).bind("focusin",function(f){var b;"TEXTAREA"==f.target.nodeName&&-1<(b=a.prop(f.target,"maxlength"))&&j(f.target,b)});b.defineNodeNameProperty("textarea",
|
22
|
+
"maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);j.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);j.update(this,a)}else this.setAttribute("maxlength","0"),j.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});b.defineNodeNameProperty("textarea",
|
23
|
+
"maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var u={submit:1,button:1,image:1},k={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},{name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var c=
|
24
|
+
"form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),d="form"+b.name,g=b.name,j="click.webshimssubmittermutate"+g,l=function(){if("form"in this&&u[this.type]){var o=a.prop(this,"form");if(o){var t=a.attr(this,d);if(null!=t&&(!b.limitedTo||t.toLowerCase()===a.prop(this,c))){var q=a.attr(o,g);a.attr(o,g,t);setTimeout(function(){if(null!=q)a.attr(o,g,q);else try{a(o).removeAttr(g)}catch(b){o.removeAttribute(g)}},9)}}}};switch(b.proptype){case "url":var m=i.createElement("form");
|
25
|
+
k[c]={prop:{set:function(b){a.attr(this,d,b)},get:function(){var b=a.attr(this,d);if(null==b)return"";m.setAttribute("action",b);return m.action}}};break;case "boolean":k[c]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":k[c]={prop:{set:function(b){a.attr(this,d,b)},get:function(){var c=a.attr(this,d);return!c||(c=c.toLowerCase())&&!b.limitedTo[c]?b.defaultProp:
|
26
|
+
c}}};break;default:k[c]={prop:{set:function(b){a.attr(this,d,b)},get:function(){var b=a.attr(this,d);return null!=b?b:""}}}}k[d]||(k[d]={});k[d].attr={set:function(b){k[d].attr._supset.call(this,b);a(this).unbind(j).bind(j,l)},get:function(){return k[d].attr._supget.call(this)}};k[d].initAttr=!0;k[d].removeAttr={value:function(){a(this).unbind(j);k[d].removeAttr._supvalue.call(this)}}});b.defineNodeNamesProperties(["input","button"],k);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?
|
27
|
+
b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):b.bugs.bustedValidity&&b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){b.data(this,"bustedNoValidate",""+a)},get:function(){var a=b.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){b.data(this,"bustedNoValidate",null)}}});b.defineNodeNameProperty("form","noValidate",
|
28
|
+
{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});b.addReady(function(b,c){var d;a("form",b).add(c.filter("form")).bind("invalid",a.noop);try{if(b==i&&!("form"in(i.activeElement||{})))(d=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&d.offsetHeight&&d.offsetWidth&&d.focus()}catch(g){}});(function(){Modernizr.textareaPlaceholder=!!("placeholder"in
|
29
|
+
a("<textarea />")[0]);if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder){var c="over"==b.cfg.forms.placeholderType,d=["textarea"];Modernizr.input.placeholder||d.push("input");var g=function(a){if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a)return a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",0),a.moveStart("character",0),a.select(),!0},j=function(b,d,q,j){!1===q&&(q=a.prop(b,"value"));if(!c&&"password"!=b.type){if(!q&&j&&g(b)){var k;a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",
|
30
|
+
function(c){if(!c||!(17==c.keyCode||16==c.keyCode))b.value=a.prop(b,"value"),d.box.removeClass("placeholder-visible"),clearTimeout(k),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){g(b);clearTimeout(k);k=setTimeout(function(){g(b)},9)}).bind("blur.placeholderremove",function(){clearTimeout(k);a(b).unbind(".placeholderremove")});return}b.value=q}else if(!q&&j){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",
|
31
|
+
function(c){if(!c||!(17==c.keyCode||16==c.keyCode))d.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}d.box.removeClass("placeholder-visible")},k=function(b,d,g,h,k){if(!h&&(h=a.data(b,"placeHolder"),!h))return;a(b).unbind(".placeholderremove");if("focus"==k||!k&&b===i.activeElement)("password"==b.type||c||a(b).hasClass("placeholder-visible"))&&j(b,h,"",!0);else if(!1===d&&(d=a.prop(b,"value")),
|
32
|
+
d)j(b,h,d);else if(!1===g&&(g=a.attr(b,"placeholder")||""),g&&!d){d=h;!1===g&&(g=a.prop(b,"placeholder"));if(!c&&"password"!=b.type)b.value=g;d.box.addClass("placeholder-visible")}else j(b,h,d)},l=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&&!b.attr("aria-labelledby"));!d&&c&&(d=!!a('label[for="'+c+'"]',b[0].form)[0]);d||(c||(c=a.webshims.getID(b)),d=!!a("label #"+c)[0]);return a(d?'<span class="placeholder-text"></span>':'<label for="'+c+'" class="placeholder-text"></label>')},m=function(){var d=
|
33
|
+
{text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var d=a.data(b,"placeHolder");if(d)return d;d=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){k(this,!1,!1,d,a.type);d.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});b.form&&a(b.form).bind("reset.placeholder",function(a){setTimeout(function(){k(b,!1,!1,d,a.type)},0)});if("password"==b.type||c){d.text=l(b);d.box=a(b).wrap('<span class="placeholder-box placeholder-box-'+
|
34
|
+
(b.nodeName||"").toLowerCase()+'" />').parent();d.text.insertAfter(b).bind("mousedown.placeholder",function(){k(this,!1,!1,d,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(c,f){var g=(parseInt(a.curCSS(b,"padding"+f),10)||0)+Math.max(parseInt(a.curCSS(b,"margin"+f),10)||0,0)+(parseInt(a.curCSS(b,"border"+f+"Width"),10)||0);d.text.css("padding"+f,g)});a.curCSS(b,"lineHeight");var g={width:a(b).width(),height:a(b).height()},h=a.curCSS(b,"float");
|
35
|
+
a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(c,f){var g=a.curCSS(b,f);d.text.css(f)!=g&&d.text.css(f,g)});g.width&&g.height&&d.text.css(g);"none"!==h&&d.box.addClass("placeholder-box-"+h)}else g=function(c){a(b).hasClass("placeholder-visible")&&(j(b,d,""),c&&"submit"==c.type&&setTimeout(function(){c.isDefaultPrevented()&&k(b,!1,!1,d)},9))},a(n).bind("beforeunload",g),d.box=a(b),b.form&&a(b.form).submit(g);return d},update:function(c,f){if(!d[a.prop(c,"type")]&&!a.nodeName(c,
|
36
|
+
"textarea"))b.warn("placeholder not allowed on type: "+a.prop(c,"type"));else{var g=m.create(c);g.text&&g.text.text(f);k(c,!1,f,g)}}}}();a.webshims.publicMethods={pHolder:m};d.forEach(function(a){b.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b.contentAttr(this,"placeholder",a);m.update(this,a)},get:function(){return b.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});d.forEach(function(c){var d={},f;["attr","prop"].forEach(function(c){d[c]={set:function(d){var g=b.contentAttr(this,
|
37
|
+
"placeholder");a.removeData(this,"cachedValidity");var h=f[c]._supset.call(this,d);g&&"value"in this&&k(this,d,g);return h},get:function(){return a(this).hasClass("placeholder-visible")?"":f[c]._supget.call(this)}}});f=b.defineNodeNameProperty(c,"value",d)})}})()});
|
38
|
+
jQuery.webshims.ready("dom-support",function(a,b,n,i){(function(){if(!("value"in i.createElement("output"))){b.defineNodeNameProperty("output","value",{prop:{set:function(b){var c=a.data(this,"outputShim");c||(c=p(this));c(b)},get:function(){return b.contentAttr(this,"value")||a(this).text()||""}}});b.onNodeNamesPropertyModify("input","value",function(b,c,g){"removeAttr"!=g&&(c=a.data(this,"outputShim"))&&c(b)});var p=function(d){if(!d.getAttribute("aria-live")){var d=a(d),c=(d.text()||"").trim(),
|
39
|
+
g=d.attr("id"),r=d.attr("for"),m=a('<input class="output-shim" type="text" disabled name="'+(d.attr("name")||"")+'" value="'+c+'" style="display: none !important;" />').insertAfter(d),s=m[0].form||i,l=function(a){m[0].value=a;a=m[0].value;d.text(a);b.contentAttr(d[0],"value",a)};d[0].defaultValue=c;b.contentAttr(d[0],"value",c);d.attr({"aria-live":"polite"});g&&(m.attr("id",g),d.attr("aria-labelledby",b.getID(a('label[for="'+g+'"]',s))));r&&(g=b.getID(d),r.split(" ").forEach(function(a){(a=i.getElementById(a))&&
|
40
|
+
a.setAttribute("aria-controls",g)}));d.data("outputShim",l);m.data("outputShim",l);return l}};b.addReady(function(b,c){a("output",b).add(c.filter("output")).each(function(){p(this)})})}})();(function(){var p={updateInput:1,input:1},d={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},c=function(a){var c,d=a.prop("value"),i=function(c){if(a){var f=a.prop("value");f!==d&&(d=f,(!c||!p[c.type])&&b.triggerInlineForm&&b.triggerInlineForm(a[0],"input"))}},l,j=function(){clearTimeout(l);
|
41
|
+
l=setTimeout(i,9)},n=function(){a.unbind("focusout",n).unbind("keyup keypress keydown paste cut",j).unbind("input change updateInput",i);clearInterval(c);setTimeout(function(){i();a=null},1)};clearInterval(c);c=setInterval(i,99);j();a.bind("keyup keypress keydown paste cut",j).bind("focusout",n).bind("input updateInput change",i)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(i).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
|
42
|
+
"").toLowerCase()&&!d[b.target.type]&&c(a(b.target))})})();b.isReady("form-output",!0)});
|
@@ -1,56 +1,57 @@
|
|
1
|
-
(function(){var a=Function.prototype.call,e=Object.prototype,
|
1
|
+
(function(){var a=Function.prototype.call,e=Object.prototype,i=Array.prototype.slice,j,g;if(!Function.prototype.bind)Function.prototype.bind=function(a){var f=this;if("function"!=typeof f)throw new TypeError;var m=i.call(arguments,1),c=function(){if(this instanceof c){var b=function(){};b.prototype=f.prototype;var b=new b,g=f.apply(b,m.concat(i.call(arguments)));return null!==g&&Object(g)===g?g:b}return f.apply(a,m.concat(i.call(arguments)))};return c};g=a.bind(e.toString);j=a.bind(e.hasOwnProperty);
|
2
2
|
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==g(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,f){var m=q(this),c=0,b=m.length>>>0;if("[object Function]"!=g(a))throw new TypeError;for(;c<b;)c in m&&a.call(f,m[c],c,m),c++};if(!Array.prototype.map)Array.prototype.map=function(a,f){var b=q(this),c=b.length>>>0,e=Array(c);if("[object Function]"!=g(a))throw new TypeError;for(var h=0;h<c;h++)h in b&&(e[h]=a.call(f,b[h],h,b));return e};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
-
function(a,b){var f=q(this),c=f.length>>>0,e=[];if("[object Function]"!=g(a))throw new TypeError;for(var h=0;h<c;h++)h in f&&a.call(b,f[h],h,f)&&e.push(f[h]);return e};if(!Array.prototype.every)Array.prototype.every=function(a,f){var b=q(this),c=b.length>>>0;if("[object Function]"!=g(a))throw new TypeError;for(var e=0;e<c;e++)if(e in b&&!a.call(f,b[e],e,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,
|
4
|
-
for(var e=0;e<c;e++)if(e in
|
5
|
-
q(this),f
|
6
|
-
|
7
|
-
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var e=[],g;for(g in a)
|
8
|
-
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",
|
9
|
-
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(
|
10
|
-
(function(a,e){var
|
11
|
-
if(!
|
12
|
-
f){for(var b in f)
|
13
|
-
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var b;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return b=Object.getOwnPropertyDescriptor(a,f)}catch(e){}b={configurable:!0,enumerable:!0,writable:!0,value:void 0};var k=a.__lookupGetter__&&a.__lookupGetter__(f),
|
14
|
-
k;if(
|
15
|
-
(function(a,e,
|
3
|
+
function(a,b){var f=q(this),c=f.length>>>0,e=[];if("[object Function]"!=g(a))throw new TypeError;for(var h=0;h<c;h++)h in f&&a.call(b,f[h],h,f)&&e.push(f[h]);return e};if(!Array.prototype.every)Array.prototype.every=function(a,f){var b=q(this),c=b.length>>>0;if("[object Function]"!=g(a))throw new TypeError;for(var e=0;e<c;e++)if(e in b&&!a.call(f,b[e],e,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,b){var f=q(this),c=f.length>>>0;if("[object Function]"!=g(a))throw new TypeError;
|
4
|
+
for(var e=0;e<c;e++)if(e in f&&a.call(b,f[e],e,f))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var f=q(this),b=f.length>>>0;if("[object Function]"!=g(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var c=0,e;if(2<=arguments.length)e=arguments[1];else{do{if(c in f){e=f[c++];break}if(++c>=b)throw new TypeError;}while(1)}for(;c<b;c++)c in f&&(e=a.call(void 0,e,f[c],c,f));return e};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var f=
|
5
|
+
q(this),b=f.length>>>0;if("[object Function]"!=g(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var c,b=b-1;if(2<=arguments.length)c=arguments[1];else{do{if(b in f){c=f[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(c=a.call(void 0,c,f[b],b,f));while(b--);return c};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var f=q(this),b=f.length>>>0;if(!b)return-1;var c=0;1<arguments.length&&(c=w(arguments[1]));for(c=0<=c?c:b-Math.abs(c);c<b;c++)if(c in
|
6
|
+
f&&f[c]===a)return c;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var f=q(this),b=f.length>>>0;if(!b)return-1;var c=b-1;1<arguments.length&&(c=w(arguments[1]));for(c=0<=c?c:b-Math.abs(c);0<=c;c--)if(c in f&&a===f[c])return c;return-1};if(!Object.keys){var f=!0,b="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),z=b.length,k;for(k in{toString:null})f=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=
|
7
|
+
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var e=[],g;for(g in a)j(a,g)&&e.push(g);if(f)for(g=0;g<z;g++){var c=b[g];j(a,c)&&e.push(c)}return e}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,f,b;if(!isFinite(this))throw new RangeError;a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(f=a.length;f--;)b=a[f],10>b&&(a[f]="0"+b);return a.slice(0,3).join("-")+"T"+
|
8
|
+
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",A=RegExp("^"+a+a+"*"),h=
|
9
|
+
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(A,"").replace(h,"")}}var w=function(a){a=+a;a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},t="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return t&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
10
|
+
(function(a,e){var i=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);i&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});i=!!a.bar}catch(f){i=!1}a=null}();Modernizr.objectAccessor=!(!(i||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=e.browserVersion));Modernizr.advancedObjectProperties=i;
|
11
|
+
if(!i||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var j=Function.prototype.call.bind(Object.prototype.hasOwnProperty);e.objectCreate=function(a,f,b,j){var k;k=function(){};k.prototype=a;k=new k;if(!j&&!("__proto__"in k)&&!Modernizr.objectAccessor)k.__proto__=a;f&&e.defineProperties(k,f);if(b)k.options=jQuery.extend(!0,{},k.options||{},b),b=k.options;k._create&&jQuery.isFunction(k._create)&&k._create(b);return k};e.defineProperties=function(a,
|
12
|
+
f){for(var b in f)j(f,b)&&e.defineProperty(a,b,f[b]);return a};e.defineProperty=function(a,f,b){if("object"!=typeof b||null===b)return a;if(j(b,"value"))return a[f]=b.value,a;a.__defineGetter__&&("function"==typeof b.get&&a.__defineGetter__(f,b.get),"function"==typeof b.set&&a.__defineSetter__(f,b.set));return a};e.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};e.getOwnPropertyDescriptor=function(a,f){if("object"!==
|
13
|
+
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var b;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return b=Object.getOwnPropertyDescriptor(a,f)}catch(e){}b={configurable:!0,enumerable:!0,writable:!0,value:void 0};var k=a.__lookupGetter__&&a.__lookupGetter__(f),i=a.__lookupSetter__&&a.__lookupSetter__(f);if(!k&&!i){if(!j(a,f))return;b.value=a[f];return b}delete b.writable;delete b.value;b.get=b.set=void 0;if(k)b.get=
|
14
|
+
k;if(i)b.set=i;return b}}})(jQuery,jQuery.webshims);
|
15
|
+
(function(a,e,i){var j=e.audio&&e.video,g=!1;if(j)a=document.createElement("video"),e.videoBuffered="buffered"in a,g="loop"in a,i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),e.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:e.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,b,e,k,i){var h=b.mediaelement,w=b.cfg.mediaelement,
|
16
16
|
t=function(o,e){var o=a(o),c={src:o.attr("src")||"",elem:o,srcProp:o.prop("src")};if(!c.src)return c;var n=o.attr("type");if(n)c.type=n,c.container=a.trim(n.split(";")[0]);else if(e||(e=o[0].nodeName.toLowerCase(),"source"==e&&(e=(o.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),n=h.getTypeForSrc(c.src,e))c.type=n,c.container=n,b.warn("you should always provide a proper mime-type using the source element. "+c.src+" detected as: "+n),a.nodeName(o[0],"source")&&o.attr("type",
|
17
|
-
n);if(n=o.attr("media"))c.media=n;return c},q=swfobject.hasFlashPlayerVersion("9.0.115"),
|
17
|
+
n);if(n=o.attr("media"))c.media=n;return c},q=swfobject.hasFlashPlayerVersion("9.0.115"),y=function(){b.ready("mediaelement-swf",function(){if(!h.createSWF)b.modules["mediaelement-swf"].test=a.noop,b.reTest(["mediaelement-swf"],j)})};h.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",
|
18
18
|
"m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};h.mimeTypes.source=a.extend({},h.mimeTypes.audio,h.mimeTypes.video);h.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";
|
19
19
|
var b=b.split("?")[0].split("."),b=b[b.length-1],e;a.each(h.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return e=a,!1});return e};h.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=k.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)});else{var c=[],e=b[0].nodeName.toLowerCase(),
|
20
|
-
h=t(b,e);h.src?c.push(h):a("source",b).each(function(){h=t(this,e);h.src&&c.push(h)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==
|
21
|
-
h.canSwfPlaySrces=function(b,c){var e="";q&&(b=a(b),c=c||h.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&-1!=h.swfMimeTypes.indexOf(b.container))return e=b,!1}));return e};var p={};h.canNativePlaySrces=function(b,c){var e="";if(
|
22
|
-
e);b.warn("mediaelementError: "+e);setTimeout(function(){a(c).data("mediaerror")&&a(c).trigger("mediaerror")},1)};var m=function(){var a;return function(c,e,f){b.ready("mediaelement-swf",function(){h.createSWF?h.createSWF(c,e,f):a||(a=!0,
|
23
|
-
h.setActive(a,"html5",b)):c(a,b,!0,f,!0)},
|
24
|
-
"paused")&&a.prop(c.target,"loop")&&a(c.target).prop("currentTime",0).play()},1)});g||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var e=b.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=b.data(this,"mediaelement");
|
25
|
-
b),"no"==e&&(e=""));!e&&q&&(b=a.trim((b||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,c=b.data(a,"mediaelementBase")||b.data(a,"mediaelementBase",{});clearTimeout(c.loadTimer);c.loadTimer=setTimeout(function(){
|
26
|
-
|
27
|
-
function(a){"emptied"==a.type&&(e=!1);clearTimeout(c)})}})});
|
28
|
-
jQuery.webshims.register("mediaelement-swf",function(a,e,j,
|
29
|
-
muted:!1};Object.keys(t);var q=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:g},
|
30
|
-
"jwplayer/"+(f.playerName||"player.swf"),
|
20
|
+
h=t(b,e);h.src?c.push(h):a("source",b).each(function(){h=t(this,e);h.src&&c.push(h)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==i&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));h.srces(this,b);a(this).mediaLoad()})};h.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
|
21
|
+
h.canSwfPlaySrces=function(b,c){var e="";q&&(b=a(b),c=c||h.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&-1!=h.swfMimeTypes.indexOf(b.container))return e=b,!1}));return e};var p={};h.canNativePlaySrces=function(b,c){var e="";if(j){var b=a(b),n=(b[0].nodeName||"").toLowerCase();if(!p[n])return e;c=c||h.srces(b);a.each(c,function(a,c){if(c.type&&p[n].prop._supvalue.call(b[0],c.type))return e=c,!1})}return e};h.setError=function(c,e){e||(e="can't play sources");a(c).pause().data("mediaerror",
|
22
|
+
e);b.warn("mediaelementError: "+e);setTimeout(function(){a(c).data("mediaerror")&&a(c).trigger("mediaerror")},1)};var m=function(){var a;return function(c,e,f){b.ready("mediaelement-swf",function(){h.createSWF?h.createSWF(c,e,f):a||(a=!0,y(),m(c,e,f))})}}(),c=function(a,b,e,f,g){e||!1!==e&&b&&"flash"==b.isActive?(e=h.canSwfPlaySrces(a,f))?m(a,e,b):g?h.setError(a,!1):c(a,b,!1,f,!0):(e=h.canNativePlaySrces(a,f))?b&&"flash"==b.isActive&&h.setActive(a,"html5",b):g?(h.setError(a,!1),b&&"flash"==b.isActive&&
|
23
|
+
h.setActive(a,"html5",b)):c(a,b,!0,f,!0)},D=/^(?:embed|object|datalist)$/i,v=function(e,g){var k=b.data(e,"mediaelementBase")||b.data(e,"mediaelementBase",{}),n=h.srces(e),j=e.parentNode;clearTimeout(k.loadTimer);a.data(e,"mediaerror",!1);if(n.length&&j&&!(1!=j.nodeType||D.test(j.nodeName||"")))g=g||b.data(e,"mediaelement"),c(e,g,w.preferFlash||i,n)};a(k).bind("ended",function(c){var e=b.data(c.target,"mediaelement");(!g||e&&"html5"!=e.isActive||a.prop(c.target,"loop"))&&setTimeout(function(){!a.prop(c.target,
|
24
|
+
"paused")&&a.prop(c.target,"loop")&&a(c.target).prop("currentTime",0).play()},1)});g||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var e=b.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=b.data(this,"mediaelement");v(this,a);j&&(!a||"html5"==a.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});p[c]=b.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(b){var e="";j&&p[c].prop._supvalue&&(e=p[c].prop._supvalue.call(this,
|
25
|
+
b),"no"==e&&(e=""));!e&&q&&(b=a.trim((b||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,c=b.data(a,"mediaelementBase")||b.data(a,"mediaelementBase",{});clearTimeout(c.loadTimer);c.loadTimer=setTimeout(function(){v(a);a=null},9)}});e=function(){b.addReady(function(c,e){a("video, audio",c).add(e.filter("video, audio")).each(function(){a.browser.msie&&8<b.browserVersion&&a.prop(this,
|
26
|
+
"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():v(this);if(j){var c,e,h=this,g=function(){var b=a.prop(h,"buffered");if(b){for(var c="",e=0,g=b.length;e<g;e++)c+=b.end(e);return c}},k=function(){var b=g();b!=e&&(e=b,a(h).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(e=g());clearTimeout(c);c=setTimeout(k,999)}).bind("emptied stalled mediaerror abort suspend",
|
27
|
+
function(a){"emptied"==a.type&&(e=!1);clearTimeout(c)})}})})};j?(b.isReady("mediaelement-core",!0),e(),q&&b.ready("WINDOWLOAD mediaelement",y)):b.ready("mediaelement-swf",e)})})(jQuery,Modernizr,jQuery.webshims);
|
28
|
+
jQuery.webshims.register("mediaelement-swf",function(a,e,i,j,g,f){var b=e.mediaelement,z=i.swfobject,k=Modernizr.audio&&Modernizr.video,A=z.hasFlashPlayerVersion("9.0.115"),h=0,i={paused:!0,ended:!1,currentSrc:"",duration:i.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)e.error("buffered index size error");else return 0},end:function(a){if(a)e.error("buffered index size error");else return 0},length:0}},w=Object.keys(i),t={currentTime:0,volume:1,
|
29
|
+
muted:!1};Object.keys(t);var q=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:g},i,t),y=/^jwplayer-/,p=function(a){if(a=j.getElementById(a.replace(y,"")))return a=e.data(a,"mediaelement"),"flash"==a.isActive?a:null},m=function(a){return(a=e.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},c=function(l,d){d=a.Event(d);d.preventDefault();a.event.trigger(d,g,l)},D=f.playerPath||e.cfg.basePath+
|
30
|
+
"jwplayer/"+(f.playerName||"player.swf"),v=f.pluginPath||e.cfg.basePath+"swf/jwwebshims.swf";e.extendUNDEFProp(f.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});e.extendUNDEFProp(f.jwVars,{screencolor:"ffffffff"});e.extendUNDEFProp(f.jwAttrs,{bgcolor:"#000000"});var o=function(l,d){var e=l.duration;if(!(e&&0<l._durationCalcs)){try{if(l.duration=l.jwapi.getPlaylist()[0].duration,!l.duration||0>=l.duration||l.duration===l._lastDuration)l.duration=e}catch(f){}l.duration&&
|
31
31
|
l.duration!=l._lastDuration?(c(l._elem,"durationchange"),("audio"==l._elemNodeName||l._callMeta)&&b.jwEvents.Model.META(a.extend({duration:l.duration},d),l),l._durationCalcs--):l._durationCalcs++}},s=function(a,d){3>a&&clearTimeout(d._canplaythroughTimer);if(3<=a&&3>d.readyState)d.readyState=a,c(d._elem,"canplay"),clearTimeout(d._canplaythroughTimer),d._canplaythroughTimer=setTimeout(function(){s(4,d)},4E3);if(4<=a&&4>d.readyState)d.readyState=a,c(d._elem,"canplaythrough");d.readyState=a};b.jwEvents=
|
32
32
|
{View:{PLAY:function(a){var d=p(a.id);if(d&&!d.stopPlayPause&&(d._ppFlag=!0,d.paused==a.state)){d.paused=!a.state;if(d.ended)d.ended=!1;c(d._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(l){var d=p(l.id);if(d&&"percentage"in l&&d._bufferedEnd!=l.percentage){d.networkState=100==l.percentage?1:2;(isNaN(d.duration)||5<l.percentage&&25>l.percentage||100===l.percentage)&&o(d,l);if(d.ended)d.ended=!1;if(d.duration){2<l.percentage&&20>l.percentage?s(3,d):20<l.percentage&&s(4,d);if(d._bufferedEnd&&
|
33
33
|
d._bufferedEnd>l.percentage)d._bufferedStart=d.currentTime||0;d._bufferedEnd=l.percentage;d.buffered.length=1;if(100==l.percentage)d.networkState=1,s(4,d);a.event.trigger("progress",g,d._elem,!0)}}},META:function(a,d){if(d=d&&d.networkState?d:p(a.id))if("duration"in a){if(!d._metadata||!((!a.height||d.videoHeight==a.height)&&a.duration===d.duration)){d._metadata=!0;var b=d.duration;if(a.duration)d.duration=a.duration;d._lastDuration=d.duration;if(a.height||a.width)d.videoHeight=a.height||0,d.videoWidth=
|
34
34
|
a.width||0;if(!d.networkState)d.networkState=2;1>d.readyState&&s(1,d);d.duration&&b!==d.duration&&c(d._elem,"durationchange");c(d._elem,"loadedmetadata")}}else d._callMeta=!0},TIME:function(a){var d=p(a.id);if(d&&d.currentTime!==a.position){d.currentTime=a.position;d.duration&&d.duration<d.currentTime&&o(d,a);2>d.readyState&&s(2,d);if(d.ended)d.ended=!1;c(d._elem,"timeupdate")}},STATE:function(a){var d=p(a.id);if(d)switch(a.newstate){case "BUFFERING":if(d.ended)d.ended=!1;s(1,d);c(d._elem,"waiting");
|
35
35
|
break;case "PLAYING":d.paused=!1;d._ppFlag=!0;d.duration||o(d,a);3>d.readyState&&s(3,d);if(d.ended)d.ended=!1;c(d._elem,"playing");break;case "PAUSED":if(!d.paused&&!d.stopPlayPause)d.paused=!0,d._ppFlag=!0,c(d._elem,"pause");break;case "COMPLETED":4>d.readyState&&s(4,d),d.ended=!0,c(d._elem,"ended")}}},Controller:{ERROR:function(a){var d=p(a.id);d&&b.setError(d._elem,a.message)},SEEK:function(a){var d=p(a.id);if(d){if(d.ended)d.ended=!1;if(d.paused)try{d.jwapi.sendEvent("play","false")}catch(b){}if(d.currentTime!=
|
36
|
-
a.position)d.currentTime=a.position,c(d._elem,"timeupdate")}},VOLUME:function(a){var d=p(a.id);if(d&&(a=a.percentage/100,d.volume!=a))d.volume=a,c(d._elem,"volumechange")},MUTE:function(a){if(!a.state){var d=p(a.id);if(d&&d.muted!=a.state)d.muted=a.state,c(d._elem,"volumechange")}}}};var
|
37
|
-
|
38
|
-
r.css({width:i,height:j})}},j=function(){if(!("flash"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,"poster");if(f&&(c="auto"==b._elem.style.width,e="auto"==b._elem.style.height,c||e))d&&(d.remove(),d=!1),
|
39
|
-
b.offsetHeight;e&&c?(i(c,e),b=null):setTimeout(function(){c=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;i(c,e);d&&(d.remove(),d=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||
|
40
|
-
j).bind("swfstageresize",function(){k||i(f,h)}).bind("emptied",function(){f=void 0;h=void 0}).triggerHandler("swfstageresize");j();a.prop(b._elem,"readyState")&&i(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};b.playerResize=function(b){b&&
|
41
|
-
d.wasSwfReady
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
"none"==
|
49
|
-
|
50
|
-
(
|
51
|
-
|
52
|
-
|
53
|
-
!0
|
54
|
-
|
55
|
-
|
56
|
-
|
36
|
+
a.position)d.currentTime=a.position,c(d._elem,"timeupdate")}},VOLUME:function(a){var d=p(a.id);if(d&&(a=a.percentage/100,d.volume!=a))d.volume=a,c(d._elem,"volumechange")},MUTE:function(a){if(!a.state){var d=p(a.id);if(d&&d.muted!=a.state)d.muted=a.state,c(d._elem,"volumechange")}}}};var J=function(c){var d=!0;a.each(b.jwEvents,function(b,e){a.each(e,function(a){try{c.jwapi["add"+b+"Listener"](a,"jQuery.webshims.mediaelement.jwEvents."+b+"."+a)}catch(e){return d=!1}})});return d},n=function(a){var d=
|
37
|
+
a.actionQueue.length,b=0,c;if(d&&"flash"==a.isActive)for(;a.actionQueue.length&&d>b;)b++,c=a.actionQueue.shift(),a.jwapi[c.fn].apply(a.jwapi,c.args);if(a.actionQueue.length)a.actionQueue=[]},F=function(b){b&&(b._ppFlag===g&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag===g||!b.paused))try{a(b._elem).play()}catch(d){}},1)},K=function(b){if(b&&"video"==b._elemNodeName){var d,c,e,f,h,r,g,k,i=function(i,j){if(j&&i&&!(1>j||1>i||"flash"!=b.isActive))if(d&&
|
38
|
+
(d.remove(),d=!1),f=i,h=j,clearTimeout(g),c="auto"==b._elem.style.width,e="auto"==b._elem.style.height,c||e){r=r||a(b._elem).getShadowElement();var m;c&&!e?(m=r.height(),i*=m/j,j=m):!c&&e&&(m=r.width(),j*=m/i,i=m);k=!0;setTimeout(function(){k=!1},9);r.css({width:i,height:j})}},j=function(){if(!("flash"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,"poster");if(f&&(c="auto"==b._elem.style.width,e="auto"==b._elem.style.height,c||e))d&&(d.remove(),d=!1),
|
39
|
+
d=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),d.bind("load error alreadycomplete",function(){clearTimeout(g);var b=this,c=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&c?(i(c,e),b=null):setTimeout(function(){c=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;i(c,e);d&&(d.remove(),d=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||
|
40
|
+
this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){i(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize",function(){k||i(f,h)}).bind("emptied",function(){f=void 0;h=void 0}).triggerHandler("swfstageresize");j();a.prop(b._elem,"readyState")&&i(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};b.playerResize=function(b){b&&
|
41
|
+
(b=j.getElementById(b.replace(y,"")))&&a(b).triggerHandler("swfstageresize")};a(j).bind("emptied",function(a){a=m(a.target);F(a)});var B;b.jwPlayerReady=function(b){var d=p(b.id),c=0,f=function(){if(!(9<c))if(c++,J(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var h=parseFloat(b.version,10);(5.6>h||6<=h)&&e.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=!0;d.tryedReframeing=0;n(d);F(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,9*c),2<c&&9>d.tryedReframeing&&
|
42
|
+
(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(B);d.jwData=b;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);f()}};var E=a.noop;if(k){var L={play:1,playing:1},G="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),H=G.map(function(a){return a+
|
43
|
+
".webshimspolyfill"}).join(" "),M=function(b){var d=e.data(b.target,"mediaelement");d&&(b.originalEvent&&b.originalEvent.type===b.type)==("flash"==d.activating)&&(b.stopImmediatePropagation(),L[b.type]&&d.isActive!=d.activating&&a(b.target).pause())},E=function(b){a(b).unbind(H).bind(H,M);G.forEach(function(a){e.moveToFirstEvent(b,a)})};E(j)}b.setActive=function(b,d,c){c||(c=e.data(b,"mediaelement"));if(c&&c.isActive!=d){"html5"!=d&&"flash"!=d&&e.warn("wrong type for mediaelement activating: "+d);
|
44
|
+
var f=e.data(b,"shadowData");c.activating=d;a(b).pause();c.isActive=d;"flash"==d?(f.shadowElement=f.shadowFocusElement=c.shadowElem[0],a(b).hide().getShadowElement().show()):(a(b).show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1)}};var N=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(e){if(e){var f=b,h=e.networkState;
|
45
|
+
for(s(0,e);--f;)delete e[a[f]];e.actionQueue=[];e.buffered.length=0;h&&c(e._elem,"emptied")}}}(),I=function(b,d){var c=b._elem,e=b.shadowElem;a(c)[d?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!d?e.css({width:0,height:0}):e.css({width:c.style.width||a(c).width(),height:c.style.height||a(c).height()})};b.createSWF=function(c,d,g){if(A){1>h?h=1:h++;var i=a.extend({},f.jwVars,{image:a.prop(c,"poster")||"",file:d.srcProp}),j=a(c).data("jwvars")||{};if(g&&g.swfCreated)b.setActive(c,
|
46
|
+
"flash",g),N(g),g.currentSrc=d.srcProp,a.extend(i,j),f.changeJW(i,c,d,g,"load"),x(c,"sendEvent",["LOAD",i]);else{var C=a.prop(c,"controls"),r="jwplayer-"+e.getID(c),m=a.extend({},f.jwParams,a(c).data("jwparams")),n=c.nodeName.toLowerCase(),p=a.extend({},f.jwAttrs,{name:r,id:r},a(c).data("jwattrs")),o=a('<div class="polyfill-'+n+' polyfill-mediaelement" id="wrapper-'+r+'"><div id="'+r+'"></div>').css({position:"relative",overflow:"hidden"}),g=e.data(c,"mediaelement",e.objectCreate(q,{actionQueue:{value:[]},
|
47
|
+
shadowElem:{value:o},_elemNodeName:{value:n},_elem:{value:c},currentSrc:{value:d.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)e.error("buffered index size error");else return 0},end:function(a){if(a>=g.buffered.length)e.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));I(g,C);o.insertBefore(c);k&&a.extend(g,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(i,{id:r,
|
48
|
+
controlbar:C?f.jwVars.controlbar||("video"==n?"over":"bottom"):"video"==n?"none":"bottom",icons:""+(C&&"video"==n)},j,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+v):v;e.addShadowDom(c,o);E(c);b.setActive(c,"flash",g);f.changeJW(i,c,d,g,"embed");K(g);z.embedSWF(D,r,"100%","100%","9.0.0",!1,i,m,p,function(b){if(b.success)g.jwapi=b.ref,C||a(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&o[0].parentNode||
|
49
|
+
"none"==b.ref.style.display)o.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),e.warn("flashblocker assumed");a(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),B||(clearTimeout(B),B=setTimeout(function(){var d=a(b.ref);1<d[0].offsetWidth&&1<d[0].offsetHeight&&0===location.protocol.indexOf("file:")?e.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):
|
50
|
+
(2>d[0].offsetWidth||2>d[0].offsetHeight)&&e.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},1)};var x=function(a,b,c,e){return(e=e||m(a))?(e.jwapi&&e.jwapi[b]?e.jwapi[b].apply(e.jwapi,c||[]):(e.actionQueue.push({fn:b,args:c}),10<e.actionQueue.length&&setTimeout(function(){5<e.actionQueue.length&&e.actionQueue.shift()},99)),e):!1};["audio","video"].forEach(function(b){var d={},f,g=function(a){"audio"==b&&
|
51
|
+
("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=m(this);return b?b[a]:k&&f[a].prop._supget?f[a].prop._supget.apply(this):q[a]},writeable:!1})},h=function(a,b){g(a);delete d[a].writeable;d[a].set=b};h("volume",function(a){var b=m(this);if(b){if(a*=100,!isNaN(a)){var d=b.muted;(0>a||100<a)&&e.error("volume greater or less than allowed "+a/100);x(this,"sendEvent",["VOLUME",a],b);if(d)try{b.jwapi.sendEvent("mute","true")}catch(g){}a/=100;if(!(b.volume==a||"flash"!=b.isActive))b.volume=
|
52
|
+
a,c(b._elem,"volumechange")}}else if(f.volume.prop._supset)return f.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=m(this);if(b){if(a=!!a,x(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"flash"!=b.isActive))b.muted=a,c(b._elem,"volumechange")}else if(f.muted.prop._supset)return f.muted.prop._supset.apply(this,arguments)});h("currentTime",function(a){var b=m(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=
|
53
|
+
!0;b.stopPlayPause=!1},50);x(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,c(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(d){}}}}else if(f.currentTime.prop._supset)return f.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var b=m(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),x(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag=
|
54
|
+
!0,b.paused!=("play"!=a)))b.paused="play"!=a,c(b._elem,a)},1);else if(f[a].prop._supvalue)return f[a].prop._supvalue.apply(this,arguments)}}});w.forEach(g);e.onNodeNamesPropertyModify(b,"controls",function(d,c){var f=m(this);a(this)[c?"addClass":"removeClass"]("webshims-controls");if(f){try{x(this,c?"showControls":"hideControls",[b],f)}catch(g){e.warn("you need to generate a crossdomain.xml")}"audio"==b&&I(f,c);a(f.jwapi).attr("tabindex",c?"0":"-1")}});f=e.defineNodeNameProperties(b,d,"prop")});if(A){var O=
|
55
|
+
a.cleanData,P=a.browser.msie&&9>e.browserVersion,Q={object:1,OBJECT:1};a.cleanData=function(a){var b,c,e;if(a&&(c=a.length)&&h)for(b=0;b<c;b++)if(Q[a[b].nodeName]){if("sendEvent"in a[b]){h--;try{a[b].sendEvent("play",!1)}catch(f){}}if(P)try{for(e in a[b])"function"==typeof a[b][e]&&(a[b][e]=null)}catch(g){}}return O.apply(this,arguments)}}if(!k){var u=j.createElement("a");u.style.display="none";["poster","src"].forEach(function(b){e.defineNodeNamesProperty("src"==b?["audio","video","source"]:["video"],
|
56
|
+
b,{prop:{get:function(){var c=this.getAttribute(b),e;if(null==c)return"";u.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(u).appendTo(this),e=u.getAttribute("href",4)}catch(f){e=u.getAttribute("href",4)}a(u).detach()}return e||u.href},set:function(c){a.attr(this,b,c)}}})});["autoplay","controls"].forEach(function(a){e.defineNodeNamesBooleanProperty(["audio","video"],a)});e.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},
|
57
|
+
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")}});
|
@@ -1,53 +1,55 @@
|
|
1
1
|
(function(a,b,p){var l=b.audio&&b.video,q=!1;if(l)a=document.createElement("video"),b.videoBuffered="buffered"in a,q="loop"in a,p.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),b.videoBuffered||(p.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:b.videoBuffered,d:["dom-support"]}),p.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,b,j,t,s){var g=b.mediaelement,r=b.cfg.mediaelement,
|
2
|
-
|
3
|
-
k);if(k=c.attr("media"))i.media=k;return i},w=swfobject.hasFlashPlayerVersion("9.0.115"),
|
2
|
+
n=function(c,v){var c=a(c),i={src:c.attr("src")||"",elem:c,srcProp:c.prop("src")};if(!i.src)return i;var k=c.attr("type");if(k)i.type=k,i.container=a.trim(k.split(";")[0]);else if(v||(v=c[0].nodeName.toLowerCase(),"source"==v&&(v=(c.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),k=g.getTypeForSrc(i.src,v))i.type=k,i.container=k,b.warn("you should always provide a proper mime-type using the source element. "+i.src+" detected as: "+k),a.nodeName(c[0],"source")&&c.attr("type",
|
3
|
+
k);if(k=c.attr("media"))i.media=k;return i},w=swfobject.hasFlashPlayerVersion("9.0.115"),o=function(){b.ready("mediaelement-swf",function(){if(!g.createSWF)b.modules["mediaelement-swf"].test=a.noop,b.reTest(["mediaelement-swf"],l)})};g.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",
|
4
4
|
"m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=a.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(c,b){if(-1!=c.indexOf("youtube.com/watch?")||-1!=c.indexOf("youtube.com/v/"))return"video/youtube";
|
5
5
|
var c=c.split("?")[0].split("."),c=c[c.length-1],i;a.each(g.mimeTypes[b],function(a,b){if(-1!==b.indexOf(c))return i=a,!1});return i};g.srces=function(c,b){c=a(c);if(b)c.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(b)||(b=[b]),b.forEach(function(a){var i=t.createElement("source");"string"==typeof a&&(a={src:a});i.setAttribute("src",a.src);a.type&&i.setAttribute("type",a.type);a.media&&i.setAttribute("media",a.media);c.append(i)});else{var b=[],i=c[0].nodeName.toLowerCase(),
|
6
|
-
k=
|
7
|
-
g.canSwfPlaySrces=function(c,b){var i="";w&&(c=a(c),b=b||g.srces(c),a.each(b,function(a,c){if(c.container&&c.src&&-1!=g.swfMimeTypes.indexOf(c.container))return i=c,!1}));return i};var c={};g.canNativePlaySrces=function(b,
|
8
|
-
|
9
|
-
g.setActive(a,"html5",c)):
|
10
|
-
"paused")&&a.prop(c.target,"loop")&&a(c.target).prop("currentTime",0).play()},1)});q||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(
|
11
|
-
i),"no"==b&&(b=""));!b&&w&&(i=a.trim((i||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(i)&&(b="maybe"));return b}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=this,a=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){x(c);c=null},9)}});
|
12
|
-
|
13
|
-
function(a){"emptied"==a.type&&(
|
14
|
-
jQuery.webshims.register("form-message",function(a,b,p,l,q,h){var
|
15
|
-
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){
|
16
|
-
"Value must be at or before {%max}."});
|
6
|
+
k=n(c,i);k.src?b.push(k):a("source",c).each(function(){k=n(this,i);k.src&&b.push(k)});return b}};a.fn.loadMediaSrc=function(c,b){return this.each(function(){b!==s&&(a(this).removeAttr("poster"),b&&a.attr(this,"poster",b));g.srces(this,c);a(this).mediaLoad()})};g.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
|
7
|
+
g.canSwfPlaySrces=function(c,b){var i="";w&&(c=a(c),b=b||g.srces(c),a.each(b,function(a,c){if(c.container&&c.src&&-1!=g.swfMimeTypes.indexOf(c.container))return i=c,!1}));return i};var c={};g.canNativePlaySrces=function(b,f){var i="";if(l){var b=a(b),k=(b[0].nodeName||"").toLowerCase();if(!c[k])return i;f=f||g.srces(b);a.each(f,function(a,f){if(f.type&&c[k].prop._supvalue.call(b[0],f.type))return i=f,!1})}return i};g.setError=function(c,f){f||(f="can't play sources");a(c).pause().data("mediaerror",
|
8
|
+
f);b.warn("mediaelementError: "+f);setTimeout(function(){a(c).data("mediaerror")&&a(c).trigger("mediaerror")},1)};var m=function(){var a;return function(c,i,k){b.ready("mediaelement-swf",function(){g.createSWF?g.createSWF(c,i,k):a||(a=!0,o(),m(c,i,k))})}}(),f=function(a,c,i,b,u){i||!1!==i&&c&&"flash"==c.isActive?(i=g.canSwfPlaySrces(a,b))?m(a,i,c):u?g.setError(a,!1):f(a,c,!1,b,!0):(i=g.canNativePlaySrces(a,b))?c&&"flash"==c.isActive&&g.setActive(a,"html5",c):u?(g.setError(a,!1),c&&"flash"==c.isActive&&
|
9
|
+
g.setActive(a,"html5",c)):f(a,c,!0,b,!0)},y=/^(?:embed|object|datalist)$/i,x=function(c,m){var i=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{}),k=g.srces(c),u=c.parentNode;clearTimeout(i.loadTimer);a.data(c,"mediaerror",!1);if(k.length&&u&&!(1!=u.nodeType||y.test(u.nodeName||"")))m=m||b.data(c,"mediaelement"),f(c,m,r.preferFlash||s,k)};a(t).bind("ended",function(c){var f=b.data(c.target,"mediaelement");(!q||f&&"html5"!=f.isActive||a.prop(c.target,"loop"))&&setTimeout(function(){!a.prop(c.target,
|
10
|
+
"paused")&&a.prop(c.target,"loop")&&a(c.target).prop("currentTime",0).play()},1)});q||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(f){var m=b.defineNodeNameProperty(f,"load",{prop:{value:function(){var c=b.data(this,"mediaelement");x(this,c);l&&(!c||"html5"==c.isActive)&&m.prop._supvalue&&m.prop._supvalue.apply(this,arguments)}}});c[f]=b.defineNodeNameProperty(f,"canPlayType",{prop:{value:function(i){var b="";l&&c[f].prop._supvalue&&(b=c[f].prop._supvalue.call(this,
|
11
|
+
i),"no"==b&&(b=""));!b&&w&&(i=a.trim((i||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(i)&&(b="maybe"));return b}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=this,a=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){x(c);c=null},9)}});j=function(){b.addReady(function(c,f){a("video, audio",c).add(f.filter("video, audio")).each(function(){a.browser.msie&&8<b.browserVersion&&a.prop(this,
|
12
|
+
"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():x(this);if(l){var c,f,m=this,g=function(){var c=a.prop(m,"buffered");if(c){for(var b="",i=0,f=c.length;i<f;i++)b+=c.end(i);return b}},t=function(){var c=g();c!=f&&(f=c,a(m).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(f=g());clearTimeout(c);c=setTimeout(t,999)}).bind("emptied stalled mediaerror abort suspend",
|
13
|
+
function(a){"emptied"==a.type&&(f=!1);clearTimeout(c)})}})})};l?(b.isReady("mediaelement-core",!0),j(),w&&b.ready("WINDOWLOAD mediaelement",o)):b.ready("mediaelement-swf",j)})})(jQuery,Modernizr,jQuery.webshims);
|
14
|
+
jQuery.webshims.register("form-message",function(a,b,p,l,q,h){var d=b.validityMessages,p=h.overrideMessages||h.customMessages?["customValidationMessage"]:[];d.en=d.en||d["en-US"]||{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
15
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){d.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){d.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(a){d.en.rangeOverflow[a]=
|
16
|
+
"Value must be at or before {%max}."});d["en-US"]=d["en-US"]||d.en;d[""]=d[""]||d["en-US"];d.de=d.de||{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
17
17
|
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
18
|
-
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){
|
19
|
-
|
20
|
-
p.push("validationMessage");b.activeLang({langObj:
|
21
|
-
|
22
|
-
a)))return!1});return h||""},writeable:!1}})})})});
|
23
|
-
Modernizr.formvalidation||jQuery.webshims.register("form-extend",function(a,b,p,l){b.inputTypes=b.inputTypes||{};var q=b.cfg.forms,h,
|
24
|
-
if("select"==
|
25
|
-
(g=
|
26
|
-
a.event.special.invalid.handler),b.moveToFirstEvent(c,"submit"))},teardown:a.noop,handler:function(c){if(!("submit"!=c.type||c.testedValidity||!c.originalEvent||!a.nodeName(c.target,"form")||a.prop(c.target,"noValidate"))){h=!0;c.testedValidity=!0;if(!a(c.target).checkValidity())return c.stopImmediatePropagation(),
|
27
|
-
"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return g.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=q.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(b){return!a.test(b)}}()});
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
function(){
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
a.attr(this,
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
if(
|
44
|
-
d
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
a
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
"").
|
18
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){d.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){d.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){d.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var j=
|
19
|
+
d[""];b.createValidationMessage=function(b,d){var g=j[d];g&&"string"!==typeof g&&(g=g[a.prop(b,"type")]||g[(b.nodeName||"").toLowerCase()]||g.defaultMessage);g&&"value,min,max,title,maxlength,label".split(",").forEach(function(d){if(-1!==g.indexOf("{%"+d)){var n=("label"==d?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,d))||"";g=g.replace("{%"+d+"}",n);"value"==d&&(g=g.replace("{%valueLen}",n.length))}});return g||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
|
20
|
+
b.bugs.bustedValidity)&&p.push("validationMessage");b.activeLang({langObj:d,module:"form-core",callback:function(a){j=a}});Modernizr.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var d=a("select",this);if(d[0]&&d[0].options&&d[0].options.length)b=d[0].options}return b}}});p.forEach(function(d){b.defineNodeNamesProperty(["fieldset",
|
21
|
+
"output","button"],d,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(h){var g=b.defineNodeNameProperty(h,d,{prop:{get:function(){var d=this,h="";if(!a.prop(d,"willValidate"))return h;var j=a.prop(d,"validity")||{valid:1};if(j.valid||(h=b.getContentValidationMessage(d,j)))return h;if(j.customError&&d.nodeName&&(h=Modernizr.formvalidation&&!b.bugs.bustedValidity&&g.prop._supget?g.prop._supget.call(d):b.data(d,"customvalidationMessage")))return h;a.each(j,function(a,c){if("valid"!=
|
22
|
+
a&&c&&(h=b.createValidationMessage(d,a)))return!1});return h||""},writeable:!1}})})})});
|
23
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,p,l){b.inputTypes=b.inputTypes||{};var q=b.cfg.forms,h,d=b.inputTypes,j={radio:1,checkbox:1};b.addInputType=function(c,a){d[c]=a};var t={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},s={valueMissing:function(c,m,f){if(!c.prop("required"))return!1;var d=!1;if(!("type"in f))f.type=(c[0].getAttribute("type")||
|
24
|
+
c[0].type||"").toLowerCase();if("select"==f.nodeName){if(m=!m)if(!(m=0>c[0].selectedIndex))c=c[0],m="select-one"==c.type&&2>c.size?!!a("> option:first-child",c).prop("selected"):!1;c=m}else c=j[f.type]?"checkbox"==f.type?!c.is(":checked"):!b.modules["form-core"].getGroupElements(c).filter(":checked")[0]:!m;return c},tooLong:function(){return!1},typeMismatch:function(c,a,b){if(""===a||"select"==b.nodeName)return!1;var g=!1;if(!("type"in b))b.type=(c[0].getAttribute("type")||c[0].type||"").toLowerCase();
|
25
|
+
d[b.type]&&d[b.type].mismatch&&(g=d[b.type].mismatch(a,c));return g},patternMismatch:function(c,a,f){if(""===a||"select"==f.nodeName)return!1;c=c.attr("pattern");if(!c)return!1;try{c=RegExp("^(?:"+c+")$")}catch(d){b.error('invalid pattern value: "'+c+'" | '+d),c=!1}return!c?!1:!c.test(a)}};b.addValidityRule=function(c,a){s[c]=a};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var c=this.form||this;if(!a.data(c,"invalidEventShim")&&(a(c).data("invalidEventShim",
|
26
|
+
!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(c,"submit"),b.bugs.bustedValidity&&a.nodeName(c,"form"))){var m=c.getAttribute("novalidate");c.setAttribute("novalidate","novalidate");b.data(c,"bustedNoValidate",null==m?null:m)}},teardown:a.noop,handler:function(c){if(!("submit"!=c.type||c.testedValidity||!c.originalEvent||!a.nodeName(c.target,"form")||a.prop(c.target,"noValidate"))){h=!0;c.testedValidity=!0;if(!a(c.target).checkValidity())return c.stopImmediatePropagation(),
|
27
|
+
h=!1;h=!1}}};a(l).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var g=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return g.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=q.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(b){return!a.test(b)}}()});
|
28
|
+
b.addInputType("url",{mismatch:function(){var a=q.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
|
29
|
+
return function(b){return!a.test(b)}}()});b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}});b.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},t)}}},"prop");var r=function(c){var d,f=a.prop(c,"validity");if(f)a.data(c,"cachedValidity",
|
30
|
+
f);else return!0;if(!f.valid){d=a.Event("invalid");var g=a(c).trigger(d);if(h&&!r.unhandledInvalids&&!d.isDefaultPrevented())b.validityAlert.showFor(g),r.unhandledInvalids=!0}a.removeData(c,"cachedValidity");return f.valid};b.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var c=!0,d=a("input,textarea,select",this).filter(function(){var a=b.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});r.unhandledInvalids=!1;for(var f=0,g=d.length;f<g;f++)r(d[f])||
|
31
|
+
(c=!1);return c}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){r.unhandledInvalids=!1;return r(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(c){a.removeData(this,"cachedValidity");b.data(this,"customvalidationMessage",""+c)}},willValidate:{set:a.noop,get:function(){var c={button:1,reset:1,hidden:1,image:1};return function(){var b=a(this).getNativeElement()[0];return!(b.disabled||b.readOnly||c[b.type])}}()},validity:{set:a.noop,get:function(){var c=
|
32
|
+
a(this).getNativeElement(),d=c[0],f=a.data(d,"cachedValidity");if(f)return f;f=a.extend({},t);if(!a.prop(d,"willValidate")||"submit"==d.type)return f;var g=c.val(),h={nodeName:d.nodeName.toLowerCase()};f.customError=!!b.data(d,"customvalidationMessage");if(f.customError)f.valid=!1;a.each(s,function(a,b){if(b(c,g,h))f[a]=!0,f.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",f.valid?"false":"true");d=c=null;return f}}},"prop");b.defineNodeNamesBooleanProperty(["input","textarea","select"],
|
33
|
+
"required",{set:function(c){a(this).getShadowFocusElement().attr("aria-required",!!c+"")},initAttr:!a.browser.msie||7<b.browserVersion});b.reflectProperties(["input"],["pattern"]);if(!("maxLength"in l.createElement("textarea"))){var n=function(){var c,b=0,f=a([]),d=1E9,g=function(){var a=f.prop("value"),c=a.length;c>b&&c>d&&(c=Math.max(b,d),f.prop("value",a.substr(0,c)));b=c},h=function(){clearTimeout(c);f.unbind(".maxlengthconstraint")};return function(j,i){h();if(-1<i)d=i,b=a.prop(j,"value").length,
|
34
|
+
f=a(j),f.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),f.bind("keyup.maxlengthconstraint",g),f.bind("blur.maxlengthconstraint",h),c=setInterval(g,200)}}();n.update=function(c,b){c===l.activeElement&&(null==b&&(b=a.prop(c,"maxlength")),n(e.target,b))};a(l).bind("focusin",function(c){var b;"TEXTAREA"==c.target.nodeName&&-1<(b=a.prop(c.target,"maxlength"))&&n(c.target,b)});b.defineNodeNameProperty("textarea",
|
35
|
+
"maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);n.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);n.update(this,a)}else this.setAttribute("maxlength","0"),n.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});b.defineNodeNameProperty("textarea",
|
36
|
+
"maxLength",{prop:{set:function(c){a.prop(this,"maxlength",c)},get:function(){return a.prop(this,"maxlength")}}})}var w={submit:1,button:1,image:1},o={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},{name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(c){var b=
|
37
|
+
"form"+(c.propName||c.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),f="form"+c.name,d=c.name,g="click.webshimssubmittermutate"+d,h=function(){if("form"in this&&w[this.type]){var i=a.prop(this,"form");if(i){var k=a.attr(this,f);if(null!=k&&(!c.limitedTo||k.toLowerCase()===a.prop(this,b))){var g=a.attr(i,d);a.attr(i,d,k);setTimeout(function(){if(null!=g)a.attr(i,d,g);else try{a(i).removeAttr(d)}catch(c){i.removeAttribute(d)}},9)}}}};switch(c.proptype){case "url":var j=l.createElement("form");
|
38
|
+
o[b]={prop:{set:function(c){a.attr(this,f,c)},get:function(){var c=a.attr(this,f);if(null==c)return"";j.setAttribute("action",c);return j.action}}};break;case "boolean":o[b]={prop:{set:function(c){c?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":o[b]={prop:{set:function(c){a.attr(this,f,c)},get:function(){var b=a.attr(this,f);return!b||(b=b.toLowerCase())&&!c.limitedTo[b]?c.defaultProp:
|
39
|
+
b}}};break;default:o[b]={prop:{set:function(c){a.attr(this,f,c)},get:function(){var c=a.attr(this,f);return null!=c?c:""}}}}o[f]||(o[f]={});o[f].attr={set:function(c){o[f].attr._supset.call(this,c);a(this).unbind(g).bind(g,h)},get:function(){return o[f].attr._supget.call(this)}};o[f].initAttr=!0;o[f].removeAttr={value:function(){a(this).unbind(g);o[f].removeAttr._supvalue.call(this)}}});b.defineNodeNamesProperties(["input","button"],o);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?
|
40
|
+
b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):b.bugs.bustedValidity&&b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){b.data(this,"bustedNoValidate",""+a)},get:function(){var a=b.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){b.data(this,"bustedNoValidate",null)}}});b.defineNodeNameProperty("form","noValidate",
|
41
|
+
{prop:{set:function(c){c?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});b.addReady(function(c,b){var f;a("form",c).add(b.filter("form")).bind("invalid",a.noop);try{if(c==l&&!("form"in(l.activeElement||{})))(f=a("input[autofocus], select[autofocus], textarea[autofocus]",c).eq(0).getShadowFocusElement()[0])&&f.offsetHeight&&f.offsetWidth&&f.focus()}catch(d){}});(function(){Modernizr.textareaPlaceholder=!!("placeholder"in
|
42
|
+
a("<textarea />")[0]);if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder){var c="over"==b.cfg.forms.placeholderType,d=["textarea"];Modernizr.input.placeholder||d.push("input");var f=function(a){if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a)return a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",0),a.moveStart("character",0),a.select(),!0},g=function(b,d,g,h){!1===g&&(g=a.prop(b,"value"));if(!c&&"password"!=b.type){if(!g&&h&&f(b)){var j;a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",
|
43
|
+
function(c){if(!c||!(17==c.keyCode||16==c.keyCode))b.value=a.prop(b,"value"),d.box.removeClass("placeholder-visible"),clearTimeout(j),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){f(b);clearTimeout(j);j=setTimeout(function(){f(b)},9)}).bind("blur.placeholderremove",function(){clearTimeout(j);a(b).unbind(".placeholderremove")});return}b.value=g}else if(!g&&h){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",
|
44
|
+
function(c){if(!c||!(17==c.keyCode||16==c.keyCode))d.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}d.box.removeClass("placeholder-visible")},h=function(b,d,f,h,j){if(!h&&(h=a.data(b,"placeHolder"),!h))return;a(b).unbind(".placeholderremove");if("focus"==j||!j&&b===l.activeElement)("password"==b.type||c||a(b).hasClass("placeholder-visible"))&&g(b,h,"",!0);else if(!1===d&&(d=a.prop(b,"value")),
|
45
|
+
d)g(b,h,d);else if(!1===f&&(f=a.attr(b,"placeholder")||""),f&&!d){d=h;!1===f&&(f=a.prop(b,"placeholder"));if(!c&&"password"!=b.type)b.value=f;d.box.addClass("placeholder-visible")}else g(b,h,d)},j=function(c){var c=a(c),b=c.prop("id"),d=!(!c.prop("title")&&!c.attr("aria-labelledby"));!d&&b&&(d=!!a('label[for="'+b+'"]',c[0].form)[0]);d||(b||(b=a.webshims.getID(c)),d=!!a("label #"+b)[0]);return a(d?'<span class="placeholder-text"></span>':'<label for="'+b+'" class="placeholder-text"></label>')},n=function(){var d=
|
46
|
+
{text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var d=a.data(b,"placeHolder");if(d)return d;d=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){h(this,!1,!1,d,a.type);d.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});b.form&&a(b.form).bind("reset.placeholder",function(a){setTimeout(function(){h(b,!1,!1,d,a.type)},0)});if("password"==b.type||c){d.text=j(b);d.box=a(b).wrap('<span class="placeholder-box placeholder-box-'+
|
47
|
+
(b.nodeName||"").toLowerCase()+'" />').parent();d.text.insertAfter(b).bind("mousedown.placeholder",function(){h(this,!1,!1,d,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(c,f){var g=(parseInt(a.curCSS(b,"padding"+f),10)||0)+Math.max(parseInt(a.curCSS(b,"margin"+f),10)||0,0)+(parseInt(a.curCSS(b,"border"+f+"Width"),10)||0);d.text.css("padding"+f,g)});a.curCSS(b,"lineHeight");var f={width:a(b).width(),height:a(b).height()},i=a.curCSS(b,"float");
|
48
|
+
a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(c,f){var g=a.curCSS(b,f);d.text.css(f)!=g&&d.text.css(f,g)});f.width&&f.height&&d.text.css(f);"none"!==i&&d.box.addClass("placeholder-box-"+i)}else f=function(c){a(b).hasClass("placeholder-visible")&&(g(b,d,""),c&&"submit"==c.type&&setTimeout(function(){c.isDefaultPrevented()&&h(b,!1,!1,d)},9))},a(p).bind("beforeunload",f),d.box=a(b),b.form&&a(b.form).submit(f);return d},update:function(c,f){if(!d[a.prop(c,"type")]&&!a.nodeName(c,
|
49
|
+
"textarea"))b.warn("placeholder not allowed on type: "+a.prop(c,"type"));else{var g=n.create(c);g.text&&g.text.text(f);h(c,!1,f,g)}}}}();a.webshims.publicMethods={pHolder:n};d.forEach(function(a){b.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b.contentAttr(this,"placeholder",a);n.update(this,a)},get:function(){return b.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});d.forEach(function(c){var d={},f;["attr","prop"].forEach(function(c){d[c]={set:function(d){var g=b.contentAttr(this,
|
50
|
+
"placeholder");a.removeData(this,"cachedValidity");var i=f[c]._supset.call(this,d);g&&"value"in this&&h(this,d,g);return i},get:function(){return a(this).hasClass("placeholder-visible")?"":f[c]._supget.call(this)}}});f=b.defineNodeNameProperty(c,"value",d)})}})()});
|
51
|
+
jQuery.webshims.ready("dom-support",function(a,b,p,l){(function(){if(!("value"in l.createElement("output"))){b.defineNodeNameProperty("output","value",{prop:{set:function(b){var d=a.data(this,"outputShim");d||(d=q(this));d(b)},get:function(){return b.contentAttr(this,"value")||a(this).text()||""}}});b.onNodeNamesPropertyModify("input","value",function(b,d,j){"removeAttr"!=j&&(d=a.data(this,"outputShim"))&&d(b)});var q=function(h){if(!h.getAttribute("aria-live")){var h=a(h),d=(h.text()||"").trim(),
|
52
|
+
j=h.attr("id"),t=h.attr("for"),s=a('<input class="output-shim" type="text" disabled name="'+(h.attr("name")||"")+'" value="'+d+'" style="display: none !important;" />').insertAfter(h),g=s[0].form||l,r=function(a){s[0].value=a;a=s[0].value;h.text(a);b.contentAttr(h[0],"value",a)};h[0].defaultValue=d;b.contentAttr(h[0],"value",d);h.attr({"aria-live":"polite"});j&&(s.attr("id",j),h.attr("aria-labelledby",b.getID(a('label[for="'+j+'"]',g))));t&&(j=b.getID(h),t.split(" ").forEach(function(a){(a=l.getElementById(a))&&
|
53
|
+
a.setAttribute("aria-controls",j)}));h.data("outputShim",r);s.data("outputShim",r);return r}};b.addReady(function(b,d){a("output",b).add(d.filter("output")).each(function(){q(this)})})}})();(function(){var q={updateInput:1,input:1},h={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},d=function(a){var d,h=a.prop("value"),g=function(d){if(a){var c=a.prop("value");c!==h&&(h=c,(!d||!q[d.type])&&b.triggerInlineForm&&b.triggerInlineForm(a[0],"input"))}},l,n=function(){clearTimeout(l);
|
54
|
+
l=setTimeout(g,9)},p=function(){a.unbind("focusout",p).unbind("keyup keypress keydown paste cut",n).unbind("input change updateInput",g);clearInterval(d);setTimeout(function(){g();a=null},1)};clearInterval(d);d=setInterval(g,99);n();a.bind("keyup keypress keydown paste cut",n).bind("focusout",p).bind("input updateInput change",g)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(l).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
|
55
|
+
"").toLowerCase()&&!h[b.target.type]&&d(a(b.target))})})();b.isReady("form-output",!0)});
|
@@ -1,73 +1,75 @@
|
|
1
|
-
(function(a){if(!Modernizr.genericDOM){var
|
2
|
-
jQuery.webshims.register("dom-extend",function(a,
|
3
|
-
!0)),null==
|
4
|
-
"shadowData");return a&&a[
|
5
|
-
("attr"==
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
p)return
|
17
|
-
|
18
|
-
|
19
|
-
(function(a,
|
20
|
-
|
21
|
-
jQuery.webshims.register("form-datalist",function(a,
|
22
|
-
try{
|
23
|
-
|
24
|
-
j.markItem(
|
25
|
-
if(!
|
26
|
-
this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&b.input.id&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){var
|
27
|
-
|
28
|
-
b)},_resetListCached:function(a){var
|
29
|
-
"fontFamily")});var
|
30
|
-
h.indexOf(a)&&
|
31
|
-
this.showHideOptions()},showHideOptions:function(b){var
|
32
|
-
|
33
|
-
this.
|
34
|
-
9)):b.timedHide()});a(
|
35
|
-
-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;
|
36
|
-
0);0>
|
37
|
-
(b=0),
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
(
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
function(a,c){
|
49
|
-
|
50
|
-
a.
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
b.
|
58
|
-
|
59
|
-
|
60
|
-
function(
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
"
|
71
|
-
|
72
|
-
|
73
|
-
|
1
|
+
(function(a){if(!Modernizr.genericDOM){var c=document,n,k,p=/<([\w:]+)/,o={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||o[(p.exec(a)||["",""])[1].toLowerCase()])return a;if(!k){n=c.body;if(!n)return a;k=c.createElement("div");k.style.display="none"}var s=k.cloneNode(!1);n.appendChild(s);s.innerHTML=a;n.removeChild(s);return s.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(a,c,n,k,p){var o=c.modules,q=/\s*,\s*/,s={},u={},r={},g={},v={},w=a.fn.val,b=function(e,d,f,i,h){return h?w.call(a(e)):w.call(a(e),f)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?w.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return w.apply(this,arguments);var f=a.isFunction(e);return this.each(function(i){d=this;1===d.nodeType&&(f?(i=e.call(d,i,a.prop(d,"value",p,"val",
|
3
|
+
!0)),null==i&&(i=""),a.prop(d,"value",i,"val")):a.prop(d,"value",e,"val"))})};var j="_webshimsLib"+Math.round(1E3*Math.random()),t=function(e,d,f){e=e.jquery?e[0]:e;if(!e)return f||{};var i=a.data(e,j);f!==p&&(i||(i=a.data(e,j,{})),d&&(i[d]=f));return d?i&&i[d]:i};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(e){a.fn[e.name]=function(){return this.map(function(){var a=t(this,
|
4
|
+
"shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){s[e]=a[e];a[e]=function(d,f,i,h,j){var m="val"==h,l=!m?s[e]:b;if(!d||!u[f]||1!==d.nodeType||!m&&h&&"attr"==e&&a.attrFn[f])return l(d,f,i,h,j);var y=(d.nodeName||"").toLowerCase(),c=r[y],t="attr"==e&&(!1===i||null===i)?"removeAttr":e,g,o,x;c||(c=r["*"]);c&&(c=c[f]);c&&(g=c[t]);if(g){if("value"==f)o=g.isVal,g.isVal=m;if("removeAttr"===t)return g.value.call(d);if(i===p)return g.get?g.get.call(d):g.value;g.set&&
|
5
|
+
("attr"==e&&!0===i&&(i=f),x=g.set.call(d,i));if("value"==f)g.isVal=o}else x=l(d,f,i,h,j);if((i!==p||"removeAttr"===t)&&v[y]&&v[y][f]){var q;q="removeAttr"==t?!1:"prop"==t?!!i:!0;v[y][f].forEach(function(a){if(!a.only||(a.only="prop"==e)||"attr"==a.only&&"prop"!=e)a.call(d,i,q,m?"val":t,e)})}return x};g[e]=function(d,f,i){r[d]||(r[d]={});r[d][f]||(r[d][f]={});var h=r[d][f][e],m=function(a,d,h){return d&&d[a]?d[a]:h&&h[a]?h[a]:"prop"==e&&"value"==f?function(a){return i.isVal?b(this,f,a,!1,0===arguments.length):
|
6
|
+
s[e](this,f,a)}:"prop"==e&&"value"==a&&i.value.apply?function(a){var d=s[e](this,f);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return s[e](this,f,a)}};r[d][f][e]=i;if(i.value===p){if(!i.set)i.set=i.writeable?m("set",i,h):c.cfg.useStrict&&"prop"==f?function(){throw f+" is readonly on "+d;}:a.noop;if(!i.get)i.get=m("get",i,h)}["value","get","set"].forEach(function(a){i[a]&&(i["_sup"+a]=m(a,h))})}});var x=!a.browser.msie||8<parseInt(a.browser.version,10),h=function(){var a=c.getPrototypeOf(k.createElement("foobar")),
|
7
|
+
d=Object.prototype.hasOwnProperty;return function(f,i,h){var b=k.createElement(f),j=c.getPrototypeOf(b);if(x&&j&&a!==j&&(!b[i]||!d.call(b,i))){var l=b[i];h._supvalue=function(){return l&&l.apply?l.apply(this,arguments):l};j[i]=h.value}else h._supvalue=function(){var a=t(this,"propValue");return a&&a[i]&&a[i].apply?a[i].apply(this,arguments):a&&a[i]},m.extendValue(f,i,h.value);h.value._supvalue=h._supvalue}}(),m=function(){var e={};c.addReady(function(d,f){var i={},h=function(e){i[e]||(i[e]=a(d.getElementsByTagName(e)),
|
8
|
+
f[0]&&a.nodeName(f[0],e)&&(i[e]=i[e].add(f)))};a.each(e,function(a,e){h(a);!e||!e.forEach?c.warn("Error: with "+a+"-property. methods: "+e):e.forEach(function(e){i[a].each(e)})});i=null});var d,f=a([]),i=function(f,i){e[f]?e[f].push(i):e[f]=[i];a.isDOMReady&&(d||a(k.getElementsByTagName(f))).each(i)};return{createTmpCache:function(e){a.isDOMReady&&(d=d||a(k.getElementsByTagName(e)));return d||f},flushTmpCache:function(){d=null},content:function(e,d){i(e,function(){var e=a.attr(this,d);null!=e&&a.attr(this,
|
9
|
+
d,e)})},createElement:function(a,e){i(a,e)},extendValue:function(e,d,f){i(e,function(){a(this).each(function(){t(this,"propValue",{})[d]=this[d];this[d]=f})})}}}(),l=function(a,d){if(a.defaultValue===p)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(c,{getID:function(){var e=(new Date).getTime();return function(d){var d=a(d),f=d.attr("id");f||(e++,f="ID-"+e,d.attr("id",f));return f}}(),extendUNDEFProp:function(e,
|
10
|
+
d){a.each(d,function(a,d){a in e||(e[a]=d)})},createPropDefault:l,data:t,moveToFirstEvent:function(){var e=a._data?"_data":"data";return function(d,f,i){if((d=(a[e](d,"events")||{})[f])&&1<d.length)f=d.pop(),i||(i="bind"),"bind"==i&&d.delegateCount?d.splice(d.delegateCount,0,f):d.unshift(f)}}(),addShadowDom:function(e,d,f){f=f||{};e.jquery&&(e=e[0]);d.jquery&&(d=d[0]);if(!f.shadowFocusElement)f.shadowFocusElement=d;var i=a.data(e,j)||a.data(e,j,{}),h=a.data(d,j)||a.data(d,j,{});i.hasShadow=d;h.nativeElement=
|
11
|
+
e;h.shadowData=i.shadowData={nativeElement:e,shadowElement:d,shadowFocusElement:f.shadowFocusElement};f.shadowChilds&&f.shadowChilds.each(function(){t(this,"shadowData",h.shadowData)});if(f.data)i.shadowData.data=f.data,h.shadowData.data=f.data;f=null},propTypes:{standard:function(a){l(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){l(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(e,d){"string"==typeof d&&(d=d.split(q));d.forEach(function(d){c.defineNodeNamesProperty(e,d,{prop:{set:function(e){a.attr(this,d,e)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(e,d,f){u[d]=!0;if(f.reflect)c.propTypes[f.propType||"standard"](f);["prop","attr","removeAttr"].forEach(function(i){var b=f[i];b&&(b="prop"===i?a.extend({writeable:!0},b):a.extend({},
|
13
|
+
b,{writeable:!0}),g[i](e,d,b),"*"!=e&&c.cfg.extendNative&&"prop"==i&&b.value&&a.isFunction(b.value)&&h(e,d,b),f[i]=b)});f.initAttr&&m.content(e,d);return f},defineNodeNameProperties:function(a,d,f,i){for(var h in d)!i&&d[h].initAttr&&m.createTmpCache(a),f&&(d[h][f]?c.log("override: "+a+"["+h+"] for "+f):(d[h][f]={},["value","set","get"].forEach(function(a){a in d[h]&&(d[h][f][a]=d[h][a],delete d[h][a])}))),d[h]=c.defineNodeNameProperty(a,h,d[h]);i||m.flushTmpCache();return d},createElement:function(e,
|
14
|
+
d,f){var h;a.isFunction(d)&&(d={after:d});m.createTmpCache(e);d.before&&m.createElement(e,d.before);f&&(h=c.defineNodeNameProperties(e,f,!1,!0));d.after&&m.createElement(e,d.after);m.flushTmpCache();return h},onNodeNamesPropertyModify:function(e,d,f,h){"string"==typeof e&&(e=e.split(q));a.isFunction(f)&&(f={set:f});e.forEach(function(a){v[a]||(v[a]={});"string"==typeof d&&(d=d.split(q));f.initAttr&&m.createTmpCache(a);d.forEach(function(e){v[a][e]||(v[a][e]=[],u[e]=!0);if(f.set){if(h)f.set.only=h;
|
15
|
+
v[a][e].push(f.set)}f.initAttr&&m.content(a,e)});m.flushTmpCache()})},defineNodeNamesBooleanProperty:function(e,d,f){f||(f={});if(a.isFunction(f))f.set=f;c.defineNodeNamesProperty(e,d,{attr:{set:function(a){this.setAttribute(d,a);f.set&&f.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?p:d}},removeAttr:{value:function(){this.removeAttribute(d);f.set&&f.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:f.initAttr||!1})},contentAttr:function(a,d,f){if(a.nodeName){if(f===
|
16
|
+
p)return f=(a.attributes[d]||{}).value,null==f?p:f;"boolean"==typeof f?f?a.setAttribute(d,d):a.removeAttribute(d):a.setAttribute(d,f)}},activeLang:function(){var e=[],d={},f,h,b=/:\/\/|^\.*\//,m=function(e,d,f){return d&&f&&-1!==a.inArray(d,f.availabeLangs||[])?(e.loading=!0,f=f.langSrc,b.test(f)||(f=c.cfg.basePath+f),c.loader.loadScript(f+d+".js",function(){e.langObj[d]?(e.loading=!1,l(e,!0)):a(function(){e.langObj[d]&&l(e,!0);e.loading=!1})}),!0):!1},j=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},
|
17
|
+
l=function(a,e){if(a.activeLang!=f&&a.activeLang!==h){var d=o[a.module].options;if(a.langObj[f]||h&&a.langObj[h])a.activeLang=f,a.callback(a.langObj[f]||a.langObj[h],f),j(a.module);else if(!e&&!m(a,f,d)&&!m(a,h,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],f),j(a.module)}};return function(b){if("string"==typeof b&&b!==f)f=b,h=f.split("-")[0],f==h&&(h=!1),a.each(e,function(a,e){l(e)});else if("object"==typeof b)if(b.register)d[b.register]||(d[b.register]=[]),d[b.register].push(b),
|
18
|
+
b.callback();else{if(!b.activeLang)b.activeLang="";e.push(b);l(b)}return f}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){c[a]=function(a,e,h,b){"string"==typeof a&&(a=a.split(q));var m={};a.forEach(function(a){m[a]=c[d](a,e,h,b)});return m}});c.isReady("webshimLocalization",!0)});
|
19
|
+
(function(a,c){var n=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<n)&&(!a.browser.msie||12>n&&7<n)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(a,c){a.getAttribute("role")||a.setAttribute("role",c)};a.webshims.addReady(function(o,q){a.each(k,function(c,n){for(var k=a(c,o).add(q.filter(c)),b=0,j=k.length;b<j;b++)p(k[b],n)});if(o===c){var n=c.getElementsByTagName("header")[0],u=c.getElementsByTagName("footer"),r=u.length;
|
20
|
+
n&&!a(n).closest("section, article")[0]&&p(n,"banner");r&&(n=u[r-1],a(n).closest("section, article")[0]||p(n,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
jQuery.webshims.register("form-datalist",function(a,c,n,k,p){c.propTypes.element=function(o){c.createPropDefault(o,"attr");if(!o.prop)o.prop={get:function(){var c=o.attr.get.call(this);c&&(c=a("#"+c)[0])&&o.propNodeName&&!a.nodeName(c,o.propNodeName)&&(c=null);return c||null},writeable:!1}};(function(){var o=a.webshims.cfg.forms,q=Modernizr.input.list;if(!q||o.customDatalist){var s=0,u={submit:1,button:1,reset:1,hidden:1,range:1,date:1},r=a.browser.msie&&7>parseInt(a.browser.version,10),g={},v=function(a){if(!a)return[];
|
22
|
+
if(g[a])return g[a];var j;try{j=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(c){}g[a]=j||[];return j||[]},w={_create:function(b){if(!u[a.prop(b.input,"type")]){var j=b.datalist,c=a.data(b.input,"datalistWidget");if(j&&c&&c.datalist!==j)c.datalist=j,c.id=b.id,a(c.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(c,"_resetListCached")),c._resetListCached();else if(j){if(!(c&&c.datalist===j)){s++;var g=this;this.hideList=a.proxy(g,"hideList");
|
23
|
+
this.timedHide=function(){clearTimeout(g.hideTimer);g.hideTimer=setTimeout(g.hideList,9)};this.datalist=j;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill" />');o.positionDatalist?this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",
|
24
|
+
function(h){var m=a("li:not(.hidden-item)",g.shadowList),j="mousedown"==h.type||"click"==h.type;g.markItem(m.index(h.currentTarget),j,m);"click"==h.type&&(g.hideList(),a(b.input).trigger("datalistselect"));return"mousedown"!=h.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete","off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!g.triggeredByDatalist)g.changedValue=!1,g.showHideOptions()}).bind("keydown.datalistWidget",function(h){var m=
|
25
|
+
h.keyCode,j;if(40==m&&!g.showList())return g.markItem(g.index+1,!0),!1;if(g.isListVisible){if(38==m)return g.markItem(g.index-1,!0),!1;if(!h.shiftKey&&(33==m||36==m))return g.markItem(0,!0),!1;if(!h.shiftKey&&(34==m||35==m))return h=a("li:not(.hidden-item)",g.shadowList),g.markItem(h.length-1,!0,h),!1;if(13==m||27==m)return 13==m&&(j=a("li.active-item:not(.hidden-item)",g.shadowList),g.changeValue(a("li.active-item:not(.hidden-item)",g.shadowList))),g.hideList(),j&&j[0]&&a(b.input).trigger("datalistselect"),
|
26
|
+
!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&g.showList()}).bind("mousedown.datalistWidget",function(){(this==k.activeElement||a(this).is(":focus"))&&g.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&b.input.id&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){var h=a.prop(b.input,
|
27
|
+
"value"),j=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!g.storedOptions)g.storedOptions=v(j);if(h&&-1==g.storedOptions.indexOf(h)&&(g.storedOptions.push(h),h=g.storedOptions,j)){h=h||[];try{localStorage.setItem("storedDatalistOptions"+j,JSON.stringify(h))}catch(c){}}});a(n).bind("unload",function(){g.destroy()})}}else c&&c.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(k).unbind(".datalist"+
|
28
|
+
this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===p?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var j=this,g;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(n.QUnit||(g=a&&k.activeElement==j.input)?j.updateListOptions(g):c.ready("WINDOWLOAD",function(){j.updateTimer=setTimeout(function(){j.updateListOptions();
|
29
|
+
j=null;s=1},200+100*s)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.curCSS(this.input,"fontSize"),fontFamily:a.curCSS(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var j=[],g=[],c=[],h,m,l,e;for(m=a.prop(this.datalist,"options"),l=0,e=m.length;l<e;l++){h=m[l];if(h.disabled)return;h={value:a(h).val()||"",text:a.trim(a.attr(h,"label")||h.textContent||h.innerText||a.text([h])||
|
30
|
+
""),className:h.className||"",style:a.attr(h,"style")||""};h.text?h.text!=h.value&&(h.className+=" different-label-value"):h.text=h.value;g[l]=h.value;c[l]=h}if(!this.storedOptions)this.storedOptions=v((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==g.indexOf(a)&&c.push({value:a,text:a,className:"stored-suggest",style:""})});for(l=0,e=c.length;l<e;l++)m=c[l],j[l]='<li class="'+m.className+'" style="'+m.style+'" tabindex="-1" role="listitem"><span class="option-label">'+
|
31
|
+
m.text+'</span> <span class="option-value">'+m.value+"</span></li>";this.arrayOptions=c;this.shadowList.html('<div><ul role="list" class="'+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom">'+j.join("\n")+"</ul></div>");a.fn.bgIframe&&r&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var j=a.prop(this.input,"value").toLowerCase();if(!(j===this.lastUpdatedValue||this.lastUnfoundValue&&0===j.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=
|
32
|
+
j;var c=!1,g=this.searchStart,h=a("li",this.shadowList);j?this.arrayOptions.forEach(function(b,l){var e;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():b.text.toLowerCase();e=b.lowerText.indexOf(j);(e=g?!e:-1!==e)?(a(h[l]).removeClass("hidden-item"),c=!0):a(h[l]).addClass("hidden-item")}):h.length&&(h.removeClass("hidden-item"),c=!0);this.hasViewableData=c;!b&&c&&this.showList();if(!c)this.lastUnfoundValue=j,this.hideList()}},setPos:function(){var b=o.positionDatalist?
|
33
|
+
a(this.input).position():c.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this,c;b.setPos();b.shadowList.addClass("datalist-visible");
|
34
|
+
a(k).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(n).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+"orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(c);c=setTimeout(function(){b.setPos()},9)});clearTimeout(c);return!0},hideList:function(){if(!this.isListVisible)return!1;
|
35
|
+
var b=this,g=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active").scrollTop(0).find("li.active-item").removeClass("active-item");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;c.triggerInlineForm&&c.triggerInlineForm(b.input,"input");if(b.input==k.activeElement||a(b.input).is(":focus"))a(b.input).one("blur",g);else g();b.triggeredByDatalist=!1}a(k).unbind(".datalist"+b.id);a(n).unbind(".datalist"+
|
36
|
+
b.id);return!0},scrollIntoView:function(b){var c=a("ul",this.shadowList),g=a("div",this.shadowList),o=b.position();o.top-=(parseInt(c.css("paddingTop"),10)||0)+(parseInt(c.css("marginTop"),10)||0)+(parseInt(c.css("borderTopWidth"),10)||0);0>o.top?g.scrollTop(g.scrollTop()+o.top-2):(o.top+=b.outerHeight(),b=g.height(),o.top>b&&g.scrollTop(g.scrollTop()+(o.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",b).text(),c=a.prop(this.input,"value");if(b!=c)a(this.input).prop("value",
|
37
|
+
b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,c,g){g=g||a("li:not(.hidden-item)",this.shadowList);if(g.length)0>b?b=g.length-1:b>=g.length&&(b=0),g.removeClass("active-item"),this.shadowList.addClass("list-item-active"),g=g.filter(":eq("+b+")").addClass("active-item"),c&&(this.changeValue(g),this.scrollIntoView(g)),this.index=b}};(function(){q||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=a("select",this);b[0]?b=b[0].options:
|
38
|
+
(b=a("option",this).get(),b.length&&c.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var c=a.data(this,"datalistWidget");c?(c._autocomplete=b,"off"==b&&c.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",
|
39
|
+
b)}}}};if(!q||!1 in a("<input />")[0])b.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),c=null,g;if(!b)return c;g=a.attr(this,"value");if(!g)return c;b=a.prop(b,"options");if(!b.length)return c;a.each(b,function(h,b){if(g==a.prop(b,"value"))return c=b,!1});return c}}};b.list=q?{attr:{get:function(){var b=c.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");return null==b?p:b},set:function(b){a.data(this,"datalistListAttr",b);
|
40
|
+
c.objectCreate(w,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=c.contentAttr(this,"list");return null==a?p:a},set:function(b){c.contentAttr(this,"list",b);c.objectCreate(w,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};c.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=
|
41
|
+
!0,a.event.customEvent.datalistselect=!0;c.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
42
|
+
(function(a){var c=window.Modernizr,n=a.webshims,k=n.bugs,p=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required /><input type="date" required name="a" /><input type="submit" /></form>'),o=function(){if(p[0].querySelector)try{k.findRequired=!p[0].querySelector("select:required")}catch(a){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;n.capturingEventPrevented=function(c){if(!c._isPolyfilled){var o=c.isDefaultPrevented,
|
43
|
+
k=c.preventDefault;c.preventDefault=function(){clearTimeout(a.data(c.target,c.type+"DefaultPrevented"));a.data(c.target,c.type+"DefaultPrevented",setTimeout(function(){a.removeData(c.target,c.type+"DefaultPrevented")},30));return k.apply(this,arguments)};c.isDefaultPrevented=function(){return!(!o.apply(this,arguments)&&!a.data(c.target,c.type+"DefaultPrevented"))};c._isPolyfilled=!0}};if(!c.formvalidation||k.bustedValidity)o();else{c.bugfreeformvalidation=!0;if(window.opera||a.browser.webkit||window.testGoodWithFix){var q=
|
44
|
+
a("input",p).eq(0),s,u=function(g){var o=["form-extend","form-message","form-native-fix"];g&&(g.preventDefault(),g.stopImmediatePropagation());clearTimeout(s);setTimeout(function(){p&&(p.remove(),p=q=null)},9);if(!c.bugfreeformvalidation)n.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),n.modules["form-extend"].test=a.noop;n.isReady("form-number-date-api")&&o.push("form-number-date-api");n.reTest(o);if(a.browser.opera||window.testGoodWithFix)n.loader.loadList(["dom-extend"]),n.ready("dom-extend",
|
45
|
+
function(){var g=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(b){var c=n.defineNodeNameProperty(b,"checkValidity",{prop:{value:function(){n.fromSubmit||a(this).bind("invalid.checkvalidity",g);n.fromCheckValidity=!0;var b=c.prop._supvalue.apply(this,arguments);n.fromSubmit||a(this).unbind("invalid.checkvalidity",g);n.fromCheckValidity=!1;return b}}})});c.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
46
|
+
n.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var c=a("select",this);if(c[0]&&c[0].options&&c[0].options.length)b=c[0].options}return b}}})})};p.appendTo("head");if(window.opera||window.testGoodWithFix){o();k.validationMessage=!q.prop("validationMessage");if((c.inputtypes||{}).date){try{q.prop("valueAsNumber",0)}catch(r){}k.valueAsNumberSet="1970-01-01"!=q.prop("value")}q.prop("value","")}p.bind("submit",function(a){c.bugfreeformvalidation=
|
47
|
+
!1;u(a)});s=setTimeout(function(){p&&p.triggerHandler("submit")},9);n.capturingEvents(["input"]);n.capturingEvents(["invalid"],!0);a("input, select",p).bind("invalid",u).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}n.capturingEvents(["input"]);n.capturingEvents(["invalid"],!0)}})(jQuery);
|
48
|
+
jQuery.webshims.register("form-core",function(a,c,n,k,p,o){var q={radio:1},s={checkbox:1,radio:1},u=a([]),r=c.bugs,g=function(h){var h=a(h),b,c;b=u;if(q[h[0].type])c=h.prop("form"),b=(b=h[0].name)?c?a(c[b]):a(k.getElementsByName(b)).filter(function(){return!a.prop(this,"form")}):h,b=b.filter('[type="radio"]');return b},v=c.getContentValidationMessage=function(b,g){var l=b.getAttribute("x-moz-errormessage")||b.getAttribute("data-errormessage")||"";if(l&&-1!=l.indexOf("{")){try{l=jQuery.parseJSON(l)}catch(e){return l}"object"==
|
49
|
+
typeof l&&(g=g||a.prop(b,"validity")||{valid:1},g.valid||a.each(g,function(a,e){if(e&&"valid"!=a&&l[a])return l=l[a],!1}));c.data(b,"contentErrorMessage",l);if("object"==typeof l)l=l.defaultMessage}return l||""},w={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,
|
50
|
+
"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!w[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!w[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr.filters[b]=
|
51
|
+
a.expr.filters[b+"-element"]});var b=a.event.customEvent||{};(r.bustedValidity||r.findRequired)&&function(){var b=a.find,c=a.find.matchesSelector,g=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,e=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,f=function(f){var c=arguments,c=a.call(c,1,c.length);c.unshift(f.replace(g,e));return b.apply(this,c)},c;for(c in b)b.hasOwnProperty(c)&&(f[c]=b[c]);return f}();if(!Modernizr.prefixed||
|
52
|
+
Modernizr.prefixed("matchesSelector",k.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(g,e);return c.call(this,a,b)}}();var j=a.prop,t={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,l){var e=j.apply(this,arguments);if(b&&"form"in b&&t[c]&&l!==p&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),"checked"==c&&l&&g(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");
|
53
|
+
return e};var x=function(b,c){var g;a.each(b,function(e,b){if(b)return g="customError"==e?a.prop(c,"validationMessage"):e,!1});return g};a(k).bind("focusout change refreshvalidityui",function(b){if(b.target&&"submit"!=b.target.type&&a.prop(b.target,"willValidate")){var c=a.data(b.target,"webshimsswitchvalidityclass");c&&clearTimeout(c);a.data(b.target,"webshimsswitchvalidityclass",setTimeout(function(){var c=a(b.target).getNativeElement()[0],e=a.prop(c,"validity"),d=a(c).getShadowElement(),f,i,o,
|
54
|
+
m;e.valid?d.hasClass("form-ui-valid")||(f="form-ui-valid",i="form-ui-invalid",m="changedvaliditystate",o="changedvalid",s[c.type]&&c.checked&&g(c).not(c).removeClass(i).addClass(f).removeAttr("aria-invalid"),a.removeData(c,"webshimsinvalidcause")):(e=x(e,c),a.data(c,"webshimsinvalidcause")!=e&&(a.data(c,"webshimsinvalidcause",e),m="changedvaliditystate"),d.hasClass("form-ui-invalid")||(f="form-ui-invalid",i="form-ui-valid",s[c.type]&&!c.checked&&g(c).not(c).removeClass(i).addClass(f),o="changedinvalid"));
|
55
|
+
f&&(d.addClass(f).removeClass(i),setTimeout(function(){a(c).trigger(o)},0));m&&setTimeout(function(){a(c).trigger(m)},0);a.removeData(b.target,"webshimsswitchvalidityclass")},9))}});b.changedvaliditystate=!0;b.changedvalid=!0;b.changedinvalid=!0;b.refreshvalidityui=!0;c.triggerInlineForm=function(b,c){a(b).trigger(c)};c.modules["form-core"].getGroupElements=g;r=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==k.compatMode?a(k.body):a(k.documentElement)};r();c.ready("DOM",r);c.getRelOffset=
|
56
|
+
function(b,c){var b=a(b),g=a(c).offset(),e;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){e=b.offset()});g.top-=e.top;g.left-=e.left;return g};c.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",g,o=!1,e=!1,d,f={hideDelay:5E3,showFor:function(b,c,h,j){f._create();var b=a(b),k=a(b).getShadowElement(),q=f.getOffsetFromBody(k);f.clear();j?this.hide():(this.getMessage(b,c),this.position(k,q),g.css({fontSize:b.css("fontSize"),
|
57
|
+
fontFamily:b.css("fontFamily")}),this.show(),this.hideDelay&&(o=setTimeout(d,this.hideDelay)),a(n).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(e);e=setTimeout(function(){f.position(k)},9)}));h||this.setFocus(k,q)},getOffsetFromBody:function(a){return c.getRelOffset(g,a)},setFocus:function(e,f){var o=a(e).getShadowFocusElement(),j=c.scrollRoot.scrollTop(),l=(f||o.offset()).top-30,q;c.getID&&"label"==b&&g.attr("for",c.getID(o));j>l&&(c.scrollRoot.animate({scrollTop:l-
|
58
|
+
5},{queue:!1,duration:Math.max(Math.min(600,1.5*(j-l)),80)}),q=!0);try{o[0].focus()}catch(n){}q&&(c.scrollRoot.scrollTop(j),setTimeout(function(){c.scrollRoot.scrollTop(j)},0));setTimeout(function(){a(k).bind("focusout.validityalert",d)},10)},getMessage:function(b,e){a("span.va-box",g).text(e||v(b[0])||b.prop("validationMessage"))},position:function(b,e){e=e?a.extend({},e):f.getOffsetFromBody(b);e.top+=b.outerHeight();g.css(e)},show:function(){"none"===g.css("display")&&g.css({opacity:0}).show();
|
59
|
+
g.addClass("va-visible").fadeTo(400,1)},hide:function(){g.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(o);a(k).unbind(".validityalert");a(n).unbind(".validityalert");g.stop().removeAttr("for")},_create:function(){if(!g)g=f.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+b+">").css({position:"absolute",display:"none"}),
|
60
|
+
c.ready("DOM",function(){g.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&g.bgIframe()})}};d=a.proxy(f,"hide");return f}();(function(){var b,c=[],g;a(k).bind("invalid",function(e){if(!e.wrongWebkitInvalid){var d=a(e.target),f=d.getShadowElement();f.hasClass("form-ui-invalid")||(f.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(e.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!b)b=a.Event("firstinvalid"),
|
61
|
+
b.isInvalidUIPrevented=e.isDefaultPrevented,f=a.Event("firstinvalidsystem"),a(k).triggerHandler(f,{element:e.target,form:e.target.form,isInvalidUIPrevented:e.isDefaultPrevented}),d.trigger(b);b&&b.isDefaultPrevented()&&e.preventDefault();c.push(e.target);e.extraData="fix";clearTimeout(g);g=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(e.target).trigger(d,d)},9);f=d=null}})})();o.replaceValidationUI&&c.ready("DOM",function(){a(k).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||
|
62
|
+
(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
63
|
+
(function(a,c,n){var k=c.audio&&c.video,p=!1;if(k)a=document.createElement("video"),c.videoBuffered="buffered"in a,p="loop"in a,n.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),c.videoBuffered||(n.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:c.videoBuffered,d:["dom-support"]}),n.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,c,n,u,r){var g=c.mediaelement,v=c.cfg.mediaelement,
|
64
|
+
w=function(b,d){var b=a(b),f={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!f.src)return f;var i=b.attr("type");if(i)f.type=i,f.container=a.trim(i.split(";")[0]);else if(d||(d=b[0].nodeName.toLowerCase(),"source"==d&&(d=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),i=g.getTypeForSrc(f.src,d))f.type=i,f.container=i,c.warn("you should always provide a proper mime-type using the source element. "+f.src+" detected as: "+i),a.nodeName(b[0],"source")&&b.attr("type",
|
65
|
+
i);if(i=b.attr("media"))f.media=i;return f},b=swfobject.hasFlashPlayerVersion("9.0.115"),j=function(){c.ready("mediaelement-swf",function(){if(!g.createSWF)c.modules["mediaelement-swf"].test=a.noop,c.reTest(["mediaelement-swf"],k)})};g.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",
|
66
|
+
"m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=a.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";
|
67
|
+
var b=b.split("?")[0].split("."),b=b[b.length-1],f;a.each(g.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return f=a,!1});return f};g.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=u.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)});else{var c=[],f=b[0].nodeName.toLowerCase(),
|
68
|
+
g=w(b,f);g.src?c.push(g):a("source",b).each(function(){g=w(this,f);g.src&&c.push(g)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==r&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));g.srces(this,b);a(this).mediaLoad()})};g.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
|
69
|
+
g.canSwfPlaySrces=function(c,d){var f="";b&&(c=a(c),d=d||g.srces(c),a.each(d,function(a,b){if(b.container&&b.src&&-1!=g.swfMimeTypes.indexOf(b.container))return f=b,!1}));return f};var t={};g.canNativePlaySrces=function(b,c){var f="";if(k){var b=a(b),i=(b[0].nodeName||"").toLowerCase();if(!t[i])return f;c=c||g.srces(b);a.each(c,function(a,c){if(c.type&&t[i].prop._supvalue.call(b[0],c.type))return f=c,!1})}return f};g.setError=function(b,d){d||(d="can't play sources");a(b).pause().data("mediaerror",
|
70
|
+
d);c.warn("mediaelementError: "+d);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var x=function(){var a;return function(b,f,i){c.ready("mediaelement-swf",function(){g.createSWF?g.createSWF(b,f,i):a||(a=!0,j(),x(b,f,i))})}}(),h=function(a,b,c,i,j){c||!1!==c&&b&&"flash"==b.isActive?(c=g.canSwfPlaySrces(a,i))?x(a,c,b):j?g.setError(a,!1):h(a,b,!1,i,!0):(c=g.canNativePlaySrces(a,i))?b&&"flash"==b.isActive&&g.setActive(a,"html5",b):j?(g.setError(a,!1),b&&"flash"==b.isActive&&
|
71
|
+
g.setActive(a,"html5",b)):h(a,b,!0,i,!0)},m=/^(?:embed|object|datalist)$/i,l=function(b,d){var f=c.data(b,"mediaelementBase")||c.data(b,"mediaelementBase",{}),i=g.srces(b),j=b.parentNode;clearTimeout(f.loadTimer);a.data(b,"mediaerror",!1);if(i.length&&j&&!(1!=j.nodeType||m.test(j.nodeName||"")))d=d||c.data(b,"mediaelement"),h(b,d,v.preferFlash||r,i)};a(u).bind("ended",function(b){var d=c.data(b.target,"mediaelement");(!p||d&&"html5"!=d.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,
|
72
|
+
"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});p||c.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(e){var d=c.defineNodeNameProperty(e,"load",{prop:{value:function(){var a=c.data(this,"mediaelement");l(this,a);k&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});t[e]=c.defineNodeNameProperty(e,"canPlayType",{prop:{value:function(c){var d="";k&&t[e].prop._supvalue&&(d=t[e].prop._supvalue.call(this,
|
73
|
+
c),"no"==d&&(d=""));!d&&b&&(c=a.trim((c||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});c.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=c.data(a,"mediaelementBase")||c.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){l(a);a=null},9)}});n=function(){c.addReady(function(b,d){a("video, audio",b).add(d.filter("video, audio")).each(function(){a.browser.msie&&8<c.browserVersion&&a.prop(this,
|
74
|
+
"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():l(this);if(k){var b,d,e=this,g=function(){var b=a.prop(e,"buffered");if(b){for(var c="",d=0,f=b.length;d<f;d++)c+=b.end(d);return c}},h=function(){var b=g();b!=d&&(d=b,a(e).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(d=g());clearTimeout(b);b=setTimeout(h,999)}).bind("emptied stalled mediaerror abort suspend",
|
75
|
+
function(a){"emptied"==a.type&&(d=!1);clearTimeout(b)})}})})};k?(c.isReady("mediaelement-core",!0),n(),b&&c.ready("WINDOWLOAD mediaelement",j)):c.ready("mediaelement-swf",n)})})(jQuery,Modernizr,jQuery.webshims);
|