webshims-rails 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/MIT_LICENSE.txt +20 -0
  4. data/Rakefile +1 -0
  5. data/lib/webshims-rails.rb +13 -0
  6. data/lib/webshims-rails/version.rb +6 -0
  7. data/readme.textile +26 -0
  8. data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +9 -0
  9. data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +19 -0
  10. data/vendor/assets/javascripts/webshims/minified/extras/mousepress.js +2 -0
  11. data/vendor/assets/javascripts/webshims/minified/polyfiller.js +27 -0
  12. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvas/README +62 -0
  13. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvas/canvas2png.js +42 -0
  14. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvas/flashcanvas.js +28 -0
  15. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvas/flashcanvas.swf +0 -0
  16. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvas/proxy.php +73 -0
  17. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvas/save.php +49 -0
  18. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/README +82 -0
  19. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/canvas2png.js +42 -0
  20. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/flash10canvas.swf +0 -0
  21. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/flash9canvas.swf +0 -0
  22. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/flashcanvas.js +31 -0
  23. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/proxy.php +73 -0
  24. data/vendor/assets/javascripts/webshims/minified/shims/FlashCanvasPro/save.php +49 -0
  25. data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +33 -0
  26. data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +75 -0
  27. data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +39 -0
  28. data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +38 -0
  29. data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +25 -0
  30. data/vendor/assets/javascripts/webshims/minified/shims/combos/14.js +19 -0
  31. data/vendor/assets/javascripts/webshims/minified/shims/combos/15.js +10 -0
  32. data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +53 -0
  33. data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +62 -0
  34. data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +64 -0
  35. data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +60 -0
  36. data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +61 -0
  37. data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +42 -0
  38. data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +40 -0
  39. data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +56 -0
  40. data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +53 -0
  41. data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +73 -0
  42. data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +80 -0
  43. data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +30 -0
  44. data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +37 -0
  45. data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +56 -0
  46. data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +38 -0
  47. data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +45 -0
  48. data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +33 -0
  49. data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +62 -0
  50. data/vendor/assets/javascripts/webshims/minified/shims/details.js +5 -0
  51. data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +20 -0
  52. data/vendor/assets/javascripts/webshims/minified/shims/es5.js +14 -0
  53. data/vendor/assets/javascripts/webshims/minified/shims/excanvas.js +35 -0
  54. data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +21 -0
  55. data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +19 -0
  56. data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +9 -0
  57. data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +7 -0
  58. data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +9 -0
  59. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-api.js +12 -0
  60. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +26 -0
  61. data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +5 -0
  62. data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +26 -0
  63. data/vendor/assets/javascripts/webshims/minified/shims/geolocation.js +5 -0
  64. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-ar.js +7 -0
  65. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-ch-ZN.js +3 -0
  66. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-de.txt +33 -0
  67. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-el.js +7 -0
  68. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-en.txt +34 -0
  69. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-es.js +3 -0
  70. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-fr.js +3 -0
  71. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-he.js +6 -0
  72. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-hi.js +6 -0
  73. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-hu.js +3 -0
  74. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-it.js +3 -0
  75. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-ja.js +4 -0
  76. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-nl.js +3 -0
  77. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-pt-PT.js +3 -0
  78. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-ru.js +8 -0
  79. data/vendor/assets/javascripts/webshims/minified/shims/json-storage.js +14 -0
  80. data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/license.txt +1 -0
  81. data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/player.swf +0 -0
  82. data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/readme.html +87 -0
  83. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +13 -0
  84. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-native-fix.js +3 -0
  85. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +29 -0
  86. data/vendor/assets/javascripts/webshims/minified/shims/styles/details-arrows.png +0 -0
  87. data/vendor/assets/javascripts/webshims/minified/shims/styles/forms.png +0 -0
  88. data/vendor/assets/javascripts/webshims/minified/shims/styles/polyfill-loader.gif +0 -0
  89. data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +610 -0
  90. data/vendor/assets/javascripts/webshims/minified/shims/swf/jwwebshims.swf +0 -0
  91. data/vendor/assets/javascripts/webshims/minified/shims/swf/localStorage.swf +0 -0
  92. data/webshims-rails.gemspec +26 -0
  93. metadata +149 -0
