webshims-rails 0.2 → 0.3
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 +10 -9
- data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -19
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -28
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +76 -76
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +42 -41
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +38 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +25 -25
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +55 -54
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +64 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +59 -58
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +64 -62
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +69 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +43 -43
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +47 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +57 -57
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +60 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +77 -75
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +91 -84
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +31 -30
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +39 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +61 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +29 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +37 -37
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +63 -63
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +20 -20
- data/vendor/assets/javascripts/webshims/minified/shims/excanvas.js +21 -35
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +8 -8
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +7 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +21 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +33 -28
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +13 -13
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +5 -4
- metadata +4 -4
@@ -1,63 +1,69 @@
|
|
1
|
-
(function(a){var b=window.Modernizr,
|
2
|
-
|
3
|
-
a("input",p).eq(0),
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
a.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
b
|
20
|
-
c
|
21
|
-
(c.
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
return function(b){return!a.test(b)}}()});b.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
"
|
45
|
-
"
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
{
|
50
|
-
|
51
|
-
function(
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
(
|
56
|
-
a.
|
57
|
-
|
58
|
-
"
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
"").
|
1
|
+
(function(a){var b=window.Modernizr,m=a.webshims,h=m.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>'),f=function(){if(p[0].querySelector)try{h.findRequired=!p[0].querySelector("select:required")}catch(a){h.findRequired=!1}};h.findRequired=!1;h.validationMessage=!1;h.valueAsNumberSet=!1;m.capturingEventPrevented=function(b){if(!b._isPolyfilled){var d=b.isDefaultPrevented,
|
2
|
+
v=b.preventDefault;b.preventDefault=function(){clearTimeout(a.data(b.target,b.type+"DefaultPrevented"));a.data(b.target,b.type+"DefaultPrevented",setTimeout(function(){a.removeData(b.target,b.type+"DefaultPrevented")},30));return v.apply(this,arguments)};b.isDefaultPrevented=function(){return!(!d.apply(this,arguments)&&!a.data(b.target,b.type+"DefaultPrevented"))};b._isPolyfilled=!0}};if(!b.formvalidation||h.bustedValidity)f();else if(m.capturingEvents(["input"]),m.capturingEvents(["invalid"],!0),
|
3
|
+
b.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var d=a("input",p).eq(0),i,v=function(a){m.loader.loadList(["dom-extend"]);m.ready("dom-extend",a)},q=function(f){var n=["form-extend","form-message","form-native-fix"];f&&(f.preventDefault(),f.stopImmediatePropagation());clearTimeout(i);setTimeout(function(){p&&(p.remove(),p=d=null)},9);if(!b.bugfreeformvalidation)m.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),m.modules["form-extend"].test=a.noop;m.isReady("form-number-date-api")&&
|
4
|
+
n.push("form-number-date-api");m.reTest(n);if(d)try{d.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&v(function(){m.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});m.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(h){}(a.browser.opera||window.testGoodWithFix)&&
|
5
|
+
v(function(){var d=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(c){var b=m.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){m.fromSubmit||a(this).bind("invalid.checkvalidity",d);m.fromCheckValidity=!0;var j=b.prop._supvalue.apply(this,arguments);m.fromSubmit||a(this).unbind("invalid.checkvalidity",d);m.fromCheckValidity=!1;return j}}})});b.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
6
|
+
m.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var c=this.options||[];if(!c.length){var b=a("select",this);if(b[0]&&b[0].options&&b[0].options.length)c=b[0].options}return c}}})})};p.appendTo("head");if(window.opera||window.testGoodWithFix){f();h.validationMessage=!d.prop("validationMessage");if((b.inputtypes||{}).date){try{d.prop("valueAsNumber",0)}catch(x){}h.valueAsNumberSet="1970-01-01"!=d.prop("value")}d.prop("value","")}p.bind("submit",function(a){b.bugfreeformvalidation=
|
7
|
+
!1;q(a)});i=setTimeout(function(){p&&p.triggerHandler("submit")},9);a("input, select",p).bind("invalid",q).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
8
|
+
jQuery.webshims.register("form-core",function(a,b,m,h,p,f){var d={radio:1},i={checkbox:1,radio:1},v=a([]),q=b.bugs,x=function(j){var j=a(j),c,b;c=v;if(d[j[0].type])b=j.prop("form"),c=(c=j[0].name)?b?a(b[c]):a(h.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):j,c=c.filter('[type="radio"]');return c},r=b.getContentValidationMessage=function(j,c,b){var g=a(j).data("errormessage")||j.getAttribute("x-moz-errormessage")||"";b&&g[b]&&(g=g[b]);"object"==typeof g&&(c=c||a.prop(j,"validity")||
|
9
|
+
{valid:1},c.valid||a.each(c,function(a,c){if(c&&"valid"!=a&&g[a])return g=g[a],!1}));if("object"==typeof g)g=g.defaultMessage;return g||""},n={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(c){return!(!a.prop(c,"willValidate")||!(a.prop(c,"validity")||{valid:1}).valid)},"invalid-element":function(c){return!(!a.prop(c,"willValidate")||(a.prop(c,"validity")||{valid:1}).valid)},"required-element":function(c){return!(!a.prop(c,"willValidate")||!a.prop(c,"required"))},"optional-element":function(c){return!!(a.prop(c,
|
10
|
+
"willValidate")&&!1===a.prop(c,"required"))},"in-range":function(c){if(!n[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||c.rangeOverflow||c.rangeUnderflow)},"out-of-range":function(c){if(!n[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||!c.rangeOverflow&&!c.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(c){a.expr.filters[c]=a.expr.filters[c+"-element"]});a.expr.filters.focus=function(a){try{var c=
|
11
|
+
a.ownerDocument;return a===c.activeElement&&(!c.hasFocus||c.hasFocus())}catch(b){}return!1};var w=a.event.customEvent||{};(q.bustedValidity||q.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var c=a.find,b=a.find.matchesSelector,k=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,g=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var l=arguments,l=a.call(l,1,l.length);l.unshift(b.replace(k,g));return c.apply(this,
|
12
|
+
l)},l;for(l in c)c.hasOwnProperty(l)&&(b[l]=c[l]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",h.documentElement))a.find.matchesSelector=function(a,c){c=c.replace(k,g);return b.call(this,a,c)}}();var t=a.prop,c={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,k,d){var g=t.apply(this,arguments);if(b&&"form"in b&&c[k]&&d!==p&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
|
13
|
+
"checked"==k&&d&&x(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return g};var k=function(c,b){var k;a.each(c,function(c,j){if(j)return k="customError"==c?a.prop(b,"validationMessage"):c,!1});return k};a(h).bind(f.validityUIEvents||"focusout change refreshvalidityui",function(c){if(c.target&&"submit"!=c.target.type&&a.prop(c.target,"willValidate")){var b=a.data(c.target,"webshimsswitchvalidityclass"),d=function(){var b=a(c.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
14
|
+
d=a.prop(b,"validity"),o=a(b).getShadowElement(),l,s,u,z;d.valid?o.hasClass("form-ui-valid")||(l="form-ui-valid",s="form-ui-invalid",z="changedvaliditystate",u="changedvalid",i[b.type]&&b.checked&&x(b).not(b).removeClass(s).addClass(l).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(d=k(d,b),a.data(b,"webshimsinvalidcause")!=d&&(a.data(b,"webshimsinvalidcause",d),z="changedvaliditystate"),o.hasClass("form-ui-invalid")||(l="form-ui-invalid",s="form-ui-valid",i[b.type]&&!b.checked&&
|
15
|
+
x(b).not(b).removeClass(s).addClass(l),u="changedinvalid"));l&&(o.addClass(l).removeClass(s),setTimeout(function(){a(b).trigger(u)},0));z&&setTimeout(function(){a(b).trigger(z)},0);a.removeData(c.target,"webshimsswitchvalidityclass")};b&&clearTimeout(b);"refreshvalidityui"==c.type?d():a.data(c.target,"webshimsswitchvalidityclass",setTimeout(d,9))}});w.changedvaliditystate=!0;w.refreshCustomValidityRules=!0;w.changedvalid=!0;w.changedinvalid=!0;w.refreshvalidityui=!0;b.triggerInlineForm=function(c,
|
16
|
+
b){a(c).trigger(b)};b.modules["form-core"].getGroupElements=x;q=function(){b.scrollRoot=a.browser.webkit||"BackCompat"==h.compatMode?a(h.body):a(h.documentElement)};q();b.ready("DOM",q);b.getRelOffset=function(c,b){var c=a(c),k=a(b).offset(),g;a.swap(a(c)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){g=c.offset()});k.top-=g.top;k.left-=g.left;return k};b.validityAlert=function(){var c=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",k,d=!1,g=!1,f,o={hideDelay:5E3,
|
17
|
+
showFor:function(c,b,j,v){o._create();var c=a(c),n=a(c).getShadowElement(),y=o.getOffsetFromBody(n);o.clear();v?this.hide():(this.getMessage(c,b),this.position(n,y),k.css({fontSize:c.css("fontSize"),fontFamily:c.css("fontFamily")}),this.show(),this.hideDelay&&(d=setTimeout(f,this.hideDelay)),a(m).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(g);g=setTimeout(function(){o.position(n)},9)}));j||this.setFocus(n,y)},getOffsetFromBody:function(a){return b.getRelOffset(k,
|
18
|
+
a)},setFocus:function(l,s){var g=a(l).getShadowFocusElement(),d=b.scrollRoot.scrollTop(),o=(s||g.offset()).top-30,y;b.getID&&"label"==c&&k.attr("for",b.getID(g));d>o&&(b.scrollRoot.animate({scrollTop:o-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(d-o)),80)}),y=!0);try{g[0].focus()}catch(v){}y&&(b.scrollRoot.scrollTop(d),setTimeout(function(){b.scrollRoot.scrollTop(d)},0));setTimeout(function(){a(h).bind("focusout.validityalert",f)},10)},getMessage:function(c,b){b||(b=r(c[0])||c.prop("validationMessage"));
|
19
|
+
b?a("span.va-box",k).text(b):this.hide()},position:function(c,b){b=b?a.extend({},b):o.getOffsetFromBody(c);b.top+=c.outerHeight();k.css(b)},show:function(){"none"===k.css("display")&&k.css({opacity:0}).show();k.addClass("va-visible").fadeTo(400,1)},hide:function(){k.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(h).unbind(".validityalert");a(m).unbind(".validityalert");k.stop().removeAttr("for")},_create:function(){if(!k)k=o.errorBubble=a("<"+c+' 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></'+
|
20
|
+
c+">").css({position:"absolute",display:"none"}),b.ready("DOM",function(){k.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&k.bgIframe()})}};f=a.proxy(o,"hide");return o}();(function(){var c,b=[],k;a(h).bind("invalid",function(g){if(!g.wrongWebkitInvalid){var d=a(g.target),o=d.getShadowElement();o.hasClass("form-ui-invalid")||(o.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
21
|
+
0));if(!c)c=a.Event("firstinvalid"),c.isInvalidUIPrevented=g.isDefaultPrevented,o=a.Event("firstinvalidsystem"),a(h).triggerHandler(o,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),d.trigger(c);c&&c.isDefaultPrevented()&&g.preventDefault();b.push(g.target);g.extraData="fix";clearTimeout(k);k=setTimeout(function(){var k={type:"lastinvalid",cancelable:!1,invalidlist:a(b)};c=!1;b=[];a(g.target).trigger(k,k)},9);o=d=null}})})();a.fn.getErrorMessage=function(){var c="",
|
22
|
+
b=this[0];b&&(c=r(b)||a.prop(b,"customValidationMessage")||a.prop(b,"validationMessage"));return c};f.replaceValidationUI&&b.ready("DOM",function(){a(h).bind("firstinvalid",function(c){c.isInvalidUIPrevented()||(c.preventDefault(),a.webshims.validityAlert.showFor(c.target,a(c.target).prop("customValidationMessage")))})})});
|
23
|
+
jQuery.webshims.register("form-message",function(a,b,m,h,p,f){var d=b.validityMessages,m=f.overrideMessages||f.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}."},
|
24
|
+
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]=
|
25
|
+
"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."},
|
26
|
+
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",
|
27
|
+
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 i=
|
28
|
+
d[""];b.createValidationMessage=function(b,d){var f=i[d];f&&"string"!==typeof f&&(f=f[a.prop(b,"type")]||f[(b.nodeName||"").toLowerCase()]||f.defaultMessage);f&&"value,min,max,title,maxlength,label".split(",").forEach(function(d){if(-1!==f.indexOf("{%"+d)){var n=("label"==d?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,d))||"";f=f.replace("{%"+d+"}",n);"value"==d&&(f=f.replace("{%valueLen}",n.length))}});return f||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
|
29
|
+
b.bugs.bustedValidity)&&m.push("validationMessage");b.activeLang({langObj:d,module:"form-core",callback:function(a){i=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}}});m.forEach(function(d){b.defineNodeNamesProperty(["fieldset",
|
30
|
+
"output","button"],d,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(f){var h=b.defineNodeNameProperty(f,d,{prop:{get:function(){var d=this,f="";if(!a.prop(d,"willValidate"))return f;var i=a.prop(d,"validity")||{valid:1};if(i.valid||(f=b.getContentValidationMessage(d,i)))return f;if(i.customError&&d.nodeName&&(f=Modernizr.formvalidation&&!b.bugs.bustedValidity&&h.prop._supget?h.prop._supget.call(d):b.data(d,"customvalidationMessage")))return f;a.each(i,function(a,c){if("valid"!=
|
31
|
+
a&&c&&(f=b.createValidationMessage(d,a)))return!1});return f||""},writeable:!1}})})})});
|
32
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,m,h){b.inputTypes=b.inputTypes||{};var p=b.cfg.forms,f,d=b.inputTypes,i={radio:1,checkbox:1};b.addInputType=function(a,b){d[a]=b};var v={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},q={valueMissing:function(c,k,d){if(!c.prop("required"))return!1;var f=!1;if(!("type"in d))d.type=(c[0].getAttribute("type")||
|
33
|
+
c[0].type||"").toLowerCase();if("select"==d.nodeName){if(k=!k)if(!(k=0>c[0].selectedIndex))c=c[0],k="select-one"==c.type&&2>c.size?!!a("> option:first-child",c).prop("selected"):!1;c=k}else c=i[d.type]?"checkbox"==d.type?!c.is(":checked"):!b.modules["form-core"].getGroupElements(c).filter(":checked")[0]:!k;return c},tooLong:function(){return!1},typeMismatch:function(a,b,j){if(""===b||"select"==j.nodeName)return!1;var f=!1;if(!("type"in j))j.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
|
34
|
+
if(d[j.type]&&d[j.type].mismatch)f=d[j.type].mismatch(b,a);else if("validity"in a[0])f=a[0].validity.typeMismatch;return f},patternMismatch:function(a,d,j){if(""===d||"select"==j.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(f){b.error('invalid pattern value: "'+a+'" | '+f),a=!1}return!a?!1:!a.test(d)}};b.addValidityRule=function(a,b){q[a]=b};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var c=
|
35
|
+
this.form||this;if(!a.data(c,"invalidEventShim")&&(a(c).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(c,"submit"),b.bugs.bustedValidity&&a.nodeName(c,"form"))){var d=c.getAttribute("novalidate");c.setAttribute("novalidate","novalidate");b.data(c,"bustedNoValidate",null==d?null:d)}},teardown:a.noop,handler:function(c){if(!("submit"!=c.type||c.testedValidity||!c.originalEvent||!a.nodeName(c.target,"form")||a.prop(c.target,"noValidate"))){f=!0;c.testedValidity=
|
36
|
+
!0;if(!a(c.target).checkValidity())return c.stopImmediatePropagation(),f=!1;f=!1}}};a(h).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var x=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 x.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=p.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
|
37
|
+
return function(b){return!a.test(b)}}()});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;
|
38
|
+
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({},v)}}},"prop");var r=function(c){var d,j=a.prop(c,"validity");if(j)a.data(c,"cachedValidity",
|
39
|
+
j);else return!0;if(!j.valid){d=a.Event("invalid");var h=a(c).trigger(d);if(f&&!r.unhandledInvalids&&!d.isDefaultPrevented())b.validityAlert.showFor(h),r.unhandledInvalids=!0}a.removeData(c,"cachedValidity");return j.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 j=0,f=d.length;j<f;j++)r(d[j])||
|
40
|
+
(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:{writeable:!1,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:{writeable:!1,
|
41
|
+
get:function(){var c=a(this).getNativeElement(),d=c[0],j=a.data(d,"cachedValidity");if(j)return j;j=a.extend({},v);if(!a.prop(d,"willValidate")||"submit"==d.type)return j;var f=c.val(),h={nodeName:d.nodeName.toLowerCase()};j.customError=!!b.data(d,"customvalidationMessage");if(j.customError)j.valid=!1;a.each(q,function(a,b){if(b(c,f,h))j[a]=!0,j.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",j.valid?"false":"true");d=c=null;return j}}},"prop");b.defineNodeNamesBooleanProperty(["input",
|
42
|
+
"textarea","select"],"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 h.createElement("textarea"))){var n=function(){var c,b=0,d=a([]),f=1E9,h=function(){var a=d.prop("value"),c=a.length;c>b&&c>f&&(c=Math.max(b,f),d.prop("value",a.substr(0,c)));b=c},g=function(){clearTimeout(c);d.unbind(".maxlengthconstraint")};return function(i,o){g();if(-1<o)f=o,b=
|
43
|
+
a.prop(i,"value").length,d=a(i),d.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(h,0)}),d.bind("keyup.maxlengthconstraint",h),d.bind("blur.maxlengthconstraint",g),c=setInterval(h,200)}}();n.update=function(c,b){a(c).is(":focus")&&(null==b&&(b=a.prop(c,"maxlength")),n(e.target,b))};a(h).bind("focusin",function(c){var b;"TEXTAREA"==c.target.nodeName&&-1<(b=a.prop(c.target,"maxlength"))&&n(c.target,b)});b.defineNodeNameProperty("textarea",
|
44
|
+
"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",
|
45
|
+
"maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var w={submit:1,button:1,image:1},t={};[{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 d=
|
46
|
+
"form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),f="form"+b.name,i=b.name,n="click.webshimssubmittermutate"+i,g=function(){if("form"in this&&w[this.type]){var g=a.prop(this,"form");if(g){var l=a.attr(this,f);if(null!=l&&(!b.limitedTo||l.toLowerCase()===a.prop(this,d))){var s=a.attr(g,i);a.attr(g,i,l);setTimeout(function(){if(null!=s)a.attr(g,i,s);else try{a(g).removeAttr(i)}catch(b){g.removeAttribute(i)}},9)}}}};switch(b.proptype){case "url":var m=h.createElement("form");
|
47
|
+
t[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);if(null==b)return"";m.setAttribute("action",b);return m.action}}};break;case "boolean":t[d]={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":t[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var d=a.attr(this,f);return!d||(d=d.toLowerCase())&&!b.limitedTo[d]?b.defaultProp:
|
48
|
+
d}}};break;default:t[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);return null!=b?b:""}}}}t[f]||(t[f]={});t[f].attr={set:function(b){t[f].attr._supset.call(this,b);a(this).unbind(n).bind(n,g)},get:function(){return t[f].attr._supget.call(this)}};t[f].initAttr=!0;t[f].removeAttr={value:function(){a(this).unbind(n);t[f].removeAttr._supvalue.call(this)}}});b.defineNodeNamesProperties(["input","button"],t);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?
|
49
|
+
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)}}}),a.each(["rangeUnderflow","rangeOverflow",
|
50
|
+
"stepMismatch"],function(a,b){q[b]=function(a){return(a[0].validity||{})[b]||!1}}));b.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var c={updateInput:1,input:1},d={date:1,time:1,"datetime-local":1},j={focusout:1,blur:1},i={updateInput:1,change:1},n=function(a){var b,d=!0,f=a.prop("value"),s=
|
51
|
+
f,u=function(b){if(a){var u=a.prop("value");u!==f&&(f=u,(!b||!c[b.type])&&a.trigger("input"));b&&i[b.type]&&(s=u);!d&&u!==s&&a.trigger("change")}},k,h=function(c){clearInterval(b);setTimeout(function(){c&&j[c.type]&&(d=!1);a&&(a.unbind("focusout blur",h).unbind("input change updateInput",u),u());a=null},1)};clearInterval(b);b=setInterval(u,160);clearTimeout(k);k=setTimeout(u,9);a.unbind("focusout blur",h).unbind("input change updateInput",u);a.bind("focusout blur",h).bind("input updateInput change",
|
52
|
+
u)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var c=function(b){var c=1,d,l;if("date"==b.type&&(f||!a(b).is(":focus")))if((l=b.value)&&10>l.length&&(l=l.split("-"))&&3==l.length){for(;3>c;c++)if(1==l[c].length)l[c]="0"+l[c];else if(2!=l[c].length){d=!0;break}if(!d)return l=l.join("-"),a.prop(b,"value",l),l}},d,j,l,s;d=b.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){c(this);return d.prop._supvalue.apply(this,arguments)}}});j=b.defineNodeNameProperty("form",
|
53
|
+
"checkValidity",{prop:{value:function(){a("input",this).each(function(){c(this)});return j.prop._supvalue.apply(this,arguments)}}});l=b.defineNodeNameProperty("input","value",{prop:{set:function(){return l.prop._supset.apply(this,arguments)},get:function(){return c(this)||l.prop._supget.apply(this,arguments)}}});s=b.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){c(this);return s.prop._supget.apply(this,arguments)}}});a(h).bind("change",function(a){isChangeSubmit=!0;c(a.target);
|
54
|
+
isChangeSubmit=!1})})();a(h).bind("focusin",function(b){b.target&&d[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&n(a(b.target))})}();b.addReady(function(b,d){var f;a("form",b).add(d.filter("form")).bind("invalid",a.noop);try{if(b==h&&!("form"in(h.activeElement||{})))(f=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&f.offsetHeight&&f.offsetWidth&&f.focus()}catch(i){}});(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);
|
55
|
+
var c=a.browser.webkit&&Modernizr.textareaPlaceholder;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||c){var d="over"==b.cfg.forms.placeholderType,f=["textarea"];Modernizr.input.placeholder||f.push("input");var i=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},h=function(b,c,f,g){!1===f&&(f=a.prop(b,"value"));if(!d&&"password"!=b.type){if(!f&&g&&
|
56
|
+
i(b)){var h;a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),clearTimeout(h),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){i(b);clearTimeout(h);h=setTimeout(function(){i(b)},9)}).bind("blur.placeholderremove",
|
57
|
+
function(){clearTimeout(h);a(b).unbind(".placeholderremove")});return}b.value=f}else if(!f&&g){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},g=function(b,
|
58
|
+
c,f,g,i){if(!g&&(g=a.data(b,"placeHolder"),!g))return;a(b).unbind(".placeholderremove");if("focus"==i||!i&&a(b).is(":focus"))("password"==b.type||d||a(b).hasClass("placeholder-visible"))&&h(b,g,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)h(b,g,c);else if(!1===f&&(f=a.attr(b,"placeholder")||""),f&&!c){c=g;!1===f&&(f=a.prop(b,"placeholder"));if(!d&&"password"!=b.type)b.value=f;c.box.addClass("placeholder-visible")}else h(b,g,c)},n=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&&!b.attr("aria-labelledby"));
|
59
|
+
!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>')},o=function(){var c={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder");if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){g(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});
|
60
|
+
b.form&&a(b.form).bind("reset.placeholder",function(a){setTimeout(function(){g(b,!1,!1,c,a.type)},0)});if("password"==b.type||d){c.text=n(b);c.box=a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+'" />').parent();c.text.insertAfter(b).bind("mousedown.placeholder",function(){g(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||0)+Math.max(parseInt(a.css(b,
|
61
|
+
"margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)});a.css(b,"lineHeight");var f={width:a(b).width(),height:a(b).height()},i=a.css(b,"float");a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)});f.width&&f.height&&c.text.css(f);"none"!==i&&c.box.addClass("placeholder-box-"+i)}else f=function(d){a(b).hasClass("placeholder-visible")&&(h(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&
|
62
|
+
g(b,!1,!1,c)},9))},a(m).bind("beforeunload",f),c.box=a(b),b.form&&a(b.form).submit(f);return c},update:function(d,f){if(!c[a.prop(d,"type")]&&!a.nodeName(d,"textarea"))b.warn("placeholder not allowed on type: "+a.prop(d,"type"));else{var i=o.create(d);i.text&&i.text.text(f);g(d,!1,f,i)}}}}();a.webshims.publicMethods={pHolder:o};f.forEach(function(a){b.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){c?(b.data(this,"textareaPlaceholder",a),this.placeholder=""):b.contentAttr(this,"placeholder",
|
63
|
+
a);o.update(this,a)},get:function(){return(c?b.data(this,"textareaPlaceholder"):"")||b.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});f.forEach(function(d){var f={},i;["attr","prop"].forEach(function(d){f[d]={set:function(f){var h;c&&(h=b.data(this,"textareaPlaceholder"));h||(h=b.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var j=i[d]._supset.call(this,f);h&&"value"in this&&g(this,f,h);return j},get:function(){return a(this).hasClass("placeholder-visible")?"":
|
64
|
+
i[d]._supget.call(this)}}});i=b.defineNodeNameProperty(d,"value",f)})}})()});
|
65
|
+
jQuery.webshims.ready("dom-support",function(a,b,m,h){(function(){if(!("value"in h.createElement("output"))){b.defineNodeNameProperty("output","value",{prop:{set:function(b){var d=a.data(this,"outputShim");d||(d=m(this));d(b)},get:function(){return b.contentAttr(this,"value")||a(this).text()||""}}});b.onNodeNamesPropertyModify("input","value",function(b,d,i){"removeAttr"!=i&&(d=a.data(this,"outputShim"))&&d(b)});var m=function(f){if(!f.getAttribute("aria-live")){var f=a(f),d=(f.text()||"").trim(),
|
66
|
+
i=f.attr("id"),m=f.attr("for"),q=a('<input class="output-shim" type="text" disabled name="'+(f.attr("name")||"")+'" value="'+d+'" style="display: none !important;" />').insertAfter(f),p=q[0].form||h,r=function(a){q[0].value=a;a=q[0].value;f.text(a);b.contentAttr(f[0],"value",a)};f[0].defaultValue=d;b.contentAttr(f[0],"value",d);f.attr({"aria-live":"polite"});i&&(q.attr("id",i),f.attr("aria-labelledby",b.getID(a('label[for="'+i+'"]',p))));m&&(i=b.getID(f),m.split(" ").forEach(function(a){(a=h.getElementById(a))&&
|
67
|
+
a.setAttribute("aria-controls",i)}));f.data("outputShim",r);q.data("outputShim",r);return r}};b.addReady(function(b,d){a("output",b).add(d.filter("output")).each(function(){m(this)})})}})();(function(){var m={updateInput:1,input:1},f={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},d=function(a){var d,f=a.prop("value"),h=function(d){if(a){var c=a.prop("value");c!==f&&(f=c,(!d||!m[d.type])&&b.triggerInlineForm&&b.triggerInlineForm(a[0],"input"))}},r,n=function(){clearTimeout(r);
|
68
|
+
r=setTimeout(h,9)},w=function(){a.unbind("focusout",w).unbind("keyup keypress keydown paste cut",n).unbind("input change updateInput",h);clearInterval(d);setTimeout(function(){h();a=null},1)};clearInterval(d);d=setInterval(h,99);n();a.bind("keyup keypress keydown paste cut",n).bind("focusout",w).bind("input updateInput change",h)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(h).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
|
69
|
+
"").toLowerCase()&&!f[b.target.type]&&d(a(b.target))})})();b.isReady("form-output",!0)});
|
@@ -1,43 +1,43 @@
|
|
1
|
-
(function(d,
|
2
|
-
z=function(e
|
3
|
-
|
4
|
-
"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
"
|
11
|
-
|
12
|
-
"
|
13
|
-
|
14
|
-
jQuery.webshims.register("mediaelement-swf",function(d,
|
15
|
-
muted:!1};Object.keys(z);var v=
|
16
|
-
"jwplayer/"+(n.playerName||"player.swf"),w=n.pluginPath||
|
17
|
-
a.duration!=a._lastDuration?(
|
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;
|
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,
|
20
|
-
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&
|
21
|
-
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||
|
22
|
-
a.position)b.currentTime=a.position,
|
23
|
-
a.actionQueue.length,
|
24
|
-
(b.remove(),b=!1),
|
25
|
-
b=
|
26
|
-
this.error?
|
27
|
-
(a=m.getElementById(a.replace(A,"")))&&
|
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");
|
29
|
-
".webshimspolyfill"}).join(" "),M=function(a){var b=
|
30
|
-
var
|
31
|
-
for(
|
32
|
-
"flash",
|
33
|
-
shadowElem:{value:l},_elemNodeName:{value:i},_elem:{value:a},currentSrc:{value:b.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=
|
34
|
-
controlbar:s?n.jwVars.controlbar||("video"==i?"over":"bottom"):"video"==i?"none":"bottom",icons:""+(s&&"video"==i)},h,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});
|
35
|
-
"none"==b.ref.style.display)l.addClass("flashblocker-assumed"),
|
36
|
-
(2>a[0].offsetWidth||2>a[0].offsetHeight)&&
|
37
|
-
("videoHeight"==
|
38
|
-
a,
|
39
|
-
!0;b.stopPlayPause=!1},50);x(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,
|
40
|
-
!0,b.paused!=("play"!=a)))b.paused="play"!=a,
|
41
|
-
|
42
|
-
a,{prop:{get:function(){var b=this.getAttribute(a),
|
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
|
+
(function(c,d,l){var m=d.audio&&d.video,r=!1;if(m)c=document.createElement("video"),d.videoBuffered="buffered"in c,r="loop"in c,l.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),d.videoBuffered||(l.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:d.videoBuffered,d:["dom-support"]}),l.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,d,l,t,y){var g=d.mediaelement,C=d.cfg.mediaelement,
|
2
|
+
z=function(f,e){var f=c(f),d={src:f.attr("src")||"",elem:f,srcProp:f.prop("src")};if(!d.src)return d;var i=f.attr("type");if(i)d.type=i,d.container=c.trim(i.split(";")[0]);else if(e||(e=f[0].nodeName.toLowerCase(),"source"==e&&(e=(f.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),i=g.getTypeForSrc(d.src,e))d.type=i,d.container=i;if(i=f.attr("media"))d.media=i;return d},v=swfobject.hasFlashPlayerVersion("9.0.115"),A=function(){d.ready("mediaelement-swf",function(){if(!g.createSWF)d.modules["mediaelement-swf"].test=
|
3
|
+
c.noop,d.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","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",
|
4
|
+
"asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=c.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(f,e){if(-1!=f.indexOf("youtube.com/watch?")||-1!=f.indexOf("youtube.com/v/"))return"video/youtube";var f=f.split("?")[0].split("."),f=f[f.length-1],d;c.each(g.mimeTypes[e],function(c,e){if(-1!==e.indexOf(f))return d=c,!1});return d};g.srces=function(f,d){f=c(f);if(d)f.removeAttr("src").removeAttr("type").find("source").remove(),
|
5
|
+
c.isArray(d)||(d=[d]),d.forEach(function(c){var d=t.createElement("source");"string"==typeof c&&(c={src:c});d.setAttribute("src",c.src);c.type&&d.setAttribute("type",c.type);c.media&&d.setAttribute("media",c.media);f.append(d)});else{var d=[],k=f[0].nodeName.toLowerCase(),i=z(f,k);i.src?d.push(i):c("source",f).each(function(){i=z(this,k);i.src&&d.push(i)});return d}};c.fn.loadMediaSrc=function(d,e){return this.each(function(){e!==y&&(c(this).removeAttr("poster"),e&&c.attr(this,"poster",e));g.srces(this,
|
6
|
+
d);c(this).mediaLoad()})};g.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");g.canSwfPlaySrces=function(d,e){var k="";v&&(d=c(d),e=e||g.srces(d),c.each(e,function(c,d){if(d.container&&d.src&&-1!=g.swfMimeTypes.indexOf(d.container))return k=d,!1}));return k};var h={};g.canNativePlaySrces=function(d,
|
7
|
+
e){var k="";if(m){var d=c(d),i=(d[0].nodeName||"").toLowerCase();if(!h[i])return k;e=e||g.srces(d);c.each(e,function(c,e){if(e.type&&h[i].prop._supvalue.call(d[0],e.type))return k=e,!1})}return k};g.setError=function(f,e){e||(e="can't play sources");c(f).pause().data("mediaerror",e);d.warn("mediaelementError: "+e);setTimeout(function(){c(f).data("mediaerror")&&c(f).trigger("mediaerror")},1)};var p=function(){var c;return function(e,k,i){d.ready("mediaelement-swf",function(){g.createSWF?g.createSWF(e,
|
8
|
+
k,i):c||(c=!0,A(),p(e,k,i))})}}(),j=function(c,d,k,i,h){k||!1!==k&&d&&"flash"==d.isActive?(k=g.canSwfPlaySrces(c,i))?p(c,k,d):h?g.setError(c,!1):j(c,d,!1,i,!0):(k=g.canNativePlaySrces(c,i))?d&&"flash"==d.isActive&&g.setActive(c,"html5",d):h?(g.setError(c,!1),d&&"flash"==d.isActive&&g.setActive(c,"html5",d)):j(c,d,!0,i,!0)},D=/^(?:embed|object|datalist)$/i,w=function(f,e){var k=d.data(f,"mediaelementBase")||d.data(f,"mediaelementBase",{}),i=g.srces(f),h=f.parentNode;clearTimeout(k.loadTimer);c.data(f,
|
9
|
+
"mediaerror",!1);if(i.length&&h&&!(1!=h.nodeType||D.test(h.nodeName||"")))e=e||d.data(f,"mediaelement"),j(f,e,C.preferFlash||y,i)};c(t).bind("ended",function(f){var e=d.data(f.target,"mediaelement");(!r||e&&"html5"!=e.isActive||c.prop(f.target,"loop"))&&setTimeout(function(){!c.prop(f.target,"paused")&&c.prop(f.target,"loop")&&c(f.target).prop("currentTime",0).play()},1)});r||d.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(f){var e=d.defineNodeNameProperty(f,
|
10
|
+
"load",{prop:{value:function(){var c=d.data(this,"mediaelement");w(this,c);m&&(!c||"html5"==c.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});h[f]=d.defineNodeNameProperty(f,"canPlayType",{prop:{value:function(d){var e="";m&&h[f].prop._supvalue&&(e=h[f].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&v&&(d=c.trim((d||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});d.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=
|
11
|
+
this,e=d.data(c,"mediaelementBase")||d.data(c,"mediaelementBase",{});clearTimeout(e.loadTimer);e.loadTimer=setTimeout(function(){w(c);c=null},9)}});l=function(){d.addReady(function(f,e){c("video, audio",f).add(e.filter("video, audio")).each(function(){c.browser.msie&&8<d.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():w(this);if(m){var e,f,g=this,h=function(){var d=c.prop(g,
|
12
|
+
"buffered");if(d){for(var e="",f=0,i=d.length;f<i;f++)e+=d.end(f);return e}},j=function(){var d=h();d!=f&&(f=d,c(g).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(f=h());clearTimeout(e);e=setTimeout(j,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(f=!1);clearTimeout(e)})}})})};m?(d.isReady("mediaelement-core",!0),l(),v&&d.ready("WINDOWLOAD mediaelement",A)):d.ready("mediaelement-swf",l)})})(jQuery,Modernizr,
|
13
|
+
jQuery.webshims);
|
14
|
+
jQuery.webshims.register("mediaelement-swf",function(c,d,l,m,r,n){var q=d.mediaelement,G=l.swfobject,t=Modernizr.audio&&Modernizr.video,y=G.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)d.error("buffered index size error");else return 0},end:function(a){if(a)d.error("buffered index size error");else return 0},length:0}},C=Object.keys(l),z={currentTime:0,volume:1,
|
15
|
+
muted:!1};Object.keys(z);var v=c.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=d.data(a,"mediaelement"),"flash"==a.isActive?a:null},p=function(a){return(a=d.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},j=function(a,b){b=c.Event(b);b.preventDefault();c.event.trigger(b,r,a)},D=n.playerPath||d.cfg.basePath+
|
16
|
+
"jwplayer/"+(n.playerName||"player.swf"),w=n.pluginPath||d.cfg.basePath+"swf/jwwebshims.swf";d.extendUNDEFProp(n.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});d.extendUNDEFProp(n.jwVars,{screencolor:"ffffffff"});d.extendUNDEFProp(n.jwAttrs,{bgcolor:"#000000"});var f=function(a,b){var d=a.duration;if(!(d&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&&
|
17
|
+
a.duration!=a._lastDuration?(j(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&q.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},e=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,j(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){e(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,j(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;j(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)&&f(b,a);if(b.ended)b.ended=!1;if(b.duration){2<a.percentage&&20>a.percentage?e(3,b):20<a.percentage&&e(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,e(4,b);c.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 c=b.duration;if(a.duration)b.duration=a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=
|
20
|
+
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&e(1,b);b.duration&&c!==b.duration&&j(b._elem,"durationchange");j(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&&f(b,a);2>b.readyState&&e(2,b);if(b.ended)b.ended=!1;j(b._elem,"timeupdate")}},STATE:function(a){var b=h(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;e(1,b);j(b._elem,"waiting");
|
21
|
+
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||f(b,a);3>b.readyState&&e(3,b);if(b.ended)b.ended=!1;j(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,j(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&e(4,b),b.ended=!0,j(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(c){}if(b.currentTime!=
|
22
|
+
a.position)b.currentTime=a.position,j(b._elem,"timeupdate")}},VOLUME:function(a){var b=h(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,j(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=h(a.id);if(b&&b.muted!=a.state)b.muted=a.state,j(b._elem,"volumechange")}}}};var k=function(a){var b=!0;c.each(q.jwEvents,function(d,e){c.each(e,function(c){try{a.jwapi["add"+d+"Listener"](c,"jQuery.webshims.mediaelement.jwEvents."+d+"."+c)}catch(e){return b=!1}})});return b},i=function(a){var b=
|
23
|
+
a.actionQueue.length,c=0,d;if(b&&"flash"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},H=function(a){a&&(a._ppFlag===r&&c.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("flash"==a.isActive&&(a._ppFlag===r||!a.paused))try{c(a._elem).play()}catch(b){}},1)},K=function(a){if(a&&"video"==a._elemNodeName){var b,d,e,f,s,o,g,i,h=function(h,j){if(j&&h&&!(1>j||1>h||"flash"!=a.isActive))if(b&&
|
24
|
+
(b.remove(),b=!1),f=h,s=j,clearTimeout(g),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){o=o||c(a._elem).getShadowElement();var k;d&&!e?(k=o.height(),h*=k/j,j=k):!d&&e&&(k=o.width(),j*=k/h,h=k);i=!0;setTimeout(function(){i=!1},9);o.css({width:h,height:j})}},j=function(){if(!("flash"!=a.isActive||c.prop(a._elem,"readyState")&&c.prop(this,"videoWidth"))){var f=c.prop(a._elem,"poster");if(f&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))b&&(b.remove(),b=!1),
|
25
|
+
b=c('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(g);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,e=a.naturalHeight||a.height||a.offsetHeight;e&&d?(h(d,e),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;e=a.naturalHeight||a.height||a.offsetHeight;h(d,e);b&&(b.remove(),b=!1);a=null},9);c(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||
|
26
|
+
this.error?c(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){c(a._elem).triggerHandler("error")},9999))})}};c(a._elem).bind("loadedmetadata",function(){h(c.prop(this,"videoWidth"),c.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){i||h(f,s)}).bind("emptied",function(){f=void 0;s=void 0}).triggerHandler("swfstageresize");j();c.prop(a._elem,"readyState")&&h(c.prop(a._elem,"videoWidth"),c.prop(a._elem,"videoHeight"))}};
|
27
|
+
q.playerResize=function(a){a&&(a=m.getElementById(a.replace(A,"")))&&c(a).triggerHandler("swfstageresize")};c(m).bind("emptied",function(a){a=p(a.target);H(a)});var B;q.jwPlayerReady=function(a){var b=h(a.id),e=0,f=function(){if(!(9<e))if(e++,k(b)){if(b.wasSwfReady)c(b._elem).mediaLoad();else{var g=parseFloat(a.version,10);(5.6>g||6<=g)&&d.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=!0;b.tryedReframeing=0;i(b);H(b)}else clearTimeout(b.reframeTimer),b.reframeTimer=setTimeout(f,
|
28
|
+
9*e),2<e&&9>b.tryedReframeing&&(b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(B);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");c.prop(b._elem,"volume",b.volume);c.prop(b._elem,"muted",b.muted);f()}};var E=c.noop;if(t){var L={play:1,playing:1},I="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),
|
29
|
+
J=I.map(function(a){return a+".webshimspolyfill"}).join(" "),M=function(a){var b=d.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("flash"==b.activating)&&(a.stopImmediatePropagation(),L[a.type]&&b.isActive!=b.activating&&c(a.target).pause())},E=function(a){c(a).unbind(J).bind(J,M);I.forEach(function(b){d.moveToFirstEvent(a,b)})};E(m)}q.setActive=function(a,b,e){e||(e=d.data(a,"mediaelement"));if(e&&e.isActive!=b){"html5"!=b&&"flash"!=b&&d.warn("wrong type for mediaelement activating: "+
|
30
|
+
b);var f=d.data(a,"shadowData");e.activating=b;c(a).pause();e.isActive=b;"flash"==b?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],c(a).hide().getShadowElement().show()):(c(a).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(c){if(c){var d=b,f=c.networkState;
|
31
|
+
for(e(0,c);--d;)delete c[a[d]];c.actionQueue=[];c.buffered.length=0;f&&j(c._elem,"emptied")}}}(),F=function(a,b){var d=a._elem,e=a.shadowElem;c(d)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?e.css({width:0,height:0}):e.css({width:d.style.width||c(d).width(),height:d.style.height||c(d).height()})};q.createSWF=function(a,b,e){if(y){1>g?g=1:g++;var f=c.extend({},n.jwVars,{image:c.prop(a,"poster")||"",file:b.srcProp}),h=c(a).data("jwvars")||{};e||(e=d.data(a,"mediaelement"));
|
32
|
+
if(e&&e.swfCreated)q.setActive(a,"flash",e),N(e),e.currentSrc=b.srcProp,c.extend(f,h),n.changeJW(f,a,b,e,"load"),x(a,"sendEvent",["LOAD",f]);else{var s=c.prop(a,"controls"),o="jwplayer-"+d.getID(a),j=c.extend({},n.jwParams,c(a).data("jwparams")),i=a.nodeName.toLowerCase(),k=c.extend({},n.jwAttrs,{name:o,id:o},c(a).data("jwattrs")),l=c('<div class="polyfill-'+i+' polyfill-mediaelement" id="wrapper-'+o+'"><div id="'+o+'"></div>').css({position:"relative",overflow:"hidden"}),e=d.data(a,"mediaelement",
|
33
|
+
d.objectCreate(v,{actionQueue:{value:[]},shadowElem:{value:l},_elemNodeName:{value:i},_elem:{value:a},currentSrc:{value:b.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=e.buffered.length)d.error("buffered index size error");else return 0},end:function(a){if(a>=e.buffered.length)d.error("buffered index size error");else return(e.duration-e._bufferedStart)*e._bufferedEnd/100+e._bufferedStart},length:0}}}));F(e,s);l.insertBefore(a);t&&c.extend(e,{volume:c.prop(a,"volume"),muted:c.prop(a,
|
34
|
+
"muted")});c.extend(f,{id:o,controlbar:s?n.jwVars.controlbar||("video"==i?"over":"bottom"):"video"==i?"none":"bottom",icons:""+(s&&"video"==i)},h,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});f.plugins=f.plugins?f.plugins+(","+w):w;d.addShadowDom(a,l);E(a);q.setActive(a,"flash",e);n.changeJW(f,a,b,e,"embed");c(a).bind("updatemediaelementdimensions",function(){F(e,c.prop(a,"controls"))});K(e);G.embedSWF(D,o,"100%","100%","9.0.0",!1,f,j,k,function(b){if(b.success)e.jwapi=b.ref,s||c(b.ref).attr("tabindex",
|
35
|
+
"-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&l[0].parentNode||"none"==b.ref.style.display)l.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),d.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),B||(clearTimeout(B),B=setTimeout(function(){var a=c(b.ref);1<a[0].offsetWidth&&1<a[0].offsetHeight&&0===location.protocol.indexOf("file:")?d.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):
|
36
|
+
(2>a[0].offsetWidth||2>a[0].offsetHeight)&&d.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){c(a).mediaLoad()},1)};var x=function(a,b,d,c){return(c=c||p(a))?(c.jwapi&&c.jwapi[b]?c.jwapi[b].apply(c.jwapi,d||[]):(c.actionQueue.push({fn:b,args:d}),10<c.actionQueue.length&&setTimeout(function(){5<c.actionQueue.length&&c.actionQueue.shift()},99)),c):!1};["audio","video"].forEach(function(a){var b={},e,f=function(c){"audio"==a&&
|
37
|
+
("videoHeight"==c||"videoWidth"==c)||(b[c]={get:function(){var a=p(this);return a?a[c]:t&&e[c].prop._supget?e[c].prop._supget.apply(this):v[c]},writeable:!1})},g=function(a,c){f(a);delete b[a].writeable;b[a].set=c};g("volume",function(a){var b=p(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&d.error("volume greater or less than allowed "+a/100);x(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(f){}a/=100;if(!(b.volume==a||"flash"!=b.isActive))b.volume=
|
38
|
+
a,j(b._elem,"volumechange")}}else if(e.volume.prop._supset)return e.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,j(b._elem,"volumechange")}else if(e.muted.prop._supset)return e.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,j(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(e.currentTime.prop._supset)return e.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){b[a]={value:function(){var b=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,j(b._elem,a)},1);else if(e[a].prop._supvalue)return e[a].prop._supvalue.apply(this,arguments)}}});C.forEach(f);d.onNodeNamesPropertyModify(a,"controls",function(b,e){var f=p(this);c(this)[e?"addClass":"removeClass"]("webshims-controls");if(f){try{x(this,e?"showControls":"hideControls",[a],f)}catch(g){d.warn("you need to generate a crossdomain.xml")}"audio"==a&&F(f,e);c(f.jwapi).attr("tabindex",e?"0":"-1")}});e=d.defineNodeNameProperties(a,b,"prop")});if(y){var O=
|
41
|
+
c.cleanData,P=c.browser.msie&&9>d.browserVersion,Q={object:1,OBJECT:1};c.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&g)for(b=0;b<c;b++)if(Q[a[b].nodeName]){if("sendEvent"in a[b]){g--;try{a[b].sendEvent("play",!1)}catch(e){}}if(P)try{for(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(f){}}return O.apply(this,arguments)}}if(!t){var u=m.createElement("a");u.style.display="none";["poster","src"].forEach(function(a){d.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],
|
42
|
+
a,{prop:{get:function(){var b=this.getAttribute(a),d;if(null==b)return"";u.setAttribute("href",b+"");if(!c.support.hrefNormalized){try{c(u).appendTo(this),d=u.getAttribute("href",4)}catch(e){d=u.getAttribute("href",4)}c(u).detach()}return d||u.href},set:function(b){c.attr(this,a,b)}}})});["autoplay","controls"].forEach(function(a){d.defineNodeNamesBooleanProperty(["audio","video"],a)});d.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},
|
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,42 +1,47 @@
|
|
1
|
-
jQuery.webshims.register("form-message",function(a,b,
|
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
|
-
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){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)&&
|
8
|
-
"output","button"],
|
9
|
-
a&&f&&(
|
10
|
-
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,
|
11
|
-
f[0].type||"").toLowerCase();if("select"==h.nodeName){if(
|
12
|
-
c[h.type]&&c[h.type].mismatch
|
13
|
-
!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(f,"submit"),b.bugs.bustedValidity&&a.nodeName(f,"form"))){var
|
14
|
-
d=!1;d=!1}}};a(i).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var
|
15
|
-
b.addInputType("url",{mismatch:function(){var a=
|
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({},
|
17
|
-
h);else return!0;if(!h.valid){c=a.Event("invalid");var g=a(f).trigger(c);if(d&&!
|
18
|
-
(f=!1);return f}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){
|
19
|
-
a(this).getNativeElement(),
|
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,
|
21
|
-
|
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
|
24
|
-
"form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),
|
25
|
-
|
26
|
-
|
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)}}})
|
28
|
-
{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});
|
29
|
-
|
30
|
-
function(c){if(
|
31
|
-
function(
|
32
|
-
|
33
|
-
|
34
|
-
(b
|
35
|
-
|
36
|
-
"
|
37
|
-
"
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
1
|
+
jQuery.webshims.register("form-message",function(a,b,q,i,s,d){var c=b.validityMessages,q=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
|
+
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){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)&&q.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 d=a("select",this);if(d[0]&&d[0].options&&d[0].options.length)b=d[0].options}return b}}});q.forEach(function(d){b.defineNodeNamesProperty(["fieldset",
|
8
|
+
"output","button"],d,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(c){var g=b.defineNodeNameProperty(c,d,{prop:{get:function(){var d=this,c="";if(!a.prop(d,"willValidate"))return c;var i=a.prop(d,"validity")||{valid:1};if(i.valid||(c=b.getContentValidationMessage(d,i)))return c;if(i.customError&&d.nodeName&&(c=Modernizr.formvalidation&&!b.bugs.bustedValidity&&g.prop._supget?g.prop._supget.call(d):b.data(d,"customvalidationMessage")))return c;a.each(i,function(a,f){if("valid"!=
|
9
|
+
a&&f&&(c=b.createValidationMessage(d,a)))return!1});return c||""},writeable:!1}})})})});
|
10
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,q,i){b.inputTypes=b.inputTypes||{};var s=b.cfg.forms,d,c=b.inputTypes,g={radio:1,checkbox:1};b.addInputType=function(a,b){c[a]=b};var u={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},r={valueMissing:function(f,t,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(t=!t)if(!(t=0>f[0].selectedIndex))f=f[0],t="select-one"==f.type&&2>f.size?!!a("> option:first-child",f).prop("selected"):!1;f=t}else f=g[h.type]?"checkbox"==h.type?!f.is(":checked"):!b.modules["form-core"].getGroupElements(f).filter(":checked")[0]:!t;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
|
+
if(c[h.type]&&c[h.type].mismatch)d=c[h.type].mismatch(b,a);else if("validity"in a[0])d=a[0].validity.typeMismatch;return d},patternMismatch:function(a,d,h){if(""===d||"select"==h.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(c){b.error('invalid pattern value: "'+a+'" | '+c),a=!1}return!a?!1:!a.test(d)}};b.addValidityRule=function(a,b){r[a]=b};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var f=
|
13
|
+
this.form||this;if(!a.data(f,"invalidEventShim")&&(a(f).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(f,"submit"),b.bugs.bustedValidity&&a.nodeName(f,"form"))){var d=f.getAttribute("novalidate");f.setAttribute("novalidate","novalidate");b.data(f,"bustedNoValidate",null==d?null:d)}},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=
|
14
|
+
!0;if(!a(f.target).checkValidity())return f.stopImmediatePropagation(),d=!1;d=!1}}};a(i).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var w=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 w.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=s.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
|
15
|
+
return function(b){return!a.test(b)}}()});b.addInputType("url",{mismatch:function(){var a=s.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({},u)}}},"prop");var k=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&&!k.unhandledInvalids&&!c.isDefaultPrevented())b.validityAlert.showFor(g),k.unhandledInvalids=!0}a.removeData(f,"cachedValidity");return h.valid};b.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var f=!0,d=a("input,textarea,select",this).filter(function(){var a=b.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});k.unhandledInvalids=!1;for(var h=0,c=d.length;h<c;h++)k(d[h])||
|
18
|
+
(f=!1);return f}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){k.unhandledInvalids=!1;return k(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(f){a.removeData(this,"cachedValidity");b.data(this,"customvalidationMessage",""+f)}},willValidate:{writeable:!1,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:{writeable:!1,
|
19
|
+
get:function(){var f=a(this).getNativeElement(),d=f[0],h=a.data(d,"cachedValidity");if(h)return h;h=a.extend({},u);if(!a.prop(d,"willValidate")||"submit"==d.type)return h;var c=f.val(),g={nodeName:d.nodeName.toLowerCase()};h.customError=!!b.data(d,"customvalidationMessage");if(h.customError)h.valid=!1;a.each(r,function(a,b){if(b(f,c,g))h[a]=!0,h.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",h.valid?"false":"true");d=f=null;return h}}},"prop");b.defineNodeNamesBooleanProperty(["input",
|
20
|
+
"textarea","select"],"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,d=a([]),c=1E9,g=function(){var a=d.prop("value"),f=a.length;f>b&&f>c&&(f=Math.max(b,c),d.prop("value",a.substr(0,f)));b=f},v=function(){clearTimeout(f);d.unbind(".maxlengthconstraint")};return function(j,n){v();if(-1<n)c=n,b=
|
21
|
+
a.prop(j,"value").length,d=a(j),d.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),d.bind("keyup.maxlengthconstraint",g),d.bind("blur.maxlengthconstraint",v),f=setInterval(g,200)}}();j.update=function(f,b){a(f).is(":focus")&&(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 y={submit:1,button:1,image:1},m={};[{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 d=
|
24
|
+
"form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),c="form"+b.name,g=b.name,j="click.webshimssubmittermutate"+g,v=function(){if("form"in this&&y[this.type]){var n=a.prop(this,"form");if(n){var o=a.attr(this,c);if(null!=o&&(!b.limitedTo||o.toLowerCase()===a.prop(this,d))){var l=a.attr(n,g);a.attr(n,g,o);setTimeout(function(){if(null!=l)a.attr(n,g,l);else try{a(n).removeAttr(g)}catch(b){n.removeAttribute(g)}},9)}}}};switch(b.proptype){case "url":var k=i.createElement("form");
|
25
|
+
m[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);if(null==b)return"";k.setAttribute("action",b);return k.action}}};break;case "boolean":m[d]={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":m[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var d=a.attr(this,c);return!d||(d=d.toLowerCase())&&!b.limitedTo[d]?b.defaultProp:
|
26
|
+
d}}};break;default:m[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);return null!=b?b:""}}}}m[c]||(m[c]={});m[c].attr={set:function(b){m[c].attr._supset.call(this,b);a(this).unbind(j).bind(j,v)},get:function(){return m[c].attr._supget.call(this)}};m[c].initAttr=!0;m[c].removeAttr={value:function(){a(this).unbind(j);m[c].removeAttr._supvalue.call(this)}}});b.defineNodeNamesProperties(["input","button"],m);!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)}}}),a.each(["rangeUnderflow","rangeOverflow",
|
28
|
+
"stepMismatch"],function(a,b){r[b]=function(a){return(a[0].validity||{})[b]||!1}}));b.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var c={updateInput:1,input:1},g={date:1,time:1,"datetime-local":1},h={focusout:1,blur:1},j={updateInput:1,change:1},k=function(a){var b,d=!0,o=a.prop("value"),l=
|
29
|
+
o,p=function(b){if(a){var p=a.prop("value");p!==o&&(o=p,(!b||!c[b.type])&&a.trigger("input"));b&&j[b.type]&&(l=p);!d&&p!==l&&a.trigger("change")}},g,x=function(c){clearInterval(b);setTimeout(function(){c&&h[c.type]&&(d=!1);a&&(a.unbind("focusout blur",x).unbind("input change updateInput",p),p());a=null},1)};clearInterval(b);b=setInterval(p,160);clearTimeout(g);g=setTimeout(p,9);a.unbind("focusout blur",x).unbind("input change updateInput",p);a.bind("focusout blur",x).bind("input updateInput change",
|
30
|
+
p)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var c=function(b){var c=1,f,l;if("date"==b.type&&(d||!a(b).is(":focus")))if((l=b.value)&&10>l.length&&(l=l.split("-"))&&3==l.length){for(;3>c;c++)if(1==l[c].length)l[c]="0"+l[c];else if(2!=l[c].length){f=!0;break}if(!f)return l=l.join("-"),a.prop(b,"value",l),l}},f,g,o,l;f=b.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){c(this);return f.prop._supvalue.apply(this,arguments)}}});g=b.defineNodeNameProperty("form",
|
31
|
+
"checkValidity",{prop:{value:function(){a("input",this).each(function(){c(this)});return g.prop._supvalue.apply(this,arguments)}}});o=b.defineNodeNameProperty("input","value",{prop:{set:function(){return o.prop._supset.apply(this,arguments)},get:function(){return c(this)||o.prop._supget.apply(this,arguments)}}});l=b.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){c(this);return l.prop._supget.apply(this,arguments)}}});a(i).bind("change",function(a){isChangeSubmit=!0;c(a.target);
|
32
|
+
isChangeSubmit=!1})})();a(i).bind("focusin",function(b){b.target&&g[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&k(a(b.target))})}();b.addReady(function(b,d){var c;a("form",b).add(d.filter("form")).bind("invalid",a.noop);try{if(b==i&&!("form"in(i.activeElement||{})))(c=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&c.offsetHeight&&c.offsetWidth&&c.focus()}catch(g){}});(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);
|
33
|
+
var c=a.browser.webkit&&Modernizr.textareaPlaceholder;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||c){var d="over"==b.cfg.forms.placeholderType,g=["textarea"];Modernizr.input.placeholder||g.push("input");var j=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},i=function(b,c,f,g){!1===f&&(f=a.prop(b,"value"));if(!d&&"password"!=b.type){if(!f&&g&&
|
34
|
+
j(b)){var h;a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),clearTimeout(h),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){j(b);clearTimeout(h);h=setTimeout(function(){j(b)},9)}).bind("blur.placeholderremove",
|
35
|
+
function(){clearTimeout(h);a(b).unbind(".placeholderremove")});return}b.value=f}else if(!f&&g){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},k=function(b,
|
36
|
+
c,f,g,h){if(!g&&(g=a.data(b,"placeHolder"),!g))return;a(b).unbind(".placeholderremove");if("focus"==h||!h&&a(b).is(":focus"))("password"==b.type||d||a(b).hasClass("placeholder-visible"))&&i(b,g,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)i(b,g,c);else if(!1===f&&(f=a.attr(b,"placeholder")||""),f&&!c){c=g;!1===f&&(f=a.prop(b,"placeholder"));if(!d&&"password"!=b.type)b.value=f;c.box.addClass("placeholder-visible")}else i(b,g,c)},m=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&&!b.attr("aria-labelledby"));
|
37
|
+
!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>')},n=function(){var c={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder");if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){k(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});
|
38
|
+
b.form&&a(b.form).bind("reset.placeholder",function(a){setTimeout(function(){k(b,!1,!1,c,a.type)},0)});if("password"==b.type||d){c.text=m(b);c.box=a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+'" />').parent();c.text.insertAfter(b).bind("mousedown.placeholder",function(){k(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||0)+Math.max(parseInt(a.css(b,
|
39
|
+
"margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)});a.css(b,"lineHeight");var f={width:a(b).width(),height:a(b).height()},g=a.css(b,"float");a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)});f.width&&f.height&&c.text.css(f);"none"!==g&&c.box.addClass("placeholder-box-"+g)}else f=function(d){a(b).hasClass("placeholder-visible")&&(i(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&
|
40
|
+
k(b,!1,!1,c)},9))},a(q).bind("beforeunload",f),c.box=a(b),b.form&&a(b.form).submit(f);return c},update:function(d,f){if(!c[a.prop(d,"type")]&&!a.nodeName(d,"textarea"))b.warn("placeholder not allowed on type: "+a.prop(d,"type"));else{var g=n.create(d);g.text&&g.text.text(f);k(d,!1,f,g)}}}}();a.webshims.publicMethods={pHolder:n};g.forEach(function(a){b.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){c?(b.data(this,"textareaPlaceholder",a),this.placeholder=""):b.contentAttr(this,"placeholder",
|
41
|
+
a);n.update(this,a)},get:function(){return(c?b.data(this,"textareaPlaceholder"):"")||b.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});g.forEach(function(d){var g={},h;["attr","prop"].forEach(function(d){g[d]={set:function(g){var j;c&&(j=b.data(this,"textareaPlaceholder"));j||(j=b.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var i=h[d]._supset.call(this,g);j&&"value"in this&&k(this,g,j);return i},get:function(){return a(this).hasClass("placeholder-visible")?"":
|
42
|
+
h[d]._supget.call(this)}}});h=b.defineNodeNameProperty(d,"value",g)})}})()});
|
43
|
+
jQuery.webshims.ready("dom-support",function(a,b,q,i){(function(){if(!("value"in i.createElement("output"))){b.defineNodeNameProperty("output","value",{prop:{set:function(b){var c=a.data(this,"outputShim");c||(c=s(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 s=function(d){if(!d.getAttribute("aria-live")){var d=a(d),c=(d.text()||"").trim(),
|
44
|
+
g=d.attr("id"),u=d.attr("for"),r=a('<input class="output-shim" type="text" disabled name="'+(d.attr("name")||"")+'" value="'+c+'" style="display: none !important;" />').insertAfter(d),w=r[0].form||i,k=function(a){r[0].value=a;a=r[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&&(r.attr("id",g),d.attr("aria-labelledby",b.getID(a('label[for="'+g+'"]',w))));u&&(g=b.getID(d),u.split(" ").forEach(function(a){(a=i.getElementById(a))&&
|
45
|
+
a.setAttribute("aria-controls",g)}));d.data("outputShim",k);r.data("outputShim",k);return k}};b.addReady(function(b,c){a("output",b).add(c.filter("output")).each(function(){s(this)})})}})();(function(){var s={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||!s[c.type])&&b.triggerInlineForm&&b.triggerInlineForm(a[0],"input"))}},k,j=function(){clearTimeout(k);
|
46
|
+
k=setTimeout(i,9)},q=function(){a.unbind("focusout",q).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",q).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||
|
47
|
+
"").toLowerCase()&&!d[b.target.type]&&c(a(b.target))})})();b.isReady("form-output",!0)});
|
@@ -1,57 +1,57 @@
|
|
1
|
-
(function(){var a=Function.prototype.call,
|
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=
|
3
|
-
function(a,b){var f=
|
4
|
-
for(var
|
5
|
-
|
6
|
-
f&&f[
|
7
|
-
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var
|
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,
|
11
|
-
if(!i||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var j=Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
12
|
-
f){for(var b in f)j(f,b)&&
|
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(
|
14
|
-
k;if(i)b.set=i;return b}}})(jQuery,jQuery.webshims);
|
15
|
-
(function(a,
|
16
|
-
|
17
|
-
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
"
|
27
|
-
|
28
|
-
jQuery.webshims.register("mediaelement-swf",function(a,
|
29
|
-
muted:!1};Object.keys(
|
30
|
-
"jwplayer/"+(f.playerName||"player.swf"),
|
31
|
-
l.duration!=l._lastDuration?(
|
32
|
-
{View:{PLAY:function(a){var
|
33
|
-
|
34
|
-
a.width||0;if(!
|
35
|
-
break;case "PLAYING":
|
36
|
-
a.position)
|
37
|
-
a.actionQueue.length,b=0,c;if(
|
38
|
-
(
|
39
|
-
|
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"))}};
|
41
|
-
(b=j.getElementById(b.replace(
|
42
|
-
|
43
|
-
".webshimspolyfill"}).join(" "),M=function(b){var
|
44
|
-
var f=
|
45
|
-
for(
|
46
|
-
"flash",g),N(g),g.currentSrc=
|
47
|
-
shadowElem:{value:
|
48
|
-
controlbar:
|
49
|
-
"none"==b.ref.style.display)
|
50
|
-
(2>
|
51
|
-
("videoHeight"==a||"videoWidth"==a)||(
|
52
|
-
a,
|
53
|
-
!0;b.stopPlayPause=!1},50);
|
54
|
-
!0,b.paused!=("play"!=a)))b.paused="play"!=a,
|
55
|
-
a.cleanData,P=a.browser.msie&&9>
|
56
|
-
b,{prop:{get:function(){var
|
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
|
+
(function(){var a=Function.prototype.call,c=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),d=function(){if(this instanceof d){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 d};g=a.bind(c.toString);j=a.bind(c.hasOwnProperty);
|
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=p(this),d=0,b=m.length>>>0;if("[object Function]"!=g(a))throw new TypeError;for(;d<b;)d in m&&a.call(f,m[d],d,m),d++};if(!Array.prototype.map)Array.prototype.map=function(a,f){var b=p(this),d=b.length>>>0,c=Array(d);if("[object Function]"!=g(a))throw new TypeError;for(var h=0;h<d;h++)h in b&&(c[h]=a.call(f,b[h],h,b));return c};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
+
function(a,b){var f=p(this),d=f.length>>>0,c=[];if("[object Function]"!=g(a))throw new TypeError;for(var h=0;h<d;h++)h in f&&a.call(b,f[h],h,f)&&c.push(f[h]);return c};if(!Array.prototype.every)Array.prototype.every=function(a,f){var b=p(this),d=b.length>>>0;if("[object Function]"!=g(a))throw new TypeError;for(var c=0;c<d;c++)if(c in b&&!a.call(f,b[c],c,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,b){var f=p(this),d=f.length>>>0;if("[object Function]"!=g(a))throw new TypeError;
|
4
|
+
for(var c=0;c<d;c++)if(c in f&&a.call(b,f[c],c,f))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var f=p(this),b=f.length>>>0;if("[object Function]"!=g(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var d=0,c;if(2<=arguments.length)c=arguments[1];else{do{if(d in f){c=f[d++];break}if(++d>=b)throw new TypeError;}while(1)}for(;d<b;d++)d in f&&(c=a.call(void 0,c,f[d],d,f));return c};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var f=
|
5
|
+
p(this),b=f.length>>>0;if("[object Function]"!=g(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var d,b=b-1;if(2<=arguments.length)d=arguments[1];else{do{if(b in f){d=f[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(d=a.call(void 0,d,f[b],b,f));while(b--);return d};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var f=p(this),b=f.length>>>0;if(!b)return-1;var d=0;1<arguments.length&&(d=v(arguments[1]));for(d=0<=d?d:b-Math.abs(d);d<b;d++)if(d in
|
6
|
+
f&&f[d]===a)return d;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var f=p(this),b=f.length>>>0;if(!b)return-1;var d=b-1;1<arguments.length&&(d=v(arguments[1]));for(d=0<=d?d:b-Math.abs(d);0<=d;d--)if(d in f&&a===f[d])return d;return-1};if(!Object.keys){var f=!0,b="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),y=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 c=[],g;for(g in a)j(a,g)&&c.push(g);if(f)for(g=0;g<y;g++){var d=b[g];j(a,d)&&c.push(d)}return c}}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+"]",z=RegExp("^"+a+a+"*"),h=
|
9
|
+
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(z,"").replace(h,"")}}var v=function(a){a=+a;a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},s="a"!="a"[0],p=function(a){if(null==a)throw new TypeError;return s&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
10
|
+
(function(a,c){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<=c.browserVersion));Modernizr.advancedObjectProperties=i;
|
11
|
+
if(!i||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var j=Function.prototype.call.bind(Object.prototype.hasOwnProperty);c.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&&c.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};c.defineProperties=function(a,
|
12
|
+
f){for(var b in f)j(f,b)&&c.defineProperty(a,b,f[b]);return a};c.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};c.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};c.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(c){}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,c,i){var j=c.audio&&c.video,g=!1;if(j)a=document.createElement("video"),c.videoBuffered="buffered"in a,g="loop"in a,i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),c.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:c.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,b,c,k,i){var h=b.mediaelement,v=b.cfg.mediaelement,
|
16
|
+
s=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var o=b.attr("type");if(o)d.type=o,d.container=a.trim(o.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),o=h.getTypeForSrc(d.src,c))d.type=o,d.container=o;if(o=b.attr("media"))d.media=o;return d},p=swfobject.hasFlashPlayerVersion("9.0.115"),x=function(){b.ready("mediaelement-swf",function(){if(!h.createSWF)b.modules["mediaelement-swf"].test=
|
17
|
+
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","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",
|
18
|
+
"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";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(h.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};h.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),
|
19
|
+
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=[],d=b[0].nodeName.toLowerCase(),h=s(b,d);h.src?c.push(h):a("source",b).each(function(){h=s(this,d);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,
|
20
|
+
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(",");h.canSwfPlaySrces=function(b,c){var d="";p&&(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 d=b,!1}));return d};var n={};h.canNativePlaySrces=function(b,
|
21
|
+
c){var d="";if(j){var b=a(b),o=(b[0].nodeName||"").toLowerCase();if(!n[o])return d;c=c||h.srces(b);a.each(c,function(a,c){if(c.type&&n[o].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};h.setError=function(c,d){d||(d="can't play sources");a(c).pause().data("mediaerror",d);b.warn("mediaelementError: "+d);setTimeout(function(){a(c).data("mediaerror")&&a(c).trigger("mediaerror")},1)};var m=function(){var a;return function(c,d,f){b.ready("mediaelement-swf",function(){h.createSWF?h.createSWF(c,
|
22
|
+
d,f):a||(a=!0,x(),m(c,d,f))})}}(),d=function(a,b,c,f,g){c||!1!==c&&b&&"flash"==b.isActive?(c=h.canSwfPlaySrces(a,f))?m(a,c,b):g?h.setError(a,!1):d(a,b,!1,f,!0):(c=h.canNativePlaySrces(a,f))?b&&"flash"==b.isActive&&h.setActive(a,"html5",b):g?(h.setError(a,!1),b&&"flash"==b.isActive&&h.setActive(a,"html5",b)):d(a,b,!0,f,!0)},C=/^(?:embed|object|datalist)$/i,u=function(c,g){var k=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{}),o=h.srces(c),j=c.parentNode;clearTimeout(k.loadTimer);a.data(c,
|
23
|
+
"mediaerror",!1);if(o.length&&j&&!(1!=j.nodeType||C.test(j.nodeName||"")))g=g||b.data(c,"mediaelement"),d(c,g,v.preferFlash||i,o)};a(k).bind("ended",function(c){var d=b.data(c.target,"mediaelement");(!g||d&&"html5"!=d.isActive||a.prop(c.target,"loop"))&&setTimeout(function(){!a.prop(c.target,"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 d=b.defineNodeNameProperty(c,
|
24
|
+
"load",{prop:{value:function(){var a=b.data(this,"mediaelement");u(this,a);j&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});n[c]=b.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(b){var d="";j&&n[c].prop._supvalue&&(d=n[c].prop._supvalue.call(this,b),"no"==d&&(d=""));!d&&p&&(b=a.trim((b||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(b)&&(d="maybe"));return d}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
|
25
|
+
this,c=b.data(a,"mediaelementBase")||b.data(a,"mediaelementBase",{});clearTimeout(c.loadTimer);c.loadTimer=setTimeout(function(){u(a);a=null},9)}});c=function(){b.addReady(function(c,d){a("video, audio",c).add(d.filter("video, audio")).each(function(){a.browser.msie&&8<b.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():u(this);if(j){var c,d,h=this,g=function(){var b=a.prop(h,
|
26
|
+
"buffered");if(b){for(var c="",d=0,g=b.length;d<g;d++)c+=b.end(d);return c}},k=function(){var b=g();b!=d&&(d=b,a(h).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(d=g());clearTimeout(c);c=setTimeout(k,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(d=!1);clearTimeout(c)})}})})};j?(b.isReady("mediaelement-core",!0),c(),p&&b.ready("WINDOWLOAD mediaelement",x)):b.ready("mediaelement-swf",c)})})(jQuery,Modernizr,
|
27
|
+
jQuery.webshims);
|
28
|
+
jQuery.webshims.register("mediaelement-swf",function(a,c,i,j,g,f){var b=c.mediaelement,y=i.swfobject,k=Modernizr.audio&&Modernizr.video,z=y.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)c.error("buffered index size error");else return 0},end:function(a){if(a)c.error("buffered index size error");else return 0},length:0}},v=Object.keys(i),s={currentTime:0,volume:1,
|
29
|
+
muted:!1};Object.keys(s);var p=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:g},i,s),x=/^jwplayer-/,n=function(a){if(a=j.getElementById(a.replace(x,"")))return a=c.data(a,"mediaelement"),"flash"==a.isActive?a:null},m=function(a){return(a=c.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},d=function(l,e){e=a.Event(e);e.preventDefault();a.event.trigger(e,g,l)},C=f.playerPath||c.cfg.basePath+
|
30
|
+
"jwplayer/"+(f.playerName||"player.swf"),u=f.pluginPath||c.cfg.basePath+"swf/jwwebshims.swf";c.extendUNDEFProp(f.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});c.extendUNDEFProp(f.jwVars,{screencolor:"ffffffff"});c.extendUNDEFProp(f.jwAttrs,{bgcolor:"#000000"});var D=function(l,e){var c=l.duration;if(!(c&&0<l._durationCalcs)){try{if(l.duration=l.jwapi.getPlaylist()[0].duration,!l.duration||0>=l.duration||l.duration===l._lastDuration)l.duration=c}catch(f){}l.duration&&
|
31
|
+
l.duration!=l._lastDuration?(d(l._elem,"durationchange"),("audio"==l._elemNodeName||l._callMeta)&&b.jwEvents.Model.META(a.extend({duration:l.duration},e),l),l._durationCalcs--):l._durationCalcs++}},q=function(a,e){3>a&&clearTimeout(e._canplaythroughTimer);if(3<=a&&3>e.readyState)e.readyState=a,d(e._elem,"canplay"),clearTimeout(e._canplaythroughTimer),e._canplaythroughTimer=setTimeout(function(){q(4,e)},4E3);if(4<=a&&4>e.readyState)e.readyState=a,d(e._elem,"canplaythrough");e.readyState=a};b.jwEvents=
|
32
|
+
{View:{PLAY:function(a){var e=n(a.id);if(e&&!e.stopPlayPause&&(e._ppFlag=!0,e.paused==a.state)){e.paused=!a.state;if(e.ended)e.ended=!1;d(e._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(l){var e=n(l.id);if(e&&"percentage"in l&&e._bufferedEnd!=l.percentage){e.networkState=100==l.percentage?1:2;(isNaN(e.duration)||5<l.percentage&&25>l.percentage||100===l.percentage)&&D(e,l);if(e.ended)e.ended=!1;if(e.duration){2<l.percentage&&20>l.percentage?q(3,e):20<l.percentage&&q(4,e);if(e._bufferedEnd&&
|
33
|
+
e._bufferedEnd>l.percentage)e._bufferedStart=e.currentTime||0;e._bufferedEnd=l.percentage;e.buffered.length=1;if(100==l.percentage)e.networkState=1,q(4,e);a.event.trigger("progress",g,e._elem,!0)}}},META:function(a,e){if(e=e&&e.networkState?e:n(a.id))if("duration"in a){if(!e._metadata||!((!a.height||e.videoHeight==a.height)&&a.duration===e.duration)){e._metadata=!0;var b=e.duration;if(a.duration)e.duration=a.duration;e._lastDuration=e.duration;if(a.height||a.width)e.videoHeight=a.height||0,e.videoWidth=
|
34
|
+
a.width||0;if(!e.networkState)e.networkState=2;1>e.readyState&&q(1,e);e.duration&&b!==e.duration&&d(e._elem,"durationchange");d(e._elem,"loadedmetadata")}}else e._callMeta=!0},TIME:function(a){var e=n(a.id);if(e&&e.currentTime!==a.position){e.currentTime=a.position;e.duration&&e.duration<e.currentTime&&D(e,a);2>e.readyState&&q(2,e);if(e.ended)e.ended=!1;d(e._elem,"timeupdate")}},STATE:function(a){var e=n(a.id);if(e)switch(a.newstate){case "BUFFERING":if(e.ended)e.ended=!1;q(1,e);d(e._elem,"waiting");
|
35
|
+
break;case "PLAYING":e.paused=!1;e._ppFlag=!0;e.duration||D(e,a);3>e.readyState&&q(3,e);if(e.ended)e.ended=!1;d(e._elem,"playing");break;case "PAUSED":if(!e.paused&&!e.stopPlayPause)e.paused=!0,e._ppFlag=!0,d(e._elem,"pause");break;case "COMPLETED":4>e.readyState&&q(4,e),e.ended=!0,d(e._elem,"ended")}}},Controller:{ERROR:function(a){var e=n(a.id);e&&b.setError(e._elem,a.message)},SEEK:function(a){var e=n(a.id);if(e){if(e.ended)e.ended=!1;if(e.paused)try{e.jwapi.sendEvent("play","false")}catch(b){}if(e.currentTime!=
|
36
|
+
a.position)e.currentTime=a.position,d(e._elem,"timeupdate")}},VOLUME:function(a){var e=n(a.id);if(e&&(a=a.percentage/100,e.volume!=a))e.volume=a,d(e._elem,"volumechange")},MUTE:function(a){if(!a.state){var e=n(a.id);if(e&&e.muted!=a.state)e.muted=a.state,d(e._elem,"volumechange")}}}};var J=function(c){var e=!0;a.each(b.jwEvents,function(b,d){a.each(d,function(a){try{c.jwapi["add"+b+"Listener"](a,"jQuery.webshims.mediaelement.jwEvents."+b+"."+a)}catch(d){return e=!1}})});return e},o=function(a){var e=
|
37
|
+
a.actionQueue.length,b=0,c;if(e&&"flash"==a.isActive)for(;a.actionQueue.length&&e>b;)b++,c=a.actionQueue.shift(),a.jwapi[c.fn].apply(a.jwapi,c.args);if(a.actionQueue.length)a.actionQueue=[]},G=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(e){}},1)},K=function(b){if(b&&"video"==b._elemNodeName){var e,c,d,f,h,r,g,k,i=function(i,j){if(j&&i&&!(1>j||1>i||"flash"!=b.isActive))if(e&&
|
38
|
+
(e.remove(),e=!1),f=i,h=j,clearTimeout(g),c="auto"==b._elem.style.width,d="auto"==b._elem.style.height,c||d){r=r||a(b._elem).getShadowElement();var m;c&&!d?(m=r.height(),i*=m/j,j=m):!c&&d&&(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,d="auto"==b._elem.style.height,c||d))e&&(e.remove(),e=!1),
|
39
|
+
e=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),e.bind("load error alreadycomplete",function(){clearTimeout(g);var b=this,c=b.naturalWidth||b.width||b.offsetWidth,d=b.naturalHeight||b.height||b.offsetHeight;d&&c?(i(c,d),b=null):setTimeout(function(){c=b.naturalWidth||b.width||b.offsetWidth;d=b.naturalHeight||b.height||b.offsetHeight;i(c,d);e&&(e.remove(),e=!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 updatemediaelementdimensions",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"))}};
|
41
|
+
b.playerResize=function(b){b&&(b=j.getElementById(b.replace(x,"")))&&a(b).triggerHandler("swfstageresize")};a(j).bind("emptied",function(a){a=m(a.target);G(a)});var A;b.jwPlayerReady=function(b){var e=n(b.id),d=0,f=function(){if(!(9<d))if(d++,J(e)){if(e.wasSwfReady)a(e._elem).mediaLoad();else{var h=parseFloat(b.version,10);(5.6>h||6<=h)&&c.warn("mediaelement-swf is only testet with jwplayer 5.6+")}e.wasSwfReady=!0;e.tryedReframeing=0;o(e);G(e)}else clearTimeout(e.reframeTimer),e.reframeTimer=setTimeout(f,
|
42
|
+
9*d),2<d&&9>e.tryedReframeing&&(e.tryedReframeing++,e.shadowElem.css({overflow:"visible"}),setTimeout(function(){e.shadowElem.css({overflow:"hidden"})},16))};if(e&&e.jwapi){if(!e.tryedReframeing)e.tryedReframeing=0;clearTimeout(A);e.jwData=b;e.shadowElem.removeClass("flashblocker-assumed");a.prop(e._elem,"volume",e.volume);a.prop(e._elem,"muted",e.muted);f()}};var E=a.noop;if(k){var L={play:1,playing:1},H="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),
|
43
|
+
I=H.map(function(a){return a+".webshimspolyfill"}).join(" "),M=function(b){var e=c.data(b.target,"mediaelement");e&&(b.originalEvent&&b.originalEvent.type===b.type)==("flash"==e.activating)&&(b.stopImmediatePropagation(),L[b.type]&&e.isActive!=e.activating&&a(b.target).pause())},E=function(b){a(b).unbind(I).bind(I,M);H.forEach(function(a){c.moveToFirstEvent(b,a)})};E(j)}b.setActive=function(b,e,d){d||(d=c.data(b,"mediaelement"));if(d&&d.isActive!=e){"html5"!=e&&"flash"!=e&&c.warn("wrong type for mediaelement activating: "+
|
44
|
+
e);var f=c.data(b,"shadowData");d.activating=e;a(b).pause();d.isActive=e;"flash"==e?(f.shadowElement=f.shadowFocusElement=d.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(c){if(c){var f=b,h=c.networkState;
|
45
|
+
for(q(0,c);--f;)delete c[a[f]];c.actionQueue=[];c.buffered.length=0;h&&d(c._elem,"emptied")}}}(),F=function(b,e){var c=b._elem,d=b.shadowElem;a(c)[e?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!e?d.css({width:0,height:0}):d.css({width:c.style.width||a(c).width(),height:c.style.height||a(c).height()})};b.createSWF=function(d,e,g){if(z){1>h?h=1:h++;var i=a.extend({},f.jwVars,{image:a.prop(d,"poster")||"",file:e.srcProp}),j=a(d).data("jwvars")||{};g||(g=c.data(d,"mediaelement"));
|
46
|
+
if(g&&g.swfCreated)b.setActive(d,"flash",g),N(g),g.currentSrc=e.srcProp,a.extend(i,j),f.changeJW(i,d,e,g,"load"),w(d,"sendEvent",["LOAD",i]);else{var B=a.prop(d,"controls"),r="jwplayer-"+c.getID(d),m=a.extend({},f.jwParams,a(d).data("jwparams")),n=d.nodeName.toLowerCase(),o=a.extend({},f.jwAttrs,{name:r,id:r},a(d).data("jwattrs")),q=a('<div class="polyfill-'+n+' polyfill-mediaelement" id="wrapper-'+r+'"><div id="'+r+'"></div>').css({position:"relative",overflow:"hidden"}),g=c.data(d,"mediaelement",
|
47
|
+
c.objectCreate(p,{actionQueue:{value:[]},shadowElem:{value:q},_elemNodeName:{value:n},_elem:{value:d},currentSrc:{value:e.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)c.error("buffered index size error");else return 0},end:function(a){if(a>=g.buffered.length)c.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));F(g,B);q.insertBefore(d);k&&a.extend(g,{volume:a.prop(d,"volume"),muted:a.prop(d,
|
48
|
+
"muted")});a.extend(i,{id:r,controlbar:B?f.jwVars.controlbar||("video"==n?"over":"bottom"):"video"==n?"none":"bottom",icons:""+(B&&"video"==n)},j,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+u):u;c.addShadowDom(d,q);E(d);b.setActive(d,"flash",g);f.changeJW(i,d,e,g,"embed");a(d).bind("updatemediaelementdimensions",function(){F(g,a.prop(d,"controls"))});K(g);y.embedSWF(C,r,"100%","100%","9.0.0",!1,i,m,o,function(b){if(b.success)g.jwapi=b.ref,B||a(b.ref).attr("tabindex",
|
49
|
+
"-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&q[0].parentNode||"none"==b.ref.style.display)q.addClass("flashblocker-assumed"),a(d).trigger("flashblocker"),c.warn("flashblocker assumed");a(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),A||(clearTimeout(A),A=setTimeout(function(){var e=a(b.ref);1<e[0].offsetWidth&&1<e[0].offsetHeight&&0===location.protocol.indexOf("file:")?c.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>e[0].offsetWidth||2>e[0].offsetHeight)&&c.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(d).mediaLoad()},1)};var w=function(a,b,c,d){return(d=d||m(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(b){var e={},f,g=function(a){"audio"==b&&
|
51
|
+
("videoHeight"==a||"videoWidth"==a)||(e[a]={get:function(){var b=m(this);return b?b[a]:k&&f[a].prop._supget?f[a].prop._supget.apply(this):p[a]},writeable:!1})},h=function(a,b){g(a);delete e[a].writeable;e[a].set=b};h("volume",function(a){var b=m(this);if(b){if(a*=100,!isNaN(a)){var e=b.muted;(0>a||100<a)&&c.error("volume greater or less than allowed "+a/100);w(this,"sendEvent",["VOLUME",a],b);if(e)try{b.jwapi.sendEvent("mute","true")}catch(g){}a/=100;if(!(b.volume==a||"flash"!=b.isActive))b.volume=
|
52
|
+
a,d(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,w(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"flash"!=b.isActive))b.muted=a,d(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);w(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,d(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(e){}}}}else if(f.currentTime.prop._supset)return f.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){e[a]={value:function(){var b=m(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),w(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag=
|
54
|
+
!0,b.paused!=("play"!=a)))b.paused="play"!=a,d(b._elem,a)},1);else if(f[a].prop._supvalue)return f[a].prop._supvalue.apply(this,arguments)}}});v.forEach(g);c.onNodeNamesPropertyModify(b,"controls",function(e,d){var f=m(this);a(this)[d?"addClass":"removeClass"]("webshims-controls");if(f){try{w(this,d?"showControls":"hideControls",[b],f)}catch(g){c.warn("you need to generate a crossdomain.xml")}"audio"==b&&F(f,d);a(f.jwapi).attr("tabindex",d?"0":"-1")}});f=c.defineNodeNameProperties(b,e,"prop")});if(z){var O=
|
55
|
+
a.cleanData,P=a.browser.msie&&9>c.browserVersion,Q={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;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(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(g){}}return O.apply(this,arguments)}}if(!k){var t=j.createElement("a");t.style.display="none";["poster","src"].forEach(function(b){c.defineNodeNamesProperty("src"==b?["audio","video","source"]:["video"],
|
56
|
+
b,{prop:{get:function(){var e=this.getAttribute(b),c;if(null==e)return"";t.setAttribute("href",e+"");if(!a.support.hrefNormalized){try{a(t).appendTo(this),c=t.getAttribute("href",4)}catch(d){c=t.getAttribute("href",4)}a(t).detach()}return c||t.href},set:function(c){a.attr(this,b,c)}}})});["autoplay","controls"].forEach(function(a){c.defineNodeNamesBooleanProperty(["audio","video"],a)});c.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,55 +1,60 @@
|
|
1
|
-
(function(a,b,
|
2
|
-
n=function(c,
|
3
|
-
|
4
|
-
"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
"
|
11
|
-
|
12
|
-
"
|
13
|
-
|
14
|
-
jQuery.webshims.register("form-message",function(a,b,
|
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}."});
|
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
|
-
b.bugs.bustedValidity)&&
|
21
|
-
"output","button"],
|
22
|
-
a&&c&&(h=b.createValidationMessage(
|
23
|
-
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,
|
24
|
-
c[0].type||"").toLowerCase();if("select"==
|
25
|
-
d
|
26
|
-
!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(c,"submit"),b.bugs.bustedValidity&&a.nodeName(c,"form"))){var
|
27
|
-
h=!1;h=!1}}};a(
|
28
|
-
b.addInputType("url",{mismatch:function(){var a=
|
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({},
|
30
|
-
|
31
|
-
(c=!1);return c}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){
|
32
|
-
a(this).getNativeElement(),
|
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
|
34
|
-
|
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()}),
|
38
|
-
o[b]={prop:{set:function(c){a.attr(this,
|
39
|
-
b}}};break;default:o[b]={prop:{set:function(c){a.attr(this,
|
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)}}})
|
41
|
-
{prop:{set:function(c){c?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});
|
42
|
-
|
43
|
-
function(c){if(
|
44
|
-
function(
|
45
|
-
|
46
|
-
|
47
|
-
(b
|
48
|
-
|
49
|
-
"
|
50
|
-
"
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
l
|
55
|
-
|
1
|
+
(function(a,b,q){var m=b.audio&&b.video,p=!1;if(m)a=document.createElement("video"),b.videoBuffered="buffered"in a,p="loop"in a,q.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),b.videoBuffered||(q.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:b.videoBuffered,d:["dom-support"]}),q.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,b,k,v,r){var g=b.mediaelement,s=b.cfg.mediaelement,
|
2
|
+
n=function(c,b){var c=a(c),l={src:c.attr("src")||"",elem:c,srcProp:c.prop("src")};if(!l.src)return l;var i=c.attr("type");if(i)l.type=i,l.container=a.trim(i.split(";")[0]);else if(b||(b=c[0].nodeName.toLowerCase(),"source"==b&&(b=(c.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),i=g.getTypeForSrc(l.src,b))l.type=i,l.container=i;if(i=c.attr("media"))l.media=i;return l},w=swfobject.hasFlashPlayerVersion("9.0.115"),o=function(){b.ready("mediaelement-swf",function(){if(!g.createSWF)b.modules["mediaelement-swf"].test=
|
3
|
+
a.noop,b.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","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",
|
4
|
+
"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";var c=c.split("?")[0].split("."),c=c[c.length-1],l;a.each(g.mimeTypes[b],function(a,b){if(-1!==b.indexOf(c))return l=a,!1});return l};g.srces=function(c,b){c=a(c);if(b)c.removeAttr("src").removeAttr("type").find("source").remove(),
|
5
|
+
a.isArray(b)||(b=[b]),b.forEach(function(a){var b=v.createElement("source");"string"==typeof a&&(a={src:a});b.setAttribute("src",a.src);a.type&&b.setAttribute("type",a.type);a.media&&b.setAttribute("media",a.media);c.append(b)});else{var b=[],l=c[0].nodeName.toLowerCase(),i=n(c,l);i.src?b.push(i):a("source",c).each(function(){i=n(this,l);i.src&&b.push(i)});return b}};a.fn.loadMediaSrc=function(c,b){return this.each(function(){b!==r&&(a(this).removeAttr("poster"),b&&a.attr(this,"poster",b));g.srces(this,
|
6
|
+
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(",");g.canSwfPlaySrces=function(c,b){var l="";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 l=c,!1}));return l};var c={};g.canNativePlaySrces=function(b,
|
7
|
+
d){var l="";if(m){var b=a(b),i=(b[0].nodeName||"").toLowerCase();if(!c[i])return l;d=d||g.srces(b);a.each(d,function(a,d){if(d.type&&c[i].prop._supvalue.call(b[0],d.type))return l=d,!1})}return l};g.setError=function(c,d){d||(d="can't play sources");a(c).pause().data("mediaerror",d);b.warn("mediaelementError: "+d);setTimeout(function(){a(c).data("mediaerror")&&a(c).trigger("mediaerror")},1)};var j=function(){var a;return function(c,l,i){b.ready("mediaelement-swf",function(){g.createSWF?g.createSWF(c,
|
8
|
+
l,i):a||(a=!0,o(),j(c,l,i))})}}(),d=function(a,c,b,i,t){b||!1!==b&&c&&"flash"==c.isActive?(b=g.canSwfPlaySrces(a,i))?j(a,b,c):t?g.setError(a,!1):d(a,c,!1,i,!0):(b=g.canNativePlaySrces(a,i))?c&&"flash"==c.isActive&&g.setActive(a,"html5",c):t?(g.setError(a,!1),c&&"flash"==c.isActive&&g.setActive(a,"html5",c)):d(a,c,!0,i,!0)},y=/^(?:embed|object|datalist)$/i,x=function(c,j){var l=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{}),i=g.srces(c),t=c.parentNode;clearTimeout(l.loadTimer);a.data(c,
|
9
|
+
"mediaerror",!1);if(i.length&&t&&!(1!=t.nodeType||y.test(t.nodeName||"")))j=j||b.data(c,"mediaelement"),d(c,j,s.preferFlash||r,i)};a(v).bind("ended",function(c){var d=b.data(c.target,"mediaelement");(!p||d&&"html5"!=d.isActive||a.prop(c.target,"loop"))&&setTimeout(function(){!a.prop(c.target,"paused")&&a.prop(c.target,"loop")&&a(c.target).prop("currentTime",0).play()},1)});p||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var j=b.defineNodeNameProperty(d,
|
10
|
+
"load",{prop:{value:function(){var c=b.data(this,"mediaelement");x(this,c);m&&(!c||"html5"==c.isActive)&&j.prop._supvalue&&j.prop._supvalue.apply(this,arguments)}}});c[d]=b.defineNodeNameProperty(d,"canPlayType",{prop:{value:function(b){var i="";m&&c[d].prop._supvalue&&(i=c[d].prop._supvalue.call(this,b),"no"==i&&(i=""));!i&&w&&(b=a.trim((b||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(b)&&(i="maybe"));return i}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=
|
11
|
+
this,a=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){x(c);c=null},9)}});k=function(){b.addReady(function(c,d){a("video, audio",c).add(d.filter("video, audio")).each(function(){a.browser.msie&&8<b.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():x(this);if(m){var c,i,d=this,j=function(){var c=a.prop(d,
|
12
|
+
"buffered");if(c){for(var b="",i=0,j=c.length;i<j;i++)b+=c.end(i);return b}},g=function(){var c=j();c!=i&&(i=c,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(i=j());clearTimeout(c);c=setTimeout(g,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(i=!1);clearTimeout(c)})}})})};m?(b.isReady("mediaelement-core",!0),k(),w&&b.ready("WINDOWLOAD mediaelement",o)):b.ready("mediaelement-swf",k)})})(jQuery,Modernizr,
|
13
|
+
jQuery.webshims);
|
14
|
+
jQuery.webshims.register("form-message",function(a,b,q,m,p,h){var f=b.validityMessages,q=h.overrideMessages||h.customMessages?["customValidationMessage"]:[];f.en=f.en||f["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){f.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){f.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(a){f.en.rangeOverflow[a]=
|
16
|
+
"Value must be at or before {%max}."});f["en-US"]=f["en-US"]||f.en;f[""]=f[""]||f["en-US"];f.de=f.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
|
+
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){f.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){f.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){f.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var k=
|
19
|
+
f[""];b.createValidationMessage=function(b,f){var g=k[f];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(f){if(-1!==g.indexOf("{%"+f)){var n=("label"==f?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,f))||"";g=g.replace("{%"+f+"}",n);"value"==f&&(g=g.replace("{%valueLen}",n.length))}});return g||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
|
20
|
+
b.bugs.bustedValidity)&&q.push("validationMessage");b.activeLang({langObj:f,module:"form-core",callback:function(a){k=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 f=a("select",this);if(f[0]&&f[0].options&&f[0].options.length)b=f[0].options}return b}}});q.forEach(function(f){b.defineNodeNamesProperty(["fieldset",
|
21
|
+
"output","button"],f,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(h){var g=b.defineNodeNameProperty(h,f,{prop:{get:function(){var f=this,h="";if(!a.prop(f,"willValidate"))return h;var k=a.prop(f,"validity")||{valid:1};if(k.valid||(h=b.getContentValidationMessage(f,k)))return h;if(k.customError&&f.nodeName&&(h=Modernizr.formvalidation&&!b.bugs.bustedValidity&&g.prop._supget?g.prop._supget.call(f):b.data(f,"customvalidationMessage")))return h;a.each(k,function(a,c){if("valid"!=
|
22
|
+
a&&c&&(h=b.createValidationMessage(f,a)))return!1});return h||""},writeable:!1}})})})});
|
23
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,q,m){b.inputTypes=b.inputTypes||{};var p=b.cfg.forms,h,f=b.inputTypes,k={radio:1,checkbox:1};b.addInputType=function(c,a){f[c]=a};var v={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},r={valueMissing:function(c,j,d){if(!c.prop("required"))return!1;var f=!1;if(!("type"in d))d.type=(c[0].getAttribute("type")||
|
24
|
+
c[0].type||"").toLowerCase();if("select"==d.nodeName){if(j=!j)if(!(j=0>c[0].selectedIndex))c=c[0],j="select-one"==c.type&&2>c.size?!!a("> option:first-child",c).prop("selected"):!1;c=j}else c=k[d.type]?"checkbox"==d.type?!c.is(":checked"):!b.modules["form-core"].getGroupElements(c).filter(":checked")[0]:!j;return c},tooLong:function(){return!1},typeMismatch:function(a,b,d){if(""===b||"select"==d.nodeName)return!1;var g=!1;if(!("type"in d))d.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
|
25
|
+
if(f[d.type]&&f[d.type].mismatch)g=f[d.type].mismatch(b,a);else if("validity"in a[0])g=a[0].validity.typeMismatch;return g},patternMismatch:function(a,j,d){if(""===j||"select"==d.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(f){b.error('invalid pattern value: "'+a+'" | '+f),a=!1}return!a?!1:!a.test(j)}};b.addValidityRule=function(a,b){r[a]=b};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var c=
|
26
|
+
this.form||this;if(!a.data(c,"invalidEventShim")&&(a(c).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(c,"submit"),b.bugs.bustedValidity&&a.nodeName(c,"form"))){var j=c.getAttribute("novalidate");c.setAttribute("novalidate","novalidate");b.data(c,"bustedNoValidate",null==j?null:j)}},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=
|
27
|
+
!0;if(!a(c.target).checkValidity())return c.stopImmediatePropagation(),h=!1;h=!1}}};a(m).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=p.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
|
28
|
+
return function(b){return!a.test(b)}}()});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;
|
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({},v)}}},"prop");var s=function(c){var j,d=a.prop(c,"validity");if(d)a.data(c,"cachedValidity",
|
30
|
+
d);else return!0;if(!d.valid){j=a.Event("invalid");var f=a(c).trigger(j);if(h&&!s.unhandledInvalids&&!j.isDefaultPrevented())b.validityAlert.showFor(f),s.unhandledInvalids=!0}a.removeData(c,"cachedValidity");return d.valid};b.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var c=!0,j=a("input,textarea,select",this).filter(function(){var a=b.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});s.unhandledInvalids=!1;for(var d=0,f=j.length;d<f;d++)s(j[d])||
|
31
|
+
(c=!1);return c}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){s.unhandledInvalids=!1;return s(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(c){a.removeData(this,"cachedValidity");b.data(this,"customvalidationMessage",""+c)}},willValidate:{writeable:!1,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:{writeable:!1,
|
32
|
+
get:function(){var c=a(this).getNativeElement(),j=c[0],d=a.data(j,"cachedValidity");if(d)return d;d=a.extend({},v);if(!a.prop(j,"willValidate")||"submit"==j.type)return d;var f=c.val(),g={nodeName:j.nodeName.toLowerCase()};d.customError=!!b.data(j,"customvalidationMessage");if(d.customError)d.valid=!1;a.each(r,function(a,b){if(b(c,f,g))d[a]=!0,d.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",d.valid?"false":"true");j=c=null;return d}}},"prop");b.defineNodeNamesBooleanProperty(["input",
|
33
|
+
"textarea","select"],"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 m.createElement("textarea"))){var n=function(){var c,b=0,d=a([]),f=1E9,g=function(){var a=d.prop("value"),c=a.length;c>b&&c>f&&(c=Math.max(b,f),d.prop("value",a.substr(0,c)));b=c},h=function(){clearTimeout(c);d.unbind(".maxlengthconstraint")};return function(k,l){h();if(-1<l)f=l,b=
|
34
|
+
a.prop(k,"value").length,d=a(k),d.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),d.bind("keyup.maxlengthconstraint",g),d.bind("blur.maxlengthconstraint",h),c=setInterval(g,200)}}();n.update=function(c,b){a(c).is(":focus")&&(null==b&&(b=a.prop(c,"maxlength")),n(e.target,b))};a(m).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()}),d="form"+c.name,f=c.name,g="click.webshimssubmittermutate"+f,h=function(){if("form"in this&&w[this.type]){var g=a.prop(this,"form");if(g){var i=a.attr(this,d);if(null!=i&&(!c.limitedTo||i.toLowerCase()===a.prop(this,b))){var t=a.attr(g,f);a.attr(g,f,i);setTimeout(function(){if(null!=t)a.attr(g,f,t);else try{a(g).removeAttr(f)}catch(c){g.removeAttribute(f)}},9)}}}};switch(c.proptype){case "url":var k=m.createElement("form");
|
38
|
+
o[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var c=a.attr(this,d);if(null==c)return"";k.setAttribute("action",c);return k.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,d,c)},get:function(){var b=a.attr(this,d);return!b||(b=b.toLowerCase())&&!c.limitedTo[b]?c.defaultProp:
|
39
|
+
b}}};break;default:o[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var c=a.attr(this,d);return null!=c?c:""}}}}o[d]||(o[d]={});o[d].attr={set:function(c){o[d].attr._supset.call(this,c);a(this).unbind(g).bind(g,h)},get:function(){return o[d].attr._supget.call(this)}};o[d].initAttr=!0;o[d].removeAttr={value:function(){a(this).unbind(g);o[d].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)}}}),a.each(["rangeUnderflow","rangeOverflow",
|
41
|
+
"stepMismatch"],function(a,b){r[b]=function(a){return(a[0].validity||{})[b]||!1}}));b.defineNodeNameProperty("form","noValidate",{prop:{set:function(c){c?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var c={updateInput:1,input:1},f={date:1,time:1,"datetime-local":1},d={focusout:1,blur:1},g={updateInput:1,change:1},k=function(a){var b,f=!0,i=a.prop("value"),t=
|
42
|
+
i,u=function(b){if(a){var d=a.prop("value");d!==i&&(i=d,(!b||!c[b.type])&&a.trigger("input"));b&&g[b.type]&&(t=d);!f&&d!==t&&a.trigger("change")}},h,j=function(c){clearInterval(b);setTimeout(function(){c&&d[c.type]&&(f=!1);a&&(a.unbind("focusout blur",j).unbind("input change updateInput",u),u());a=null},1)};clearInterval(b);b=setInterval(u,160);clearTimeout(h);h=setTimeout(u,9);a.unbind("focusout blur",j).unbind("input change updateInput",u);a.bind("focusout blur",j).bind("input updateInput change",
|
43
|
+
u)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var c=function(c){var b=1,i,d;if("date"==c.type&&(h||!a(c).is(":focus")))if((d=c.value)&&10>d.length&&(d=d.split("-"))&&3==d.length){for(;3>b;b++)if(1==d[b].length)d[b]="0"+d[b];else if(2!=d[b].length){i=!0;break}if(!i)return d=d.join("-"),a.prop(c,"value",d),d}},d,f,i,g;d=b.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){c(this);return d.prop._supvalue.apply(this,arguments)}}});f=b.defineNodeNameProperty("form",
|
44
|
+
"checkValidity",{prop:{value:function(){a("input",this).each(function(){c(this)});return f.prop._supvalue.apply(this,arguments)}}});i=b.defineNodeNameProperty("input","value",{prop:{set:function(){return i.prop._supset.apply(this,arguments)},get:function(){return c(this)||i.prop._supget.apply(this,arguments)}}});g=b.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){c(this);return g.prop._supget.apply(this,arguments)}}});a(m).bind("change",function(a){isChangeSubmit=!0;c(a.target);
|
45
|
+
isChangeSubmit=!1})})();a(m).bind("focusin",function(b){b.target&&f[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&k(a(b.target))})}();b.addReady(function(b,f){var d;a("form",b).add(f.filter("form")).bind("invalid",a.noop);try{if(b==m&&!("form"in(m.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 a("<textarea />")[0]);
|
46
|
+
var c=a.browser.webkit&&Modernizr.textareaPlaceholder;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||c){var f="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},h=function(b,c,d,h){!1===d&&(d=a.prop(b,"value"));if(!f&&"password"!=b.type){if(!d&&h&&
|
47
|
+
g(b)){var k;a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.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",
|
48
|
+
function(){clearTimeout(k);a(b).unbind(".placeholderremove")});return}b.value=d}else if(!d&&h){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},k=function(b,
|
49
|
+
c,d,g,k){if(!g&&(g=a.data(b,"placeHolder"),!g))return;a(b).unbind(".placeholderremove");if("focus"==k||!k&&a(b).is(":focus"))("password"==b.type||f||a(b).hasClass("placeholder-visible"))&&h(b,g,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)h(b,g,c);else if(!1===d&&(d=a.attr(b,"placeholder")||""),d&&!c){c=g;!1===d&&(d=a.prop(b,"placeholder"));if(!f&&"password"!=b.type)b.value=d;c.box.addClass("placeholder-visible")}else h(b,g,c)},n=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&&!b.attr("aria-labelledby"));
|
50
|
+
!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>')},l=function(){var c={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder");if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){k(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});
|
51
|
+
b.form&&a(b.form).bind("reset.placeholder",function(a){setTimeout(function(){k(b,!1,!1,c,a.type)},0)});if("password"==b.type||f){c.text=n(b);c.box=a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+'" />').parent();c.text.insertAfter(b).bind("mousedown.placeholder",function(){k(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||0)+Math.max(parseInt(a.css(b,
|
52
|
+
"margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)});a.css(b,"lineHeight");var d={width:a(b).width(),height:a(b).height()},g=a.css(b,"float");a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)});d.width&&d.height&&c.text.css(d);"none"!==g&&c.box.addClass("placeholder-box-"+g)}else d=function(d){a(b).hasClass("placeholder-visible")&&(h(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&
|
53
|
+
k(b,!1,!1,c)},9))},a(q).bind("beforeunload",d),c.box=a(b),b.form&&a(b.form).submit(d);return c},update:function(d,f){if(!c[a.prop(d,"type")]&&!a.nodeName(d,"textarea"))b.warn("placeholder not allowed on type: "+a.prop(d,"type"));else{var g=l.create(d);g.text&&g.text.text(f);k(d,!1,f,g)}}}}();a.webshims.publicMethods={pHolder:l};d.forEach(function(a){b.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){c?(b.data(this,"textareaPlaceholder",a),this.placeholder=""):b.contentAttr(this,"placeholder",
|
54
|
+
a);l.update(this,a)},get:function(){return(c?b.data(this,"textareaPlaceholder"):"")||b.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});d.forEach(function(d){var f={},g;["attr","prop"].forEach(function(d){f[d]={set:function(f){var h;c&&(h=b.data(this,"textareaPlaceholder"));h||(h=b.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var i=g[d]._supset.call(this,f);h&&"value"in this&&k(this,f,h);return i},get:function(){return a(this).hasClass("placeholder-visible")?"":
|
55
|
+
g[d]._supget.call(this)}}});g=b.defineNodeNameProperty(d,"value",f)})}})()});
|
56
|
+
jQuery.webshims.ready("dom-support",function(a,b,q,m){(function(){if(!("value"in m.createElement("output"))){b.defineNodeNameProperty("output","value",{prop:{set:function(b){var f=a.data(this,"outputShim");f||(f=p(this));f(b)},get:function(){return b.contentAttr(this,"value")||a(this).text()||""}}});b.onNodeNamesPropertyModify("input","value",function(b,f,k){"removeAttr"!=k&&(f=a.data(this,"outputShim"))&&f(b)});var p=function(h){if(!h.getAttribute("aria-live")){var h=a(h),f=(h.text()||"").trim(),
|
57
|
+
k=h.attr("id"),p=h.attr("for"),r=a('<input class="output-shim" type="text" disabled name="'+(h.attr("name")||"")+'" value="'+f+'" style="display: none !important;" />').insertAfter(h),g=r[0].form||m,s=function(a){r[0].value=a;a=r[0].value;h.text(a);b.contentAttr(h[0],"value",a)};h[0].defaultValue=f;b.contentAttr(h[0],"value",f);h.attr({"aria-live":"polite"});k&&(r.attr("id",k),h.attr("aria-labelledby",b.getID(a('label[for="'+k+'"]',g))));p&&(k=b.getID(h),p.split(" ").forEach(function(a){(a=m.getElementById(a))&&
|
58
|
+
a.setAttribute("aria-controls",k)}));h.data("outputShim",s);r.data("outputShim",s);return s}};b.addReady(function(b,f){a("output",b).add(f.filter("output")).each(function(){p(this)})})}})();(function(){var p={updateInput:1,input:1},h={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},f=function(a){var f,h=a.prop("value"),g=function(f){if(a){var c=a.prop("value");c!==h&&(h=c,(!f||!p[f.type])&&b.triggerInlineForm&&b.triggerInlineForm(a[0],"input"))}},m,n=function(){clearTimeout(m);
|
59
|
+
m=setTimeout(g,9)},q=function(){a.unbind("focusout",q).unbind("keyup keypress keydown paste cut",n).unbind("input change updateInput",g);clearInterval(f);setTimeout(function(){g();a=null},1)};clearInterval(f);f=setInterval(g,99);n();a.bind("keyup keypress keydown paste cut",n).bind("focusout",q).bind("input updateInput change",g)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(m).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
|
60
|
+
"").toLowerCase()&&!h[b.target.type]&&f(a(b.target))})})();b.isReady("form-output",!0)});
|