From d61ff6f96224cf1ecab71d19e19988bed2858ca8 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Sun, 17 Jul 2016 06:55:47 +0200 Subject: [PATCH] Updating minified JavaScript files --- .../redactor/plugins/wcombined.min.js | 0 wcfsetup/install/files/js/WCF.Combined.min.js | 35 ++++++++++++------- 2 files changed, 22 insertions(+), 13 deletions(-) mode change 100755 => 100644 wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js old mode 100755 new mode 100644 diff --git a/wcfsetup/install/files/js/WCF.Combined.min.js b/wcfsetup/install/files/js/WCF.Combined.min.js index 44106c61ef..6f125b97b2 100755 --- a/wcfsetup/install/files/js/WCF.Combined.min.js +++ b/wcfsetup/install/files/js/WCF.Combined.min.js @@ -58,40 +58,49 @@ }},$.datepicker._setTimeDatepicker=function(e,t,i){var s=this._getInst(e);if(s){var a=this._get(s,"timepicker");if(a){this._setDateFromField(s);var n;t&&("string"==typeof t?(a._parseTime(t,i),n=new Date,n.setHours(a.hour,a.minute,a.second,a.millisec),n.setMicroseconds(a.microsec)):(n=new Date(t.getTime()),n.setMicroseconds(t.getMicroseconds())),"Invalid Date"==""+n&&(n=void 0),this._setTime(s,n))}}},$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker,$.datepicker._setDateDatepicker=function(e,t){var i=this._getInst(e),s=t;if(i){"string"==typeof t&&(s=new Date(t),s.getTime()||(this._base_setDateDatepicker.apply(this,arguments),s=$(e).datepicker("getDate")));var a,n=this._get(i,"timepicker");s instanceof Date?(a=new Date(s.getTime()),a.setMicroseconds(s.getMicroseconds())):a=s,n&&a&&(n.support.timezone||null!==n._defaults.timezone||(n.timezone=-1*a.getTimezoneOffset()),s=$.timepicker.timezoneAdjust(s,n.timezone),a=$.timepicker.timezoneAdjust(a,n.timezone)),this._updateDatepicker(i),this._base_setDateDatepicker.apply(this,arguments),this._setTimeDatepicker(e,a,!0)}},$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker,$.datepicker._getDateDatepicker=function(e,t){var i=this._getInst(e);if(i){var s=this._get(i,"timepicker");if(s){void 0===i.lastVal&&this._setDateFromField(i,t);var a=this._getDate(i);return a&&s._parseTime($(e).val(),s.timeOnly)&&(a.setHours(s.hour,s.minute,s.second,s.millisec),a.setMicroseconds(s.microsec),null!=s.timezone&&(s.support.timezone||null!==s._defaults.timezone||(s.timezone=-1*a.getTimezoneOffset()),a=$.timepicker.timezoneAdjust(a,s.timezone))),a}return this._base_getDateDatepicker(e,t)}},$.datepicker._base_parseDate=$.datepicker.parseDate,$.datepicker.parseDate=function(e,t,i){var s;try{s=this._base_parseDate(e,t,i)}catch(a){if(!(a.indexOf(":")>=0))throw a;s=this._base_parseDate(e,t.substring(0,t.length-(a.length-a.indexOf(":")-2)),i),$.timepicker.log("Error parsing the date string: "+a+"\ndate string = "+t+"\ndate format = "+e)}return s},$.datepicker._base_formatDate=$.datepicker._formatDate,$.datepicker._formatDate=function(e){var t=this._get(e,"timepicker");return t?(t._updateDateTime(e),t.$input.val()):this._base_formatDate(e)},$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker,$.datepicker._optionDatepicker=function(e,t,i){var s,a=this._getInst(e);if(!a)return null;var n=this._get(a,"timepicker");if(n){var r,l=null,o=null,c=null,u=n._defaults.evnts,m={};if("string"==typeof t){if("minDate"===t||"minDateTime"===t)l=i;else if("maxDate"===t||"maxDateTime"===t)o=i;else if("onSelect"===t)c=i;else if(u.hasOwnProperty(t)){if(i===void 0)return u[t];m[t]=i,s={}}}else if("object"==typeof t){t.minDate?l=t.minDate:t.minDateTime?l=t.minDateTime:t.maxDate?o=t.maxDate:t.maxDateTime&&(o=t.maxDateTime);for(r in u)u.hasOwnProperty(r)&&t[r]&&(m[r]=t[r])}for(r in m)m.hasOwnProperty(r)&&(u[r]=m[r],s||(s=$.extend({},t)),delete s[r]);if(s&&isEmptyObject(s))return;l?(l=0===l?new Date:new Date(l),n._defaults.minDate=l,n._defaults.minDateTime=l):o?(o=0===o?new Date:new Date(o),n._defaults.maxDate=o,n._defaults.maxDateTime=o):c&&(n._defaults.onSelect=c)}return void 0===i?this._base_optionDatepicker.call($.datepicker,e,t):this._base_optionDatepicker.call($.datepicker,e,s||t,i)};var isEmptyObject=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},extendRemove=function(e,t){$.extend(e,t);for(var i in t)(null===t[i]||void 0===t[i])&&(e[i]=t[i]);return e},detectSupport=function(e){var t=e.replace(/'.*?'/g,"").toLowerCase(),i=function(e,t){return-1!==e.indexOf(t)?!0:!1};return{hour:i(t,"h"),minute:i(t,"m"),second:i(t,"s"),millisec:i(t,"l"),microsec:i(t,"c"),timezone:i(t,"z"),ampm:i(t,"t")&&i(e,"h"),iso8601:i(e,"Z")}},convert24to12=function(e){return e%=12,0===e&&(e=12),e+""},computeEffectiveSetting=function(e,t){return e&&e[t]?e[t]:$.timepicker._defaults[t]},splitDateTime=function(e,t){var i=computeEffectiveSetting(t,"separator"),s=computeEffectiveSetting(t,"timeFormat"),a=s.split(i),n=a.length,r=e.split(i),l=r.length;return l>1?{dateString:r.splice(0,l-n).join(i),timeString:r.splice(0,n).join(i)}:{dateString:e,timeString:""}},parseDateTimeInternal=function(e,t,i,s,a){var n,r,l;if(r=splitDateTime(i,a),n=$.datepicker._base_parseDate(e,r.dateString,s),""===r.timeString)return{date:n};if(l=$.datepicker.parseTime(t,r.timeString,a),!l)throw"Wrong time format";return{date:n,timeObj:l}},selectLocalTimezone=function(e,t){if(e&&e.timezone_select){var i=t||new Date;e.timezone_select.val(-i.getTimezoneOffset())}};$.timepicker=new Timepicker,$.timepicker.timezoneOffsetString=function(e,t){if(isNaN(e)||e>840||-720>e)return e;var i=e,s=i%60,a=(i-s)/60,n=t?":":"",r=(i>=0?"+":"-")+("0"+Math.abs(a)).slice(-2)+n+("0"+Math.abs(s)).slice(-2);return"+00:00"===r?"Z":r},$.timepicker.timezoneOffsetNumber=function(e){var t=(""+e).replace(":","");return"Z"===t.toUpperCase()?0:/^(\-|\+)\d{4}$/.test(t)?("-"===t.substr(0,1)?-1:1)*(60*parseInt(t.substr(1,2),10)+parseInt(t.substr(3,2),10)):e},$.timepicker.timezoneAdjust=function(e,t){var i=$.timepicker.timezoneOffsetNumber(t);return isNaN(i)||e.setMinutes(e.getMinutes()+-e.getTimezoneOffset()-i),e},$.timepicker.timeRange=function(e,t,i){return $.timepicker.handleRange("timepicker",e,t,i)},$.timepicker.datetimeRange=function(e,t,i){$.timepicker.handleRange("datetimepicker",e,t,i)},$.timepicker.dateRange=function(e,t,i){$.timepicker.handleRange("datepicker",e,t,i)},$.timepicker.handleRange=function(e,t,i,s){function a(a,n){var r=t[e]("getDate"),l=i[e]("getDate"),o=a[e]("getDate");if(null!==r){var c=new Date(r.getTime()),u=new Date(r.getTime());c.setMilliseconds(c.getMilliseconds()+s.minInterval),u.setMilliseconds(u.getMilliseconds()+s.maxInterval),s.minInterval>0&&c>l?i[e]("setDate",c):s.maxInterval>0&&l>u?i[e]("setDate",u):r>l&&n[e]("setDate",o)}}function n(t,i,a){if(t.val()){var n=t[e].call(t,"getDate");null!==n&&s.minInterval>0&&("minDate"===a&&n.setMilliseconds(n.getMilliseconds()+s.minInterval),"maxDate"===a&&n.setMilliseconds(n.getMilliseconds()-s.minInterval)),n.getTime&&i[e].call(i,"option",a,n)}}s=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},s);var r=!1;return"timepicker"===e&&(r=!0,e="datetimepicker"),$.fn[e].call(t,$.extend({timeOnly:r,onClose:function(){a($(this),i)},onSelect:function(){n($(this),i,"minDate")}},s,s.start)),$.fn[e].call(i,$.extend({timeOnly:r,onClose:function(){a($(this),t)},onSelect:function(){n($(this),t,"maxDate")}},s,s.end)),a(t,i),n(t,i,"minDate"),n(i,t,"maxDate"),$([t.get(0),i.get(0)])},$.timepicker.log=function(e){window.console&&window.console.log(e)},$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal},Date.prototype.getMicroseconds||(Date.prototype.microseconds=0,Date.prototype.getMicroseconds=function(){return this.microseconds},Date.prototype.setMicroseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+Math.floor(e/1e3)),this.microseconds=e%1e3,this}),$.timepicker.version="1.4.5"}})(jQuery); })(this); // WCF.Assets.js -(function (window, undefined) { })(this); +(function (window, undefined) {!function(){var e=!1,t=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(n){function o(){!e&&this.init&&this.init.apply(this,arguments)}var i=this.prototype;e=!0;var r=new this;e=!1;for(var a in n)r[a]="function"==typeof n[a]&&"function"==typeof i[a]&&t.test(n[a])?function(e,t){return function(){var n=this._super;this._super=i[e];var o=t.apply(this,arguments);return this._super=n,o}}(a,n[a]):n[a];return o.prototype=r,o.prototype.constructor=o,o.extend=arguments.callee,o}}(),window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],o=null;t.type="text/css",t.id="matchmediajs-test",n.parentNode.insertBefore(t,n),o="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===o.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,o=0,i=[],r=function(){clearTimeout(o),o=setTimeout(function(){for(var t=0,n=i.length;n>t;t++){var o=i[t].mql,r=i[t].listeners||[],a=e(o.media).matches;if(a!==o.matches){o.matches=a;for(var l=0,s=r.length;s>l;l++)r[l].call(window,o)}}},30)};window.matchMedia=function(o){var a=e(o),l=[],s=0;return a.addListener=function(e){t&&(n||(n=!0,window.addEventListener("resize",r,!0)),0===s&&(s=i.push({mql:a,listeners:l})),l.push(e))},a.removeListener=function(e){for(var t=0,n=l.length;n>t;t++)l[t]===e&&l.splice(t,1)},a}}(),function(e,t,n){var o=t.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=n(o):"function"==typeof define&&define.amd?define(function(){return t[e]=n(o)}):t[e]=n(o)}("enquire",this,function(e){"use strict";function t(e,t){var n,o=0,i=e.length;for(o;i>o&&(n=t(e[o],o),n!==!1);o++);}function n(e){return"[object Array]"===Object.prototype.toString.apply(e)}function o(e){return"function"==typeof e}function i(e){this.options=e,!e.deferSetup&&this.setup()}function r(t,n){this.query=t,this.isUnconditional=n,this.handlers=[],this.mql=e(t);var o=this;this.listener=function(e){o.mql=e,o.assess()},this.mql.addListener(this.listener)}function a(){if(!e)throw Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!e("only all").matches}return i.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},r.prototype={addHandler:function(e){var t=new i(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var n=this.handlers;t(n,function(t,o){return t.equals(e)?(t.destroy(),!n.splice(o,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},a.prototype={register:function(e,i,a){var l=this.queries,s=a&&this.browserIsIncapable;return l[e]||(l[e]=new r(e,s)),o(i)&&(i={match:i}),n(i)||(i=[i]),t(i,function(t){l[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},new a}),function(e,t){"use strict";function n(){}function o(e,t){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var n=0,o=e.length;o>n;n++)t.call(e,e[n],n)}}function i(e,n){var o=Object.prototype.toString.call(n).slice(8,-1);return n!==t&&null!==n&&o===e}function r(e){return i("Function",e)}function a(e){return i("Array",e)}function l(e){var t=e.split("/"),n=t[t.length-1],o=n.indexOf("?");return-1!==o?n.substring(0,o):n}function s(e){e=e||n,e._done||(e(),e._done=1)}function c(e,t,o,i){var r="object"==typeof e?e:{test:e,success:t?a(t)?t:[t]:!1,failure:o?a(o)?o:[o]:!1,callback:i||n},l=!!r.test;return l&&r.success?(r.success.push(r.callback),O.load.apply(null,r.success)):l||!r.failure?i():(r.failure.push(r.callback),O.load.apply(null,r.failure)),O}function u(e){var t,n,o={};if("object"==typeof e)for(t in e)!e[t]||(o={name:t,url:e[t]});else o={name:l(e),url:e};return n=C[o.name],n&&n.url===o.url?n:(C[o.name]=o,o)}function d(e){e=e||C;for(var t in e)if(e.hasOwnProperty(t)&&e[t].state!==j)return!1;return!0}function f(e){e.state=D,o(e.onpreload,function(e){e.call()})}function p(e){e.state===t&&(e.state=A,e.onpreload=[],v({url:e.url,type:"cache"},function(){f(e)}))}function h(){var e=arguments,t=e[e.length-1],n=[].slice.call(e,1),i=n[0];return r(t)||(t=null),a(e[0])?(e[0].push(t),O.load.apply(null,e[0]),O):(i?(o(n,function(e){r(e)||!e||p(u(e))}),m(u(e[0]),r(i)?i:function(){O.load.apply(null,n)})):m(u(e[0])),O)}function g(){var e=arguments,t=e[e.length-1],n={};return r(t)||(t=null),a(e[0])?(e[0].push(t),O.load.apply(null,e[0]),O):(o(e,function(e){e!==t&&(e=u(e),n[e.name]=e)}),o(e,function(e){e!==t&&(e=u(e),m(e,function(){d(n)&&s(t)}))}),O)}function m(e,t){return t=t||n,e.state===j?void t():e.state===R?void O.ready(e.name,t):e.state===A?void e.onpreload.push(function(){m(e,t)}):(e.state=R,void v(e,function(){e.state=j,t(),o(k[e.name],function(e){s(e)}),E&&d()&&o(k.ALL,function(e){s(e)})}))}function w(e){e=e||"";var t=e.split("?")[0].split(".");return t[t.length-1].toLowerCase()}function v(t,o){function i(t){t=t||e.event,l.onload=l.onreadystatechange=l.onerror=null,o()}function r(n){n=n||e.event,("load"===n.type||/loaded|complete/.test(l.readyState)&&(!M.documentMode||M.documentMode<9))&&(e.clearTimeout(t.errorTimeout),e.clearTimeout(t.cssTimeout),l.onload=l.onreadystatechange=l.onerror=null,o())}function a(){if(t.state!==j&&t.cssRetries<=20){for(var n=0,o=M.styleSheets.length;o>n;n++)if(M.styleSheets[n].href===l.href)return void r({type:"load"});t.cssRetries++,t.cssTimeout=e.setTimeout(a,250)}}var l,s,c;o=o||n,s=w(t.url),"css"===s?(l=M.createElement("link"),l.type="text/"+(t.type||"css"),l.rel="stylesheet",l.href=t.url,t.cssRetries=0,t.cssTimeout=e.setTimeout(a,500)):(l=M.createElement("script"),l.type="text/"+(t.type||"javascript"),l.src=t.url),l.onload=l.onreadystatechange=r,l.onerror=i,l.async=!1,l.defer=!1,t.errorTimeout=e.setTimeout(function(){i({type:"timeout"})},7e3),c=M.head||M.getElementsByTagName("head")[0],c.insertBefore(l,c.lastChild)}function y(){for(var e,t=M.getElementsByTagName("script"),n=0,o=t.length;o>n;n++)if(e=t[n].getAttribute("data-headjs-load"),!!e)return void O.load(e)}function b(e,t){var n,i,l;return e===M?(E?s(t):L.push(t),O):(r(e)&&(t=e,e="ALL"),a(e)?(n={},o(e,function(e){n[e]=C[e],O.ready(e,function(){d(n)&&s(t)})}),O):"string"==typeof e&&r(t)?(i=C[e],i&&i.state===j||"ALL"===e&&d()&&E?(s(t),O):(l=k[e],l?l.push(t):l=k[e]=[t],O)):O)}function x(){return M.body?void(E||(E=!0,y(),o(L,function(e){s(e)}))):(e.clearTimeout(O.readyTimeout),void(O.readyTimeout=e.setTimeout(x,50)))}function T(){M.addEventListener?(M.removeEventListener("DOMContentLoaded",T,!1),x()):"complete"===M.readyState&&(M.detachEvent("onreadystatechange",T),x())}var E,S,M=e.document,L=[],k={},C={},I="async"in M.createElement("script")||"MozAppearance"in M.documentElement.style||e.opera,P=e.head_conf&&e.head_conf.head||"head",O=e[P]=e[P]||function(){O.ready.apply(null,arguments)},A=1,D=2,R=3,j=4;if("complete"===M.readyState)x();else if(M.addEventListener)M.addEventListener("DOMContentLoaded",T,!1),e.addEventListener("load",x,!1);else{M.attachEvent("onreadystatechange",T),e.attachEvent("onload",x),S=!1;try{S=!e.frameElement&&M.documentElement}catch(e){}S&&S.doScroll&&function t(){if(!E){try{S.doScroll("left")}catch(n){return e.clearTimeout(O.readyTimeout),void(O.readyTimeout=e.setTimeout(t,50))}x()}}()}O.load=O.js=I?g:h,O.test=c,O.ready=b,O.ready(M,function(){d()&&o(k.ALL,function(e){s(e)}),O.feature&&O.feature("domloaded",!0)})}(window),!function(){var e=function(e){"use strict";function t(e){if(e.paused||e.ended||m)return!1;try{u.clearRect(0,0,s,l),u.drawImage(e,0,0,s,l)}catch(e){}y=setTimeout(t,O.duration,e),P.setIcon(c)}function n(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,o){return t+t+n+n+o+o});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:!1}function o(e,t){var n,o={};for(n in e)o[n]=e[n];for(n in t)o[n]=t[n];return o}function i(){return document.hidden||document.msHidden||document.webkitHidden||document.mozHidden}e=e?e:{};var r,a,l,s,c,u,d,f,p,h,g,m,w,v,y,b={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:!1};w={},w.ff="undefined"!=typeof InstallTrigger,w.chrome=!!window.chrome,w.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0,w.ie=!1,w.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,w.supported=w.chrome||w.ff||w.opera;var x=[];g=function(){},f=m=!1;var T=function(){r=o(b,e),r.bgColor=n(r.bgColor),r.textColor=n(r.textColor),r.position=r.position.toLowerCase(),r.animation=O.types[""+r.animation]?r.animation:b.animation;var t=r.position.indexOf("up")>-1,i=r.position.indexOf("left")>-1;if(t||i)for(var f=0;f0?d.height:32,s=d.width>0?d.width:32,c.height=l,c.width=s,u=c.getContext("2d"),E.ready()}):(d.setAttribute("src",""),l=32,s=32,d.height=l,d.width=s,c.height=l,c.width=s,u=c.getContext("2d"),E.ready())}catch(e){throw"Error initializing favico. Message: "+e.message}},E={};E.ready=function(){f=!0,E.reset(),g()},E.reset=function(){f&&(x=[],p=!1,u.clearRect(0,0,s,l),u.drawImage(d,0,0,s,l),P.setIcon(c),window.clearTimeout(v),window.clearTimeout(y))},E.start=function(){if(f&&!h){var e=function(){p=x[0],h=!1,x.length>0&&(x.shift(),E.start())};if(x.length>0){h=!0;var t=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(e){e in x[0].options&&(r[e]=x[0].options[e])}),O.run(x[0].options,function(){e()},!1)};p?O.run(p.options,function(){t()},!0):t()}}};var S={},M=function(e){return e.n="number"==typeof e.n?Math.abs(0|e.n):e.n,e.x=s*e.x,e.y=l*e.y,e.w=s*e.w,e.h=l*e.h,e.len=(""+e.n).length,e};S.circle=function(e){e=M(e);var t=!1;2===e.len?(e.x=e.x-.4*e.w,e.w=1.4*e.w,t=!0):e.len>=3&&(e.x=e.x-.65*e.w,e.w=1.65*e.w,t=!0),u.clearRect(0,0,s,l),u.drawImage(d,0,0,s,l),u.beginPath(),u.font=r.fontStyle+" "+Math.floor(e.h*(e.n>99?.85:1))+"px "+r.fontFamily,u.textAlign="center",t?(u.moveTo(e.x+e.w/2,e.y),u.lineTo(e.x+e.w-e.h/2,e.y),u.quadraticCurveTo(e.x+e.w,e.y,e.x+e.w,e.y+e.h/2),u.lineTo(e.x+e.w,e.y+e.h-e.h/2),u.quadraticCurveTo(e.x+e.w,e.y+e.h,e.x+e.w-e.h/2,e.y+e.h),u.lineTo(e.x+e.h/2,e.y+e.h),u.quadraticCurveTo(e.x,e.y+e.h,e.x,e.y+e.h-e.h/2),u.lineTo(e.x,e.y+e.h/2),u.quadraticCurveTo(e.x,e.y,e.x+e.h/2,e.y)):u.arc(e.x+e.w/2,e.y+e.h/2,e.h/2,0,2*Math.PI),u.fillStyle="rgba("+r.bgColor.r+","+r.bgColor.g+","+r.bgColor.b+","+e.o+")",u.fill(),u.closePath(),u.beginPath(),u.stroke(),u.fillStyle="rgba("+r.textColor.r+","+r.textColor.g+","+r.textColor.b+","+e.o+")","number"==typeof e.n&&e.n>999?u.fillText((e.n>9999?9:Math.floor(e.n/1e3))+"k+",Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.2*e.h)):u.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.15*e.h)),u.closePath()},S.rectangle=function(e){e=M(e);var t=!1;2===e.len?(e.x=e.x-.4*e.w,e.w=1.4*e.w,t=!0):e.len>=3&&(e.x=e.x-.65*e.w,e.w=1.65*e.w,t=!0),u.clearRect(0,0,s,l),u.drawImage(d,0,0,s,l),u.beginPath(),u.font=r.fontStyle+" "+Math.floor(e.h*(e.n>99?.9:1))+"px "+r.fontFamily,u.textAlign="center",u.fillStyle="rgba("+r.bgColor.r+","+r.bgColor.g+","+r.bgColor.b+","+e.o+")",u.fillRect(e.x,e.y,e.w,e.h),u.fillStyle="rgba("+r.textColor.r+","+r.textColor.g+","+r.textColor.b+","+e.o+")","number"==typeof e.n&&e.n>999?u.fillText((e.n>9999?9:Math.floor(e.n/1e3))+"k+",Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.2*e.h)):u.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.15*e.h)),u.closePath()};var L=function(e,t){t=("string"==typeof t?{animation:t}:t)||{},g=function(){try{if("number"==typeof e?e>0:""!==e){var o={type:"badge",options:{n:e}};if("animation"in t&&O.types[""+t.animation]&&(o.options.animation=""+t.animation),"type"in t&&S[""+t.type]&&(o.options.type=""+t.type),["bgColor","textColor"].forEach(function(e){e in t&&(o.options[e]=n(t[e]))}),["fontStyle","fontFamily"].forEach(function(e){e in t&&(o.options[e]=t[e])}),x.push(o),x.length>100)throw"Too many badges requests in queue.";E.start()}else E.reset()}catch(e){throw"Error setting badge. Message: "+e.message}},f&&g()},k=function(e){g=function(){try{var t=e.width,n=e.height,o=document.createElement("img"),i=n/l>t/s?t/s:n/l;o.setAttribute("src",e.getAttribute("src")),o.height=n/i,o.width=t/i,u.clearRect(0,0,s,l),u.drawImage(o,0,0,s,l),P.setIcon(c)}catch(e){throw"Error setting image. Message: "+e.message}},f&&g()},C=function(e){g=function(){try{if("stop"===e)return m=!0,E.reset(),void(m=!1);e.addEventListener("play",function(){t(this)},!1)}catch(e){throw"Error setting video. Message: "+e.message}},f&&g()},I=function(e){if(window.URL&&window.URL.createObjectURL||(window.URL=window.URL||{},window.URL.createObjectURL=function(e){return e}),w.supported){var n=!1;navigator.getUserMedia=navigator.getUserMedia||navigator.oGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia,g=function(){try{if("stop"===e)return m=!0,E.reset(),void(m=!1);n=document.createElement("video"),n.width=s,n.height=l,navigator.getUserMedia({video:!0,audio:!1},function(e){n.src=URL.createObjectURL(e),n.play(),t(n)},function(){})}catch(e){throw"Error setting webcam. Message: "+e.message}},f&&g()}},P={};P.getIcon=function(){var e=!1,t="",n=function(){for(var e=document.getElementsByTagName("head")[0].getElementsByTagName("link"),t=e.length,n=t-1;n>=0;n--)if(/(^|\s)icon(\s|$)/i.test(e[n].getAttribute("rel")))return e[n];return!1};if(r.elementId?(e=document.getElementById(r.elementId),e.setAttribute("href",e.getAttribute("src"))):(e=n(),e===!1&&(e=document.createElement("link"),e.setAttribute("rel","icon"),document.getElementsByTagName("head")[0].appendChild(e))),t=r.elementId?e.src:e.href,"data:"!==t.substr(0,5)&&-1===t.indexOf(document.location.hostname))throw new Error("Error setting favicon. Favicon image is on different domain (Icon: "+t+", Domain: "+document.location.hostname+")");return e.setAttribute("type","image/png"),e},P.setIcon=function(e){var t=e.toDataURL("image/png");if(r.elementId)document.getElementById(r.elementId).setAttribute("src",t);else if(w.ff||w.opera){var n=a;a=document.createElement("link"),w.opera&&a.setAttribute("rel","icon"),a.setAttribute("rel","icon"),a.setAttribute("type","image/png"),document.getElementsByTagName("head")[0].appendChild(a),a.setAttribute("href",t),n.parentNode&&n.parentNode.removeChild(n)}else a.setAttribute("href",t)};var O={};return O.duration=40,O.types={},O.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],O.run=function(e,t,n,a){var l=O.types[i()?"none":r.animation];return a=n===!0?"undefined"!=typeof a?a:l.length-1:"undefined"!=typeof a?a:0,t=t?t:function(){},a=0?(S[r.type](o(e,l[a])),v=setTimeout(function(){n?a-=1:a+=1,O.run(e,t,n,a)},O.duration),void P.setIcon(c)):void t()},T(),{badge:L,video:C,image:k,webcam:I,reset:E.reset,browser:{supported:w.supported}}};"undefined"!=typeof define&&define.amd?define([],function(){return e}):"undefined"!=typeof module&&module.exports?module.exports=e:this.Favico=e}(),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(function(e){function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=c),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each(function(){var o=e(this),i=o.data(k);i||(i=new n(this,t),o.data(k,i))})}function n(t,n){function C(t){if(!(ce()||e(t.target).closest(n.excludedElements,Be).length>0)){var o,i=t.originalEvent?t.originalEvent:t,r=S?i.touches[0]:i;return We=b,S?Fe=i.touches.length:t.preventDefault(),je=0,qe=null,Ye=null,Ue=0,ze=0,Ne=0,He=1,Xe=0,Qe=he(),_e=we(),le(),!S||Fe===n.fingers||n.fingers===v||_()?(de(0,r),Ge=Le(),2==Fe&&(de(1,i.touches[1]),ze=Ne=be(Qe[0].start,Qe[1].start)),(n.swipeStatus||n.pinchStatus)&&(o=j(i,We))):o=!1,o===!1?(We=E,j(i,We),o):(n.hold&&(et=setTimeout(e.proxy(function(){Be.trigger("hold",[i.target]),n.hold&&(o=n.hold.call(Be,i,i.target))},this),n.longTapThreshold)),ue(!0),null)}}function I(e){var t=e.originalEvent?e.originalEvent:e;if(We!==T&&We!==E&&!se()){var o,i=S?t.touches[0]:t,r=fe(i);if(Ke=Le(),S&&(Fe=t.touches.length),n.hold&&clearTimeout(et),We=x,2==Fe&&(0==ze?(de(1,t.touches[1]),ze=Ne=be(Qe[0].start,Qe[1].start)):(fe(t.touches[1]),Ne=be(Qe[0].end,Qe[1].end),Ye=Te(Qe[0].end,Qe[1].end)),He=xe(ze,Ne),Xe=Math.abs(ze-Ne)),Fe===n.fingers||n.fingers===v||!S||_()){if(qe=Me(r.start,r.end),X(e,qe),je=Ee(r.start,r.end),Ue=ye(),ge(qe,je),(n.swipeStatus||n.pinchStatus)&&(o=j(t,We)),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var a=!0;if(n.triggerOnTouchLeave){var l=ke(this);a=Ce(r.end,l)}!n.triggerOnTouchEnd&&a?We=R(x):n.triggerOnTouchLeave&&!a&&(We=R(T)),(We==E||We==T)&&j(t,We)}}else We=E,j(t,We);o===!1&&(We=E,j(t,We))}}function P(e){var t=e.originalEvent;return S&&t.touches.length>0?(ae(),!0):(se()&&(Fe=$e),Ke=Le(),Ue=ye(),z()||!U()?(We=E,j(t,We)):n.triggerOnTouchEnd||0==n.triggerOnTouchEnd&&We===x?(e.preventDefault(),We=T,j(t,We)):!n.triggerOnTouchEnd&&V()?(We=T,q(t,We,p)):We===x&&(We=E,j(t,We)),ue(!1),null)}function O(){Fe=0,Ke=0,Ge=0,ze=0,Ne=0,He=1,le(),ue(!1)}function A(e){var t=e.originalEvent;n.triggerOnTouchLeave&&(We=R(T),j(t,We))}function D(){Be.unbind(Pe,C),Be.unbind(Re,O),Be.unbind(Oe,I),Be.unbind(Ae,P),De&&Be.unbind(De,A),ue(!1)}function R(e){var t=e,o=H(),i=U(),r=z();return!o||r?t=E:!i||e!=x||n.triggerOnTouchEnd&&!n.triggerOnTouchLeave?!i&&e==T&&n.triggerOnTouchLeave&&(t=E):t=T,t}function j(e,t){var n=void 0;return Q()||F()?n=q(e,t,d):(B()||_())&&n!==!1&&(n=q(e,t,f)),ie()&&n!==!1?n=q(e,t,h):re()&&n!==!1?n=q(e,t,g):oe()&&n!==!1&&(n=q(e,t,p)),t===E&&O(e),t===T&&(S?0==e.touches.length&&O(e):O(e)),n}function q(t,c,u){var m=void 0;if(u==d){if(Be.trigger("swipeStatus",[c,qe||null,je||0,Ue||0,Fe,Qe]),n.swipeStatus&&(m=n.swipeStatus.call(Be,t,c,qe||null,je||0,Ue||0,Fe,Qe),m===!1))return!1;if(c==T&&W()){if(Be.trigger("swipe",[qe,je,Ue,Fe,Qe]),n.swipe&&(m=n.swipe.call(Be,t,qe,je,Ue,Fe,Qe),m===!1))return!1;switch(qe){case o:Be.trigger("swipeLeft",[qe,je,Ue,Fe,Qe]),n.swipeLeft&&(m=n.swipeLeft.call(Be,t,qe,je,Ue,Fe,Qe));break;case i:Be.trigger("swipeRight",[qe,je,Ue,Fe,Qe]),n.swipeRight&&(m=n.swipeRight.call(Be,t,qe,je,Ue,Fe,Qe));break;case r:Be.trigger("swipeUp",[qe,je,Ue,Fe,Qe]),n.swipeUp&&(m=n.swipeUp.call(Be,t,qe,je,Ue,Fe,Qe));break;case a:Be.trigger("swipeDown",[qe,je,Ue,Fe,Qe]),n.swipeDown&&(m=n.swipeDown.call(Be,t,qe,je,Ue,Fe,Qe))}}}if(u==f){if(Be.trigger("pinchStatus",[c,Ye||null,Xe||0,Ue||0,Fe,He,Qe]),n.pinchStatus&&(m=n.pinchStatus.call(Be,t,c,Ye||null,Xe||0,Ue||0,Fe,He,Qe),m===!1))return!1;if(c==T&&Y())switch(Ye){case l:Be.trigger("pinchIn",[Ye||null,Xe||0,Ue||0,Fe,He,Qe]),n.pinchIn&&(m=n.pinchIn.call(Be,t,Ye||null,Xe||0,Ue||0,Fe,He,Qe));break;case s:Be.trigger("pinchOut",[Ye||null,Xe||0,Ue||0,Fe,He,Qe]),n.pinchOut&&(m=n.pinchOut.call(Be,t,Ye||null,Xe||0,Ue||0,Fe,He,Qe))}}return u==p?(c===E||c===T)&&(clearTimeout(Je),clearTimeout(et),$()&&!ee()?(Ze=Le(),Je=setTimeout(e.proxy(function(){Ze=null,Be.trigger("tap",[t.target]),n.tap&&(m=n.tap.call(Be,t,t.target))},this),n.doubleTapThreshold)):(Ze=null,Be.trigger("tap",[t.target]),n.tap&&(m=n.tap.call(Be,t,t.target)))):u==h?(c===E||c===T)&&(clearTimeout(Je),Ze=null,Be.trigger("doubletap",[t.target]),n.doubleTap&&(m=n.doubleTap.call(Be,t,t.target))):u==g&&(c===E||c===T)&&(clearTimeout(Je),Ze=null,Be.trigger("longtap",[t.target]),n.longTap&&(m=n.longTap.call(Be,t,t.target))),m}function U(){var e=!0;return null!==n.threshold&&(e=je>=n.threshold),e}function z(){var e=!1;return null!==n.cancelThreshold&&null!==qe&&(e=me(qe)-je>=n.cancelThreshold),e}function N(){return null!==n.pinchThreshold?Xe>=n.pinchThreshold:!0}function H(){var e;return e=n.maxTimeThreshold&&Ue>=n.maxTimeThreshold?!1:!0}function X(e,t){if(n.allowPageScroll===c||_())e.preventDefault();else{var l=n.allowPageScroll===u;switch(t){case o:(n.swipeLeft&&l||!l&&n.allowPageScroll!=m)&&e.preventDefault();break;case i:(n.swipeRight&&l||!l&&n.allowPageScroll!=m)&&e.preventDefault();break;case r:(n.swipeUp&&l||!l&&n.allowPageScroll!=w)&&e.preventDefault();break;case a:(n.swipeDown&&l||!l&&n.allowPageScroll!=w)&&e.preventDefault()}}}function Y(){var e=G(),t=K(),n=N();return e&&t&&n}function _(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function B(){return!(!Y()||!_())}function W(){var e=H(),t=U(),n=G(),o=K(),i=z(),r=!i&&o&&n&&t&&e;return r}function F(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function Q(){return!(!W()||!F())}function G(){return Fe===n.fingers||n.fingers===v||!S}function K(){return 0!==Qe[0].end.x}function V(){return!!n.tap}function $(){return!!n.doubleTap}function Z(){return!!n.longTap}function J(){if(null==Ze)return!1;var e=Le();return $()&&e-Ze<=n.doubleTapThreshold}function ee(){return J()}function te(){return(1===Fe||!S)&&(isNaN(je)||jen.longTapThreshold&&y>je}function oe(){return!(!te()||!V())}function ie(){return!(!J()||!$())}function re(){return!(!ne()||!Z())}function ae(){Ve=Le(),$e=event.touches.length+1}function le(){Ve=0,$e=0}function se(){var e=!1;if(Ve){var t=Le()-Ve;t<=n.fingerReleaseThreshold&&(e=!0)}return e}function ce(){return!(Be.data(k+"_intouch")!==!0)}function ue(e){e===!0?(Be.bind(Oe,I),Be.bind(Ae,P),De&&Be.bind(De,A)):(Be.unbind(Oe,I,!1),Be.unbind(Ae,P,!1),De&&Be.unbind(De,A,!1)),Be.data(k+"_intouch",e===!0)}function de(e,t){var n=void 0!==t.identifier?t.identifier:0;return Qe[e].identifier=n,Qe[e].start.x=Qe[e].end.x=t.pageX||t.clientX,Qe[e].start.y=Qe[e].end.y=t.pageY||t.clientY,Qe[e]}function fe(e){var t=void 0!==e.identifier?e.identifier:0,n=pe(t);return n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function pe(e){for(var t=0;t=t;t++)e.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return e}function ge(e,t){t=Math.max(t,me(e)),_e[e].distance=t}function me(e){return _e[e]?_e[e].distance:void 0}function we(){var e={};return e[o]=ve(o),e[i]=ve(i),e[r]=ve(r),e[a]=ve(a),e}function ve(e){return{direction:e,distance:0}}function ye(){return Ke-Ge}function be(e,t){var n=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+o*o))}function xe(e,t){var n=t/e*1;return n.toFixed(2)}function Te(){return 1>He?s:l}function Ee(e,t){return Math.round(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function Se(e,t){var n=e.x-t.x,o=t.y-e.y,i=Math.atan2(o,n),r=Math.round(180*i/Math.PI);return 0>r&&(r=360-Math.abs(r)),r}function Me(e,t){var n=Se(e,t);return 45>=n&&n>=0?o:360>=n&&n>=315?o:n>=135&&225>=n?i:n>45&&135>n?a:r}function Le(){var e=new Date;return e.getTime()}function ke(t){t=e(t);var n=t.offset(),o={left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()};return o}function Ce(e,t){return e.x>t.left&&e.xt.top&&e.y/g,">").replace(/&/g,"&").replace(/\n/g,"
");a.html(e+" "),i()}function i(){var e=a.height(),t="hidden",n=l?e+u+s:e+u;n>f?(n=f,t="auto"):d>n&&(n=d),r.height()!==n&&r.css({overflow:t,height:n+"px"})}if("textarea"!==this.type)return!1;var r=e(this).css({resize:"none",overflow:"hidden"}),a=e("
").css({position:"absolute",display:"none","word-wrap":"break-word","white-space":"pre-wrap","border-style":"solid"}).appendTo(document.body);n();var l="border-box"==r.css("box-sizing")||"border-box"==r.css("-moz-box-sizing")||"border-box"==r.css("-webkit-box-sizing"),s=parseInt(r.css("border-top-width"))+parseInt(r.css("padding-top"))+parseInt(r.css("padding-bottom"))+parseInt(r.css("border-bottom-width")),c=parseInt(r.css("height"),10),u=parseInt(r.css("line-height"),10)||parseInt(r.css("font-size"),10),d=2*u>c?2*u:c,f=parseInt(r.css("max-height"),10)>-1?parseInt(r.css("max-height"),10):Number.MAX_VALUE;r.bind("keyup change cut paste",function(){o()}),e(window).bind("resize",function(){var e=parseInt(r.width(),10);a.width()!==e&&(a.css({width:e+"px"}),o())}),r.bind("blur",function(){i()}),r.bind("updateHeight",function(){n(),o()}),e(function(){o()})})}};e.fn.flexible=function(n){return t[n]?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.flexible"):t.init.apply(this,arguments)}}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){"use strict";function t(e){return"string"==typeof e?parseInt(e,10):~~e}var n={wheelSpeed:1,wheelPropagation:!1,swipePropagation:!0,minScrollbarLength:null,maxScrollbarLength:null,useBothWheelAxes:!1,useKeyboard:!0,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,includePadding:!1},o=0,i=function(){var e=o++;return function(t){var n=".perfect-scrollbar-"+e;return void 0===t?n:t+n}},r="WebkitAppearance"in document.documentElement.style;e.fn.perfectScrollbar=function(o,a){return this.each(function(){function l(e,n){var o=e+n,i=C-q;U=0>o?0:o>i?i:o;var r=t(U*(P-C)/(C-q));M.scrollTop(r)}function s(e,n){var o=e+n,i=k-A; + +D=0>o?0:o>i?i:o;var r=t(D*(I-k)/(k-A));M.scrollLeft(r)}function c(e){return S.minScrollbarLength&&(e=Math.max(e,S.minScrollbarLength)),S.maxScrollbarLength&&(e=Math.min(e,S.maxScrollbarLength)),e}function u(){var e={width:R};e.left=N?M.scrollLeft()+k-I:M.scrollLeft(),W?e.bottom=B-M.scrollTop():e.top=F+M.scrollTop(),Y.css(e);var t={top:M.scrollTop(),height:z};Z?t.right=N?I-M.scrollLeft()-$-V.outerWidth():$-M.scrollLeft():t.left=N?M.scrollLeft()+2*k-I-J-V.outerWidth():J+M.scrollLeft(),K.css(t),_.css({left:D,width:A-Q}),V.css({top:U,height:q-ee})}function d(){M.removeClass("ps-active-x"),M.removeClass("ps-active-y"),k=S.includePadding?M.innerWidth():M.width(),C=S.includePadding?M.innerHeight():M.height(),I=M.prop("scrollWidth"),P=M.prop("scrollHeight"),!S.suppressScrollX&&I>k+S.scrollXMarginOffset?(O=!0,R=k-G,A=c(t(R*k/I)),D=t(M.scrollLeft()*(R-A)/(I-k))):(O=!1,A=0,D=0,M.scrollLeft(0)),!S.suppressScrollY&&P>C+S.scrollYMarginOffset?(j=!0,z=C-te,q=c(t(z*C/P)),U=t(M.scrollTop()*(z-q)/(P-C))):(j=!1,q=0,U=0,M.scrollTop(0)),D>=R-A&&(D=R-A),U>=z-q&&(U=z-q),u(),O&&M.addClass("ps-active-x"),j&&M.addClass("ps-active-y")}function f(){var t,n,o=function(e){s(t,e.pageX-n),d(),e.stopPropagation(),e.preventDefault()},i=function(){Y.removeClass("in-scrolling"),e(X).unbind(H("mousemove"),o)};_.bind(H("mousedown"),function(r){n=r.pageX,t=_.position().left,Y.addClass("in-scrolling"),e(X).bind(H("mousemove"),o),e(X).one(H("mouseup"),i),r.stopPropagation(),r.preventDefault()}),t=n=null}function p(){var t,n,o=function(e){l(t,e.pageY-n),d(),e.stopPropagation(),e.preventDefault()},i=function(){K.removeClass("in-scrolling"),e(X).unbind(H("mousemove"),o)};V.bind(H("mousedown"),function(r){n=r.pageY,t=V.position().top,K.addClass("in-scrolling"),e(X).bind(H("mousemove"),o),e(X).one(H("mouseup"),i),r.stopPropagation(),r.preventDefault()}),t=n=null}function h(e,t){var n=M.scrollTop();if(0===e){if(!j)return!1;if(0===n&&t>0||n>=P-C&&0>t)return!S.wheelPropagation}var o=M.scrollLeft();if(0===t){if(!O)return!1;if(0===o&&0>e||o>=I-k&&e>0)return!S.wheelPropagation}return!0}function g(e,t){var n=M.scrollTop(),o=M.scrollLeft(),i=Math.abs(e),r=Math.abs(t);if(r>i){if(0>t&&n===P-C||t>0&&0===n)return!S.swipePropagation}else if(i>r&&(0>e&&o===I-k||e>0&&0===o))return!S.swipePropagation;return!0}function m(){function e(e){var t=e.originalEvent.deltaX,n=-1*e.originalEvent.deltaY;return(void 0===t||void 0===n)&&(t=-1*e.originalEvent.wheelDeltaX/6,n=e.originalEvent.wheelDeltaY/6),e.originalEvent.deltaMode&&1===e.originalEvent.deltaMode&&(t*=10,n*=10),t!==t&&n!==n&&(t=0,n=e.originalEvent.wheelDelta),[t,n]}function t(t){if(r||!(M.find("select:focus").length>0)){var o=e(t),i=o[0],a=o[1];n=!1,S.useBothWheelAxes?j&&!O?(M.scrollTop(a?M.scrollTop()-a*S.wheelSpeed:M.scrollTop()+i*S.wheelSpeed),n=!0):O&&!j&&(M.scrollLeft(i?M.scrollLeft()+i*S.wheelSpeed:M.scrollLeft()-a*S.wheelSpeed),n=!0):(M.scrollTop(M.scrollTop()-a*S.wheelSpeed),M.scrollLeft(M.scrollLeft()+i*S.wheelSpeed)),d(),n=n||h(i,a),n&&(t.stopPropagation(),t.preventDefault())}}var n=!1;void 0!==window.onwheel?M.bind(H("wheel"),t):void 0!==window.onmousewheel&&M.bind(H("mousewheel"),t)}function w(){var t=!1;M.bind(H("mouseenter"),function(){t=!0}),M.bind(H("mouseleave"),function(){t=!1});var n=!1;e(X).bind(H("keydown"),function(o){if((!o.isDefaultPrevented||!o.isDefaultPrevented())&&t){for(var i=document.activeElement?document.activeElement:X.activeElement;i.shadowRoot;)i=i.shadowRoot.activeElement;if(!e(i).is(":input,[contenteditable]")){var r=0,a=0;switch(o.which){case 37:r=-30;break;case 38:a=30;break;case 39:r=30;break;case 40:a=-30;break;case 33:a=90;break;case 32:case 34:a=-90;break;case 35:a=o.ctrlKey?-P:-C;break;case 36:a=o.ctrlKey?M.scrollTop():C;break;default:return}M.scrollTop(M.scrollTop()-a),M.scrollLeft(M.scrollLeft()+r),n=h(r,a),n&&o.preventDefault()}}})}function v(){function e(e){e.stopPropagation()}V.bind(H("click"),e),K.bind(H("click"),function(e){var n=t(q/2),o=e.pageY-K.offset().top-n,i=C-q,r=o/i;0>r?r=0:r>1&&(r=1),M.scrollTop((P-C)*r)}),_.bind(H("click"),e),Y.bind(H("click"),function(e){var n=t(A/2),o=e.pageX-Y.offset().left-n,i=k-A,r=o/i;0>r?r=0:r>1&&(r=1),M.scrollLeft((I-k)*r)})}function y(){function t(){var e=window.getSelection?window.getSelection():document.getSlection?document.getSlection():{rangeCount:0};return 0===e.rangeCount?null:e.getRangeAt(0).commonAncestorContainer}function n(){i||(i=setInterval(function(){return L()?(M.scrollTop(M.scrollTop()+r.top),M.scrollLeft(M.scrollLeft()+r.left),void d()):void clearInterval(i)},50))}function o(){i&&(clearInterval(i),i=null),Y.removeClass("in-scrolling"),K.removeClass("in-scrolling")}var i=null,r={top:0,left:0},a=!1;e(X).bind(H("selectionchange"),function(){e.contains(M[0],t())?a=!0:(a=!1,o())}),e(window).bind(H("mouseup"),function(){a&&(a=!1,o())}),e(window).bind(H("mousemove"),function(e){if(a){var t={x:e.pageX,y:e.pageY},i=M.offset(),l={left:i.left,right:i.left+M.outerWidth(),top:i.top,bottom:i.top+M.outerHeight()};t.xl.right-3?(r.left=5,Y.addClass("in-scrolling")):r.left=0,t.yl.top+3-t.y?-5:-20,K.addClass("in-scrolling")):t.y>l.bottom-3?(r.top=5>t.y-l.bottom+3?5:20,K.addClass("in-scrolling")):r.top=0,0===r.top&&0===r.left?o():n()}})}function b(t,n){function o(e,t){M.scrollTop(M.scrollTop()-t),M.scrollLeft(M.scrollLeft()-e),d()}function i(){w=!0}function r(){w=!1}function a(e){return e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e.originalEvent}function l(e){var t=e.originalEvent;return t.targetTouches&&1===t.targetTouches.length?!0:t.pointerType&&"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE?!0:!1}function s(e){if(l(e)){v=!0;var t=a(e);f.pageX=t.pageX,f.pageY=t.pageY,p=(new Date).getTime(),null!==m&&clearInterval(m),e.stopPropagation()}}function c(e){if(!w&&v&&l(e)){var t=a(e),n={pageX:t.pageX,pageY:t.pageY},i=n.pageX-f.pageX,r=n.pageY-f.pageY;o(i,r),f=n;var s=(new Date).getTime(),c=s-p;c>0&&(h.x=i/c,h.y=r/c,p=s),g(i,r)&&(e.stopPropagation(),e.preventDefault())}}function u(){!w&&v&&(v=!1,clearInterval(m),m=setInterval(function(){return L()?.01>Math.abs(h.x)&&.01>Math.abs(h.y)?void clearInterval(m):(o(30*h.x,30*h.y),h.x*=.8,void(h.y*=.8)):void clearInterval(m)},10))}var f={},p=0,h={},m=null,w=!1,v=!1;t&&(e(window).bind(H("touchstart"),i),e(window).bind(H("touchend"),r),M.bind(H("touchstart"),s),M.bind(H("touchmove"),c),M.bind(H("touchend"),u)),n&&(window.PointerEvent?(e(window).bind(H("pointerdown"),i),e(window).bind(H("pointerup"),r),M.bind(H("pointerdown"),s),M.bind(H("pointermove"),c),M.bind(H("pointerup"),u)):window.MSPointerEvent&&(e(window).bind(H("MSPointerDown"),i),e(window).bind(H("MSPointerUp"),r),M.bind(H("MSPointerDown"),s),M.bind(H("MSPointerMove"),c),M.bind(H("MSPointerUp"),u)))}function x(){M.bind(H("scroll"),function(){d()})}function T(){M.unbind(H()),e(window).unbind(H()),e(X).unbind(H()),M.data("perfect-scrollbar",null),M.data("perfect-scrollbar-update",null),M.data("perfect-scrollbar-destroy",null),_.remove(),V.remove(),Y.remove(),K.remove(),M=Y=K=_=V=O=j=k=C=I=P=A=D=B=W=F=q=U=$=Z=J=N=H=null}function E(){d(),x(),f(),p(),v(),y(),m(),(ne||oe)&&b(ne,oe),S.useKeyboard&&w(),M.data("perfect-scrollbar",M),M.data("perfect-scrollbar-update",d),M.data("perfect-scrollbar-destroy",T)}var S=e.extend(!0,{},n),M=e(this),L=function(){return!!M};if("object"==typeof o?e.extend(!0,S,o):a=o,"update"===a)return M.data("perfect-scrollbar-update")&&M.data("perfect-scrollbar-update")(),M;if("destroy"===a)return M.data("perfect-scrollbar-destroy")&&M.data("perfect-scrollbar-destroy")(),M;if(M.data("perfect-scrollbar"))return M.data("perfect-scrollbar");M.addClass("ps-container");var k,C,I,P,O,A,D,R,j,q,U,z,N="rtl"===M.css("direction"),H=i(),X=this.ownerDocument||document,Y=e("
").appendTo(M),_=e("
").appendTo(Y),B=t(Y.css("bottom")),W=B===B,F=W?null:t(Y.css("top")),Q=t(Y.css("borderLeftWidth"))+t(Y.css("borderRightWidth")),G=t(Y.css("marginLeft"))+t(Y.css("marginRight")),K=e("
").appendTo(M),V=e("
").appendTo(K),$=t(K.css("right")),Z=$===$,J=Z?null:t(K.css("left")),ee=t(K.css("borderTopWidth"))+t(K.css("borderBottomWidth")),te=t(K.css("marginTop"))+t(K.css("marginBottom")),ne="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,oe=null!==window.navigator.msMaxTouchPoints;return E(),M})}}); })(this); // WCF.js -(function (window, undefined) { })(this); +(function (window, undefined) {"use strict";function wcfEval(expression){return eval(expression)}!function(){var t=jQuery.fn.data;jQuery.fn.data=function(e){if(e)switch(typeof e){case"object":for(var i in e)if(i.match(/ID$/)){var n=e[i];delete e[i],i=i.replace(/ID$/,"-id"),e[i]=n}arguments[0]=e;break;case"string":e.match(/ID$/)&&(arguments[0]=e.replace(/ID$/,"-id"))}var s=t.apply(this,arguments);if(void 0===e)for(var i in s)i.match(/Id$/)&&(s[i.replace(/Id$/,"ID")]=s[i],delete s[i]);return s},window.console||(window.console={});for(var e=["log","info","warn","exception","assert","dir","dirxml","trace","group","groupEnd","groupCollapsed","profile","profileEnd","count","clear","time","timeEnd","timeStamp","table","error"],i=0;ii;i++)t=this.charCodeAt(i),e=(e<<5)-e+t,e&=e;return e},window.shuffle=function(t){for(var e,i,n=t.length;0!==n;)i=Math.floor(Math.random()*n),n-=1,e=t[n],t[n]=t[i],t[i]=e;return this},function(t){var e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n={browser:i[1]||"",version:i[2]||"0"},s={};n.browser&&(s[n.browser]=!0,s.version=n.version),s.chrome?s.webkit=!0:s.webkit&&(s.safari=!0),t.browser=t.browser||{},t.browser=$.extend(t.browser,s),t.browser.touch=!!("ontouchstart"in window)||!!("msMaxTouchPoints"in window.navigator)&&window.navigator.msMaxTouchPoints>0,t.browser.smartphone="bottom"==$("html").css("caption-side"),t.browser.mozilla&&e.match(/trident/)&&(t.browser.mozilla=!1,t.browser.msie=!0),t.browser.iOS=/\((ipad|iphone|ipod);/.test(e),t.browser.iOS&&$("html").addClass("iOS"),t.browser.android=-1!==e.indexOf("android"),t.browser.editor="redactor",t.browser.ckeditor=!1,t.browser.redactor=!0,t.browser.iOS&&(t.fn.focus=function(t,e){return arguments.length>0?this.on("focus",null,t,e):this.trigger("focus")})}(jQuery),window.WCF={},$.extend(!0,{removeArrayValue:function(t,e){return $.grep(t,function(t){return e!==t})},wcfEscapeID:function(t){return t.replace(/(:|\.)/g,"\\$1")},wcfIsset:function(t){return!!$("#"+$.wcfEscapeID(t)).length},getLength:function(t){var e=0;for(var i in t)t.hasOwnProperty(i)&&e++;return e}}),$.fn.extend({getTagName:function(){return this.length?this.get(0).tagName.toLowerCase():""},getDimensions:function(t){var e={},i={},n=!1;switch(this.is(":hidden")&&(e=WCF.getInlineCSS(this),n=!0,this.css({display:"block",visibility:"hidden"})),t){case"inner":i={height:this.innerHeight(),width:this.innerWidth()};break;case"outer":i={height:this.outerHeight(),width:this.outerWidth()};break;default:i={height:this.height(),width:this.width()}}return n&&WCF.revertInlineCSS(this,e,["display","visibility"]),i},getOffsets:function(t){var e={},i={},n=!1;switch(this.is(":hidden")&&(e=WCF.getInlineCSS(this),n=!0,this.css({display:"block",visibility:"hidden"})),t){case"offset":i=this.offset();break;case"position":default:i=this.position()}return n&&WCF.revertInlineCSS(this,e,["display","visibility"]),i},makePositioned:function(t,e){"absolute"!=t&&"fixed"!=t&&(t="absolute");var i=this.getOffsets("position");return this.css({position:t,left:i.left,margin:0,top:i.top}),e&&this.remove().appentTo("body"),this},disable:function(){return this.attr("disabled","disabled")},enable:function(){return this.removeAttr("disabled")},wcfIdentify:function(){return this.attr("id")||this.attr("id",WCF.getRandomID()),this.attr("id")},getCaret:function(){if(this.is("input")){if("text"!=this.attr("type")&&"password"!=this.attr("type"))return-1}else if(!this.is("textarea"))return-1;var t=0,e=this.get(0);if(document.selection){this.focus();var i=document.selection.createRange();i.moveStart("character",-this.val().length),t=i.text.length}else(e.selectionStart||"0"==e.selectionStart)&&(t=parseInt(e.selectionStart));return t},setCaret:function(t){if(this.is("input")){if("text"!=this.attr("type")&&"password"!=this.attr("type"))return!1}else if(!this.is("textarea"))return!1;var e=this.get(0);if(this.focus(),document.selection){var i=document.selection.createRange();i.moveStart("character",t),i.moveEnd("character",0),i.select()}else(e.selectionStart||"0"==e.selectionStart)&&(e.selectionStart=t,e.selectionEnd=t);return!0},wcfDropIn:function(t,e,i){return t||(t="up"),i&&parseInt(i)||(i=200),this.show(WCF.getEffect(this,"drop"),{direction:t},i,e)},wcfDropOut:function(t,e,i){return t||(t="down"),i&&parseInt(i)||(i=200),this.hide(WCF.getEffect(this,"drop"),{direction:t},i,e)},wcfBlindIn:function(t,e,i){return t||(t="vertical"),i&&parseInt(i)||(i=200),this.show(WCF.getEffect(this,"blind"),{direction:t},i,e)},wcfBlindOut:function(t,e,i){return t||(t="vertical"),i&&parseInt(i)||(i=200),this.hide(WCF.getEffect(this,"blind"),{direction:t},i,e)},wcfHighlight:function(t,e){return this.effect("highlight",t,600,e)},wcfFadeIn:function(t,e){return e&&parseInt(e)||(e=200),this.show(WCF.getEffect(this,"fade"),{},e,t)},wcfFadeOut:function(t,e){return e&&parseInt(e)||(e=200),this.hide(WCF.getEffect(this,"fade"),{},e,t)},cssAsNumber:function(t){if(this.length){var e=this.css(t);if(void 0!==e)return parseInt(e.replace(/px$/,""))}return 0}}),$.extend(WCF,{activeDialogs:0,_idCounter:0,getRandomID:function(){var t="";do t="wcf"+this._idCounter++;while($.wcfIsset(t));return t},inArray:function(t,e){return-1!=$.inArray(t,e)},getEffect:function(t,e){return t.is("tr")?"highlight":e},getInlineCSS:function(t){var e={},i=t.attr("style");if(!i)return{};i=i.split(";");for(var n=0,s=i.length;s>n;n++){var a=$.trim(i[n]);""!=a&&(a=a.split(":"),e[$.trim(a[0])]=$.trim(a[1]))}return e},revertInlineCSS:function(t,e,i){for(var n=0,s=i.length;s>n;n++){var a=i[n];e[a]?t.css(a,e[a]):t.css(a,"")}},getUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,i="x"==t?e:3&e|8;return i.toString(16)})},base64toBlob:function(t,e,i){e=e||"",i=i||512;for(var n=atob(t),s=[],a=0;as;s++){var o=i[s].trim();o.length&&(n.length&&(n+="-"),n+=o.toLowerCase())}return"index.php?"+n+"/&"})}}),WCF.Browser={_isChrome:null,isChrome:function(){return null===this._isChrome&&(this._isChrome=!1,/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&(this._isChrome=!0)),this._isChrome}},WCF.Dropdown={_callbacks:{},_didInit:!1,_dropdowns:{},_menuContainer:null,_menus:{},init:function(){null===this._menuContainer&&(this._menuContainer=$('