Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
IE8 js uglified with the "ansii_true" buetifier option so that the unicode characters aren't escaped
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.0-rc1-development - 2014-03-04
*
*/
!function(a,b){b.getData=function(b,c){var d,e=b.jquery?b[0]:b,f=e.getAttribute("data-"+c);if(f)try{d=JSON.parse(f)}catch(g){a.error("Bad JSON array in data-"+c+" attribute")}return a.data(e,c,d),d}}(jQuery,wb),function(a){"use strict";a.jqEscape=function(a){return a.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")},a.normalizeDiacritics=function(a){var b,c,d={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u0152":"OE","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u1e9e":"SS","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u0153":"oe","\u0276":"oe","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u017f":"s","\u1e9b":"s","\xdf":"ss","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\uff10":"0","\u2080":"0","\u24ea":"0","\u2070":"0","\xb9":"1","\u2474":"1","\u2081":"1","\u2776":"1","\u24f5":"1","\u2488":"1","\u2460":"1","\uff11":"1","\xb2":"2","\u2777":"2","\u2475":"2","\uff12":"2","\u2082":"2","\u24f6":"2","\u2461":"2","\u2489":"2","\xb3":"3","\uff13":"3","\u248a":"3","\u2476":"3","\u2083":"3","\u2778":"3","\u24f7":"3","\u2462":"3","\u24f8":"4","\u2463":"4","\u248b":"4","\uff14":"4","\u2074":"4","\u2084":"4","\u2779":"4","\u2477":"4","\u248c":"5","\u2085":"5","\u24f9":"5","\u2478":"5","\u277a":"5","\u2464":"5","\uff15":"5","\u2075":"5","\u2479":"6","\u2076":"6","\uff16":"6","\u277b":"6","\u2086":"6","\u2465":"6","\u24fa":"6","\u248d":"6","\uff17":"7","\u2077":"7","\u277c":"7","\u24fb":"7","\u248e":"7","\u2087":"7","\u247a":"7","\u2466":"7","\u2467":"8","\u248f":"8","\u24fc":"8","\u247b":"8","\u2078":"8","\uff18":"8","\u277d":"8","\u2088":"8","\u24fd":"9","\uff19":"9","\u2490":"9","\u277e":"9","\u247c":"9","\u2089":"9","\u2468":"9","\u2079":"9"},e=a.split(""),f=e.length,g=!1;for(b=0;b!==f;b+=1)c=e[b],d.hasOwnProperty(c)&&(e[b]=d[c],g=!0);return g?e.join(""):a},a.string={"pad":function(a,b){var c,d=a+"",e=b-d.length;for(c=0;c!==e;c+=1)d="0"+d;return d}},a.date={"convert":function(a){var b=a.constructor;switch(b){case Date:return b;case Array:return new Date(a[0],a[1],a[2]);case Number:case String:return new Date(a);default:return"object"==typeof a?new Date(a.year,a.month,a.date):0/0}},"compare":function(b,c){var d=a.date.convert;return isFinite(b=d(b).valueOf())&&isFinite(c=d(c).valueOf())?(b>c)-(c>b):0/0},"toDateISO":function(b,c){var d=a.date.convert(b),e=a.string.pad;return d.getFullYear()+"-"+e(d.getMonth()+1,2,"0")+"-"+e(d.getDate(),2,"0")+(c?" "+e(d.getHours(),2,"0")+":"+e(d.getMinutes(),2,"0"):"")},"fromDateISO":function(a){var b=null;return a&&a.match(/\d{4}-\d{2}-\d{2}/)&&(b=new Date,b.setFullYear(a.substr(0,4),a.substr(5,2)-1,a.substr(8,2))),b}}}(wb),function(a,b){"use strict";var c,d={"default":"wet-boew"};c={"init":function(b){return a.extend(d,b||{})},"show":function(c){a(this).each(function(){var d=a(this);d.attr("aria-hidden","false"),c===b&&d.removeClass("wb-inv")})},"hide":function(c){a(this).each(function(){var d=a(this);return d.attr("aria-hidden","true"),c===b?d.addClass("wb-inv"):void 0})},"toggle":function(b,c){a(this).addClass(b).removeClass(c)}},a.fn.wb=function(b){c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?a.error("Method "+b+" does not exist on jquery.wb"):c.init.apply(this,arguments)}}(jQuery),function(a){"use strict";function b(b,d,e){var f,g,h,i=b.nodeName.toLowerCase();return"area"===i?(f=b.parentNode,g=f.name,b.href&&g&&"map"===f.nodeName.toLowerCase()?(h=a("img[usemap=#"+g+"]")[0],!!h&&c(h)):!1):e?(/input|select|textarea|button|object/.test(i)?!b.disabled:"a"===i?b.href||d:d)&&c(b):/input|select|textarea|button|object/.test(i)?!b.disabled:"a"===i?b.href||d:d}function c(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}a.extend(a.expr[":"],{"data":a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},"focusable":function(c){return b(c,!isNaN(a.attr(c,"tabindex")),!0)},"discoverable":function(c){return b(c,!isNaN(a.attr(c,"tabindex")))},"tabbable":function(c){var d=a.attr(c,"tabindex"),e=isNaN(d);return(e||d>=0)&&b(c,!e)}})}(jQuery),function(a,b){"use strict";var c=b.doc,d=function(a){var b,c,d,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",f=a,g="",h=0;for(h;h!==f;h+=1)b=Math.floor(2*Math.random()),0===b?(c=Math.floor(9*Math.random()),g+=c):(d=Math.floor(Math.random()*e.length),g+=e.substring(d,d+1));return g};c.on("ajax-fetch.wb",function(b){var c,e=b.element,f=b.fetch;b.currentTarget===b.target&&(c="wb"+d(8),a("<div id='"+c+"' />").load(f,function(){a(e).trigger({"type":"ajax-fetched.wb","pointer":a(this)})}))})}(jQuery,wb),function(a,b,c){"use strict";var d,e,f="wb-calevt",g="."+f,h=g+"-cal",i=f+"-inited",j="wb-init"+g,k="setfocus.wb",l="ev-details",m=c.doc,n=function(b){b.hasClass(i)||(c.remove(g),b.addClass(i),e||(d=c.i18n,e={"monthNames":d("mnths"),"calendar":d("cal")}),a.when.apply(a,a.map(b.find("[data-calevt]"),o)).always(function(){p(b)}))},o=function(b){var c,d,e=a(b),f=e.data("calevt").split(/\s+/),g=a.Deferred(),h=f.length,i=[];for(d=function(b){e.append(a.trim(b))},c=0;h>c;c+=1)i.push(a.get(f[c],d,"html"));return a.when.apply(a,i).always(function(){g.resolve()}),g.promise()},p=function(b){var c,d,f,g=new Date,i=g.getFullYear(),j=g.getMonth(),k=b.find(".year"),l=b.find(".month");k.length>0&&l.length>0&&(i=k.text(),j=l.hasClass("textformat")?a.inArray(l.text(),e.monthNames):l.text()-1),c=r(b),d=b.data("calevtSrc"),f=a("#"+d).addClass(h),m.on("displayed.wb-cal","#"+d,function(a,b,e,f){A(b,e,f,d,c.list),B(b,e,d)}),m.trigger("create.wb-cal",[d,i,j,!0,c.minDate,c.maxDate]),f.attr({"role":"application","aria-label":e.calendar})},q=function(a,b){var d,e=c.date.convert(a),f=c.date.convert(b),g=0,h=6e4,i=60*h*24;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),f.setHours(0),f.setMinutes(0),f.setSeconds(0),g=f>e?(f.getTimezoneOffset()-e.getTimezoneOffset())*h:(e.getTimezoneOffset()-f.getTimezoneOffset())*h,d=Math.abs(f.getTime()-e.getTime())-g,Math.ceil(d/i)},r=function(d){var e=!a(d).hasClass("evt-anchor"),f={"minDate":null,"maxDate":null,"iCount":0,"list":[{"a":1}]},g=null;return d.find("ol").length>0?g=d.find("ol"):d.find("ul").length>0&&(g=d.find("ul")),g.length>0&&g.children("li").each(function(){var b,d,g,h,i,j,k,l,m,n,o,p=a(this),r=p.find("*:header:first"),t=r.text(),u=p.find("a").first(),v=u.attr("href");if(e||(b=p.attr("id")||s(6),p.attr("id",b),c.ie&&p.attr("tabindex","-1"),v="#"+b),d=new Date,g=p.find("time, span.datetime"),g.length>1)for(i=g[0],j="time"===i.nodeName.toLowerCase()?a(i).attr("datetime").substr(0,10).split("-"):a(i).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-"),i=g[1],k="time"===i.nodeName.toLowerCase()?a(i).attr("datetime").substr(0,10).split("-"):a(i).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-"),j[1]=j[1]-1,k[1]=k[1]-1,d.setFullYear(j[0],j[1],j[2]),m=0,n=q(j,k);n>=m;m+=1)(null===f.minDate||d<f.minDate)&&(f.minDate=d),(null===f.maxDate||d>f.maxDate)&&(f.maxDate=d),f.list[f.iCount]={"title":t,"date":new Date(d.getTime()),"href":v},d=new Date(d.setDate(d.getDate()+1)),o="filter-"+d.getFullYear()+"-"+c.string.pad(d.getMonth()+1,2),r.hasClass(o)||r.addClass(o),f.iCount+=1;else 1===g.length&&(h=a(g[0]),l="time"===h.get(0).nodeName.toLowerCase()?h.attr("datetime").substr(0,10).split("-"):h.attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-"),d.setFullYear(l[0],l[1]-1,l[2]),(null===f.minDate||d<f.minDate)&&(f.minDate=d),(null===f.maxDate||d>f.maxDate)&&(f.maxDate=d),f.list[f.iCount]={"title":t,"date":d,"href":v},o="filter-"+d.getFullYear()+"-"+c.string.pad(d.getMonth()+1,2),r.hasClass(o)||r.addClass(o),f.iCount+=1)}),b.events=f,f},s=function(a){var b,c,d="";for(b=function(){return c=Math.floor(62*Math.random()),10>c?c:36>c?String.fromCharCode(c+55):String.fromCharCode(c+61)};d.length<a;)d+=b();return"id"+d},t=function(b){var c,d,e=a(this);switch(b.keyCode){case 38:return d=e.closest("ul").children("li"),c=d.length,d.eq((e.closest("li").index()-1)%c).children("a").trigger(k),!1;case 40:return d=e.closest("ul").children("li"),c=d.length,d.eq((e.closest("li").index()+1)%c).children("a").trigger(k),!1;case 37:return e.closest("ol").children("li:lt("+e.closest("li[id^=cal-]").index()+")").children("a").last().trigger(k),!1;case 39:return e.closest("ol").children("li:gt("+e.closest("li[id^=cal-]").index()+")").children("a").first().trigger(k),!1;case 27:return e.closest("li[id^=cal-]").children(".cal-evt").trigger(k),!1}},u=function(a){a.dequeue().removeClass("wb-inv").addClass(l)},v=function(b){b.delay(100).queue(function(){a(this).removeClass(l).addClass("wb-inv").dequeue()})},w=function(a){a.removeClass("wb-inv").addClass(l)},x=function(a){setTimeout(function(){var b=a;0===b.find("a:focus").length&&b.removeClass(l).addClass("wb-inv")},5)},y=function(a){var b=a.type,c=a.data.details;switch(b){case"keydown":t(a);break;case"blur":x(c);break;case"focus":w(c)}},z=function(a){var b=a.type,c=a.data.details;switch(b){case"mouseover":u(c);break;case"mouseout":v(c)}},A=function(b,c,d,e,f){var g,h,i,j,k,l,m,n,o;for(d.each(function(b,c){a(c).css("z-index",31-b)}),g=0,h=f.length;g!==h;g+=1)i=new Date(f[g].date),i.getMonth()===c&&i.getFullYear()===b&&(j=a(d[i.getDate()-1]),k=j.children("div").html(),j.children("a").length<1?(j.empty(),m=a("<a href='#ev-"+j.attr("id")+"' class='cal-evt'>"+k+"</a>"),j.append(m),l=a("<ul class='wb-inv'></ul>"),m.on("keydown blur focus",{"details":l},y),j.on("mouseover mouseout",{"details":l},z).append(l)):l=j.find("ul.wb-inv"),n=a("<li><a tabindex='-1' href='"+f[g].href+"'>"+f[g].title+"</a></li>"),l.append(n),o=n.children("a"),o.on("keydown blur focus",{"details":l},y))},B=function(b,d,e){a("."+e+" li.cal-disp-onshow").addClass("wb-inv").has(":header[class*=filter-"+b+"-"+c.string.pad(parseInt(d,10)+1,2)+"]").removeClass("wb-inv")};m.on("timerpoke.wb "+j,g,function(){return n(a(this)),!0}),c.add(g)}(jQuery,window,wb),function(a,b,c,d){"use strict";var e,f,g=d.doc,h=function(b,g,h,j,k,l,o,p,q,r){var s,t,u,v,w,x,y,z,A,B=c.getElementById(g),C=a(B),D="#cal-"+g+"-cnt",E=d.date.fromDateISO;f||(e=d.i18n,f={"monthNames":e("mnths"),"prevMonth":e("prvMnth"),"nextMonth":e("nxtMnth"),"goToTitle":e("cal-goToTtl"),"goToYear":e("cal-goToYr"),"goToMonth":e("cal-goToMnth"),"goToLink":e("cal-goToLnk"),"goToBtn":e("cal-goToBtn"),"cancelBtn":e("cancel"),"dayNames":e("days"),"currDay":e("currDay")}),C.addClass("cal-cnt").attr("id",g),r&&C.attr({"aria-controls":q,"aria-labelledby":r}),"string"==typeof l?l=E(l):"object"==typeof l&&l.getFullYear()||(l=null),null===l&&(l=new Date,l.setFullYear(h-1,j,1)),"string"==typeof o?o=E(o):("object"!=typeof o||o.constructor!==Date)&&(o=new Date,o.setFullYear(h+1,j,1)),x=o.getFullYear(),y=o.getMonth(),z=l.getFullYear(),A=l.getMonth(),h>x||h===x&&j>y?(h=x,j=y):(z>h||h===z&&A>j)&&(h=z,j=A),s=a(D),0!==s.length?(s.find("#cal-"+g+"-wd, .cal-mnth, #cal-"+g+"-days").remove(),s=C.children("#cal-"+g+"-cnt")):(s=a("<table id='cal-"+g+"-cnt' class='cal-cnt'></table>"),C.append(s)),t=a("<div class='cal-hd'></div>"),t.append(k?i(g,h,j,l,o,z,x):"<div class='cal-mnth'>"+f.monthNames[j]+" "+h+"</div>"),u=s.prev(".cal-hd"),0===u.length?s.before(t):u.replaceWith(t),s.append(m(g)),v=n(g,h,j),w=v.find("td:not(.cal-empty)"),s.append(v),C.trigger("displayed.wb-cal",[h,j,w,p])},i=function(b,c,d,e,g,h,i){var k,m,n,o,p,q,r,s,t=f.monthNames,u=a("<div id='cal-"+b+"-mnthnav'></div>"),v="<button type='button' class='cal-",w=[["prvmnth",-1,f.prevMonth,"prepend"],["nxtmnth",1,f.nextMonth,"append"]];for(u.append(l(b,c,d,e,g)),s=0;2!==s;s+=1)n=w[s],o=n[0],p=d+n[1],0>p?(p=11,q=c-1):p>11?(p=0,q=c+1):q=c,r=0===s?q===h&&p<e.getMonth()||h>q:q===i&&p>g.getMonth()||q>i,k=n[2]+t[p]+" "+q,m=u.find(".cal-"+o),m=a(v+o+"' title='"+k+"'><span class='glyphicon glyphicon-arrow-"+("prvmnth"===n[0]?"left":"right")+"'></span><span class='wb-inv'>"+k+"</button>"),u[n[3]](m),m.toggleClass("active",!r),r?m.attr("disabled","disabled").off("click"):m.removeAttr("disabled").on("click",{"calID":b,"year":q,"month":p,"mindate":e,"maxdate":g},j);return u},j=function(b){b.preventDefault();var c=b.which,d=b.target,e=a(d),f=d.className,h=b.data,i=e.closest(".cal-cnt");return c&&1!==c?void 0:("undefined"!=typeof h&&g.trigger("create.wb-cal",[h.calID,h.year,h.month,!0,h.mindate,h.maxdate]),i.find(-1!==f.indexOf("wb-inv")?".cal-goto-lnk a":"."+f.match(/cal-[a-z]*mnth/i)).trigger("setfocus.wb"),!1)},k=function(a){var b,c,d=parseInt(this.value,10),e=a.data,g=e.minDate,h=e.maxDate,i=e.$monthField,j=0,k=11,l=f.monthNames;for(d===g.getFullYear()&&(j=g.getMonth()),d===h.getFullYear()&&(k=h.getMonth()+1),b=i.val(),c=i.length-1;-1!==c;c-=1)i[c].remove(c);for(c=j;c!==k;c+=1)i.append("<option value='"+c+"'"+(c===b?" selected='selected'":"")+">"+l[c]+"</option>")},l=function(b,c,d,e,g){var h,i,j,l,m,n,p,r,s,t=a("<div class='cal-goto'></div>"),u=a("<form id='cal-"+b+"-goto' role='form' style='display:none;' action=''></form>");for(u.on("submit",function(a){return a.preventDefault(),q(b,e,g),!1}),h=a("<div class='cal-goto-yr'></div>"),i=a("<select title='"+f.goToYear+"' id='cal-"+b+"-goto-year'></select>"),j=e.getFullYear(),l=g.getFullYear();l>=j;j+=1)i.append(a("<option value='"+j+"'"+(j===c?" selected='selected'":"")+">"+j+"</option>"));return m=a("<div class='cal-goto-mnth'></div>"),n=a("<select title='"+f.goToMonth+"' id='cal-"+b+"-goto-month'></select>"),m.append(n),h.append(i),i.on("change",{"minDate":e,"maxDate":g,"$monthField":n},k),i.trigger("change"),p=a("<div class='cal-goto-btn'><input type='submit' class='btn btn-primary' value='"+f.goToBtn+"' /></div>"),r=a("<div class='cal-goto-btn'><input type='button' class='btn btn-default' value='"+f.cancelBtn+"' /></div>"),r.on("click","input",function(c){var d=c.which;d&&1!==d||a("#"+b).trigger("hideGoToFrm.wb-cal")}),u.append(m).append(h).append("<span class='clearfix'></span>").append(p).append(r),s=a("<div id='cal-"+b+"-goto-lnk'><a href='javascript:;' role='button' aria-controls='cal-"+b+"-goto' class='cal-goto-lnk' aria-expanded='false'>"+f.monthNames[d]+" "+c+"</div></a></div>"),s.on("click","a",function(a){a.preventDefault();var c=a.which;c&&1!==c||o(b)}),t.append(s).append(u),t},m=function(b){var c,d,e,g="<thead id='cal-"+b+"-days' class='cal-wd' role='presentation'><tr>",h=f.dayNames;for(c=0;7>c;c+=1)e=h[c],d=c+1,g+="<th id='cal-"+b+"-wd"+d+"' class='cal-wd cal-wd"+d+(0===c||6===c?"we":"")+"' role='columnheader'><abbr title='"+e+"'>"+e.charAt(0)+"</abbr></th>";return a(g+"</tr></thead>")},n=function(b,d,e){var g,h,i,j,k,l,m,n,o,p,q="<tbody id='cal-"+b+"-days' class='cal-days'>",r=new Date,s=f.dayNames,t=f.monthNames,u=f.currDay,v="fr"===c.documentElement.lang,w=!1,x=0;for(r.setFullYear(d,e,1),g=r.getDay(),r.setFullYear(d,e+1,0),h=r.getDate()-1,r=new Date,k=r.getFullYear(),l=r.getMonth(),m=r.getDate(),i=1;7>i;i+=1){for(q+="<tr>",j=0;7>j;j+=1)n="cal-"+b+"-w"+i+"d"+(j+1),o=(0===j||6===j?"cal-we":"")+"cal-w"+i+"d"+(j+1),1===i&&g>j||x>h?q+="<td id='"+n+"' class='cal-empty "+o+"'>&#160;</td>":(x+=1,o+=" cal-index-"+x,p=x===m&&e===l&&d===k,q+="<td id='"+n+"' class='"+(p?"cal-currday ":"")+o+"'><div><time datetime='"+d+"-"+(9>e?"0":"")+(e+1)+"-"+(10>x?"0":"")+x+"'><span class='wb-inv'>"+s[j]+(v?" </span>"+x+"<span class='wb-inv'> "+t[e].toLowerCase()+" ":" "+t[e]+" </span>"+x+"<span class='wb-inv'> ")+d+(p?u:"")+"</span></time></div></td>",x>h&&(w=!0));if(q+="</tr>",w)break}return q+="</tbody></table>",a(q)},o=function(b){var c="#cal-"+b+"-goto",d=a(c),e=a("#"+b).find(c+"-lnk, .cal-prvmnth, .cal-nxtmnth");e.addClass("hide").attr("aria-hidden","true").filter("a").attr("aria-expanded","true"),d.stop().slideDown(0).queue(function(){a(this).find(":input:eq(0)").trigger("setfocus.wb")})},p=function(b){var c=b.target.id,d="#cal-"+c+"-goto",e=a(d),f=a("#"+c).find(d+"-lnk, .cal-prvmnth, .cal-nxtmnth");f.removeClass("hide").attr("aria-hidden","false").filter("a").attr("aria-expanded","false"),e.stop().slideUp(0)},q=function(b,c,d){var e=a("#"+b),f=e.find("#cal-"+b+"-goto"),h=parseInt(f.find(".cal-goto-mnth select option:selected").val(),10),i=parseInt(f.find(".cal-goto-yr select").val(),10);h<c.getMonth()&&i<=c.getFullYear()||h>d.getMonth()&&i>=d.getFullYear()||(g.trigger("create.wb-cal",[b,i,h,!0,c,d]),e.trigger("hideGoToFrm.wb-cal"),a("#cal-"+b+"-days a").eq(0).trigger("setfocus.wb"))},r=function(a,b,c,d,e,f,h){var i=h.getTime();i<e.getTime()?h=e:i>f.getTime()&&(h=f),(h.getMonth()!==d||h.getFullYear()!==c)&&g.trigger("create.wb-cal",[b,h.getFullYear(),h.getMonth(),!0,e,f,h.getDate()])};g.on("create.wb-cal",h),g.on("keydown",".cal-days a",function(b){var e,f,h,i,j=b.target,k=a(j),l=k.closest(".cal-cnt"),m=l.parent().closest(".cal-cnt"),n=m.attr("id"),o=m.attr("aria-controls"),p=b.which,q=d.date.fromDateISO,r=q(j.getElementsByTagName("time")[0].getAttribute("datetime")),s=r.getFullYear(),t=r.getMonth(),u=r.getDate(),v=l.find("td > a").get(),w=v.length;if(o?(e=c.getElementById(o),f=e.getAttribute("min"),h=e.getAttribute("max")):(f=m.data("minDate"),h=m.data("maxDate")),f=q(f?f:"1800-01-01"),h=q(h?h:"2100-01-01"),!b.altKey&&!b.metaKey&&p>31&&41>p){switch(p){case 32:return k.trigger("click"),!1;case 33:case 34:i=33===p?-1:1,b.ctrlKey?r.setYear(s+i):r.setMonth(t+i);break;case 35:r.setDate(w);break;case 36:r.setDate(1);break;case 37:r.setDate(u-1);break;case 38:r.setDate(u-7);break;case 39:r.setDate(u+1);break;case 40:r.setDate(u+7)}return s!==r.getFullYear()||t!==r.getMonth()?g.trigger("setFocus.wb-cal",[n,s,t,f,h,r]):u!==r.getDate()&&a(v[r.getDate()-1]).trigger("setfocus.wb"),!1}}),g.on("hideGoToFrm.wb-cal",".cal-cnt",p),g.on("setFocus.wb-cal",r)}(jQuery,window,document,wb),function(a,b,c,d){"use strict";var e,f,g="wb-charts",h="."+g,i=g+"-inited",j="wb-init"+h,k="pasiveparse.wb-tableparser.wb",l="parsecomplete.wb-tableparser.wb",m=d.doc,n=0,o=function(c){function e(a,b,c){var d,e;if(d=c[a],!d)return b;for(e in d)d.hasOwnProperty(e)&&(b[a][e]=d[e]);return b}function g(b,c,e){var f,g,h,i,j,k,l,m,n,o,p,q,r=a.extend(!0,{},b.defaults||b),s=a.extend(!0,{},b.defaults&&b.defaults.fn||{}),t=c.attr("class")||"";if(t.length)for(k=b.prefix||"",l=k.length,f=t.split(" "),g=0,h=f.length;g!==h;g+=1)i=f[g],j=i.length,l>=j||i.slice(0,l)!==k||(i=i.slice(l,j),m=b[i],m&&(m.base&&(r=a.extend(!0,r,b[m.base]),s=a.extend(!0,s,b[m.base].fn||{})),r=a.extend(!0,r,m),s=a.extend(!0,s,m.fn||{})));r=a.extend(!0,r,d.getData(c,e));for(n in s)if(s.hasOwnProperty(n)){for(o=n.split("/"),q=r,g=0,h=o.length-1;g!==h;g+=1)p=o.shift(),""!==p&&(q[p]||(q[p]={}),q=q[p]);p=o.shift(),q[p]=s[n]}return r}function h(a,b){var c,d,e,f,g,h=1;if(a){for(f=a.col[b],g=a.col[0],d=0,e=f.cell.length;d!==e;d+=1)if(c=f.cell[d],0===d||d>0&&g.cell[d-1].uid!==c.uid){if(c.rowgroup&&3===c.rowgroup.type)break;(1===c.type||7===c.type)&&0!==c.child.length&&(h*=j(c,1))}return h}}function i(b,c,d){var e,f,g,h=1,i=b[c].elem.cells;for(f=0,g=i.length;f!==g&&(e=a(i[f]).data().tblparser,!e.colgroup||3!==e.colgroup.type);f+=1)e.colpos>=d&&(1===e.type||7===e.type)&&0!==e.child.length&&(h=h*e.child.length*j(e,1));return h}function j(a,b){var c,d,e,f=a.child.length,g=1;if(0===f)return g;for(d=f*b,g*=d,c=0;c!==f;c+=1)e=a.child[c],0!==e.child.length&&(g*=j(e,d));return g}function k(a,b,c,d,e){var f,g,h,i=0;for(f=0,g=a.cell.length;f!==g;f+=1)if(h=a.cell[f],!(0!==f&&h.uid===a.cell[f-1].uid||e&&h.colpos<e)){if(L){if(h.rowgroup&&3===h.rowgroup.type)break}else if(h.colgroup&&3===h.colgroup.type)break;h.flotDelta=h.child>0&&d>b?c*h.child.length:c,(1===h.type||7===h.type)&&((!t||h.flotDelta<t)&&(t=h.flotDelta),h.flotValue=i,i+=c,h.child.length>0&&l(h,b,c,d))}}function l(a,b,c,d){var e,f,g,h,i=0;for(b+=1,i=a.flotValue,e=c/a.child.length,(!t||t>e)&&(t=e),f=0,g=a.child.length;f!==g;f+=1)h=a.child[f],h.flotDelta=d>b?e*h.child.length:e,h.flotValue=i,h.child.length>0&&l(h,b,e,d),i+=e}function m(a,b){var c,d,e,f,g,h,i,j;for(c=b-1;-1!==c;c-=1)for(d=0,f=a[c].cell.length;d!==f;d+=1)if(i=a[c].cell[d],!(i.flotDelta||d>0&&i.uid===a[c].cell[d-1].uid||1!==i.type&&7!==i.type)){for(h=0,e=0,g=i.child.length;e!==g;e+=1)j=i.child[e],h=j.flotDelta,i.flotValue||(i.flotValue=j.flotValue);i.flotDelta=h}}function n(b,c){var d,e,f,g=[];for(d=0,e=b.cell.length;d!==e;d+=1)f=b.cell[d],0!==d&&f.uid===b.cell[d-1].uid||1!==f.type&&7!==f.type||c&&f.colpos<c||g.push([f.flotValue,a(f.elem).text()]);return g}function o(a){return(!S.labelposition||S.labelposition&&S.labelposition>a.length?H.theadRowStack.length:S.labelposition)-1}function p(a){var b,c,d,e=0;return d=!L||L&&S.referencevalue===!1?a.colgrouphead.col.length:S.referencevalue,d-=1,c=h(a.colgrouphead,d),b=L?o(a.colgrouphead.col):a.colgrouphead.col.length-1,e=d,k(a.colgrouphead.col[d],e,c,d),m(a.colgrouphead.col,d),n(a.colgrouphead.col[b])}function q(a){var b,c,d,e,f,g=-1,h=0;if(a.theadRowStack){for(b=0,c=a.colgroup.length;b!==c;b+=1)if(2===a.colgroup[b].type){g=a.colgroup[b].start;break}return f=!L&&S.referencevalue===!1||L?a.theadRowStack.length:S.referencevalue,f-=1,e=i(a.theadRowStack,f,g),d=L?a.theadRowStack.length-1:o(a.theadRowStack),h=f,k(a.theadRowStack[f],h,e,f,g),m(a.theadRowStack,f),n(a.theadRowStack[d],g)}}function r(){var b=a("<details><summary>"+Y+f.tableMention+"</summary></details>");c.after(b),b.append(c)}function s(b){var d=a("<figure class='"+S.graphclass+"'><figcaption>"+Y+"</figcaption><div role='img' aria-label='"+X.text()+f.tableFollowing+"'"+(b?"style='height:"+S.height+"px; width:"+S.width+"px'":"")+"></div></figure>");return d.insertBefore(c).append(c),a("div:eq(0)",d)}var t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T=[],U=[],V=[],W=0,X=a("caption",c),Y=X.html(),Z=0,$={"flot":{"prefix":"wb-charts-","defaults":{"colors":["#8d201c","#EE8310","#2a7da6","#5a306b","#285228","#154055","#555555","#f6d200","#d73d38","#418541","#87aec9","#23447e","#999999"],"canvas":!0},"line":{},"area":{"lines":{"show":!0,"fill":!0}},"bar":{"bars":{"show":!0,"barWidth":1,"align":"center"}},"pie":{"series":{"pie":{"show":!0}},"fn":{"/series/pie/label/formatter":function(a,b){var c;
return S.decimal?(c=Math.round(b.percent*Math.pow(10,S.decimal)),c/=Math.pow(10,S.decimal)):c=Math.round(b.percent),S.nolegend&&(c=a+"<br/>"+c),c+"%"}}},"donut":{"base":"pie","series":{"pie":{"radius":1,"label":{"show":!0,"radius":1,"threshold":.08},"tilt":.5,"innerRadius":.45,"startAngle":1}},"grid":{"hoverable":!0}}},"series":{"prefix":"wb-charts-","defaults":{},"line":{},"area":{"lines":{"show":!0,"fill":!0}},"bar":{"bars":{"show":!0,"barWidth":1,"align":"center"}},"stacked":{"base":"bar"}},"charts":{"prefix":"wb-charts-","defaults":{"graphclass":"wb-graph","noencapsulation":!1,"labelposition":!1,"referencevalue":!1,"legendinline":!1,"nolegend":!1,"decimal":0,"width":c.width(),"height":c.height(),"reversettblparsing":!1,"fn":{"/getcellvalue":function(b){var c=a.trim(a(b).text()).replace(/\s/g,"");return[parseFloat(c.match(/[\+\-0-9]+[0-9,\. ]*/)),c.match(/[^\+\-\.\, 0-9]+[^\-\+0-9]*/)]}}},"donut":{"decimal":1},"thousandcomma":{"fn":{"/getcellvalue":function(b){var c=a.trim(a(b).text()).replace(/,/g,"");return[parseFloat(c.match(/[\+\-0-9]+[0-9,\. ]*/)),c.match(/[^\+\-\.\, 0-9]+[^\-\+0-9]*/)]}}},"thousanddot":{"fn":{"/getcellvalue":function(b){var c=a.trim(a(b).text()).replace(/\./g,"");return[parseFloat(c.match(/[\+\-0-9]+[0-9,\. ]*/)),c.match(/[^\+\-\.\, 0-9]+[^\-\+0-9]*/)]}}}}};if(b.chartsGraphOpts||(void 0!==b.wet_boew_charts&&(e("flot",$,b.wet_boew_charts),e("series",$,b.wet_boew_charts),e("charts",$,b.wet_boew_charts)),b.chartsGraphOpts=$),$=b.chartsGraphOpts,R=g($.flot,c,"flot"),S=g($.charts,c,"wet-boew"),S.width=250|S.width,S.height=250|S.height,H=c.data().tblparser,L=S.reversettblparsing,K=H.lstrowgroup[0],R.series&&R.series.pie){for(w=s(!1),x="<div style='height:"+S.height+"px; width:"+S.width+"px'></div>",L?(B=K,I=(1===H.colgroup[0].type?H.colgroup[1].col.length:H.colgroup[0].col.length)-1):(B=1===H.colgroup[0].type?H.colgroup[1]:H.colgroup[0],I=K.row.length-1),I;I>=0;I-=1){for(M=L?B.row:B.col,D=0,E=M.length;D!==E;D+=1){for(V=[],Z=0,F=0,G=M[D].cell.length;F!==G;F+=1)if(N=M[D].cell[F],!L||1!==N.col.type){if(O=void 0,0!==F&&(O=M[D].cell[F-1]),!L&&(2!==N.row.type||O&&O.rowgroup.uid!==N.rowgroup.uid)||L&&2!==N.col.type||O&&1!==O.col.type&&O.col.groupstruct.uid!==N.col.groupstruct.uid)break;C=L?N.col.header:N.row.header,z=S.getcellvalue(L?M[D].datacell[I].elem:M[D].cell[I].elem),V.push([Z,"object"==typeof z?z[0]:z]),Z+=C[C.length-1].flotDelta;break}Q={},N=L?M[D].datacell[I]:M[D].cell[I],C=L?N.row.header:N.col.header,C=C[C.length-1],Q=g($.series,a(C.elem),"flot"),Q.data=V,Q.label=L?a(M[D].header[M[D].header.length-1].elem).text():a(M[D].dataheader[M[D].dataheader.length-1].elem).text(),T.push(Q)}1!==K.row.length||K.row[0].header[0].elem.innerHTML!==Y&&0!==K.row[0].header.length?(C=K.row[I].header,y="<figure><figcaption>"+C[C.length-1].elem.innerHTML+"</figcaption>"+x+"</figure>",w.append(a(y)),v=a("div:last()",w)):(v=w,v.css({"height":S.height,"width":S.width})),a.plot(v,T,R),S.legendinline||a(".legend",v).appendTo(w),T=[]}return S.nolegend&&a(".legend",w).remove(),S.legendinline||(a(".legend > div",w).remove(),a(".legend > table",w).removeAttr("style").addClass("font-small"),a(".legend",v).appendTo(u)),a(".pieLabel").removeAttr("id"),S.noencapsulation||r(),void 0}for(L?(B=1===H.colgroup[0].type?H.colgroup[1]:H.colgroup[0],I=K.row.length-1,U=p(H)):(B=K,I=(1===H.colgroup[0].type?H.colgroup[1].col.length:H.colgroup[0].col.length)-1,U=q(H)),R.xaxis={"ticks":U},M=L?B.col:B.row,D=0,E=M.length;D!==E;D+=1)P=M[D].header[M[D].header.length-1],J=g($.series,a(P.elem),"flot"),(J.bars||R.bars&&!J.lines)&&(W+=1,J.bars||(J.bars={"show":!0,"barWidth":.9}),J.bars.order||(J.bars.order=W)),P.chartOption=J;for(D=0,E=M.length;D!==E;D+=1){for(V=[],A=0,Z=0,P=M[D],J=P.header[P.header.length-1].chartOption,F=0,G=P.cell.length;F!==G&&(N=P.cell[F],!(A>1&&2!==N.col.groupstruct.type));F+=1)(!L&&2===N.col.groupstruct.type||L&&2===N.row.rowgroup.type)&&(C=L?N.row.header:N.col.header,z=S.getcellvalue(N.elem),V.push([Z,"object"==typeof z?z[0]:z]),Z+=C[C.length-1].flotDelta,A+=1);J.data=V,J.label=a(P.header[P.header.length-1].elem).text(),J.bars&&(J.bars.barWidth=J.bars.barWidth*(1/W)),T.push(J)}R.bars&&(R.bars.barWidth=R.bars.barWidth*(1/W)),v=s(!0),v.css("width","100%"),a.plot(v,T,R),S.legendinline||(a(".legend > div",v).remove(),a(".legend > table",v).removeAttr("style").addClass("font-small"),v.css("height","auto")),S.nolegend&&a(".legend",v).remove(),S.noencapsulation||r(),a("canvas:eq(1)",v).css("position","static"),a("canvas:eq(0)",v).css("width","100%")},p=function(b){var c=b.id,j=d.getMode()+".js",l=["site!deps/jquery.flot"+j,"site!deps/jquery.flot.pie"+j,"site!deps/jquery.flot.canvas"+j,"site!deps/jquery.flot.orderBars"+j,"site!deps/tableparser"+j];-1===b.className.indexOf(i)&&(d.remove(h),b.className+=" "+i,c||(c=g+"-id-"+n,n+=1,b.id=c),f||(e=d.i18n,f={"tableMention":e("hyphen")+e("tbl-txt"),"tableFollowing":e("hyphen")+e("tbl-dtls")}),Modernizr.load({"load":l,"complete":function(){a("#"+c).trigger(k)}}))};m.on("timerpoke.wb "+j+" "+l,h,function(b){var c=b.type,d=b.target;if(b.currentTarget!==d)return!0;switch(c){case"timerpoke":p(d);break;case"parsecomplete":o(a(d))}return!0}),d.add(h)}(jQuery,window,document,wb),function(a,b,c){"use strict";var d="wb-ctrycnt",e="[data-ctrycnt]",f="wb-init."+d,g=d+"-inited",h=c.doc,i=function(b){if(!b.hasClass(g)){c.remove(e),b.addClass(g);var d=b.data("ctrycnt");c.remove(e),a.when(j()).then(function(a){""!==a&&(d=d.replace("{country}",a.toLowerCase()),b.removeAttr("data-ctrycnt"),b.load(d))})}},j=function(){var b=a.Deferred(),c=localStorage.getItem("countryCode");return null===c?a.ajax({"url":"http://freegeoip.net/json/","dataType":"jsonp","cache":!0,"jsonp":"callback","success":function(a){if(a){c=a.country_code;try{localStorage.setItem("countryCode",c)}catch(d){}}b.resolve(c)},"error":function(){b.reject("")}}):b.resolve(c),b.promise()};h.on("timerpoke.wb "+f,e,function(b){var c=b.target;return b.currentTarget===c&&i(a(c)),!0}),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d="wb-ajax",e="[data-ajax-after], [data-ajax-append], [data-ajax-before], [data-ajax-prepend], [data-ajax-replace]",f="-inited",g="wb-init."+d,h=c.doc,i=function(a,b){var g=a.data("ajax-"+b),i=d+b+f;a.hasClass(i)||(c.remove(e),a.addClass(i),h.trigger({"type":"ajax-fetch.wb","element":a,"fetch":g}))};h.on("timerpoke.wb "+g+" ajax-fetched.wb",e,function(b){var c,d,e,f,g=b.target,h=b.type,j=["before","replace","after","append","prepend"],k=j.length;if(b.currentTarget===g){for(c=a(g),e=0;e!==k&&(d=j[e],null===this.getAttribute("data-ajax-"+d));e+=1);switch(h){case"timerpoke":case"wb-init":i(c,d);break;default:f=b.pointer.html(),c.removeAttr("data-ajax-"+d),"replace"===d?c.html(f):c[d](f),c.trigger("ajax-"+d+"-loaded.wb")}}return!0}),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d="wb-inview",e="."+d,f=d+"-inited",g="wb-init"+e,h="scroll"+e,i=a(e),j=c.doc,k=c.win,l=function(a){a.hasClass(f)||(c.remove(e),a.addClass(f),setTimeout(function(){m(a)},1))},m=function(b){var c,d,e=b.outerWidth(),f=b.outerHeight(),g=k.scrollTop(),h=g+k.height(),i=k.scrollLeft()+e,j=b.offset().left,l=j+e,m=b.offset().top,n=m+f,o=b.attr("data-inviewstate"),p=m>h||g>n||j>i||i>l,q=h>n&&m>g?"all":p?"none":"partial";q!==o&&(d=p||(b.hasClass("show-none")?!1:"partial"===q),b.attr("data-inviewstate",q),c=a("#"+b.attr("data-inview")),c.hasClass("user-closed")||(c.hasClass("wb-overlay")?(o||c.addClass("outside-off"),c.trigger({"type":d?"open":"close","namespace":"wb-overlay","noFocus":!0})):c.attr("aria-hidden",!d).toggleClass("in",!d).toggleClass("out",d)))};j.on("timerpoke.wb "+g+" "+h,e,function(b){var c,d=b.target,e=b.type;if(b.currentTarget===d)switch(c=a(d),e){case"timerpoke":case"wb-init":l(c);break;case"scroll":m(c)}return!0}),k.on("scroll scrollstop",function(){i.trigger(h)}),j.on("txt-rsz.wb win-rsz-width.wb win-rsz-height.wb",function(){i.trigger(h)}),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d="wb-pic",e="[data-pic]",f=d+"-inited",g="wb-init."+d,h="picfill."+d,i=c.doc,j=function(a){a.hasClass(f)||(c.remove(e),a.addClass(f),a.trigger(h))},k=function(a){var b,c,d,e,f=[],g=a.getElementsByTagName("img")[0],h=a.getElementsByTagName("span");for(b=0,c=h.length;b!==c;b+=1)e=h[b].getAttribute("data-media"),(!e||Modernizr.mq(e))&&f.push(h[b]);0!==f.length?(d=f.pop(),g||(g=i[0].createElement("img"),g.alt=a.getAttribute("data-alt")),g.src=d.getAttribute("data-src"),d.appendChild(g)):g&&g.parentNode.removeChild(g)};i.on("timerpoke.wb "+g+" "+h,e,function(b){var c=b.target,d=b.type;if(b.currentTarget===c)switch(d){case"timerpoke":case"wb-init":j(a(c));break;case"picfill":k(c)}}),i.on("txt-rsz.wb win-rsz-width.wb win-rsz-height.wb",function(){a(e).trigger(h)}),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d=".wb-eqht",e=c.doc,f="timerpoke.wb",g="vertical-align",h="top",i="min-height",j="0",k=":",l=";",m=" ?[^;]+",n=new RegExp(g+k+" ?"+m+l+"?","i"),o=new RegExp(i+k+" ?"+m+l+"?","i"),p=function(a){a.currentTarget===a.target&&(c.remove(d),e.off(f,d),q())},q=function(){var b,c,e,f,m,p,q,u,v=a(d),w=[],x=-1,y=-1,z=-1,A=-1;for(q=v.length-1;-1!==q;q-=1){for(b=v.eq(q),c=b.children(),e=r(b),u=c.length-1;-1!==u;u-=1)f=c[u],m=f.style.cssText.toLowerCase(),-1!==m.indexOf(g)?m=m.replace(n,g+k+h+l):m+=" "+g+k+h+l,-1!==m.indexOf(i)?m=m.replace(o,i+k+j+l):m+=" "+i+k+j+l,f.style.cssText=m,c.eq(u).data(i,j);for(b=s(e),u=c.length-1;-1!==u;u-=1)f=c[u],y=f.offsetTop,z=f.offsetHeight,y!==x?(t(w,A),x=y,A=z):A=z>A?z:A,w.push(c.eq(u));for(t(w,A),e=r(b),u=c.length-1;-1!==u;u-=1)p=c.eq(u).data(i),p&&(c[u].style.minHeight=p+"px");b=s(e)}},r=function(a){var b=a.prev(),c=a.next(),d=a.parent();return b.length?a.data({"anchor":b,"anchorRel":"prev"}):c.length?a.data({"anchor":c,"anchorRel":"next"}):d.length&&a.data({"anchor":d,"anchorRel":"parent"}),a.detach()},s=function(a){var b=a.data("anchor"),c=a.data("anchorRel");switch(c){case"prev":b.after(a);break;case"next":b.before(a);break;case"parent":b.append(a)}return a},t=function(a,b){var c=a.length-1;if(c)for(;-1!==c;c-=1)a[c].data(i,b);a.length=0};e.on(f,d,p),e.on("txt-rsz.wb win-rsz-width.wb win-rsz-height.wb tables-draw.wb",q),c.add(d)}(jQuery,window,wb),function(a,b,c){"use strict";var d="wb-favicon",e="link[rel='shortcut icon']",f="wb-init."+d,g="mobile."+d,h="icon."+d,i=c.doc,j={"filename":"favicon-mobile.png","path":null,"rel":"apple-touch-icon","sizes":"57x57 72x72 114x114 144x144 150x150"},k=function(b){var d=a.extend({},j,b.data());c.remove(e),b.trigger(g,d)},l=function(b,c,e){var f,g=a("link[rel^='apple']"),h=0!==g.length;h||(g=a("<link rel='"+e.rel+"' sizes='"+e.sizes+"' class='"+d+"'>")),g.hasClass(d)&&(f=null!==e.path?e.path:n(b.getAttribute("href")),g.attr("href",f+e.filename),h||b.parentNode.insertBefore(g[0],b))},m=function(a,b,c){var d=null!==c.path?c.path:n(a.getAttribute("href"));a.setAttribute("href",d+c.filename)},n=function(a){return a.substring(0,a.lastIndexOf("/")+1)};i.on("timerpoke.wb "+f+" "+g+" "+h,e,function(b,c){var d=b.target;if(b.currentTarget===d)switch(b.type){case"timerpoke":case"wb-init":k(a(d));break;case"mobile":l(d,b,c);break;case"icon":m(d,b,c)}return!0}),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d="wb-feeds",e="."+d,f=d+"-inited",g="wb-init"+e,h=c.doc,i=function(b){var d,g,h,i,m,n=b.target,o=[],p=[],q=function(a){var b,c;for(a=a.responseData.feed.entries,c=a.length,b=0;b!==c;b+=1)o.push(a[b]);return i||l(o,g,d),i-=1};if(b.currentTarget===n&&-1===n.className.indexOf(f)){for(c.remove(e),n.className+=" "+f,d=a(n).find(".feeds-cont"),g=j(n),h=n.getElementsByTagName("a"),i=h.length-1,m=i;m>=0;)a.ajax({"url":k(h[m].href,g),"dataType":"json","timeout":1e3}).done(q),p.push(m-=1);a.extend({},p)}},j=function(a){var b=a.className.match(/\blimit-\d+/);return b?Number(b[0].replace(/limit-/i,"")):0},k=function(a,b){var c="http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q="+encodeURIComponent(decodeURIComponent(a));return b>4&&(c+="&num="+b),c},l=function(a,b,d){var e,f,g,h=b>0&&b<a.length?b:a.length,i="",j=c.date.toDateISO,k=c.date.compare;for(f=a.sort(function(a,b){return k(b.publishedDate,a.publishedDate)}),e=0;e!==h;e+=1)g=f[e],i+="<li><a href='"+g.link+"'>"+g.title+"</a>"+(""!==g.publishedDate?" <span class='feeds-date'>["+j(g.publishedDate,!0)+"]</span>":"")+"</li>";return d.empty().append(i)};h.on("timerpoke.wb "+g,e,i),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d="wb-fnote",e="."+d,f=d+"-inited",g="wb-init"+e,h="setfocus.wb",i=c.doc,j=function(b){var d,g,h,i,j,k,l,m,n,o=b.target;if(b.currentTarget===o&&-1===o.className.indexOf(f)){for(c.remove(e),o.className+=" "+f,d=a(o),g=o.getElementsByTagName("dd"),h=o.getElementsByTagName("dt"),c.remove(e),j=g.length,i=0;i!==j;i+=1)k=g[i],l=h[i],m=k.id+"-dt",k.setAttribute("tabindex","-1"),k.setAttribute("aria-labelledby",m),l.id=m;n=d.find("dd p.fn-rtn a span span").remove()}};i.on("timerpoke.wb "+g,e,j),i.on("click vclick","main :not("+e+") sup a.fn-lnk",function(a){var b,d,e=a.target,f=a.which;return f&&1!==f?void 0:(b="#"+c.jqEscape(e.getAttribute("href").substring(1)),d=i.find(b),d.find("p.fn-rtn a").attr("href","#"+e.parentNode.id),d.trigger(h),!1)}),i.on("click vclick",e+" dd p.fn-rtn a",function(a){var b,d=a.which;return d&&1!==d?void 0:(b="#"+c.jqEscape(a.target.getAttribute("href").substring(1)),i.find(b+" a").trigger(h),!1)}),c.add(e)}(jQuery,window,wb),function(a,b,c,d){"use strict";var e,f,g="wb-frmvld",h="."+g,i=g+"-inited",j="wb-init"+h,k="setfocus.wb",l=d.doc,m=0,n=function(b){var c,j=b.target,n=j.id;b.currentTarget===j&&-1===j.className.indexOf(i)&&(d.remove(h),j.className+=" "+i,n||(n=g+"-id-"+m,m+=1,j.id=n),c=d.getMode()+".js",f||(e=d.i18n,f={"colon":e("colon"),"hyphen":e("hyphen"),"error":e("err"),"errorFound":e("err-fnd"),"errorsFound":e("errs-fnd"),"formNotSubmitted":e("frm-nosubmit")}),Modernizr.load({"both":["site!deps/jquery.validate"+c,"site!deps/additional-methods"+c],"complete":function(){var b,c,e,g=a("#"+n),i=g.find("form"),j=i.get(0),m=i.attr("id"),o=j.getElementsByTagName("label"),p=o.length,q=i.find("input, select, textarea"),r=q.filter("input"),s=r.filter("[pattern]"),t=!1,u=i.find("[required]").attr("aria-required","true"),v="errors-"+(m?m:"default");for(g.append("<div class='arialive wb-inv' aria-live='polite' aria-relevant='all'></div>"),c=p,b=0;b!==c;b+=1)o[b].innerHTML+=" ";for(c=s.length,b=0;b!==c;b+=1)s.eq(b).removeAttr("pattern");if(d.ieVersion>0&&d.ieVersion<9){for(c=u.length,u.removeAttr("required"),b=0;b!==c;b+=1)u[b].setAttribute("data-rule-required","true");r.filter("[type=date]").each(function(){var b=a(this),c=b.wrap("<div/>").parent(),d=a(c.html().replace("type=date","type=text"));c.replaceWith(d)}),q=i.find("input, select, textarea")}e=i.validate({"meta":"validate","focusInvalid":!1,"errorElement":"strong","errorPlacement":function(a,b){var c,d,e=b.attr("type");return a.data("element-id",b.attr("id")),!e||(e=e.toLowerCase(),"radio"!==e&&"checkbox"!==e||(c=b.closest("fieldset"),0===c.length||(d=c.find("legend").first(),0===d.length||1===c.find("input[name="+b.attr("name")+"]"))))?(a.appendTo(i.find("label[for="+b.attr("id")+"]")),void 0):(a.appendTo(d),void 0)},"showErrors":function(b){this.defaultShowErrors();var c,d,e,g,h,j,l,m,n,o,p=f,q=i.find("strong.error").filter(":not(:hidden)"),r=i.find("input.error, select.error, textarea.error"),s=i.find("#"+v),u="<span class='prefix'>"+p.error+"&#160;",w=p.colon+" </span>",x=p.hyphen,y=i.parent().find(".arialive")[0];if(i.find("[aria-invalid=true]").removeAttr("aria-invalid"),0!==q.length){for(0===s.length?s=a("<div id='"+v+"' class='errCnt' tabindex='-1'/>").prependTo(i):s.empty(),c="<p>"+p.formNotSubmitted+q.length+(1!==q.length?p.errorsFound:p.errorFound)+"</p><ul>",r.attr("aria-invalid","true"),g=q.length,e=0;e!==g;e+=1)h=q.eq(e),j=u+(e+1)+w,l=h.closest("label").find(".field-name"),0===l.length&&(m=h.closest("fieldset"),0!==m.length&&(l=m.find("legend .field-name"))),h.find("span.prefix").detach(),c+="<li><a href='#"+h.data("element-id")+"'>"+j+(0!==l.length?l.html()+x:"")+h[0].innerHTML+"</a></li>",h.prepend(j);if(c+="</ul>",s.append(c),t)s.trigger(k);else{e=0;for(d in b)if(b.hasOwnProperty(d)){e+=1;break}if(0!==e){for(g=q.length,e=0;e!==g;e+=1)if(n=q[e].parentNode,n.getAttribute("for")===d){o=n.innerHTML,o!==y.innerHTML&&(y.innerHTML=o);break}}else 0!==y.innerHTML.length&&(y.innerHTML="")}t=!1}else 0!==y.innerHTML.length&&(y.innerHTML=""),s.detach()},"invalidHandler":function(){t=!0}}),l.on("click vclick touchstart",h+" input[type=reset]",function(a){var b,c,d=a.which;d&&1!==d||(e.resetForm(),b=i.find("#"+v),b.length>0&&b.empty(),i.find("[aria-invalid=true]").removeAttr("aria-invalid"),c=i.parent().find(".arialive")[0],0!==c.innerHTML.length&&(c.innerHTML=""))}),i.trigger("formLanguages.wb")}}))};l.on("timerpoke.wb "+j,h,n),l.on("click vclick",h+" .errCnt a",function(c){var d,e,f,g,h,i=c.which;return i&&1!==i?void 0:(d=this.href.substring(this.href.indexOf("#")),e=a(d),f=e.prev(),g=0===f.length?e.closest("fieldset").find("legend"):[],h=0!==f.length?f.offset().top:0!==g.length?g.offset().top:-1,e.trigger(k),-1!==h&&b.scroll(0,h),!1)}),d.add(h)}(jQuery,window,document,wb),function(a,b,c,d){"use strict";var e,f,g="wb-lbx",h="."+g,i=g+"-inited",j="wb-init"+h,k=!1,l=d.doc,m=0,n=function(b){var j,l=b.target,n=l.id;b.currentTarget===l&&-1===l.className.indexOf(i)&&(d.remove(h),l.className+=" "+i,n||(n=g+"-id-"+m,m+=1,l.id=n),j=d.getMode()+".js",f||(e=d.i18n,f={"tClose":e("overlay-close")+e("space")+e("esc-key"),"tLoading":e("load"),"gallery":{"tPrev":e("prv-l"),"tNext":e("nxt-r"),"tCounter":e("lb-curr")},"image":{"tError":e("lb-img-err")+' (<a href="url%">)'},"ajax":{"tError":e("lb-xhr-err")+' (<a href="url%">)'}}),Modernizr.load({"load":"site!deps/jquery.magnific-popup"+j,"complete":function(){var b,e=c.getElementById(n),g=a(e),h={};k||(a.extend(!0,a.magnificPopup.defaults,f),k=!0),h.callbacks={"open":function(){var a,b,c,d=this.currItem,e=this.contentContainer,f=this.wrap.find(".mfp-close, .mfp-arrow"),g=f.length;for(a=0;a!==g;a+=1)b=f[a],b.innerHTML+="<span class='wb-inv'> "+b.title+"</span>";"image"===d.type?c=e.find(".mfp-bottom-bar").attr("id","lbx-title"):e.attr("role","document")},"change":function(){var a,b,d,e,f,g,h,i=this.currItem,j=this.contentContainer;"image"===i.type?(a=i.el,d=a.find("img"),e=i.img.attr("alt",d.attr("alt")),b=j.find(".mfp-bottom-bar"),f=d.attr("aria-describedby"),f&&e.attr("aria-describedby",f),f=d.attr("longdesc"),f&&e.attr("longdesc",f),g=a.attr("data-title"),g&&(h=c.getElementById(g),null!==h&&b.find(".mfp-title").html(h.innerHTML))):j.find(".modal-title, h1").first().attr("id","lbx-title")}},"a"!==e.nodeName.toLowerCase()?(h.delegate="a",b=e.getElementsByTagName("a")[0],-1!==e.className.indexOf("-gal")&&(h.gallery={"enabled":!0})):b=e,h.type="#"===b.getAttribute("href").charAt(0)?"inline":-1!==b.className.indexOf("lbx-iframe")?"iframe":0===b.getElementsByTagName("img").length?"ajax":"image",-1!==e.className.indexOf("lbx-modal")&&(h.modal=!0),g.magnificPopup(a.extend(!0,h,d.getData(g,"wet-boew")))}}))};l.on("timerpoke.wb "+j,h,n),l.on("keydown",".mfp-wrap",function(b){var c,d,e,f;return k&&9===b.which&&(b.preventDefault(),c=a(this),d=c.find(":focusable"),f=d.length,e=d.index(b.target)+(b.shiftKey?-1:1),-1===e?e=f-1:e===f&&(e=0),d.eq(e).trigger("setfocus.wb")),!0}),a(c).on("click",".popup-modal-dismiss",function(b){b.preventDefault(),a.magnificPopup.close()}),d.add(h)}(jQuery,window,document,wb),function(a,b,c,d){"use strict";var e,f,g,h="wb-menu",i="."+h,j=h+"-inited",k="wb-init"+i,l=c.getElementById("wb-bc"),m="navcurr.wb",n="setfocus.wb",o=d.doc,p=500,q=0,r=function(a){a.hasClass(j)||(d.remove(i),a.addClass(j),a.attr("id")||a.attr("id",h+"-"+q),q+=1,f||(e=d.i18n,f={"menu":e("menu")}),a.data("ajax-fetch")?o.trigger({"type":"ajax-fetch.wb","element":a,"fetch":a.data("ajax-fetch")}):u(a,a))},s=function(a){var b,c,d,e=a.length;for(d=0;d!==e;d+=1)b=a.eq(d),c=b.siblings(".sm"),b.attr({"aria-posinset":d+1,"aria-setsize":e,"role":"menuitem"}),0!==c.length&&(b.attr("aria-haspopup","true"),c.attr({"aria-expanded":"false","aria-hidden":"true"}),s(c.find(":discoverable")))},t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p="<nav role='navigation'",q=" typeof='SiteNavigationElement'",r="</nav>",s="<li><details>",t="</details></li>",u="<ul class='list-unstyled ",v="role='menuitem' aria-setsize='",w="' aria-posinset='",x="' tabindex='-1' ",y="<summary class='mb-item' "+v,z="</summary>",A="";for(m=a.length,j=0;j!==m;j+=1){for(c=a[j],b="",d=c[0],n=d.length,k=0;k!==n;k+=1)if(e=d[k],h=e.getAttribute("href"),g=e.parentNode.getElementsByTagName("li"),o=g.length,0===o||h&&"#"!==h.charAt(0))f=e.parentNode,i="li"===f.nodeName.toLowerCase()?f.innerHTML:"<a href='"+f.getElementsByTagName("a")[0].href+"'>"+e.innerHTML+"</a>",b+="<li class='no-sect'>"+i.replace(/(<a\s)/,"$1 class='mb-item' "+v+n+w+(k+1)+x)+"</li>";else{for(b+=s+y+n+w+(k+1)+"' aria-haspopup='true'>"+e.innerHTML+z+u+"mb-sm' role='menu' aria-expanded='false' aria-hidden='true'>",l=0;l!==o;l+=1)b+="<li>"+g[l].innerHTML.replace(/(<a\s)/,"$1 "+v+o+w+(l+1)+x)+"</li>";b+="</ul>"+t}A+=p+q+" id='"+c[1]+"' class='"+c[1]+" wb-menu'><h3>"+c[2]+"</h3>"+u+"mb-menu' role='menu'>"+b+"</ul>"+r}return A.replace(/list-group-item/gi,"")+"</div>"},u=function(b,d){var e,g,h,i,j=d.find(".menu"),k=j.find("> li > a"),n=b.data("trgt"),o=a("#wb-sec"),p=a("#wb-info"),q=a("#wb-lng"),r=c.getElementById("wb-srch"),u="",v=c.getElementById(n),w=a(v),x=[];null!==r&&(u+="<section class='srch-pnl'>"+r.innerHTML.replace(/h2>/i,"h3>").replace(/(for|id)="([^"]+)"/gi,"$1='$2-imprt'")+"</section>"),0!==q.length&&(u+="<section class='lng-ofr'><h3>"+q.children("h2").html()+"</h3><ul class='list-inline'>"+q.find("li:not(.curr)").html().replace(/(<a\s.*<\/a>?)/,"<li>$1</li>")+"</ul></section>"),(0!==o.length||0!==j.length||0!==p.length)&&(0!==o.length&&(x.push([o.find("> ul > li > *:first-child").get(),"sec-pnl",o.find("h2").html()]),0===o.find(".wb-navcurr").length&&o.trigger(m,l)),0!==j.length&&x.push([k.get(),"sm-pnl",d.find("h2").html()]),0!==p.length&&(x.push([p.find("h3"),"info-pnl",p.find("h2").html()]),0===p.find(".wb-navcurr").length&&p.trigger(m,l)),u+=t(x)),v.innerHTML="<header class='modal-header'><div class='modal-title'>"+f.menu+"</div></header><div class='modal-body'>"+u+"</div>",v.className+=" wb-overlay modal-content overlay-def wb-panel-r",w.trigger("wb-init.wb-overlay").find("summary").trigger("wb-init.wb-details").attr("tabindex","-1"),w.find(".mb-menu > li:first-child").find(".mb-item").attr("tabindex","0"),d.find(":discoverable").attr("tabindex","-1"),0!==k.length&&(k[0].setAttribute("tabindex","0"),k.filter("[href^=#]").append("<span class='expicon'></span>"),s(k)),b.html(d.html()),setTimeout(function(){for(b.trigger(m,l),w.find("#sm-pnl").trigger(m,l),e=w.find(".wb-navcurr"),h=e.length,i=0;i!==h;i+=1)g=e.eq(i),g.hasClass(".mb-item")||(g=g.closest("details").children("summary").addClass("wb-navcurr")),"true"===g.attr("aria-haspopup")&&g.trigger("click").parent().prop("open","open")},1)},v=function(a,b,c){var d=a.length,e=a.index(b)+c;e=e===d?0:-1===e?d-1:e,a.eq(e).trigger(n)},w=function(a,b){a.removeClass("sm-open").children(".open").removeClass("open").attr({"aria-hidden":"true","aria-expanded":"false"}),b&&a.removeClass("active")},x=function(a,b){var c=b.children("a");w(a.find(".active"),!0),"true"===c.attr("aria-haspopup")&&b.addClass("active sm-open").children(".sm").addClass("open").attr({"aria-hidden":"false","aria-expanded":"true"})},y=function(b,c){var d,e,f=c.length,g=String.fromCharCode(b);for(e=0;e!==f;e+=1)if(d=c[e],d.innerHTML.charAt(0)===g)return a(d).trigger(n),!0;return!1};o.on("timerpoke.wb "+k+" ajax-fetched.wb",i,function(b){var c=b.target,d=b.type,e=a(c);switch(d){case"ajax-fetched":return b.currentTarget===c&&u(e,b.pointer),!1;case"timerpoke":case"wb-init":b.currentTarget===c&&r(e)}return!0}),o.on("mouseleave",i+" .menu",function(b){clearTimeout(g),g=setTimeout(function(){w(a(b.currentTarget).find(".active"),!0)},p)}),o.on("touchstart click",i+" .item[aria-haspopup=true]",function(b){var c,d,e="touchstart"===b.type;(e||1===b.which)&&(b.preventDefault(),c=a(this),d=c.parent(),d.hasClass("sm-open")?e&&w(d,!0):c.trigger("focusin"))}),o.on("click",i+" [role=menu] [aria-haspopup=true]",function(b){var d,e,f=b.currentTarget,g=f.parentNode,h=g.getElementsByTagName("ul")[0],i="false"===h.getAttribute("aria-hidden");i||(a(g).closest("[role^='menu']").find("[aria-hidden=false]").parent().find("[aria-haspopup=true]").not(f).trigger("click"),e=c.getElementById("mb-pnl"),d=f.offsetTop,a.contains(e,f)&&d<e.scrollTop&&(e.scrollTop=d)),h.setAttribute("aria-expanded",!i),h.setAttribute("aria-hidden",i)}),o.on("click touchstart",function(b){var c;("touchstart"===b.type||1===b.which)&&(c=a(i+" .sm-open"),0!==c.length&&0===a(b.target).closest(i).length&&w(c,!0))}),o.on("mouseover focusin",i+" .item",function(b){var c=a(b.currentTarget),d=c.parent(),e=d.closest(i);clearTimeout(g),"focusin"===b.type?x(e,d):g=setTimeout(function(){x(e,d)},p)}),o.on("keydown",i+" [role=menuitem]",function(b){var d,e,f,g,h,j,k,l,m,o=b.currentTarget,p=b.which,q=a(o),r="true"===q.attr("aria-haspopup"),s=q.parent().closest("[role^='menu']"),t="menubar"===s.attr("role");9===p?w(a(i+" .active"),!0):t?37===p||39===p?(b.preventDefault(),v(s.find("> li > a"),q,37===p?-1:1)):!r||13!==p&&38!==p&&40!==p?27===p?(b.preventDefault(),w(s.closest(i).find(".active"),!1)):p>64&&91>p&&(b.preventDefault(),y(p,q.parent().find("> ul > li > a").get())):(b.preventDefault(),f=q.parent(),g=f.find(".sm"),g.hasClass("open")||x(s.closest(i),f),g.find("a:first").trigger(n)):(j="> a, > details > summary",38===p||40===p?(b.preventDefault(),v(s.children("li").find(j),q,38===p?-1:1)):!r||13!==p&&39!==p?27===p||37===p||39===p?(f=s.parent(),e=f.closest("[role^='menu']"),(37===p||39===p)&&b.preventDefault(),"menubar"===e.attr("role")?(d=f.children("[href=#"+s.attr("id")+"]"),27===p?(b.preventDefault(),d.trigger(n),setTimeout(function(){w(d.parent(),!1)},1)):"menubar"===e.attr("role")&&v(e.find("> li > a"),d,37===p?-1:1)):39!==p&&(g=0!==e.length?s:q,0!==e.length?(b.preventDefault(),s.closest("li").find(j).trigger("click").trigger("setfocus.wb")):"false"===q.parent().children("ul").attr("aria-hidden")&&(b.preventDefault(),q.trigger("click").trigger("setfocus.wb")))):p>64&&91>p&&(b.preventDefault(),f=q.closest("li"),h=y(p,f.nextAll().find(j).get()),h||(h=y(p,f.prevAll().find(j).get()))):(f=q.parent(),39===p&&b.preventDefault(),o.nodeName.toLowerCase("summary")&&(k=!!f.attr("open"),k||(a(parent).closest("[role^='menu']").find("[aria-hidden=false]").parent().find("[aria-haspopup=true]").not(o).trigger("click"),m=c.getElementById("mb-pnl"),l=o.offsetTop,a.contains(m,o)&&l<m.scrollTop&&(m.scrollTop=l)),(!k&&39===p||k&&13===p)&&q.trigger("click"),f.children("ul").attr({"aria-expanded":"true","aria-hidden":"false"}).find("[role=menuitem]:first").trigger("setfocus.wb"))))}),o.on("mediumview.wb largeview.wb xlargeview.wb",function(){var b=c.getElementById("mb-pnl");b&&"false"===b.getAttribute("aria-hidden")&&a(b).trigger("close.wb-overlay")}),d.add(i)}(jQuery,window,document,wb),function(a,b,c,d){"use strict";var e,f,g="wb-mltmd",h="."+g,i=g+"-inited",j="wb-init"+h,k=0,l=!1,m="ccloaded"+h,n="ccloadfail"+h,o="ccvischange"+h,p="renderui"+h,q="inited"+h,r="fallback"+h,s="youtube"+h,t="resize"+h,u="cc_on",v=c.doc,w=c.win,x=function(b){var d=b.target;b.currentTarget===d&&-1===d.className.indexOf(i)&&(c.remove(h),d.className+=" "+i,f||(e=c.i18n,f={"rewind":e("rew"),"ff":e("ffwd"),"play":e("play"),"pause":e("pause"),"cc_on":e("cc","on"),"cc_off":e("cc","off"),"cc_error":e("cc-err"),"mute_on":e("mute","on"),"mute_off":e("mute","off"),"duration":e("dur"),"position":e("pos")}),l||(l=!0,v.trigger({"type":"ajax-fetch.wb","element":a(h),"fetch":c.getPath("/assets")+"/mediacontrols.html"})))},y=function(a){var b,c,d,e=2,f="";for(d=function(a,b){return new Array(Math.max(b-String(a).length+1,0)).join(0)+a},a=Math.floor(a);e>=0;)b=Math.pow(60,e),c=Math.floor(a/b),""!==f&&(f+=":"),f+=d(c,2),a-=b*c,e-=1;return f},z=function(a){var b,c,e,f,g;if(a!==d){if("s"===a.charAt(a.length-1))return parseFloat(a.substring(0,a.length-1));for(c=a.split(":").reverse(),g=0,b=0,f=c.length;f>b;b+=1)e=0===b?parseFloat(c[b]):parseInt(c[b],10),g+=e*Math.pow(60,b);return g}return-1},A=function(b,c){var e=a(b),f=e.data("properties");return c!==d?[e,f,f.player]:[e,f]},B=function(){var a="{{",b="}}",c="[a-z0-9_$][\\.a-z0-9_]*",e=new RegExp(a+"\\s*("+c+")\\s*"+b,"gi");return function(a,b){return a.replace(e,function(a,c){for(var e=c.split("."),f=e.length,g=b,h=0;f>h;h+=1){if(g=g[e[h]],g===d)throw"tim: '"+e[h]+"' not found in "+a;if(h===f-1)return g}})}}(),C=function(b){var c,e,f,g,h,i=[],j=".wb-tmtxt",k=b.find(j),l=k.length;for(c=0;c!==l;c+=1)e=a(k[c]),g=-1,h=-1,e.attr("data-begin")!==d?(g=z(e.attr("data-begin")),h=e.attr("data-end")!==d?z(e.attr("data-end")):z(e.attr("data-dur"))+g):e.attr("data")!==d&&(f=e.attr("data").replace(/(begin|dur|end)/g,'"$1"').replace(/'/g,'"'),f=a.parseJSON(f),g=z(f.begin),h=f.end!==d?z(f.end):z(f.dur)+g),e=e.clone(),e.find(j).detach(),i[i.length]={"text":e.html(),"begin":g,"end":h};return i},D=function(b){var c,e,f,g,h=[],i="[begin]",j=b.find(i),k=j.length;for(c=0;c!==k;c+=1)e=a(j[c]),f=z(e.attr("begin")),g=e.attr("end")!==d?z(e.attr("end")):z(e.attr("dur"))+f,e=e.clone(),e.find(i).detach(),h[h.length]={"text":e.html(),"begin":f,"end":g};return h},E=function(b,c){a.ajax({"url":c,"dataType":"html","dataFilter":function(a){return a.replace(/<img|object [^>]*>/g,"")},"success":function(c){b.trigger({"type":m,"captions":-1!==c.indexOf("<html")?C(a(c)):D(a(c))})},"error":function(a,c,d){b.trigger({"type":n,"error":d})}})},F=function(a,b){a.trigger({"type":m,"captions":C(b)})},G=function(b,c,d){var e,f,g=d.length;for(b.html("&nbsp;"),f=0;g>f;f+=1)e=d[f],c>=e.begin&&c<=e.end&&b.html(a("<div>"+e.text+"</div>"))},H=function(b,c){var d,e;switch(b){case"play":try{this.object.play()}catch(f){this.object.doPlay()}break;case"pause":try{this.object.pause()}catch(f){this.object.doPause()}break;case"getCaptionsVisible":return a(this).hasClass(u);case"setCaptionsVisible":d=a(this),c?d.addClass(u):d.removeClass(u),d.trigger(o);break;case"setPreviousTime":this.object.previousTime=c;break;case"getBuffering":return this.object.buffering||!1;case"setBuffering":this.object.buffering=c;break;case"getPreviousTime":return this.object.previousTime;case"setPreviousTime":this.object.previousTime=c;break;default:switch(e=b.charAt(3).toLowerCase()+b.substr(4),b.substr(0,3)){case"get":return"function"!=typeof this.object[e]?this.object[e]:this.object[e]();case"set":"function"!=typeof this.object[e]?this.object[e]=c:this.object[b](c)}}},I=function(b,c){var d,e=a(this.object.a);switch(b){case"play":return this.object.playVideo();case"pause":return this.object.pauseVideo();case"getPaused":return d=this.object.getPlayerState(),-1===d||0===d||2===d||5===d;case"getPlayed":return this.object.getPlayerState()>-1;case"getEnded":return 0===this.object.getPlayerState();case"getDuration":return this.object.getDuration();case"getCurrentTime":return this.object.getCurrentTime();case"setCurrentTime":return this.object.seekTo(c,!0);case"getMuted":return this.object.isMuted();case"setMuted":c?this.object.mute():this.object.unMute(),setTimeout(function(){e.trigger("volumechange")},50);break;case"getVolume":return this.object.getVolume()/100;case"setVolume":this.object.setVolume(100*c),setTimeout(function(){e.trigger("volumechange")},50);break;case"getCaptionsVisible":return a(this).hasClass(u);case"setCaptionsVisible":c?(a(this).addClass(u),this.object.getOptions().length>0&&this.object.setOption("captions","track",this.object.getOption("captions","tracklist")[0])):(a(this).removeClass(u),this.object.getOptions().length>0&&this.object.setOption("captions","track",{})),e.trigger("ccvischange")}},J=function(b){var c=b.target.a,d=a(b.target.a),e=function(){d.trigger("timeupdate")};switch(b.data){case null:d.trigger("canplay");
break;case-1:b.target.unMute(),d.trigger("durationchange");break;case 0:d.trigger("ended"),c.timeline=clearInterval(c.timeline);break;case 1:d.trigger("canplay"),d.trigger("play"),c.timeline=setInterval(e,250);break;case 2:d.trigger("pause"),c.timeline=clearInterval(c.timeline);break;case 3:c.timeline=clearInterval(c.timeline)}},K=function(){a(h+" object, "+h+" iframe").trigger(t)};v.on("timerpoke.wb "+j,h,x),v.on("ajax-fetched.wb",h,function(b){var c=a(this),d=b.pointer.html();c.data("template",d),c.trigger({"type":q})}),v.on(q,h,function(){var e,g=a(this),i=g.children("audio, video").eq(0),j=i.children("track[kind='captions']").attr("src")||d,l=g.attr("id")||"wb-mm-"+k++,m=i.attr("id")||l+"-md",n=i.is("video")?"video":"audio",o="video"===n?i.attr("width")||i.width():0,p="video"===n?i.attr("height")||i.height():0,q=a.extend({"media":i,"captions":j,"id":l,"mId":m,"type":n,"height":p,"width":o},f),t=i.get(0);return g.attr("id")||g.attr("id",l),i.attr("id")===d&&i.attr("id",m),g.data("properties",q),i.find("[type='video/youtube']").length>0?(e=c.getUrlParts(g.find("[type='video/youtube']").attr("src")),g.data("youtube",e.params.v),void 0===b.onYouTubeIframeAPIReady&&(b.onYouTubeIframeAPIReady=function(){g.trigger(s)}),Modernizr.load({"load":"https://www.youtube.com/iframe_api"})):(null===t.error&&""!==t.currentSrc&&t.currentSrc!==d?g.trigger(n+h):g.trigger(r),void 0)}),v.on(r,h,function(){var a=A(this),b=a[0],d=a[1],e=d.media,f=d.type,g=e.find("video"===f?"[type='video/mp4']":"[type='audio/mp3']").attr("src"),h=e.attr("poster"),i="id="+d.mId,j=d.width,k=d.height>0?d.height:Math.round(d.width/1.777),l=c.getPath("/assets")+"/multimedia.swf?"+(new Date).getTime();i+="&amp;media="+encodeURI(c.getUrlParts(g).absolute),"video"===f&&(d.poster="<img src='"+h+"' class='img-responsive' height='"+k+"' width='"+j+"' alt='"+e.attr("title")+"'/>",i+="&amp;height="+k+"&amp;width="+j+"&amp;posterimg="+encodeURI(c.getUrlParts(h).absolute)),b.find("video, audio").replaceWith("<object id='"+d.mId+"' width='"+j+"' height='"+k+"' class='"+f+"' type='application/x-shockwave-flash' data='"+l+"' tabindex='-1' play='' pause=''><param name='movie' value='"+l+"'/><param name='flashvars' value='"+i+"'/><param name='allowScriptAccess' value='always'/><param name='bgcolor' value='#000000'/><param name='wmode' value='opaque'/>"+d.poster+"</object>"),b.data("properties",d),w.on("resize",K),b.trigger(p,f)}),v.on(s,h,function(){var a,b=A(this),d=b[0],e=b[1],f=e.media,g=f.get(0).id;f.replaceWith("<div id="+g+"/>"),a=new YT.Player(g,{"videoId":d.data("youtube"),"playerVars":{"autoplay":0,"controls":1,"origin":c.pageUrlParts.host,"modestbranding":1,"rel":0,"showinfo":0,"html5":1,"cc_load_policy":1},"events":{"onReady":function(a){K(),J(a)},"onStateChange":J,"onApiChange":function(){var a=d.get(0);a.player("setCaptionsVisible",a.player("getCaptionsVisible"))}}}),d.addClass("youtube"),d.find("iframe").attr("tabindex",-1),e.poster="<img src='"+f.attr("poster")+"' class='img-responsive' height='"+e.height+"' width='"+e.width+"' alt='"+e.media.attr("title")+"'/>",e.ytPlayer=a,d.data("properties",e),w.on("resize",K),d.trigger(p,"youtube")}),v.on("video.wb-mltmd",h,function(){var a=A(this),b=a[0],c=a[1];c.poster="<img src='"+c.media.attr("poster")+"' class='img-responsive' height='"+c.height+"' width='"+c.width+"' alt='"+c.media.attr("title")+"'/>",b.data("properties",c),b.trigger(p,"video")}),v.on("audio.wb-mltmd",h,function(){var a=A(this),b=a[0],c=a[1];c.poster="",b.data("properties",c),b.trigger(p,"audio")}),v.on(p,h,function(e,f){var g,h,i=A(this),j=i[0],k=i[1],l=c.getUrlParts(k.captions),p=c.getUrlParts(b.location.href),q=j.find("video, audio, iframe, object");return q.after(B(j.data("template"),k)),h=q.next().find(".wb-mm-ovrly").after(q),"video"!==f&&h.remove(),g=a("#"+k.mId),k.player=g.is("object")?g.children(":first-child"):g,k.player.on("durationchange play pause ended volumechange timeupdate "+m+" "+n+" "+o+" waiting canplay progress",function(a){j.trigger(a)}),this.object=k.ytPlayer||g.get(0),this.player=k.ytPlayer?I:H,j.data("properties",k),isNaN(this.player("getDuration"))||"youtube"===f||k.player.trigger("durationchange"),j.find("progress").trigger("wb-init.wb-progress"),k.captions===d?1:(p.absolute.replace(p.hash,"")!==l.absolute.replace(l.hash,"")?E(g,l.absolute):F(g,a(l.hash)),void 0)}),v.on("click",h,function(b){var c=a(b.target),d=c.attr("class")||"";return 2===b.which||3===b.which?!0:(d.match(/playpause|-play|-pause|wb-mm-ovrly/)||c.is("object")?this.player("getPaused")?this.player("play"):this.player("pause"):d.match(/\bcc\b|-subtitles/)?this.player("setCaptionsVisible",!this.player("getCaptionsVisible")):d.match(/\bmute\b|-volume-(up|off)/)?this.player("setMuted",!this.player("getMuted")):c.is("progress")||c.hasClass("progress")||c.hasClass("progress-bar")?this.player("setCurrentTime",this.player("getDuration")*((b.pageX-c.offset().left)/c.width())):d.match(/\brewind\b|-backward/)?this.player("setCurrentTime",this.player("getCurrentTime")-.05*this.player("getDuration")):d.match(/\bfastforward\b|-forward/)&&this.player("setCurrentTime",this.player("getCurrentTime")+.05*this.player("getDuration")),void 0)}),v.on("keydown",h,function(a){var b=a.currentTarget,c=a.which,d=".wb-mm-ctrls",e=A(b),f=e[0],g=0;switch(c){case 32:f.find(d+" .playpause").trigger("click");break;case 37:f.find(d+" .rewind").trigger("click");break;case 39:f.find(d+" .fastforward").trigger("click");break;case 38:g=Math.round(10*b.player("getVolume"))/10+.1,b.player("setVolume",1>g?g:1);break;case 40:g=Math.round(10*b.player("getVolume"))/10-.1,b.player("setVolume",g>0?g:0);break;default:return!0}return!1}),v.on("keyup",h,function(a){return 32===a.which?!1:void 0}),v.on("durationchange play pause ended volumechange timeupdate "+m+" "+n+" "+o+" waiting canplay",h,function(b,e){var g,i,j,k,l,m,n,o=b.currentTarget,p=b.type,q=a(o),r="<span class='wb-inv'>",s="</span>";switch(p){case"play":case"pause":case"ended":k="play"===p,i=q.find(".playpause"),j=i.data("state-"+(k?"off":"on")),k?(q.find(".wb-mm-ovrly").addClass("playing"),q.find(".progress").addClass("active")):"ended"===p&&(this.loading=clearTimeout(this.loading),q.find(".wb-mm-ovrly").removeClass("playing")),i.attr("title",j).children("span").toggleClass("glyphicon-play",!k).toggleClass("glyphicon-pause",k).html(r+j+s);break;case"volumechange":l=o.player("getMuted"),i=q.find(".mute"),j=i.data("state-"+(l?"off":"on")),i.attr("title",j).children("span").toggleClass("glyphicon-volume-up",!l).toggleClass("glyphicon-volume-off",l).html(r+j+s);break;case"timeupdate":g=o.player("getCurrentTime"),q.find("progress").attr("value",Math.round(g/o.player("getDuration")*1e3)/10).trigger("wb-update.wb-progress"),q.find(".wb-mm-tmln-crrnt span:nth-child(2)").text(y(g)),q.hasClass(u)&&a.data(o,"captions")!==d&&G(q.find(".wb-mm-cc"),g,a.data(o,"captions"));break;case"durationchange":q.find(".wb-mm-tmln-ttl span:nth-child(2)").text(y(o.player("getDuration"))),m=A(this),n=c.pageUrlParts.params[m[1].id],n&&(n=z(n),o.player("setCurrentTime",n));break;case"ccloaded":a.data(o,"captions",b.captions);break;case"ccloadfail":q.find(".wb-mm-cc").append("<p class='errmsg'><span>"+f.cc_error+"</span></p>").end().find(".cc").attr("disabled","");break;case"ccvischange":i=q.find(".cc"),j=i.data("state-"+(o.player("getCaptionsVisible")?"off":"on")),i.attr("title",j).children("span").html(r+j+s);break;case"waiting":e||v.off("progress",h),this.loading=setTimeout(function(){q.find(".display").addClass("waiting")},500);break;case"canplay":this.loading=clearTimeout(this.loading),q.find(".display").removeClass("waiting")}}),v.on("progress",h,function(b){var c=b.currentTarget,d=a(c);this.player("getPaused")===!1&&this.player("getCurrentTime")===this.player("getPreviousTime")?c.player("getBuffering")===!1&&(c.player("setBuffering",!0),d.trigger("waiting",!0)):c.player("getBuffering")===!0&&(c.player("setBuffering",!1),d.trigger("canplay",!0)),c.player("setPreviousTime",c.player("getCurrentTime"))}),v.on(t,h,function(b){var c=a(b.target),d=c.attr("height"),e=c.attr("width"),f=Math.round(c.width()*d/e);c.is("iframe")&&(f+=30),c.attr("style","height:"+f+"px")}),c.add(h)}(jQuery,window,wb),function(a,b,c){"use strict";var d,e,f=c.doc,g="wb-navcurr",h=function(c,f){var h,i,j,k,l,m,n,o,p,q,r,s,t=c.target,u=t.getElementsByTagName("a"),v=[],w=[],x=b.location,y=x.hostname+x.pathname.replace(/^([^\/])/,"/$1"),z=x.search,A=!1,B=u.length;for(h=0;h!==B;h+=1)if(j=u[h],k=j.getAttribute("href"),null!==k&&0!==k.length&&"#"!==k.charAt(0)){if(l=j.hostname+j.pathname.replace(/^([^\/])/,"/$1"),m=j.search,n=m.length,y.slice(-l.length)===l&&(0===n||z.slice(-n)===m)){A=!0;break}v.push(j),w.push(l)}if(!A&&f){if(p)p=d,q=e;else{for(p=[],q=[],o=(f.jquery?f[0]:f).getElementsByTagName("a"),B=o.length,h=0;h!==B;h+=1)j=o[h],k=j.getAttribute("href"),0!==k.length&&"#"!==k.charAt(0)&&(p.push(j),q.push(j.hostname+j.pathname.replace(/^([^\/])/,"/$1")));d=p,e=q}for(B=v.length,i=p.length-1;-1!==i;i-=1){for(s=q[i],r=p[i].search,h=0;h!==B;h+=1)if(j=v[h],l=w[h],m=j.search,n=m.length,s.slice(-l.length)===l&&(0===n||r.slice(-n)===m)){A=!0;break}if(A)break}}A&&(j.className+=" "+g,-1!==t.className.indexOf("wb-menu")&&-1===j.className.indexOf("item")&&a(j).closest(".sm").parent().children("a").addClass(g))};f.on("navcurr.wb",h)}(jQuery,window,wb),function(a,b,c,d){"use strict";var e,f,g="wb-overlay",h="."+g,i=g+"-inited",j="wb-init"+h,k="overlay-close",l="overlay-lnk",m="outside-off",n={},o="setfocus.wb",p=d.doc,q=function(b){var c,g=b.target;b.currentTarget===g&&-1===g.className.indexOf(i)&&(d.remove(h),g.className+=" "+i,f||(e=d.i18n,f={"close":e(k)+e("space")+e("esc-key")}),c="<button class='mfp-close "+k+"' title='"+f.close+"'>\xd7<span class='wb-inv'> "+f.close+"</span></button>",g.appendChild(a(c)[0]),g.setAttribute("aria-hidden","true"))},r=function(b,c){var d=a("#"+b);d.addClass("open").attr("aria-hidden","false"),c||d.trigger(o)},s=function(b,c,d){var e=a("#"+b),f=n[b];e.removeClass("open").attr("aria-hidden","true"),d&&e.addClass("user-closed"),!c&&f&&(a(f).trigger(o),delete n[b])};p.on("timerpoke.wb "+j+" keydown open"+h+" close"+h,h,function(b){var d,e,f,g,h=b.type,i=b.which,j=b.currentTarget.id;switch(h){case"timerpoke":case"wb-init":q(b);break;case"open":r(j,b.noFocus);break;case"close":s(j,b.noFocus);break;default:switch(d=c.getElementById(j),i){case 9:-1===d.className.indexOf(m)&&(e=a(d).find(":focusable:not([tabindex='-1'])"),g=e.length,f=e.index(b.target)+(b.shiftKey?-1:1),(-1===f||f===g)&&(b.preventDefault(),e.eq(-1===f?g-1:0).trigger(o)));break;case 27:b.isDefaultPrevented()||s(j,!1,!0)}}}),p.on("click vclick","."+k,function(b){var c=b.which;c&&1!==c||s(a(b.currentTarget).closest(h).attr("id"),!1,!0)}),p.on("click vclick","."+l,function(a){var b=a.which,c=a.currentTarget,d=c.hash.substring(1);b&&1!==b||(a.preventDefault(),setTimeout(function(){n[d]=c,r(d)},1))}),p.on("click vclick touchstart focusin","body",function(b){var d,e,f=b.target,g=b.which;if(!g||1===g)for(d in n)e=c.getElementById(d),null===e||"false"!==e.getAttribute("aria-hidden")||f.id===d||-1!==e.className.indexOf(m)||a.contains(e,f)||s(d)}),d.add(h)}(jQuery,window,document,wb),function(a,b,c){"use strict";var d="wb-prettify",e="."+d,f=d+"-inited",g="wb-init"+e,h="prettyprint"+e,i=c.doc,j={"linenums":!1,"allpre":!1},k=function(b){var d,g,k,l,m,n,o=b.target,p=c.getMode()+".js",q=["site!deps/prettify"+p];if(b.currentTarget===o&&-1===o.className.indexOf(f)){for(c.remove(e),o.className+=" "+f,d=a(o),g=o.className.split(" "),k=a.extend({},j,d.data()),l=0,m=g.length;l!==m;l+=1)0===g[l].indexOf("lang-")&&q.push("site!deps/"+g[l]+p);k.allpre=k.allpre||d.hasClass("all-pre"),k.linenums=k.linenums||d.hasClass("linenums"),(k.allpre||k.linenums)&&(n=i.find("pre"),k.allpre&&n.addClass("prettyprint"),k.linenums&&n.filter(".prettyprint").addClass("linenums")),Modernizr.load({"load":q,"complete":function(){i.trigger(h)}})}},l=function(){"function"==typeof b.prettyPrint&&b.prettyPrint()};i.on("timerpoke.wb "+g,e,k).on(h,l),c.add(e)}(jQuery,window,wb),function(a,b,c,d){"use strict";var e,f,g,h="wb-rsz",i="#"+h,j=d.doc,k=[],l=["txt-rsz.wb","win-rsz-width.wb","win-rsz-height.wb"],m={"xxsmallview":0,"xsmallview":480,"smallview":768,"mediumview":992,"largeview":1200,"xlargeview":1600},n=!1,o=function(){var a=c.createElement("span");a.innerHTML="&#160;",a.setAttribute("id",h),c.body.appendChild(a),f=a,k=[a.offsetHeight,b.innerWidth||j.width(),b.innerHeight||j.height()],e=l.join(" "),p(k[1]),n=!0},p=function(a){var b,c;for(b in m){if(a<m[b])break;c=b}c!==g&&(d.html.removeClass(g).addClass(c),g=c,j.trigger(c+".wb"))},q=function(){if(n){var a,c=[f.offsetHeight,b.innerWidth||j.width(),b.innerHeight||j.height()],d=c.length;for(a=0;a!==d;a+=1)c[a]!==k[a]&&(j.trigger(l[a],c),p(c[1]));return k=c,void 0}};j.on("timerpoke.wb",i,q),o(),d.add(i)}(jQuery,window,document,wb),function(a,b,c,d){"use strict";var e,f,g,h,i,j=d.doc,k="wb-sessto",l="."+k,m=k+"-confirm",n=k+"-inited",o="wb-init"+l,p="reset"+l,q="keepalive"+l,r="inactivity"+l,s={"inactivity":12e5,"reactionTime":18e4,"sessionalive":12e5,"refreshCallbackUrl":null,"logouturl":"./","refreshOnClick":!0,"refreshLimit":2e5},t=function(b){var c,e,f=b.target;b.currentTarget===f&&-1===f.className.indexOf(n)&&(d.remove(l),f.className+=" "+n,c=a(f),e=a.extend({},s,c.data("wet-boew")),c.data("wet-boew",e),i||(h=d.i18n,i={"buttonContinue":h("st-btn-cont"),"buttonEnd":h("st-btn-end"),"buttonSignin":h("tmpl-signin"),"timeoutBegin":h("st-to-msg-bgn"),"timeoutEnd":h("st-to-msg-end"),"timeoutTitle":h("st-msgbx-ttl"),"timeoutAlready":h("st-alrdy-to-msg")}),v(),w(c,e),c.trigger(p,e))},u=function(a,b,c,d){clearTimeout(a.data(b)),a.data(b,setTimeout(function(){a.trigger(b,d)},D(c)))},v=function(){var a,b=c.createDocumentFragment(),d=c.createElement("div");for(d.innerHTML="<a class='wb-lbx lbx-modal mfp-hide' href='#"+k+"-modal'></a><section id='"+k+"-modal' class='mfp-hide modal-dialog modal-content overlay-def'><header class='modal-header'><h2 class='modal-title'>"+i.timeoutTitle+"</h2></header><div class='modal-body'></div><div class='modal-footer'></div></section>";a=d.firstChild;)b.appendChild(a);c.body.appendChild(b),e=j.find("#"+k+"-modal"),f=e.prev().trigger("wb-init.wb-lbx")},w=function(a,b){b.refreshOnClick&&j.on("click",function(){var c=a.data("lastActivity"),d=C();(!c||d-c>b.refreshLimit)&&a.trigger(p,b).trigger(q,b),a.data("lastActivity",d)})},x=function(b,c){var d=a(b.target);null!==c.refreshCallbackUrl&&a.post(c.refreshCallbackUrl,function(b){b&&"true"===b.replace(/\s/g,"")?d.trigger(p,c):(clearTimeout(d.data(r)),clearTimeout(d.data(q)),B({"body":"<p>"+i.timeoutAlready+"</p>","buttons":a("<button type='button' class='"+m+" btn btn-primary'>"+i.buttonSignin+"</button>").data("logouturl",c.logouturl)}))})},y=function(b,c){var d,f,h=E(c.reactionTime),j=i.timeoutBegin.replace("#min#","<span class='min'>"+h.minutes+"</span>").replace("#sec#","<span class='sec'>"+h.seconds+"</span>"),k="<button type='button' class='",l="</button>";d=a(k+m+" btn btn-primary'>"+i.buttonContinue+l).data(c).data("start",C()),f=a(k+m+" btn btn-default'>"+i.buttonEnd+l).data("logouturl",c.logouturl),B({"body":"<p>"+j+"<br />"+i.timeoutEnd+"</p>","buttons":[d,f],"open":function(){var a=e.find(".min"),b=e.find(".sec");g=setInterval(function(){F(a,b)&&(clearInterval(g),e.find("p").text(i.timeoutAlready),d.text(i.buttonSignin),f.hide())},1e3)}})},z=function(b,c){var d=a(b.target);u(d,r,c.inactivity,c),null!==c.refreshCallbackUrl&&u(d,q,c.sessionalive,c)},A=function(c){var d=c.target,e=a(d),f=e.data();c.preventDefault(),a.magnificPopup.close(),clearInterval(g),void 0!==f.start&&C()-f.start<=f.reactionTime?a(l).trigger(p,f).trigger(q,f):b.location.href=f.logouturl},B=function(a){e=e.detach(),e.find(".modal-body").html(a.body),e.find(".modal-footer").empty().append(a.buttons),e=e.insertAfter(f),f.magnificPopup("open"),a.open&&a.open()},C=function(){return(new Date).getTime()},D=function(b){var c,d,e,f={"ms":1,"cs":10,"ds":100,"s":1e3,"das":1e4,"hs":1e5,"ks":1e6};return null==b?null:(c=/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/.exec(a.trim(b.toString())),c[2]?(d=parseFloat(c[1]),e=f[c[2]]||1,d*e):b)},E=function(a){var b={"minutes":"","seconds":""};return null!=a&&(b.minutes=parseInt(a/6e4%60,10),b.seconds=parseInt(a/1e3%60,10)),b},F=function(a,b){var c=parseInt(a.text(),10),d=parseInt(b.text(),10);return d>0?d-=1:c>0&&(c-=1,d=59),a.text(c),b.text(d),0===c&&0===d};j.on("timerpoke.wb "+o+" "+q+" "+r+" "+p,l,function(a,b){var c=a.type;switch(c){case"timerpoke":case"wb-init":t(a);break;case"keepalive":x(a,b);break;case"inactivity":y(a,b);break;case"reset":z(a,b)}}),j.on("click","."+m,A),d.add(l)}(jQuery,window,document,wb),function(a,b,c,d){"use strict";var e,f,g="wb-share",h="."+g,i=g+"-inited",j="wb-init"+h,k="shr-lnk",l=0,m=d.doc,n={"hdLvl":"h2","type":"page","custType":"","url":d.pageUrlParts.href,"title":c.title||m.find("h1:first").text(),"pnlId":"","img":"","desc":"","sites":{"bitly":{"name":"bitly","url":"http://bitly.com/?url={u}"},"blogger":{"name":"Blogger","url":"http://www.blogger.com/blog_this.pyra?t=&amp;u={u}&amp;n={t}"},"delicious":{"name":"Delicious","url":"http://delicious.com/post?url={u}&amp;title={t}"},"digg":{"name":"Digg","url":"http://digg.com/submit?phase=2&amp;url={u}&amp;title={t}"},"diigo":{"name":"Diigo","url":"http://www.diigo.com/post?url={u}&amp;title={t}"},"dzone":{"name":"DZone","url":"http://www.dzone.com/link/add.html?url={u}&amp;title={t}"},"facebook":{"name":"Facebook","url":"http://www.facebook.com/sharer.php?u={u}&amp;t={t}"},"googleplus":{"name":"Google+","url":"https://plus.google.com/share?url={u}&amp;hl="+c.documentElement.lang},"linkedin":{"name":"LinkedIn\xae","url":"http://www.linkedin.com/shareArticle?mini=true&amp;url={u}&amp;title={t}&amp;ro=false&amp;summary={d}&amp;source="},"myspace":{"name":"MySpace","url":"http://www.myspace.com/Modules/PostTo/Pages/?u={u}&amp;t={t}"},"netvibes":{"name":"Netvibes","url":"http://www.netvibes.com/share?url={u}&amp;title={t}"},"pinterest":{"name":"Pinterest","url":"http://www.pinterest.com/pin/create/button/?url={u}&amp;media={i}&amp;description={d}"},"reddit":{"name":"reddit","url":"http://reddit.com/submit?url={u}&amp;title={t}"},"stumbleupon":{"name":"StumbleUpon","url":"http://www.stumbleupon.com/submit?url={u}&amp;title={t}"},"technorati":{"name":"Technorati","url":"http://www.technorati.com/faves?add={u}"},"tumblr":{"name":"tumblr","url":"http://www.tumblr.com/share?v=3&amp;u={u}&amp;t={t}"},"twitter":{"name":"Twitter","url":"http://twitter.com/home?status={t}%20{u}"}}},o=function(b){var c,g,m,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C=b.target;if(b.currentTarget===C&&-1===C.className.indexOf(i)){if(d.remove(h),C.className+=" "+i,f||(e=d.i18n,f={"shareText":e("shr-txt"),"page":e("shr-pg"),"video":e("shr-vid"),"disclaimer":e("shr-disc")}),r=a(C),m=a.extend(!0,n,d.getData(r,"wet-boew")),c=m.sites,g=m.hdLvl,z=f.shareText+(0!==m.custType.length?m.custType:f[m.type]),B=m.pnlId,A="shr-pg"+(0!==B.length?"-"+B:l),s=encodeURIComponent(m.url),t=encodeURIComponent(m.title).replace(/\'|&#39;|&apos;/,"%27"),u=encodeURIComponent(m.img),v=encodeURIComponent(m.desc).replace(/\'|&#39;|&apos;/,"%27"),-1===C.className.indexOf("link-only")){o="<section id='"+A+"' class='shr-pg wb-overlay modal-content overlay-def wb-panel-r'><header class='modal-header'><"+g+" class='modal-title'>"+z+"</"+g+"></header><ul class='colcount-xs-2'>";for(w in c)x=c[w],y=x.url.replace(/\{u\}/,s).replace(/\{t\}/,t).replace(/\{i\}/,u).replace(/\{d\}/,v),o+="<li><a href='"+y+"' class='"+k+" "+w+" btn btn-default' target='_blank'>"+x.name+"</a></li>";o+="</ul><div class='clearfix'></div><p class='col-sm-12'>"+f.disclaimer+"</p></section>",l+=1}p="<a href='#"+A+"' aria-controls='"+A+"' class='shr-opn overlay-lnk'><span class='glyphicon glyphicon-share'></span> "+z+"</a>",q=a((o?o:"")+p),r.append(q),q.trigger(j).trigger("wb-init.wb-overlay")}};m.on("timerpoke.wb "+j,h,o),m.on("click vclick","."+k,function(b){var c=b.which;c&&1!==c||a(b.target).trigger("close.wb-overlay")}),d.add(h)}(jQuery,window,document,wb),function(a,b,c){"use strict";var d,e,f,g="wb-tables",h="."+g,i=g+"-inited",j="wb-init"+h,k=c.doc,l=0,m=function(b){var j=b.target,k=j.id;b.currentTarget===j&&-1===j.className.indexOf(i)&&(c.remove(h),j.className+=" "+i,k||(k=g+"-id-"+l,l+=1,j.id=k),e||(d=c.i18n,e={"oAria":{"sSortAscending":d("sortAsc"),"sSortDescending":d("sortDesc")},"oPaginate":{"sFirst":d("first"),"sLast":d("last"),"sNext":d("nxt"),"sPrevious":d("prv")},"sEmptyTable":d("emptyTbl"),"sInfo":d("infoEntr"),"sInfoEmpty":d("infoEmpty"),"sInfoFiltered":d("infoFilt"),"sInfoThousands":d("info1000"),"sLengthMenu":d("lenMenu"),"sLoadingRecords":d("load"),"sProcessing":d("process"),"sSearch":d("filter"),"sZeroRecords":d("infoEmpty")}),f={"asStripeClasses":[],"oLanguage":e,"fnDrawCallback":function(){a("#"+k).trigger("tables-draw.wb")}},Modernizr.load({"load":["site!deps/jquery.dataTables"+c.getMode()+".js"],"complete":function(){var b=a("#"+k),d=function(a,b){return c.normalizeDiacritics(a).localeCompare(c.normalizeDiacritics(b))},e=function(a,b){return c.normalizeDiacritics(b).localeCompare(c.normalizeDiacritics(a))};a.fn.dataTableExt.oSort["html-asc"]=d,a.fn.dataTableExt.oSort["html-desc"]=e,a.fn.dataTableExt.oSort["string-case-asc"]=d,a.fn.dataTableExt.oSort["string-case-desc"]=e,b.dataTable(a.extend(!0,f,c.getData(b,"wet-boew")))}}))};k.on("timerpoke.wb "+j,h,m),c.add(h)}(jQuery,window,wb),function(a,b,c){"use strict";var d,e,f,g,h="wb-tabs",i="."+h,j=h+"-inited",k="wb-init"+i,l="shift"+i,m="setfocus.wb",n=i+" [role=tablist] a",o=0,p=!1,q="wb-eqht",r=q+"-off",s="-activePanel",t="click vclick keydown",u=c.doc,v=c.win,w="smallview",x={"addControls":!0,"excludePlay":!1},y=function(b){if(!b.hasClass(j)){b.addClass(j);var g,h,i,k,l,m,n,q,r=b.hasClass("slow")?9:b.hasClass("fast")?3:6,t=b.children("[role=tabpanel], details"),u=b.children("[role=tablist]"),v=x.addControls,y=x.excludePlay,z=c.pageUrlParts.hash.substring(1),C=0!==z.length?t.filter("#"+z):void 0,D=b.attr("id"),E=!1,F="open";D||(D="tabs-cnt-"+o,b.attr("id",D),o+=1);try{if(C&&0!==C.length){E=!0;try{sessionStorage.setItem(D+s,z)}catch(G){}}else z=sessionStorage.getItem(D+s),z&&(C=t.filter("#"+z))}catch(G){}if(f=-1!==document.documentElement.className.indexOf(w),e||(d=c.i18n,e={"prev":d("prv"),"next":d("nxt"),"play":d("play"),"rotStart":d("tab-rot").on,"rotStop":d("tab-rot").off,"space":d("space"),"hyphen":d("hyphen"),"pause":d("pause")}),0===u.length){for(b.addClass("tabs-acc"),q=D+"-grp",v=!1,t=b.children(),i=t.length,C&&0!==C.length||(C=t.filter("[open]").first(),0===C.length&&(C=t.eq(0))),t.removeAttr(F),C.attr(F,F),k="<ul role='tablist' aria-live='off'>",h=0;h!==i;h+=1)g=t.eq(h),g.addClass(q).html(g.html().replace(/(<\/summary>)/i,"$1<div class='tgl-panel'>")+"</div>"),m=g.attr("id"),m||(m="tabpanel"+o,o+=1,g.attr("id",m)),l=!!g.attr(F),f?Modernizr.details||g.toggleClass("open",!l):(g.attr({"role":"tabpanel","open":F}),g.addClass((Modernizr.details?"":F+" ")+"fade "+(l?"in":"out"))),k+="<li"+(l?" class='active'":"")+"><a id='"+m+"-lnk' href='#"+m+"'>"+g.children("summary").html()+"</a></li>";u=a(k+"</ul>"),b.prepend(u).find("> details > summary").addClass("wb-toggle tgl-tab").attr("data-toggle",'{"parent": "#'+D+'", "group": ".'+q+'"}').trigger("wb-init.wb-toggle")}else C&&0!==C.length&&(t.filter(".in").addClass("out").removeClass("in"),C.addClass("in").removeClass("out"),u.find(".active").removeClass("active"),u.find("a").filter("[href$='"+z+"']").parent().addClass("active"));B(t,u),v&&A(u,y),E&&setTimeout(function(){n=u.offset().top,n<document.body.scrollTop&&(document.body.scrollTop=n)},1),b.data({"panels":t,"tablist":u,"delay":r,"ctime":0}),p=!0,H()}},z=function(a){var b,c,d=a.data("delay");return d?a.hasClass("playing")?(b=parseFloat(d),c=parseFloat(a.data("ctime"))+.5,c>b&&(a.trigger(l),c=0),a.data("ctime",c),void 0):!1:(a.trigger(k),!1)},A=function(a,b){var c=a.parents(i),d=e.prev,f=e.next,g=e.space,h=c.hasClass("playing"),j=h?e.pause:e.play,k=h?e.rotStop:e.rotStart,l="<span class='glyphicon glyphicon-",m="<span class='wb-inv'>",n="<li class='control ",o="' href='javascript:;' role='button' title='",p="</span></a></li> ",q=l+(h?"pause":"play")+"'></span>",r=n+"prv'><a class='prv"+o+d+"'>"+l+"chevron-left'></span>"+m+d+p,s=n+"plypause'><a class='plypause"+o+j+"'>"+q+" <i>"+j+"</i>"+m+g+e.hyphen+g+k+p,t=n+"nxt'><a class='nxt"+o+f+"'>"+l+"chevron-right'></span>"+m+f+p;a.append(r+(b?"":s)+t)},B=function(a,b){var c,d,e,g=a.get(),h=g.length-1,i=b.children().get(),j=i.length-1,k="details"===a[0].nodeName.toLowerCase();for(a.attr("tabindex","-1");-1!==h;h-=1)d=g[h],c=-1!==d.className.indexOf("in"),k&&f||(d.setAttribute("aria-hidden",c?"false":"true"),d.setAttribute("aria-expanded",c?"true":"false")),d.setAttribute("aria-labelledby",d.id+"-lnk");for(;-1!==j;j-=1)d=i[j],d.setAttribute("role","presentation"),c=-1!==d.className.indexOf("active"),e=d.getElementsByTagName("a")[0],e.tabIndex=c?"0":"-1",e.setAttribute("role","tab"),e.setAttribute("aria-selected",c?"true":"false"),e.setAttribute("aria-controls",e.getAttribute("href").substring(1));b.attr("aria-live","off")},C=function(a,b,c,d){a.filter(".in").removeClass("in").addClass("out").attr({"aria-hidden":"true","aria-expanded":"false"}),c.removeClass("out").addClass("in").attr({"aria-hidden":"false","aria-expanded":"true"}),b.find(".active").removeClass("active").children("a").attr({"aria-selected":"false","tabindex":"-1"}),d.attr({"aria-selected":"true","tabindex":"0"}).parent().addClass("active");try{sessionStorage.setItem(c.parent().attr("id")+s,c.attr("id"))}catch(e){}},D=function(a,b){var c=a.data("panels"),d=a.data("tablist"),e=c.filter("#"+b.attr("aria-controls"));C(c,d,e,b)},E=function(a,b){var c=a.data("panels"),d=a.data("tablist"),e=c.length,f=a.find(".in").prevAll("[role=tabpanel]").length,g=b.shiftto?b.shiftto:1,h=f>e?0:f+g,i=c.eq(h>e-1?0:0>h?e-1:h);C(c,d,i,d.find("[href=#"+i.attr("id")+"]"))},F=function(a,b){a.trigger({"type":l,"shiftto":b})},G=function(c){if(p){var d=b.location.hash,e=a(d);0!==e.length&&(c.preventDefault(),f&&"details"===e[0].nodeName.toLowerCase()?e.children("summary").trigger("click"):e.parent().find("> ul [href$='"+d+"']").trigger("click"))}},H=function(){var b,c,d,e,h,j,k;p&&(f=-1!==document.documentElement.className.indexOf(w),b=a(i),c=b.children("details"),0!==c.length&&(f!==g?(k=c.children("summary"),d=b.children("ul"),-1!==b.attr("class").indexOf(q)&&b.toggleClass(q+" "+r),f?(j=d.find(".active a"),e=c.filter("#"+j.attr("href").substring(1)),h=c.removeAttr("role").removeClass("fade out in").not(e).removeAttr("open"),Modernizr.details||(h.attr({"aria-expanded":"false","aria-hidden":"true"}),e.attr({"aria-expanded":"true","aria-hidden":"false"}))):g&&(e=c.filter("[open]"),0===e.length&&(e=c.eq(0)),c.attr({"role":"tabpanel","open":"open"}).not(e).addClass("fade out"),e.addClass("fade in").parent().find("> ul [href$='"+e.attr("id")+"']").trigger("click")),k.attr("aria-hidden",!f),d.attr("aria-hidden",f)):-1!==b.attr("class").indexOf(q)&&b.toggleClass(q+" "+r),g=f))};u.on("timerpoke.wb "+k+" "+l,i,function(b){var c=b.type,d=a(this);switch(c){case"timerpoke":z(d);break;case"wb-init":y(d);break;case"shift":E(d,b)}return!0}),u.on(t,n,function(b){var c,d,f,g,h,j=b.which,k=b.currentTarget,l=k.className,n=e.rotStop,o=e.play;return!j||1===j||13===j||32===j||j>36&&41>j?(b.preventDefault(),c=a(k),g=c.parents(i).attr("data-ctime",0),(g.hasClass("playing")||37>j&&-1!==l.indexOf("plypause"))&&(h=g.find("a.plypause"),h.find(".glyphicon").toggleClass("glyphicon-play glyphicon-pause"),g.toggleClass("playing"),d=h[0].getElementsByTagName("i")[0],d.innerHTML=d.innerHTML===o?e.pause:o,f=h.find(".wb-inv")[0],f.innerHTML=f.innerHTML===n?e.rotStart:n),j>36?(F(c,39>j?-1:1),g.find(".active a").trigger(m)):"tab"===k.getAttribute("role")?(D(g,c),j>1&&g.find(c.attr("href")).trigger("setfocus.wb")):g.hasClass("playing")||-1!==l.indexOf("plypause")||F(c,-1!==l.indexOf("prv")?-1:1),!1):!0}),u.on("keydown",i+" [role=tabpanel]",function(b){var c=b.currentTarget;b.ctrlKey&&38===b.which&&a(c).closest(i).find("[href$='#"+c.id+"']").trigger("setfocus.wb")}),u.on("click",i+" [role=tabpanel] a",function(b){var c,d,e,f=b.currentTarget,g=f.getAttribute("href");return 1===b.which&&"#"===g.charAt(0)&&(c=a(f).closest(i),d=c.find(g),0!==d.length)?(e=d.children("summary"),0!==e.length&&"true"!==e.attr("aria-hidden")?e.trigger("click"):c.find(g+"-lnk").trigger("click"),!1):void 0}),u.on(c.resizeEvents,H),v.on("hashchange",G),u.on(t,i+" > details > summary",function(a){var b=a.which,c=a.currentTarget.parentNode;if(!b||1===b||13===b||32===b)try{sessionStorage.setItem(c.parentNode.id+s,c.id)}catch(d){}}),c.add(i)}(jQuery,window,wb),function(a,b,c,d){"use strict";var e="wb-txthl",f="."+e,g=e+"-inited",h="wb-init"+f,i=d.doc,j=function(a){var b,c,e=a.target;a.currentTarget===e&&-1===e.className.indexOf(g)&&(d.remove(f),e.className+=" "+g,b=d.pageUrlParts.params.txthl,b&&(b=b.replace(/^\s+|\s+$|\|+|\"|\(|\)/g,"").replace(/\++/g,"|"),b=decodeURIComponent(b),b="(?=([^>]*<))([\\s'])?("+b+")(?!>)",c=e.innerHTML.replace(new RegExp(b,"gi"),function(a,b,c,d){return(c?c:"")+"<span class='txthl'><mark>"+d+"</mark></span>"}),e.innerHTML=c))};i.on("timerpoke.wb "+h,f,j),d.add(f)}(jQuery,window,document,wb),function(a,b,c){"use strict";var d="wb-toggle",e="."+d,f=".tgl-panel",g=".tgl-tab",h=d+"-inited",i="wb-init"+e,j="toggle"+e,k="toggled"+e,l=0,m={},n=c.doc,o=c.win,p={"stateOn":"on","stateOff":"off"},q=function(b){var d,f,g=b.target;b.currentTarget===g&&-1===g.className.indexOf(h)&&(c.remove(e),g.className+=" "+h,l+=1,d=a(g),f=a.extend({},p,d.data("toggle")),d.data("toggle",f),r(g,f),f.persist&&s(d,f),f.print&&t(d,f))},r=function(b,c){var d,e,h,i,j,k,m,n,o,p="",q=!1,r="wb-"+l;if(null!=c.group&&null!=c.parent){if(j=document.querySelector(c.parent),"tablist"!==j.getAttribute("role")){for(j.setAttribute("role","tablist"),i=j.querySelectorAll(c.group),k=j.querySelectorAll(c.group+" "+g),a(k).trigger("wb-init.wb-details"),d=0,e=i.length;d!==e;d+=1)h=i[d],m=k[d],n=h.querySelector(f),o="details"===h.nodeName.toLowerCase()?!!h.getAttribute("open"):(" "+m.className+" ").indexOf(" "+c.stateOn+" "),o&&(q=!0),m.getAttribute("id")||m.setAttribute("id",r+d),m.setAttribute("role","tab"),m.setAttribute("aria-selected",o),m.setAttribute("tabindex",o?"0":"-1"),m.setAttribute("aria-posinset",d+1),m.setAttribute("aria-setsize",e),n.setAttribute("role","tabpanel"),n.setAttribute("aria-labelledby",m.getAttribute("id")),n.setAttribute("aria-expanded",o),n.setAttribute("aria-hidden",!o);q||k[0].setAttribute("tabindex","0")}}else{for(i=x(b,c),d=0,e=i.length;d!==e;d+=1)h=i[d],h.id||(h.id=r+d),p+=h.id+" ";b.setAttribute("aria-controls",p.slice(0,-1))}},s=function(b,c){var e,f=b[0];f.id||(f.id="wb-"+l),c.persist="session"===c.persist?sessionStorage:localStorage,c.persistKey=d+(c.group?c.group:"")+f.id,e=c.persist.getItem(c.persistKey),e&&b.trigger(j,a.extend({},c,{"type":e}))},t=function(c,d){var e,f="beforeprint";o.on(f,function(){c.trigger(j,a.extend({},d,{"type":d.print}))}),b.matchMedia&&(e=b.matchMedia("print"),e.addListener&&e.addListener(function(a){a.matches&&o.trigger(f)}))},u=function(b){var c=a(b.target);c.trigger(j,c.data("toggle")),b.preventDefault(),c.trigger("setfocus.wb")},v=function(b,c){var e,f,h,i=!!c.group,j=!!c.persist,l=i&&!!c.parent,m=b.currentTarget,n=a(m),o=y(n,c),p=o===c.stateOff,q=p?c.stateOn:c.stateOff,r=l?n.parent(c.group):x(m,c);if(i&&(e=a.extend({},c,{"selector":c.group}),h=x(m,e).filter("."+c.stateOn+", [open]"),z(l?a(c.parent).find(g):h,e,c.stateOff),h.wb("toggle",c.stateOff,c.stateOn),h.trigger(k,{"isOn":!1,"isTablist":l,"elms":h}),j))for(f in c.persist)0===f.indexOf(d+c.group)&&c.persist.removeItem(f);if(z(l?n:r,c,q),r.wb("toggle",q,o),r.trigger(k,{"isOn":p,"isTablist":l,"elms":r}),j)try{c.persist.setItem(c.persistKey,q)}catch(s){}},w=function(b,c){var d,e=c.isOn,h=c.elms,i=a(this);i.prop("open",e),Modernizr.details||i.attr("open",e?null:"open").find("summary").trigger("toggle.wb-details"),c.isTablist&&(h.find(g).attr({"aria-selected":e,"tabindex":e?"0":"-1"}),h.find(f).attr({"aria-hidden":!e,"aria-expanded":e}),e&&1===h.length&&(d=h.offset().top,d<o.scrollTop()&&o.scrollTop(d)))
},x=function(b,c){var d=c.selector||b,e=c.parent||null;return null!==e?a(e).find(d):a(d)},y=function(a,b){var c=b.parent,d=b.selector,e=b.type;return e?"on"===e?b.stateOff:b.stateOn:"summary"===a[0].nodeName.toLowerCase()?a.parent().attr("open")?b.stateOn:b.stateOff:d?m.hasOwnProperty(d)?m[d].hasOwnProperty(c)?m[d][c]:m[d].all:b.stateOff:a.data("state")||b.stateOff},z=function(a,b,c){var d,e=b.parent,f=b.selector,g=m[f];if(f)if(g||(g={"all":b.stateOff},m[f]=g),e)g[e]=c;else for(d in g)g.hasOwnProperty(d)&&(g[d]=c);a.data("state",c)};n.on("timerpoke.wb "+i+" "+j+" click",e,function(a,b){var c=a.type;switch(c){case"click":u(a);break;case"toggle":v(a,b);break;case"timerpoke":case"wb-init":q(a)}}),n.on(k,"details",w),n.on("keydown",g,function(b){var c,d,e,f,g,h,i=b.which;if(!b.ctrlKey&&i>34&&41>i){switch(b.preventDefault(),d=a(b.currentTarget),c=d.data("toggle"),e=n.find(c.parent),f=e.find(c.group),h=f.index(d.parent()),i){case 35:g=f.last();break;case 36:g=f.first();break;case 37:case 38:g=0===h?f.last():f.eq(h-1);break;case 39:case 40:g=h===f.length-1?f.first():f.eq(h+1)}g.children("summary").trigger("click")}}),n.on("keydown",f,function(b){b.ctrlKey&&38===b.which&&a(b.currentTarget).prev().trigger("setfocus.wb")}),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d="wb-twitter",e="."+d,f=d+"-inited",g="wb-init"+e,h=c.doc,i=function(a){var b=a.target,d=c.pageUrlParts.protocol;a.currentTarget===b&&-1===b.className.indexOf(f)&&(c.remove(e),b.className+=" "+f,Modernizr.load({"load":(-1===d.indexOf("http")?"http:":d)+"//platform.twitter.com/widgets.js"}))};h.on("timerpoke.wb "+g,e,i),c.add(e)}(jQuery,window,wb),function(a,b,c){"use strict";var d="#wb-tphp",e=c.doc,f=function(a){var b,e,f=a.target,g="?",h=c.html,i=c.i18n,j=c.pageUrlParts;if(a.currentTarget===f){c.remove(d),b=document.createElement("li"),b.className="wb-slc";for(e in j.params)j.params.hasOwnProperty(e)&&"wbdisable"!==e&&(g+=e+"="+j.params[e]+"&#38;");try{if(c.isDisabled||c.ie&&c.ielt7)return h.addClass("no-js wb-disable"),localStorage&&localStorage.setItem("wbdisable","true"),b.innerHTML="<a class='wb-sl' href='"+g+"wbdisable=false'>"+i("wb-enable")+"</a>",f.appendChild(b),!0;localStorage&&localStorage.setItem("wbdisable","false")}catch(k){}b.innerHTML="<a class='wb-sl' href='"+g+"wbdisable=true'>"+i("wb-disable")+"</a>",f.appendChild(b)}};e.on("timerpoke.wb",d,f),c.add(d)}(jQuery,window,wb),function(a,b){"use strict";var c,d=b.doc,e=b.pageUrlParts.hash,f="click vclick",g="setfocus.wb",h="a[href]";d.on(g,function(b){var c=a(b.target);c.filter(":not([tabindex], a, button, input, textarea, select)").attr("tabindex","-1"),setTimeout(function(){c.trigger("focus");var b=a(".wb-bar-t[aria-hidden=false]");return 0!==b.length&&(document.documentElement.scrollTop-=b.outerHeight()),c},100)}),e&&0!==(c=a(e)).length&&c.trigger(g),d.on(f,h,function(b){var d=b.currentTarget.getAttribute("href");"#"!==d.charAt(0)||b.isDefaultPrevented()||0===(c=a(d)).length||c.trigger(g)})}(jQuery,wb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.