@@ -0,0 +1,42 @@
1
+ /*
2
+ * canvas2png.js
3
+ *
4
+ * Copyright (c) 2010-2011 Shinya Muramatsu
5
+ * Released under the MIT License
6
+ * http://flashcanvas.net/
7
+ */
8
+
9
+ (function(doc) {
10
+
11
+ var scripts = doc.getElementsByTagName("script");
12
+ var script = scripts[scripts.length - 1];
13
+ var url = script.getAttribute("src").replace(/[^\/]+$/, "save.php");
14
+
15
+ window.canvas2png = function(canvas) {
16
+ var tagName = canvas.tagName.toLowerCase();
17
+ if (tagName !== "canvas") {
18
+ return;
19
+ }
20
+
21
+ if (typeof FlashCanvas !== "undefined") {
22
+ FlashCanvas.saveImage(canvas);
23
+ } else {
24
+ var form = doc.createElement("form");
25
+ var input = doc.createElement("input");
26
+
27
+ form.setAttribute("action", url);
28
+ form.setAttribute("method", "post");
29
+
30
+ input.setAttribute("type", "hidden");
31
+ input.setAttribute("name", "dataurl");
32
+ input.setAttribute("value", canvas.toDataURL());
33
+
34
+ doc.body.appendChild(form);
35
+ form.appendChild(input);
36
+ form.submit();
37
+ form.removeChild(input);
38
+ doc.body.removeChild(form);
39
+ }
40
+ }
41
+
42
+ })(document);
@@ -0,0 +1,31 @@
1
+ /*
2
+ * FlashCanvas Pro
3
+ *
4
+ * Copyright (c) 2009 Tim Cameron Ryan
5
+ * Copyright (c) 2009-2011 Shinya Muramatsu
6
+ */
7
+ window.ActiveXObject&&!window.CanvasRenderingContext2D&&function(j,m){function O(a){this.code=a;this.message=ea[a]}function y(a,b,c){if(!c){c=[];for(var d=0,e=a*b*4;d<e;++d)c[d]=0}this.width=a;this.height=b;this.data=c}function fa(a){this.width=a}function P(a){this.id=a.I++}function z(a){this.O=a;this.id=a.I++}function D(a,b){this.canvas=a;this.w=b;this.f=a.uniqueID;this.J();this.I=0;this.j=this.H="";this.c=0}function E(){if(m.readyState==="complete"){m.detachEvent(Q,E);for(var a=m.getElementsByTagName(u),
8
+ b=0,c=a.length;b<c;++b)F.initElement(a[b])}}function R(){var a=event.srcElement,b=a.parentNode;a.blur();b.focus()}function G(){event.button&2&&event.srcElement.parentNode.setCapture()}function H(){event.button&2&&event.srcElement.parentNode.releaseCapture()}function S(){var a=event.propertyName;if(a==="width"||a==="height"){var b=event.srcElement,c=b[a],d=parseInt(c,10);if(isNaN(d)||d<0)d=a==="width"?300:150;if(c===d){b.style[a]=d+"px";b.getContext("2d").P(b.width,b.height)}else b[a]=d}}function T(){j.detachEvent(U,
9
+ T);for(var a in n){var b=n[a],c=b.firstChild,d;for(d in c)if(typeof c[d]==="function")c[d]=k;for(d in b)if(typeof b[d]==="function")b[d]=k;c.detachEvent(V,R);c.detachEvent(I,G);b.detachEvent(J,H);b.detachEvent(W,S)}j[X]=k;j[Y]=k;j[Z]=k;j[K]=k;j[$]=k}function ga(){var a=m.getElementsByTagName("script");a=a[a.length-1];return m.documentMode>=8?a.src:a.getAttribute("src",4)}function ha(a){return a.toLowerCase()}function g(a){throw new O(a);}function aa(a){var b=parseInt(a.width,10),c=parseInt(a.height,
10
+ 10);if(isNaN(b)||b<0)b=300;if(isNaN(c)||c<0)c=150;a.width=b;a.height=c}var k=null,u="canvas",X="CanvasRenderingContext2D",Y="CanvasGradient",Z="CanvasPattern",K="FlashCanvas",$="G_vmlCanvasManager",V="onfocus",I="onmousedown",J="onmouseup",W="onpropertychange",Q="onreadystatechange",U="onunload",q;try{q=(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version").match(/[\d,]+/)[0].replace(/,/g,".")}catch(ia){q=0}var r=j[K+"Options"]||{},ba=r.swfPath||ga().replace(/[^\/]+$/,""),x;
11
+ x=parseInt(q)>9?ba+"flash10canvas.swf":ba+"flash9canvas.swf";var A={},B={},ca={},L={},v={},da={},n={},C={},l={C:"turbo"in r?r.turbo:1,B:r.delay||0,M:r.disableContextMenu||0,N:r.imageCacheSize||100,D:r.usePolicyFile||0};if(q==="10.1.53.64"){l.C=0;l.B=30}D.prototype={save:function(){this.e(15);this.L.push([this.l,this.m,this.v,this.k,this.p,this.n,this.o,this.q,this.t,this.u,this.r,this.s,this.j,this.z,this.A]);this.a.push("B")},restore:function(){var a=this.L;if(a.length){a=a.pop();this.globalAlpha=
12
+ a[0];this.globalCompositeOperation=a[1];this.strokeStyle=a[2];this.fillStyle=a[3];this.lineWidth=a[4];this.lineCap=a[5];this.lineJoin=a[6];this.miterLimit=a[7];this.shadowOffsetX=a[8];this.shadowOffsetY=a[9];this.shadowBlur=a[10];this.shadowColor=a[11];this.font=a[12];this.textAlign=a[13];this.textBaseline=a[14]}this.a.push("C")},scale:function(a,b){this.a.push("D",a,b)},rotate:function(a){this.a.push("E",a)},translate:function(a,b){this.a.push("F",a,b)},transform:function(a,b,c,d,e,f){this.a.push("G",
13
+ a,b,c,d,e,f)},setTransform:function(a,b,c,d,e,f){this.a.push("H",a,b,c,d,e,f)},createLinearGradient:function(a,b,c,d){isFinite(a)&&isFinite(b)&&isFinite(c)&&isFinite(d)||g(9);this.a.push("M",a,b,c,d);return new z(this)},createRadialGradient:function(a,b,c,d,e,f){isFinite(a)&&isFinite(b)&&isFinite(c)&&isFinite(d)&&isFinite(e)&&isFinite(f)||g(9);if(c<0||f<0)g(1);this.a.push("N",a,b,c,d,e,f);return new z(this)},createPattern:function(a,b){a||g(17);var c=a.tagName,d,e,f,h=this.f;if(c){c=c.toLowerCase();
14
+ if(c==="img")d=a.getAttribute("src",2);else if(c===u){e=this.G(a);f=a!==this.canvas}else if(c==="video")return;else g(17)}else if(a.src)d=a.src;else g(17);b==="repeat"||b==="no-repeat"||b==="repeat-x"||b==="repeat-y"||b===""||b===k||g(12);if(!e){e=B[h][d];if(f=e===void 0)e=this.F(d)}this.a.push("O",e,b);if(f&&A[h]){this.g();++v[h]}return new P(this)},clearRect:function(a,b,c,d){this.a.push("X",a,b,c,d);this.b||this.d();this.c=0},fillRect:function(a,b,c,d){this.e(1);this.a.push("Y",a,b,c,d);this.b||
15
+ this.d();this.c=0},strokeRect:function(a,b,c,d){this.e(6);this.a.push("Z",a,b,c,d);this.b||this.d();this.c=0},beginPath:function(){this.a.push("a")},closePath:function(){this.a.push("b")},moveTo:function(a,b){this.a.push("c",a,b)},lineTo:function(a,b){this.a.push("d",a,b)},quadraticCurveTo:function(a,b,c,d){this.a.push("e",a,b,c,d)},bezierCurveTo:function(a,b,c,d,e,f){this.a.push("f",a,b,c,d,e,f)},arcTo:function(a,b,c,d,e){e<0&&isFinite(e)&&g(1);this.a.push("g",a,b,c,d,e)},rect:function(a,b,c,d){this.a.push("h",
16
+ a,b,c,d)},arc:function(a,b,c,d,e,f){c<0&&isFinite(c)&&g(1);this.a.push("i",a,b,c,d,e,f?1:0)},fill:function(){this.e(1);this.a.push("j");this.b||this.d();this.c=0},stroke:function(){this.e(6);this.a.push("k");this.b||this.d();this.c=0},clip:function(){this.a.push("l")},isPointInPath:function(a,b){this.a.push("m",a,b);return this.g()==="true"},fillText:function(a,b,c,d){this.e(9);this.h.push(this.a.length+1);this.a.push("r",a,b,c,d===void 0?Infinity:d);this.b||this.d();this.c=0},strokeText:function(a,
17
+ b,c,d){this.e(10);this.h.push(this.a.length+1);this.a.push("s",a,b,c,d===void 0?Infinity:d);this.b||this.d();this.c=0},measureText:function(a){var b=C[this.f];try{b.style.font=this.font}catch(c){}b.innerText=a.replace(/[ \n\f\r]/g,"\t");return new fa(b.offsetWidth)},drawImage:function(a,b,c,d,e,f,h,i,s){a||g(17);var o=a.tagName,t,p,M,w=arguments.length,N=this.f;if(o){o=o.toLowerCase();if(o==="img")t=a.getAttribute("src",2);else if(o===u){p=this.G(a);M=a!==this.canvas}else if(o==="video")return;else g(17)}else if(a.src)t=
18
+ a.src;else g(17);if(!p){p=B[N][t];if(M=p===void 0)p=this.F(t)}this.e(0);if(w===3)this.a.push("u",w,p,b,c);else if(w===5)this.a.push("u",w,p,b,c,d,e);else if(w===9){if(d===0||e===0)g(1);this.a.push("u",w,p,b,c,d,e,f,h,i,s)}else return;if(M&&A[N]){this.g();++v[N]}else this.b||this.d();this.c=0},createImageData:function(a,b){var c=Math.ceil;if(arguments.length===2){isFinite(a)&&isFinite(b)||g(9);if(a===0||b===0)g(1)}else{a instanceof y||g(9);b=a.height;a=a.width}a=c(a<0?-a:a);b=c(b<0?-b:b);return new y(a,
19
+ b)},getImageData:function(a,b,c,d){isFinite(a)&&isFinite(b)&&isFinite(c)&&isFinite(d)||g(9);if(c===0||d===0)g(1);this.a.push("w",a,b,c,d);a=this.g();c=typeof JSON==="object"?JSON.parse(a):m.documentMode?eval(a):a.slice(1,-1).split(",");a=c.shift();b=c.shift();return new y(a,b,c)},putImageData:function(a,b,c,d,e,f,h){a instanceof y||g(17);isFinite(b)&&isFinite(c)||g(9);var i=arguments.length,s=a.width,o=a.height,t=a.data;if(i===3)this.a.push("x",i,s,o,t.toString(),b,c);else if(i===7){isFinite(d)&&
20
+ isFinite(e)&&isFinite(f)&&isFinite(h)||g(9);this.a.push("x",i,s,o,t.toString(),b,c,d,e,f,h)}this.b||this.d();this.c=0},J:function(){this.globalAlpha=this.l=1;this.globalCompositeOperation=this.m="source-over";this.fillStyle=this.k=this.strokeStyle=this.v="#000000";this.lineWidth=this.p=1;this.lineCap=this.n="butt";this.lineJoin=this.o="miter";this.miterLimit=this.q=10;this.shadowBlur=this.r=this.shadowOffsetY=this.u=this.shadowOffsetX=this.t=0;this.shadowColor=this.s="rgba(0, 0, 0, 0.0)";this.font=
21
+ this.j="10px sans-serif";this.textAlign=this.z="start";this.textBaseline=this.A="alphabetic";this.a=[];this.L=[];this.i=[];this.h=[];this.b=k;this.K=1},e:function(a){var b=this.a,c;if(this.l!==this.globalAlpha)b.push("I",this.l=this.globalAlpha);if(this.m!==this.globalCompositeOperation)b.push("J",this.m=this.globalCompositeOperation);if(this.t!==this.shadowOffsetX)b.push("T",this.t=this.shadowOffsetX);if(this.u!==this.shadowOffsetY)b.push("U",this.u=this.shadowOffsetY);if(this.r!==this.shadowBlur)b.push("V",
22
+ this.r=this.shadowBlur);if(this.s!==this.shadowColor){c=this.s=this.shadowColor;(""+c).indexOf("%")>0&&this.i.push(b.length+1);b.push("W",c)}if(a&1)if(this.k!==this.fillStyle){c=this.k=this.fillStyle;if(typeof c==="object")c=c.id;else(""+c).indexOf("%")>0&&this.i.push(b.length+1);b.push("L",c)}if(a&2)if(this.v!==this.strokeStyle){c=this.v=this.strokeStyle;if(typeof c==="object")c=c.id;else(""+c).indexOf("%")>0&&this.i.push(b.length+1);b.push("K",c)}if(a&4){if(this.p!==this.lineWidth)b.push("P",this.p=
23
+ this.lineWidth);if(this.n!==this.lineCap)b.push("Q",this.n=this.lineCap);if(this.o!==this.lineJoin)b.push("R",this.o=this.lineJoin);if(this.q!==this.miterLimit)b.push("S",this.q=this.miterLimit)}if(a&8){if(this.j!==this.font){a=C[this.f].offsetHeight;this.h.push(b.length+2);b.push("o",a,this.j=this.font)}if(this.z!==this.textAlign)b.push("p",this.z=this.textAlign);if(this.A!==this.textBaseline)b.push("q",this.A=this.textBaseline);if(this.H!==this.canvas.currentStyle.direction)b.push("1",this.H=this.canvas.currentStyle.direction)}},
24
+ d:function(){var a=this;a.b=setTimeout(function(){if(v[a.f])a.d();else{a.b=k;a.g(l.C)}},l.B)},Q:function(){clearTimeout(this.b);this.b=k},g:function(a){var b,c,d,e=this.i,f=this.h,h=this.a,i=this.w;if(h.length){this.b&&this.Q();if(a){b=0;for(c=e.length;b<c;++b){d=e[b];h[d]=encodeURI(h[d])}b=0;for(c=f.length;b<c;++b){d=f[b];h[d]=encodeURIComponent(h[d])}}else{b=0;for(c=f.length;b<c;++b){d=f[b];h[d]=(""+h[d]).replace(/&/g,"&amp;").replace(/</g,"&lt;")}}b=h.join("\u0001");this.a=[];this.i=[];this.h=
25
+ [];if(a){i.flashvars="c="+b;i.width=i.clientWidth+this.K;this.K^=-2}else return i.CallFunction('<invoke name="executeCommand" returntype="javascript"><arguments><string>'+b+"</string></arguments></invoke>")}},P:function(a,b){this.g();this.J();if(a>0)this.w.width=a;if(b>0)this.w.height=b;this.a.push("2",a,b);this.b||this.d();this.c=0},G:function(a){var b=a.uniqueID,c=u+":"+b;if(a.width===0||a.height===0)g(11);if(b!==this.f){a=n[b].getContext("2d");if(!a.c){b=++da[b];c+=":"+b;a.a.push("3",b);a.b||a.d();
26
+ a.c=1}}return c},F:function(a){var b=this.f,c=B[b],d=ca[b],e=c[a]=L[b]++;if(e>=l.N-1)L[b]=0;e in d&&delete c[d[e]];this.h.push(this.a.length+2);this.a.push("5",e,a);d[e]=a;return e}};z.prototype={addColorStop:function(a,b){if(isNaN(a)||a<0||a>1)g(1);var c=this.O,d=this.id;(""+b).indexOf("%")>0&&c.i.push(c.a.length+3);c.a.push("y",d,a,b)}};O.prototype=Error();var ea={1:"INDEX_SIZE_ERR",9:"NOT_SUPPORTED_ERR",11:"INVALID_STATE_ERR",12:"SYNTAX_ERR",17:"TYPE_MISMATCH_ERR",18:"SECURITY_ERR"},F={initElement:function(a){if(a.getContext)return a;
27
+ var b=a.uniqueID,c="external"+b;A[b]=0;B[b]={};ca[b]=[];L[b]=0;v[b]=1;da[b]=0;aa(a);a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+location.protocol+'//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="'+c+'"><param name="allowScriptAccess" value="always"><param name="flashvars" value="id='+c+'"><param name="wmode" value="transparent"></object><span style="margin:0;padding:0;border:0;display:inline-block;position:static;height:1em;overflow:visible;white-space:nowrap"></span>';
28
+ n[b]=a;var d=a.firstChild;C[b]=a.lastChild;var e=m.body.contains;if(e(a))d.movie=x;else var f=setInterval(function(){if(e(a)){clearInterval(f);d.movie=x}},0);if(m.compatMode==="BackCompat"||!j.XMLHttpRequest)C[b].style.overflow="hidden";var h=new D(a,d);a.getContext=function(i){return i==="2d"?h:k};a.toDataURL=function(i,s){if(a.width===0||a.height===0)return"data:,";(""+i).replace(/[A-Z]+/g,ha)==="image/jpeg"?h.a.push("A",i,typeof s==="number"?s:""):h.a.push("A",i);return h.g().slice(1,-1)};d.attachEvent(V,
29
+ R);if(l.M){d.attachEvent(I,G);a.attachEvent(J,H)}l.D&&h.a.push("4","usePolicyFile",l.D);return a},saveImage:function(a){a.firstChild.saveImage()},setOptions:function(a){for(var b in a){var c=a[b];switch(b){case "turbo":l.C=c;break;case "delay":l.B=c;break;case "disableContextMenu":var d=l.M=c;c=void 0;for(c in n){var e=n[c],f=d?"attachEvent":"detachEvent";e.firstChild[f](I,G);e[f](J,H)}break;case "imageCacheSize":l.N=c;break;case "usePolicyFile":d=b;c=l.D=c?1:0;e=void 0;for(e in n){f=n[e].getContext("2d");
30
+ f.h.push(f.a.length+2);f.a.push("4",d,c)}}}},trigger:function(a,b){n[a].fireEvent("on"+b)},unlock:function(a,b){v[a]&&--v[a];if(b){var c=n[a],d=c.firstChild,e,f;aa(c);e=c.width;f=c.height;c.style.width=e+"px";c.style.height=f+"px";if(e>0)d.width=e;if(f>0)d.height=f;d.resize(e,f);c.attachEvent(W,S);A[a]=1}}};m.createElement(u);m.createStyleSheet().cssText=u+"{display:inline-block;overflow:hidden;width:300px;height:150px}";m.readyState==="complete"?E():m.attachEvent(Q,E);j.attachEvent(U,T);if(x.indexOf(location.protocol+
31
+ "//"+location.host+"/")===0){q=new ActiveXObject("Microsoft.XMLHTTP");q.open("GET",x,false);q.send(k)}j[X]=D;j[Y]=z;j[Z]=P;j[K]=F;j[$]={init:function(){},init_:function(){},initElement:F.initElement}}(window,document);
@@ -0,0 +1,73 @@
1
+ <?php
2
+
3
+ /**
4
+ * Proxy script to load a file from other domain
5
+ *
6
+ * PHP versions 4 and 5
7
+ *
8
+ * Copyright (c) 2010-2011 Shinya Muramatsu
9
+ *
10
+ * Permission is hereby granted, free of charge, to any person obtaining a
11
+ * copy of this software and associated documentation files (the "Software"),
12
+ * to deal in the Software without restriction, including without limitation
13
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
+ * and/or sell copies of the Software, and to permit persons to whom the
15
+ * Software is furnished to do so, subject to the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice shall be included in
18
+ * all copies or substantial portions of the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
+ * DEALINGS IN THE SOFTWARE.
27
+ *
28
+ * @author Shinya Muramatsu <revulon@gmail.com>
29
+ * @copyright 2010-2011 Shinya Muramatsu
30
+ * @license http://www.opensource.org/licenses/mit-license.php MIT License
31
+ * @link http://flashcanvas.net/
32
+ * @link http://code.google.com/p/flashcanvas/
33
+ */
34
+
35
+ // Whether we check referrer or not
36
+ define('CHECK_REFERRER', true);
37
+
38
+ // Check that the request is from FlashCanvas
39
+ if (CHECK_REFERRER) {
40
+ if (empty($_SERVER['HTTP_REFERER'])) {
41
+ exit;
42
+ }
43
+ if (!preg_match('#/flash\d*canvas\.swf$#', $_SERVER['HTTP_REFERER'])) {
44
+ exit;
45
+ }
46
+ }
47
+
48
+ // Check that the request has a valid URL parameter
49
+ if (empty($_GET['url'])) {
50
+ exit;
51
+ }
52
+ if (!preg_match('#^https?://#', $_GET['url'])) {
53
+ exit;
54
+ }
55
+
56
+ // Percent-encode special characters in the URL
57
+ $search = array( '%', '#', ' ');
58
+ $replace = array('%25', '%23', '%20');
59
+ $url = str_replace($search, $replace, $_GET['url']);
60
+
61
+ // Disable compression
62
+ header('Content-Encoding: none');
63
+
64
+ // Load and output the file
65
+ if (extension_loaded('curl')) {
66
+ // Use cURL extension
67
+ $ch = curl_init($url);
68
+ curl_exec($ch);
69
+ curl_close($ch);
70
+ } else {
71
+ // Use the http:// wrapper
72
+ readfile($url);
73
+ }
@@ -0,0 +1,49 @@
1
+ <?php
2
+
3
+ /**
4
+ * Save the input as a PNG file
5
+ *
6
+ * PHP versions 4 and 5
7
+ *
8
+ * Copyright (c) 2010-2011 Shinya Muramatsu
9
+ *
10
+ * Permission is hereby granted, free of charge, to any person obtaining a
11
+ * copy of this software and associated documentation files (the "Software"),
12
+ * to deal in the Software without restriction, including without limitation
13
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
+ * and/or sell copies of the Software, and to permit persons to whom the
15
+ * Software is furnished to do so, subject to the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice shall be included in
18
+ * all copies or substantial portions of the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
+ * DEALINGS IN THE SOFTWARE.
27
+ *
28
+ * @author Shinya Muramatsu <revulon@gmail.com>
29
+ * @copyright 2010-2011 Shinya Muramatsu
30
+ * @license http://www.opensource.org/licenses/mit-license.php MIT License
31
+ * @link http://flashcanvas.net/
32
+ * @link http://code.google.com/p/flashcanvas/
33
+ */
34
+
35
+ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
36
+ // Force download
37
+ header('Content-Type: application/octet-stream');
38
+ header('Content-Disposition: attachment; filename="canvas.png"');
39
+
40
+ if (isset($_POST['dataurl'])) {
41
+ // Decode the base64-encoded data
42
+ $data = $_POST['dataurl'];
43
+ $data = substr($data, strpos($data, ',') + 1);
44
+ echo base64_decode($data);
45
+ } else {
46
+ // Output the raw data
47
+ readfile('php://input');
48
+ }
49
+ }
@@ -0,0 +1,33 @@
1
+ (function(){var a=Function.prototype.call,b=Object.prototype,h=Array.prototype.slice,m,f;if(!Function.prototype.bind)Function.prototype.bind=function(a){var f=this;if("function"!=typeof f)throw new TypeError;var k=h.call(arguments,1),l=function(){if(this instanceof l){var c=function(){};c.prototype=f.prototype;var c=new c,b=f.apply(c,k.concat(h.call(arguments)));return null!==b&&Object(b)===b?b:c}return f.apply(a,k.concat(h.call(arguments)))};return l};f=a.bind(b.toString);m=a.bind(b.hasOwnProperty);
2
+ if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==f(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,c){var k=q(this),l=0,b=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;for(;l<b;)l in k&&a.call(c,k[l],l,k),l++};if(!Array.prototype.map)Array.prototype.map=function(a,c){var k=q(this),l=k.length>>>0,b=Array(l);if("[object Function]"!=f(a))throw new TypeError;for(var g=0;g<l;g++)g in k&&(b[g]=a.call(c,k[g],g,k));return b};if(!Array.prototype.filter)Array.prototype.filter=
3
+ function(a,c){var k=q(this),l=k.length>>>0,b=[];if("[object Function]"!=f(a))throw new TypeError;for(var g=0;g<l;g++)g in k&&a.call(c,k[g],g,k)&&b.push(k[g]);return b};if(!Array.prototype.every)Array.prototype.every=function(a,c){var k=q(this),l=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;for(var b=0;b<l;b++)if(b in k&&!a.call(c,k[b],b,k))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,c){var k=q(this),l=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;
4
+ for(var b=0;b<l;b++)if(b in k&&a.call(c,k[b],b,k))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var b=q(this),k=b.length>>>0;if("[object Function]"!=f(a))throw new TypeError;if(!k&&1==arguments.length)throw new TypeError;var c=0,g;if(2<=arguments.length)g=arguments[1];else{do{if(c in b){g=b[c++];break}if(++c>=k)throw new TypeError;}while(1)}for(;c<k;c++)c in b&&(g=a.call(void 0,g,b[c],c,b));return g};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var c=
5
+ q(this),b=c.length>>>0;if("[object Function]"!=f(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var g,b=b-1;if(2<=arguments.length)g=arguments[1];else{do{if(b in c){g=c[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(g=a.call(void 0,g,c[b],b,c));while(b--);return g};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=q(this),c=b.length>>>0;if(!c)return-1;var f=0;1<arguments.length&&(f=r(arguments[1]));for(f=0<=f?f:c-Math.abs(f);f<c;f++)if(f in
6
+ b&&b[f]===a)return f;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=q(this),c=b.length>>>0;if(!c)return-1;var f=c-1;1<arguments.length&&(f=r(arguments[1]));for(f=0<=f?f:c-Math.abs(f);0<=f;f--)if(f in b&&a===b[f])return f;return-1};if(!Object.keys){var g=!0,c="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=c.length,j;for(j in{toString:null})g=!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 b=[],f;for(f in a)m(a,f)&&b.push(f);if(g)for(f=0;f<n;f++){var j=c[f];m(a,j)&&b.push(j)}return b}}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+"]",p=RegExp("^"+a+a+"*"),x=
9
+ RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(p,"").replace(x,"")}}var r=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},u="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return u&&"string"==typeof a&&a?a.split(""):Object(a)}})();
10
+ (function(a,b){var h=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);h&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});h=!!a.bar}catch(b){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=h;
11
+ if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var m=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,g,c,n){var j;j=function(){};j.prototype=a;j=new j;if(!n&&!("__proto__"in j)&&!Modernizr.objectAccessor)j.__proto__=a;g&&b.defineProperties(j,g);if(c)j.options=jQuery.extend(!0,{},j.options||{},c),c=j.options;j._create&&jQuery.isFunction(j._create)&&j._create(c);return j};b.defineProperties=function(a,
12
+ g){for(var c in g)m(g,c)&&b.defineProperty(a,c,g[c]);return a};b.defineProperty=function(a,b,c){if("object"!=typeof c||null===c)return a;if(m(c,"value"))return a[b]=c.value,a;a.__defineGetter__&&("function"==typeof c.get&&a.__defineGetter__(b,c.get),"function"==typeof c.set&&a.__defineSetter__(b,c.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
13
+ typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var c;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return c=Object.getOwnPropertyDescriptor(a,b)}catch(n){}c={configurable:!0,enumerable:!0,writable:!0,value:void 0};var j=a.__lookupGetter__&&a.__lookupGetter__(b),h=a.__lookupSetter__&&a.__lookupSetter__(b);if(!j&&!h){if(!m(a,b))return;c.value=a[b];return c}delete c.writable;delete c.value;c.get=c.set=void 0;if(j)c.get=
14
+ j;if(h)c.set=h;return c}}})(jQuery,jQuery.webshims);(function(a){if(!Modernizr.genericDOM){var b=document,h,m,f=/<([\w:]+)/,g={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||g[(f.exec(a)||["",""])[1].toLowerCase()])return a;if(!m){h=b.body;if(!h)return a;m=b.createElement("div");m.style.display="none"}var n=m.cloneNode(!1);h.appendChild(n);n.innerHTML=a;h.removeChild(n);return n.childNodes}}})(jQuery);
15
+ jQuery.webshims.register("dom-extend",function(a,b,h,m,f){var g=b.modules,c=/\s*,\s*/,n={},j={},p={},x={},r={},u=a.fn.val,q=function(i,d,e,b,c){return c?u.call(a(i)):u.call(a(i),e)};a.fn.val=function(i){var d=this[0];arguments.length&&null==i&&(i="");if(!arguments.length)return!d||1!==d.nodeType?u.call(this):a.prop(d,"value",i,"val",!0);if(a.isArray(i))return u.apply(this,arguments);var e=a.isFunction(i);return this.each(function(b){d=this;1===d.nodeType&&(e?(b=i.call(d,b,a.prop(d,"value",f,"val",
16
+ !0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",i,"val"))})};var t="_webshimsLib"+Math.round(1E3*Math.random()),w=function(i,d,e){i=i.jquery?i[0]:i;if(!i)return e||{};var b=a.data(i,t);e!==f&&(b||(b=a.data(i,t,{})),d&&(b[d]=e));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){a.fn[b.name]=function(){return this.map(function(){var a=w(this,
17
+ "shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(i){n[i]=a[i];a[i]=function(d,e,b,c,g){var y="val"==c,k=!y?n[i]:q;if(!d||!j[e]||1!==d.nodeType||!y&&c&&"attr"==i&&a.attrFn[e])return k(d,e,b,c,g);var z=(d.nodeName||"").toLowerCase(),s=p[z],v="attr"==i&&(!1===b||null===b)?"removeAttr":i,h,m,l;s||(s=p["*"]);s&&(s=s[e]);s&&(h=s[v]);if(h){if("value"==e)m=h.isVal,h.isVal=y;if("removeAttr"===v)return h.value.call(d);if(b===f)return h.get?h.get.call(d):h.value;h.set&&
18
+ ("attr"==i&&!0===b&&(b=e),l=h.set.call(d,b));if("value"==e)h.isVal=m}else l=k(d,e,b,c,g);if((b!==f||"removeAttr"===v)&&r[z]&&r[z][e]){var o;o="removeAttr"==v?!1:"prop"==v?!!b:!0;r[z][e].forEach(function(a){if(!a.only||(a.only="prop"==i)||"attr"==a.only&&"prop"!=i)a.call(d,b,o,y?"val":v,i)})}return l};x[i]=function(d,e,c){p[d]||(p[d]={});p[d][e]||(p[d][e]={});var B=p[d][e][i],g=function(a,b,d){return b&&b[a]?b[a]:d&&d[a]?d[a]:"prop"==i&&"value"==e?function(a){return c.isVal?q(this,e,a,!1,0===arguments.length):
19
+ n[i](this,e,a)}:"prop"==i&&"value"==a&&c.value.apply?function(a){var b=n[i](this,e);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return n[i](this,e,a)}};p[d][e][i]=c;if(c.value===f){if(!c.set)c.set=c.writeable?g("set",c,B):b.cfg.useStrict&&"prop"==e?function(){throw e+" is readonly on "+d;}:a.noop;if(!c.get)c.get=g("get",c,B)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=g(a,B))})}});var k=!a.browser.msie||8<parseInt(a.browser.version,10),l=function(){var a=b.getPrototypeOf(m.createElement("foobar")),
20
+ d=Object.prototype.hasOwnProperty;return function(e,c,f){var g=m.createElement(e),h=b.getPrototypeOf(g);if(k&&h&&a!==h&&(!g[c]||!d.call(g,c))){var j=g[c];f._supvalue=function(){return j&&j.apply?j.apply(this,arguments):j};h[c]=f.value}else f._supvalue=function(){var a=w(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},o.extendValue(e,c,f.value);f.value._supvalue=f._supvalue}}(),o=function(){var i={};b.addReady(function(d,e){var c={},f=function(b){c[b]||(c[b]=a(d.getElementsByTagName(b)),
21
+ e[0]&&a.nodeName(e[0],b)&&(c[b]=c[b].add(e)))};a.each(i,function(a,d){f(a);!d||!d.forEach?b.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(b){c[a].each(b)})});c=null});var d,e=a([]),c=function(b,e){i[b]?i[b].push(e):i[b]=[e];a.isDOMReady&&(d||a(m.getElementsByTagName(b))).each(e)};return{createTmpCache:function(b){a.isDOMReady&&(d=d||a(m.getElementsByTagName(b)));return d||e},flushTmpCache:function(){d=null},content:function(b,d){c(b,function(){var b=a.attr(this,d);null!=b&&a.attr(this,
22
+ d,b)})},createElement:function(a,b){c(a,b)},extendValue:function(b,d,e){c(b,function(){a(this).each(function(){w(this,"propValue",{})[d]=this[d];this[d]=e})})}}}(),A=function(a,b){if(a.defaultValue===f)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(b,{getID:function(){var b=(new Date).getTime();return function(d){var d=a(d),e=d.attr("id");e||(b++,e="ID-"+b,d.attr("id",e));return e}}(),extendUNDEFProp:function(b,
23
+ d){a.each(d,function(a,d){a in b||(b[a]=d)})},createPropDefault:A,data:w,moveToFirstEvent:function(){var b=a._data?"_data":"data";return function(d,e,c){if((d=(a[b](d,"events")||{})[e])&&1<d.length)e=d.pop(),c||(c="bind"),"bind"==c&&d.delegateCount?d.splice(d.delegateCount,0,e):d.unshift(e)}}(),addShadowDom:function(b,d,e){e=e||{};b.jquery&&(b=b[0]);d.jquery&&(d=d[0]);if(!e.shadowFocusElement)e.shadowFocusElement=d;var c=a.data(b,t)||a.data(b,t,{}),f=a.data(d,t)||a.data(d,t,{});c.hasShadow=d;f.nativeElement=
24
+ b;f.shadowData=c.shadowData={nativeElement:b,shadowElement:d,shadowFocusElement:e.shadowFocusElement};e.shadowChilds&&e.shadowChilds.each(function(){w(this,"shadowData",f.shadowData)});if(e.data)c.shadowData.data=e.data,f.shadowData.data=e.data;e=null},propTypes:{standard:function(a){A(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){A(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
25
+ ""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,d){"string"==typeof d&&(d=d.split(c));d.forEach(function(d){b.defineNodeNamesProperty(f,d,{prop:{set:function(b){a.attr(this,d,b)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(c,d,e){j[d]=!0;if(e.reflect)b.propTypes[e.propType||"standard"](e);["prop","attr","removeAttr"].forEach(function(f){var g=e[f];g&&(g="prop"===f?a.extend({writeable:!0},g):a.extend({},
26
+ g,{writeable:!0}),x[f](c,d,g),"*"!=c&&b.cfg.extendNative&&"prop"==f&&g.value&&a.isFunction(g.value)&&l(c,d,g),e[f]=g)});e.initAttr&&o.content(c,d);return e},defineNodeNameProperties:function(a,d,c,f){for(var g in d)!f&&d[g].initAttr&&o.createTmpCache(a),c&&(d[g][c]?b.log("override: "+a+"["+g+"] for "+c):(d[g][c]={},["value","set","get"].forEach(function(a){a in d[g]&&(d[g][c][a]=d[g][a],delete d[g][a])}))),d[g]=b.defineNodeNameProperty(a,g,d[g]);f||o.flushTmpCache();return d},createElement:function(c,
27
+ d,e){var f;a.isFunction(d)&&(d={after:d});o.createTmpCache(c);d.before&&o.createElement(c,d.before);e&&(f=b.defineNodeNameProperties(c,e,!1,!0));d.after&&o.createElement(c,d.after);o.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,d,e,f){"string"==typeof b&&(b=b.split(c));a.isFunction(e)&&(e={set:e});b.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(c));e.initAttr&&o.createTmpCache(a);d.forEach(function(b){r[a][b]||(r[a][b]=[],j[b]=!0);if(e.set){if(f)e.set.only=f;
28
+ r[a][b].push(e.set)}e.initAttr&&o.content(a,b)});o.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,d,e){e||(e={});if(a.isFunction(e))e.set=e;b.defineNodeNamesProperty(c,d,{attr:{set:function(a){this.setAttribute(d,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?f:d}},removeAttr:{value:function(){this.removeAttribute(d);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===
29
+ f)return c=(a.attributes[b]||{}).value,null==c?f:c;"boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var c=[],d={},e,f,h=/:\/\/|^\.*\//,k=function(c,d,e){return d&&e&&-1!==a.inArray(d,e.availabeLangs||[])?(c.loading=!0,e=e.langSrc,h.test(e)||(e=b.cfg.basePath+e),b.loader.loadScript(e+d+".js",function(){c.langObj[d]?(c.loading=!1,l(c,!0)):a(function(){c.langObj[d]&&l(c,!0);c.loading=!1})}),!0):!1},j=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},
30
+ l=function(a,b){if(a.activeLang!=e&&a.activeLang!==f){var c=g[a.module].options;if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),j(a.module);else if(!b&&!k(a,e,c)&&!k(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),j(a.module)}};return function(b){if("string"==typeof b&&b!==e)e=b,f=e.split("-")[0],e==f&&(f=!1),a.each(c,function(a,b){l(b)});else if("object"==typeof b)if(b.register)d[b.register]||(d[b.register]=[]),d[b.register].push(b),
31
+ b.callback();else{if(!b.activeLang)b.activeLang="";c.push(b);l(b)}return e}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){b[a]=function(a,f,g,i){"string"==typeof a&&(a=a.split(c));var h={};a.forEach(function(a){h[a]=b[d](a,f,g,i)});return h}});b.isReady("webshimLocalization",!0)});
32
+ (function(a,b){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},f=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(g,c){a.each(m,function(b,h){for(var j=a(b,g).add(c.filter(b)),m=0,n=j.length;m<n;m++)f(j[m],h)});if(g===b){var h=b.getElementsByTagName("header")[0],j=b.getElementsByTagName("footer"),p=j.length;
33
+ h&&!a(h).closest("section, article")[0]&&f(h,"banner");p&&(h=j[p-1],a(h).closest("section, article")[0]||f(h,"contentinfo"))}})}})(jQuery,document);
@@ -0,0 +1,75 @@
1
+ (function(){var a=Function.prototype.call,b=Object.prototype,k=Array.prototype.slice,l,i;if(!Function.prototype.bind)Function.prototype.bind=function(a){var d=this;if("function"!=typeof d)throw new TypeError;var h=k.call(arguments,1),m=function(){if(this instanceof m){var b=function(){};b.prototype=d.prototype;var b=new b,i=d.apply(b,h.concat(k.call(arguments)));return null!==i&&Object(i)===i?i:b}return d.apply(a,h.concat(k.call(arguments)))};return m};i=a.bind(b.toString);l=a.bind(b.hasOwnProperty);
2
+ if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==i(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,d){var b=q(this),h=0,j=b.length>>>0;if("[object Function]"!=i(a))throw new TypeError;for(;h<j;)h in b&&a.call(d,b[h],h,b),h++};if(!Array.prototype.map)Array.prototype.map=function(a,b){var h=q(this),d=h.length>>>0,j=Array(d);if("[object Function]"!=i(a))throw new TypeError;for(var e=0;e<d;e++)e in h&&(j[e]=a.call(b,h[e],e,h));return j};if(!Array.prototype.filter)Array.prototype.filter=
3
+ function(a,h){var d=q(this),b=d.length>>>0,j=[];if("[object Function]"!=i(a))throw new TypeError;for(var e=0;e<b;e++)e in d&&a.call(h,d[e],e,d)&&j.push(d[e]);return j};if(!Array.prototype.every)Array.prototype.every=function(a,d){var h=q(this),b=h.length>>>0;if("[object Function]"!=i(a))throw new TypeError;for(var e=0;e<b;e++)if(e in h&&!a.call(d,h[e],e,h))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,h){var d=q(this),b=d.length>>>0;if("[object Function]"!=i(a))throw new TypeError;
4
+ for(var e=0;e<b;e++)if(e in d&&a.call(h,d[e],e,d))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var d=q(this),h=d.length>>>0;if("[object Function]"!=i(a))throw new TypeError;if(!h&&1==arguments.length)throw new TypeError;var b=0,e;if(2<=arguments.length)e=arguments[1];else{do{if(b in d){e=d[b++];break}if(++b>=h)throw new TypeError;}while(1)}for(;b<h;b++)b in d&&(e=a.call(void 0,e,d[b],b,d));return e};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var d=
5
+ q(this),h=d.length>>>0;if("[object Function]"!=i(a))throw new TypeError;if(!h&&1==arguments.length)throw new TypeError;var b,h=h-1;if(2<=arguments.length)b=arguments[1];else{do{if(h in d){b=d[h--];break}if(0>--h)throw new TypeError;}while(1)}do h in this&&(b=a.call(void 0,b,d[h],h,d));while(h--);return b};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var h=q(this),d=h.length>>>0;if(!d)return-1;var b=0;1<arguments.length&&(b=s(arguments[1]));for(b=0<=b?b:d-Math.abs(b);b<d;b++)if(b in
6
+ h&&h[b]===a)return b;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=q(this),h=b.length>>>0;if(!h)return-1;var d=h-1;1<arguments.length&&(d=s(arguments[1]));for(d=0<=d?d:h-Math.abs(d);0<=d;d--)if(d in b&&a===b[d])return d;return-1};if(!Object.keys){var h=!0,d="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),t=d.length,e;for(e in{toString:null})h=!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 b=[],i;for(i in a)l(a,i)&&b.push(i);if(h)for(i=0;i<t;i++){var e=d[i];l(a,e)&&b.push(e)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,d,b;if(!isFinite(this))throw new RangeError;a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(d=a.length;d--;)b=a[d],10>b&&(a[d]="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+"]",o=RegExp("^"+a+a+"*"),j=
9
+ RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(o,"").replace(j,"")}}var s=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},v="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return v&&"string"==typeof a&&a?a.split(""):Object(a)}})();
10
+ (function(a,b){var k=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);k&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});k=!!a.bar}catch(b){k=!1}a=null}();Modernizr.objectAccessor=!(!(k||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=k;
11
+ if(!k||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var l=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,h,d,l){var e;e=function(){};e.prototype=a;e=new e;if(!l&&!("__proto__"in e)&&!Modernizr.objectAccessor)e.__proto__=a;h&&b.defineProperties(e,h);if(d)e.options=jQuery.extend(!0,{},e.options||{},d),d=e.options;e._create&&jQuery.isFunction(e._create)&&e._create(d);return e};b.defineProperties=function(a,
12
+ h){for(var d in h)l(h,d)&&b.defineProperty(a,d,h[d]);return a};b.defineProperty=function(a,b,d){if("object"!=typeof d||null===d)return a;if(l(d,"value"))return a[b]=d.value,a;a.__defineGetter__&&("function"==typeof d.get&&a.__defineGetter__(b,d.get),"function"==typeof d.set&&a.__defineSetter__(b,d.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
13
+ typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var d;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return d=Object.getOwnPropertyDescriptor(a,b)}catch(k){}d={configurable:!0,enumerable:!0,writable:!0,value:void 0};var e=a.__lookupGetter__&&a.__lookupGetter__(b),o=a.__lookupSetter__&&a.__lookupSetter__(b);if(!e&&!o){if(!l(a,b))return;d.value=a[b];return d}delete d.writable;delete d.value;d.get=d.set=void 0;if(e)d.get=
14
+ e;if(o)d.set=o;return d}}})(jQuery,jQuery.webshims);(function(a){if(!Modernizr.genericDOM){var b=document,k,l,i=/<([\w:]+)/,h={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||h[(i.exec(a)||["",""])[1].toLowerCase()])return a;if(!l){k=b.body;if(!k)return a;l=b.createElement("div");l.style.display="none"}var t=l.cloneNode(!1);k.appendChild(t);t.innerHTML=a;k.removeChild(t);return t.childNodes}}})(jQuery);
15
+ jQuery.webshims.register("dom-extend",function(a,b,k,l,i){var h=b.modules,d=/\s*,\s*/,t={},e={},o={},j={},s={},v=a.fn.val,q=function(f,c,g,b,d){return d?v.call(a(f)):v.call(a(f),g)};a.fn.val=function(f){var c=this[0];arguments.length&&null==f&&(f="");if(!arguments.length)return!c||1!==c.nodeType?v.call(this):a.prop(c,"value",f,"val",!0);if(a.isArray(f))return v.apply(this,arguments);var g=a.isFunction(f);return this.each(function(b){c=this;1===c.nodeType&&(g?(b=f.call(c,b,a.prop(c,"value",i,"val",
16
+ !0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",f,"val"))})};var u="_webshimsLib"+Math.round(1E3*Math.random()),n=function(f,c,g){f=f.jquery?f[0]:f;if(!f)return g||{};var b=a.data(f,u);g!==i&&(b||(b=a.data(f,u,{})),c&&(b[c]=g));return c?b&&b[c]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(f){a.fn[f.name]=function(){return this.map(function(){var a=n(this,
17
+ "shadowData");return a&&a[f.prop]||this})}});["removeAttr","prop","attr"].forEach(function(f){t[f]=a[f];a[f]=function(c,g,b,d,h){var j="val"==d,l=!j?t[f]:q;if(!c||!e[g]||1!==c.nodeType||!j&&d&&"attr"==f&&a.attrFn[g])return l(c,g,b,d,h);var z=(c.nodeName||"").toLowerCase(),x=o[z],y="attr"==f&&(!1===b||null===b)?"removeAttr":f,k,m,n;x||(x=o["*"]);x&&(x=x[g]);x&&(k=x[y]);if(k){if("value"==g)m=k.isVal,k.isVal=j;if("removeAttr"===y)return k.value.call(c);if(b===i)return k.get?k.get.call(c):k.value;k.set&&
18
+ ("attr"==f&&!0===b&&(b=g),n=k.set.call(c,b));if("value"==g)k.isVal=m}else n=l(c,g,b,d,h);if((b!==i||"removeAttr"===y)&&s[z]&&s[z][g]){var r;r="removeAttr"==y?!1:"prop"==y?!!b:!0;s[z][g].forEach(function(a){if(!a.only||(a.only="prop"==f)||"attr"==a.only&&"prop"!=f)a.call(c,b,r,j?"val":y,f)})}return n};j[f]=function(c,g,d){o[c]||(o[c]={});o[c][g]||(o[c][g]={});var h=o[c][g][f],e=function(a,c,b){return c&&c[a]?c[a]:b&&b[a]?b[a]:"prop"==f&&"value"==g?function(a){return d.isVal?q(this,g,a,!1,0===arguments.length):
19
+ t[f](this,g,a)}:"prop"==f&&"value"==a&&d.value.apply?function(a){var c=t[f](this,g);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return t[f](this,g,a)}};o[c][g][f]=d;if(d.value===i){if(!d.set)d.set=d.writeable?e("set",d,h):b.cfg.useStrict&&"prop"==g?function(){throw g+" is readonly on "+c;}:a.noop;if(!d.get)d.get=e("get",d,h)}["value","get","set"].forEach(function(a){d[a]&&(d["_sup"+a]=e(a,h))})}});var p=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=b.getPrototypeOf(l.createElement("foobar")),
20
+ c=Object.prototype.hasOwnProperty;return function(g,d,h){var e=l.createElement(g),j=b.getPrototypeOf(e);if(p&&j&&a!==j&&(!e[d]||!c.call(e,d))){var i=e[d];h._supvalue=function(){return i&&i.apply?i.apply(this,arguments):i};j[d]=h.value}else h._supvalue=function(){var a=n(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},r.extendValue(g,d,h.value);h.value._supvalue=h._supvalue}}(),r=function(){var f={};b.addReady(function(c,g){var d={},h=function(f){d[f]||(d[f]=a(c.getElementsByTagName(f)),
21
+ g[0]&&a.nodeName(g[0],f)&&(d[f]=d[f].add(g)))};a.each(f,function(a,c){h(a);!c||!c.forEach?b.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){d[a].each(c)})});d=null});var c,g=a([]),d=function(g,b){f[g]?f[g].push(b):f[g]=[b];a.isDOMReady&&(c||a(l.getElementsByTagName(g))).each(b)};return{createTmpCache:function(f){a.isDOMReady&&(c=c||a(l.getElementsByTagName(f)));return c||g},flushTmpCache:function(){c=null},content:function(c,f){d(c,function(){var c=a.attr(this,f);null!=c&&a.attr(this,
22
+ f,c)})},createElement:function(a,c){d(a,c)},extendValue:function(c,f,g){d(c,function(){a(this).each(function(){n(this,"propValue",{})[f]=this[f];this[f]=g})})}}}(),w=function(a,c){if(a.defaultValue===i)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(b,{getID:function(){var f=(new Date).getTime();return function(c){var c=a(c),g=c.attr("id");g||(f++,g="ID-"+f,c.attr("id",g));return g}}(),extendUNDEFProp:function(f,
23
+ c){a.each(c,function(a,c){a in f||(f[a]=c)})},createPropDefault:w,data:n,moveToFirstEvent:function(){var f=a._data?"_data":"data";return function(c,g,b){if((c=(a[f](c,"events")||{})[g])&&1<c.length)g=c.pop(),b||(b="bind"),"bind"==b&&c.delegateCount?c.splice(c.delegateCount,0,g):c.unshift(g)}}(),addShadowDom:function(f,c,g){g=g||{};f.jquery&&(f=f[0]);c.jquery&&(c=c[0]);if(!g.shadowFocusElement)g.shadowFocusElement=c;var b=a.data(f,u)||a.data(f,u,{}),d=a.data(c,u)||a.data(c,u,{});b.hasShadow=c;d.nativeElement=
24
+ f;d.shadowData=b.shadowData={nativeElement:f,shadowElement:c,shadowFocusElement:g.shadowFocusElement};g.shadowChilds&&g.shadowChilds.each(function(){n(this,"shadowData",d.shadowData)});if(g.data)b.shadowData.data=g.data,d.shadowData.data=g.data;g=null},propTypes:{standard:function(a){w(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,""+c)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){w(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,
25
+ ""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,c){"string"==typeof c&&(c=c.split(d));c.forEach(function(c){b.defineNodeNamesProperty(f,c,{prop:{set:function(f){a.attr(this,c,f)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(f,c,g){e[c]=!0;if(g.reflect)b.propTypes[g.propType||"standard"](g);["prop","attr","removeAttr"].forEach(function(d){var h=g[d];h&&(h="prop"===d?a.extend({writeable:!0},h):a.extend({},
26
+ h,{writeable:!0}),j[d](f,c,h),"*"!=f&&b.cfg.extendNative&&"prop"==d&&h.value&&a.isFunction(h.value)&&m(f,c,h),g[d]=h)});g.initAttr&&r.content(f,c);return g},defineNodeNameProperties:function(a,c,d,h){for(var e in c)!h&&c[e].initAttr&&r.createTmpCache(a),d&&(c[e][d]?b.log("override: "+a+"["+e+"] for "+d):(c[e][d]={},["value","set","get"].forEach(function(a){a in c[e]&&(c[e][d][a]=c[e][a],delete c[e][a])}))),c[e]=b.defineNodeNameProperty(a,e,c[e]);h||r.flushTmpCache();return c},createElement:function(f,
27
+ c,d){var h;a.isFunction(c)&&(c={after:c});r.createTmpCache(f);c.before&&r.createElement(f,c.before);d&&(h=b.defineNodeNameProperties(f,d,!1,!0));c.after&&r.createElement(f,c.after);r.flushTmpCache();return h},onNodeNamesPropertyModify:function(f,c,b,h){"string"==typeof f&&(f=f.split(d));a.isFunction(b)&&(b={set:b});f.forEach(function(a){s[a]||(s[a]={});"string"==typeof c&&(c=c.split(d));b.initAttr&&r.createTmpCache(a);c.forEach(function(c){s[a][c]||(s[a][c]=[],e[c]=!0);if(b.set){if(h)b.set.only=h;
28
+ s[a][c].push(b.set)}b.initAttr&&r.content(a,c)});r.flushTmpCache()})},defineNodeNamesBooleanProperty:function(f,c,d){d||(d={});if(a.isFunction(d))d.set=d;b.defineNodeNamesProperty(f,c,{attr:{set:function(a){this.setAttribute(c,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?i:c}},removeAttr:{value:function(){this.removeAttribute(c);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,c,d){if(a.nodeName){if(d===
29
+ i)return d=(a.attributes[c]||{}).value,null==d?i:d;"boolean"==typeof d?d?a.setAttribute(c,c):a.removeAttribute(c):a.setAttribute(c,d)}},activeLang:function(){var d=[],c={},g,e,j=/:\/\/|^\.*\//,i=function(c,d,f){return d&&f&&-1!==a.inArray(d,f.availabeLangs||[])?(c.loading=!0,f=f.langSrc,j.test(f)||(f=b.cfg.basePath+f),b.loader.loadScript(f+d+".js",function(){c.langObj[d]?(c.loading=!1,l(c,!0)):a(function(){c.langObj[d]&&l(c,!0);c.loading=!1})}),!0):!1},k=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
30
+ l=function(a,c){if(a.activeLang!=g&&a.activeLang!==e){var d=h[a.module].options;if(a.langObj[g]||e&&a.langObj[e])a.activeLang=g,a.callback(a.langObj[g]||a.langObj[e],g),k(a.module);else if(!c&&!i(a,g,d)&&!i(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],g),k(a.module)}};return function(b){if("string"==typeof b&&b!==g)g=b,e=g.split("-")[0],g==e&&(e=!1),a.each(d,function(a,c){l(c)});else if("object"==typeof b)if(b.register)c[b.register]||(c[b.register]=[]),c[b.register].push(b),
31
+ b.callback();else{if(!b.activeLang)b.activeLang="";d.push(b);l(b)}return g}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){b[a]=function(a,f,h,e){"string"==typeof a&&(a=a.split(d));var j={};a.forEach(function(a){j[a]=b[c](a,f,h,e)});return j}});b.isReady("webshimLocalization",!0)});
32
+ (function(a,b){var k=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<k)&&(!a.browser.msie||12>k&&7<k)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},i=function(a,d){a.getAttribute("role")||a.setAttribute("role",d)};a.webshims.addReady(function(h,d){a.each(l,function(b,e){for(var k=a(b,h).add(d.filter(b)),l=0,o=k.length;l<o;l++)i(k[l],e)});if(h===b){var k=b.getElementsByTagName("header")[0],e=b.getElementsByTagName("footer"),o=e.length;
33
+ k&&!a(k).closest("section, article")[0]&&i(k,"banner");o&&(k=e[o-1],a(k).closest("section, article")[0]||i(k,"contentinfo"))}})}})(jQuery,document);
34
+ (function(a,b,k){var l=b.audio&&b.video,i=!1;if(l)a=document.createElement("video"),b.videoBuffered="buffered"in a,i="loop"in a,k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),b.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:b.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,d,b,e,k){var j=d.mediaelement,s=d.cfg.mediaelement,
35
+ v=function(b,c){var b=a(b),g={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!g.src)return g;var e=b.attr("type");if(e)g.type=e,g.container=a.trim(e.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=j.getTypeForSrc(g.src,c))g.type=e,g.container=e,d.warn("you should always provide a proper mime-type using the source element. "+g.src+" detected as: "+e),a.nodeName(b[0],"source")&&b.attr("type",
36
+ e);if(e=b.attr("media"))g.media=e;return g},q=swfobject.hasFlashPlayerVersion("9.0.115"),u=function(){d.ready("mediaelement-swf",function(){if(!j.createSWF)d.modules["mediaelement-swf"].test=a.noop,d.reTest(["mediaelement-swf"],l)})};j.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",
37
+ "m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};j.mimeTypes.source=a.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";
38
+ var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(j.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};j.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=e.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(),
39
+ j=v(b,d);j.src?c.push(j):a("source",b).each(function(){j=v(this,d);j.src&&c.push(j)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==k&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));j.srces(this,b);a(this).mediaLoad()})};j.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
40
+ j.canSwfPlaySrces=function(b,c){var d="";q&&(b=a(b),c=c||j.srces(b),a.each(c,function(a,c){if(c.container&&c.src&&-1!=j.swfMimeTypes.indexOf(c.container))return d=c,!1}));return d};var n={};j.canNativePlaySrces=function(b,c){var d="";if(l){var b=a(b),e=(b[0].nodeName||"").toLowerCase();if(!n[e])return d;c=c||j.srces(b);a.each(c,function(a,c){if(c.type&&n[e].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};j.setError=function(b,c){c||(c="can't play sources");a(b).pause().data("mediaerror",
41
+ c);d.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var p=function(){var a;return function(c,b,e){d.ready("mediaelement-swf",function(){j.createSWF?j.createSWF(c,b,e):a||(a=!0,u(),p(c,b,e))})}}(),m=function(a,c,b,d,e){b||!1!==b&&c&&"flash"==c.isActive?(b=j.canSwfPlaySrces(a,d))?p(a,b,c):e?j.setError(a,!1):m(a,c,!1,d,!0):(b=j.canNativePlaySrces(a,d))?c&&"flash"==c.isActive&&j.setActive(a,"html5",c):e?(j.setError(a,!1),c&&"flash"==c.isActive&&
42
+ j.setActive(a,"html5",c)):m(a,c,!0,d,!0)},r=/^(?:embed|object|datalist)$/i,w=function(b,c){var e=d.data(b,"mediaelementBase")||d.data(b,"mediaelementBase",{}),i=j.srces(b),l=b.parentNode;clearTimeout(e.loadTimer);a.data(b,"mediaerror",!1);if(i.length&&l&&!(1!=l.nodeType||r.test(l.nodeName||"")))c=c||d.data(b,"mediaelement"),m(b,c,s.preferFlash||k,i)};a(e).bind("ended",function(b){var c=d.data(b.target,"mediaelement");(!i||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,
43
+ "paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});i||d.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=d.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=d.data(this,"mediaelement");w(this,a);l&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});n[b]=d.defineNodeNameProperty(b,"canPlayType",{prop:{value:function(c){var d="";l&&n[b].prop._supvalue&&(d=n[b].prop._supvalue.call(this,
44
+ c),"no"==d&&(d=""));!d&&q&&(c=a.trim((c||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});d.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=d.data(a,"mediaelementBase")||d.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){w(a);a=null},9)}});l&&d.isReady("mediaelement-core",!0);d.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<d.browserVersion&&
45
+ a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():w(this);if(l){var b,c,e=this,f=function(){var b=a.prop(e,"buffered");if(b){for(var c="",d=0,f=b.length;d<f;d++)c+=b.end(d);return c}},j=function(){var b=f();b!=c&&(c=b,a(e).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(c=f());clearTimeout(b);b=setTimeout(j,999)}).bind("emptied stalled mediaerror abort suspend",
46
+ function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})});l&&q&&d.ready("WINDOWLOAD mediaelement",u)})})(jQuery,Modernizr,jQuery.webshims);
47
+ jQuery.webshims.register("mediaelement-swf",function(a,b,k,l,i,h){var d=b.mediaelement,t=k.swfobject,e=Modernizr.audio&&Modernizr.video,o=t.hasFlashPlayerVersion("9.0.115"),j=0,k={paused:!0,ended:!1,currentSrc:"",duration:k.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)b.error("buffered index size error");else return 0},end:function(a){if(a)b.error("buffered index size error");else return 0},length:0}},s=Object.keys(k),v={currentTime:0,volume:1,
48
+ muted:!1};Object.keys(v);var q=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:i},k,v),u=/^jwplayer-/,n=function(a){if(a=l.getElementById(a.replace(u,"")))return a=b.data(a,"mediaelement"),"flash"==a.isActive?a:null},p=function(a){return(a=b.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},m=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,i,b)},r=h.playerPath||b.cfg.basePath+
49
+ "jwplayer/"+(h.playerName||"player.swf"),w=h.pluginPath||b.cfg.basePath+"swf/jwwebshims.swf";b.extendUNDEFProp(h.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});b.extendUNDEFProp(h.jwVars,{screencolor:"ffffffff"});b.extendUNDEFProp(h.jwAttrs,{bgcolor:"#000000"});var f=function(b,c){var e=b.duration;if(!(e&&0<b._durationCalcs)){try{if(b.duration=b.jwapi.getPlaylist()[0].duration,!b.duration||0>=b.duration||b.duration===b._lastDuration)b.duration=e}catch(f){}b.duration&&
50
+ b.duration!=b._lastDuration?(m(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&d.jwEvents.Model.META(a.extend({duration:b.duration},c),b),b._durationCalcs--):b._durationCalcs++}},c=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,m(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,m(b._elem,"canplaythrough");b.readyState=a};d.jwEvents=
51
+ {View:{PLAY:function(a){var b=n(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;m(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var d=n(b.id);if(d&&"percentage"in b&&d._bufferedEnd!=b.percentage){d.networkState=100==b.percentage?1:2;(isNaN(d.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&f(d,b);if(d.ended)d.ended=!1;if(d.duration){2<b.percentage&&20>b.percentage?c(3,d):20<b.percentage&&c(4,d);if(d._bufferedEnd&&
52
+ d._bufferedEnd>b.percentage)d._bufferedStart=d.currentTime||0;d._bufferedEnd=b.percentage;d.buffered.length=1;if(100==b.percentage)d.networkState=1,c(4,d);a.event.trigger("progress",i,d._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:n(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var d=b.duration;if(a.duration)b.duration=a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=
53
+ a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&m(b._elem,"durationchange");m(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=n(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&f(b,a);2>b.readyState&&c(2,b);if(b.ended)b.ended=!1;m(b._elem,"timeupdate")}},STATE:function(a){var b=n(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);m(b._elem,"waiting");
54
+ break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||f(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=n(a.id);b&&d.setError(b._elem,a.message)},SEEK:function(a){var b=n(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=
55
+ a.position)b.currentTime=a.position,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=n(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=n(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var g=function(b){a.each(d.jwEvents,function(c,d){a.each(d,function(a){b.jwapi["add"+c+"Listener"](a,"jQuery.webshims.mediaelement.jwEvents."+c+"."+a)})})},F=function(b){b&&(b._ppFlag===i&&a.prop(b._elem,"autoplay")||
56
+ !b.paused)&&setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag===i||!b.paused))try{a(b._elem).play()}catch(c){}},1)},H=function(b){if(b&&"video"==b._elemNodeName){var c,d,e,f,h,g,j,k,i=function(i,l){if(l&&i&&!(1>l||1>i||"flash"!=b.isActive))if(c&&(c.remove(),c=!1),f=i,h=l,clearTimeout(j),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){g=g||a(b._elem).getShadowElement();var m;d&&!e?(m=g.height(),i*=m/l,l=m):!d&&e&&(m=g.width(),l*=m/i,i=m);k=!0;setTimeout(function(){k=!1},9);
57
+ g.css({width:i,height:l})}},l=function(){if(!("flash"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(j);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||
58
+ b.offsetHeight;e&&d?(i(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;i(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(j),j=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",
59
+ l).bind("swfstageresize",function(){k||i(f,h)}).bind("emptied",function(){f=void 0;h=void 0}).triggerHandler("swfstageresize");l();a.prop(b._elem,"readyState")&&i(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};d.playerResize=function(b){b&&(b=l.getElementById(b.replace(u,"")))&&a(b).triggerHandler("swfstageresize")};a(l).bind("emptied",function(a){a=p(a.target);F(a)});var C;d.jwPlayerReady=function(c){var d=n(c.id);if(d&&d.jwapi){clearTimeout(C);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");
60
+ d.wasSwfReady?a(d._elem).mediaLoad():(c=parseFloat(c.version,10),(5.6>c||6<=c)&&b.warn("mediaelement-swf is only testet with jwplayer 5.6+"),a.prop(d._elem,"volume",d.volume),a.prop(d._elem,"muted",d.muted),g(d));d.wasSwfReady=!0;var c=d.actionQueue.length,e=0,f;if(c&&"flash"==d.isActive)for(;d.actionQueue.length&&c>e;)e++,f=d.actionQueue.shift(),d.jwapi[f.fn].apply(d.jwapi,f.args);if(d.actionQueue.length)d.actionQueue=[];F(d)}};var D=a.noop;if(e){var I={play:1,playing:1},z="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),
61
+ x=z.map(function(a){return a+".webshimspolyfill"}).join(" "),y=function(c){var d=b.data(c.target,"mediaelement");d&&(c.originalEvent&&c.originalEvent.type===c.type)==("flash"==d.activating)&&(c.stopImmediatePropagation(),I[c.type]&&d.isActive!=d.activating&&a(c.target).pause())},D=function(c){a(c).unbind(x).bind(x,y);z.forEach(function(a){b.moveToFirstEvent(c,a)})};D(l)}d.setActive=function(c,d,e){e||(e=b.data(c,"mediaelement"));if(e&&e.isActive!=d){"html5"!=d&&"flash"!=d&&b.warn("wrong type for mediaelement activating: "+
62
+ d);var f=b.data(c,"shadowData");e.activating=d;a(c).pause();e.isActive=d;"flash"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).hide().getShadowElement().show()):(a(c).show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1)}};var J=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var e=b,f=d.networkState;
63
+ for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&m(d._elem,"emptied")}}}(),G=function(b,d){var c=b._elem,e=b.shadowElem;a(c)[d?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!d?e.css({width:0,height:0}):e.css({width:c.style.width||a(c).width(),height:c.style.height||a(c).height()})};d.createSWF=function(c,f,g){if(o){1>j?j=1:j++;var i=a.extend({},h.jwVars,{image:a.prop(c,"poster")||"",file:f.srcProp}),l=a(c).data("jwvars")||{};if(g&&g.swfCreated)d.setActive(c,
64
+ "flash",g),J(g),g.currentSrc=f.srcProp,a.extend(i,l),h.changeJW(i,c,f,g,"load"),A(c,"sendEvent",["LOAD",i]);else{var k=a.prop(c,"controls"),B="jwplayer-"+b.getID(c),m=a.extend({},h.jwParams,a(c).data("jwparams")),n=c.nodeName.toLowerCase(),s=a.extend({},h.jwAttrs,{name:B,id:B},a(c).data("jwattrs")),p=a('<div class="polyfill-'+n+' polyfill-mediaelement" id="wrapper-'+B+'"><div id="'+B+'"></div>').css({position:"relative",overflow:"hidden"}),g=b.data(c,"mediaelement",b.objectCreate(q,{actionQueue:{value:[]},
65
+ shadowElem:{value:p},_elemNodeName:{value:n},_elem:{value:c},currentSrc:{value:f.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)b.error("buffered index size error");else return 0},end:function(a){if(a>=g.buffered.length)b.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));G(g,k);p.insertBefore(c);e&&a.extend(g,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(i,{id:B,
66
+ controlbar:k?h.jwVars.controlbar||("video"==n?"over":"bottom"):"video"==n?"none":"bottom",icons:""+(k&&"video"==n)},l,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+w):w;b.addShadowDom(c,p);D(c);d.setActive(c,"flash",g);h.changeJW(i,c,f,g,"embed");H(g);t.embedSWF(r,B,"100%","100%","9.0.0",!1,i,m,s,function(d){if(d.success)g.jwapi=d.ref,k||a(d.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!d.ref.parentNode&&p[0].parentNode||
67
+ "none"==d.ref.style.display)p.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed");a(d.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),C||(clearTimeout(C),C=setTimeout(function(){var c=a(d.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?b.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):
68
+ (2>c[0].offsetWidth||2>c[0].offsetHeight)&&b.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},1)};var A=function(a,b,c,d){return(d=d||p(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(c){var d={},f,g=function(a){"audio"==c&&
69
+ ("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=p(this);return b?b[a]:e&&f[a].prop._supget?f[a].prop._supget.apply(this):q[a]},writeable:!1})},h=function(a,b){g(a);delete d[a].writeable;d[a].set=b};h("volume",function(a){var c=p(this);if(c){if(a*=100,!isNaN(a)){var d=c.muted;(0>a||100<a)&&b.error("volume greater or less than allowed "+a/100);A(this,"sendEvent",["VOLUME",a],c);if(d)try{c.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(c.volume==a||"flash"!=c.isActive))c.volume=
70
+ a,m(c._elem,"volumechange")}}else if(f.volume.prop._supset)return f.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=p(this);if(b){if(a=!!a,A(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"flash"!=b.isActive))b.muted=a,m(b._elem,"volumechange")}else if(f.muted.prop._supset)return f.muted.prop._supset.apply(this,arguments)});h("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=
71
+ !0;b.stopPlayPause=!1},50);A(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,m(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(f.currentTime.prop._supset)return f.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var b=p(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),A(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag=
72
+ !0,b.paused!=("play"!=a)))b.paused="play"!=a,m(b._elem,a)},1);else if(f[a].prop._supvalue)return f[a].prop._supvalue.apply(this,arguments)}}});s.forEach(g);b.onNodeNamesPropertyModify(c,"controls",function(d,e){var f=p(this);a(this)[e?"addClass":"removeClass"]("webshims-controls");if(f){try{A(this,e?"showControls":"hideControls",[c],f)}catch(g){b.warn("you need to generate a crossdomain.xml")}"audio"==c&&G(f,e);a(f.jwapi).attr("tabindex",e?"0":"-1")}});f=b.defineNodeNameProperties(c,d,"prop")});if(o){var K=
73
+ a.cleanData,L=a.browser.msie&&9>b.browserVersion,M={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&j)for(b=0;b<c;b++)if(M[a[b].nodeName]){if("sendEvent"in a[b]){j--;try{a[b].sendEvent("play",!1)}catch(e){}}if(L)try{for(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(f){}}return K.apply(this,arguments)}}if(!e){var E=l.createElement("a");["poster","src"].forEach(function(c){b.defineNodeNamesProperty("src"==c?["audio","video","source"]:["video"],c,{prop:{get:function(){var b=
74
+ this.getAttribute(c);if(null==b)return"";E.setAttribute("href",b+"");return!a.support.hrefNormalized?E.getAttribute("href",4):E.href},set:function(b){a.attr(this,c,b)}}})});["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)});b.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},
75
+ NETWORK_NO_SOURCE:{value:3}},"prop")}});
@@ -0,0 +1,39 @@
1
+ (function(b){if(!Modernizr.genericDOM){var f=document,p,l,n=/<([\w:]+)/,k={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};b.webshims.fixHTML5=function(b){if("string"!=typeof b||k[(n.exec(b)||["",""])[1].toLowerCase()])return b;if(!l){p=f.body;if(!p)return b;l=f.createElement("div");l.style.display="none"}var m=l.cloneNode(!1);p.appendChild(m);m.innerHTML=b;p.removeChild(m);return m.childNodes}}})(jQuery);
2
+ jQuery.webshims.register("dom-extend",function(b,f,p,l,n){var k=f.modules,u=/\s*,\s*/,m={},v={},r={},w={},a={},c=b.fn.val,j=function(a,e,d,g,q){return q?c.call(b(a)):c.call(b(a),d)};b.fn.val=function(a){var e=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!e||1!==e.nodeType?c.call(this):b.prop(e,"value",a,"val",!0);if(b.isArray(a))return c.apply(this,arguments);var d=b.isFunction(a);return this.each(function(g){e=this;1===e.nodeType&&(d?(g=a.call(e,g,b.prop(e,"value",n,"val",
3
+ !0)),null==g&&(g=""),b.prop(e,"value",g,"val")):b.prop(e,"value",a,"val"))})};var h="_webshimsLib"+Math.round(1E3*Math.random()),i=function(a,e,d){a=a.jquery?a[0]:a;if(!a)return d||{};var g=b.data(a,h);d!==n&&(g||(g=b.data(a,h,{})),e&&(g[e]=d));return e?g&&g[e]:g};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){b.fn[a.name]=function(){return this.map(function(){var b=i(this,
4
+ "shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(o){m[o]=b[o];b[o]=function(e,d,g,q,c){var i="val"==q,h=!i?m[o]:j;if(!e||!v[d]||1!==e.nodeType||!i&&q&&"attr"==o&&b.attrFn[d])return h(e,d,g,q,c);var x=(e.nodeName||"").toLowerCase(),f=r[x],t="attr"==o&&(!1===g||null===g)?"removeAttr":o,k,l,u;f||(f=r["*"]);f&&(f=f[d]);f&&(k=f[t]);if(k){if("value"==d)l=k.isVal,k.isVal=i;if("removeAttr"===t)return k.value.call(e);if(g===n)return k.get?k.get.call(e):k.value;k.set&&
5
+ ("attr"==o&&!0===g&&(g=d),u=k.set.call(e,g));if("value"==d)k.isVal=l}else u=h(e,d,g,q,c);if((g!==n||"removeAttr"===t)&&a[x]&&a[x][d]){var s;s="removeAttr"==t?!1:"prop"==t?!!g:!0;a[x][d].forEach(function(a){if(!a.only||(a.only="prop"==o)||"attr"==a.only&&"prop"!=o)a.call(e,g,s,i?"val":t,o)})}return u};w[o]=function(a,d,g){r[a]||(r[a]={});r[a][d]||(r[a][d]={});var q=r[a][d][o],c=function(a,b,e){return b&&b[a]?b[a]:e&&e[a]?e[a]:"prop"==o&&"value"==d?function(a){return g.isVal?j(this,d,a,!1,0===arguments.length):
6
+ m[o](this,d,a)}:"prop"==o&&"value"==a&&g.value.apply?function(a){var b=m[o](this,d);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return m[o](this,d,a)}};r[a][d][o]=g;if(g.value===n){if(!g.set)g.set=g.writeable?c("set",g,q):f.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+a;}:b.noop;if(!g.get)g.get=c("get",g,q)}["value","get","set"].forEach(function(a){g[a]&&(g["_sup"+a]=c(a,q))})}});var t=!b.browser.msie||8<parseInt(b.browser.version,10),z=function(){var a=f.getPrototypeOf(l.createElement("foobar")),
7
+ b=Object.prototype.hasOwnProperty;return function(d,g,q){var c=l.createElement(d),j=f.getPrototypeOf(c);if(t&&j&&a!==j&&(!c[g]||!b.call(c,g))){var h=c[g];q._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};j[g]=q.value}else q._supvalue=function(){var a=i(this,"propValue");return a&&a[g]&&a[g].apply?a[g].apply(this,arguments):a&&a[g]},s.extendValue(d,g,q.value);q.value._supvalue=q._supvalue}}(),s=function(){var a={};f.addReady(function(d,e){var g={},c=function(a){g[a]||(g[a]=b(d.getElementsByTagName(a)),
8
+ e[0]&&b.nodeName(e[0],a)&&(g[a]=g[a].add(e)))};b.each(a,function(a,b){c(a);!b||!b.forEach?f.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){g[a].each(b)})});g=null});var e,d=b([]),g=function(d,g){a[d]?a[d].push(g):a[d]=[g];b.isDOMReady&&(e||b(l.getElementsByTagName(d))).each(g)};return{createTmpCache:function(a){b.isDOMReady&&(e=e||b(l.getElementsByTagName(a)));return e||d},flushTmpCache:function(){e=null},content:function(a,d){g(a,function(){var a=b.attr(this,d);null!=a&&b.attr(this,
9
+ d,a)})},createElement:function(a,b){g(a,b)},extendValue:function(a,d,e){g(a,function(){b(this).each(function(){i(this,"propValue",{})[d]=this[d];this[d]=e})})}}}(),y=function(a,b){if(a.defaultValue===n)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};b.extend(f,{getID:function(){var a=(new Date).getTime();return function(e){var e=b(e),d=e.attr("id");d||(a++,d="ID-"+a,e.attr("id",d));return d}}(),extendUNDEFProp:function(a,
10
+ e){b.each(e,function(b,e){b in a||(a[b]=e)})},createPropDefault:y,data:i,moveToFirstEvent:function(){var a=b._data?"_data":"data";return function(e,d,g){if((e=(b[a](e,"events")||{})[d])&&1<e.length)d=e.pop(),g||(g="bind"),"bind"==g&&e.delegateCount?e.splice(e.delegateCount,0,d):e.unshift(d)}}(),addShadowDom:function(a,e,d){d=d||{};a.jquery&&(a=a[0]);e.jquery&&(e=e[0]);if(!d.shadowFocusElement)d.shadowFocusElement=e;var g=b.data(a,h)||b.data(a,h,{}),c=b.data(e,h)||b.data(e,h,{});g.hasShadow=e;c.nativeElement=
11
+ a;c.shadowData=g.shadowData={nativeElement:a,shadowElement:e,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){i(this,"shadowData",c.shadowData)});if(d.data)g.shadowData.data=d.data,c.shadowData.data=d.data;d=null},propTypes:{standard:function(a){y(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){y(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
12
+ ""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,e){"string"==typeof e&&(e=e.split(u));e.forEach(function(d){f.defineNodeNamesProperty(a,d,{prop:{set:function(a){b.attr(this,d,a)},get:function(){return b.attr(this,d)||""}}})})},defineNodeNameProperty:function(a,e,d){v[e]=!0;if(d.reflect)f.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(g){var c=d[g];c&&(c="prop"===g?b.extend({writeable:!0},c):b.extend({},
13
+ c,{writeable:!0}),w[g](a,e,c),"*"!=a&&f.cfg.extendNative&&"prop"==g&&c.value&&b.isFunction(c.value)&&z(a,e,c),d[g]=c)});d.initAttr&&s.content(a,e);return d},defineNodeNameProperties:function(a,b,d,g){for(var c in b)!g&&b[c].initAttr&&s.createTmpCache(a),d&&(b[c][d]?f.log("override: "+a+"["+c+"] for "+d):(b[c][d]={},["value","set","get"].forEach(function(a){a in b[c]&&(b[c][d][a]=b[c][a],delete b[c][a])}))),b[c]=f.defineNodeNameProperty(a,c,b[c]);g||s.flushTmpCache();return b},createElement:function(a,
14
+ e,d){var c;b.isFunction(e)&&(e={after:e});s.createTmpCache(a);e.before&&s.createElement(a,e.before);d&&(c=f.defineNodeNameProperties(a,d,!1,!0));e.after&&s.createElement(a,e.after);s.flushTmpCache();return c},onNodeNamesPropertyModify:function(c,e,d,g){"string"==typeof c&&(c=c.split(u));b.isFunction(d)&&(d={set:d});c.forEach(function(b){a[b]||(a[b]={});"string"==typeof e&&(e=e.split(u));d.initAttr&&s.createTmpCache(b);e.forEach(function(e){a[b][e]||(a[b][e]=[],v[e]=!0);if(d.set){if(g)d.set.only=g;
15
+ a[b][e].push(d.set)}d.initAttr&&s.content(b,e)});s.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,e,d){d||(d={});if(b.isFunction(d))d.set=d;f.defineNodeNamesProperty(a,e,{attr:{set:function(a){this.setAttribute(e,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(e)?n:e}},removeAttr:{value:function(){this.removeAttribute(e);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===
16
+ n)return d=(a.attributes[b]||{}).value,null==d?n:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],e={},d,c,j=/:\/\/|^\.*\//,i=function(a,d,c){return d&&c&&-1!==b.inArray(d,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,j.test(c)||(c=f.cfg.basePath+c),f.loader.loadScript(c+d+".js",function(){a.langObj[d]?(a.loading=!1,t(a,!0)):b(function(){a.langObj[d]&&t(a,!0);a.loading=!1})}),!0):!1},h=function(a){e[a]&&e[a].forEach(function(a){a.callback()})},
17
+ t=function(a,b){if(a.activeLang!=d&&a.activeLang!==c){var e=k[a.module].options;if(a.langObj[d]||c&&a.langObj[c])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[c],d),h(a.module);else if(!b&&!i(a,d,e)&&!i(a,c,e)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),h(a.module)}};return function(i){if("string"==typeof i&&i!==d)d=i,c=d.split("-")[0],d==c&&(c=!1),b.each(a,function(a,b){t(b)});else if("object"==typeof i)if(i.register)e[i.register]||(e[i.register]=[]),e[i.register].push(i),
18
+ i.callback();else{if(!i.activeLang)i.activeLang="";a.push(i);t(i)}return d}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){f[a]=function(a,c,i,j){"string"==typeof a&&(a=a.split(u));var h={};a.forEach(function(a){h[a]=f[b](a,c,i,j)});return h}});f.isReady("webshimLocalization",!0)});
19
+ (function(b,f){var p=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<p)&&(!b.browser.msie||12>p&&7<p)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},n=function(b,f){b.getAttribute("role")||b.setAttribute("role",f)};b.webshims.addReady(function(k,u){b.each(l,function(f,a){for(var c=b(f,k).add(u.filter(f)),j=0,h=c.length;j<h;j++)n(c[j],a)});if(k===f){var m=f.getElementsByTagName("header")[0],p=f.getElementsByTagName("footer"),r=p.length;
20
+ m&&!b(m).closest("section, article")[0]&&n(m,"banner");r&&(m=p[r-1],b(m).closest("section, article")[0]||n(m,"contentinfo"))}})}})(jQuery,document);
21
+ jQuery.webshims.register("form-datalist",function(b,f,p,l,n){f.propTypes.element=function(k){f.createPropDefault(k,"attr");if(!k.prop)k.prop={get:function(){var f=k.attr.get.call(this);f&&(f=b("#"+f)[0])&&k.propNodeName&&!b.nodeName(f,k.propNodeName)&&(f=null);return f||null},writeable:!1}};(function(){if(!Modernizr.input.list){var k=0,u={submit:1,button:1,reset:1,hidden:1,range:1,date:1},m=b.browser.msie&&7>parseInt(b.browser.version,10),v={},r=function(a){if(!a)return[];if(v[a])return v[a];var b;
22
+ try{b=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(j){}v[a]=b||[];return b||[]},w={_create:function(a){if(!u[b.prop(a.input,"type")]){var c=a.datalist,j=b.data(a.input,"datalistWidget");if(c&&j&&j.datalist!==c)j.datalist=c,j.id=a.id,b(j.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",b.proxy(j,"_resetListCached")),j._resetListCached();else if(c){if(!(j&&j.datalist===c)){k++;var h=this;this.hideList=b.proxy(h,"hideList");this.timedHide=function(){clearTimeout(h.hideTimer);
23
+ h.hideTimer=setTimeout(h.hideList,9)};this.datalist=c;this.id=a.id;this.hasViewableData=!0;this._autocomplete=b.attr(a.input,"autocomplete");b.data(a.input,"datalistWidget",this);this.shadowList=b('<div class="datalist-polyfill" />').appendTo("body");this.index=-1;this.input=a.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(a){var c=b("li:not(.hidden-item)",h.shadowList),j="mousedown"==a.type||"click"==a.type;
24
+ h.markItem(c.index(a.currentTarget),j,c);"click"==a.type&&h.hideList();return"mousedown"!=a.type}).bind("focusout",this.timedHide);a.input.setAttribute("autocomplete","off");b(a.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!h.triggeredByDatalist)h.changedValue=!1,h.showHideOptions()}).bind("keydown.datalistWidget",function(a){var c=a.keyCode;if(40==c&&!h.showList())return h.markItem(h.index+1,!0),!1;if(h.isListVisible){if(38==c)return h.markItem(h.index-1,!0),!1;
25
+ if(!a.shiftKey&&(33==c||36==c))return h.markItem(0,!0),!1;if(!a.shiftKey&&(34==c||35==c))return a=b("li:not(.hidden-item)",h.shadowList),h.markItem(a.length-1,!0,a),!1;if(13==c||27==c)return 13==c&&h.changeValue(b("li.active-item:not(.hidden-item)",h.shadowList)),h.hideList(),!1}}).bind("focus.datalistWidget",function(){b(this).hasClass("list-focus")&&h.showList()}).bind("mousedown.datalistWidget",function(){(this==l.activeElement||b(this).is(":focus"))&&h.showList()}).bind("blur.datalistWidget",
26
+ this.timedHide);b(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",b.proxy(this,"_resetListCached"));this._resetListCached();a.input.form&&a.input.id&&b(a.input.form).bind("submit.datalistWidget"+a.input.id,function(){var c=b.prop(a.input,"value"),j=(a.input.name||a.input.id)+b.prop(a.input,"type");if(!h.storedOptions)h.storedOptions=r(j);if(c&&-1==h.storedOptions.indexOf(c)&&(h.storedOptions.push(c),c=h.storedOptions,j)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+
27
+ j,JSON.stringify(c))}catch(f){}}});b(p).bind("unload",function(){h.destroy()})}}else j&&j.destroy()}},destroy:function(){var a=b.attr(this.input,"autocomplete");b(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();b(l).unbind(".datalist"+this.id);this.input.form&&this.input.id&&b(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");a===n?this.input.removeAttribute("autocomplete"):b(this.input).attr("autocomplete",
28
+ a)},_resetListCached:function(a){var b=this,j;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(p.QUnit||(j=a&&l.activeElement==b.input)?b.updateListOptions(j):f.ready("WINDOWLOAD",function(){b.updateTimer=setTimeout(function(){b.updateListOptions();b=null;k=1},200+100*k)}))},updateListOptions:function(a){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:b.curCSS(this.input,"fontSize"),fontFamily:b.curCSS(this.input,
29
+ "fontFamily")});var c=[],j=[],h=[],i,f,k,l;for(f=b.prop(this.datalist,"options"),k=0,l=f.length;k<l;k++){i=f[k];if(i.disabled)return;i={value:b(i).val()||"",text:b.trim(b.attr(i,"label")||i.textContent||i.innerText||b.text([i])||""),className:i.className||"",style:b.attr(i,"style")||""};i.text?i.text!=i.value&&(i.className+=" different-label-value"):i.text=i.value;j[k]=i.value;h[k]=i}if(!this.storedOptions)this.storedOptions=r((this.input.name||this.input.id)+b.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==
30
+ j.indexOf(a)&&h.push({value:a,text:a,className:"stored-suggest",style:""})});for(k=0,l=h.length;k<l;k++)f=h[k],c[k]='<li class="'+f.className+'" style="'+f.style+'" tabindex="-1" role="listitem"><span class="option-label">'+f.text+'</span> <span class="option-value">'+f.value+"</span></li>";this.arrayOptions=h;this.shadowList.html('<ul role="list" class="'+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom">'+c.join("\n")+"</ul>");b.fn.bgIframe&&m&&this.shadowList.bgIframe();(a||this.isListVisible)&&
31
+ this.showHideOptions()},showHideOptions:function(a){var c=b.prop(this.input,"value").toLowerCase();if(!(c===this.lastUpdatedValue||this.lastUnfoundValue&&0===c.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=c;var j=!1,f=b("li",this.shadowList);c?this.arrayOptions.forEach(function(a,k){if(!("lowerText"in a))a.lowerText=a.text!=a.value?a.text.toLowerCase()+a.value.toLowerCase():a.text.toLowerCase();-1!==a.lowerText.indexOf(c)?(b(f[k]).removeClass("hidden-item"),j=!0):b(f[k]).addClass("hidden-item")}):
32
+ f.length&&(f.removeClass("hidden-item"),j=!0);this.hasViewableData=j;!a&&j&&this.showList();if(!j)this.lastUnfoundValue=c,this.hideList()}},setPos:function(){var a=f.getRelOffset(this.shadowList,this.input);a.top+=b(this.input).outerHeight();a.width=b(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css(a);return a},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();
33
+ this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var a=this,c;a.setPos();m&&(a.shadowList.css("height","auto"),250<a.shadowList.height()&&a.shadowList.css("height",220));a.shadowList.addClass("datalist-visible");b(l).unbind(".datalist"+a.id).bind("mousedown.datalist"+a.id+" focusin.datalist"+a.id,function(c){c.target===a.input||a.shadowList[0]===c.target||b.contains(a.shadowList[0],c.target)?(clearTimeout(a.hideTimer),setTimeout(function(){clearTimeout(a.hideTimer)},
34
+ 9)):a.timedHide()});b(p).unbind(".datalist"+a.id).bind("resize.datalist"+a.id+"orientationchange.datalist "+a.id+" emchange.datalist"+a.id,function(){clearTimeout(c);c=setTimeout(function(){a.setPos()},9)});clearTimeout(c);return!0},hideList:function(){if(!this.isListVisible)return!1;var a=this,c=function(){a.changedValue&&b(a.input).trigger("change");a.changedValue=!1};a.shadowList.removeClass("datalist-visible list-item-active").scrollTop(0).find("li.active-item").removeClass("active-item");a.index=
35
+ -1;a.isListVisible=!1;if(a.changedValue){a.triggeredByDatalist=!0;f.triggerInlineForm&&f.triggerInlineForm(a.input,"input");if(a.input==l.activeElement||b(a.input).is(":focus"))b(a.input).one("blur",c);else c();a.triggeredByDatalist=!1}b(l).unbind(".datalist"+a.id);b(p).unbind(".datalist"+a.id);return!0},scrollIntoView:function(a){var c=b("> ul",this.shadowList),f=a.position();f.top-=(parseInt(c.css("paddingTop"),10)||0)+(parseInt(c.css("marginTop"),10)||0)+(parseInt(c.css("borderTopWidth"),10)||
36
+ 0);0>f.top?this.shadowList.scrollTop(this.shadowList.scrollTop()+f.top-2):(f.top+=a.outerHeight(),a=this.shadowList.height(),f.top>a&&this.shadowList.scrollTop(this.shadowList.scrollTop()+(f.top-a)+2))},changeValue:function(a){if(a[0]){var a=b("span.option-value",a).text(),c=b.prop(this.input,"value");if(a!=c)b(this.input).prop("value",a).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(a,c,f){f=f||b("li:not(.hidden-item)",this.shadowList);if(f.length)0>a?a=f.length-1:a>=f.length&&
37
+ (a=0),f.removeClass("active-item"),this.shadowList.addClass("list-item-active"),f=f.filter(":eq("+a+")").addClass("active-item"),c&&(this.changeValue(f),this.scrollIntoView(f)),this.index=a}};(function(){f.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var a=b("select",this);a[0]?a=a[0].options:(a=b("option",this).get(),a.length&&f.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return a}}});f.defineNodeNameProperties("input",
38
+ {selectedOption:{prop:{writeable:!1,get:function(){var a=b.prop(this,"list"),c=null,f;if(!a)return c;f=b.attr(this,"value");if(!f)return c;a=b.prop(a,"options");if(!a.length)return c;b.each(a,function(a,i){if(f==b.prop(i,"value"))return c=i,!1});return c}}},autocomplete:{attr:{get:function(){var a=b.data(this,"datalistWidget");return a?a._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(a){var c=b.data(this,"datalistWidget");c?(c._autocomplete=a,
39
+ "off"==a&&c.hideList()):"autocomplete"in this?this.autocomplete=a:this.setAttribute("autocomplete",a)}}},list:{attr:{get:function(){var a=f.contentAttr(this,"list");return null==a?n:a},set:function(a){f.contentAttr(this,"list",a);f.objectCreate(w,n,{input:this,id:a,datalist:b.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}});if(b.event.customEvent)b.event.customEvent.updateDatalist=!0,b.event.customEvent.updateInput=!0;f.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
@@ -0,0 +1,38 @@
1
+ (function(c){if(!Modernizr.genericDOM){var g=document,j,i,l=/<([\w:]+)/,o={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};c.webshims.fixHTML5=function(c){if("string"!=typeof c||o[(l.exec(c)||["",""])[1].toLowerCase()])return c;if(!i){j=g.body;if(!j)return c;i=g.createElement("div");i.style.display="none"}var m=i.cloneNode(!1);j.appendChild(m);m.innerHTML=c;j.removeChild(m);return m.childNodes}}})(jQuery);
2
+ jQuery.webshims.register("dom-extend",function(c,g,j,i,l){var o=g.modules,h=/\s*,\s*/,m={},u={},n={},f={},s={},t=c.fn.val,w=function(a,b,d,e,k){return k?t.call(c(a)):t.call(c(a),d)};c.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?t.call(this):c.prop(b,"value",a,"val",!0);if(c.isArray(a))return t.apply(this,arguments);var d=c.isFunction(a);return this.each(function(e){b=this;1===b.nodeType&&(d?(e=a.call(b,e,c.prop(b,"value",l,"val",
3
+ !0)),null==e&&(e=""),c.prop(b,"value",e,"val")):c.prop(b,"value",a,"val"))})};var p="_webshimsLib"+Math.round(1E3*Math.random()),r=function(a,b,d){a=a.jquery?a[0]:a;if(!a)return d||{};var e=c.data(a,p);d!==l&&(e||(e=c.data(a,p,{})),b&&(e[b]=d));return b?e&&e[b]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var b=r(this,
4
+ "shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){m[a]=c[a];c[a]=function(b,d,e,k,A){var f="val"==k,o=!f?m[a]:w;if(!b||!u[d]||1!==b.nodeType||!f&&k&&"attr"==a&&c.attrFn[d])return o(b,d,e,k,A);var y=(b.nodeName||"").toLowerCase(),g=n[y],h="attr"==a&&(!1===e||null===e)?"removeAttr":a,i,t,p;g||(g=n["*"]);g&&(g=g[d]);g&&(i=g[h]);if(i){if("value"==d)t=i.isVal,i.isVal=f;if("removeAttr"===h)return i.value.call(b);if(e===l)return i.get?i.get.call(b):i.value;i.set&&
5
+ ("attr"==a&&!0===e&&(e=d),p=i.set.call(b,e));if("value"==d)i.isVal=t}else p=o(b,d,e,k,A);if((e!==l||"removeAttr"===h)&&s[y]&&s[y][d]){var j;j="removeAttr"==h?!1:"prop"==h?!!e:!0;s[y][d].forEach(function(d){if(!d.only||(d.only="prop"==a)||"attr"==d.only&&"prop"!=a)d.call(b,e,j,f?"val":h,a)})}return p};f[a]=function(b,d,e){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var k=n[b][d][a],f=function(b,c,k){return c&&c[b]?c[b]:k&&k[b]?k[b]:"prop"==a&&"value"==d?function(b){return e.isVal?w(this,d,b,!1,0===arguments.length):
6
+ m[a](this,d,b)}:"prop"==a&&"value"==b&&e.value.apply?function(b){var e=m[a](this,d);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(b){return m[a](this,d,b)}};n[b][d][a]=e;if(e.value===l){if(!e.set)e.set=e.writeable?f("set",e,k):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:c.noop;if(!e.get)e.get=f("get",e,k)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=f(b,k))})}});var z=!c.browser.msie||8<parseInt(c.browser.version,10),x=function(){var a=g.getPrototypeOf(i.createElement("foobar")),
7
+ b=Object.prototype.hasOwnProperty;return function(d,e,c){var f=i.createElement(d),o=g.getPrototypeOf(f);if(z&&o&&a!==o&&(!f[e]||!b.call(f,e))){var h=f[e];c._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};o[e]=c.value}else c._supvalue=function(){var b=r(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},q.extendValue(d,e,c.value);c.value._supvalue=c._supvalue}}(),q=function(){var a={};g.addReady(function(b,d){var e={},f=function(a){e[a]||(e[a]=c(b.getElementsByTagName(a)),
8
+ d[0]&&c.nodeName(d[0],a)&&(e[a]=e[a].add(d)))};c.each(a,function(b,a){f(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){e[b].each(a)})});e=null});var b,d=c([]),e=function(d,e){a[d]?a[d].push(e):a[d]=[e];c.isDOMReady&&(b||c(i.getElementsByTagName(d))).each(e)};return{createTmpCache:function(a){c.isDOMReady&&(b=b||c(i.getElementsByTagName(a)));return b||d},flushTmpCache:function(){b=null},content:function(b,a){e(b,function(){var b=c.attr(this,a);null!=b&&c.attr(this,
9
+ a,b)})},createElement:function(b,a){e(b,a)},extendValue:function(b,a,d){e(b,function(){c(this).each(function(){r(this,"propValue",{})[a]=this[a];this[a]=d})})}}}(),v=function(a,b){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};c.extend(g,{getID:function(){var a=(new Date).getTime();return function(b){var b=c(b),d=b.attr("id");d||(a++,d="ID-"+a,b.attr("id",d));return d}}(),extendUNDEFProp:function(a,
10
+ b){c.each(b,function(b,e){b in a||(a[b]=e)})},createPropDefault:v,data:r,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(b,d,e){if((b=(c[a](b,"events")||{})[d])&&1<b.length)d=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!d.shadowFocusElement)d.shadowFocusElement=b;var e=c.data(a,p)||c.data(a,p,{}),k=c.data(b,p)||c.data(b,p,{});e.hasShadow=b;k.nativeElement=
11
+ a;k.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){r(this,"shadowData",k.shadowData)});if(d.data)e.shadowData.data=d.data,k.shadowData.data=d.data;d=null},propTypes:{standard:function(a){v(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){v(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
12
+ ""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(h));b.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){c.attr(this,b,a)},get:function(){return c.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,d){u[b]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(e){var k=d[e];k&&(k="prop"===e?c.extend({writeable:!0},k):c.extend({},
13
+ k,{writeable:!0}),f[e](a,b,k),"*"!=a&&g.cfg.extendNative&&"prop"==e&&k.value&&c.isFunction(k.value)&&x(a,b,k),d[e]=k)});d.initAttr&&q.content(a,b);return d},defineNodeNameProperties:function(a,b,d,e){for(var c in b)!e&&b[c].initAttr&&q.createTmpCache(a),d&&(b[c][d]?g.log("override: "+a+"["+c+"] for "+d):(b[c][d]={},["value","set","get"].forEach(function(a){a in b[c]&&(b[c][d][a]=b[c][a],delete b[c][a])}))),b[c]=g.defineNodeNameProperty(a,c,b[c]);e||q.flushTmpCache();return b},createElement:function(a,
14
+ b,d){var e;c.isFunction(b)&&(b={after:b});q.createTmpCache(a);b.before&&q.createElement(a,b.before);d&&(e=g.defineNodeNameProperties(a,d,!1,!0));b.after&&q.createElement(a,b.after);q.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,b,d,e){"string"==typeof a&&(a=a.split(h));c.isFunction(d)&&(d={set:d});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(h));d.initAttr&&q.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],u[b]=!0);if(d.set){if(e)d.set.only=e;
15
+ s[a][b].push(d.set)}d.initAttr&&q.content(a,b)});q.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,d){d||(d={});if(c.isFunction(d))d.set=d;g.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?l:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===
16
+ l)return d=(a.attributes[b]||{}).value,null==d?l:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],b={},d,e,f=/:\/\/|^\.*\//,h=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,f.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,i(a,!0)):c(function(){a.langObj[b]&&i(a,!0);a.loading=!1})}),!0):!1},n=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},
17
+ i=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=o[a.module].options;if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),n(a.module);else if(!b&&!h(a,d,c)&&!h(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),n(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),c.each(a,function(a,b){i(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),
18
+ f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);i(f)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,e,c,f){"string"==typeof a&&(a=a.split(h));var o={};a.forEach(function(a){o[a]=g[b](a,e,c,f)});return o}});g.isReady("webshimLocalization",!0)});
19
+ (function(c,g){var j=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<j)&&(!c.browser.msie||12>j&&7<j)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(o,h){c.each(i,function(f,g){for(var n=c(f,o).add(h.filter(f)),i=0,m=n.length;i<m;i++)l(n[i],g)});if(o===g){var m=g.getElementsByTagName("header")[0],j=g.getElementsByTagName("footer"),n=j.length;
20
+ m&&!c(m).closest("section, article")[0]&&l(m,"banner");n&&(m=j[n-1],c(m).closest("section, article")[0]||l(m,"contentinfo"))}})}})(jQuery,document);
21
+ (function(c,g,j){var i=g.audio&&g.video,l=!1;if(i)c=document.createElement("video"),g.videoBuffered="buffered"in c,l="loop"in c,j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),g.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,h,g,j,n){var f=h.mediaelement,s=h.cfg.mediaelement,
22
+ t=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var e=a.attr("type");if(e)d.type=e,d.container=c.trim(e.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=f.getTypeForSrc(d.src,b))d.type=e,d.container=e,h.warn("you should always provide a proper mime-type using the source element. "+d.src+" detected as: "+e),c.nodeName(a[0],"source")&&a.attr("type",
23
+ e);if(e=a.attr("media"))d.media=e;return d},w=swfobject.hasFlashPlayerVersion("9.0.115"),p=function(){h.ready("mediaelement-swf",function(){if(!f.createSWF)h.modules["mediaelement-swf"].test=c.noop,h.reTest(["mediaelement-swf"],i)})};f.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8",
24
+ "m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};f.mimeTypes.source=c.extend({},f.mimeTypes.audio,f.mimeTypes.video);f.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";
25
+ var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(f.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};f.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(b)||(b=[b]),b.forEach(function(b){var d=j.createElement("source");"string"==typeof b&&(b={src:b});d.setAttribute("src",b.src);b.type&&d.setAttribute("type",b.type);b.media&&d.setAttribute("media",b.media);a.append(d)});else{var b=[],d=a[0].nodeName.toLowerCase(),
26
+ e=t(a,d);e.src?b.push(e):c("source",a).each(function(){e=t(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==n&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));f.srces(this,a);c(this).mediaLoad()})};f.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
27
+ f.canSwfPlaySrces=function(a,b){var d="";w&&(a=c(a),b=b||f.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=f.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var r={};f.canNativePlaySrces=function(a,b){var d="";if(i){var a=c(a),e=(a[0].nodeName||"").toLowerCase();if(!r[e])return d;b=b||f.srces(a);c.each(b,function(b,c){if(c.type&&r[e].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};f.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",
28
+ b);h.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var z=function(){var a;return function(b,d,c){h.ready("mediaelement-swf",function(){f.createSWF?f.createSWF(b,d,c):a||(a=!0,p(),z(b,d,c))})}}(),x=function(a,b,d,c,h){d||!1!==d&&b&&"flash"==b.isActive?(d=f.canSwfPlaySrces(a,c))?z(a,d,b):h?f.setError(a,!1):x(a,b,!1,c,!0):(d=f.canNativePlaySrces(a,c))?b&&"flash"==b.isActive&&f.setActive(a,"html5",b):h?(f.setError(a,!1),b&&"flash"==b.isActive&&
29
+ f.setActive(a,"html5",b)):x(a,b,!0,c,!0)},q=/^(?:embed|object|datalist)$/i,v=function(a,b){var d=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),e=f.srces(a),g=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(e.length&&g&&!(1!=g.nodeType||q.test(g.nodeName||"")))b=b||h.data(a,"mediaelement"),x(a,b,s.preferFlash||n,e)};c(j).bind("ended",function(a){var b=h.data(a.target,"mediaelement");(!l||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,
30
+ "paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=h.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");v(this,a);i&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=h.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var e="";i&&r[a].prop._supvalue&&(e=r[a].prop._supvalue.call(this,
31
+ b),"no"==e&&(e=""));!e&&w&&(b=c.trim((b||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});i&&h.isReady("mediaelement-core",!0);h.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<h.browserVersion&&
32
+ c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():v(this);if(i){var a,b,f=this,g=function(){var a=c.prop(f,"buffered");if(a){for(var b="",d=0,e=a.length;d<e;d++)b+=a.end(d);return b}},n=function(){var a=g();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=g());clearTimeout(a);a=setTimeout(n,999)}).bind("emptied stalled mediaerror abort suspend",
33
+ function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})});i&&w&&h.ready("WINDOWLOAD mediaelement",p)})})(jQuery,Modernizr,jQuery.webshims);
34
+ jQuery.webshims.register("details",function(c,g,j,i,l,o){var h=function(g){var f=c(g).parent("details");if(f[0]&&f.children(":first").get(0)===g)return f},m=function(g,f){var g=c(g),f=c(f),h=c.data(f[0],"summaryElement");c.data(g[0],"detailsElement",f);if(!h||g[0]!==h[0])h&&(h.hasClass("fallback-summary")?h.remove():h.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),c.data(f[0],
35
+ "summaryElement",g),f.prop("open",f.prop("open"))};g.createElement("summary",function(){var i=h(this);if(i&&!c.data(this,"detailsElement")){var f,j,l=c.attr(this,"tabIndex")||"0";m(this,i);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
36
+ function(g){var i=h(this);if(i){if(!j&&g.originalEvent)return j=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),j=!1;clearTimeout(f);f=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(f){if((13==f.keyCode||32==f.keyCode)&&!f.isDefaultPrevented())j=!0,f.preventDefault(),c(this).trigger("click"),j=!1}).attr({tabindex:l,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this,
37
+ "click")}});var u;g.defineNodeNamesBooleanProperty("details","open",function(g){var f=c(c.data(this,"summaryElement"));if(f){var h=g?"removeClass":"addClass",i=c(this);if(!u&&o.animate){i.stop().css({width:"",height:""});var j={width:i.width(),height:i.height()}}f.attr("aria-expanded",""+g);i[h]("closed-details-summary").children().not(f[0])[h]("closed-details-child");!u&&o.animate&&(g={width:i.width(),height:i.height()},i.css(j).animate(g,{complete:function(){c(this).css({width:"",height:""})}}))}});
38
+ g.createElement("details",function(){u=!0;var g=c.data(this,"summaryElement");g||(g=c("> summary:first-child",this),g[0]?m(g,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+o.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));u=!1})});
@@ -0,0 +1,25 @@
1
+ (function(d){if(!Modernizr.genericDOM){var g=document,o,j,m=/<([\w:]+)/,n={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};d.webshims.fixHTML5=function(d){if("string"!=typeof d||n[(m.exec(d)||["",""])[1].toLowerCase()])return d;if(!j){o=g.body;if(!o)return d;j=g.createElement("div");j.style.display="none"}var k=j.cloneNode(!1);o.appendChild(k);k.innerHTML=d;o.removeChild(k);return k.childNodes}}})(jQuery);
2
+ jQuery.webshims.register("dom-extend",function(d,g,o,j,m){var n=g.modules,s=/\s*,\s*/,k={},p={},i={},h={},l={},t=d.fn.val,B=function(b,a,c,e,f){return f?t.call(d(b)):t.call(d(b),c)};d.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?t.call(this):d.prop(a,"value",b,"val",!0);if(d.isArray(b))return t.apply(this,arguments);var c=d.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=b.call(a,e,d.prop(a,"value",m,"val",
3
+ !0)),null==e&&(e=""),d.prop(a,"value",e,"val")):d.prop(a,"value",b,"val"))})};var v="_webshimsLib"+Math.round(1E3*Math.random()),x=function(b,a,c){b=b.jquery?b[0]:b;if(!b)return c||{};var e=d.data(b,v);c!==m&&(e||(e=d.data(b,v,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){d.fn[b.name]=function(){return this.map(function(){var a=x(this,
4
+ "shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){k[b]=d[b];d[b]=function(a,c,e,f,q){var y="val"==f,g=!y?k[b]:B;if(!a||!p[c]||1!==a.nodeType||!y&&f&&"attr"==b&&d.attrFn[c])return g(a,c,e,f,q);var z=(a.nodeName||"").toLowerCase(),u=i[z],w="attr"==b&&(!1===e||null===e)?"removeAttr":b,h,t,n;u||(u=i["*"]);u&&(u=u[c]);u&&(h=u[w]);if(h){if("value"==c)t=h.isVal,h.isVal=y;if("removeAttr"===w)return h.value.call(a);if(e===m)return h.get?h.get.call(a):h.value;h.set&&
5
+ ("attr"==b&&!0===e&&(e=c),n=h.set.call(a,e));if("value"==c)h.isVal=t}else n=g(a,c,e,f,q);if((e!==m||"removeAttr"===w)&&l[z]&&l[z][c]){var j;j="removeAttr"==w?!1:"prop"==w?!!e:!0;l[z][c].forEach(function(c){if(!c.only||(c.only="prop"==b)||"attr"==c.only&&"prop"!=b)c.call(a,e,j,y?"val":w,b)})}return n};h[b]=function(a,c,e){i[a]||(i[a]={});i[a][c]||(i[a][c]={});var f=i[a][c][b],q=function(a,d,f){return d&&d[a]?d[a]:f&&f[a]?f[a]:"prop"==b&&"value"==c?function(a){return e.isVal?B(this,c,a,!1,0===arguments.length):
6
+ k[b](this,c,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var d=k[b](this,c);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return k[b](this,c,a)}};i[a][c][b]=e;if(e.value===m){if(!e.set)e.set=e.writeable?q("set",e,f):g.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:d.noop;if(!e.get)e.get=q("get",e,f)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=q(a,f))})}});var C=!d.browser.msie||8<parseInt(d.browser.version,10),D=function(){var b=g.getPrototypeOf(j.createElement("foobar")),
7
+ a=Object.prototype.hasOwnProperty;return function(c,d,f){var q=j.createElement(c),h=g.getPrototypeOf(q);if(C&&h&&b!==h&&(!q[d]||!a.call(q,d))){var i=q[d];f._supvalue=function(){return i&&i.apply?i.apply(this,arguments):i};h[d]=f.value}else f._supvalue=function(){var a=x(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},r.extendValue(c,d,f.value);f.value._supvalue=f._supvalue}}(),r=function(){var b={};g.addReady(function(a,c){var e={},h=function(b){e[b]||(e[b]=d(a.getElementsByTagName(b)),
8
+ c[0]&&d.nodeName(c[0],b)&&(e[b]=e[b].add(c)))};d.each(b,function(a,c){h(a);!c||!c.forEach?g.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){e[a].each(c)})});e=null});var a,c=d([]),e=function(c,e){b[c]?b[c].push(e):b[c]=[e];d.isDOMReady&&(a||d(j.getElementsByTagName(c))).each(e)};return{createTmpCache:function(b){d.isDOMReady&&(a=a||d(j.getElementsByTagName(b)));return a||c},flushTmpCache:function(){a=null},content:function(a,c){e(a,function(){var a=d.attr(this,c);null!=a&&d.attr(this,
9
+ c,a)})},createElement:function(a,c){e(a,c)},extendValue:function(a,c,b){e(a,function(){d(this).each(function(){x(this,"propValue",{})[c]=this[c];this[c]=b})})}}}(),A=function(b,a){if(b.defaultValue===m)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}}};d.extend(g,{getID:function(){var b=(new Date).getTime();return function(a){var a=d(a),c=a.attr("id");c||(b++,c="ID-"+b,a.attr("id",c));return c}}(),extendUNDEFProp:function(b,
10
+ a){d.each(a,function(a,d){a in b||(b[a]=d)})},createPropDefault:A,data:x,moveToFirstEvent:function(){var b=d._data?"_data":"data";return function(a,c,e){if((a=(d[b](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(b,a,c){c=c||{};b.jquery&&(b=b[0]);a.jquery&&(a=a[0]);if(!c.shadowFocusElement)c.shadowFocusElement=a;var e=d.data(b,v)||d.data(b,v,{}),f=d.data(a,v)||d.data(a,v,{});e.hasShadow=a;f.nativeElement=
11
+ b;f.shadowData=e.shadowData={nativeElement:b,shadowElement:a,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){x(this,"shadowData",f.shadowData)});if(c.data)e.shadowData.data=c.data,f.shadowData.data=c.data;c=null},propTypes:{standard:function(b){A(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){A(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,
12
+ ""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}}},reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(s));a.forEach(function(a){g.defineNodeNamesProperty(b,a,{prop:{set:function(b){d.attr(this,a,b)},get:function(){return d.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,c){p[a]=!0;if(c.reflect)g.propTypes[c.propType||"standard"](c);["prop","attr","removeAttr"].forEach(function(e){var f=c[e];f&&(f="prop"===e?d.extend({writeable:!0},f):d.extend({},
13
+ f,{writeable:!0}),h[e](b,a,f),"*"!=b&&g.cfg.extendNative&&"prop"==e&&f.value&&d.isFunction(f.value)&&D(b,a,f),c[e]=f)});c.initAttr&&r.content(b,a);return c},defineNodeNameProperties:function(b,a,c,d){for(var f in a)!d&&a[f].initAttr&&r.createTmpCache(b),c&&(a[f][c]?g.log("override: "+b+"["+f+"] for "+c):(a[f][c]={},["value","set","get"].forEach(function(b){b in a[f]&&(a[f][c][b]=a[f][b],delete a[f][b])}))),a[f]=g.defineNodeNameProperty(b,f,a[f]);d||r.flushTmpCache();return a},createElement:function(b,
14
+ a,c){var e;d.isFunction(a)&&(a={after:a});r.createTmpCache(b);a.before&&r.createElement(b,a.before);c&&(e=g.defineNodeNameProperties(b,c,!1,!0));a.after&&r.createElement(b,a.after);r.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,a,c,e){"string"==typeof b&&(b=b.split(s));d.isFunction(c)&&(c={set:c});b.forEach(function(b){l[b]||(l[b]={});"string"==typeof a&&(a=a.split(s));c.initAttr&&r.createTmpCache(b);a.forEach(function(a){l[b][a]||(l[b][a]=[],p[a]=!0);if(c.set){if(e)c.set.only=e;
15
+ l[b][a].push(c.set)}c.initAttr&&r.content(b,a)});r.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,a,c){c||(c={});if(d.isFunction(c))c.set=c;g.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?m:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===
16
+ m)return c=(b.attributes[a]||{}).value,null==c?m:c;"boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var b=[],a={},c,e,f=/:\/\/|^\.*\//,h=function(a,c,b){return c&&b&&-1!==d.inArray(c,b.availabeLangs||[])?(a.loading=!0,b=b.langSrc,f.test(b)||(b=g.cfg.basePath+b),g.loader.loadScript(b+c+".js",function(){a.langObj[c]?(a.loading=!1,l(a,!0)):d(function(){a.langObj[c]&&l(a,!0);a.loading=!1})}),!0):!1},i=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},
17
+ l=function(a,b){if(a.activeLang!=c&&a.activeLang!==e){var d=n[a.module].options;if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),i(a.module);else if(!b&&!h(a,c,d)&&!h(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),i(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,e=c.split("-")[0],c==e&&(e=!1),d.each(b,function(a,b){l(b)});else if("object"==typeof f)if(f.register)a[f.register]||(a[f.register]=[]),a[f.register].push(f),
18
+ f.callback();else{if(!f.activeLang)f.activeLang="";b.push(f);l(f)}return c}}()});d.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){g[b]=function(b,d,f,h){"string"==typeof b&&(b=b.split(s));var i={};b.forEach(function(b){i[b]=g[a](b,d,f,h)});return i}});g.isReady("webshimLocalization",!0)});
19
+ (function(d,g){var o=d.webshims.browserVersion;if(!(d.browser.mozilla&&5<o)&&(!d.browser.msie||12>o&&7<o)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(d,g){d.getAttribute("role")||d.setAttribute("role",g)};d.webshims.addReady(function(n,o){d.each(j,function(h,i){for(var g=d(h,n).add(o.filter(h)),k=0,j=g.length;k<j;k++)m(g[k],i)});if(n===g){var k=g.getElementsByTagName("header")[0],p=g.getElementsByTagName("footer"),i=p.length;
20
+ k&&!d(k).closest("section, article")[0]&&m(k,"banner");i&&(k=p[i-1],d(k).closest("section, article")[0]||m(k,"contentinfo"))}})}})(jQuery,document);
21
+ jQuery.webshims.register("details",function(d,g,o,j,m,n){var s=function(i){var h=d(i).parent("details");if(h[0]&&h.children(":first").get(0)===i)return h},k=function(i,h){var i=d(i),h=d(h),g=d.data(h[0],"summaryElement");d.data(i[0],"detailsElement",h);if(!g||i[0]!==g[0])g&&(g.hasClass("fallback-summary")?g.remove():g.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),d.data(h[0],
22
+ "summaryElement",i),h.prop("open",h.prop("open"))};g.createElement("summary",function(){var i=s(this);if(i&&!d.data(this,"detailsElement")){var h,l,j=d.attr(this,"tabIndex")||"0";k(this,i);d(this).bind("focus.summaryPolyfill",function(){d(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){d(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){d(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){d(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
23
+ function(g){var i=s(this);if(i){if(!l&&g.originalEvent)return l=!0,g.stopImmediatePropagation(),g.preventDefault(),d(this).trigger("click"),l=!1;clearTimeout(h);h=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(g){if((13==g.keyCode||32==g.keyCode)&&!g.isDefaultPrevented())l=!0,g.preventDefault(),d(this).trigger("click"),l=!1}).attr({tabindex:j,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this,
24
+ "click")}});var p;g.defineNodeNamesBooleanProperty("details","open",function(g){var h=d(d.data(this,"summaryElement"));if(h){var k=g?"removeClass":"addClass",j=d(this);if(!p&&n.animate){j.stop().css({width:"",height:""});var m={width:j.width(),height:j.height()}}h.attr("aria-expanded",""+g);j[k]("closed-details-summary").children().not(h[0])[k]("closed-details-child");!p&&n.animate&&(g={width:j.width(),height:j.height()},j.css(m).animate(g,{complete:function(){d(this).css({width:"",height:""})}}))}});
25
+ g.createElement("details",function(){p=!0;var g=d.data(this,"summaryElement");g||(g=d("> summary:first-child",this),g[0]?k(g,this):(d(this).prependPolyfill('<summary class="fallback-summary">'+n.text+"</summary>"),d.data(this,"summaryElement")));d.prop(this,"open",d.prop(this,"open"));p=!1})});
@@ -0,0 +1,19 @@
1
+ (function(){if(!("JSON"in window&&JSON.stringify&&JSON.parse)){if(!this.JSON)this.JSON={};(function(){function a(d){return 10>d?"0"+d:d}function n(d){e.lastIndex=0;return e.test(d)?'"'+d.replace(e,function(j){var g=c[j];return"string"===typeof g?g:"\\u"+("0000"+j.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function h(d,j){var g,m,k,a,e=f,c,i=j[d];i&&"object"===typeof i&&"function"===typeof i.toJSON&&(i=i.toJSON(d));"function"===typeof b&&(i=b.call(j,d,i));switch(typeof i){case "string":return n(i);
2
+ case "number":return isFinite(i)?""+i:"null";case "boolean":case "null":return""+i;case "object":if(!i)return"null";f+=o;c=[];if("[object Array]"===Object.prototype.toString.apply(i)){a=i.length;for(g=0;g<a;g+=1)c[g]=h(g,i)||"null";k=0===c.length?"[]":f?"[\n"+f+c.join(",\n"+f)+"\n"+e+"]":"["+c.join(",")+"]";f=e;return k}if(b&&"object"===typeof b){a=b.length;for(g=0;g<a;g+=1)m=b[g],"string"===typeof m&&(k=h(m,i))&&c.push(n(m)+(f?": ":":")+k)}else for(m in i)Object.hasOwnProperty.call(i,m)&&(k=h(m,
3
+ i))&&c.push(n(m)+(f?": ":":")+k);k=0===c.length?"{}":f?"{\n"+f+c.join(",\n"+f)+"\n"+e+"}":"{"+c.join(",")+"}";f=e;return k}}if("function"!==typeof Date.prototype.toJSON)Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};
4
+ var l=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,o,c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b;if("function"!==typeof JSON.stringify)JSON.stringify=function(d,j,g){var a;o=f="";if("number"===typeof g)for(a=0;a<g;a+=1)o+=" ";else"string"===typeof g&&(o=g);if((b=j)&&
5
+ "function"!==typeof j&&("object"!==typeof j||"number"!==typeof j.length))throw Error("JSON.stringify");return h("",{"":d})};if("function"!==typeof JSON.parse)JSON.parse=function(a,j){function g(a,b){var d,m,c=a[b];if(c&&"object"===typeof c)for(d in c)Object.hasOwnProperty.call(c,d)&&(m=g(c,d),void 0!==m?c[d]=m:delete c[d]);return j.call(a,b,c)}var b,a=""+a;l.lastIndex=0;l.test(a)&&(a=a.replace(l,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
6
+ "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return b=eval("("+a+")"),"function"===typeof j?g({"":b},""):b;throw new SyntaxError("JSON.parse");}})()}})();
7
+ (function(){var a=jQuery;if("localStorage"in window&&"sessionStorage"in window)a.webshims.isReady("json-storage",!0);else{var n=function(e){e&&e.indexOf&&-1!=e.indexOf(";")&&setTimeout(function(){a.webshims.warn("Bad key for localStorage: ; in localStorage. name was: "+e)},0)},h,l=!1;a.each(["opener","top","parent"],function(a,c){try{if((h=window[c])&&"name"in h)return!1;h=!1}catch(b){h=!1}});h||(h=window,l=!0);var e=function(a){if(!l)try{window.name=a}catch(c){}try{h.name=a}catch(b){h=window,l=!0}},
8
+ f=function(a){function c(a,b,d){var c;d?(c=new Date,c.setTime(c.getTime()+864E5*d),d="; expires="+c.toGMTString()):d="";document.cookie=a+"="+b+d+"; path=/"}function b(b){b=JSON.stringify(b);"session"==a?e(b):c("localStorage",b,365)}var d=function(){var b;if("session"==a){if(!l)try{b=window.name}catch(d){}if(!b)try{b=h.name}catch(c){h=window,l=!0}}else a:{b=document.cookie.split(";");var e,f;for(e=0;e<b.length;e++){for(f=b[e];" "==f.charAt(0);)f=f.substring(1,f.length);if(0===f.indexOf("localStorage=")){b=
9
+ f.substring(13,f.length);break a}}b=null}if(b)try{b=JSON.parse(b)}catch(n){b={}}return b||{}}();return{clear:function(){d={};"session"==a?e(""):c("localStorage","",365)},getItem:function(a){return a in d?d[a]:null},key:function(a){var b=0,c;for(c in d){if(b==a)return c;b++}return null},removeItem:function(a){delete d[a];b(d)},setItem:function(a,c){n(a);d[a]=c+"";b(d)}}};if(!("sessionStorage"in window))window.sessionStorage=new f("session");(function(){var e,c,b,d=function(c){clearTimeout(e);if(!window.localStorage||
10
+ !("swf"!=c||b&&b.key)){if("swf"===c){b=document.getElementById("swflocalstorageshim");if(!b||"undefined"==typeof b.GetVariable)b=document.swflocalstorageshim;if(!b||"undefined"==typeof b.GetVariable)b=window.localstorageshim;if(b&&"undefined"!==typeof b.GetVariable)window.localStorage={},window.localStorage.clear=function(){b.clear&&b.clear()},window.localStorage.key=function(a){b.key&&b.key(a)},window.localStorage.removeItem=function(a){b.removeItem&&b.removeItem(a)},window.localStorage.setItem=
11
+ function(a,c){n(a);(c+="")||(c="(empty string)+1287520303738");b.setItem&&b.setItem(a,c)},window.localStorage.getItem=function(a){if(!b.getItem)return null;var c=b.getItem(a,c);"(empty string)+1287520303738"==c&&(c="");return c},a.webshims.log("flash-localStorage was implemented")}if(!("localStorage"in window))window.localStorage=new f("local"),a.webshims.warn("implement cookie-localStorage")}a.webshims.isReady("json-storage",!0)},j=a.webshims.cfg["json-storage"];a.webshims.swfLocalStorage={show:function(){j.exceededMessage&&
12
+ a("#swflocalstorageshim-wrapper").prepend('<div class="polyfill-exceeded-message">'+j.exceededMessage+"</div>");a("#swflocalstorageshim-wrapper").css({top:a(window).scrollTop()+20,left:a(window).width()/2-a("#swflocalstorageshim-wrapper").outerWidth()/2})},hide:function(b){a("#swflocalstorageshim-wrapper").css({top:"",left:""}).find("div.polyfill-exceeded-message").remove();if(!b)throw b=Error("DOMException: QUOTA_EXCEEDED_ERR"),b.code=22,b.name="DOMException",b;},isReady:d};a.webshims.ready("DOM swfobject",
13
+ function(){c||"localStorage"in window&&document.getElementById("swflocalstorageshim")||(c=!0,window.swfobject&&swfobject.hasFlashPlayerVersion("8.0.0")?(a("body")[a.browser.mozilla?"after":"append"]('<div id="swflocalstorageshim-wrapper"><div id="swflocalstorageshim" /></div>'),swfobject.embedSWF(a.webshims.cfg.basePath+"swf/localStorage.swf"+(a.webshims.cfg.addCacheBuster||""),"swflocalstorageshim","295","198","8.0.0","",{allowscriptaccess:"always"},{name:"swflocalstorageshim"},function(a){!a.success&&
14
+ !window.localStorage&&d()}),clearTimeout(e),e=setTimeout(function(){"localStorage"in window||a.webshims.warn("Add your development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html");d()},0===location.protocol.indexOf("file")?500:9999)):d())})})()}})();
15
+ (function(a){if(!navigator.geolocation){var n=function(){setTimeout(function(){throw"document.write is overwritten by geolocation shim. This method is incompatible with this plugin";},1)},h=0,l=a.webshims.cfg.geolocation.options||{};navigator.geolocation=function(){var e,f={getCurrentPosition:function(f,c,b){var d=2,j,g,h,k=function(){if(!h)if(e){if(h=!0,f(a.extend({timestamp:(new Date).getTime()},e)),p(),window.JSON&&window.sessionStorage)try{sessionStorage.setItem("storedGeolocationData654321",
16
+ JSON.stringify(e))}catch(b){}}else c&&!d&&(h=!0,p(),c({code:2,message:"POSITION_UNAVAILABLE"}))},r=function(){d--;q();k()},p=function(){a(document).unbind("google-loader",p);clearTimeout(g);clearTimeout(j)},q=function(){if(e||!window.google||!google.loader||!google.loader.ClientLocation)return!1;var b=google.loader.ClientLocation;e={coords:{latitude:b.latitude,longitude:b.longitude,altitude:null,accuracy:43E3,altitudeAccuracy:null,heading:parseInt("NaN",10),velocity:null},address:a.extend({streetNumber:"",
17
+ street:"",premises:"",county:"",postalCode:""},b.address)};return!0};if(!e&&(q(),!e&&window.JSON&&window.sessionStorage))try{e=(e=sessionStorage.getItem("storedGeolocationData654321"))?JSON.parse(e):!1,e.coords||(e=!1)}catch(i){e=!1}e?setTimeout(k,1):l.confirmText&&!confirm(l.confirmText.replace("{location}",location.hostname))?c&&c({code:1,message:"PERMISSION_DENIED"}):(a.ajax({url:"http://freegeoip.net/json/",dataType:"jsonp",cache:!0,jsonp:"callback",success:function(a){d--;a&&(e=e||{coords:{latitude:a.latitude,
18
+ longitude:a.longitude,altitude:null,accuracy:43E3,altitudeAccuracy:null,heading:parseInt("NaN",10),velocity:null},address:{city:a.city,country:a.country_name,countryCode:a.country_code,county:"",postalCode:a.zipcode,premises:"",region:a.region_name,street:"",streetNumber:""}},k())},error:function(){d--;k()}}),clearTimeout(g),!window.google||!window.google.loader?g=setTimeout(function(){if(l.destroyWrite)document.write=n,document.writeln=n;a(document).one("google-loader",r);a.webshims.loader.loadScript("http://www.google.com/jsapi",
19
+ !1,"google-loader")},800):d--,j=b&&b.timeout?setTimeout(function(){p();c&&c({code:3,message:"TIMEOUT"})},b.timeout):setTimeout(function(){d=0;k()},1E4))},clearWatch:a.noop};f.watchPosition=function(a,c,b){f.getCurrentPosition(a,c,b);h++;return h};return f}();a.webshims.isReady("geolocation",!0)}})(jQuery);
@@ -0,0 +1,10 @@
1
+ jQuery.webshims.register("details",function(a,h,j,l,c,i){var n=function(b){var e=a(b).parent("details");if(e[0]&&e.children(":first").get(0)===b)return e},f=function(b,e){var b=a(b),e=a(e),d=a.data(e[0],"summaryElement");a.data(b[0],"detailsElement",e);if(!d||b[0]!==d[0])d&&(d.hasClass("fallback-summary")?d.remove():d.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),
2
+ a.data(e[0],"summaryElement",b),e.prop("open",e.prop("open"))};h.createElement("summary",function(){var b=n(this);if(b&&!a.data(this,"detailsElement")){var e,d,c=a.attr(this,"tabIndex")||"0";f(this,b);a(this).bind("focus.summaryPolyfill",function(){a(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){a(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){a(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){a(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
3
+ function(b){var c=n(this);if(c){if(!d&&b.originalEvent)return d=!0,b.stopImmediatePropagation(),b.preventDefault(),a(this).trigger("click"),d=!1;clearTimeout(e);e=setTimeout(function(){b.isDefaultPrevented()||c.prop("open",!c.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(b){if((13==b.keyCode||32==b.keyCode)&&!b.isDefaultPrevented())d=!0,b.preventDefault(),a(this).trigger("click"),d=!1}).attr({tabindex:c,role:"button"}).prepend('<span class="details-open-indicator" />');h.moveToFirstEvent(this,
4
+ "click")}});var g;h.defineNodeNamesBooleanProperty("details","open",function(b){var c=a(a.data(this,"summaryElement"));if(c){var d=b?"removeClass":"addClass",f=a(this);if(!g&&i.animate){f.stop().css({width:"",height:""});var h={width:f.width(),height:f.height()}}c.attr("aria-expanded",""+b);f[d]("closed-details-summary").children().not(c[0])[d]("closed-details-child");!g&&i.animate&&(b={width:f.width(),height:f.height()},f.css(h).animate(b,{complete:function(){a(this).css({width:"",height:""})}}))}});
5
+ h.createElement("details",function(){g=!0;var b=a.data(this,"summaryElement");b||(b=a("> summary:first-child",this),b[0]?f(b,this):(a(this).prependPolyfill('<summary class="fallback-summary">'+i.text+"</summary>"),a.data(this,"summaryElement")));a.prop(this,"open",a.prop(this,"open"));g=!1})});
6
+ (function(a){if(!navigator.geolocation){var h=function(){setTimeout(function(){throw"document.write is overwritten by geolocation shim. This method is incompatible with this plugin";},1)},j=0,l=a.webshims.cfg.geolocation.options||{};navigator.geolocation=function(){var c,i={getCurrentPosition:function(i,f,g){var b=2,e,d,j,k=function(){if(!j)if(c){if(j=!0,i(a.extend({timestamp:(new Date).getTime()},c)),m(),window.JSON&&window.sessionStorage)try{sessionStorage.setItem("storedGeolocationData654321",
7
+ JSON.stringify(c))}catch(d){}}else f&&!b&&(j=!0,m(),f({code:2,message:"POSITION_UNAVAILABLE"}))},p=function(){b--;o();k()},m=function(){a(document).unbind("google-loader",m);clearTimeout(d);clearTimeout(e)},o=function(){if(c||!window.google||!google.loader||!google.loader.ClientLocation)return!1;var b=google.loader.ClientLocation;c={coords:{latitude:b.latitude,longitude:b.longitude,altitude:null,accuracy:43E3,altitudeAccuracy:null,heading:parseInt("NaN",10),velocity:null},address:a.extend({streetNumber:"",
8
+ street:"",premises:"",county:"",postalCode:""},b.address)};return!0};if(!c&&(o(),!c&&window.JSON&&window.sessionStorage))try{c=(c=sessionStorage.getItem("storedGeolocationData654321"))?JSON.parse(c):!1,c.coords||(c=!1)}catch(q){c=!1}c?setTimeout(k,1):l.confirmText&&!confirm(l.confirmText.replace("{location}",location.hostname))?f&&f({code:1,message:"PERMISSION_DENIED"}):(a.ajax({url:"http://freegeoip.net/json/",dataType:"jsonp",cache:!0,jsonp:"callback",success:function(a){b--;a&&(c=c||{coords:{latitude:a.latitude,
9
+ longitude:a.longitude,altitude:null,accuracy:43E3,altitudeAccuracy:null,heading:parseInt("NaN",10),velocity:null},address:{city:a.city,country:a.country_name,countryCode:a.country_code,county:"",postalCode:a.zipcode,premises:"",region:a.region_name,street:"",streetNumber:""}},k())},error:function(){b--;k()}}),clearTimeout(d),!window.google||!window.google.loader?d=setTimeout(function(){if(l.destroyWrite)document.write=h,document.writeln=h;a(document).one("google-loader",p);a.webshims.loader.loadScript("http://www.google.com/jsapi",
10
+ !1,"google-loader")},800):b--,e=g&&g.timeout?setTimeout(function(){m();f&&f({code:3,message:"TIMEOUT"})},g.timeout):setTimeout(function(){b=0;k()},1E4))},clearWatch:a.noop};i.watchPosition=function(a,c,g){i.getCurrentPosition(a,c,g);j++;return j};return i}();a.webshims.isReady("geolocation",!0)}})(jQuery);