From 057b32badb2766989fdff6950d65a66fe2b814a4 Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Tue, 24 Jun 2025 14:50:47 +0200 Subject: [PATCH] Fix popup add to cart --- .../themes/new-theme/public/main.bundle.js | 58560 ++++++- js/jquery/plugins/growl/jquery.growl.js | 418 +- .../views/js/pdproductattributeslist.js | 326 +- .../at_movic/assets/cache/bottom-06ccf6904.js | 116790 +++++++++++++- .../at_movic/assets/cache/bottom-39e208904.js | 116078 +++++++++++++- .../at_movic/assets/cache/bottom-65fff4904.js | 115950 +++++++++++++- .../at_movic/assets/cache/bottom-da5253904.js | 2 +- .../at_movic/assets/cache/bottom-e2a33c904.js | 117231 ++++++++++++++- .../at_movic/assets/cache/bottom-ea7a14904.js | 2 +- 9 files changed, 515680 insertions(+), 9677 deletions(-) diff --git a/admin086k8e6t9/themes/new-theme/public/main.bundle.js b/admin086k8e6t9/themes/new-theme/public/main.bundle.js index e9067fe2..e32757b4 100644 --- a/admin086k8e6t9/themes/new-theme/public/main.bundle.js +++ b/admin086k8e6t9/themes/new-theme/public/main.bundle.js @@ -1,335 +1,58237 @@ -window.main=function(e){function t(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=542)}([function(e,t,i){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,i){"use strict";t.__esModule=!0;var n=i(19),s=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=function(){function e(e,t){for(var i=0;i0)for(i=0;i0?"future":"past"];return T(i)?i(t):i.replace(/%s/i,t)}function I(e,t){var i=e.toLowerCase();Rn[i]=Rn[i+"s"]=Rn[t]=e}function j(e){return"string"==typeof e?Rn[e]||Rn[e.toLowerCase()]:void 0}function W(e){var t,i,n={};for(i in e)d(e,i)&&(t=j(i))&&(n[t]=e[i]);return n}function N(e,t){$n[e]=t}function F(e){var t=[];for(var i in e)t.push({unit:i,priority:$n[i]});return t.sort(function(e,t){return e.priority-t.priority}),t}function z(e,t,i){var n=""+Math.abs(e),s=t-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function R(e,t,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(Kn[e]=s),t&&(Kn[t[0]]=function(){return z(s.apply(this,arguments),t[1],t[2])}),i&&(Kn[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function $(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,i,n=e.match(Bn);for(t=0,i=n.length;t=0&&Un.test(e);)e=e.replace(Un,i),Un.lastIndex=0,n-=1;return e}function K(e,t,i){cs[e]=T(t)?t:function(e,n){return e&&i?i:t}}function V(e,t){return d(cs,e)?cs[e](t._strict,t._locale):new RegExp(G(e))}function G(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e,t){var i,n=t;for("string"==typeof e&&(e=[e]),o(t)&&(n=function(e,i){i[t]=w(e)}),i=0;i=0?(o=new Date(e+400,t,i,n,s,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,i,n,s,r,a),o}function we(e){var t;if(e<100&&e>=0){var i=Array.prototype.slice.call(arguments);i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Me(e,t,i){var n=7+t-i;return-(7+we(e,0,n).getUTCDay()-t)%7+n-1}function ke(e,t,i,n,s){var r,a,o=(7+i-n)%7,l=Me(e,n,s),u=1+7*(t-1)+o+l;return u<=0?(r=e-1,a=ee(r)+u):u>ee(e)?(r=e+1,a=u-ee(e)):(r=e,a=u),{year:r,dayOfYear:a}}function Le(e,t,i){var n,s,r=Me(e.year(),t,i),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?(s=e.year()-1,n=a+De(s,t,i)):a>De(e.year(),t,i)?(n=a-De(e.year(),t,i),s=e.year()+1):(s=e.year(),n=a),{week:n,year:s}}function De(e,t,i){var n=Me(e,t,i),s=Me(e+1,t,i);return(ee(e)-n+s)/7}function Te(e){return Le(e,this._week.dow,this._week.doy).week}function Ye(){return this._week.dow}function xe(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Se(e){var t=Le(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ee(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function He(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Oe(e,t){var i=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ae(i,this._week.dow):e?i[e.day()]:i}function Pe(e){return!0===e?Ae(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ie(e){return!0===e?Ae(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function je(e,t,i){var n,s,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===t?(s=Ms.call(this._weekdaysParse,a),-1!==s?s:null):"ddd"===t?(s=Ms.call(this._shortWeekdaysParse,a),-1!==s?s:null):(s=Ms.call(this._minWeekdaysParse,a),-1!==s?s:null):"dddd"===t?-1!==(s=Ms.call(this._weekdaysParse,a))?s:-1!==(s=Ms.call(this._shortWeekdaysParse,a))?s:(s=Ms.call(this._minWeekdaysParse,a),-1!==s?s:null):"ddd"===t?-1!==(s=Ms.call(this._shortWeekdaysParse,a))?s:-1!==(s=Ms.call(this._weekdaysParse,a))?s:(s=Ms.call(this._minWeekdaysParse,a),-1!==s?s:null):-1!==(s=Ms.call(this._minWeekdaysParse,a))?s:-1!==(s=Ms.call(this._weekdaysParse,a))?s:(s=Ms.call(this._shortWeekdaysParse,a),-1!==s?s:null)}function We(e,t,i){var n,s,r;if(this._weekdaysParseExact)return je.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=h([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Ne(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ee(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function ze(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=He(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Re(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=As),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $e(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Os),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Be(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ps),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,i,n,s,r,a=[],o=[],l=[],u=[];for(t=0;t<7;t++)i=h([2e3,1]).day(t),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),r=this.weekdays(i,""),a.push(n),o.push(s),l.push(r),u.push(n),u.push(s),u.push(r);for(a.sort(e),o.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)o[t]=J(o[t]),l[t]=J(l[t]),u[t]=J(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ke(){return this.hours()||24}function Ve(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ge(e,t){return t._meridiemParse}function Je(e){return"p"===(e+"").toLowerCase().charAt(0)}function Xe(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,i,n,s,r=0;r0;){if(n=et(s.slice(0,t).join("-")))return n;if(i&&i.length>=t&&M(s,i,!0)>=t-1)break;t--}r++}return Is}function et(t){var n=null;if(!Fs[t]&&void 0!==e&&e&&e.exports)try{n=Is._abbr;i(623)("./"+t),tt(n)}catch(e){}return Fs[t]}function tt(e,t){var i;return e&&(i=a(t)?st(e):it(e,t),i?Is=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Is._abbr}function it(e,t){if(null!==t){var i,n=Ns;if(t.abbr=e,null!=Fs[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Fs[e]._config;else if(null!=t.parentLocale)if(null!=Fs[t.parentLocale])n=Fs[t.parentLocale]._config;else{if(null==(i=et(t.parentLocale)))return zs[t.parentLocale]||(zs[t.parentLocale]=[]),zs[t.parentLocale].push({name:e,config:t}),null;n=i._config}return Fs[e]=new C(x(n,t)),zs[e]&&zs[e].forEach(function(e){it(e.name,e.config)}),tt(e),Fs[e]}return delete Fs[e],null}function nt(e,t){if(null!=t){var i,n,s=Ns;n=et(e),null!=n&&(s=n._config),t=x(s,t),i=new C(t),i.parentLocale=Fs[e],Fs[e]=i,tt(e)}else null!=Fs[e]&&(null!=Fs[e].parentLocale?Fs[e]=Fs[e].parentLocale:null!=Fs[e]&&delete Fs[e]);return Fs[e]}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Is;if(!n(e)){if(t=et(e))return t;e=[e]}return Ze(e)}function rt(){return jn(Fs)}function at(e){var t,i=e._a;return i&&-2===f(e).overflow&&(t=i[fs]<0||i[fs]>11?fs:i[ms]<1||i[ms]>ue(i[ps],i[fs])?ms:i[_s]<0||i[_s]>24||24===i[_s]&&(0!==i[gs]||0!==i[vs]||0!==i[ys])?_s:i[gs]<0||i[gs]>59?gs:i[vs]<0||i[vs]>59?vs:i[ys]<0||i[ys]>999?ys:-1,f(e)._overflowDayOfYear&&(tms)&&(t=ms),f(e)._overflowWeeks&&-1===t&&(t=bs),f(e)._overflowWeekday&&-1===t&&(t=ws),f(e).overflow=t),e}function ot(e,t,i){return null!=e?e:null!=t?t:i}function lt(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function ut(e){var t,i,n,s,r,a=[];if(!e._d){for(n=lt(e),e._w&&null==e._a[ms]&&null==e._a[fs]&&dt(e),null!=e._dayOfYear&&(r=ot(e._a[ps],n[ps]),(e._dayOfYear>ee(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),i=we(r,0,e._dayOfYear),e._a[fs]=i.getUTCMonth(),e._a[ms]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_s]&&0===e._a[gs]&&0===e._a[vs]&&0===e._a[ys]&&(e._nextDay=!0,e._a[_s]=0),e._d=(e._useUTC?we:be).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_s]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(f(e).weekdayMismatch=!0)}}function dt(e){var t,i,n,s,r,a,o,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,a=4,i=ot(t.GG,e._a[ps],Le(Yt(),1,4).year),n=ot(t.W,1),((s=ot(t.E,1))<1||s>7)&&(l=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var u=Le(Yt(),r,a);i=ot(t.gg,e._a[ps],u.year),n=ot(t.w,u.week),null!=t.d?((s=t.d)<0||s>6)&&(l=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(l=!0)):s=r}n<1||n>De(i,r,a)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(o=ke(i,n,s,r,a),e._a[ps]=o.year,e._dayOfYear=o.dayOfYear)}function ct(e){var t,i,n,s,r,a,o=e._i,l=Rs.exec(o)||$s.exec(o);if(l){for(f(e).iso=!0,t=0,i=Us.length;t0&&f(e).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),u+=n.length),Kn[r]?(n?f(e).empty=!1:f(e).unusedTokens.push(r),Z(r,n,e)):e._strict&&!n&&f(e).unusedTokens.push(r);f(e).charsLeftOver=l-u,o.length>0&&f(e).unusedInput.push(o),e._a[_s]<=12&&!0===f(e).bigHour&&e._a[_s]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[_s]=bt(e._locale,e._a[_s],e._meridiem),ut(e),at(e)}function bt(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?(n=e.isPM(i),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function wt(e){var t,i,n,s,r;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=Lt(e),e._a){var t=e._isUTC?h(e._a):Yt(e._a);this._isDSTShifted=this.isValid()&&M(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Gt(){return!!this.isValid()&&!this._isUTC}function Jt(){return!!this.isValid()&&this._isUTC}function Xt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var i,n,s,r=e,a=null;return Pt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=tr.exec(e))?(i="-"===a[1]?-1:1,r={y:0,d:w(a[ms])*i,h:w(a[_s])*i,m:w(a[gs])*i,s:w(a[vs])*i,ms:w(It(1e3*a[ys]))*i}):(a=ir.exec(e))?(i="-"===a[1]?-1:1,r={y:Zt(a[2],i),M:Zt(a[3],i),w:Zt(a[4],i),d:Zt(a[5],i),h:Zt(a[6],i),m:Zt(a[7],i),s:Zt(a[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(s=ti(Yt(r.from),Yt(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),n=new Ot(r),Pt(e)&&d(e,"_locale")&&(n._locale=e._locale),n}function Zt(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function ei(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function ti(e,t){var i;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?i=ei(e,t):(i=ei(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ii(e,t){return function(i,n){var s,r;return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),i="string"==typeof i?+i:i,s=Qt(i,n),ni(this,s,e),this}}function ni(e,i,n,s){var r=i._milliseconds,a=It(i._days),o=It(i._months);e.isValid()&&(s=null==s||s,o&&fe(e,se(e,"Month")+o*n),a&&re(e,"Date",se(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&t.updateOffset(e,a||o))}function si(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ri(e,i){var n=e||Yt(),s=Nt(n,this).startOf("day"),r=t.calendarFormat(this,s)||"sameElse",a=i&&(T(i[r])?i[r].call(this,n):i[r]);return this.format(a||this.localeData().calendar(r,this,Yt(n)))}function ai(){return new v(this)}function oi(e,t){var i=y(e)?e:Yt(e);return!(!this.isValid()||!i.isValid())&&(t=j(t)||"millisecond","millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=t+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+s)}function vi(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=U(this,e);return this.localeData().postformat(i)}function yi(e,t){return this.isValid()&&(y(e)&&e.isValid()||Yt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bi(e){return this.from(Yt(),e)}function wi(e,t){return this.isValid()&&(y(e)&&e.isValid()||Yt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Mi(e){return this.to(Yt(),e)}function ki(e){var t;return void 0===e?this._locale._abbr:(t=st(e),null!=t&&(this._locale=t),this)}function Li(){return this._locale}function Di(e,t){return(e%t+t)%t}function Ti(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-ur:new Date(e,t,i).valueOf()}function Yi(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-ur:Date.UTC(e,t,i)}function xi(e){var i;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Yi:Ti;switch(e){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=Di(i+(this._isUTC?0:this.utcOffset()*or),lr);break;case"minute":i=this._d.valueOf(),i-=Di(i,or);break;case"second":i=this._d.valueOf(),i-=Di(i,ar)}return this._d.setTime(i),t.updateOffset(this,!0),this}function Ci(e){var i;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Yi:Ti;switch(e){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=lr-Di(i+(this._isUTC?0:this.utcOffset()*or),lr)-1;break;case"minute":i=this._d.valueOf(),i+=or-Di(i,or)-1;break;case"second":i=this._d.valueOf(),i+=ar-Di(i,ar)-1}return this._d.setTime(i),t.updateOffset(this,!0),this}function Si(){return this._d.valueOf()-6e4*(this._offset||0)}function Ei(){return Math.floor(this.valueOf()/1e3)}function Hi(){return new Date(this.valueOf())}function Ai(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Oi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Pi(){return this.isValid()?this.toISOString():null}function Ii(){return m(this)}function ji(){return c({},f(this))}function Wi(){return f(this).overflow}function Ni(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Fi(e,t){R(0,[e,e.length],0,t)}function zi(e){return Ui.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ri(e){return Ui.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $i(){return De(this.year(),1,4)}function Bi(){var e=this.localeData()._week;return De(this.year(),e.dow,e.doy)}function Ui(e,t,i,n,s){var r;return null==e?Le(this,n,s).year:(r=De(e,n,s),t>r&&(t=r),qi.call(this,e,t,i,n,s))}function qi(e,t,i,n,s){var r=ke(e,t,i,n,s),a=we(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ki(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Vi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Gi(e,t){t[ys]=w(1e3*("0."+e))}function Ji(){return this._isUTC?"UTC":""}function Xi(){return this._isUTC?"Coordinated Universal Time":""}function Qi(e){return Yt(1e3*e)}function Zi(){return Yt.apply(null,arguments).parseZone()}function en(e){return e}function tn(e,t,i,n){var s=st(),r=h().set(n,t);return s[i](r,e)}function nn(e,t,i){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return tn(e,t,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=tn(e,n,i,"month");return s}function sn(e,t,i,n){"boolean"==typeof e?(o(t)&&(i=t,t=void 0),t=t||""):(t=e,i=t,e=!1,o(t)&&(i=t,t=void 0),t=t||"");var s=st(),r=e?s._week.dow:0;if(null!=i)return tn(t,(i+r)%7,n,"day");var a,l=[];for(a=0;a<7;a++)l[a]=tn(t,(a+r)%7,n,"day");return l}function rn(e,t){return nn(e,t,"months")}function an(e,t){return nn(e,t,"monthsShort")}function on(e,t,i){return sn(e,t,i,"weekdays")}function ln(e,t,i){return sn(e,t,i,"weekdaysShort")}function un(e,t,i){return sn(e,t,i,"weekdaysMin")}function dn(){var e=this._data;return this._milliseconds=gr(this._milliseconds),this._days=gr(this._days),this._months=gr(this._months),e.milliseconds=gr(e.milliseconds),e.seconds=gr(e.seconds),e.minutes=gr(e.minutes),e.hours=gr(e.hours),e.months=gr(e.months),e.years=gr(e.years),this}function cn(e,t,i,n){var s=Qt(t,i);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function hn(e,t){return cn(this,e,t,1)}function pn(e,t){return cn(this,e,t,-1)}function fn(e){return e<0?Math.floor(e):Math.ceil(e)}function mn(){var e,t,i,n,s,r=this._milliseconds,a=this._days,o=this._months,l=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*fn(gn(o)+a),a=0,o=0),l.milliseconds=r%1e3,e=b(r/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,i=b(t/60),l.hours=i%24,a+=b(i/24),s=b(_n(a)),o+=s,a-=fn(gn(s)),n=b(o/12),o%=12,l.days=a,l.months=o,l.years=n,this}function _n(e){return 4800*e/146097}function gn(e){return 146097*e/4800}function vn(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+_n(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(gn(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function yn(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function bn(e){return function(){return this.as(e)}}function wn(){return Qt(this)}function Mn(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function kn(e){return function(){return this.isValid()?this._data[e]:NaN}}function Ln(){return b(this.days()/7)}function Dn(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}function Tn(e,t,i){var n=Qt(e).abs(),s=Or(n.as("s")),r=Or(n.as("m")),a=Or(n.as("h")),o=Or(n.as("d")),l=Or(n.as("M")),u=Or(n.as("y")),d=s<=Pr.ss&&["s",s]||s0,d[4]=i,Dn.apply(null,d)}function Yn(e){return void 0===e?Or:"function"==typeof e&&(Or=e,!0)}function xn(e,t){return void 0!==Pr[e]&&(void 0===t?Pr[e]:(Pr[e]=t,"s"===e&&(Pr.ss=t-1),!0))}function Cn(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=Tn(this,!e,t);return e&&(i=t.pastFuture(+this,i)),t.postformat(i)}function Sn(e){return(e>0)-(e<0)||+e}function En(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n=Ir(this._milliseconds)/1e3,s=Ir(this._days),r=Ir(this._months);e=b(n/60),t=b(e/60),n%=60,e%=60,i=b(r/12),r%=12;var a=i,o=r,l=s,u=t,d=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var p=h<0?"-":"",f=Sn(this._months)!==Sn(h)?"-":"",m=Sn(this._days)!==Sn(h)?"-":"",_=Sn(this._milliseconds)!==Sn(h)?"-":"";return p+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(l?m+l+"D":"")+(u||d||c?"T":"")+(u?_+u+"H":"")+(d?_+d+"M":"")+(c?_+c+"S":"")}var Hn,An;An=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),i=t.length>>>0,n=0;n68?1900:2e3)};var Ms,ks=ne("FullYear",!0);Ms=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tthis?this:e:_()}),Qs=function(){return Date.now?Date.now():+new Date},Zs=["year","quarter","month","week","day","hour","minute","second","millisecond"];jt("Z",":"),jt("ZZ",""),K("Z",ls),K("ZZ",ls),X(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Wt(ls,e)});var er=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var tr=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ir=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qt.fn=Ot.prototype,Qt.invalid=At;var nr=ii(1,"add"),sr=ii(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rr=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),ar=1e3,or=60*ar,lr=60*or,ur=3506328*lr;R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Fi("gggg","weekYear"),Fi("ggggg","weekYear"),Fi("GGGG","isoWeekYear"),Fi("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),K("G",as),K("g",as),K("GG",Zn,Gn),K("gg",Zn,Gn),K("GGGG",ns,Xn),K("gggg",ns,Xn),K("GGGGG",ss,Qn),K("ggggg",ss,Qn),Q(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=w(e)}),Q(["gg","GG"],function(e,i,n,s){i[s]=t.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),I("quarter","Q"),N("quarter",7),K("Q",Vn),X("Q",function(e,t){t[fs]=3*(w(e)-1)}),R("D",["DD",2],"Do","date"),I("date","D"),N("date",9),K("D",Zn),K("DD",Zn,Gn),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),X(["D","DD"],ms),X("Do",function(e,t){t[ms]=w(e.match(Zn)[0])});var dr=ne("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),N("dayOfYear",4),K("DDD",is),K("DDDD",Jn),X(["DDD","DDDD"],function(e,t,i){i._dayOfYear=w(e)}),R("m",["mm",2],0,"minute"),I("minute","m"),N("minute",14),K("m",Zn),K("mm",Zn,Gn),X(["m","mm"],gs);var cr=ne("Minutes",!1);R("s",["ss",2],0,"second"),I("second","s"),N("second",15),K("s",Zn),K("ss",Zn,Gn),X(["s","ss"],vs);var hr=ne("Seconds",!1);R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),N("millisecond",16),K("S",is,Vn),K("SS",is,Gn),K("SSS",is,Jn);var pr;for(pr="SSSS";pr.length<=9;pr+="S")K(pr,rs);for(pr="S";pr.length<=9;pr+="S")X(pr,Gi);var fr=ne("Milliseconds",!1);R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var mr=v.prototype;mr.add=nr,mr.calendar=ri,mr.clone=ai,mr.diff=pi,mr.endOf=Ci,mr.format=vi,mr.from=yi,mr.fromNow=bi,mr.to=wi,mr.toNow=Mi,mr.get=ae,mr.invalidAt=Wi,mr.isAfter=oi,mr.isBefore=li,mr.isBetween=ui,mr.isSame=di,mr.isSameOrAfter=ci,mr.isSameOrBefore=hi,mr.isValid=Ii,mr.lang=rr,mr.locale=ki,mr.localeData=Li,mr.max=Xs,mr.min=Js,mr.parsingFlags=ji,mr.set=oe,mr.startOf=xi,mr.subtract=sr,mr.toArray=Ai,mr.toObject=Oi,mr.toDate=Hi,mr.toISOString=_i,mr.inspect=gi,mr.toJSON=Pi,mr.toString=mi,mr.unix=Ei,mr.valueOf=Si,mr.creationData=Ni,mr.year=ks,mr.isLeapYear=ie,mr.weekYear=zi,mr.isoWeekYear=Ri,mr.quarter=mr.quarters=Ki,mr.month=me,mr.daysInMonth=_e,mr.week=mr.weeks=Ce,mr.isoWeek=mr.isoWeeks=Se,mr.weeksInYear=Bi,mr.isoWeeksInYear=$i,mr.date=dr,mr.day=mr.days=Ne,mr.weekday=Fe,mr.isoWeekday=ze,mr.dayOfYear=Vi,mr.hour=mr.hours=Ws,mr.minute=mr.minutes=cr,mr.second=mr.seconds=hr,mr.millisecond=mr.milliseconds=fr,mr.utcOffset=zt,mr.utc=$t,mr.local=Bt,mr.parseZone=Ut,mr.hasAlignedHourOffset=qt,mr.isDST=Kt,mr.isLocal=Gt,mr.isUtcOffset=Jt,mr.isUtc=Xt,mr.isUTC=Xt,mr.zoneAbbr=Ji,mr.zoneName=Xi,mr.dates=L("dates accessor is deprecated. Use date instead.",dr),mr.months=L("months accessor is deprecated. Use month instead",me),mr.years=L("years accessor is deprecated. Use year instead",ks),mr.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rt),mr.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var _r=C.prototype;_r.calendar=S,_r.longDateFormat=E,_r.invalidDate=H,_r.ordinal=A,_r.preparse=en,_r.postformat=en,_r.relativeTime=O,_r.pastFuture=P,_r.set=Y,_r.months=de,_r.monthsShort=ce,_r.monthsParse=pe,_r.monthsRegex=ve,_r.monthsShortRegex=ge,_r.week=Te,_r.firstDayOfYear=xe,_r.firstDayOfWeek=Ye,_r.weekdays=Oe,_r.weekdaysMin=Ie,_r.weekdaysShort=Pe,_r.weekdaysParse=We,_r.weekdaysRegex=Re,_r.weekdaysShortRegex=$e,_r.weekdaysMinRegex=Be,_r.isPM=Je,_r.meridiem=Xe,tt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=L("moment.lang is deprecated. Use moment.locale instead.",tt),t.langData=L("moment.langData is deprecated. Use moment.localeData instead.",st);var gr=Math.abs,vr=bn("ms"),yr=bn("s"),br=bn("m"),wr=bn("h"),Mr=bn("d"),kr=bn("w"),Lr=bn("M"),Dr=bn("Q"),Tr=bn("y"),Yr=kn("milliseconds"),xr=kn("seconds"),Cr=kn("minutes"),Sr=kn("hours"),Er=kn("days"),Hr=kn("months"),Ar=kn("years"),Or=Math.round,Pr={ss:44,s:45,m:45,h:22,d:26,M:11},Ir=Math.abs,jr=Ot.prototype;return jr.isValid=Ht,jr.abs=dn,jr.add=hn,jr.subtract=pn,jr.as=vn,jr.asMilliseconds=vr,jr.asSeconds=yr,jr.asMinutes=br,jr.asHours=wr,jr.asDays=Mr,jr.asWeeks=kr,jr.asMonths=Lr,jr.asQuarters=Dr,jr.asYears=Tr,jr.valueOf=yn,jr._bubble=mn,jr.clone=wn,jr.get=Mn,jr.milliseconds=Yr,jr.seconds=xr,jr.minutes=Cr,jr.hours=Sr,jr.days=Er,jr.weeks=Ln,jr.months=Hr,jr.years=Ar,jr.humanize=Cn,jr.toISOString=En,jr.toString=En,jr.toJSON=En,jr.locale=ki,jr.localeData=Li,jr.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),jr.lang=rr,R("X",0,0,"unix"),R("x",0,0,"valueOf"),K("x",as),K("X",us),X("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))}),X("x",function(e,t,i){i._d=new Date(w(e))}),t.version="2.24.0",function(e){Hn=e}(Yt),t.fn=mr,t.min=Ct,t.max=St,t.now=Qs,t.utc=h,t.unix=Qi,t.months=rn,t.isDate=l,t.locale=tt,t.invalid=_,t.duration=Qt,t.isMoment=y,t.weekdays=on,t.parseZone=Zi,t.localeData=st,t.isDuration=Pt,t.monthsShort=an,t.weekdaysMin=un,t.defineLocale=it,t.updateLocale=nt,t.locales=rt,t.weekdaysShort=ln,t.normalizeUnits=j,t.relativeTimeRounding=Yn,t.relativeTimeThreshold=xn,t.calendarFormat=si,t.prototype=mr,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})}).call(window)}).call(t,i(139)(e))},function(e,t,i){var n=i(18);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}return function(){return e.apply(t,arguments)}}},function(e,t,i){var n=i(4),s=i(5).document,r=n(s)&&n(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,i){e.exports=!i(2)&&!i(7)(function(){return 7!=Object.defineProperty(i(16)("div"),"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){e.exports={default:i(20),__esModule:!0}},function(e,t,i){i(21);var n=i(3).Object;e.exports=function(e,t,i){return n.defineProperty(e,t,i)}},function(e,t,i){var n=i(8);n(n.S+n.F*!i(2),"Object",{defineProperty:i(6).f})},,,,,,,,,,,,,,,,,,,,function(e,t){!function(){e.exports=window.jQuery}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){(function(e){function n(e,t){this._id=e,this._clearFn=t}var s=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;t.setTimeout=function(){return new n(r.call(setTimeout,s,arguments),clearTimeout)},t.setInterval=function(){return new n(r.call(setInterval,s,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(s,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},i(105),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,i(9))},,,,,,,,,function(e,t){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function s(e){if(d===setTimeout)return setTimeout(e,0);if((d===i||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function r(e){if(c===clearTimeout)return clearTimeout(e);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function a(){m&&p&&(m=!1,p.length?f=p.concat(f):_=-1,f.length&&o())}function o(){if(!m){var e=s(a);m=!0;for(var t=f.length;t;){for(p=f,f=[];++_1)for(var i=1;it[0]?1:0}),e._entries&&(e._entries={});for(var i=0;i1?s(n[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var t=e.URL,i=function(t,i){"string"!=typeof t&&(t=String(t));var n,s=document;if(i&&(void 0===e.location||i!==e.location.href)){s=document.implementation.createHTMLDocument(""),n=s.createElement("base"),n.href=i,s.head.appendChild(n);try{if(0!==n.href.indexOf(i))throw new Error(n.href)}catch(e){throw new Error("URL unable to set base "+i+" due to "+e)}}var r=s.createElement("a");if(r.href=t,n&&(s.body.appendChild(r),r.href=r.href),":"===r.protocol||!/:/.test(r.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:r});var a=new URLSearchParams(this.search),o=!0,l=!0,u=this;["append","delete","set"].forEach(function(e){var t=a[e];a[e]=function(){t.apply(a,arguments),o&&(l=!1,u.search=a.toString(),l=!0)}}),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var d=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==d&&(d=this.search,l&&(o=!1,this.searchParams._fromString(this.search),o=!0))}})},n=i.prototype,s=function(e){Object.defineProperty(n,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(e){s(e)}),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),i.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},i.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=i}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(i){setInterval(function(){e.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(t,i(9))},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(t,s,r,a){var o=i(t),l=n[e][i(t)];return 2===o&&(l=l[s?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,i,r,a){var o=n(t),l=s[e][n(t)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var i=e%10,n=e%100-i,s=e>=100?100:null;return e+(t[i]||t[n]||t[s])},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var s={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:i?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?i?"хвіліна":"хвіліну":"h"===n?i?"гадзіна":"гадзіну":e+" "+t(s[n],+e)}return e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:i,mm:i,h:i,hh:i,d:"дзень",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,i){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i){return e+" "+s({mm:"munutenn",MM:"miz",dd:"devezh"}[i],e)}function i(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function n(e){return e>9?n(e%10):e}function s(e,t){return 2===t?r(e):e}function r(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}return e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:i},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,i,n,s){var r=e+" ";switch(n){case"s":return i||s?"pár sekund":"pár sekundami";case"ss":return i||s?r+(t(e)?"sekundy":"sekund"):r+"sekundami";case"m":return i?"minuta":s?"minutu":"minutou";case"mm":return i||s?r+(t(e)?"minuty":"minut"):r+"minutami";case"h":return i?"hodina":s?"hodinu":"hodinou";case"hh":return i||s?r+(t(e)?"hodiny":"hodin"):r+"hodinami";case"d":return i||s?"den":"dnem";case"dd":return i||s?r+(t(e)?"dny":"dní"):r+"dny";case"M":return i||s?"měsíc":"měsícem";case"MM":return i||s?r+(t(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return i||s?"rok":"rokem";case"yy":return i||s?r+(t(e)?"roky":"let"):r+"lety"}}var n="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),s="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],a=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;return e.defineLocale("cs",{months:n,monthsShort:s,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,i="",n=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?i=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(i=n[t]),e+i},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}return e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],i=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];return e.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,i){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return e>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,i){var n=this._calendarEl[e],s=i&&i.hours();return t(n)&&(n=n.apply(i)),n.replace("{}",s%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return e>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,n,s){var r="";switch(n){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":return s?"sekunnin":"sekuntia";case"m":return s?"minuutin":"minuutti";case"mm":r=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":r=s?"tunnin":"tuntia";break;case"d":return s?"päivän":"päivä";case"dd":r=s?"päivän":"päivää";break;case"M":return s?"kuukauden":"kuukausi";case"MM":r=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":r=s?"vuoden":"vuotta"}return r=i(e,s)+" "+r}function i(e,t){return e<10?t?s[e]:n[e]:e}var n="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),s=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",n[7],n[8],n[9]];return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],i=["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],n=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],s=["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],r=["Do","Lu","Má","Ce","Dé","hA","Sa"];return e.defineLocale("ga",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:n,weekdaysShort:s,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],i=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],n=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],s=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],r=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];return e.defineLocale("gd",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:n,weekdaysShort:s,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?s[i][0]:s[i][1]}return e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},i={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};return e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,i){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?i?'לפנה"צ':"לפני הצהריים":e<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s=e;switch(i){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return s+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return s+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return s+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return s+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return s+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return s+(n||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+n[this.day()]+"] LT[-kor]"}var n="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e){return e%100==11||e%10!=1}function i(e,i,n,s){var r=e+" ";switch(n){case"s":return i||s?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?r+(i||s?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return i?"mínúta":"mínútu";case"mm":return t(e)?r+(i||s?"mínútur":"mínútum"):i?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(i||s?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return t(e)?i?r+"dagar":r+(s?"daga":"dögum"):i?r+"dagur":r+(s?"dag":"degi");case"M":return i?"mánuður":s?"mánuð":"mánuði";case"MM":return t(e)?i?r+"mánuðir":r+(s?"mánuði":"mánuðum"):i?r+"mánuður":r+(s?"mánuð":"mánuði");case"y":return i||s?"ár":"ári";case"yy":return t(e)?r+(i||s?"ár":"árum"):r+(i||s?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},i={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};return e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,i){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},i={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};return e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];return e.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,i){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};return e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?s[i][0]:s[i][1]}function i(e){return s(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function n(e){return s(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function s(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,i=e/10;return s(0===t?i:t)}if(e<1e4){for(;e>=10;)e/=10;return s(e)}return e/=1e3,s(e)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:i,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,i){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function i(e,t,i,n){return t?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(e){return e%10==0||e>10&&e<20}function s(e){return a[e].split("_")}function r(e,t,r,a){var o=e+" ";return 1===e?o+i(e,t,r[0],a):t?o+(n(e)?s(r)[1]:s(r)[0]):a?o+s(r)[1]:o+(n(e)?s(r)[1]:s(r)[2])}var a={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};return e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:t,ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i){return i?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,n){return e+" "+t(r[n],e,i)}function n(e,i,n){return t(r[n],e,i)}function s(e,t){return t?"dažas sekundes":"dažām sekundēm"}var r={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:s,ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var s=t.words[n];return 1===n.length?i?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};return e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,i){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){switch(i){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}return e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,i){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s="";if(t)switch(i){case"s":s="काही सेकंद";break;case"ss":s="%d सेकंद";break;case"m":s="एक मिनिट";break;case"mm":s="%d मिनिटे";break;case"h":s="एक तास";break;case"hh":s="%d तास";break;case"d":s="एक दिवस";break;case"dd":s="%d दिवस";break;case"M":s="एक महिना";break;case"MM":s="%d महिने";break;case"y":s="एक वर्ष";break;case"yy":s="%d वर्षे"}else switch(i){case"s":s="काही सेकंदां";break;case"ss":s="%d सेकंदां";break;case"m":s="एका मिनिटा";break;case"mm":s="%d मिनिटां";break;case"h":s="एका तासा";break;case"hh":s="%d तासां";break;case"d":s="एका दिवसा";break;case"dd":s="%d दिवसां";break;case"M":s="एका महिन्या";break;case"MM":s="%d महिन्यां";break;case"y":s="एका वर्षा";break;case"yy":s="%d वर्षां"}return s.replace(/%d/i,e)}var i={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return i[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},i={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};return e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,i,n){var s=e+" ";switch(n){case"ss":return s+(t(e)?"sekundy":"sekund");case"m":return i?"minuta":"minutę";case"mm":return s+(t(e)?"minuty":"minut");case"h":return i?"godzina":"godzinę";case"hh":return s+(t(e)?"godziny":"godzin");case"MM":return s+(t(e)?"miesiące":"miesięcy");case"yy":return s+(t(e)?"lata":"lat")}}var n="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),s="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return e?""===t?"("+s[e.month()]+"|"+n[e.month()]+")":/D MMMM/.test(t)?s[e.month()]:n[e.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i){var n={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},s=" ";return(e%100>=20||e>=100&&e%100==0)&&(s=" de "),e+s+n[i]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var s={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?i?"минута":"минуту":e+" "+t(s[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:i,m:i,mm:i,h:"час",hh:i,d:"день",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],i=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];return e.defineLocale("sd",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,i){return e>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e){return e>1&&e<5}function i(e,i,n,s){var r=e+" ";switch(n){case"s":return i||s?"pár sekúnd":"pár sekundami";case"ss":return i||s?r+(t(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return i?"minúta":s?"minútu":"minútou";case"mm":return i||s?r+(t(e)?"minúty":"minút"):r+"minútami";case"h":return i?"hodina":s?"hodinu":"hodinou";case"hh":return i||s?r+(t(e)?"hodiny":"hodín"):r+"hodinami";case"d":return i||s?"deň":"dňom";case"dd":return i||s?r+(t(e)?"dni":"dní"):r+"dňami";case"M":return i||s?"mesiac":"mesiacom";case"MM":return i||s?r+(t(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return i||s?"rok":"rokom";case"yy":return i||s?r+(t(e)?"roky":"rokov"):r+"rokmi"}}var n="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),s="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return e.defineLocale("sk",{months:n,monthsShort:s,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+=1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return s+=1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return s+=1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami";case"d":return t||n?"en dan":"enim dnem";case"dd":return s+=1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi";case"M":return t||n?"en mesec":"enim mesecem";case"MM":return s+=1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci";case"y":return t||n?"eno leto":"enim letom";case"yy":return s+=1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var s=t.words[n];return 1===n.length?i?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};return e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var s=t.words[n];return 1===n.length?i?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};return e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,i){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};return e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,i){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function i(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function n(e,t,i,n){var r=s(e);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function s(e){var t=Math.floor(e%1e3/100),i=Math.floor(e%100/10),n=e%10,s="";return t>0&&(s+=r[t]+"vatlh"),i>0&&(s+=(""!==s?" ":"")+r[i]+"maH"),n>0&&(s+=(""!==s?" ":"")+r[n]),""===s?"pagh":s}var r="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");return e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:t,past:i,s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,i){switch(i){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10,s=e%100-n,r=e>=100?100:null;return e+(t[n]||t[s]||t[r])}},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n?s[i][0]:t?s[i][0]:s[i][1]}return e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return e>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";function t(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var s={ss:i?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:i?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:i?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?i?"хвилина":"хвилину":"h"===n?i?"година":"годину":e+" "+t(s[n],+e)}function n(e,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):e?i[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:i.nominative}function s(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:i,m:i,mm:i,h:"годину",hh:i,d:"день",dd:i,M:"місяць",MM:i,y:"рік",yy:i},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],i=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return e.defineLocale("ur",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(e,t,i){!function(e,t){t(i(14))}(0,function(e){"use strict";return e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(624),s=function(e){return e&&e.__esModule?e:{default:e}}(n),r=window,a=r.$,o=function(e){var t=a(e);a.each(t,function(e,t){if(!t.checkValidity()){var i=t.value.split("@");s.default.toASCII(i[0])===i[0]&&(t.value=s.default.toASCII(t.value))}})};t.default=o},function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});/** - * Copyright since 2007 PrestaShop SA and Contributors - * PrestaShop is an International Registered Trademark & Property of PrestaShop SA - * - * NOTICE OF LICENSE - * - * This source file is subject to the Open Software License (OSL 3.0) - * that is bundled with this package in the file LICENSE.md. - * It is also available through the world-wide-web at this URL: - * https://opensource.org/licenses/OSL-3.0 - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@prestashop.com so we can send you a copy immediately. - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade PrestaShop to newer - * versions in the future. If you wish to customize PrestaShop for your - * needs please refer to https://devdocs.prestashop.com/ for more information. - * - * @author PrestaShop SA and Contributors - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -var i=e.$,n=function(){i("input,select,textarea").on("invalid",function(){this.scrollIntoView(!1)})};t.default=n}).call(t,i(9))},function(e,t,i){"use strict";/** - * Copyright since 2007 PrestaShop SA and Contributors - * PrestaShop is an International Registered Trademark & Property of PrestaShop SA - * - * NOTICE OF LICENSE - * - * This source file is subject to the Open Software License (OSL 3.0) - * that is bundled with this package in the file LICENSE.md. - * It is also available through the world-wide-web at this URL: - * https://opensource.org/licenses/OSL-3.0 - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@prestashop.com so we can send you a copy immediately. - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade PrestaShop to newer - * versions in the future. If you wish to customize PrestaShop for your - * needs please refer to https://devdocs.prestashop.com/ for more information. - * - * @author PrestaShop SA and Contributors - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -!function(e){e.fn.clickableDropdown=function(){return e(document).on("click",".dropdown-clickable .dropdown-menu",function(e){e.stopPropagation()}),this},e(function(){e(document).clickableDropdown()})}(window.$)},,,,,,,,,,,,,,,,,function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=n(s),a=i(1),o=n(a),l=i(467),u=n(l),d=window.$,c=function(){function e(){var t=this;(0,r.default)(this,e),d(function(){t.initQuickAccess(),t.initMultiStores(),t.initNotificationsToggle(),t.initSearch(),t.initContentDivOffset(),(0,u.default)()})}return(0,o.default)(e,[{key:"initQuickAccess",value:function(){d(".js-quick-link").on("click",function(e){e.preventDefault();var t=d(e.target).data("method"),i=null;if("add"===t){var n=d(e.target).data("prompt-text"),s=d(e.target).data("link");i=prompt(n,s)}if("add"===t&&i||"remove"===t){var r=d(e.target).data("post-link"),a=d(e.target).data("quicklink-id"),o=d(e.target).data("rand"),l=d(e.target).data("url"),u=d(e.target).data("icon");d.ajax({type:"POST",headers:{"cache-control":"no-cache"},async:!0,url:r+"&action=GetUrl&rand="+o+"&ajax=1&method="+t+"&id_quick_access="+a,data:{url:l,name:i,icon:u},dataType:"json",success:function(t){var i="";d.each(t,function(e){void 0!==t[e].name&&(i+='
  • '+t[e].name+"
  • ")}),void 0!==t.has_errors&&t.has_errors?d.each(t,function(e){"string"==typeof t[e]&&d.growl.error({title:"",message:t[e]})}):i&&(d("#header_quick ul.dropdown-menu .divider").prevAll().remove(),d("#header_quick ul.dropdown-menu").prepend(i),d(e.target).remove(),window.showSuccessMessage(window.update_success_msg))}})}})}},{key:"initMultiStores",value:function(){d(".js-link").on("click",function(e){window.open(d(e.target).parents(".link").attr("href"),"_blank")})}},{key:"initNotificationsToggle",value:function(){var e=this;d(".notification.dropdown-toggle").on("click",function(){d(".mobile-nav").hasClass("expanded")||e.updateEmployeeNotifications()}),d("body").on("click",function(e){d("div.notification-center.dropdown").is(e.target)||0!==d("div.notification-center.dropdown").has(e.target).length||0!==d(".open").has(e.target).length||d("div.notification-center.dropdown").hasClass("open")&&(d(".mobile-layer").removeClass("expanded"),(0,u.default)())}),d(".notification-center .nav-link").on("shown.bs.tab",function(){e.updateEmployeeNotifications()})}},{key:"initSearch",value:function(){d(".js-items-list").on("click",function(e){d(".js-form-search").attr("placeholder",d(e.target).data("placeholder")),d(".js-search-type").val(d(e.target).data("value")),d(".js-dropdown-toggle").text(d(e.target).data("item"))})}},{key:"updateEmployeeNotifications",value:function(){d.post(admin_notification_push_link,{type:d(".notification-center .nav-link.active").attr("data-type")})}},{key:"initContentDivOffset",value:function(){var e=function(){var e=d(".header-toolbar").last(),t=d(".main-header"),i=d(".content-div");e.length&&t.length&&i.length&&i.css("padding-top",e.outerHeight()+t.outerHeight()+15)};e(),d(window).resize(e),d(document).on("vueHeaderMounted",e)}}]),e}();t.default=c},function(e,t,i){"use strict";var n=i(466),s=function(e){return e&&e.__esModule?e:{default:e}}(n);/** - * Copyright since 2007 PrestaShop SA and Contributors - * PrestaShop is an International Registered Trademark & Property of PrestaShop SA - * - * NOTICE OF LICENSE - * - * This source file is subject to the Open Software License (OSL 3.0) - * that is bundled with this package in the file LICENSE.md. - * It is also available through the world-wide-web at this URL: - * https://opensource.org/licenses/OSL-3.0 - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@prestashop.com so we can send you a copy immediately. - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade PrestaShop to newer - * versions in the future. If you wish to customize PrestaShop for your - * needs please refer to https://devdocs.prestashop.com/ for more information. - * - * @author PrestaShop SA and Contributors - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -(0,window.$)(function(){window.location.pathname.match("/configure/shop/maintenance\\b")&&s.default.init()})},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=n(s),a=i(1),o=n(a),l=i(625),u=n(l);i(616);/** - * Copyright since 2007 PrestaShop SA and Contributors - * PrestaShop is an International Registered Trademark & Property of PrestaShop SA - * - * NOTICE OF LICENSE - * - * This source file is subject to the Open Software License (OSL 3.0) - * that is bundled with this package in the file LICENSE.md. - * It is also available through the world-wide-web at this URL: - * https://opensource.org/licenses/OSL-3.0 - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@prestashop.com so we can send you a copy immediately. - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade PrestaShop to newer - * versions in the future. If you wish to customize PrestaShop for your - * needs please refer to https://devdocs.prestashop.com/ for more information. - * - * @author PrestaShop SA and Contributors - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -var d=window.$,c=function(){function e(){var t=this;(0,r.default)(this,e),d(function(){var e=d(".nav-bar");if(e.length>0){var i=function(){d("body").is(".page-sidebar-closed:not(.mobile)")&&d("body").on("click.mobile",function(){d("ul.main-menu li.ul-open").length>0&&(d(".nav-bar li.link-levelone.has_submenu.ul-open").removeClass("ul-open open -hover"),d(".nav-bar li.link-levelone.has_submenu.ul-open ul.submenu").removeAttr("style"))})};new u.default(".nav-bar-overflow"),d(".nav-bar-overflow").on("scroll",function(){var e=d(".main-menu .link-levelone.has_submenu.ul-open");d(e).each(function(e,t){var i=d(t).position().top;d(t).find("ul.submenu").css("top",i)})}),e.find(".link-levelone").hover(function(){d(this).addClass("-hover")},function(){d(this).removeClass("-hover")}),d(".nav-bar li.link-levelone.has_submenu > a").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=d(this).parent();d(".nav-bar li.link-levelone.has_submenu a > i.material-icons.sub-tabs-arrow").text("keyboard_arrow_down");var i=d(e.currentTarget).parent().hasClass("ul-open");if(d("body").is(".page-sidebar-closed:not(.mobile)")?(d(".nav-bar li.link-levelone.has_submenu.ul-open").removeClass("ul-open open -hover"),d(".nav-bar li.link-levelone.has_submenu.ul-open ul.submenu").removeAttr("style")):d(".nav-bar li.link-levelone.has_submenu.ul-open ul.submenu").slideUp({complete:function(){d(this).parent().removeClass("ul-open open"),d(this).removeAttr("style")}}),!i){t.addClass("ul-open"),d("body").is(".page-sidebar-closed:not(.mobile)")?(t.addClass("-hover"),t.find("ul.submenu").removeAttr("style")):t.find("ul.submenu").slideDown({complete:function(){t.addClass("open"),d(this).removeAttr("style")}}),t.find("i.material-icons.sub-tabs-arrow").text("keyboard_arrow_up");var n=t.position().top;t.find("ul.submenu").css("top",n)}}),e.on("click",".menu-collapse",function(){d("body").toggleClass("page-sidebar-closed"),d(".popover.show").remove(),d(".help-box[aria-describedby]").removeAttr("aria-describedby"),d("body").hasClass("page-sidebar-closed")?(d("nav.nav-bar ul.main-menu > li").removeClass("ul-open open").find("a > i.material-icons.sub-tabs-arrow").text("keyboard_arrow_down"),i()):(d("nav.nav-bar ul.main-menu > li.-active").addClass("ul-open open").find("a > i.material-icons.sub-tabs-arrow").text("keyboard_arrow_up"),d("body").off("click.mobile")),d.post({url:d(this).data("toggle-url"),cache:!1,data:{shouldCollapse:Number(d("body").hasClass("page-sidebar-closed"))}})}),i();d(window).width()<=1023&&t.mobileNav(1023),d(window).on("resize",function(){d("body").hasClass("mobile")&&d(window).width()>1023?t.unbuildMobileMenu():!d("body").hasClass("mobile")&&d(window).width()<=1023&&t.mobileNav(1023)})}})}return(0,o.default)(e,[{key:"mobileNav",value:function(){function e(t){if(!d("div.notification-center.dropdown").hasClass("open")){if(d(".mobile-nav").hasClass("expanded"))return d(".mobile-nav").animate({"margin-left":"-100%"},{complete:function(){d(".nav-bar, .mobile-layer").removeClass("expanded"),d(".nav-bar, .mobile-layer").addClass("d-none")}}),void d(".mobile-layer").off();d(".nav-bar, .mobile-layer").addClass("expanded"),d(".nav-bar, .mobile-layer").removeClass("d-none"),d(".mobile-layer").on("click",e),d(".mobile-nav").animate({"margin-left":0})}}var t=d("#header_logout").addClass("link").removeClass("m-t-1").prop("outerHTML"),i=d(".employee_avatar").prop("outerHTML"),n=d(".profile-link").attr("href"),s=d(".main-menu");d(".nav-bar li.link-levelone.has_submenu:not(.open) a > i.material-icons.sub-tabs-arrow").text("keyboard_arrow_down"),d("body").addClass("mobile"),d(".nav-bar").addClass("mobile-nav").attr("style","margin-left: -100%;"),d(".panel-collapse").addClass("collapse"),d(".link-levelone a").each(function(e,t){var i=d(t).parent().find(".collapse").attr("id");i&&d(t).attr("href","#"+i).attr("data-toggle","collapse")}),s.append(""),s.prepend(""),d(".collapse").collapse({toggle:!1}),s.find(".employee_avatar .material-icons, .employee_avatar span").wrap(""),d(".js-mobile-menu").on("click",e),d(".js-notifs_dropdown").css({height:window.innerHeight})}},{key:"unbuildMobileMenu",value:function(){d("body").removeClass("mobile"),d("body.page-sidebar-closed .nav-bar .link-levelone.open").removeClass("ul-open open"),d(".main-menu li:first, .main-menu li:last").remove(),d(".js-notifs_dropdown").removeAttr("style"),d(".nav-bar").removeClass("mobile-nav expanded").addClass("d-none").css("margin-left",0),d(".js-mobile-menu").off(),d(".panel-collapse").removeClass("collapse").addClass("submenu"),d(".shop-list-title").remove(),d(".js-non-responsive").hide(),d(".mobile-layer").addClass("d-none").removeClass("expanded")}}]),e}();t.default=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var n=i(547),s=t(n),r=i(543),a=t(r),o=i(544),l=t(o),u=i(546),d=t(u),c=i(545),h=t(c);e(function(){(0,s.default)(l.default);var e=(0,h.default)();(0,a.default)(e),(0,d.default)()})}).call(t,i(41))},function(e,t,i){(function(t){e.exports=t.Bloodhound=i(641)}).call(t,i(9))},function(e,t){},function(e,t){},function(e,t){},function(e,t,i){(function(e,t){var i=!1;(function(){/*! - * bootstrap-tokenfield - * https://github.com/sliptree/bootstrap-tokenfield - * Copyright 2013-2014 Sliptree and other contributors; Licensed MIT - */ -!function(e){"function"==typeof i&&i.amd?i(["jquery"],e):e(t)}(function(e,t){"use strict";var i=function(i,n){var s=this;this.$element=e(i),this.textDirection=this.$element.css("direction"),this.options=e.extend(!0,{},e.fn.tokenfield.defaults,{tokens:this.$element.val()},this.$element.data(),n),this._delimiters="string"==typeof this.options.delimiter?[this.options.delimiter]:this.options.delimiter,this._triggerKeys=e.map(this._delimiters,function(e){return e.charCodeAt(0)}),this._firstDelimiter=this._delimiters[0];var r=e.inArray(" ",this._delimiters),a=e.inArray("-",this._delimiters);r>=0&&(this._delimiters[r]="\\s"),a>=0&&(delete this._delimiters[a],this._delimiters.unshift("-"));var o=["\\","$","[","{","^",".","|","?","*","+","(",")"];e.each(this._delimiters,function(t,i){e.inArray(i,o)>=0&&(s._delimiters[t]="\\"+i)});var l,u=t&&"function"==typeof t.getMatchedCSSRules?t.getMatchedCSSRules(i):null,d=i.style.width,c=this.$element.width();u&&e.each(u,function(e,t){t.style.width&&(l=t.style.width)});var h="rtl"===e("body").css("direction")?"right":"left",p={position:this.$element.css("position")};p[h]=this.$element.css(h),this.$element.data("original-styles",p).data("original-tabindex",this.$element.prop("tabindex")).css("position","absolute").css(h,"-10000px").prop("tabindex",-1),this.$wrapper=e('
    '),this.$element.hasClass("input-lg")&&this.$wrapper.addClass("input-lg"),this.$element.hasClass("input-sm")&&this.$wrapper.addClass("input-sm"),"rtl"===this.textDirection&&this.$wrapper.addClass("rtl");var f=this.$element.prop("id")||(new Date).getTime()+""+Math.floor(100*(1+Math.random()));this.$input=e('').appendTo(this.$wrapper).prop("placeholder",this.$element.prop("placeholder")).prop("id",f+"-tokenfield").prop("tabindex",this.$element.data("original-tabindex"));var m=e('label[for="'+this.$element.prop("id")+'"]');if(m.length&&m.prop("for",this.$input.prop("id")),this.$copyHelper=e('').css("position","absolute").css(h,"-10000px").prop("tabindex",-1).prependTo(this.$wrapper),d?this.$wrapper.css("width",d):l?this.$wrapper.css("width",l):this.$element.parents(".form-inline").length&&this.$wrapper.width(c),(this.$element.prop("disabled")||this.$element.parents("fieldset[disabled]").length)&&this.disable(),this.$element.prop("readonly")&&this.readonly(),this.$mirror=e(''),this.$input.css("min-width",this.options.minWidth+"px"),e.each(["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],function(e,t){s.$mirror[0].style[t]=s.$input.css(t)}),this.$mirror.appendTo("body"),this.$wrapper.insertBefore(this.$element),this.$element.prependTo(this.$wrapper),this.update(),this.setTokens(this.options.tokens,!1,!1),this.listen(),!e.isEmptyObject(this.options.autocomplete)){var _="rtl"===this.textDirection?"right":"left",g=e.extend({minLength:this.options.showAutocompleteOnFocus?0:null,position:{my:_+" top",at:_+" bottom",of:this.$wrapper}},this.options.autocomplete);this.$input.autocomplete(g)}if(!e.isEmptyObject(this.options.typeahead)){var v=this.options.typeahead,y={minLength:this.options.showAutocompleteOnFocus?0:null},b=e.isArray(v)?v:[v,v];b[0]=e.extend({},y,b[0]),this.$input.typeahead.apply(this.$input,b),this.typeahead=!0}this.$element.trigger("tokenfield:initialize")};i.prototype={constructor:i,createToken:function(t,i){var n=this;if("string"==typeof t&&(t={value:t,label:t}),void 0===i&&(i=!0),t.value=e.trim(t.value),t.label=t.label&&t.label.length?e.trim(t.label):t.value,t.value.length&&t.label.length&&!(t.label.length<=this.options.minLength)&&!(this.options.limit&&this.getTokens().length>=this.options.limit)){var s=e.Event("tokenfield:createtoken",{attrs:t});if(this.$element.trigger(s),s.attrs&&!s.isDefaultPrevented()){var r=e('
    ').attr("data-value",t.value).append('').append('×');this.$input.hasClass("tt-input")?this.$input.parent().before(r):this.$input.before(r),this.$input.css("width",this.options.minWidth+"px");var a=r.find(".token-label"),o=r.find(".close");return this.maxTokenWidth||(this.maxTokenWidth=this.$wrapper.width()-o.outerWidth()-parseInt(o.css("margin-left"),10)-parseInt(o.css("margin-right"),10)-parseInt(r.css("border-left-width"),10)-parseInt(r.css("border-right-width"),10)-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),parseInt(a.css("border-left-width"),10),parseInt(a.css("border-right-width"),10),parseInt(a.css("padding-left"),10),parseInt(a.css("padding-right"),10),parseInt(a.css("margin-left"),10),parseInt(a.css("margin-right"),10)),a.text(t.label).css("max-width",this.maxTokenWidth),r.on("mousedown",function(e){if(n._disabled||n._readonly)return!1;n.preventDeactivation=!0}).on("click",function(e){return!n._disabled&&!n._readonly&&(n.preventDeactivation=!1,e.ctrlKey||e.metaKey?(e.preventDefault(),n.toggle(r)):void n.activate(r,e.shiftKey,e.shiftKey))}).on("dblclick",function(e){if(n._disabled||n._readonly||!n.options.allowEditing)return!1;n.edit(r)}),o.on("click",e.proxy(this.remove,this)),this.$element.trigger(e.Event("tokenfield:createdtoken",{attrs:t,relatedTarget:r.get(0)})),i&&this.$element.val(this.getTokensList()).trigger(e.Event("change",{initiator:"tokenfield"})),this.update(),this.$element.get(0)}}},setTokens:function(t,i,n){if(t){i||this.$wrapper.find(".token").remove(),void 0===n&&(n=!0),"string"==typeof t&&(t=this._delimiters.length?t.split(new RegExp("["+this._delimiters.join("")+"]")):[t]);var s=this;return e.each(t,function(e,t){s.createToken(t,n)}),this.$element.get(0)}},getTokenData:function(t){var i=t.map(function(){var t=e(this);return{value:t.attr("data-value"),label:t.find(".token-label").text()}}).get();return 1==i.length&&(i=i[0]),i},getTokens:function(t){var i=this,n=[],s=t?".active":"";return this.$wrapper.find(".token"+s).each(function(){n.push(i.getTokenData(e(this)))}),n},getTokensList:function(t,i,n){t=t||this._firstDelimiter,i=void 0!==i&&null!==i?i:this.options.beautify;var s=t+(i&&" "!==t?" ":"");return e.map(this.getTokens(n),function(e){return e.value}).join(s)},getInput:function(){return this.$input.val()},listen:function(){var i=this;this.$element.on("change",e.proxy(this.change,this)),this.$wrapper.on("mousedown",e.proxy(this.focusInput,this)),this.$input.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("paste",e.proxy(this.paste,this)).on("keydown",e.proxy(this.keydown,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.$copyHelper.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keydown",e.proxy(this.keydown,this)).on("keyup",e.proxy(this.keyup,this)),this.$input.on("keypress",e.proxy(this.update,this)).on("keyup",e.proxy(this.update,this)),this.$input.on("autocompletecreate",function(){var t=e(this).data("ui-autocomplete").menu.element,n=i.$wrapper.outerWidth()-parseInt(t.css("border-left-width"),10)-parseInt(t.css("border-right-width"),10);t.css("min-width",n+"px")}).on("autocompleteselect",function(e,t){return i.createToken(t.item)&&(i.$input.val(""),i.$input.data("edit")&&i.unedit(!0)),!1}).on("typeahead:selected typeahead:autocompleted",function(e,t,n){i.createToken(t)&&(i.$input.typeahead("val",""),i.$input.data("edit")&&i.unedit(!0))}),e(t).on("resize",e.proxy(this.update,this))},keydown:function(t){function i(e){if(s.$input.is(document.activeElement)){if(s.$input.val().length>0)return;e+="All";var i=s.$input.hasClass("tt-input")?s.$input.parent()[e](".token:first"):s.$input[e](".token:first");if(!i.length)return;s.preventInputFocus=!0,s.preventDeactivation=!0,s.activate(i),t.preventDefault()}else s[e](t.shiftKey),t.preventDefault()}function n(i){if(t.shiftKey){if(s.$input.is(document.activeElement)){if(s.$input.val().length>0)return;var n=s.$input.hasClass("tt-input")?s.$input.parent()[i+"All"](".token:first"):s.$input[i+"All"](".token:first");if(!n.length)return;s.activate(n)}var r="prev"===i?"next":"prev",a="prev"===i?"first":"last";s.firstActiveToken[r+"All"](".token").each(function(){s.deactivate(e(this))}),s.activate(s.$wrapper.find(".token:"+a),!0,!0),t.preventDefault()}}if(this.focused){var s=this;switch(t.keyCode){case 8:if(!this.$input.is(document.activeElement))break;this.lastInputValue=this.$input.val();break;case 37:i("rtl"===this.textDirection?"next":"prev");break;case 38:n("prev");break;case 39:i("rtl"===this.textDirection?"prev":"next");break;case 40:n("next");break;case 65:if(this.$input.val().length>0||!t.ctrlKey&&!t.metaKey)break;this.activateAll(),t.preventDefault();break;case 9:case 13:if(this.$input.data("ui-autocomplete")&&this.$input.data("ui-autocomplete").menu.element.find("li:has(a.ui-state-focus)").length)break;if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-cursor").length)break;if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-hint").val().length)break;if(this.$input.is(document.activeElement)&&this.$input.val().length||this.$input.data("edit"))return this.createTokensFromInput(t,this.$input.data("edit"));if(13===t.keyCode){if(!this.$copyHelper.is(document.activeElement)||1!==this.$wrapper.find(".token.active").length)break;if(!s.options.allowEditing)break;this.edit(this.$wrapper.find(".token.active"))}}this.lastKeyDown=t.keyCode}},keypress:function(t){if(this.lastKeyPressCode=t.keyCode,this.lastKeyPressCharCode=t.charCode,-1!==e.inArray(t.charCode,this._triggerKeys)&&this.$input.is(document.activeElement))return this.$input.val()&&this.createTokensFromInput(t),!1},keyup:function(e){if(this.preventInputFocus=!1,this.focused){switch(e.keyCode){case 8:if(this.$input.is(document.activeElement)){if(this.$input.val().length||this.lastInputValue.length&&8===this.lastKeyDown)break;this.preventDeactivation=!0;var t=this.$input.hasClass("tt-input")?this.$input.parent().prevAll(".token:first"):this.$input.prevAll(".token:first");if(!t.length)break;this.activate(t)}else this.remove(e);break;case 46:this.remove(e,"next")}this.lastKeyUp=e.keyCode}},focus:function(e){this.focused=!0,this.$wrapper.addClass("focus"),this.$input.is(document.activeElement)&&(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null,this.options.showAutocompleteOnFocus&&this.search())},blur:function(e){this.focused=!1,this.$wrapper.removeClass("focus"),this.preventDeactivation||this.$element.is(document.activeElement)||(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null),!this.preventCreateTokens&&(this.$input.data("edit")&&!this.$input.is(document.activeElement)||this.options.createTokensOnBlur)&&this.createTokensFromInput(e),this.preventDeactivation=!1,this.preventCreateTokens=!1},paste:function(e){var t=this;setTimeout(function(){t.createTokensFromInput(e)},1)},change:function(e){"tokenfield"!==e.initiator&&this.setTokens(this.$element.val())},createTokensFromInput:function(e,t){if(!(this.$input.val().lengththis.$firstActiveToken.index())return this.deactivate(t)}var i=this.$wrapper.find(".active:first"),n=i.prevAll(".token:first");if(n.length||(n=this.$wrapper.find(".token:first")),!n.length&&!e)return void this.$input.focus();this.activate(n,e)},activate:function(t,i,n,s){if(t){if(void 0===s)var s=!0;if(n)var i=!0;if(this.$copyHelper.focus(),i||(this.$wrapper.find(".active").removeClass("active"),s?this.$firstActiveToken=t:delete this.$firstActiveToken),n&&this.$firstActiveToken){var r=this.$firstActiveToken.index()-2,a=t.index()-2,o=this;this.$wrapper.find(".token").slice(Math.min(r,a)+1,Math.max(r,a)).each(function(){o.activate(e(this),!0)})}t.addClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select()}},activateAll:function(){var t=this;this.$wrapper.find(".token").each(function(i){t.activate(e(this),0!==i,!1,!1)})},deactivate:function(e){e&&(e.removeClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},toggle:function(e){e&&(e.toggleClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},edit:function(t){if(t){var i={value:t.data("value"),label:t.find(".token-label").text()},n={attrs:i,relatedTarget:t.get(0)},s=e.Event("tokenfield:edittoken",n);if(this.$element.trigger(s),!s.isDefaultPrevented()){t.find(".token-label").text(i.value);var r=t.outerWidth(),a=this.$input.hasClass("tt-input")?this.$input.parent():this.$input;t.replaceWith(a),this.preventCreateTokens=!0,this.$input.val(i.value).select().data("edit",!0).width(r),this.update(),this.$element.trigger(e.Event("tokenfield:editedtoken",n))}}},unedit:function(e){if((this.$input.hasClass("tt-input")?this.$input.parent():this.$input).appendTo(this.$wrapper),this.$input.data("edit",!1),this.$mirror.text(""),this.update(),e){var t=this;setTimeout(function(){t.$input.focus()},1)}},remove:function(t,i){if(!(this.$input.is(document.activeElement)||this._disabled||this._readonly)){var n="click"===t.type?e(t.target).closest(".token"):this.$wrapper.find(".token.active");if("click"!==t.type){if(!i)var i="prev";if(this[i](),"prev"===i)var s=0===n.first().prevAll(".token:first").length}var r={attrs:this.getTokenData(n),relatedTarget:n.get(0)},a=e.Event("tokenfield:removetoken",r);if(this.$element.trigger(a),!a.isDefaultPrevented()){var o=e.Event("tokenfield:removedtoken",r),l=e.Event("change",{initiator:"tokenfield"});n.remove(),this.$element.val(this.getTokensList()).trigger(o).trigger(l),this.$wrapper.find(".token").length&&"click"!==t.type&&!s||this.$input.focus(),this.$input.css("width",this.options.minWidth+"px"),this.update(),t.preventDefault(),t.stopPropagation()}}},update:function(e){var t=this.$input.val(),i=parseInt(this.$input.css("padding-left"),10),n=parseInt(this.$input.css("padding-right"),10),s=i+n;if(this.$input.data("edit")){if(t||(t=this.$input.prop("placeholder")),t===this.$mirror.text())return;this.$mirror.text(t);var r=this.$mirror.width()+10;if(r>this.$wrapper.width())return this.$input.width(this.$wrapper.width());this.$input.width(r)}else{if(this.$input.css("width",this.options.minWidth+"px"),"rtl"===this.textDirection)return this.$input.width(this.$input.offset().left+this.$input.outerWidth()-this.$wrapper.offset().left-parseInt(this.$wrapper.css("padding-left"),10)-s-1);this.$input.width(this.$wrapper.offset().left+this.$wrapper.width()+parseInt(this.$wrapper.css("padding-left"),10)-this.$input.offset().left-s)}},focusInput:function(t){if(!(e(t.target).closest(".token").length||e(t.target).closest(".token-input").length||e(t.target).closest(".tt-dropdown-menu").length)){var i=this;setTimeout(function(){i.$input.focus()},0)}},search:function(){this.$input.data("ui-autocomplete")&&this.$input.autocomplete("search")},disable:function(){this.setProperty("disabled",!0)},enable:function(){this.setProperty("disabled",!1)},readonly:function(){this.setProperty("readonly",!0)},writeable:function(){this.setProperty("readonly",!1)},setProperty:function(e,t){this["_"+e]=t,this.$input.prop(e,t),this.$element.prop(e,t),this.$wrapper[t?"addClass":"removeClass"](e)},destroy:function(){this.$element.val(this.getTokensList()),this.$element.css(this.$element.data("original-styles")),this.$element.prop("tabindex",this.$element.data("original-tabindex"));var t=e('label[for="'+this.$input.prop("id")+'"]');return t.length&&t.prop("for",this.$element.prop("id")),this.$element.insertBefore(this.$wrapper),this.$element.removeData("original-styles").removeData("original-tabindex").removeData("bs.tokenfield"),this.$wrapper.remove(),this.$element}};var n=e.fn.tokenfield;return e.fn.tokenfield=function(t,n){var s,r=[];Array.prototype.push.apply(r,arguments);var a=this.each(function(){var a=e(this),o=a.data("bs.tokenfield"),l="object"==typeof t&&t;"string"==typeof t&&o&&o[t]?(r.shift(),s=o[t].apply(o,r)):o||"string"==typeof t||n||a.data("bs.tokenfield",o=new i(this,l))});return void 0!==s?s:a},e.fn.tokenfield.defaults={minWidth:60,minLength:0,allowEditing:!0,limit:0,autocomplete:{},typeahead:{},showAutocompleteOnFocus:!1,createTokensOnBlur:!1,delimiter:",",beautify:!0},e.fn.tokenfield.Constructor=i,e.fn.tokenfield.noConflict=function(){return e.fn.tokenfield=n,this},i})}).call(window)}).call(t,i(9),i(41))},function(e,t,i){(function(e,t){var i=!1;(function(){/*! version : 4.17.47 +window.main = (function (e) { + function t(n) { + if (i[n]) return i[n].exports + var s = (i[n] = { i: n, l: !1, exports: {} }) + return e[n].call(s.exports, s, s.exports, t), (s.l = !0), s.exports + } + var i = {} + return ( + (t.m = e), + (t.c = i), + (t.i = function (e) { + return e + }), + (t.d = function (e, i, n) { + t.o(e, i) || + Object.defineProperty(e, i, { + configurable: !1, + enumerable: !0, + get: n, + }) + }), + (t.n = function (e) { + var i = + e && e.__esModule + ? function () { + return e.default + } + : function () { + return e + } + return t.d(i, 'a', i), i + }), + (t.o = function (e, t) { + return Object.prototype.hasOwnProperty.call(e, t) + }), + (t.p = ''), + t((t.s = 542)) + ) +})([ + function (e, t, i) { + 'use strict' + ;(t.__esModule = !0), + (t.default = function (e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function') + }) + }, + function (e, t, i) { + 'use strict' + t.__esModule = !0 + var n = i(19), + s = (function (e) { + return e && e.__esModule ? e : { default: e } + })(n) + t.default = (function () { + function e(e, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i] + ;(n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + (0, s.default)(e, n.key, n) + } + } + return function (t, i, n) { + return i && e(t.prototype, i), n && e(t, n), t + } + })() + }, + function (e, t, i) { + e.exports = !i(7)(function () { + return ( + 7 != + Object.defineProperty({}, 'a', { + get: function () { + return 7 + }, + }).a + ) + }) + }, + function (e, t) { + var i = (e.exports = { version: '2.4.0' }) + 'number' == typeof __e && (__e = i) + }, + function (e, t) { + e.exports = function (e) { + return 'object' == typeof e ? null !== e : 'function' == typeof e + } + }, + function (e, t) { + var i = (e.exports = + 'undefined' != typeof window && window.Math == Math + ? window + : 'undefined' != typeof self && self.Math == Math + ? self + : Function('return this')()) + 'number' == typeof __g && (__g = i) + }, + function (e, t, i) { + var n = i(11), + s = i(17), + r = i(13), + a = Object.defineProperty + t.f = i(2) + ? Object.defineProperty + : function (e, t, i) { + if ((n(e), (t = r(t, !0)), n(i), s)) + try { + return a(e, t, i) + } catch (e) {} + if ('get' in i || 'set' in i) + throw TypeError('Accessors not supported!') + return 'value' in i && (e[t] = i.value), e + } + }, + function (e, t) { + e.exports = function (e) { + try { + return !!e() + } catch (e) { + return !0 + } + } + }, + function (e, t, i) { + var n = i(5), + s = i(3), + r = i(15), + a = i(10), + o = function (e, t, i) { + var l, + u, + d, + c = e & o.F, + h = e & o.G, + p = e & o.S, + f = e & o.P, + m = e & o.B, + _ = e & o.W, + g = h ? s : s[t] || (s[t] = {}), + v = g.prototype, + y = h ? n : p ? n[t] : (n[t] || {}).prototype + h && (i = t) + for (l in i) + ((u = !c && y && void 0 !== y[l]) && l in g) || + ((d = u ? y[l] : i[l]), + (g[l] = + h && 'function' != typeof y[l] + ? i[l] + : m && u + ? r(d, n) + : _ && y[l] == d + ? (function (e) { + var t = function (t, i, n) { + if (this instanceof e) { + switch (arguments.length) { + case 0: + return new e() + case 1: + return new e(t) + case 2: + return new e(t, i) + } + return new e(t, i, n) + } + return e.apply(this, arguments) + } + return (t.prototype = e.prototype), t + })(d) + : f && 'function' == typeof d + ? r(Function.call, d) + : d), + f && + (((g.virtual || (g.virtual = {}))[l] = d), + e & o.R && v && !v[l] && a(v, l, d))) + } + ;(o.F = 1), + (o.G = 2), + (o.S = 4), + (o.P = 8), + (o.B = 16), + (o.W = 32), + (o.U = 64), + (o.R = 128), + (e.exports = o) + }, + function (e, t) { + var i + i = (function () { + return this + })() + try { + i = i || Function('return this')() || (0, eval)('this') + } catch (e) { + 'object' == typeof window && (i = window) + } + e.exports = i + }, + function (e, t, i) { + var n = i(6), + s = i(12) + e.exports = i(2) + ? function (e, t, i) { + return n.f(e, t, s(1, i)) + } + : function (e, t, i) { + return (e[t] = i), e + } + }, + function (e, t, i) { + var n = i(4) + e.exports = function (e) { + if (!n(e)) throw TypeError(e + ' is not an object!') + return e + } + }, + function (e, t) { + e.exports = function (e, t) { + return { + enumerable: !(1 & e), + configurable: !(2 & e), + writable: !(4 & e), + value: t, + } + } + }, + function (e, t, i) { + var n = i(4) + e.exports = function (e, t) { + if (!n(e)) return e + var i, s + if (t && 'function' == typeof (i = e.toString) && !n((s = i.call(e)))) + return s + if ('function' == typeof (i = e.valueOf) && !n((s = i.call(e)))) return s + if (!t && 'function' == typeof (i = e.toString) && !n((s = i.call(e)))) + return s + throw TypeError("Can't convert object to primitive value") + } + }, + function (e, t, i) { + ;(function (e) { + ;(function () { + !(function (t, i) { + e.exports = i() + })(0, function () { + 'use strict' + function t() { + return Hn.apply(null, arguments) + } + function n(e) { + return ( + e instanceof Array || + '[object Array]' === Object.prototype.toString.call(e) + ) + } + function s(e) { + return ( + null != e && + '[object Object]' === Object.prototype.toString.call(e) + ) + } + function r(e) { + if (Object.getOwnPropertyNames) + return 0 === Object.getOwnPropertyNames(e).length + var t + for (t in e) if (e.hasOwnProperty(t)) return !1 + return !0 + } + function a(e) { + return void 0 === e + } + function o(e) { + return ( + 'number' == typeof e || + '[object Number]' === Object.prototype.toString.call(e) + ) + } + function l(e) { + return ( + e instanceof Date || + '[object Date]' === Object.prototype.toString.call(e) + ) + } + function u(e, t) { + var i, + n = [] + for (i = 0; i < e.length; ++i) n.push(t(e[i], i)) + return n + } + function d(e, t) { + return Object.prototype.hasOwnProperty.call(e, t) + } + function c(e, t) { + for (var i in t) d(t, i) && (e[i] = t[i]) + return ( + d(t, 'toString') && (e.toString = t.toString), + d(t, 'valueOf') && (e.valueOf = t.valueOf), + e + ) + } + function h(e, t, i, n) { + return Tt(e, t, i, n, !0).utc() + } + function p() { + return { + empty: !1, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: !1, + invalidMonth: null, + invalidFormat: !1, + userInvalidated: !1, + iso: !1, + parsedDateParts: [], + meridiem: null, + rfc2822: !1, + weekdayMismatch: !1, + } + } + function f(e) { + return null == e._pf && (e._pf = p()), e._pf + } + function m(e) { + if (null == e._isValid) { + var t = f(e), + i = An.call(t.parsedDateParts, function (e) { + return null != e + }), + n = + !isNaN(e._d.getTime()) && + t.overflow < 0 && + !t.empty && + !t.invalidMonth && + !t.invalidWeekday && + !t.weekdayMismatch && + !t.nullInput && + !t.invalidFormat && + !t.userInvalidated && + (!t.meridiem || (t.meridiem && i)) + if ( + (e._strict && + (n = + n && + 0 === t.charsLeftOver && + 0 === t.unusedTokens.length && + void 0 === t.bigHour), + null != Object.isFrozen && Object.isFrozen(e)) + ) + return n + e._isValid = n + } + return e._isValid + } + function _(e) { + var t = h(NaN) + return null != e ? c(f(t), e) : (f(t).userInvalidated = !0), t + } + function g(e, t) { + var i, n, s + if ( + (a(t._isAMomentObject) || + (e._isAMomentObject = t._isAMomentObject), + a(t._i) || (e._i = t._i), + a(t._f) || (e._f = t._f), + a(t._l) || (e._l = t._l), + a(t._strict) || (e._strict = t._strict), + a(t._tzm) || (e._tzm = t._tzm), + a(t._isUTC) || (e._isUTC = t._isUTC), + a(t._offset) || (e._offset = t._offset), + a(t._pf) || (e._pf = f(t)), + a(t._locale) || (e._locale = t._locale), + On.length > 0) + ) + for (i = 0; i < On.length; i++) + (n = On[i]), (s = t[n]), a(s) || (e[n] = s) + return e + } + function v(e) { + g(this, e), + (this._d = new Date(null != e._d ? e._d.getTime() : NaN)), + this.isValid() || (this._d = new Date(NaN)), + !1 === Pn && ((Pn = !0), t.updateOffset(this), (Pn = !1)) + } + function y(e) { + return e instanceof v || (null != e && null != e._isAMomentObject) + } + function b(e) { + return e < 0 ? Math.ceil(e) || 0 : Math.floor(e) + } + function w(e) { + var t = +e, + i = 0 + return 0 !== t && isFinite(t) && (i = b(t)), i + } + function M(e, t, i) { + var n, + s = Math.min(e.length, t.length), + r = Math.abs(e.length - t.length), + a = 0 + for (n = 0; n < s; n++) + ((i && e[n] !== t[n]) || (!i && w(e[n]) !== w(t[n]))) && a++ + return a + r + } + function k(e) { + !1 === t.suppressDeprecationWarnings && + 'undefined' != typeof console && + console.warn && + console.warn('Deprecation warning: ' + e) + } + function L(e, i) { + var n = !0 + return c(function () { + if ( + (null != t.deprecationHandler && t.deprecationHandler(null, e), + n) + ) { + for (var s, r = [], a = 0; a < arguments.length; a++) { + if (((s = ''), 'object' == typeof arguments[a])) { + s += '\n[' + a + '] ' + for (var o in arguments[0]) + s += o + ': ' + arguments[0][o] + ', ' + s = s.slice(0, -2) + } else s = arguments[a] + r.push(s) + } + k( + e + + '\nArguments: ' + + Array.prototype.slice.call(r).join('') + + '\n' + + new Error().stack + ), + (n = !1) + } + return i.apply(this, arguments) + }, i) + } + function D(e, i) { + null != t.deprecationHandler && t.deprecationHandler(e, i), + In[e] || (k(i), (In[e] = !0)) + } + function T(e) { + return ( + e instanceof Function || + '[object Function]' === Object.prototype.toString.call(e) + ) + } + function Y(e) { + var t, i + for (i in e) (t = e[i]), T(t) ? (this[i] = t) : (this['_' + i] = t) + ;(this._config = e), + (this._dayOfMonthOrdinalParseLenient = new RegExp( + (this._dayOfMonthOrdinalParse.source || + this._ordinalParse.source) + + '|' + + /\d{1,2}/.source + )) + } + function x(e, t) { + var i, + n = c({}, e) + for (i in t) + d(t, i) && + (s(e[i]) && s(t[i]) + ? ((n[i] = {}), c(n[i], e[i]), c(n[i], t[i])) + : null != t[i] + ? (n[i] = t[i]) + : delete n[i]) + for (i in e) d(e, i) && !d(t, i) && s(e[i]) && (n[i] = c({}, n[i])) + return n + } + function C(e) { + null != e && this.set(e) + } + function S(e, t, i) { + var n = this._calendar[e] || this._calendar.sameElse + return T(n) ? n.call(t, i) : n + } + function E(e) { + var t = this._longDateFormat[e], + i = this._longDateFormat[e.toUpperCase()] + return t || !i + ? t + : ((this._longDateFormat[e] = i.replace( + /MMMM|MM|DD|dddd/g, + function (e) { + return e.slice(1) + } + )), + this._longDateFormat[e]) + } + function H() { + return this._invalidDate + } + function A(e) { + return this._ordinal.replace('%d', e) + } + function O(e, t, i, n) { + var s = this._relativeTime[i] + return T(s) ? s(e, t, i, n) : s.replace(/%d/i, e) + } + function P(e, t) { + var i = this._relativeTime[e > 0 ? 'future' : 'past'] + return T(i) ? i(t) : i.replace(/%s/i, t) + } + function I(e, t) { + var i = e.toLowerCase() + Rn[i] = Rn[i + 's'] = Rn[t] = e + } + function j(e) { + return 'string' == typeof e ? Rn[e] || Rn[e.toLowerCase()] : void 0 + } + function W(e) { + var t, + i, + n = {} + for (i in e) d(e, i) && (t = j(i)) && (n[t] = e[i]) + return n + } + function N(e, t) { + $n[e] = t + } + function F(e) { + var t = [] + for (var i in e) t.push({ unit: i, priority: $n[i] }) + return ( + t.sort(function (e, t) { + return e.priority - t.priority + }), + t + ) + } + function z(e, t, i) { + var n = '' + Math.abs(e), + s = t - n.length + return ( + (e >= 0 ? (i ? '+' : '') : '-') + + Math.pow(10, Math.max(0, s)).toString().substr(1) + + n + ) + } + function R(e, t, i, n) { + var s = n + 'string' == typeof n && + (s = function () { + return this[n]() + }), + e && (Kn[e] = s), + t && + (Kn[t[0]] = function () { + return z(s.apply(this, arguments), t[1], t[2]) + }), + i && + (Kn[i] = function () { + return this.localeData().ordinal(s.apply(this, arguments), e) + }) + } + function $(e) { + return e.match(/\[[\s\S]/) + ? e.replace(/^\[|\]$/g, '') + : e.replace(/\\/g, '') + } + function B(e) { + var t, + i, + n = e.match(Bn) + for (t = 0, i = n.length; t < i; t++) + Kn[n[t]] ? (n[t] = Kn[n[t]]) : (n[t] = $(n[t])) + return function (t) { + var s, + r = '' + for (s = 0; s < i; s++) r += T(n[s]) ? n[s].call(t, e) : n[s] + return r + } + } + function U(e, t) { + return e.isValid() + ? ((t = q(t, e.localeData())), (qn[t] = qn[t] || B(t)), qn[t](e)) + : e.localeData().invalidDate() + } + function q(e, t) { + function i(e) { + return t.longDateFormat(e) || e + } + var n = 5 + for (Un.lastIndex = 0; n >= 0 && Un.test(e); ) + (e = e.replace(Un, i)), (Un.lastIndex = 0), (n -= 1) + return e + } + function K(e, t, i) { + cs[e] = T(t) + ? t + : function (e, n) { + return e && i ? i : t + } + } + function V(e, t) { + return d(cs, e) ? cs[e](t._strict, t._locale) : new RegExp(G(e)) + } + function G(e) { + return J( + e + .replace('\\', '') + .replace( + /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, + function (e, t, i, n, s) { + return t || i || n || s + } + ) + ) + } + function J(e) { + return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + } + function X(e, t) { + var i, + n = t + for ( + 'string' == typeof e && (e = [e]), + o(t) && + (n = function (e, i) { + i[t] = w(e) + }), + i = 0; + i < e.length; + i++ + ) + hs[e[i]] = n + } + function Q(e, t) { + X(e, function (e, i, n, s) { + ;(n._w = n._w || {}), t(e, n._w, n, s) + }) + } + function Z(e, t, i) { + null != t && d(hs, e) && hs[e](t, i._a, i, e) + } + function ee(e) { + return te(e) ? 366 : 365 + } + function te(e) { + return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0 + } + function ie() { + return te(this.year()) + } + function ne(e, i) { + return function (n) { + return null != n + ? (re(this, e, n), t.updateOffset(this, i), this) + : se(this, e) + } + } + function se(e, t) { + return e.isValid() + ? e._d['get' + (e._isUTC ? 'UTC' : '') + t]() + : NaN + } + function re(e, t, i) { + e.isValid() && + !isNaN(i) && + ('FullYear' === t && + te(e.year()) && + 1 === e.month() && + 29 === e.date() + ? e._d['set' + (e._isUTC ? 'UTC' : '') + t]( + i, + e.month(), + ue(i, e.month()) + ) + : e._d['set' + (e._isUTC ? 'UTC' : '') + t](i)) + } + function ae(e) { + return (e = j(e)), T(this[e]) ? this[e]() : this + } + function oe(e, t) { + if ('object' == typeof e) { + e = W(e) + for (var i = F(e), n = 0; n < i.length; n++) + this[i[n].unit](e[i[n].unit]) + } else if (((e = j(e)), T(this[e]))) return this[e](t) + return this + } + function le(e, t) { + return ((e % t) + t) % t + } + function ue(e, t) { + if (isNaN(e) || isNaN(t)) return NaN + var i = le(t, 12) + return ( + (e += (t - i) / 12), + 1 === i ? (te(e) ? 29 : 28) : 31 - ((i % 7) % 2) + ) + } + function de(e, t) { + return e + ? n(this._months) + ? this._months[e.month()] + : this._months[ + (this._months.isFormat || Ls).test(t) + ? 'format' + : 'standalone' + ][e.month()] + : n(this._months) + ? this._months + : this._months.standalone + } + function ce(e, t) { + return e + ? n(this._monthsShort) + ? this._monthsShort[e.month()] + : this._monthsShort[Ls.test(t) ? 'format' : 'standalone'][ + e.month() + ] + : n(this._monthsShort) + ? this._monthsShort + : this._monthsShort.standalone + } + function he(e, t, i) { + var n, + s, + r, + a = e.toLocaleLowerCase() + if (!this._monthsParse) + for ( + this._monthsParse = [], + this._longMonthsParse = [], + this._shortMonthsParse = [], + n = 0; + n < 12; + ++n + ) + (r = h([2e3, n])), + (this._shortMonthsParse[n] = this.monthsShort( + r, + '' + ).toLocaleLowerCase()), + (this._longMonthsParse[n] = this.months( + r, + '' + ).toLocaleLowerCase()) + return i + ? 'MMM' === t + ? ((s = Ms.call(this._shortMonthsParse, a)), + -1 !== s ? s : null) + : ((s = Ms.call(this._longMonthsParse, a)), -1 !== s ? s : null) + : 'MMM' === t + ? -1 !== (s = Ms.call(this._shortMonthsParse, a)) + ? s + : ((s = Ms.call(this._longMonthsParse, a)), -1 !== s ? s : null) + : -1 !== (s = Ms.call(this._longMonthsParse, a)) + ? s + : ((s = Ms.call(this._shortMonthsParse, a)), -1 !== s ? s : null) + } + function pe(e, t, i) { + var n, s, r + if (this._monthsParseExact) return he.call(this, e, t, i) + for ( + this._monthsParse || + ((this._monthsParse = []), + (this._longMonthsParse = []), + (this._shortMonthsParse = [])), + n = 0; + n < 12; + n++ + ) { + if ( + ((s = h([2e3, n])), + i && + !this._longMonthsParse[n] && + ((this._longMonthsParse[n] = new RegExp( + '^' + this.months(s, '').replace('.', '') + '$', + 'i' + )), + (this._shortMonthsParse[n] = new RegExp( + '^' + this.monthsShort(s, '').replace('.', '') + '$', + 'i' + ))), + i || + this._monthsParse[n] || + ((r = + '^' + this.months(s, '') + '|^' + this.monthsShort(s, '')), + (this._monthsParse[n] = new RegExp(r.replace('.', ''), 'i'))), + i && 'MMMM' === t && this._longMonthsParse[n].test(e)) + ) + return n + if (i && 'MMM' === t && this._shortMonthsParse[n].test(e)) + return n + if (!i && this._monthsParse[n].test(e)) return n + } + } + function fe(e, t) { + var i + if (!e.isValid()) return e + if ('string' == typeof t) + if (/^\d+$/.test(t)) t = w(t) + else if (((t = e.localeData().monthsParse(t)), !o(t))) return e + return ( + (i = Math.min(e.date(), ue(e.year(), t))), + e._d['set' + (e._isUTC ? 'UTC' : '') + 'Month'](t, i), + e + ) + } + function me(e) { + return null != e + ? (fe(this, e), t.updateOffset(this, !0), this) + : se(this, 'Month') + } + function _e() { + return ue(this.year(), this.month()) + } + function ge(e) { + return this._monthsParseExact + ? (d(this, '_monthsRegex') || ye.call(this), + e ? this._monthsShortStrictRegex : this._monthsShortRegex) + : (d(this, '_monthsShortRegex') || (this._monthsShortRegex = Ys), + this._monthsShortStrictRegex && e + ? this._monthsShortStrictRegex + : this._monthsShortRegex) + } + function ve(e) { + return this._monthsParseExact + ? (d(this, '_monthsRegex') || ye.call(this), + e ? this._monthsStrictRegex : this._monthsRegex) + : (d(this, '_monthsRegex') || (this._monthsRegex = xs), + this._monthsStrictRegex && e + ? this._monthsStrictRegex + : this._monthsRegex) + } + function ye() { + function e(e, t) { + return t.length - e.length + } + var t, + i, + n = [], + s = [], + r = [] + for (t = 0; t < 12; t++) + (i = h([2e3, t])), + n.push(this.monthsShort(i, '')), + s.push(this.months(i, '')), + r.push(this.months(i, '')), + r.push(this.monthsShort(i, '')) + for (n.sort(e), s.sort(e), r.sort(e), t = 0; t < 12; t++) + (n[t] = J(n[t])), (s[t] = J(s[t])) + for (t = 0; t < 24; t++) r[t] = J(r[t]) + ;(this._monthsRegex = new RegExp('^(' + r.join('|') + ')', 'i')), + (this._monthsShortRegex = this._monthsRegex), + (this._monthsStrictRegex = new RegExp( + '^(' + s.join('|') + ')', + 'i' + )), + (this._monthsShortStrictRegex = new RegExp( + '^(' + n.join('|') + ')', + 'i' + )) + } + function be(e, t, i, n, s, r, a) { + var o + return ( + e < 100 && e >= 0 + ? ((o = new Date(e + 400, t, i, n, s, r, a)), + isFinite(o.getFullYear()) && o.setFullYear(e)) + : (o = new Date(e, t, i, n, s, r, a)), + o + ) + } + function we(e) { + var t + if (e < 100 && e >= 0) { + var i = Array.prototype.slice.call(arguments) + ;(i[0] = e + 400), + (t = new Date(Date.UTC.apply(null, i))), + isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e) + } else t = new Date(Date.UTC.apply(null, arguments)) + return t + } + function Me(e, t, i) { + var n = 7 + t - i + return (-(7 + we(e, 0, n).getUTCDay() - t) % 7) + n - 1 + } + function ke(e, t, i, n, s) { + var r, + a, + o = (7 + i - n) % 7, + l = Me(e, n, s), + u = 1 + 7 * (t - 1) + o + l + return ( + u <= 0 + ? ((r = e - 1), (a = ee(r) + u)) + : u > ee(e) + ? ((r = e + 1), (a = u - ee(e))) + : ((r = e), (a = u)), + { year: r, dayOfYear: a } + ) + } + function Le(e, t, i) { + var n, + s, + r = Me(e.year(), t, i), + a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1 + return ( + a < 1 + ? ((s = e.year() - 1), (n = a + De(s, t, i))) + : a > De(e.year(), t, i) + ? ((n = a - De(e.year(), t, i)), (s = e.year() + 1)) + : ((s = e.year()), (n = a)), + { week: n, year: s } + ) + } + function De(e, t, i) { + var n = Me(e, t, i), + s = Me(e + 1, t, i) + return (ee(e) - n + s) / 7 + } + function Te(e) { + return Le(e, this._week.dow, this._week.doy).week + } + function Ye() { + return this._week.dow + } + function xe() { + return this._week.doy + } + function Ce(e) { + var t = this.localeData().week(this) + return null == e ? t : this.add(7 * (e - t), 'd') + } + function Se(e) { + var t = Le(this, 1, 4).week + return null == e ? t : this.add(7 * (e - t), 'd') + } + function Ee(e, t) { + return 'string' != typeof e + ? e + : isNaN(e) + ? ((e = t.weekdaysParse(e)), 'number' == typeof e ? e : null) + : parseInt(e, 10) + } + function He(e, t) { + return 'string' == typeof e + ? t.weekdaysParse(e) % 7 || 7 + : isNaN(e) + ? null + : e + } + function Ae(e, t) { + return e.slice(t, 7).concat(e.slice(0, t)) + } + function Oe(e, t) { + var i = n(this._weekdays) + ? this._weekdays + : this._weekdays[ + e && !0 !== e && this._weekdays.isFormat.test(t) + ? 'format' + : 'standalone' + ] + return !0 === e ? Ae(i, this._week.dow) : e ? i[e.day()] : i + } + function Pe(e) { + return !0 === e + ? Ae(this._weekdaysShort, this._week.dow) + : e + ? this._weekdaysShort[e.day()] + : this._weekdaysShort + } + function Ie(e) { + return !0 === e + ? Ae(this._weekdaysMin, this._week.dow) + : e + ? this._weekdaysMin[e.day()] + : this._weekdaysMin + } + function je(e, t, i) { + var n, + s, + r, + a = e.toLocaleLowerCase() + if (!this._weekdaysParse) + for ( + this._weekdaysParse = [], + this._shortWeekdaysParse = [], + this._minWeekdaysParse = [], + n = 0; + n < 7; + ++n + ) + (r = h([2e3, 1]).day(n)), + (this._minWeekdaysParse[n] = this.weekdaysMin( + r, + '' + ).toLocaleLowerCase()), + (this._shortWeekdaysParse[n] = this.weekdaysShort( + r, + '' + ).toLocaleLowerCase()), + (this._weekdaysParse[n] = this.weekdays( + r, + '' + ).toLocaleLowerCase()) + return i + ? 'dddd' === t + ? ((s = Ms.call(this._weekdaysParse, a)), -1 !== s ? s : null) + : 'ddd' === t + ? ((s = Ms.call(this._shortWeekdaysParse, a)), + -1 !== s ? s : null) + : ((s = Ms.call(this._minWeekdaysParse, a)), + -1 !== s ? s : null) + : 'dddd' === t + ? -1 !== (s = Ms.call(this._weekdaysParse, a)) + ? s + : -1 !== (s = Ms.call(this._shortWeekdaysParse, a)) + ? s + : ((s = Ms.call(this._minWeekdaysParse, a)), + -1 !== s ? s : null) + : 'ddd' === t + ? -1 !== (s = Ms.call(this._shortWeekdaysParse, a)) + ? s + : -1 !== (s = Ms.call(this._weekdaysParse, a)) + ? s + : ((s = Ms.call(this._minWeekdaysParse, a)), + -1 !== s ? s : null) + : -1 !== (s = Ms.call(this._minWeekdaysParse, a)) + ? s + : -1 !== (s = Ms.call(this._weekdaysParse, a)) + ? s + : ((s = Ms.call(this._shortWeekdaysParse, a)), + -1 !== s ? s : null) + } + function We(e, t, i) { + var n, s, r + if (this._weekdaysParseExact) return je.call(this, e, t, i) + for ( + this._weekdaysParse || + ((this._weekdaysParse = []), + (this._minWeekdaysParse = []), + (this._shortWeekdaysParse = []), + (this._fullWeekdaysParse = [])), + n = 0; + n < 7; + n++ + ) { + if ( + ((s = h([2e3, 1]).day(n)), + i && + !this._fullWeekdaysParse[n] && + ((this._fullWeekdaysParse[n] = new RegExp( + '^' + this.weekdays(s, '').replace('.', '\\.?') + '$', + 'i' + )), + (this._shortWeekdaysParse[n] = new RegExp( + '^' + this.weekdaysShort(s, '').replace('.', '\\.?') + '$', + 'i' + )), + (this._minWeekdaysParse[n] = new RegExp( + '^' + this.weekdaysMin(s, '').replace('.', '\\.?') + '$', + 'i' + ))), + this._weekdaysParse[n] || + ((r = + '^' + + this.weekdays(s, '') + + '|^' + + this.weekdaysShort(s, '') + + '|^' + + this.weekdaysMin(s, '')), + (this._weekdaysParse[n] = new RegExp( + r.replace('.', ''), + 'i' + ))), + i && 'dddd' === t && this._fullWeekdaysParse[n].test(e)) + ) + return n + if (i && 'ddd' === t && this._shortWeekdaysParse[n].test(e)) + return n + if (i && 'dd' === t && this._minWeekdaysParse[n].test(e)) return n + if (!i && this._weekdaysParse[n].test(e)) return n + } + } + function Ne(e) { + if (!this.isValid()) return null != e ? this : NaN + var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay() + return null != e + ? ((e = Ee(e, this.localeData())), this.add(e - t, 'd')) + : t + } + function Fe(e) { + if (!this.isValid()) return null != e ? this : NaN + var t = (this.day() + 7 - this.localeData()._week.dow) % 7 + return null == e ? t : this.add(e - t, 'd') + } + function ze(e) { + if (!this.isValid()) return null != e ? this : NaN + if (null != e) { + var t = He(e, this.localeData()) + return this.day(this.day() % 7 ? t : t - 7) + } + return this.day() || 7 + } + function Re(e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || Ue.call(this), + e ? this._weekdaysStrictRegex : this._weekdaysRegex) + : (d(this, '_weekdaysRegex') || (this._weekdaysRegex = As), + this._weekdaysStrictRegex && e + ? this._weekdaysStrictRegex + : this._weekdaysRegex) + } + function $e(e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || Ue.call(this), + e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) + : (d(this, '_weekdaysShortRegex') || + (this._weekdaysShortRegex = Os), + this._weekdaysShortStrictRegex && e + ? this._weekdaysShortStrictRegex + : this._weekdaysShortRegex) + } + function Be(e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || Ue.call(this), + e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) + : (d(this, '_weekdaysMinRegex') || (this._weekdaysMinRegex = Ps), + this._weekdaysMinStrictRegex && e + ? this._weekdaysMinStrictRegex + : this._weekdaysMinRegex) + } + function Ue() { + function e(e, t) { + return t.length - e.length + } + var t, + i, + n, + s, + r, + a = [], + o = [], + l = [], + u = [] + for (t = 0; t < 7; t++) + (i = h([2e3, 1]).day(t)), + (n = this.weekdaysMin(i, '')), + (s = this.weekdaysShort(i, '')), + (r = this.weekdays(i, '')), + a.push(n), + o.push(s), + l.push(r), + u.push(n), + u.push(s), + u.push(r) + for (a.sort(e), o.sort(e), l.sort(e), u.sort(e), t = 0; t < 7; t++) + (o[t] = J(o[t])), (l[t] = J(l[t])), (u[t] = J(u[t])) + ;(this._weekdaysRegex = new RegExp('^(' + u.join('|') + ')', 'i')), + (this._weekdaysShortRegex = this._weekdaysRegex), + (this._weekdaysMinRegex = this._weekdaysRegex), + (this._weekdaysStrictRegex = new RegExp( + '^(' + l.join('|') + ')', + 'i' + )), + (this._weekdaysShortStrictRegex = new RegExp( + '^(' + o.join('|') + ')', + 'i' + )), + (this._weekdaysMinStrictRegex = new RegExp( + '^(' + a.join('|') + ')', + 'i' + )) + } + function qe() { + return this.hours() % 12 || 12 + } + function Ke() { + return this.hours() || 24 + } + function Ve(e, t) { + R(e, 0, 0, function () { + return this.localeData().meridiem(this.hours(), this.minutes(), t) + }) + } + function Ge(e, t) { + return t._meridiemParse + } + function Je(e) { + return 'p' === (e + '').toLowerCase().charAt(0) + } + function Xe(e, t, i) { + return e > 11 ? (i ? 'pm' : 'PM') : i ? 'am' : 'AM' + } + function Qe(e) { + return e ? e.toLowerCase().replace('_', '-') : e + } + function Ze(e) { + for (var t, i, n, s, r = 0; r < e.length; ) { + for ( + s = Qe(e[r]).split('-'), + t = s.length, + i = Qe(e[r + 1]), + i = i ? i.split('-') : null; + t > 0; + + ) { + if ((n = et(s.slice(0, t).join('-')))) return n + if (i && i.length >= t && M(s, i, !0) >= t - 1) break + t-- + } + r++ + } + return Is + } + function et(t) { + var n = null + if (!Fs[t] && void 0 !== e && e && e.exports) + try { + n = Is._abbr + i(623)('./' + t), tt(n) + } catch (e) {} + return Fs[t] + } + function tt(e, t) { + var i + return ( + e && + ((i = a(t) ? st(e) : it(e, t)), + i + ? (Is = i) + : 'undefined' != typeof console && + console.warn && + console.warn( + 'Locale ' + e + ' not found. Did you forget to load it?' + )), + Is._abbr + ) + } + function it(e, t) { + if (null !== t) { + var i, + n = Ns + if (((t.abbr = e), null != Fs[e])) + D( + 'defineLocaleOverride', + 'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' + ), + (n = Fs[e]._config) + else if (null != t.parentLocale) + if (null != Fs[t.parentLocale]) n = Fs[t.parentLocale]._config + else { + if (null == (i = et(t.parentLocale))) + return ( + zs[t.parentLocale] || (zs[t.parentLocale] = []), + zs[t.parentLocale].push({ name: e, config: t }), + null + ) + n = i._config + } + return ( + (Fs[e] = new C(x(n, t))), + zs[e] && + zs[e].forEach(function (e) { + it(e.name, e.config) + }), + tt(e), + Fs[e] + ) + } + return delete Fs[e], null + } + function nt(e, t) { + if (null != t) { + var i, + n, + s = Ns + ;(n = et(e)), + null != n && (s = n._config), + (t = x(s, t)), + (i = new C(t)), + (i.parentLocale = Fs[e]), + (Fs[e] = i), + tt(e) + } else null != Fs[e] && (null != Fs[e].parentLocale ? (Fs[e] = Fs[e].parentLocale) : null != Fs[e] && delete Fs[e]) + return Fs[e] + } + function st(e) { + var t + if ( + (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) + ) + return Is + if (!n(e)) { + if ((t = et(e))) return t + e = [e] + } + return Ze(e) + } + function rt() { + return jn(Fs) + } + function at(e) { + var t, + i = e._a + return ( + i && + -2 === f(e).overflow && + ((t = + i[fs] < 0 || i[fs] > 11 + ? fs + : i[ms] < 1 || i[ms] > ue(i[ps], i[fs]) + ? ms + : i[_s] < 0 || + i[_s] > 24 || + (24 === i[_s] && + (0 !== i[gs] || 0 !== i[vs] || 0 !== i[ys])) + ? _s + : i[gs] < 0 || i[gs] > 59 + ? gs + : i[vs] < 0 || i[vs] > 59 + ? vs + : i[ys] < 0 || i[ys] > 999 + ? ys + : -1), + f(e)._overflowDayOfYear && (t < ps || t > ms) && (t = ms), + f(e)._overflowWeeks && -1 === t && (t = bs), + f(e)._overflowWeekday && -1 === t && (t = ws), + (f(e).overflow = t)), + e + ) + } + function ot(e, t, i) { + return null != e ? e : null != t ? t : i + } + function lt(e) { + var i = new Date(t.now()) + return e._useUTC + ? [i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()] + : [i.getFullYear(), i.getMonth(), i.getDate()] + } + function ut(e) { + var t, + i, + n, + s, + r, + a = [] + if (!e._d) { + for ( + n = lt(e), + e._w && null == e._a[ms] && null == e._a[fs] && dt(e), + null != e._dayOfYear && + ((r = ot(e._a[ps], n[ps])), + (e._dayOfYear > ee(r) || 0 === e._dayOfYear) && + (f(e)._overflowDayOfYear = !0), + (i = we(r, 0, e._dayOfYear)), + (e._a[fs] = i.getUTCMonth()), + (e._a[ms] = i.getUTCDate())), + t = 0; + t < 3 && null == e._a[t]; + ++t + ) + e._a[t] = a[t] = n[t] + for (; t < 7; t++) + e._a[t] = a[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t] + 24 === e._a[_s] && + 0 === e._a[gs] && + 0 === e._a[vs] && + 0 === e._a[ys] && + ((e._nextDay = !0), (e._a[_s] = 0)), + (e._d = (e._useUTC ? we : be).apply(null, a)), + (s = e._useUTC ? e._d.getUTCDay() : e._d.getDay()), + null != e._tzm && + e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), + e._nextDay && (e._a[_s] = 24), + e._w && + void 0 !== e._w.d && + e._w.d !== s && + (f(e).weekdayMismatch = !0) + } + } + function dt(e) { + var t, i, n, s, r, a, o, l + if (((t = e._w), null != t.GG || null != t.W || null != t.E)) + (r = 1), + (a = 4), + (i = ot(t.GG, e._a[ps], Le(Yt(), 1, 4).year)), + (n = ot(t.W, 1)), + ((s = ot(t.E, 1)) < 1 || s > 7) && (l = !0) + else { + ;(r = e._locale._week.dow), (a = e._locale._week.doy) + var u = Le(Yt(), r, a) + ;(i = ot(t.gg, e._a[ps], u.year)), + (n = ot(t.w, u.week)), + null != t.d + ? ((s = t.d) < 0 || s > 6) && (l = !0) + : null != t.e + ? ((s = t.e + r), (t.e < 0 || t.e > 6) && (l = !0)) + : (s = r) + } + n < 1 || n > De(i, r, a) + ? (f(e)._overflowWeeks = !0) + : null != l + ? (f(e)._overflowWeekday = !0) + : ((o = ke(i, n, s, r, a)), + (e._a[ps] = o.year), + (e._dayOfYear = o.dayOfYear)) + } + function ct(e) { + var t, + i, + n, + s, + r, + a, + o = e._i, + l = Rs.exec(o) || $s.exec(o) + if (l) { + for (f(e).iso = !0, t = 0, i = Us.length; t < i; t++) + if (Us[t][1].exec(l[1])) { + ;(s = Us[t][0]), (n = !1 !== Us[t][2]) + break + } + if (null == s) return void (e._isValid = !1) + if (l[3]) { + for (t = 0, i = qs.length; t < i; t++) + if (qs[t][1].exec(l[3])) { + r = (l[2] || ' ') + qs[t][0] + break + } + if (null == r) return void (e._isValid = !1) + } + if (!n && null != r) return void (e._isValid = !1) + if (l[4]) { + if (!Bs.exec(l[4])) return void (e._isValid = !1) + a = 'Z' + } + ;(e._f = s + (r || '') + (a || '')), yt(e) + } else e._isValid = !1 + } + function ht(e, t, i, n, s, r) { + var a = [ + pt(e), + Ts.indexOf(t), + parseInt(i, 10), + parseInt(n, 10), + parseInt(s, 10), + ] + return r && a.push(parseInt(r, 10)), a + } + function pt(e) { + var t = parseInt(e, 10) + return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t + } + function ft(e) { + return e + .replace(/\([^)]*\)|[\n\t]/g, ' ') + .replace(/(\s\s+)/g, ' ') + .replace(/^\s\s*/, '') + .replace(/\s\s*$/, '') + } + function mt(e, t, i) { + if (e) { + if (Es.indexOf(e) !== new Date(t[0], t[1], t[2]).getDay()) + return (f(i).weekdayMismatch = !0), (i._isValid = !1), !1 + } + return !0 + } + function _t(e, t, i) { + if (e) return Gs[e] + if (t) return 0 + var n = parseInt(i, 10), + s = n % 100 + return ((n - s) / 100) * 60 + s + } + function gt(e) { + var t = Vs.exec(ft(e._i)) + if (t) { + var i = ht(t[4], t[3], t[2], t[5], t[6], t[7]) + if (!mt(t[1], i, e)) return + ;(e._a = i), + (e._tzm = _t(t[8], t[9], t[10])), + (e._d = we.apply(null, e._a)), + e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), + (f(e).rfc2822 = !0) + } else e._isValid = !1 + } + function vt(e) { + var i = Ks.exec(e._i) + if (null !== i) return void (e._d = new Date(+i[1])) + ct(e), + !1 === e._isValid && + (delete e._isValid, + gt(e), + !1 === e._isValid && + (delete e._isValid, t.createFromInputFallback(e))) + } + function yt(e) { + if (e._f === t.ISO_8601) return void ct(e) + if (e._f === t.RFC_2822) return void gt(e) + ;(e._a = []), (f(e).empty = !0) + var i, + n, + s, + r, + a, + o = '' + e._i, + l = o.length, + u = 0 + for ( + s = q(e._f, e._locale).match(Bn) || [], i = 0; + i < s.length; + i++ + ) + (r = s[i]), + (n = (o.match(V(r, e)) || [])[0]), + n && + ((a = o.substr(0, o.indexOf(n))), + a.length > 0 && f(e).unusedInput.push(a), + (o = o.slice(o.indexOf(n) + n.length)), + (u += n.length)), + Kn[r] + ? (n ? (f(e).empty = !1) : f(e).unusedTokens.push(r), + Z(r, n, e)) + : e._strict && !n && f(e).unusedTokens.push(r) + ;(f(e).charsLeftOver = l - u), + o.length > 0 && f(e).unusedInput.push(o), + e._a[_s] <= 12 && + !0 === f(e).bigHour && + e._a[_s] > 0 && + (f(e).bigHour = void 0), + (f(e).parsedDateParts = e._a.slice(0)), + (f(e).meridiem = e._meridiem), + (e._a[_s] = bt(e._locale, e._a[_s], e._meridiem)), + ut(e), + at(e) + } + function bt(e, t, i) { + var n + return null == i + ? t + : null != e.meridiemHour + ? e.meridiemHour(t, i) + : null != e.isPM + ? ((n = e.isPM(i)), + n && t < 12 && (t += 12), + n || 12 !== t || (t = 0), + t) + : t + } + function wt(e) { + var t, i, n, s, r + if (0 === e._f.length) + return (f(e).invalidFormat = !0), void (e._d = new Date(NaN)) + for (s = 0; s < e._f.length; s++) + (r = 0), + (t = g({}, e)), + null != e._useUTC && (t._useUTC = e._useUTC), + (t._f = e._f[s]), + yt(t), + m(t) && + ((r += f(t).charsLeftOver), + (r += 10 * f(t).unusedTokens.length), + (f(t).score = r), + (null == n || r < n) && ((n = r), (i = t))) + c(e, i || t) + } + function Mt(e) { + if (!e._d) { + var t = W(e._i) + ;(e._a = u( + [ + t.year, + t.month, + t.day || t.date, + t.hour, + t.minute, + t.second, + t.millisecond, + ], + function (e) { + return e && parseInt(e, 10) + } + )), + ut(e) + } + } + function kt(e) { + var t = new v(at(Lt(e))) + return t._nextDay && (t.add(1, 'd'), (t._nextDay = void 0)), t + } + function Lt(e) { + var t = e._i, + i = e._f + return ( + (e._locale = e._locale || st(e._l)), + null === t || (void 0 === i && '' === t) + ? _({ nullInput: !0 }) + : ('string' == typeof t && (e._i = t = e._locale.preparse(t)), + y(t) + ? new v(at(t)) + : (l(t) ? (e._d = t) : n(i) ? wt(e) : i ? yt(e) : Dt(e), + m(e) || (e._d = null), + e)) + ) + } + function Dt(e) { + var i = e._i + a(i) + ? (e._d = new Date(t.now())) + : l(i) + ? (e._d = new Date(i.valueOf())) + : 'string' == typeof i + ? vt(e) + : n(i) + ? ((e._a = u(i.slice(0), function (e) { + return parseInt(e, 10) + })), + ut(e)) + : s(i) + ? Mt(e) + : o(i) + ? (e._d = new Date(i)) + : t.createFromInputFallback(e) + } + function Tt(e, t, i, a, o) { + var l = {} + return ( + (!0 !== i && !1 !== i) || ((a = i), (i = void 0)), + ((s(e) && r(e)) || (n(e) && 0 === e.length)) && (e = void 0), + (l._isAMomentObject = !0), + (l._useUTC = l._isUTC = o), + (l._l = i), + (l._i = e), + (l._f = t), + (l._strict = a), + kt(l) + ) + } + function Yt(e, t, i, n) { + return Tt(e, t, i, n, !1) + } + function xt(e, t) { + var i, s + if ((1 === t.length && n(t[0]) && (t = t[0]), !t.length)) + return Yt() + for (i = t[0], s = 1; s < t.length; ++s) + (t[s].isValid() && !t[s][e](i)) || (i = t[s]) + return i + } + function Ct() { + return xt('isBefore', [].slice.call(arguments, 0)) + } + function St() { + return xt('isAfter', [].slice.call(arguments, 0)) + } + function Et(e) { + for (var t in e) + if (-1 === Ms.call(Zs, t) || (null != e[t] && isNaN(e[t]))) + return !1 + for (var i = !1, n = 0; n < Zs.length; ++n) + if (e[Zs[n]]) { + if (i) return !1 + parseFloat(e[Zs[n]]) !== w(e[Zs[n]]) && (i = !0) + } + return !0 + } + function Ht() { + return this._isValid + } + function At() { + return Qt(NaN) + } + function Ot(e) { + var t = W(e), + i = t.year || 0, + n = t.quarter || 0, + s = t.month || 0, + r = t.week || t.isoWeek || 0, + a = t.day || 0, + o = t.hour || 0, + l = t.minute || 0, + u = t.second || 0, + d = t.millisecond || 0 + ;(this._isValid = Et(t)), + (this._milliseconds = +d + 1e3 * u + 6e4 * l + 1e3 * o * 60 * 60), + (this._days = +a + 7 * r), + (this._months = +s + 3 * n + 12 * i), + (this._data = {}), + (this._locale = st()), + this._bubble() + } + function Pt(e) { + return e instanceof Ot + } + function It(e) { + return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e) + } + function jt(e, t) { + R(e, 0, 0, function () { + var e = this.utcOffset(), + i = '+' + return ( + e < 0 && ((e = -e), (i = '-')), + i + z(~~(e / 60), 2) + t + z(~~e % 60, 2) + ) + }) + } + function Wt(e, t) { + var i = (t || '').match(e) + if (null === i) return null + var n = i[i.length - 1] || [], + s = (n + '').match(er) || ['-', 0, 0], + r = 60 * s[1] + w(s[2]) + return 0 === r ? 0 : '+' === s[0] ? r : -r + } + function Nt(e, i) { + var n, s + return i._isUTC + ? ((n = i.clone()), + (s = + (y(e) || l(e) ? e.valueOf() : Yt(e).valueOf()) - n.valueOf()), + n._d.setTime(n._d.valueOf() + s), + t.updateOffset(n, !1), + n) + : Yt(e).local() + } + function Ft(e) { + return 15 * -Math.round(e._d.getTimezoneOffset() / 15) + } + function zt(e, i, n) { + var s, + r = this._offset || 0 + if (!this.isValid()) return null != e ? this : NaN + if (null != e) { + if ('string' == typeof e) { + if (null === (e = Wt(ls, e))) return this + } else Math.abs(e) < 16 && !n && (e *= 60) + return ( + !this._isUTC && i && (s = Ft(this)), + (this._offset = e), + (this._isUTC = !0), + null != s && this.add(s, 'm'), + r !== e && + (!i || this._changeInProgress + ? ni(this, Qt(e - r, 'm'), 1, !1) + : this._changeInProgress || + ((this._changeInProgress = !0), + t.updateOffset(this, !0), + (this._changeInProgress = null))), + this + ) + } + return this._isUTC ? r : Ft(this) + } + function Rt(e, t) { + return null != e + ? ('string' != typeof e && (e = -e), this.utcOffset(e, t), this) + : -this.utcOffset() + } + function $t(e) { + return this.utcOffset(0, e) + } + function Bt(e) { + return ( + this._isUTC && + (this.utcOffset(0, e), + (this._isUTC = !1), + e && this.subtract(Ft(this), 'm')), + this + ) + } + function Ut() { + if (null != this._tzm) this.utcOffset(this._tzm, !1, !0) + else if ('string' == typeof this._i) { + var e = Wt(os, this._i) + null != e ? this.utcOffset(e) : this.utcOffset(0, !0) + } + return this + } + function qt(e) { + return ( + !!this.isValid() && + ((e = e ? Yt(e).utcOffset() : 0), + (this.utcOffset() - e) % 60 == 0) + ) + } + function Kt() { + return ( + this.utcOffset() > this.clone().month(0).utcOffset() || + this.utcOffset() > this.clone().month(5).utcOffset() + ) + } + function Vt() { + if (!a(this._isDSTShifted)) return this._isDSTShifted + var e = {} + if ((g(e, this), (e = Lt(e)), e._a)) { + var t = e._isUTC ? h(e._a) : Yt(e._a) + this._isDSTShifted = this.isValid() && M(e._a, t.toArray()) > 0 + } else this._isDSTShifted = !1 + return this._isDSTShifted + } + function Gt() { + return !!this.isValid() && !this._isUTC + } + function Jt() { + return !!this.isValid() && this._isUTC + } + function Xt() { + return !!this.isValid() && this._isUTC && 0 === this._offset + } + function Qt(e, t) { + var i, + n, + s, + r = e, + a = null + return ( + Pt(e) + ? (r = { ms: e._milliseconds, d: e._days, M: e._months }) + : o(e) + ? ((r = {}), t ? (r[t] = e) : (r.milliseconds = e)) + : (a = tr.exec(e)) + ? ((i = '-' === a[1] ? -1 : 1), + (r = { + y: 0, + d: w(a[ms]) * i, + h: w(a[_s]) * i, + m: w(a[gs]) * i, + s: w(a[vs]) * i, + ms: w(It(1e3 * a[ys])) * i, + })) + : (a = ir.exec(e)) + ? ((i = '-' === a[1] ? -1 : 1), + (r = { + y: Zt(a[2], i), + M: Zt(a[3], i), + w: Zt(a[4], i), + d: Zt(a[5], i), + h: Zt(a[6], i), + m: Zt(a[7], i), + s: Zt(a[8], i), + })) + : null == r + ? (r = {}) + : 'object' == typeof r && + ('from' in r || 'to' in r) && + ((s = ti(Yt(r.from), Yt(r.to))), + (r = {}), + (r.ms = s.milliseconds), + (r.M = s.months)), + (n = new Ot(r)), + Pt(e) && d(e, '_locale') && (n._locale = e._locale), + n + ) + } + function Zt(e, t) { + var i = e && parseFloat(e.replace(',', '.')) + return (isNaN(i) ? 0 : i) * t + } + function ei(e, t) { + var i = {} + return ( + (i.months = t.month() - e.month() + 12 * (t.year() - e.year())), + e.clone().add(i.months, 'M').isAfter(t) && --i.months, + (i.milliseconds = +t - +e.clone().add(i.months, 'M')), + i + ) + } + function ti(e, t) { + var i + return e.isValid() && t.isValid() + ? ((t = Nt(t, e)), + e.isBefore(t) + ? (i = ei(e, t)) + : ((i = ei(t, e)), + (i.milliseconds = -i.milliseconds), + (i.months = -i.months)), + i) + : { milliseconds: 0, months: 0 } + } + function ii(e, t) { + return function (i, n) { + var s, r + return ( + null === n || + isNaN(+n) || + (D( + t, + 'moment().' + + t + + '(period, number) is deprecated. Please use moment().' + + t + + '(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' + ), + (r = i), + (i = n), + (n = r)), + (i = 'string' == typeof i ? +i : i), + (s = Qt(i, n)), + ni(this, s, e), + this + ) + } + } + function ni(e, i, n, s) { + var r = i._milliseconds, + a = It(i._days), + o = It(i._months) + e.isValid() && + ((s = null == s || s), + o && fe(e, se(e, 'Month') + o * n), + a && re(e, 'Date', se(e, 'Date') + a * n), + r && e._d.setTime(e._d.valueOf() + r * n), + s && t.updateOffset(e, a || o)) + } + function si(e, t) { + var i = e.diff(t, 'days', !0) + return i < -6 + ? 'sameElse' + : i < -1 + ? 'lastWeek' + : i < 0 + ? 'lastDay' + : i < 1 + ? 'sameDay' + : i < 2 + ? 'nextDay' + : i < 7 + ? 'nextWeek' + : 'sameElse' + } + function ri(e, i) { + var n = e || Yt(), + s = Nt(n, this).startOf('day'), + r = t.calendarFormat(this, s) || 'sameElse', + a = i && (T(i[r]) ? i[r].call(this, n) : i[r]) + return this.format(a || this.localeData().calendar(r, this, Yt(n))) + } + function ai() { + return new v(this) + } + function oi(e, t) { + var i = y(e) ? e : Yt(e) + return ( + !(!this.isValid() || !i.isValid()) && + ((t = j(t) || 'millisecond'), + 'millisecond' === t + ? this.valueOf() > i.valueOf() + : i.valueOf() < this.clone().startOf(t).valueOf()) + ) + } + function li(e, t) { + var i = y(e) ? e : Yt(e) + return ( + !(!this.isValid() || !i.isValid()) && + ((t = j(t) || 'millisecond'), + 'millisecond' === t + ? this.valueOf() < i.valueOf() + : this.clone().endOf(t).valueOf() < i.valueOf()) + ) + } + function ui(e, t, i, n) { + var s = y(e) ? e : Yt(e), + r = y(t) ? t : Yt(t) + return ( + !!(this.isValid() && s.isValid() && r.isValid()) && + ((n = n || '()'), + ('(' === n[0] ? this.isAfter(s, i) : !this.isBefore(s, i)) && + (')' === n[1] ? this.isBefore(r, i) : !this.isAfter(r, i))) + ) + } + function di(e, t) { + var i, + n = y(e) ? e : Yt(e) + return ( + !(!this.isValid() || !n.isValid()) && + ((t = j(t) || 'millisecond'), + 'millisecond' === t + ? this.valueOf() === n.valueOf() + : ((i = n.valueOf()), + this.clone().startOf(t).valueOf() <= i && + i <= this.clone().endOf(t).valueOf())) + ) + } + function ci(e, t) { + return this.isSame(e, t) || this.isAfter(e, t) + } + function hi(e, t) { + return this.isSame(e, t) || this.isBefore(e, t) + } + function pi(e, t, i) { + var n, s, r + if (!this.isValid()) return NaN + if (((n = Nt(e, this)), !n.isValid())) return NaN + switch ( + ((s = 6e4 * (n.utcOffset() - this.utcOffset())), (t = j(t))) + ) { + case 'year': + r = fi(this, n) / 12 + break + case 'month': + r = fi(this, n) + break + case 'quarter': + r = fi(this, n) / 3 + break + case 'second': + r = (this - n) / 1e3 + break + case 'minute': + r = (this - n) / 6e4 + break + case 'hour': + r = (this - n) / 36e5 + break + case 'day': + r = (this - n - s) / 864e5 + break + case 'week': + r = (this - n - s) / 6048e5 + break + default: + r = this - n + } + return i ? r : b(r) + } + function fi(e, t) { + var i, + n, + s = 12 * (t.year() - e.year()) + (t.month() - e.month()), + r = e.clone().add(s, 'months') + return ( + t - r < 0 + ? ((i = e.clone().add(s - 1, 'months')), + (n = (t - r) / (r - i))) + : ((i = e.clone().add(s + 1, 'months')), + (n = (t - r) / (i - r))), + -(s + n) || 0 + ) + } + function mi() { + return this.clone() + .locale('en') + .format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ') + } + function _i(e) { + if (!this.isValid()) return null + var t = !0 !== e, + i = t ? this.clone().utc() : this + return i.year() < 0 || i.year() > 9999 + ? U( + i, + t + ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' + ) + : T(Date.prototype.toISOString) + ? t + ? this.toDate().toISOString() + : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3) + .toISOString() + .replace('Z', U(i, 'Z')) + : U( + i, + t + ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' + ) + } + function gi() { + if (!this.isValid()) return 'moment.invalid(/* ' + this._i + ' */)' + var e = 'moment', + t = '' + this.isLocal() || + ((e = 0 === this.utcOffset() ? 'moment.utc' : 'moment.parseZone'), + (t = 'Z')) + var i = '[' + e + '("]', + n = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY', + s = t + '[")]' + return this.format(i + n + '-MM-DD[T]HH:mm:ss.SSS' + s) + } + function vi(e) { + e || (e = this.isUtc() ? t.defaultFormatUtc : t.defaultFormat) + var i = U(this, e) + return this.localeData().postformat(i) + } + function yi(e, t) { + return this.isValid() && ((y(e) && e.isValid()) || Yt(e).isValid()) + ? Qt({ to: this, from: e }).locale(this.locale()).humanize(!t) + : this.localeData().invalidDate() + } + function bi(e) { + return this.from(Yt(), e) + } + function wi(e, t) { + return this.isValid() && ((y(e) && e.isValid()) || Yt(e).isValid()) + ? Qt({ from: this, to: e }).locale(this.locale()).humanize(!t) + : this.localeData().invalidDate() + } + function Mi(e) { + return this.to(Yt(), e) + } + function ki(e) { + var t + return void 0 === e + ? this._locale._abbr + : ((t = st(e)), null != t && (this._locale = t), this) + } + function Li() { + return this._locale + } + function Di(e, t) { + return ((e % t) + t) % t + } + function Ti(e, t, i) { + return e < 100 && e >= 0 + ? new Date(e + 400, t, i) - ur + : new Date(e, t, i).valueOf() + } + function Yi(e, t, i) { + return e < 100 && e >= 0 + ? Date.UTC(e + 400, t, i) - ur + : Date.UTC(e, t, i) + } + function xi(e) { + var i + if (void 0 === (e = j(e)) || 'millisecond' === e || !this.isValid()) + return this + var n = this._isUTC ? Yi : Ti + switch (e) { + case 'year': + i = n(this.year(), 0, 1) + break + case 'quarter': + i = n(this.year(), this.month() - (this.month() % 3), 1) + break + case 'month': + i = n(this.year(), this.month(), 1) + break + case 'week': + i = n(this.year(), this.month(), this.date() - this.weekday()) + break + case 'isoWeek': + i = n( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + ) + break + case 'day': + case 'date': + i = n(this.year(), this.month(), this.date()) + break + case 'hour': + ;(i = this._d.valueOf()), + (i -= Di(i + (this._isUTC ? 0 : this.utcOffset() * or), lr)) + break + case 'minute': + ;(i = this._d.valueOf()), (i -= Di(i, or)) + break + case 'second': + ;(i = this._d.valueOf()), (i -= Di(i, ar)) + } + return this._d.setTime(i), t.updateOffset(this, !0), this + } + function Ci(e) { + var i + if (void 0 === (e = j(e)) || 'millisecond' === e || !this.isValid()) + return this + var n = this._isUTC ? Yi : Ti + switch (e) { + case 'year': + i = n(this.year() + 1, 0, 1) - 1 + break + case 'quarter': + i = n(this.year(), this.month() - (this.month() % 3) + 3, 1) - 1 + break + case 'month': + i = n(this.year(), this.month() + 1, 1) - 1 + break + case 'week': + i = + n( + this.year(), + this.month(), + this.date() - this.weekday() + 7 + ) - 1 + break + case 'isoWeek': + i = + n( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + 7 + ) - 1 + break + case 'day': + case 'date': + i = n(this.year(), this.month(), this.date() + 1) - 1 + break + case 'hour': + ;(i = this._d.valueOf()), + (i += + lr - + Di(i + (this._isUTC ? 0 : this.utcOffset() * or), lr) - + 1) + break + case 'minute': + ;(i = this._d.valueOf()), (i += or - Di(i, or) - 1) + break + case 'second': + ;(i = this._d.valueOf()), (i += ar - Di(i, ar) - 1) + } + return this._d.setTime(i), t.updateOffset(this, !0), this + } + function Si() { + return this._d.valueOf() - 6e4 * (this._offset || 0) + } + function Ei() { + return Math.floor(this.valueOf() / 1e3) + } + function Hi() { + return new Date(this.valueOf()) + } + function Ai() { + var e = this + return [ + e.year(), + e.month(), + e.date(), + e.hour(), + e.minute(), + e.second(), + e.millisecond(), + ] + } + function Oi() { + var e = this + return { + years: e.year(), + months: e.month(), + date: e.date(), + hours: e.hours(), + minutes: e.minutes(), + seconds: e.seconds(), + milliseconds: e.milliseconds(), + } + } + function Pi() { + return this.isValid() ? this.toISOString() : null + } + function Ii() { + return m(this) + } + function ji() { + return c({}, f(this)) + } + function Wi() { + return f(this).overflow + } + function Ni() { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict, + } + } + function Fi(e, t) { + R(0, [e, e.length], 0, t) + } + function zi(e) { + return Ui.call( + this, + e, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy + ) + } + function Ri(e) { + return Ui.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4) + } + function $i() { + return De(this.year(), 1, 4) + } + function Bi() { + var e = this.localeData()._week + return De(this.year(), e.dow, e.doy) + } + function Ui(e, t, i, n, s) { + var r + return null == e + ? Le(this, n, s).year + : ((r = De(e, n, s)), + t > r && (t = r), + qi.call(this, e, t, i, n, s)) + } + function qi(e, t, i, n, s) { + var r = ke(e, t, i, n, s), + a = we(r.year, 0, r.dayOfYear) + return ( + this.year(a.getUTCFullYear()), + this.month(a.getUTCMonth()), + this.date(a.getUTCDate()), + this + ) + } + function Ki(e) { + return null == e + ? Math.ceil((this.month() + 1) / 3) + : this.month(3 * (e - 1) + (this.month() % 3)) + } + function Vi(e) { + var t = + Math.round( + (this.clone().startOf('day') - this.clone().startOf('year')) / + 864e5 + ) + 1 + return null == e ? t : this.add(e - t, 'd') + } + function Gi(e, t) { + t[ys] = w(1e3 * ('0.' + e)) + } + function Ji() { + return this._isUTC ? 'UTC' : '' + } + function Xi() { + return this._isUTC ? 'Coordinated Universal Time' : '' + } + function Qi(e) { + return Yt(1e3 * e) + } + function Zi() { + return Yt.apply(null, arguments).parseZone() + } + function en(e) { + return e + } + function tn(e, t, i, n) { + var s = st(), + r = h().set(n, t) + return s[i](r, e) + } + function nn(e, t, i) { + if ((o(e) && ((t = e), (e = void 0)), (e = e || ''), null != t)) + return tn(e, t, i, 'month') + var n, + s = [] + for (n = 0; n < 12; n++) s[n] = tn(e, n, i, 'month') + return s + } + function sn(e, t, i, n) { + 'boolean' == typeof e + ? (o(t) && ((i = t), (t = void 0)), (t = t || '')) + : ((t = e), + (i = t), + (e = !1), + o(t) && ((i = t), (t = void 0)), + (t = t || '')) + var s = st(), + r = e ? s._week.dow : 0 + if (null != i) return tn(t, (i + r) % 7, n, 'day') + var a, + l = [] + for (a = 0; a < 7; a++) l[a] = tn(t, (a + r) % 7, n, 'day') + return l + } + function rn(e, t) { + return nn(e, t, 'months') + } + function an(e, t) { + return nn(e, t, 'monthsShort') + } + function on(e, t, i) { + return sn(e, t, i, 'weekdays') + } + function ln(e, t, i) { + return sn(e, t, i, 'weekdaysShort') + } + function un(e, t, i) { + return sn(e, t, i, 'weekdaysMin') + } + function dn() { + var e = this._data + return ( + (this._milliseconds = gr(this._milliseconds)), + (this._days = gr(this._days)), + (this._months = gr(this._months)), + (e.milliseconds = gr(e.milliseconds)), + (e.seconds = gr(e.seconds)), + (e.minutes = gr(e.minutes)), + (e.hours = gr(e.hours)), + (e.months = gr(e.months)), + (e.years = gr(e.years)), + this + ) + } + function cn(e, t, i, n) { + var s = Qt(t, i) + return ( + (e._milliseconds += n * s._milliseconds), + (e._days += n * s._days), + (e._months += n * s._months), + e._bubble() + ) + } + function hn(e, t) { + return cn(this, e, t, 1) + } + function pn(e, t) { + return cn(this, e, t, -1) + } + function fn(e) { + return e < 0 ? Math.floor(e) : Math.ceil(e) + } + function mn() { + var e, + t, + i, + n, + s, + r = this._milliseconds, + a = this._days, + o = this._months, + l = this._data + return ( + (r >= 0 && a >= 0 && o >= 0) || + (r <= 0 && a <= 0 && o <= 0) || + ((r += 864e5 * fn(gn(o) + a)), (a = 0), (o = 0)), + (l.milliseconds = r % 1e3), + (e = b(r / 1e3)), + (l.seconds = e % 60), + (t = b(e / 60)), + (l.minutes = t % 60), + (i = b(t / 60)), + (l.hours = i % 24), + (a += b(i / 24)), + (s = b(_n(a))), + (o += s), + (a -= fn(gn(s))), + (n = b(o / 12)), + (o %= 12), + (l.days = a), + (l.months = o), + (l.years = n), + this + ) + } + function _n(e) { + return (4800 * e) / 146097 + } + function gn(e) { + return (146097 * e) / 4800 + } + function vn(e) { + if (!this.isValid()) return NaN + var t, + i, + n = this._milliseconds + if ('month' === (e = j(e)) || 'quarter' === e || 'year' === e) + switch ( + ((t = this._days + n / 864e5), (i = this._months + _n(t)), e) + ) { + case 'month': + return i + case 'quarter': + return i / 3 + case 'year': + return i / 12 + } + else + switch (((t = this._days + Math.round(gn(this._months))), e)) { + case 'week': + return t / 7 + n / 6048e5 + case 'day': + return t + n / 864e5 + case 'hour': + return 24 * t + n / 36e5 + case 'minute': + return 1440 * t + n / 6e4 + case 'second': + return 86400 * t + n / 1e3 + case 'millisecond': + return Math.floor(864e5 * t) + n + default: + throw new Error('Unknown unit ' + e) + } + } + function yn() { + return this.isValid() + ? this._milliseconds + + 864e5 * this._days + + (this._months % 12) * 2592e6 + + 31536e6 * w(this._months / 12) + : NaN + } + function bn(e) { + return function () { + return this.as(e) + } + } + function wn() { + return Qt(this) + } + function Mn(e) { + return (e = j(e)), this.isValid() ? this[e + 's']() : NaN + } + function kn(e) { + return function () { + return this.isValid() ? this._data[e] : NaN + } + } + function Ln() { + return b(this.days() / 7) + } + function Dn(e, t, i, n, s) { + return s.relativeTime(t || 1, !!i, e, n) + } + function Tn(e, t, i) { + var n = Qt(e).abs(), + s = Or(n.as('s')), + r = Or(n.as('m')), + a = Or(n.as('h')), + o = Or(n.as('d')), + l = Or(n.as('M')), + u = Or(n.as('y')), + d = (s <= Pr.ss && ['s', s]) || + (s < Pr.s && ['ss', s]) || + (r <= 1 && ['m']) || + (r < Pr.m && ['mm', r]) || + (a <= 1 && ['h']) || + (a < Pr.h && ['hh', a]) || + (o <= 1 && ['d']) || + (o < Pr.d && ['dd', o]) || + (l <= 1 && ['M']) || + (l < Pr.M && ['MM', l]) || + (u <= 1 && ['y']) || ['yy', u] + return (d[2] = t), (d[3] = +e > 0), (d[4] = i), Dn.apply(null, d) + } + function Yn(e) { + return void 0 === e ? Or : 'function' == typeof e && ((Or = e), !0) + } + function xn(e, t) { + return ( + void 0 !== Pr[e] && + (void 0 === t + ? Pr[e] + : ((Pr[e] = t), 's' === e && (Pr.ss = t - 1), !0)) + ) + } + function Cn(e) { + if (!this.isValid()) return this.localeData().invalidDate() + var t = this.localeData(), + i = Tn(this, !e, t) + return e && (i = t.pastFuture(+this, i)), t.postformat(i) + } + function Sn(e) { + return (e > 0) - (e < 0) || +e + } + function En() { + if (!this.isValid()) return this.localeData().invalidDate() + var e, + t, + i, + n = Ir(this._milliseconds) / 1e3, + s = Ir(this._days), + r = Ir(this._months) + ;(e = b(n / 60)), + (t = b(e / 60)), + (n %= 60), + (e %= 60), + (i = b(r / 12)), + (r %= 12) + var a = i, + o = r, + l = s, + u = t, + d = e, + c = n ? n.toFixed(3).replace(/\.?0+$/, '') : '', + h = this.asSeconds() + if (!h) return 'P0D' + var p = h < 0 ? '-' : '', + f = Sn(this._months) !== Sn(h) ? '-' : '', + m = Sn(this._days) !== Sn(h) ? '-' : '', + _ = Sn(this._milliseconds) !== Sn(h) ? '-' : '' + return ( + p + + 'P' + + (a ? f + a + 'Y' : '') + + (o ? f + o + 'M' : '') + + (l ? m + l + 'D' : '') + + (u || d || c ? 'T' : '') + + (u ? _ + u + 'H' : '') + + (d ? _ + d + 'M' : '') + + (c ? _ + c + 'S' : '') + ) + } + var Hn, An + An = Array.prototype.some + ? Array.prototype.some + : function (e) { + for ( + var t = Object(this), i = t.length >>> 0, n = 0; + n < i; + n++ + ) + if (n in t && e.call(this, t[n], n, t)) return !0 + return !1 + } + var On = (t.momentProperties = []), + Pn = !1, + In = {} + ;(t.suppressDeprecationWarnings = !1), (t.deprecationHandler = null) + var jn + jn = Object.keys + ? Object.keys + : function (e) { + var t, + i = [] + for (t in e) d(e, t) && i.push(t) + return i + } + var Wn = { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + Nn = { + LTS: 'h:mm:ss A', + LT: 'h:mm A', + L: 'MM/DD/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + Fn = /\d{1,2}/, + zn = { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + Rn = {}, + $n = {}, + Bn = + /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, + Un = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, + qn = {}, + Kn = {}, + Vn = /\d/, + Gn = /\d\d/, + Jn = /\d{3}/, + Xn = /\d{4}/, + Qn = /[+-]?\d{6}/, + Zn = /\d\d?/, + es = /\d\d\d\d?/, + ts = /\d\d\d\d\d\d?/, + is = /\d{1,3}/, + ns = /\d{1,4}/, + ss = /[+-]?\d{1,6}/, + rs = /\d+/, + as = /[+-]?\d+/, + os = /Z|[+-]\d\d:?\d\d/gi, + ls = /Z|[+-]\d\d(?::?\d\d)?/gi, + us = /[+-]?\d+(\.\d{1,3})?/, + ds = + /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, + cs = {}, + hs = {}, + ps = 0, + fs = 1, + ms = 2, + _s = 3, + gs = 4, + vs = 5, + ys = 6, + bs = 7, + ws = 8 + R('Y', 0, 0, function () { + var e = this.year() + return e <= 9999 ? '' + e : '+' + e + }), + R(0, ['YY', 2], 0, function () { + return this.year() % 100 + }), + R(0, ['YYYY', 4], 0, 'year'), + R(0, ['YYYYY', 5], 0, 'year'), + R(0, ['YYYYYY', 6, !0], 0, 'year'), + I('year', 'y'), + N('year', 1), + K('Y', as), + K('YY', Zn, Gn), + K('YYYY', ns, Xn), + K('YYYYY', ss, Qn), + K('YYYYYY', ss, Qn), + X(['YYYYY', 'YYYYYY'], ps), + X('YYYY', function (e, i) { + i[ps] = 2 === e.length ? t.parseTwoDigitYear(e) : w(e) + }), + X('YY', function (e, i) { + i[ps] = t.parseTwoDigitYear(e) + }), + X('Y', function (e, t) { + t[ps] = parseInt(e, 10) + }), + (t.parseTwoDigitYear = function (e) { + return w(e) + (w(e) > 68 ? 1900 : 2e3) + }) + var Ms, + ks = ne('FullYear', !0) + ;(Ms = Array.prototype.indexOf + ? Array.prototype.indexOf + : function (e) { + var t + for (t = 0; t < this.length; ++t) if (this[t] === e) return t + return -1 + }), + R('M', ['MM', 2], 'Mo', function () { + return this.month() + 1 + }), + R('MMM', 0, 0, function (e) { + return this.localeData().monthsShort(this, e) + }), + R('MMMM', 0, 0, function (e) { + return this.localeData().months(this, e) + }), + I('month', 'M'), + N('month', 8), + K('M', Zn), + K('MM', Zn, Gn), + K('MMM', function (e, t) { + return t.monthsShortRegex(e) + }), + K('MMMM', function (e, t) { + return t.monthsRegex(e) + }), + X(['M', 'MM'], function (e, t) { + t[fs] = w(e) - 1 + }), + X(['MMM', 'MMMM'], function (e, t, i, n) { + var s = i._locale.monthsParse(e, n, i._strict) + null != s ? (t[fs] = s) : (f(i).invalidMonth = e) + }) + var Ls = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, + Ds = + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + Ts = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + Ys = ds, + xs = ds + R('w', ['ww', 2], 'wo', 'week'), + R('W', ['WW', 2], 'Wo', 'isoWeek'), + I('week', 'w'), + I('isoWeek', 'W'), + N('week', 5), + N('isoWeek', 5), + K('w', Zn), + K('ww', Zn, Gn), + K('W', Zn), + K('WW', Zn, Gn), + Q(['w', 'ww', 'W', 'WW'], function (e, t, i, n) { + t[n.substr(0, 1)] = w(e) + }) + var Cs = { dow: 0, doy: 6 } + R('d', 0, 'do', 'day'), + R('dd', 0, 0, function (e) { + return this.localeData().weekdaysMin(this, e) + }), + R('ddd', 0, 0, function (e) { + return this.localeData().weekdaysShort(this, e) + }), + R('dddd', 0, 0, function (e) { + return this.localeData().weekdays(this, e) + }), + R('e', 0, 0, 'weekday'), + R('E', 0, 0, 'isoWeekday'), + I('day', 'd'), + I('weekday', 'e'), + I('isoWeekday', 'E'), + N('day', 11), + N('weekday', 11), + N('isoWeekday', 11), + K('d', Zn), + K('e', Zn), + K('E', Zn), + K('dd', function (e, t) { + return t.weekdaysMinRegex(e) + }), + K('ddd', function (e, t) { + return t.weekdaysShortRegex(e) + }), + K('dddd', function (e, t) { + return t.weekdaysRegex(e) + }), + Q(['dd', 'ddd', 'dddd'], function (e, t, i, n) { + var s = i._locale.weekdaysParse(e, n, i._strict) + null != s ? (t.d = s) : (f(i).invalidWeekday = e) + }), + Q(['d', 'e', 'E'], function (e, t, i, n) { + t[n] = w(e) + }) + var Ss = + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + Es = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + Hs = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + As = ds, + Os = ds, + Ps = ds + R('H', ['HH', 2], 0, 'hour'), + R('h', ['hh', 2], 0, qe), + R('k', ['kk', 2], 0, Ke), + R('hmm', 0, 0, function () { + return '' + qe.apply(this) + z(this.minutes(), 2) + }), + R('hmmss', 0, 0, function () { + return ( + '' + + qe.apply(this) + + z(this.minutes(), 2) + + z(this.seconds(), 2) + ) + }), + R('Hmm', 0, 0, function () { + return '' + this.hours() + z(this.minutes(), 2) + }), + R('Hmmss', 0, 0, function () { + return ( + '' + this.hours() + z(this.minutes(), 2) + z(this.seconds(), 2) + ) + }), + Ve('a', !0), + Ve('A', !1), + I('hour', 'h'), + N('hour', 13), + K('a', Ge), + K('A', Ge), + K('H', Zn), + K('h', Zn), + K('k', Zn), + K('HH', Zn, Gn), + K('hh', Zn, Gn), + K('kk', Zn, Gn), + K('hmm', es), + K('hmmss', ts), + K('Hmm', es), + K('Hmmss', ts), + X(['H', 'HH'], _s), + X(['k', 'kk'], function (e, t, i) { + var n = w(e) + t[_s] = 24 === n ? 0 : n + }), + X(['a', 'A'], function (e, t, i) { + ;(i._isPm = i._locale.isPM(e)), (i._meridiem = e) + }), + X(['h', 'hh'], function (e, t, i) { + ;(t[_s] = w(e)), (f(i).bigHour = !0) + }), + X('hmm', function (e, t, i) { + var n = e.length - 2 + ;(t[_s] = w(e.substr(0, n))), + (t[gs] = w(e.substr(n))), + (f(i).bigHour = !0) + }), + X('hmmss', function (e, t, i) { + var n = e.length - 4, + s = e.length - 2 + ;(t[_s] = w(e.substr(0, n))), + (t[gs] = w(e.substr(n, 2))), + (t[vs] = w(e.substr(s))), + (f(i).bigHour = !0) + }), + X('Hmm', function (e, t, i) { + var n = e.length - 2 + ;(t[_s] = w(e.substr(0, n))), (t[gs] = w(e.substr(n))) + }), + X('Hmmss', function (e, t, i) { + var n = e.length - 4, + s = e.length - 2 + ;(t[_s] = w(e.substr(0, n))), + (t[gs] = w(e.substr(n, 2))), + (t[vs] = w(e.substr(s))) + }) + var Is, + js = /[ap]\.?m?\.?/i, + Ws = ne('Hours', !0), + Ns = { + calendar: Wn, + longDateFormat: Nn, + invalidDate: 'Invalid date', + ordinal: '%d', + dayOfMonthOrdinalParse: Fn, + relativeTime: zn, + months: Ds, + monthsShort: Ts, + week: Cs, + weekdays: Ss, + weekdaysMin: Hs, + weekdaysShort: Es, + meridiemParse: js, + }, + Fs = {}, + zs = {}, + Rs = + /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + $s = + /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + Bs = /Z|[+-]\d\d(?::?\d\d)?/, + Us = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], + ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], + ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], + ['GGGG-[W]WW', /\d{4}-W\d\d/, !1], + ['YYYY-DDD', /\d{4}-\d{3}/], + ['YYYY-MM', /\d{4}-\d\d/, !1], + ['YYYYYYMMDD', /[+-]\d{10}/], + ['YYYYMMDD', /\d{8}/], + ['GGGG[W]WWE', /\d{4}W\d{3}/], + ['GGGG[W]WW', /\d{4}W\d{2}/, !1], + ['YYYYDDD', /\d{7}/], + ], + qs = [ + ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], + ['HH:mm:ss', /\d\d:\d\d:\d\d/], + ['HH:mm', /\d\d:\d\d/], + ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], + ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], + ['HHmmss', /\d\d\d\d\d\d/], + ['HHmm', /\d\d\d\d/], + ['HH', /\d\d/], + ], + Ks = /^\/?Date\((\-?\d+)/i, + Vs = + /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, + Gs = { + UT: 0, + GMT: 0, + EDT: -240, + EST: -300, + CDT: -300, + CST: -360, + MDT: -360, + MST: -420, + PDT: -420, + PST: -480, + } + ;(t.createFromInputFallback = L( + 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', + function (e) { + e._d = new Date(e._i + (e._useUTC ? ' UTC' : '')) + } + )), + (t.ISO_8601 = function () {}), + (t.RFC_2822 = function () {}) + var Js = L( + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var e = Yt.apply(null, arguments) + return this.isValid() && e.isValid() + ? e < this + ? this + : e + : _() + } + ), + Xs = L( + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var e = Yt.apply(null, arguments) + return this.isValid() && e.isValid() + ? e > this + ? this + : e + : _() + } + ), + Qs = function () { + return Date.now ? Date.now() : +new Date() + }, + Zs = [ + 'year', + 'quarter', + 'month', + 'week', + 'day', + 'hour', + 'minute', + 'second', + 'millisecond', + ] + jt('Z', ':'), + jt('ZZ', ''), + K('Z', ls), + K('ZZ', ls), + X(['Z', 'ZZ'], function (e, t, i) { + ;(i._useUTC = !0), (i._tzm = Wt(ls, e)) + }) + var er = /([\+\-]|\d\d)/gi + t.updateOffset = function () {} + var tr = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, + ir = + /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/ + ;(Qt.fn = Ot.prototype), (Qt.invalid = At) + var nr = ii(1, 'add'), + sr = ii(-1, 'subtract') + ;(t.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'), + (t.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]') + var rr = L( + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', + function (e) { + return void 0 === e ? this.localeData() : this.locale(e) + } + ), + ar = 1e3, + or = 60 * ar, + lr = 60 * or, + ur = 3506328 * lr + R(0, ['gg', 2], 0, function () { + return this.weekYear() % 100 + }), + R(0, ['GG', 2], 0, function () { + return this.isoWeekYear() % 100 + }), + Fi('gggg', 'weekYear'), + Fi('ggggg', 'weekYear'), + Fi('GGGG', 'isoWeekYear'), + Fi('GGGGG', 'isoWeekYear'), + I('weekYear', 'gg'), + I('isoWeekYear', 'GG'), + N('weekYear', 1), + N('isoWeekYear', 1), + K('G', as), + K('g', as), + K('GG', Zn, Gn), + K('gg', Zn, Gn), + K('GGGG', ns, Xn), + K('gggg', ns, Xn), + K('GGGGG', ss, Qn), + K('ggggg', ss, Qn), + Q(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (e, t, i, n) { + t[n.substr(0, 2)] = w(e) + }), + Q(['gg', 'GG'], function (e, i, n, s) { + i[s] = t.parseTwoDigitYear(e) + }), + R('Q', 0, 'Qo', 'quarter'), + I('quarter', 'Q'), + N('quarter', 7), + K('Q', Vn), + X('Q', function (e, t) { + t[fs] = 3 * (w(e) - 1) + }), + R('D', ['DD', 2], 'Do', 'date'), + I('date', 'D'), + N('date', 9), + K('D', Zn), + K('DD', Zn, Gn), + K('Do', function (e, t) { + return e + ? t._dayOfMonthOrdinalParse || t._ordinalParse + : t._dayOfMonthOrdinalParseLenient + }), + X(['D', 'DD'], ms), + X('Do', function (e, t) { + t[ms] = w(e.match(Zn)[0]) + }) + var dr = ne('Date', !0) + R('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'), + I('dayOfYear', 'DDD'), + N('dayOfYear', 4), + K('DDD', is), + K('DDDD', Jn), + X(['DDD', 'DDDD'], function (e, t, i) { + i._dayOfYear = w(e) + }), + R('m', ['mm', 2], 0, 'minute'), + I('minute', 'm'), + N('minute', 14), + K('m', Zn), + K('mm', Zn, Gn), + X(['m', 'mm'], gs) + var cr = ne('Minutes', !1) + R('s', ['ss', 2], 0, 'second'), + I('second', 's'), + N('second', 15), + K('s', Zn), + K('ss', Zn, Gn), + X(['s', 'ss'], vs) + var hr = ne('Seconds', !1) + R('S', 0, 0, function () { + return ~~(this.millisecond() / 100) + }), + R(0, ['SS', 2], 0, function () { + return ~~(this.millisecond() / 10) + }), + R(0, ['SSS', 3], 0, 'millisecond'), + R(0, ['SSSS', 4], 0, function () { + return 10 * this.millisecond() + }), + R(0, ['SSSSS', 5], 0, function () { + return 100 * this.millisecond() + }), + R(0, ['SSSSSS', 6], 0, function () { + return 1e3 * this.millisecond() + }), + R(0, ['SSSSSSS', 7], 0, function () { + return 1e4 * this.millisecond() + }), + R(0, ['SSSSSSSS', 8], 0, function () { + return 1e5 * this.millisecond() + }), + R(0, ['SSSSSSSSS', 9], 0, function () { + return 1e6 * this.millisecond() + }), + I('millisecond', 'ms'), + N('millisecond', 16), + K('S', is, Vn), + K('SS', is, Gn), + K('SSS', is, Jn) + var pr + for (pr = 'SSSS'; pr.length <= 9; pr += 'S') K(pr, rs) + for (pr = 'S'; pr.length <= 9; pr += 'S') X(pr, Gi) + var fr = ne('Milliseconds', !1) + R('z', 0, 0, 'zoneAbbr'), R('zz', 0, 0, 'zoneName') + var mr = v.prototype + ;(mr.add = nr), + (mr.calendar = ri), + (mr.clone = ai), + (mr.diff = pi), + (mr.endOf = Ci), + (mr.format = vi), + (mr.from = yi), + (mr.fromNow = bi), + (mr.to = wi), + (mr.toNow = Mi), + (mr.get = ae), + (mr.invalidAt = Wi), + (mr.isAfter = oi), + (mr.isBefore = li), + (mr.isBetween = ui), + (mr.isSame = di), + (mr.isSameOrAfter = ci), + (mr.isSameOrBefore = hi), + (mr.isValid = Ii), + (mr.lang = rr), + (mr.locale = ki), + (mr.localeData = Li), + (mr.max = Xs), + (mr.min = Js), + (mr.parsingFlags = ji), + (mr.set = oe), + (mr.startOf = xi), + (mr.subtract = sr), + (mr.toArray = Ai), + (mr.toObject = Oi), + (mr.toDate = Hi), + (mr.toISOString = _i), + (mr.inspect = gi), + (mr.toJSON = Pi), + (mr.toString = mi), + (mr.unix = Ei), + (mr.valueOf = Si), + (mr.creationData = Ni), + (mr.year = ks), + (mr.isLeapYear = ie), + (mr.weekYear = zi), + (mr.isoWeekYear = Ri), + (mr.quarter = mr.quarters = Ki), + (mr.month = me), + (mr.daysInMonth = _e), + (mr.week = mr.weeks = Ce), + (mr.isoWeek = mr.isoWeeks = Se), + (mr.weeksInYear = Bi), + (mr.isoWeeksInYear = $i), + (mr.date = dr), + (mr.day = mr.days = Ne), + (mr.weekday = Fe), + (mr.isoWeekday = ze), + (mr.dayOfYear = Vi), + (mr.hour = mr.hours = Ws), + (mr.minute = mr.minutes = cr), + (mr.second = mr.seconds = hr), + (mr.millisecond = mr.milliseconds = fr), + (mr.utcOffset = zt), + (mr.utc = $t), + (mr.local = Bt), + (mr.parseZone = Ut), + (mr.hasAlignedHourOffset = qt), + (mr.isDST = Kt), + (mr.isLocal = Gt), + (mr.isUtcOffset = Jt), + (mr.isUtc = Xt), + (mr.isUTC = Xt), + (mr.zoneAbbr = Ji), + (mr.zoneName = Xi), + (mr.dates = L( + 'dates accessor is deprecated. Use date instead.', + dr + )), + (mr.months = L( + 'months accessor is deprecated. Use month instead', + me + )), + (mr.years = L( + 'years accessor is deprecated. Use year instead', + ks + )), + (mr.zone = L( + 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', + Rt + )), + (mr.isDSTShifted = L( + 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', + Vt + )) + var _r = C.prototype + ;(_r.calendar = S), + (_r.longDateFormat = E), + (_r.invalidDate = H), + (_r.ordinal = A), + (_r.preparse = en), + (_r.postformat = en), + (_r.relativeTime = O), + (_r.pastFuture = P), + (_r.set = Y), + (_r.months = de), + (_r.monthsShort = ce), + (_r.monthsParse = pe), + (_r.monthsRegex = ve), + (_r.monthsShortRegex = ge), + (_r.week = Te), + (_r.firstDayOfYear = xe), + (_r.firstDayOfWeek = Ye), + (_r.weekdays = Oe), + (_r.weekdaysMin = Ie), + (_r.weekdaysShort = Pe), + (_r.weekdaysParse = We), + (_r.weekdaysRegex = Re), + (_r.weekdaysShortRegex = $e), + (_r.weekdaysMinRegex = Be), + (_r.isPM = Je), + (_r.meridiem = Xe), + tt('en', { + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 === w((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + }), + (t.lang = L( + 'moment.lang is deprecated. Use moment.locale instead.', + tt + )), + (t.langData = L( + 'moment.langData is deprecated. Use moment.localeData instead.', + st + )) + var gr = Math.abs, + vr = bn('ms'), + yr = bn('s'), + br = bn('m'), + wr = bn('h'), + Mr = bn('d'), + kr = bn('w'), + Lr = bn('M'), + Dr = bn('Q'), + Tr = bn('y'), + Yr = kn('milliseconds'), + xr = kn('seconds'), + Cr = kn('minutes'), + Sr = kn('hours'), + Er = kn('days'), + Hr = kn('months'), + Ar = kn('years'), + Or = Math.round, + Pr = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }, + Ir = Math.abs, + jr = Ot.prototype + return ( + (jr.isValid = Ht), + (jr.abs = dn), + (jr.add = hn), + (jr.subtract = pn), + (jr.as = vn), + (jr.asMilliseconds = vr), + (jr.asSeconds = yr), + (jr.asMinutes = br), + (jr.asHours = wr), + (jr.asDays = Mr), + (jr.asWeeks = kr), + (jr.asMonths = Lr), + (jr.asQuarters = Dr), + (jr.asYears = Tr), + (jr.valueOf = yn), + (jr._bubble = mn), + (jr.clone = wn), + (jr.get = Mn), + (jr.milliseconds = Yr), + (jr.seconds = xr), + (jr.minutes = Cr), + (jr.hours = Sr), + (jr.days = Er), + (jr.weeks = Ln), + (jr.months = Hr), + (jr.years = Ar), + (jr.humanize = Cn), + (jr.toISOString = En), + (jr.toString = En), + (jr.toJSON = En), + (jr.locale = ki), + (jr.localeData = Li), + (jr.toIsoString = L( + 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', + En + )), + (jr.lang = rr), + R('X', 0, 0, 'unix'), + R('x', 0, 0, 'valueOf'), + K('x', as), + K('X', us), + X('X', function (e, t, i) { + i._d = new Date(1e3 * parseFloat(e, 10)) + }), + X('x', function (e, t, i) { + i._d = new Date(w(e)) + }), + (t.version = '2.24.0'), + (function (e) { + Hn = e + })(Yt), + (t.fn = mr), + (t.min = Ct), + (t.max = St), + (t.now = Qs), + (t.utc = h), + (t.unix = Qi), + (t.months = rn), + (t.isDate = l), + (t.locale = tt), + (t.invalid = _), + (t.duration = Qt), + (t.isMoment = y), + (t.weekdays = on), + (t.parseZone = Zi), + (t.localeData = st), + (t.isDuration = Pt), + (t.monthsShort = an), + (t.weekdaysMin = un), + (t.defineLocale = it), + (t.updateLocale = nt), + (t.locales = rt), + (t.weekdaysShort = ln), + (t.normalizeUnits = j), + (t.relativeTimeRounding = Yn), + (t.relativeTimeThreshold = xn), + (t.calendarFormat = si), + (t.prototype = mr), + (t.HTML5_FMT = { + DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', + DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', + DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', + DATE: 'YYYY-MM-DD', + TIME: 'HH:mm', + TIME_SECONDS: 'HH:mm:ss', + TIME_MS: 'HH:mm:ss.SSS', + WEEK: 'GGGG-[W]WW', + MONTH: 'YYYY-MM', + }), + t + ) + }) + }).call(window) + }).call(t, i(139)(e)) + }, + function (e, t, i) { + var n = i(18) + e.exports = function (e, t, i) { + if ((n(e), void 0 === t)) return e + switch (i) { + case 1: + return function (i) { + return e.call(t, i) + } + case 2: + return function (i, n) { + return e.call(t, i, n) + } + case 3: + return function (i, n, s) { + return e.call(t, i, n, s) + } + } + return function () { + return e.apply(t, arguments) + } + } + }, + function (e, t, i) { + var n = i(4), + s = i(5).document, + r = n(s) && n(s.createElement) + e.exports = function (e) { + return r ? s.createElement(e) : {} + } + }, + function (e, t, i) { + e.exports = + !i(2) && + !i(7)(function () { + return ( + 7 != + Object.defineProperty(i(16)('div'), 'a', { + get: function () { + return 7 + }, + }).a + ) + }) + }, + function (e, t) { + e.exports = function (e) { + if ('function' != typeof e) throw TypeError(e + ' is not a function!') + return e + } + }, + function (e, t, i) { + e.exports = { default: i(20), __esModule: !0 } + }, + function (e, t, i) { + i(21) + var n = i(3).Object + e.exports = function (e, t, i) { + return n.defineProperty(e, t, i) + } + }, + function (e, t, i) { + var n = i(8) + n(n.S + n.F * !i(2), 'Object', { defineProperty: i(6).f }) + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t) { + !(function () { + e.exports = window.jQuery + })() + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t, i) { + ;(function (e) { + function n(e, t) { + ;(this._id = e), (this._clearFn = t) + } + var s = + (void 0 !== e && e) || ('undefined' != typeof self && self) || window, + r = Function.prototype.apply + ;(t.setTimeout = function () { + return new n(r.call(setTimeout, s, arguments), clearTimeout) + }), + (t.setInterval = function () { + return new n(r.call(setInterval, s, arguments), clearInterval) + }), + (t.clearTimeout = t.clearInterval = + function (e) { + e && e.close() + }), + (n.prototype.unref = n.prototype.ref = function () {}), + (n.prototype.close = function () { + this._clearFn.call(s, this._id) + }), + (t.enroll = function (e, t) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = t) + }), + (t.unenroll = function (e) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = -1) + }), + (t._unrefActive = t.active = + function (e) { + clearTimeout(e._idleTimeoutId) + var t = e._idleTimeout + t >= 0 && + (e._idleTimeoutId = setTimeout(function () { + e._onTimeout && e._onTimeout() + }, t)) + }), + i(105), + (t.setImmediate = + ('undefined' != typeof self && self.setImmediate) || + (void 0 !== e && e.setImmediate) || + (this && this.setImmediate)), + (t.clearImmediate = + ('undefined' != typeof self && self.clearImmediate) || + (void 0 !== e && e.clearImmediate) || + (this && this.clearImmediate)) + }).call(t, i(9)) + }, + , + , + , + , + , + , + , + , + function (e, t) { + function i() { + throw new Error('setTimeout has not been defined') + } + function n() { + throw new Error('clearTimeout has not been defined') + } + function s(e) { + if (d === setTimeout) return setTimeout(e, 0) + if ((d === i || !d) && setTimeout) + return (d = setTimeout), setTimeout(e, 0) + try { + return d(e, 0) + } catch (t) { + try { + return d.call(null, e, 0) + } catch (t) { + return d.call(this, e, 0) + } + } + } + function r(e) { + if (c === clearTimeout) return clearTimeout(e) + if ((c === n || !c) && clearTimeout) + return (c = clearTimeout), clearTimeout(e) + try { + return c(e) + } catch (t) { + try { + return c.call(null, e) + } catch (t) { + return c.call(this, e) + } + } + } + function a() { + m && + p && + ((m = !1), p.length ? (f = p.concat(f)) : (_ = -1), f.length && o()) + } + function o() { + if (!m) { + var e = s(a) + m = !0 + for (var t = f.length; t; ) { + for (p = f, f = []; ++_ < t; ) p && p[_].run() + ;(_ = -1), (t = f.length) + } + ;(p = null), (m = !1), r(e) + } + } + function l(e, t) { + ;(this.fun = e), (this.array = t) + } + function u() {} + var d, + c, + h = (e.exports = {}) + !(function () { + try { + d = 'function' == typeof setTimeout ? setTimeout : i + } catch (e) { + d = i + } + try { + c = 'function' == typeof clearTimeout ? clearTimeout : n + } catch (e) { + c = n + } + })() + var p, + f = [], + m = !1, + _ = -1 + ;(h.nextTick = function (e) { + var t = new Array(arguments.length - 1) + if (arguments.length > 1) + for (var i = 1; i < arguments.length; i++) t[i - 1] = arguments[i] + f.push(new l(e, t)), 1 !== f.length || m || s(o) + }), + (l.prototype.run = function () { + this.fun.apply(null, this.array) + }), + (h.title = 'browser'), + (h.browser = !0), + (h.env = {}), + (h.argv = []), + (h.version = ''), + (h.versions = {}), + (h.on = u), + (h.addListener = u), + (h.once = u), + (h.off = u), + (h.removeListener = u), + (h.removeAllListeners = u), + (h.emit = u), + (h.prependListener = u), + (h.prependOnceListener = u), + (h.listeners = function (e) { + return [] + }), + (h.binding = function (e) { + throw new Error('process.binding is not supported') + }), + (h.cwd = function () { + return '/' + }), + (h.chdir = function (e) { + throw new Error('process.chdir is not supported') + }), + (h.umask = function () { + return 0 + }) + }, + function (e, t, i) { + ;(function (e, t) { + !(function (e, i) { + 'use strict' + function n(e) { + 'function' != typeof e && (e = new Function('' + e)) + for ( + var t = new Array(arguments.length - 1), i = 0; + i < t.length; + i++ + ) + t[i] = arguments[i + 1] + var n = { callback: e, args: t } + return (u[l] = n), o(l), l++ + } + function s(e) { + delete u[e] + } + function r(e) { + var t = e.callback, + n = e.args + switch (n.length) { + case 0: + t() + break + case 1: + t(n[0]) + break + case 2: + t(n[0], n[1]) + break + case 3: + t(n[0], n[1], n[2]) + break + default: + t.apply(i, n) + } + } + function a(e) { + if (d) setTimeout(a, 0, e) + else { + var t = u[e] + if (t) { + d = !0 + try { + r(t) + } finally { + s(e), (d = !1) + } + } + } + } + if (!e.setImmediate) { + var o, + l = 1, + u = {}, + d = !1, + c = e.document, + h = Object.getPrototypeOf && Object.getPrototypeOf(e) + ;(h = h && h.setTimeout ? h : e), + '[object process]' === {}.toString.call(e.process) + ? (function () { + o = function (e) { + t.nextTick(function () { + a(e) + }) + } + })() + : (function () { + if (e.postMessage && !e.importScripts) { + var t = !0, + i = e.onmessage + return ( + (e.onmessage = function () { + t = !1 + }), + e.postMessage('', '*'), + (e.onmessage = i), + t + ) + } + })() + ? (function () { + var t = 'setImmediate$' + Math.random() + '$', + i = function (i) { + i.source === e && + 'string' == typeof i.data && + 0 === i.data.indexOf(t) && + a(+i.data.slice(t.length)) + } + e.addEventListener + ? e.addEventListener('message', i, !1) + : e.attachEvent('onmessage', i), + (o = function (i) { + e.postMessage(t + i, '*') + }) + })() + : e.MessageChannel + ? (function () { + var e = new MessageChannel() + ;(e.port1.onmessage = function (e) { + a(e.data) + }), + (o = function (t) { + e.port2.postMessage(t) + }) + })() + : c && 'onreadystatechange' in c.createElement('script') + ? (function () { + var e = c.documentElement + o = function (t) { + var i = c.createElement('script') + ;(i.onreadystatechange = function () { + a(t), + (i.onreadystatechange = null), + e.removeChild(i), + (i = null) + }), + e.appendChild(i) + } + })() + : (function () { + o = function (e) { + setTimeout(a, 0, e) + } + })(), + (h.setImmediate = n), + (h.clearImmediate = s) + } + })('undefined' == typeof self ? (void 0 === e ? this : e) : self) + }).call(t, i(9), i(104)) + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t) { + e.exports = function (e) { + return ( + e.webpackPolyfill || + ((e.deprecate = function () {}), + (e.paths = []), + e.children || (e.children = []), + Object.defineProperty(e, 'loaded', { + enumerable: !0, + get: function () { + return e.l + }, + }), + Object.defineProperty(e, 'id', { + enumerable: !0, + get: function () { + return e.i + }, + }), + (e.webpackPolyfill = 1)), + e + ) + } + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t, i) { + 'use strict' + ;(function (e) { + Object.defineProperty(t, '__esModule', { value: !0 }), i(209) + var n = e.$, + s = function e() { + var t = n('body').find('.bootstrap-datetimepicker-widget:last') + if (!(t.length <= 0)) { + var i = t.offset(), + s = t.outerHeight(), + r = (t.outerHeight(!0) - s) / 2 + t.appendTo('body') + var a = i.top + r + t.hasClass('top') && (a += s - t.outerHeight(!0) - r), + t.css({ + position: 'absolute', + top: a, + bottom: 'auto', + left: i.left, + right: 'auto', + }), + n(window).on('resize', e) + } + }, + r = function () { + var t = n('.datepicker input[type="text"]') + n.each(t, function (t, i) { + n(i) + .datetimepicker({ + locale: e.full_language_code, + format: n(i).data('format') + ? n(i).data('format') + : 'YYYY-MM-DD', + sideBySide: !0, + icons: { time: 'time', date: 'date', up: 'up', down: 'down' }, + }) + .on('dp.show', s) + .on('dp.hide', function () { + n(window).off('resize', s) + }) + }) + } + t.default = r + }).call(t, i(9)) + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t, i) { + ;(function (e) { + !(function (e) { + var t = (function () { + try { + return !!Symbol.iterator + } catch (e) { + return !1 + } + })(), + i = function (e) { + var i = { + next: function () { + var t = e.shift() + return { done: void 0 === t, value: t } + }, + } + return ( + t && + (i[Symbol.iterator] = function () { + return i + }), + i + ) + }, + n = function (e) { + return encodeURIComponent(e).replace(/%20/g, '+') + }, + s = function (e) { + return decodeURIComponent(e).replace(/\+/g, ' ') + } + ;('URLSearchParams' in e && + 'a=1' === new URLSearchParams('?a=1').toString()) || + (function () { + var s = function (e) { + Object.defineProperty(this, '_entries', { + writable: !0, + value: {}, + }) + var t = typeof e + if ('undefined' === t); + else if ('string' === t) '' !== e && this._fromString(e) + else if (e instanceof s) { + var i = this + e.forEach(function (e, t) { + i.append(t, e) + }) + } else { + if (null === e || 'object' !== t) + throw new TypeError( + "Unsupported input's type for URLSearchParams" + ) + if ('[object Array]' === Object.prototype.toString.call(e)) + for (var n = 0; n < e.length; n++) { + var r = e[n] + if ( + '[object Array]' !== + Object.prototype.toString.call(r) && + 2 === r.length + ) + throw new TypeError( + 'Expected [string, any] as entry at index ' + + n + + " of URLSearchParams's input" + ) + this.append(r[0], r[1]) + } + else + for (var a in e) e.hasOwnProperty(a) && this.append(a, e[a]) + } + }, + r = s.prototype + ;(r.append = function (e, t) { + e in this._entries + ? this._entries[e].push(String(t)) + : (this._entries[e] = [String(t)]) + }), + (r.delete = function (e) { + delete this._entries[e] + }), + (r.get = function (e) { + return e in this._entries ? this._entries[e][0] : null + }), + (r.getAll = function (e) { + return e in this._entries ? this._entries[e].slice(0) : [] + }), + (r.has = function (e) { + return e in this._entries + }), + (r.set = function (e, t) { + this._entries[e] = [String(t)] + }), + (r.forEach = function (e, t) { + var i + for (var n in this._entries) + if (this._entries.hasOwnProperty(n)) { + i = this._entries[n] + for (var s = 0; s < i.length; s++) e.call(t, i[s], n, this) + } + }), + (r.keys = function () { + var e = [] + return ( + this.forEach(function (t, i) { + e.push(i) + }), + i(e) + ) + }), + (r.values = function () { + var e = [] + return ( + this.forEach(function (t) { + e.push(t) + }), + i(e) + ) + }), + (r.entries = function () { + var e = [] + return ( + this.forEach(function (t, i) { + e.push([i, t]) + }), + i(e) + ) + }), + t && (r[Symbol.iterator] = r.entries), + (r.toString = function () { + var e = [] + return ( + this.forEach(function (t, i) { + e.push(n(i) + '=' + n(t)) + }), + e.join('&') + ) + }), + (e.URLSearchParams = s) + })() + var r = URLSearchParams.prototype + 'function' != typeof r.sort && + (r.sort = function () { + var e = this, + t = [] + this.forEach(function (i, n) { + t.push([n, i]), e._entries || e.delete(n) + }), + t.sort(function (e, t) { + return e[0] < t[0] ? -1 : e[0] > t[0] ? 1 : 0 + }), + e._entries && (e._entries = {}) + for (var i = 0; i < t.length; i++) this.append(t[i][0], t[i][1]) + }), + 'function' != typeof r._fromString && + Object.defineProperty(r, '_fromString', { + enumerable: !1, + configurable: !1, + writable: !1, + value: function (e) { + if (this._entries) this._entries = {} + else { + var t = [] + this.forEach(function (e, i) { + t.push(i) + }) + for (var i = 0; i < t.length; i++) this.delete(t[i]) + } + e = e.replace(/^\?/, '') + for (var n, r = e.split('&'), i = 0; i < r.length; i++) + (n = r[i].split('=')), + this.append(s(n[0]), n.length > 1 ? s(n[1]) : '') + }, + }) + })( + void 0 !== e + ? e + : 'undefined' != typeof window + ? window + : 'undefined' != typeof self + ? self + : this + ), + (function (e) { + if ( + ((function () { + try { + var e = new URL('b', 'http://a') + return ( + (e.pathname = 'c%20d'), + 'http://a/c%20d' === e.href && e.searchParams + ) + } catch (e) { + return !1 + } + })() || + (function () { + var t = e.URL, + i = function (t, i) { + 'string' != typeof t && (t = String(t)) + var n, + s = document + if (i && (void 0 === e.location || i !== e.location.href)) { + ;(s = document.implementation.createHTMLDocument('')), + (n = s.createElement('base')), + (n.href = i), + s.head.appendChild(n) + try { + if (0 !== n.href.indexOf(i)) throw new Error(n.href) + } catch (e) { + throw new Error( + 'URL unable to set base ' + i + ' due to ' + e + ) + } + } + var r = s.createElement('a') + if ( + ((r.href = t), + n && (s.body.appendChild(r), (r.href = r.href)), + ':' === r.protocol || !/:/.test(r.href)) + ) + throw new TypeError('Invalid URL') + Object.defineProperty(this, '_anchorElement', { value: r }) + var a = new URLSearchParams(this.search), + o = !0, + l = !0, + u = this + ;['append', 'delete', 'set'].forEach(function (e) { + var t = a[e] + a[e] = function () { + t.apply(a, arguments), + o && ((l = !1), (u.search = a.toString()), (l = !0)) + } + }), + Object.defineProperty(this, 'searchParams', { + value: a, + enumerable: !0, + }) + var d = void 0 + Object.defineProperty(this, '_updateSearchParams', { + enumerable: !1, + configurable: !1, + writable: !1, + value: function () { + this.search !== d && + ((d = this.search), + l && + ((o = !1), + this.searchParams._fromString(this.search), + (o = !0))) + }, + }) + }, + n = i.prototype, + s = function (e) { + Object.defineProperty(n, e, { + get: function () { + return this._anchorElement[e] + }, + set: function (t) { + this._anchorElement[e] = t + }, + enumerable: !0, + }) + } + ;['hash', 'host', 'hostname', 'port', 'protocol'].forEach( + function (e) { + s(e) + } + ), + Object.defineProperty(n, 'search', { + get: function () { + return this._anchorElement.search + }, + set: function (e) { + ;(this._anchorElement.search = e), + this._updateSearchParams() + }, + enumerable: !0, + }), + Object.defineProperties(n, { + toString: { + get: function () { + var e = this + return function () { + return e.href + } + }, + }, + href: { + get: function () { + return this._anchorElement.href.replace(/\?$/, '') + }, + set: function (e) { + ;(this._anchorElement.href = e), + this._updateSearchParams() + }, + enumerable: !0, + }, + pathname: { + get: function () { + return this._anchorElement.pathname.replace( + /(^\/?)/, + '/' + ) + }, + set: function (e) { + this._anchorElement.pathname = e + }, + enumerable: !0, + }, + origin: { + get: function () { + var e = { 'http:': 80, 'https:': 443, 'ftp:': 21 }[ + this._anchorElement.protocol + ], + t = + this._anchorElement.port != e && + '' !== this._anchorElement.port + return ( + this._anchorElement.protocol + + '//' + + this._anchorElement.hostname + + (t ? ':' + this._anchorElement.port : '') + ) + }, + enumerable: !0, + }, + password: { + get: function () { + return '' + }, + set: function (e) {}, + enumerable: !0, + }, + username: { + get: function () { + return '' + }, + set: function (e) {}, + enumerable: !0, + }, + }), + (i.createObjectURL = function (e) { + return t.createObjectURL.apply(t, arguments) + }), + (i.revokeObjectURL = function (e) { + return t.revokeObjectURL.apply(t, arguments) + }), + (e.URL = i) + })(), + void 0 !== e.location && !('origin' in e.location)) + ) { + var t = function () { + return ( + e.location.protocol + + '//' + + e.location.hostname + + (e.location.port ? ':' + e.location.port : '') + ) + } + try { + Object.defineProperty(e.location, 'origin', { + get: t, + enumerable: !0, + }) + } catch (i) { + setInterval(function () { + e.location.origin = t() + }, 100) + } + } + })( + void 0 !== e + ? e + : 'undefined' != typeof window + ? window + : 'undefined' != typeof self + ? self + : this + ) + }).call(t, i(9)) + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('af', { + months: + 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: + 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( + '_' + ), + weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), + weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), + meridiemParse: /vm|nm/i, + isPM: function (e) { + return /^nm$/i.test(e) + }, + meridiem: function (e, t, i) { + return e < 12 ? (i ? 'vm' : 'VM') : i ? 'nm' : 'NM' + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Vandag om] LT', + nextDay: '[Môre om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[Gister om] LT', + lastWeek: '[Laas] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oor %s', + past: '%s gelede', + s: "'n paar sekondes", + ss: '%d sekondes', + m: "'n minuut", + mm: '%d minute', + h: "'n uur", + hh: '%d ure', + d: "'n dag", + dd: '%d dae', + M: "'n maand", + MM: '%d maande', + y: "'n jaar", + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ar-dz', { + months: + 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: + 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 0, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ar-kw', { + months: + 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: + 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 0, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '1', + 2: '2', + 3: '3', + 4: '4', + 5: '5', + 6: '6', + 7: '7', + 8: '8', + 9: '9', + 0: '0', + }, + i = function (e) { + return 0 === e + ? 0 + : 1 === e + ? 1 + : 2 === e + ? 2 + : e % 100 >= 3 && e % 100 <= 10 + ? 3 + : e % 100 >= 11 + ? 4 + : 5 + }, + n = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + s = function (e) { + return function (t, s, r, a) { + var o = i(t), + l = n[e][i(t)] + return 2 === o && (l = l[s ? 0 : 1]), l.replace(/%d/i, t) + } + }, + r = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ] + return e.defineLocale('ar-ly', { + months: r, + monthsShort: r, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/‏M/‏YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (e) { + return 'م' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'ص' : 'م' + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: s('s'), + ss: s('s'), + m: s('m'), + mm: s('m'), + h: s('h'), + hh: s('h'), + d: s('d'), + dd: s('d'), + M: s('M'), + MM: s('M'), + y: s('y'), + yy: s('y'), + }, + preparse: function (e) { + return e.replace(/،/g, ',') + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e] + }) + .replace(/,/g, '،') + }, + week: { dow: 6, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ar-ma', { + months: + 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: + 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 6, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠', + }, + i = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + } + return e.defineLocale('ar-sa', { + months: + 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: + 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (e) { + return 'م' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'ص' : 'م' + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + preparse: function (e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { + return i[e] + }) + .replace(/،/g, ',') + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e] + }) + .replace(/,/g, '،') + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ar-tn', { + months: + 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: + 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠', + }, + i = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + n = function (e) { + return 0 === e + ? 0 + : 1 === e + ? 1 + : 2 === e + ? 2 + : e % 100 >= 3 && e % 100 <= 10 + ? 3 + : e % 100 >= 11 + ? 4 + : 5 + }, + s = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + r = function (e) { + return function (t, i, r, a) { + var o = n(t), + l = s[e][n(t)] + return 2 === o && (l = l[i ? 0 : 1]), l.replace(/%d/i, t) + } + }, + a = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ] + return e.defineLocale('ar', { + months: a, + monthsShort: a, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/‏M/‏YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (e) { + return 'م' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'ص' : 'م' + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: r('s'), + ss: r('s'), + m: r('m'), + mm: r('m'), + h: r('h'), + hh: r('h'), + d: r('d'), + dd: r('d'), + M: r('M'), + MM: r('M'), + y: r('y'), + yy: r('y'), + }, + preparse: function (e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { + return i[e] + }) + .replace(/،/g, ',') + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e] + }) + .replace(/,/g, '،') + }, + week: { dow: 6, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı', + } + return e.defineLocale('az', { + months: + 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( + '_' + ), + monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split( + '_' + ), + weekdays: + 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( + '_' + ), + weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), + weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[sabah saat] LT', + nextWeek: '[gələn həftə] dddd [saat] LT', + lastDay: '[dünən] LT', + lastWeek: '[keçən həftə] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s sonra', + past: '%s əvvəl', + s: 'birneçə saniyə', + ss: '%d saniyə', + m: 'bir dəqiqə', + mm: '%d dəqiqə', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir il', + yy: '%d il', + }, + meridiemParse: /gecə|səhər|gündüz|axşam/, + isPM: function (e) { + return /^(gündüz|axşam)$/.test(e) + }, + meridiem: function (e, t, i) { + return e < 4 ? 'gecə' : e < 12 ? 'səhər' : e < 17 ? 'gündüz' : 'axşam' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, + ordinal: function (e) { + if (0 === e) return e + '-ıncı' + var i = e % 10, + n = (e % 100) - i, + s = e >= 100 ? 100 : null + return e + (t[i] || t[n] || t[s]) + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t) { + var i = e.split('_') + return t % 10 == 1 && t % 100 != 11 + ? i[0] + : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) + ? i[1] + : i[2] + } + function i(e, i, n) { + var s = { + ss: i ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: i ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', + hh: i ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', + dd: 'дзень_дні_дзён', + MM: 'месяц_месяцы_месяцаў', + yy: 'год_гады_гадоў', + } + return 'm' === n + ? i + ? 'хвіліна' + : 'хвіліну' + : 'h' === n + ? i + ? 'гадзіна' + : 'гадзіну' + : e + ' ' + t(s[n], +e) + } + return e.defineLocale('be', { + months: { + format: + 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( + '_' + ), + standalone: + 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( + '_' + ), + }, + monthsShort: + 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'), + weekdays: { + format: + 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( + '_' + ), + standalone: + 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( + '_' + ), + isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, + }, + weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., HH:mm', + LLLL: 'dddd, D MMMM YYYY г., HH:mm', + }, + calendar: { + sameDay: '[Сёння ў] LT', + nextDay: '[Заўтра ў] LT', + lastDay: '[Учора ў] LT', + nextWeek: function () { + return '[У] dddd [ў] LT' + }, + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return '[У мінулую] dddd [ў] LT' + case 1: + case 2: + case 4: + return '[У мінулы] dddd [ў] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'праз %s', + past: '%s таму', + s: 'некалькі секунд', + m: i, + mm: i, + h: i, + hh: i, + d: 'дзень', + dd: i, + M: 'месяц', + MM: i, + y: 'год', + yy: i, + }, + meridiemParse: /ночы|раніцы|дня|вечара/, + isPM: function (e) { + return /^(дня|вечара)$/.test(e) + }, + meridiem: function (e, t, i) { + return e < 4 ? 'ночы' : e < 12 ? 'раніцы' : e < 17 ? 'дня' : 'вечара' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, + ordinal: function (e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return (e % 10 != 2 && e % 10 != 3) || + e % 100 == 12 || + e % 100 == 13 + ? e + '-ы' + : e + '-і' + case 'D': + return e + '-га' + default: + return e + } + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('bg', { + months: + 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split( + '_' + ), + weekdays: + 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), + weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Днес в] LT', + nextDay: '[Утре в] LT', + nextWeek: 'dddd [в] LT', + lastDay: '[Вчера в] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[В изминалата] dddd [в] LT' + case 1: + case 2: + case 4: + case 5: + return '[В изминалия] dddd [в] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'след %s', + past: 'преди %s', + s: 'няколко секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дни', + M: 'месец', + MM: '%d месеца', + y: 'година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (e) { + var t = e % 10, + i = e % 100 + return 0 === e + ? e + '-ев' + : 0 === i + ? e + '-ен' + : i > 10 && i < 20 + ? e + '-ти' + : 1 === t + ? e + '-ви' + : 2 === t + ? e + '-ри' + : 7 === t || 8 === t + ? e + '-ми' + : e + '-ти' + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('bm', { + months: + 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( + '_' + ), + monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split( + '_' + ), + weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), + weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), + weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'MMMM [tile] D [san] YYYY', + LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + }, + calendar: { + sameDay: '[Bi lɛrɛ] LT', + nextDay: '[Sini lɛrɛ] LT', + nextWeek: 'dddd [don lɛrɛ] LT', + lastDay: '[Kunu lɛrɛ] LT', + lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s kɔnɔ', + past: 'a bɛ %s bɔ', + s: 'sanga dama dama', + ss: 'sekondi %d', + m: 'miniti kelen', + mm: 'miniti %d', + h: 'lɛrɛ kelen', + hh: 'lɛrɛ %d', + d: 'tile kelen', + dd: 'tile %d', + M: 'kalo kelen', + MM: 'kalo %d', + y: 'san kelen', + yy: 'san %d', + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '১', + 2: '২', + 3: '৩', + 4: '৪', + 5: '৫', + 6: '৬', + 7: '৭', + 8: '৮', + 9: '৯', + 0: '০', + }, + i = { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0', + } + return e.defineLocale('bn', { + months: + 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( + '_' + ), + monthsShort: + 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'), + weekdays: + 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( + '_' + ), + weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), + weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), + longDateFormat: { + LT: 'A h:mm সময়', + LTS: 'A h:mm:ss সময়', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm সময়', + LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', + }, + calendar: { + sameDay: '[আজ] LT', + nextDay: '[আগামীকাল] LT', + nextWeek: 'dddd, LT', + lastDay: '[গতকাল] LT', + lastWeek: '[গত] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s পরে', + past: '%s আগে', + s: 'কয়েক সেকেন্ড', + ss: '%d সেকেন্ড', + m: 'এক মিনিট', + mm: '%d মিনিট', + h: 'এক ঘন্টা', + hh: '%d ঘন্টা', + d: 'এক দিন', + dd: '%d দিন', + M: 'এক মাস', + MM: '%d মাস', + y: 'এক বছর', + yy: '%d বছর', + }, + preparse: function (e) { + return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + ('রাত' === t && e >= 4) || ('দুপুর' === t && e < 5) || 'বিকাল' === t + ? e + 12 + : e + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'রাত' + : e < 10 + ? 'সকাল' + : e < 17 + ? 'দুপুর' + : e < 20 + ? 'বিকাল' + : 'রাত' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '༡', + 2: '༢', + 3: '༣', + 4: '༤', + 5: '༥', + 6: '༦', + 7: '༧', + 8: '༨', + 9: '༩', + 0: '༠', + }, + i = { + '༡': '1', + '༢': '2', + '༣': '3', + '༤': '4', + '༥': '5', + '༦': '6', + '༧': '7', + '༨': '8', + '༩': '9', + '༠': '0', + } + return e.defineLocale('bo', { + months: + 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + monthsShort: + 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + weekdays: + 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( + '_' + ), + weekdaysShort: + 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), + weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( + '_' + ), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[དི་རིང] LT', + nextDay: '[སང་ཉིན] LT', + nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', + lastDay: '[ཁ་སང] LT', + lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ལ་', + past: '%s སྔན་ལ', + s: 'ལམ་སང', + ss: '%d སྐར་ཆ།', + m: 'སྐར་མ་གཅིག', + mm: '%d སྐར་མ', + h: 'ཆུ་ཚོད་གཅིག', + hh: '%d ཆུ་ཚོད', + d: 'ཉིན་གཅིག', + dd: '%d ཉིན་', + M: 'ཟླ་བ་གཅིག', + MM: '%d ཟླ་བ', + y: 'ལོ་གཅིག', + yy: '%d ལོ', + }, + preparse: function (e) { + return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + ('མཚན་མོ' === t && e >= 4) || + ('ཉིན་གུང' === t && e < 5) || + 'དགོང་དག' === t + ? e + 12 + : e + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'མཚན་མོ' + : e < 10 + ? 'ཞོགས་ཀས' + : e < 17 + ? 'ཉིན་གུང' + : e < 20 + ? 'དགོང་དག' + : 'མཚན་མོ' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i) { + return e + ' ' + s({ mm: 'munutenn', MM: 'miz', dd: 'devezh' }[i], e) + } + function i(e) { + switch (n(e)) { + case 1: + case 3: + case 4: + case 5: + case 9: + return e + ' bloaz' + default: + return e + ' vloaz' + } + } + function n(e) { + return e > 9 ? n(e % 10) : e + } + function s(e, t) { + return 2 === t ? r(e) : e + } + function r(e) { + var t = { m: 'v', b: 'v', d: 'z' } + return void 0 === t[e.charAt(0)] ? e : t[e.charAt(0)] + e.substring(1) + } + return e.defineLocale('br', { + months: + "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split( + '_' + ), + monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split( + '_' + ), + weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'), + weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h[e]mm A', + LTS: 'h[e]mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [a viz] MMMM YYYY', + LLL: 'D [a viz] MMMM YYYY h[e]mm A', + LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A', + }, + calendar: { + sameDay: '[Hiziv da] LT', + nextDay: "[Warc'hoazh da] LT", + nextWeek: 'dddd [da] LT', + lastDay: "[Dec'h da] LT", + lastWeek: 'dddd [paset da] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'a-benn %s', + past: "%s 'zo", + s: 'un nebeud segondennoù', + ss: '%d eilenn', + m: 'ur vunutenn', + mm: t, + h: 'un eur', + hh: '%d eur', + d: 'un devezh', + dd: t, + M: 'ur miz', + MM: t, + y: 'ur bloaz', + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, + ordinal: function (e) { + return e + (1 === e ? 'añ' : 'vet') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i) { + var n = e + ' ' + switch (i) { + case 'ss': + return (n += + 1 === e + ? 'sekunda' + : 2 === e || 3 === e || 4 === e + ? 'sekunde' + : 'sekundi') + case 'm': + return t ? 'jedna minuta' : 'jedne minute' + case 'mm': + return (n += + 1 === e + ? 'minuta' + : 2 === e || 3 === e || 4 === e + ? 'minute' + : 'minuta') + case 'h': + return t ? 'jedan sat' : 'jednog sata' + case 'hh': + return (n += + 1 === e ? 'sat' : 2 === e || 3 === e || 4 === e ? 'sata' : 'sati') + case 'dd': + return (n += 1 === e ? 'dan' : 'dana') + case 'MM': + return (n += + 1 === e + ? 'mjesec' + : 2 === e || 3 === e || 4 === e + ? 'mjeseca' + : 'mjeseci') + case 'yy': + return (n += + 1 === e + ? 'godina' + : 2 === e || 3 === e || 4 === e + ? 'godine' + : 'godina') + } + } + return e.defineLocale('bs', { + months: + 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: + 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT' + case 3: + return '[u] [srijedu] [u] LT' + case 6: + return '[u] [subotu] [u] LT' + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT' + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT' + case 6: + return '[prošle] [subote] [u] LT' + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: 'dan', + dd: t, + M: 'mjesec', + MM: t, + y: 'godinu', + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ca', { + months: { + standalone: + 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( + '_' + ), + format: + "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( + '_' + ), + isFormat: /D[oD]?(\s)+MMMM/, + }, + monthsShort: + 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( + '_' + ), + weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), + weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + ll: 'D MMM YYYY', + LLL: 'D MMMM [de] YYYY [a les] H:mm', + lll: 'D MMM YYYY, H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', + llll: 'ddd D MMM YYYY, H:mm', + }, + calendar: { + sameDay: function () { + return '[avui a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT' + }, + nextDay: function () { + return '[demà a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT' + }, + nextWeek: function () { + return 'dddd [a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT' + }, + lastDay: function () { + return '[ahir a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT' + }, + lastWeek: function () { + return ( + '[el] dddd [passat a ' + + (1 !== this.hours() ? 'les' : 'la') + + '] LT' + ) + }, + sameElse: 'L', + }, + relativeTime: { + future: "d'aquí %s", + past: 'fa %s', + s: 'uns segons', + ss: '%d segons', + m: 'un minut', + mm: '%d minuts', + h: 'una hora', + hh: '%d hores', + d: 'un dia', + dd: '%d dies', + M: 'un mes', + MM: '%d mesos', + y: 'un any', + yy: '%d anys', + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal: function (e, t) { + var i = + 1 === e ? 'r' : 2 === e ? 'n' : 3 === e ? 'r' : 4 === e ? 't' : 'è' + return ('w' !== t && 'W' !== t) || (i = 'a'), e + i + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e) { + return e > 1 && e < 5 && 1 != ~~(e / 10) + } + function i(e, i, n, s) { + var r = e + ' ' + switch (n) { + case 's': + return i || s ? 'pár sekund' : 'pár sekundami' + case 'ss': + return i || s ? r + (t(e) ? 'sekundy' : 'sekund') : r + 'sekundami' + case 'm': + return i ? 'minuta' : s ? 'minutu' : 'minutou' + case 'mm': + return i || s ? r + (t(e) ? 'minuty' : 'minut') : r + 'minutami' + case 'h': + return i ? 'hodina' : s ? 'hodinu' : 'hodinou' + case 'hh': + return i || s ? r + (t(e) ? 'hodiny' : 'hodin') : r + 'hodinami' + case 'd': + return i || s ? 'den' : 'dnem' + case 'dd': + return i || s ? r + (t(e) ? 'dny' : 'dní') : r + 'dny' + case 'M': + return i || s ? 'měsíc' : 'měsícem' + case 'MM': + return i || s ? r + (t(e) ? 'měsíce' : 'měsíců') : r + 'měsíci' + case 'y': + return i || s ? 'rok' : 'rokem' + case 'yy': + return i || s ? r + (t(e) ? 'roky' : 'let') : r + 'lety' + } + } + var n = + 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( + '_' + ), + s = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), + r = [ + /^led/i, + /^úno/i, + /^bře/i, + /^dub/i, + /^kvě/i, + /^(čvn|červen$|června)/i, + /^(čvc|červenec|července)/i, + /^srp/i, + /^zář/i, + /^říj/i, + /^lis/i, + /^pro/i, + ], + a = + /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i + return e.defineLocale('cs', { + months: n, + monthsShort: s, + monthsRegex: a, + monthsShortRegex: a, + monthsStrictRegex: + /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, + monthsShortStrictRegex: + /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), + weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), + weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + l: 'D. M. YYYY', + }, + calendar: { + sameDay: '[dnes v] LT', + nextDay: '[zítra v] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v neděli v] LT' + case 1: + case 2: + return '[v] dddd [v] LT' + case 3: + return '[ve středu v] LT' + case 4: + return '[ve čtvrtek v] LT' + case 5: + return '[v pátek v] LT' + case 6: + return '[v sobotu v] LT' + } + }, + lastDay: '[včera v] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulou neděli v] LT' + case 1: + case 2: + return '[minulé] dddd [v] LT' + case 3: + return '[minulou středu v] LT' + case 4: + case 5: + return '[minulý] dddd [v] LT' + case 6: + return '[minulou sobotu v] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'před %s', + s: i, + ss: i, + m: i, + mm: i, + h: i, + hh: i, + d: i, + dd: i, + M: i, + MM: i, + y: i, + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('cv', { + months: + 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( + '_' + ), + monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split( + '_' + ), + weekdays: + 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( + '_' + ), + weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), + weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', + LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + }, + calendar: { + sameDay: '[Паян] LT [сехетре]', + nextDay: '[Ыран] LT [сехетре]', + lastDay: '[Ӗнер] LT [сехетре]', + nextWeek: '[Ҫитес] dddd LT [сехетре]', + lastWeek: '[Иртнӗ] dddd LT [сехетре]', + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return ( + e + (/сехет$/i.exec(e) ? 'рен' : /ҫул$/i.exec(e) ? 'тан' : 'ран') + ) + }, + past: '%s каялла', + s: 'пӗр-ик ҫеккунт', + ss: '%d ҫеккунт', + m: 'пӗр минут', + mm: '%d минут', + h: 'пӗр сехет', + hh: '%d сехет', + d: 'пӗр кун', + dd: '%d кун', + M: 'пӗр уйӑх', + MM: '%d уйӑх', + y: 'пӗр ҫул', + yy: '%d ҫул', + }, + dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, + ordinal: '%d-мӗш', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('cy', { + months: + 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( + '_' + ), + monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( + '_' + ), + weekdays: + 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( + '_' + ), + weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Heddiw am] LT', + nextDay: '[Yfory am] LT', + nextWeek: 'dddd [am] LT', + lastDay: '[Ddoe am] LT', + lastWeek: 'dddd [diwethaf am] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'mewn %s', + past: '%s yn ôl', + s: 'ychydig eiliadau', + ss: '%d eiliad', + m: 'munud', + mm: '%d munud', + h: 'awr', + hh: '%d awr', + d: 'diwrnod', + dd: '%d diwrnod', + M: 'mis', + MM: '%d mis', + y: 'blwyddyn', + yy: '%d flynedd', + }, + dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, + ordinal: function (e) { + var t = e, + i = '', + n = [ + '', + 'af', + 'il', + 'ydd', + 'ydd', + 'ed', + 'ed', + 'ed', + 'fed', + 'fed', + 'fed', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'fed', + ] + return ( + t > 20 + ? (i = + 40 === t || 50 === t || 60 === t || 80 === t || 100 === t + ? 'fed' + : 'ain') + : t > 0 && (i = n[t]), + e + i + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('da', { + months: + 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( + '_' + ), + weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'på dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[i] dddd[s kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'få sekunder', + ss: '%d sekunder', + m: 'et minut', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dage', + M: 'en måned', + MM: '%d måneder', + y: 'et år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'], + } + return t ? s[i][0] : s[i][1] + } + return e.defineLocale('de-at', { + months: + 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: + 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'], + } + return t ? s[i][0] : s[i][1] + } + return e.defineLocale('de-ch', { + months: + 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: + 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'], + } + return t ? s[i][0] : s[i][1] + } + return e.defineLocale('de', { + months: + 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: + 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = [ + 'ޖެނުއަރީ', + 'ފެބްރުއަރީ', + 'މާރިޗު', + 'އޭޕްރީލު', + 'މޭ', + 'ޖޫން', + 'ޖުލައި', + 'އޯގަސްޓު', + 'ސެޕްޓެމްބަރު', + 'އޮކްޓޯބަރު', + 'ނޮވެމްބަރު', + 'ޑިސެމްބަރު', + ], + i = [ + 'އާދިއްތަ', + 'ހޯމަ', + 'އަންގާރަ', + 'ބުދަ', + 'ބުރާސްފަތި', + 'ހުކުރު', + 'ހޮނިހިރު', + ] + return e.defineLocale('dv', { + months: t, + monthsShort: t, + weekdays: i, + weekdaysShort: i, + weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/M/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /މކ|މފ/, + isPM: function (e) { + return 'މފ' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'މކ' : 'މފ' + }, + calendar: { + sameDay: '[މިއަދު] LT', + nextDay: '[މާދަމާ] LT', + nextWeek: 'dddd LT', + lastDay: '[އިއްޔެ] LT', + lastWeek: '[ފާއިތުވި] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ތެރޭގައި %s', + past: 'ކުރިން %s', + s: 'ސިކުންތުކޮޅެއް', + ss: 'd% ސިކުންތު', + m: 'މިނިޓެއް', + mm: 'މިނިޓު %d', + h: 'ގަޑިއިރެއް', + hh: 'ގަޑިއިރު %d', + d: 'ދުވަހެއް', + dd: 'ދުވަސް %d', + M: 'މަހެއް', + MM: 'މަސް %d', + y: 'އަހަރެއް', + yy: 'އަހަރު %d', + }, + preparse: function (e) { + return e.replace(/،/g, ',') + }, + postformat: function (e) { + return e.replace(/,/g, '،') + }, + week: { dow: 7, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e) { + return ( + e instanceof Function || + '[object Function]' === Object.prototype.toString.call(e) + ) + } + return e.defineLocale('el', { + monthsNominativeEl: + 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( + '_' + ), + monthsGenitiveEl: + 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( + '_' + ), + months: function (e, t) { + return e + ? 'string' == typeof t && + /D/.test(t.substring(0, t.indexOf('MMMM'))) + ? this._monthsGenitiveEl[e.month()] + : this._monthsNominativeEl[e.month()] + : this._monthsNominativeEl + }, + monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split( + '_' + ), + weekdays: + 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), + weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), + meridiem: function (e, t, i) { + return e > 11 ? (i ? 'μμ' : 'ΜΜ') : i ? 'πμ' : 'ΠΜ' + }, + isPM: function (e) { + return 'μ' === (e + '').toLowerCase()[0] + }, + meridiemParse: /[ΠΜ]\.?Μ?\.?/i, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendarEl: { + sameDay: '[Σήμερα {}] LT', + nextDay: '[Αύριο {}] LT', + nextWeek: 'dddd [{}] LT', + lastDay: '[Χθες {}] LT', + lastWeek: function () { + switch (this.day()) { + case 6: + return '[το προηγούμενο] dddd [{}] LT' + default: + return '[την προηγούμενη] dddd [{}] LT' + } + }, + sameElse: 'L', + }, + calendar: function (e, i) { + var n = this._calendarEl[e], + s = i && i.hours() + return ( + t(n) && (n = n.apply(i)), + n.replace('{}', s % 12 == 1 ? 'στη' : 'στις') + ) + }, + relativeTime: { + future: 'σε %s', + past: '%s πριν', + s: 'λίγα δευτερόλεπτα', + ss: '%d δευτερόλεπτα', + m: 'ένα λεπτό', + mm: '%d λεπτά', + h: 'μία ώρα', + hh: '%d ώρες', + d: 'μία μέρα', + dd: '%d μέρες', + M: 'ένας μήνας', + MM: '%d μήνες', + y: 'ένας χρόνος', + yy: '%d χρόνια', + }, + dayOfMonthOrdinalParse: /\d{1,2}η/, + ordinal: '%dη', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('en-SG', { + months: + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('en-au', { + months: + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('en-ca', { + months: + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'YYYY-MM-DD', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('en-gb', { + months: + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('en-ie', { + months: + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('en-il', { + months: + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('en-nz', { + months: + 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: + 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('eo', { + months: + 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split( + '_' + ), + weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), + weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D[-a de] MMMM, YYYY', + LLL: 'D[-a de] MMMM, YYYY HH:mm', + LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm', + }, + meridiemParse: /[ap]\.t\.m/i, + isPM: function (e) { + return 'p' === e.charAt(0).toLowerCase() + }, + meridiem: function (e, t, i) { + return e > 11 ? (i ? 'p.t.m.' : 'P.T.M.') : i ? 'a.t.m.' : 'A.T.M.' + }, + calendar: { + sameDay: '[Hodiaŭ je] LT', + nextDay: '[Morgaŭ je] LT', + nextWeek: 'dddd [je] LT', + lastDay: '[Hieraŭ je] LT', + lastWeek: '[pasinta] dddd [je] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'post %s', + past: 'antaŭ %s', + s: 'sekundoj', + ss: '%d sekundoj', + m: 'minuto', + mm: '%d minutoj', + h: 'horo', + hh: '%d horoj', + d: 'tago', + dd: '%d tagoj', + M: 'monato', + MM: '%d monatoj', + y: 'jaro', + yy: '%d jaroj', + }, + dayOfMonthOrdinalParse: /\d{1,2}a/, + ordinal: '%da', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = + 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + i = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + n = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + s = + /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i + return e.defineLocale('es-do', { + months: + 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (e, n) { + return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t + }, + monthsRegex: s, + monthsShortRegex: s, + monthsStrictRegex: + /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: + /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + nextDay: function () { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + nextWeek: function () { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + lastDay: function () { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' + ) + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = + 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + i = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + n = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + s = + /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i + return e.defineLocale('es-us', { + months: + 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (e, n) { + return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t + }, + monthsRegex: s, + monthsShortRegex: s, + monthsStrictRegex: + /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: + /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'MM/DD/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + nextDay: function () { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + nextWeek: function () { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + lastDay: function () { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' + ) + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = + 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + i = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + n = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + s = + /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i + return e.defineLocale('es', { + months: + 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (e, n) { + return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t + }, + monthsRegex: s, + monthsShortRegex: s, + monthsStrictRegex: + /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: + /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + nextDay: function () { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + nextWeek: function () { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + lastDay: function () { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT' + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' + ) + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = { + s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], + ss: [e + 'sekundi', e + 'sekundit'], + m: ['ühe minuti', 'üks minut'], + mm: [e + ' minuti', e + ' minutit'], + h: ['ühe tunni', 'tund aega', 'üks tund'], + hh: [e + ' tunni', e + ' tundi'], + d: ['ühe päeva', 'üks päev'], + M: ['kuu aja', 'kuu aega', 'üks kuu'], + MM: [e + ' kuu', e + ' kuud'], + y: ['ühe aasta', 'aasta', 'üks aasta'], + yy: [e + ' aasta', e + ' aastat'], + } + return t ? (s[i][2] ? s[i][2] : s[i][1]) : n ? s[i][0] : s[i][1] + } + return e.defineLocale('et', { + months: + 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( + '_' + ), + monthsShort: + 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( + '_' + ), + weekdays: + 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( + '_' + ), + weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), + weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Täna,] LT', + nextDay: '[Homme,] LT', + nextWeek: '[Järgmine] dddd LT', + lastDay: '[Eile,] LT', + lastWeek: '[Eelmine] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s pärast', + past: '%s tagasi', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: '%d päeva', + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('eu', { + months: + 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( + '_' + ), + monthsShort: + 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( + '_' + ), + weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), + weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY[ko] MMMM[ren] D[a]', + LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', + LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', + l: 'YYYY-M-D', + ll: 'YYYY[ko] MMM D[a]', + lll: 'YYYY[ko] MMM D[a] HH:mm', + llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', + }, + calendar: { + sameDay: '[gaur] LT[etan]', + nextDay: '[bihar] LT[etan]', + nextWeek: 'dddd LT[etan]', + lastDay: '[atzo] LT[etan]', + lastWeek: '[aurreko] dddd LT[etan]', + sameElse: 'L', + }, + relativeTime: { + future: '%s barru', + past: 'duela %s', + s: 'segundo batzuk', + ss: '%d segundo', + m: 'minutu bat', + mm: '%d minutu', + h: 'ordu bat', + hh: '%d ordu', + d: 'egun bat', + dd: '%d egun', + M: 'hilabete bat', + MM: '%d hilabete', + y: 'urte bat', + yy: '%d urte', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '۱', + 2: '۲', + 3: '۳', + 4: '۴', + 5: '۵', + 6: '۶', + 7: '۷', + 8: '۸', + 9: '۹', + 0: '۰', + }, + i = { + '۱': '1', + '۲': '2', + '۳': '3', + '۴': '4', + '۵': '5', + '۶': '6', + '۷': '7', + '۸': '8', + '۹': '9', + '۰': '0', + } + return e.defineLocale('fa', { + months: + 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + monthsShort: + 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysShort: + 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split('_'), + weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /قبل از ظهر|بعد از ظهر/, + isPM: function (e) { + return /بعد از ظهر/.test(e) + }, + meridiem: function (e, t, i) { + return e < 12 ? 'قبل از ظهر' : 'بعد از ظهر' + }, + calendar: { + sameDay: '[امروز ساعت] LT', + nextDay: '[فردا ساعت] LT', + nextWeek: 'dddd [ساعت] LT', + lastDay: '[دیروز ساعت] LT', + lastWeek: 'dddd [پیش] [ساعت] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'در %s', + past: '%s پیش', + s: 'چند ثانیه', + ss: 'ثانیه d%', + m: 'یک دقیقه', + mm: '%d دقیقه', + h: 'یک ساعت', + hh: '%d ساعت', + d: 'یک روز', + dd: '%d روز', + M: 'یک ماه', + MM: '%d ماه', + y: 'یک سال', + yy: '%d سال', + }, + preparse: function (e) { + return e + .replace(/[۰-۹]/g, function (e) { + return i[e] + }) + .replace(/،/g, ',') + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e] + }) + .replace(/,/g, '،') + }, + dayOfMonthOrdinalParse: /\d{1,2}م/, + ordinal: '%dم', + week: { dow: 6, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, n, s) { + var r = '' + switch (n) { + case 's': + return s ? 'muutaman sekunnin' : 'muutama sekunti' + case 'ss': + return s ? 'sekunnin' : 'sekuntia' + case 'm': + return s ? 'minuutin' : 'minuutti' + case 'mm': + r = s ? 'minuutin' : 'minuuttia' + break + case 'h': + return s ? 'tunnin' : 'tunti' + case 'hh': + r = s ? 'tunnin' : 'tuntia' + break + case 'd': + return s ? 'päivän' : 'päivä' + case 'dd': + r = s ? 'päivän' : 'päivää' + break + case 'M': + return s ? 'kuukauden' : 'kuukausi' + case 'MM': + r = s ? 'kuukauden' : 'kuukautta' + break + case 'y': + return s ? 'vuoden' : 'vuosi' + case 'yy': + r = s ? 'vuoden' : 'vuotta' + } + return (r = i(e, s) + ' ' + r) + } + function i(e, t) { + return e < 10 ? (t ? s[e] : n[e]) : e + } + var n = + 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( + ' ' + ), + s = [ + 'nolla', + 'yhden', + 'kahden', + 'kolmen', + 'neljän', + 'viiden', + 'kuuden', + n[7], + n[8], + n[9], + ] + return e.defineLocale('fi', { + months: + 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( + '_' + ), + monthsShort: + 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( + '_' + ), + weekdays: + 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( + '_' + ), + weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), + weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'Do MMMM[ta] YYYY', + LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', + LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', + l: 'D.M.YYYY', + ll: 'Do MMM YYYY', + lll: 'Do MMM YYYY, [klo] HH.mm', + llll: 'ddd, Do MMM YYYY, [klo] HH.mm', + }, + calendar: { + sameDay: '[tänään] [klo] LT', + nextDay: '[huomenna] [klo] LT', + nextWeek: 'dddd [klo] LT', + lastDay: '[eilen] [klo] LT', + lastWeek: '[viime] dddd[na] [klo] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s päästä', + past: '%s sitten', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('fo', { + months: + 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ), + weekdays: + 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), + weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D. MMMM, YYYY HH:mm', + }, + calendar: { + sameDay: '[Í dag kl.] LT', + nextDay: '[Í morgin kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[Í gjár kl.] LT', + lastWeek: '[síðstu] dddd [kl] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'um %s', + past: '%s síðani', + s: 'fá sekund', + ss: '%d sekundir', + m: 'ein minuttur', + mm: '%d minuttir', + h: 'ein tími', + hh: '%d tímar', + d: 'ein dagur', + dd: '%d dagar', + M: 'ein mánaður', + MM: '%d mánaðir', + y: 'eitt ár', + yy: '%d ár', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('fr-ca', { + months: + 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: + 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (e, t) { + switch (t) { + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e') + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e') + } + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('fr-ch', { + months: + 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: + 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (e, t) { + switch (t) { + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e') + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e') + } + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('fr', { + months: + 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: + 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|)/, + ordinal: function (e, t) { + switch (t) { + case 'D': + return e + (1 === e ? 'er' : '') + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e') + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e') + } + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = + 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( + '_' + ), + i = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_') + return e.defineLocale('fy', { + months: + 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( + '_' + ), + monthsShort: function (e, n) { + return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t + }, + monthsParseExact: !0, + weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( + '_' + ), + weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), + weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[hjoed om] LT', + nextDay: '[moarn om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[juster om] LT', + lastWeek: '[ôfrûne] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oer %s', + past: '%s lyn', + s: 'in pear sekonden', + ss: '%d sekonden', + m: 'ien minút', + mm: '%d minuten', + h: 'ien oere', + hh: '%d oeren', + d: 'ien dei', + dd: '%d dagen', + M: 'ien moanne', + MM: '%d moannen', + y: 'ien jier', + yy: '%d jierren', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = [ + 'Eanáir', + 'Feabhra', + 'Márta', + 'Aibreán', + 'Bealtaine', + 'Méitheamh', + 'Iúil', + 'Lúnasa', + 'Meán Fómhair', + 'Deaireadh Fómhair', + 'Samhain', + 'Nollaig', + ], + i = [ + 'Eaná', + 'Feab', + 'Márt', + 'Aibr', + 'Beal', + 'Méit', + 'Iúil', + 'Lúna', + 'Meán', + 'Deai', + 'Samh', + 'Noll', + ], + n = [ + 'Dé Domhnaigh', + 'Dé Luain', + 'Dé Máirt', + 'Dé Céadaoin', + 'Déardaoin', + 'Dé hAoine', + 'Dé Satharn', + ], + s = ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'], + r = ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'] + return e.defineLocale('ga', { + months: t, + monthsShort: i, + monthsParseExact: !0, + weekdays: n, + weekdaysShort: s, + weekdaysMin: r, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Inniu ag] LT', + nextDay: '[Amárach ag] LT', + nextWeek: 'dddd [ag] LT', + lastDay: '[Inné aig] LT', + lastWeek: 'dddd [seo caite] [ag] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i %s', + past: '%s ó shin', + s: 'cúpla soicind', + ss: '%d soicind', + m: 'nóiméad', + mm: '%d nóiméad', + h: 'uair an chloig', + hh: '%d uair an chloig', + d: 'lá', + dd: '%d lá', + M: 'mí', + MM: '%d mí', + y: 'bliain', + yy: '%d bliain', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (e) { + return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = [ + 'Am Faoilleach', + 'An Gearran', + 'Am Màrt', + 'An Giblean', + 'An Cèitean', + 'An t-Ògmhios', + 'An t-Iuchar', + 'An Lùnastal', + 'An t-Sultain', + 'An Dàmhair', + 'An t-Samhain', + 'An Dùbhlachd', + ], + i = [ + 'Faoi', + 'Gear', + 'Màrt', + 'Gibl', + 'Cèit', + 'Ògmh', + 'Iuch', + 'Lùn', + 'Sult', + 'Dàmh', + 'Samh', + 'Dùbh', + ], + n = [ + 'Didòmhnaich', + 'Diluain', + 'Dimàirt', + 'Diciadain', + 'Diardaoin', + 'Dihaoine', + 'Disathairne', + ], + s = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], + r = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'] + return e.defineLocale('gd', { + months: t, + monthsShort: i, + monthsParseExact: !0, + weekdays: n, + weekdaysShort: s, + weekdaysMin: r, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[An-diugh aig] LT', + nextDay: '[A-màireach aig] LT', + nextWeek: 'dddd [aig] LT', + lastDay: '[An-dè aig] LT', + lastWeek: 'dddd [seo chaidh] [aig] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ann an %s', + past: 'bho chionn %s', + s: 'beagan diogan', + ss: '%d diogan', + m: 'mionaid', + mm: '%d mionaidean', + h: 'uair', + hh: '%d uairean', + d: 'latha', + dd: '%d latha', + M: 'mìos', + MM: '%d mìosan', + y: 'bliadhna', + yy: '%d bliadhna', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (e) { + return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('gl', { + months: + 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( + '_' + ), + monthsShort: + 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoxe ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT' + }, + nextDay: function () { + return '[mañá ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT' + }, + nextWeek: function () { + return 'dddd [' + (1 !== this.hours() ? 'ás' : 'a') + '] LT' + }, + lastDay: function () { + return '[onte ' + (1 !== this.hours() ? 'á' : 'a') + '] LT' + }, + lastWeek: function () { + return ( + '[o] dddd [pasado ' + (1 !== this.hours() ? 'ás' : 'a') + '] LT' + ) + }, + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return 0 === e.indexOf('un') ? 'n' + e : 'en ' + e + }, + past: 'hai %s', + s: 'uns segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'unha hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = { + s: ['thodde secondanim', 'thodde second'], + ss: [e + ' secondanim', e + ' second'], + m: ['eka mintan', 'ek minute'], + mm: [e + ' mintanim', e + ' mintam'], + h: ['eka voran', 'ek vor'], + hh: [e + ' voranim', e + ' voram'], + d: ['eka disan', 'ek dis'], + dd: [e + ' disanim', e + ' dis'], + M: ['eka mhoinean', 'ek mhoino'], + MM: [e + ' mhoineanim', e + ' mhoine'], + y: ['eka vorsan', 'ek voros'], + yy: [e + ' vorsanim', e + ' vorsam'], + } + return t ? s[i][0] : s[i][1] + } + return e.defineLocale('gom-latn', { + months: + 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( + '_' + ), + monthsShort: + 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split( + '_' + ), + weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), + weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'A h:mm [vazta]', + LTS: 'A h:mm:ss [vazta]', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY A h:mm [vazta]', + LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', + llll: 'ddd, D MMM YYYY, A h:mm [vazta]', + }, + calendar: { + sameDay: '[Aiz] LT', + nextDay: '[Faleam] LT', + nextWeek: '[Ieta to] dddd[,] LT', + lastDay: '[Kal] LT', + lastWeek: '[Fatlo] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s', + past: '%s adim', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}(er)/, + ordinal: function (e, t) { + switch (t) { + case 'D': + return e + 'er' + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return e + } + }, + week: { dow: 1, doy: 4 }, + meridiemParse: /rati|sokalli|donparam|sanje/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'rati' === t + ? e < 4 + ? e + : e + 12 + : 'sokalli' === t + ? e + : 'donparam' === t + ? e > 12 + ? e + : e + 12 + : 'sanje' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'rati' + : e < 12 + ? 'sokalli' + : e < 16 + ? 'donparam' + : e < 20 + ? 'sanje' + : 'rati' + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '૧', + 2: '૨', + 3: '૩', + 4: '૪', + 5: '૫', + 6: '૬', + 7: '૭', + 8: '૮', + 9: '૯', + 0: '૦', + }, + i = { + '૧': '1', + '૨': '2', + '૩': '3', + '૪': '4', + '૫': '5', + '૬': '6', + '૭': '7', + '૮': '8', + '૯': '9', + '૦': '0', + } + return e.defineLocale('gu', { + months: + 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( + '_' + ), + monthsShort: + 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( + '_' + ), + weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), + weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), + longDateFormat: { + LT: 'A h:mm વાગ્યે', + LTS: 'A h:mm:ss વાગ્યે', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm વાગ્યે', + LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', + }, + calendar: { + sameDay: '[આજ] LT', + nextDay: '[કાલે] LT', + nextWeek: 'dddd, LT', + lastDay: '[ગઇકાલે] LT', + lastWeek: '[પાછલા] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s મા', + past: '%s પેહલા', + s: 'અમુક પળો', + ss: '%d સેકંડ', + m: 'એક મિનિટ', + mm: '%d મિનિટ', + h: 'એક કલાક', + hh: '%d કલાક', + d: 'એક દિવસ', + dd: '%d દિવસ', + M: 'એક મહિનો', + MM: '%d મહિનો', + y: 'એક વર્ષ', + yy: '%d વર્ષ', + }, + preparse: function (e) { + return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /રાત|બપોર|સવાર|સાંજ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'રાત' === t + ? e < 4 + ? e + : e + 12 + : 'સવાર' === t + ? e + : 'બપોર' === t + ? e >= 10 + ? e + : e + 12 + : 'સાંજ' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'રાત' + : e < 10 + ? 'સવાર' + : e < 17 + ? 'બપોર' + : e < 20 + ? 'સાંજ' + : 'રાત' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('he', { + months: + 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( + '_' + ), + monthsShort: + 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( + '_' + ), + weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), + weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [ב]MMMM YYYY', + LLL: 'D [ב]MMMM YYYY HH:mm', + LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', + l: 'D/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[היום ב־]LT', + nextDay: '[מחר ב־]LT', + nextWeek: 'dddd [בשעה] LT', + lastDay: '[אתמול ב־]LT', + lastWeek: '[ביום] dddd [האחרון בשעה] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'בעוד %s', + past: 'לפני %s', + s: 'מספר שניות', + ss: '%d שניות', + m: 'דקה', + mm: '%d דקות', + h: 'שעה', + hh: function (e) { + return 2 === e ? 'שעתיים' : e + ' שעות' + }, + d: 'יום', + dd: function (e) { + return 2 === e ? 'יומיים' : e + ' ימים' + }, + M: 'חודש', + MM: function (e) { + return 2 === e ? 'חודשיים' : e + ' חודשים' + }, + y: 'שנה', + yy: function (e) { + return 2 === e + ? 'שנתיים' + : e % 10 == 0 && 10 !== e + ? e + ' שנה' + : e + ' שנים' + }, + }, + meridiemParse: + /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, + isPM: function (e) { + return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e) + }, + meridiem: function (e, t, i) { + return e < 5 + ? 'לפנות בוקר' + : e < 10 + ? 'בבוקר' + : e < 12 + ? i + ? 'לפנה"צ' + : 'לפני הצהריים' + : e < 18 + ? i + ? 'אחה"צ' + : 'אחרי הצהריים' + : 'בערב' + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०', + }, + i = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + } + return e.defineLocale('hi', { + months: + 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( + '_' + ), + monthsShort: + 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( + '_' + ), + weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm बजे', + LTS: 'A h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[कल] LT', + nextWeek: 'dddd, LT', + lastDay: '[कल] LT', + lastWeek: '[पिछले] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s में', + past: '%s पहले', + s: 'कुछ ही क्षण', + ss: '%d सेकंड', + m: 'एक मिनट', + mm: '%d मिनट', + h: 'एक घंटा', + hh: '%d घंटे', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महीने', + MM: '%d महीने', + y: 'एक वर्ष', + yy: '%d वर्ष', + }, + preparse: function (e) { + return e.replace(/[१२३४५६७८९०]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /रात|सुबह|दोपहर|शाम/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'रात' === t + ? e < 4 + ? e + : e + 12 + : 'सुबह' === t + ? e + : 'दोपहर' === t + ? e >= 10 + ? e + : e + 12 + : 'शाम' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'रात' + : e < 10 + ? 'सुबह' + : e < 17 + ? 'दोपहर' + : e < 20 + ? 'शाम' + : 'रात' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i) { + var n = e + ' ' + switch (i) { + case 'ss': + return (n += + 1 === e + ? 'sekunda' + : 2 === e || 3 === e || 4 === e + ? 'sekunde' + : 'sekundi') + case 'm': + return t ? 'jedna minuta' : 'jedne minute' + case 'mm': + return (n += + 1 === e + ? 'minuta' + : 2 === e || 3 === e || 4 === e + ? 'minute' + : 'minuta') + case 'h': + return t ? 'jedan sat' : 'jednog sata' + case 'hh': + return (n += + 1 === e ? 'sat' : 2 === e || 3 === e || 4 === e ? 'sata' : 'sati') + case 'dd': + return (n += 1 === e ? 'dan' : 'dana') + case 'MM': + return (n += + 1 === e + ? 'mjesec' + : 2 === e || 3 === e || 4 === e + ? 'mjeseca' + : 'mjeseci') + case 'yy': + return (n += + 1 === e + ? 'godina' + : 2 === e || 3 === e || 4 === e + ? 'godine' + : 'godina') + } + } + return e.defineLocale('hr', { + months: { + format: + 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( + '_' + ), + standalone: + 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( + '_' + ), + }, + monthsShort: + 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT' + case 3: + return '[u] [srijedu] [u] LT' + case 6: + return '[u] [subotu] [u] LT' + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT' + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT' + case 6: + return '[prošle] [subote] [u] LT' + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: 'dan', + dd: t, + M: 'mjesec', + MM: t, + y: 'godinu', + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = e + switch (i) { + case 's': + return n || t ? 'néhány másodperc' : 'néhány másodperce' + case 'ss': + return s + (n || t) ? ' másodperc' : ' másodperce' + case 'm': + return 'egy' + (n || t ? ' perc' : ' perce') + case 'mm': + return s + (n || t ? ' perc' : ' perce') + case 'h': + return 'egy' + (n || t ? ' óra' : ' órája') + case 'hh': + return s + (n || t ? ' óra' : ' órája') + case 'd': + return 'egy' + (n || t ? ' nap' : ' napja') + case 'dd': + return s + (n || t ? ' nap' : ' napja') + case 'M': + return 'egy' + (n || t ? ' hónap' : ' hónapja') + case 'MM': + return s + (n || t ? ' hónap' : ' hónapja') + case 'y': + return 'egy' + (n || t ? ' év' : ' éve') + case 'yy': + return s + (n || t ? ' év' : ' éve') + } + return '' + } + function i(e) { + return (e ? '' : '[múlt] ') + '[' + n[this.day()] + '] LT[-kor]' + } + var n = + 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( + ' ' + ) + return e.defineLocale('hu', { + months: + 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( + '_' + ), + weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split( + '_' + ), + weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY. MMMM D.', + LLL: 'YYYY. MMMM D. H:mm', + LLLL: 'YYYY. MMMM D., dddd H:mm', + }, + meridiemParse: /de|du/i, + isPM: function (e) { + return 'u' === e.charAt(1).toLowerCase() + }, + meridiem: function (e, t, i) { + return e < 12 ? (!0 === i ? 'de' : 'DE') : !0 === i ? 'du' : 'DU' + }, + calendar: { + sameDay: '[ma] LT[-kor]', + nextDay: '[holnap] LT[-kor]', + nextWeek: function () { + return i.call(this, !0) + }, + lastDay: '[tegnap] LT[-kor]', + lastWeek: function () { + return i.call(this, !1) + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s múlva', + past: '%s', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('hy-am', { + months: { + format: + 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( + '_' + ), + standalone: + 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( + '_' + ), + }, + monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split( + '_' + ), + weekdays: + 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( + '_' + ), + weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY թ.', + LLL: 'D MMMM YYYY թ., HH:mm', + LLLL: 'dddd, D MMMM YYYY թ., HH:mm', + }, + calendar: { + sameDay: '[այսօր] LT', + nextDay: '[վաղը] LT', + lastDay: '[երեկ] LT', + nextWeek: function () { + return 'dddd [օրը ժամը] LT' + }, + lastWeek: function () { + return '[անցած] dddd [օրը ժամը] LT' + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s հետո', + past: '%s առաջ', + s: 'մի քանի վայրկյան', + ss: '%d վայրկյան', + m: 'րոպե', + mm: '%d րոպե', + h: 'ժամ', + hh: '%d ժամ', + d: 'օր', + dd: '%d օր', + M: 'ամիս', + MM: '%d ամիս', + y: 'տարի', + yy: '%d տարի', + }, + meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, + isPM: function (e) { + return /^(ցերեկվա|երեկոյան)$/.test(e) + }, + meridiem: function (e) { + return e < 4 + ? 'գիշերվա' + : e < 12 + ? 'առավոտվա' + : e < 17 + ? 'ցերեկվա' + : 'երեկոյան' + }, + dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, + ordinal: function (e, t) { + switch (t) { + case 'DDD': + case 'w': + case 'W': + case 'DDDo': + return 1 === e ? e + '-ին' : e + '-րդ' + default: + return e + } + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('id', { + months: + 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|siang|sore|malam/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'siang' === t + ? e >= 11 + ? e + : e + 12 + : 'sore' === t || 'malam' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 11 ? 'pagi' : e < 15 ? 'siang' : e < 19 ? 'sore' : 'malam' + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Besok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kemarin pukul] LT', + lastWeek: 'dddd [lalu pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lalu', + s: 'beberapa detik', + ss: '%d detik', + m: 'semenit', + mm: '%d menit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e) { + return e % 100 == 11 || e % 10 != 1 + } + function i(e, i, n, s) { + var r = e + ' ' + switch (n) { + case 's': + return i || s ? 'nokkrar sekúndur' : 'nokkrum sekúndum' + case 'ss': + return t(e) ? r + (i || s ? 'sekúndur' : 'sekúndum') : r + 'sekúnda' + case 'm': + return i ? 'mínúta' : 'mínútu' + case 'mm': + return t(e) + ? r + (i || s ? 'mínútur' : 'mínútum') + : i + ? r + 'mínúta' + : r + 'mínútu' + case 'hh': + return t(e) + ? r + (i || s ? 'klukkustundir' : 'klukkustundum') + : r + 'klukkustund' + case 'd': + return i ? 'dagur' : s ? 'dag' : 'degi' + case 'dd': + return t(e) + ? i + ? r + 'dagar' + : r + (s ? 'daga' : 'dögum') + : i + ? r + 'dagur' + : r + (s ? 'dag' : 'degi') + case 'M': + return i ? 'mánuður' : s ? 'mánuð' : 'mánuði' + case 'MM': + return t(e) + ? i + ? r + 'mánuðir' + : r + (s ? 'mánuði' : 'mánuðum') + : i + ? r + 'mánuður' + : r + (s ? 'mánuð' : 'mánuði') + case 'y': + return i || s ? 'ár' : 'ári' + case 'yy': + return t(e) + ? r + (i || s ? 'ár' : 'árum') + : r + (i || s ? 'ár' : 'ári') + } + } + return e.defineLocale('is', { + months: + 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split( + '_' + ), + weekdays: + 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), + weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', + }, + calendar: { + sameDay: '[í dag kl.] LT', + nextDay: '[á morgun kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[í gær kl.] LT', + lastWeek: '[síðasta] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'eftir %s', + past: 'fyrir %s síðan', + s: i, + ss: i, + m: i, + mm: i, + h: 'klukkustund', + hh: i, + d: i, + dd: i, + M: i, + MM: i, + y: i, + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('it-ch', { + months: + 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( + '_' + ), + weekdays: + 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT' + default: + return '[lo scorso] dddd [alle] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('it', { + months: + 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( + '_' + ), + weekdays: + 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT' + default: + return '[lo scorso] dddd [alle] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ja', { + months: + '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), + weekdaysShort: '日_月_火_水_木_金_土'.split('_'), + weekdaysMin: '日_月_火_水_木_金_土'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日 dddd HH:mm', + l: 'YYYY/MM/DD', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日(ddd) HH:mm', + }, + meridiemParse: /午前|午後/i, + isPM: function (e) { + return '午後' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? '午前' : '午後' + }, + calendar: { + sameDay: '[今日] LT', + nextDay: '[明日] LT', + nextWeek: function (e) { + return e.week() < this.week() ? '[来週]dddd LT' : 'dddd LT' + }, + lastDay: '[昨日] LT', + lastWeek: function (e) { + return this.week() < e.week() ? '[先週]dddd LT' : 'dddd LT' + }, + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}日/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日' + default: + return e + } + }, + relativeTime: { + future: '%s後', + past: '%s前', + s: '数秒', + ss: '%d秒', + m: '1分', + mm: '%d分', + h: '1時間', + hh: '%d時間', + d: '1日', + dd: '%d日', + M: '1ヶ月', + MM: '%dヶ月', + y: '1年', + yy: '%d年', + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('jv', { + months: + 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split( + '_' + ), + weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /enjing|siyang|sonten|ndalu/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'enjing' === t + ? e + : 'siyang' === t + ? e >= 11 + ? e + : e + 12 + : 'sonten' === t || 'ndalu' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 11 + ? 'enjing' + : e < 15 + ? 'siyang' + : e < 19 + ? 'sonten' + : 'ndalu' + }, + calendar: { + sameDay: '[Dinten puniko pukul] LT', + nextDay: '[Mbenjang pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kala wingi pukul] LT', + lastWeek: 'dddd [kepengker pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'wonten ing %s', + past: '%s ingkang kepengker', + s: 'sawetawis detik', + ss: '%d detik', + m: 'setunggal menit', + mm: '%d menit', + h: 'setunggal jam', + hh: '%d jam', + d: 'sedinten', + dd: '%d dinten', + M: 'sewulan', + MM: '%d wulan', + y: 'setaun', + yy: '%d taun', + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ka', { + months: { + standalone: + 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( + '_' + ), + format: + 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split( + '_' + ), + }, + monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split( + '_' + ), + weekdays: { + standalone: + 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( + '_' + ), + format: + 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( + '_' + ), + isFormat: /(წინა|შემდეგ)/, + }, + weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), + weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[დღეს] LT[-ზე]', + nextDay: '[ხვალ] LT[-ზე]', + lastDay: '[გუშინ] LT[-ზე]', + nextWeek: '[შემდეგ] dddd LT[-ზე]', + lastWeek: '[წინა] dddd LT-ზე', + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return /(წამი|წუთი|საათი|წელი)/.test(e) + ? e.replace(/ი$/, 'ში') + : e + 'ში' + }, + past: function (e) { + return /(წამი|წუთი|საათი|დღე|თვე)/.test(e) + ? e.replace(/(ი|ე)$/, 'ის წინ') + : /წელი/.test(e) + ? e.replace(/წელი$/, 'წლის წინ') + : void 0 + }, + s: 'რამდენიმე წამი', + ss: '%d წამი', + m: 'წუთი', + mm: '%d წუთი', + h: 'საათი', + hh: '%d საათი', + d: 'დღე', + dd: '%d დღე', + M: 'თვე', + MM: '%d თვე', + y: 'წელი', + yy: '%d წელი', + }, + dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, + ordinal: function (e) { + return 0 === e + ? e + : 1 === e + ? e + '-ლი' + : e < 20 || (e <= 100 && e % 20 == 0) || e % 100 == 0 + ? 'მე-' + e + : e + '-ე' + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші', + } + return e.defineLocale('kk', { + months: + 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( + '_' + ), + monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split( + '_' + ), + weekdays: + 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'), + weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), + weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгін сағат] LT', + nextDay: '[Ертең сағат] LT', + nextWeek: 'dddd [сағат] LT', + lastDay: '[Кеше сағат] LT', + lastWeek: '[Өткен аптаның] dddd [сағат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ішінде', + past: '%s бұрын', + s: 'бірнеше секунд', + ss: '%d секунд', + m: 'бір минут', + mm: '%d минут', + h: 'бір сағат', + hh: '%d сағат', + d: 'бір күн', + dd: '%d күн', + M: 'бір ай', + MM: '%d ай', + y: 'бір жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, + ordinal: function (e) { + var i = e % 10, + n = e >= 100 ? 100 : null + return e + (t[e] || t[i] || t[n]) + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '១', + 2: '២', + 3: '៣', + 4: '៤', + 5: '៥', + 6: '៦', + 7: '៧', + 8: '៨', + 9: '៩', + 0: '០', + }, + i = { + '១': '1', + '២': '2', + '៣': '3', + '៤': '4', + '៥': '5', + '៦': '6', + '៧': '7', + '៨': '8', + '៩': '9', + '០': '0', + } + return e.defineLocale('km', { + months: + 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + monthsShort: + 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ព្រឹក|ល្ងាច/, + isPM: function (e) { + return 'ល្ងាច' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'ព្រឹក' : 'ល្ងាច' + }, + calendar: { + sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', + nextDay: '[ស្អែក ម៉ោង] LT', + nextWeek: 'dddd [ម៉ោង] LT', + lastDay: '[ម្សិលមិញ ម៉ោង] LT', + lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sទៀត', + past: '%sមុន', + s: 'ប៉ុន្មានវិនាទី', + ss: '%d វិនាទី', + m: 'មួយនាទី', + mm: '%d នាទី', + h: 'មួយម៉ោង', + hh: '%d ម៉ោង', + d: 'មួយថ្ងៃ', + dd: '%d ថ្ងៃ', + M: 'មួយខែ', + MM: '%d ខែ', + y: 'មួយឆ្នាំ', + yy: '%d ឆ្នាំ', + }, + dayOfMonthOrdinalParse: /ទី\d{1,2}/, + ordinal: 'ទី%d', + preparse: function (e) { + return e.replace(/[១២៣៤៥៦៧៨៩០]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '೧', + 2: '೨', + 3: '೩', + 4: '೪', + 5: '೫', + 6: '೬', + 7: '೭', + 8: '೮', + 9: '೯', + 0: '೦', + }, + i = { + '೧': '1', + '೨': '2', + '೩': '3', + '೪': '4', + '೫': '5', + '೬': '6', + '೭': '7', + '೮': '8', + '೯': '9', + '೦': '0', + } + return e.defineLocale('kn', { + months: + 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( + '_' + ), + monthsShort: + 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), + weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), + weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[ಇಂದು] LT', + nextDay: '[ನಾಳೆ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ನಿನ್ನೆ] LT', + lastWeek: '[ಕೊನೆಯ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ನಂತರ', + past: '%s ಹಿಂದೆ', + s: 'ಕೆಲವು ಕ್ಷಣಗಳು', + ss: '%d ಸೆಕೆಂಡುಗಳು', + m: 'ಒಂದು ನಿಮಿಷ', + mm: '%d ನಿಮಿಷ', + h: 'ಒಂದು ಗಂಟೆ', + hh: '%d ಗಂಟೆ', + d: 'ಒಂದು ದಿನ', + dd: '%d ದಿನ', + M: 'ಒಂದು ತಿಂಗಳು', + MM: '%d ತಿಂಗಳು', + y: 'ಒಂದು ವರ್ಷ', + yy: '%d ವರ್ಷ', + }, + preparse: function (e) { + return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'ರಾತ್ರಿ' === t + ? e < 4 + ? e + : e + 12 + : 'ಬೆಳಿಗ್ಗೆ' === t + ? e + : 'ಮಧ್ಯಾಹ್ನ' === t + ? e >= 10 + ? e + : e + 12 + : 'ಸಂಜೆ' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'ರಾತ್ರಿ' + : e < 10 + ? 'ಬೆಳಿಗ್ಗೆ' + : e < 17 + ? 'ಮಧ್ಯಾಹ್ನ' + : e < 20 + ? 'ಸಂಜೆ' + : 'ರಾತ್ರಿ' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, + ordinal: function (e) { + return e + 'ನೇ' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ko', { + months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), + monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( + '_' + ), + weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), + weekdaysShort: '일_월_화_수_목_금_토'.split('_'), + weekdaysMin: '일_월_화_수_목_금_토'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY년 MMMM D일', + LLL: 'YYYY년 MMMM D일 A h:mm', + LLLL: 'YYYY년 MMMM D일 dddd A h:mm', + l: 'YYYY.MM.DD.', + ll: 'YYYY년 MMMM D일', + lll: 'YYYY년 MMMM D일 A h:mm', + llll: 'YYYY년 MMMM D일 dddd A h:mm', + }, + calendar: { + sameDay: '오늘 LT', + nextDay: '내일 LT', + nextWeek: 'dddd LT', + lastDay: '어제 LT', + lastWeek: '지난주 dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s 후', + past: '%s 전', + s: '몇 초', + ss: '%d초', + m: '1분', + mm: '%d분', + h: '한 시간', + hh: '%d시간', + d: '하루', + dd: '%d일', + M: '한 달', + MM: '%d달', + y: '일 년', + yy: '%d년', + }, + dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '일' + case 'M': + return e + '월' + case 'w': + case 'W': + return e + '주' + default: + return e + } + }, + meridiemParse: /오전|오후/, + isPM: function (e) { + return '오후' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? '오전' : '오후' + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠', + }, + i = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + n = [ + 'کانونی دووەم', + 'شوبات', + 'ئازار', + 'نیسان', + 'ئایار', + 'حوزەیران', + 'تەمموز', + 'ئاب', + 'ئەیلوول', + 'تشرینی یەكەم', + 'تشرینی دووەم', + 'كانونی یەکەم', + ] + return e.defineLocale('ku', { + months: n, + monthsShort: n, + weekdays: + 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysShort: + 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'), + weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ئێواره‌|به‌یانی/, + isPM: function (e) { + return /ئێواره‌/.test(e) + }, + meridiem: function (e, t, i) { + return e < 12 ? 'به‌یانی' : 'ئێواره‌' + }, + calendar: { + sameDay: '[ئه‌مرۆ كاتژمێر] LT', + nextDay: '[به‌یانی كاتژمێر] LT', + nextWeek: 'dddd [كاتژمێر] LT', + lastDay: '[دوێنێ كاتژمێر] LT', + lastWeek: 'dddd [كاتژمێر] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'له‌ %s', + past: '%s', + s: 'چه‌ند چركه‌یه‌ك', + ss: 'چركه‌ %d', + m: 'یه‌ك خوله‌ك', + mm: '%d خوله‌ك', + h: 'یه‌ك كاتژمێر', + hh: '%d كاتژمێر', + d: 'یه‌ك ڕۆژ', + dd: '%d ڕۆژ', + M: 'یه‌ك مانگ', + MM: '%d مانگ', + y: 'یه‌ك ساڵ', + yy: '%d ساڵ', + }, + preparse: function (e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { + return i[e] + }) + .replace(/،/g, ',') + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e] + }) + .replace(/,/g, '،') + }, + week: { dow: 6, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 0: '-чү', + 1: '-чи', + 2: '-чи', + 3: '-чү', + 4: '-чү', + 5: '-чи', + 6: '-чы', + 7: '-чи', + 8: '-чи', + 9: '-чу', + 10: '-чу', + 20: '-чы', + 30: '-чу', + 40: '-чы', + 50: '-чү', + 60: '-чы', + 70: '-чи', + 80: '-чи', + 90: '-чу', + 100: '-чү', + } + return e.defineLocale('ky', { + months: + 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: + 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'), + weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), + weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгүн саат] LT', + nextDay: '[Эртең саат] LT', + nextWeek: 'dddd [саат] LT', + lastDay: '[Кечээ саат] LT', + lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ичинде', + past: '%s мурун', + s: 'бирнече секунд', + ss: '%d секунд', + m: 'бир мүнөт', + mm: '%d мүнөт', + h: 'бир саат', + hh: '%d саат', + d: 'бир күн', + dd: '%d күн', + M: 'бир ай', + MM: '%d ай', + y: 'бир жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, + ordinal: function (e) { + var i = e % 10, + n = e >= 100 ? 100 : null + return e + (t[e] || t[i] || t[n]) + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = { + m: ['eng Minutt', 'enger Minutt'], + h: ['eng Stonn', 'enger Stonn'], + d: ['een Dag', 'engem Dag'], + M: ['ee Mount', 'engem Mount'], + y: ['ee Joer', 'engem Joer'], + } + return t ? s[i][0] : s[i][1] + } + function i(e) { + return s(e.substr(0, e.indexOf(' '))) ? 'a ' + e : 'an ' + e + } + function n(e) { + return s(e.substr(0, e.indexOf(' '))) ? 'viru ' + e : 'virun ' + e + } + function s(e) { + if (((e = parseInt(e, 10)), isNaN(e))) return !1 + if (e < 0) return !0 + if (e < 10) return 4 <= e && e <= 7 + if (e < 100) { + var t = e % 10, + i = e / 10 + return s(0 === t ? i : t) + } + if (e < 1e4) { + for (; e >= 10; ) e /= 10 + return s(e) + } + return (e /= 1e3), s(e) + } + return e.defineLocale('lb', { + months: + 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: + 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( + '_' + ), + weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm [Auer]', + LTS: 'H:mm:ss [Auer]', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm [Auer]', + LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', + }, + calendar: { + sameDay: '[Haut um] LT', + sameElse: 'L', + nextDay: '[Muer um] LT', + nextWeek: 'dddd [um] LT', + lastDay: '[Gëschter um] LT', + lastWeek: function () { + switch (this.day()) { + case 2: + case 4: + return '[Leschten] dddd [um] LT' + default: + return '[Leschte] dddd [um] LT' + } + }, + }, + relativeTime: { + future: i, + past: n, + s: 'e puer Sekonnen', + ss: '%d Sekonnen', + m: t, + mm: '%d Minutten', + h: t, + hh: '%d Stonnen', + d: t, + dd: '%d Deeg', + M: t, + MM: '%d Méint', + y: t, + yy: '%d Joer', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('lo', { + months: + 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + monthsShort: + 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'ວັນdddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, + isPM: function (e) { + return 'ຕອນແລງ' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'ຕອນເຊົ້າ' : 'ຕອນແລງ' + }, + calendar: { + sameDay: '[ມື້ນີ້ເວລາ] LT', + nextDay: '[ມື້ອື່ນເວລາ] LT', + nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', + lastDay: '[ມື້ວານນີ້ເວລາ] LT', + lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ອີກ %s', + past: '%sຜ່ານມາ', + s: 'ບໍ່ເທົ່າໃດວິນາທີ', + ss: '%d ວິນາທີ', + m: '1 ນາທີ', + mm: '%d ນາທີ', + h: '1 ຊົ່ວໂມງ', + hh: '%d ຊົ່ວໂມງ', + d: '1 ມື້', + dd: '%d ມື້', + M: '1 ເດືອນ', + MM: '%d ເດືອນ', + y: '1 ປີ', + yy: '%d ປີ', + }, + dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, + ordinal: function (e) { + return 'ທີ່' + e + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + return t ? 'kelios sekundės' : n ? 'kelių sekundžių' : 'kelias sekundes' + } + function i(e, t, i, n) { + return t ? s(i)[0] : n ? s(i)[1] : s(i)[2] + } + function n(e) { + return e % 10 == 0 || (e > 10 && e < 20) + } + function s(e) { + return a[e].split('_') + } + function r(e, t, r, a) { + var o = e + ' ' + return 1 === e + ? o + i(e, t, r[0], a) + : t + ? o + (n(e) ? s(r)[1] : s(r)[0]) + : a + ? o + s(r)[1] + : o + (n(e) ? s(r)[1] : s(r)[2]) + } + var a = { + ss: 'sekundė_sekundžių_sekundes', + m: 'minutė_minutės_minutę', + mm: 'minutės_minučių_minutes', + h: 'valanda_valandos_valandą', + hh: 'valandos_valandų_valandas', + d: 'diena_dienos_dieną', + dd: 'dienos_dienų_dienas', + M: 'mėnuo_mėnesio_mėnesį', + MM: 'mėnesiai_mėnesių_mėnesius', + y: 'metai_metų_metus', + yy: 'metai_metų_metus', + } + return e.defineLocale('lt', { + months: { + format: + 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( + '_' + ), + standalone: + 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( + '_' + ), + isFormat: + /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, + }, + monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split( + '_' + ), + weekdays: { + format: + 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( + '_' + ), + standalone: + 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( + '_' + ), + isFormat: /dddd HH:mm/, + }, + weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), + weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY [m.] MMMM D [d.]', + LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', + l: 'YYYY-MM-DD', + ll: 'YYYY [m.] MMMM D [d.]', + lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', + }, + calendar: { + sameDay: '[Šiandien] LT', + nextDay: '[Rytoj] LT', + nextWeek: 'dddd LT', + lastDay: '[Vakar] LT', + lastWeek: '[Praėjusį] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'po %s', + past: 'prieš %s', + s: t, + ss: r, + m: i, + mm: r, + h: i, + hh: r, + d: i, + dd: r, + M: i, + MM: r, + y: i, + yy: r, + }, + dayOfMonthOrdinalParse: /\d{1,2}-oji/, + ordinal: function (e) { + return e + '-oji' + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i) { + return i + ? t % 10 == 1 && t % 100 != 11 + ? e[2] + : e[3] + : t % 10 == 1 && t % 100 != 11 + ? e[0] + : e[1] + } + function i(e, i, n) { + return e + ' ' + t(r[n], e, i) + } + function n(e, i, n) { + return t(r[n], e, i) + } + function s(e, t) { + return t ? 'dažas sekundes' : 'dažām sekundēm' + } + var r = { + ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), + m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + h: 'stundas_stundām_stunda_stundas'.split('_'), + hh: 'stundas_stundām_stunda_stundas'.split('_'), + d: 'dienas_dienām_diena_dienas'.split('_'), + dd: 'dienas_dienām_diena_dienas'.split('_'), + M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + y: 'gada_gadiem_gads_gadi'.split('_'), + yy: 'gada_gadiem_gads_gadi'.split('_'), + } + return e.defineLocale('lv', { + months: + 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: + 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( + '_' + ), + weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY.', + LL: 'YYYY. [gada] D. MMMM', + LLL: 'YYYY. [gada] D. MMMM, HH:mm', + LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', + }, + calendar: { + sameDay: '[Šodien pulksten] LT', + nextDay: '[Rīt pulksten] LT', + nextWeek: 'dddd [pulksten] LT', + lastDay: '[Vakar pulksten] LT', + lastWeek: '[Pagājušā] dddd [pulksten] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'pēc %s', + past: 'pirms %s', + s: s, + ss: i, + m: n, + mm: i, + h: n, + hh: i, + d: n, + dd: i, + M: n, + MM: i, + y: n, + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + words: { + ss: ['sekund', 'sekunda', 'sekundi'], + m: ['jedan minut', 'jednog minuta'], + mm: ['minut', 'minuta', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mjesec', 'mjeseca', 'mjeseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2] + }, + translate: function (e, i, n) { + var s = t.words[n] + return 1 === n.length + ? i + ? s[0] + : s[1] + : e + ' ' + t.correctGrammaticalCase(e, s) + }, + } + return e.defineLocale('me', { + months: + 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: + 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), + monthsParseExact: !0, + weekdays: + 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sjutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT' + case 3: + return '[u] [srijedu] [u] LT' + case 6: + return '[u] [subotu] [u] LT' + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT' + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + return [ + '[prošle] [nedjelje] [u] LT', + '[prošlog] [ponedjeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srijede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ][this.day()] + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'nekoliko sekundi', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'dan', + dd: t.translate, + M: 'mjesec', + MM: t.translate, + y: 'godinu', + yy: t.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('mi', { + months: + 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( + '_' + ), + monthsShort: + 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( + '_' + ), + monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, + weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), + weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [i] HH:mm', + LLLL: 'dddd, D MMMM YYYY [i] HH:mm', + }, + calendar: { + sameDay: '[i teie mahana, i] LT', + nextDay: '[apopo i] LT', + nextWeek: 'dddd [i] LT', + lastDay: '[inanahi i] LT', + lastWeek: 'dddd [whakamutunga i] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i roto i %s', + past: '%s i mua', + s: 'te hēkona ruarua', + ss: '%d hēkona', + m: 'he meneti', + mm: '%d meneti', + h: 'te haora', + hh: '%d haora', + d: 'he ra', + dd: '%d ra', + M: 'he marama', + MM: '%d marama', + y: 'he tau', + yy: '%d tau', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('mk', { + months: + 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split( + '_' + ), + weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), + weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Денес во] LT', + nextDay: '[Утре во] LT', + nextWeek: '[Во] dddd [во] LT', + lastDay: '[Вчера во] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Изминатата] dddd [во] LT' + case 1: + case 2: + case 4: + case 5: + return '[Изминатиот] dddd [во] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'после %s', + past: 'пред %s', + s: 'неколку секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дена', + M: 'месец', + MM: '%d месеци', + y: 'година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (e) { + var t = e % 10, + i = e % 100 + return 0 === e + ? e + '-ев' + : 0 === i + ? e + '-ен' + : i > 10 && i < 20 + ? e + '-ти' + : 1 === t + ? e + '-ви' + : 2 === t + ? e + '-ри' + : 7 === t || 8 === t + ? e + '-ми' + : e + '-ти' + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ml', { + months: + 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( + '_' + ), + monthsShort: + 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( + '_' + ), + weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), + weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), + longDateFormat: { + LT: 'A h:mm -നു', + LTS: 'A h:mm:ss -നു', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm -നു', + LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', + }, + calendar: { + sameDay: '[ഇന്ന്] LT', + nextDay: '[നാളെ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ഇന്നലെ] LT', + lastWeek: '[കഴിഞ്ഞ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s കഴിഞ്ഞ്', + past: '%s മുൻപ്', + s: 'അൽപ നിമിഷങ്ങൾ', + ss: '%d സെക്കൻഡ്', + m: 'ഒരു മിനിറ്റ്', + mm: '%d മിനിറ്റ്', + h: 'ഒരു മണിക്കൂർ', + hh: '%d മണിക്കൂർ', + d: 'ഒരു ദിവസം', + dd: '%d ദിവസം', + M: 'ഒരു മാസം', + MM: '%d മാസം', + y: 'ഒരു വർഷം', + yy: '%d വർഷം', + }, + meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + ('രാത്രി' === t && e >= 4) || + 'ഉച്ച കഴിഞ്ഞ്' === t || + 'വൈകുന്നേരം' === t + ? e + 12 + : e + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'രാത്രി' + : e < 12 + ? 'രാവിലെ' + : e < 17 + ? 'ഉച്ച കഴിഞ്ഞ്' + : e < 20 + ? 'വൈകുന്നേരം' + : 'രാത്രി' + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + switch (i) { + case 's': + return t ? 'хэдхэн секунд' : 'хэдхэн секундын' + case 'ss': + return e + (t ? ' секунд' : ' секундын') + case 'm': + case 'mm': + return e + (t ? ' минут' : ' минутын') + case 'h': + case 'hh': + return e + (t ? ' цаг' : ' цагийн') + case 'd': + case 'dd': + return e + (t ? ' өдөр' : ' өдрийн') + case 'M': + case 'MM': + return e + (t ? ' сар' : ' сарын') + case 'y': + case 'yy': + return e + (t ? ' жил' : ' жилийн') + default: + return e + } + } + return e.defineLocale('mn', { + months: + 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( + '_' + ), + monthsShort: + '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), + weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), + weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY оны MMMMын D', + LLL: 'YYYY оны MMMMын D HH:mm', + LLLL: 'dddd, YYYY оны MMMMын D HH:mm', + }, + meridiemParse: /ҮӨ|ҮХ/i, + isPM: function (e) { + return 'ҮХ' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'ҮӨ' : 'ҮХ' + }, + calendar: { + sameDay: '[Өнөөдөр] LT', + nextDay: '[Маргааш] LT', + nextWeek: '[Ирэх] dddd LT', + lastDay: '[Өчигдөр] LT', + lastWeek: '[Өнгөрсөн] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s дараа', + past: '%s өмнө', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2} өдөр/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + ' өдөр' + default: + return e + } + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = '' + if (t) + switch (i) { + case 's': + s = 'काही सेकंद' + break + case 'ss': + s = '%d सेकंद' + break + case 'm': + s = 'एक मिनिट' + break + case 'mm': + s = '%d मिनिटे' + break + case 'h': + s = 'एक तास' + break + case 'hh': + s = '%d तास' + break + case 'd': + s = 'एक दिवस' + break + case 'dd': + s = '%d दिवस' + break + case 'M': + s = 'एक महिना' + break + case 'MM': + s = '%d महिने' + break + case 'y': + s = 'एक वर्ष' + break + case 'yy': + s = '%d वर्षे' + } + else + switch (i) { + case 's': + s = 'काही सेकंदां' + break + case 'ss': + s = '%d सेकंदां' + break + case 'm': + s = 'एका मिनिटा' + break + case 'mm': + s = '%d मिनिटां' + break + case 'h': + s = 'एका तासा' + break + case 'hh': + s = '%d तासां' + break + case 'd': + s = 'एका दिवसा' + break + case 'dd': + s = '%d दिवसां' + break + case 'M': + s = 'एका महिन्या' + break + case 'MM': + s = '%d महिन्यां' + break + case 'y': + s = 'एका वर्षा' + break + case 'yy': + s = '%d वर्षां' + } + return s.replace(/%d/i, e) + } + var i = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०', + }, + n = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + } + return e.defineLocale('mr', { + months: + 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( + '_' + ), + monthsShort: + 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( + '_' + ), + weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm वाजता', + LTS: 'A h:mm:ss वाजता', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm वाजता', + LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[उद्या] LT', + nextWeek: 'dddd, LT', + lastDay: '[काल] LT', + lastWeek: '[मागील] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमध्ये', + past: '%sपूर्वी', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + preparse: function (e) { + return e.replace(/[१२३४५६७८९०]/g, function (e) { + return n[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return i[e] + }) + }, + meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'रात्री' === t + ? e < 4 + ? e + : e + 12 + : 'सकाळी' === t + ? e + : 'दुपारी' === t + ? e >= 10 + ? e + : e + 12 + : 'सायंकाळी' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'रात्री' + : e < 10 + ? 'सकाळी' + : e < 17 + ? 'दुपारी' + : e < 20 + ? 'सायंकाळी' + : 'रात्री' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ms-my', { + months: + 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( + '_' + ), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'tengahari' === t + ? e >= 11 + ? e + : e + 12 + : 'petang' === t || 'malam' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 11 + ? 'pagi' + : e < 15 + ? 'tengahari' + : e < 19 + ? 'petang' + : 'malam' + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ms', { + months: + 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( + '_' + ), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'tengahari' === t + ? e >= 11 + ? e + : e + 12 + : 'petang' === t || 'malam' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 11 + ? 'pagi' + : e < 15 + ? 'tengahari' + : e < 19 + ? 'petang' + : 'malam' + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('mt', { + months: + 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( + '_' + ), + monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split( + '_' + ), + weekdays: + 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( + '_' + ), + weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), + weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Illum fil-]LT', + nextDay: '[Għada fil-]LT', + nextWeek: 'dddd [fil-]LT', + lastDay: '[Il-bieraħ fil-]LT', + lastWeek: 'dddd [li għadda] [fil-]LT', + sameElse: 'L', + }, + relativeTime: { + future: 'f’ %s', + past: '%s ilu', + s: 'ftit sekondi', + ss: '%d sekondi', + m: 'minuta', + mm: '%d minuti', + h: 'siegħa', + hh: '%d siegħat', + d: 'ġurnata', + dd: '%d ġranet', + M: 'xahar', + MM: '%d xhur', + y: 'sena', + yy: '%d sni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '၁', + 2: '၂', + 3: '၃', + 4: '၄', + 5: '၅', + 6: '၆', + 7: '၇', + 8: '၈', + 9: '၉', + 0: '၀', + }, + i = { + '၁': '1', + '၂': '2', + '၃': '3', + '၄': '4', + '၅': '5', + '၆': '6', + '၇': '7', + '၈': '8', + '၉': '9', + '၀': '0', + } + return e.defineLocale('my', { + months: + 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( + '_' + ), + monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split( + '_' + ), + weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( + '_' + ), + weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[ယနေ.] LT [မှာ]', + nextDay: '[မနက်ဖြန်] LT [မှာ]', + nextWeek: 'dddd LT [မှာ]', + lastDay: '[မနေ.က] LT [မှာ]', + lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', + sameElse: 'L', + }, + relativeTime: { + future: 'လာမည့် %s မှာ', + past: 'လွန်ခဲ့သော %s က', + s: 'စက္ကန်.အနည်းငယ်', + ss: '%d စက္ကန့်', + m: 'တစ်မိနစ်', + mm: '%d မိနစ်', + h: 'တစ်နာရီ', + hh: '%d နာရီ', + d: 'တစ်ရက်', + dd: '%d ရက်', + M: 'တစ်လ', + MM: '%d လ', + y: 'တစ်နှစ်', + yy: '%d နှစ်', + }, + preparse: function (e) { + return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('nb', { + months: + 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: + 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( + '_' + ), + weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[forrige] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'noen sekunder', + ss: '%d sekunder', + m: 'ett minutt', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dager', + M: 'en måned', + MM: '%d måneder', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०', + }, + i = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + } + return e.defineLocale('ne', { + months: + 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( + '_' + ), + monthsShort: + 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( + '_' + ), + weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), + weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'Aको h:mm बजे', + LTS: 'Aको h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, Aको h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', + }, + preparse: function (e) { + return e.replace(/[१२३४५६७८९०]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /राति|बिहान|दिउँसो|साँझ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'राति' === t + ? e < 4 + ? e + : e + 12 + : 'बिहान' === t + ? e + : 'दिउँसो' === t + ? e >= 10 + ? e + : e + 12 + : 'साँझ' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 3 + ? 'राति' + : e < 12 + ? 'बिहान' + : e < 16 + ? 'दिउँसो' + : e < 20 + ? 'साँझ' + : 'राति' + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[भोलि] LT', + nextWeek: '[आउँदो] dddd[,] LT', + lastDay: '[हिजो] LT', + lastWeek: '[गएको] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमा', + past: '%s अगाडि', + s: 'केही क्षण', + ss: '%d सेकेण्ड', + m: 'एक मिनेट', + mm: '%d मिनेट', + h: 'एक घण्टा', + hh: '%d घण्टा', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महिना', + MM: '%d महिना', + y: 'एक बर्ष', + yy: '%d बर्ष', + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = + 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + i = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + n = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + s = + /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i + return e.defineLocale('nl-be', { + months: + 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (e, n) { + return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t + }, + monthsRegex: s, + monthsShortRegex: s, + monthsStrictRegex: + /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: + /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + weekdays: + 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = + 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + i = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + n = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + s = + /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i + return e.defineLocale('nl', { + months: + 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (e, n) { + return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t + }, + monthsRegex: s, + monthsShortRegex: s, + monthsStrictRegex: + /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: + /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + weekdays: + 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('nn', { + months: + 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ), + weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split( + '_' + ), + weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'), + weekdaysMin: 'su_må_ty_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[I dag klokka] LT', + nextDay: '[I morgon klokka] LT', + nextWeek: 'dddd [klokka] LT', + lastDay: '[I går klokka] LT', + lastWeek: '[Føregåande] dddd [klokka] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s sidan', + s: 'nokre sekund', + ss: '%d sekund', + m: 'eit minutt', + mm: '%d minutt', + h: 'ein time', + hh: '%d timar', + d: 'ein dag', + dd: '%d dagar', + M: 'ein månad', + MM: '%d månader', + y: 'eit år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '੧', + 2: '੨', + 3: '੩', + 4: '੪', + 5: '੫', + 6: '੬', + 7: '੭', + 8: '੮', + 9: '੯', + 0: '੦', + }, + i = { + '੧': '1', + '੨': '2', + '੩': '3', + '੪': '4', + '੫': '5', + '੬': '6', + '੭': '7', + '੮': '8', + '੯': '9', + '੦': '0', + } + return e.defineLocale('pa-in', { + months: + 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + monthsShort: + 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + weekdays: + 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'), + weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + longDateFormat: { + LT: 'A h:mm ਵਜੇ', + LTS: 'A h:mm:ss ਵਜੇ', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', + LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', + }, + calendar: { + sameDay: '[ਅਜ] LT', + nextDay: '[ਕਲ] LT', + nextWeek: '[ਅਗਲਾ] dddd, LT', + lastDay: '[ਕਲ] LT', + lastWeek: '[ਪਿਛਲੇ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ਵਿੱਚ', + past: '%s ਪਿਛਲੇ', + s: 'ਕੁਝ ਸਕਿੰਟ', + ss: '%d ਸਕਿੰਟ', + m: 'ਇਕ ਮਿੰਟ', + mm: '%d ਮਿੰਟ', + h: 'ਇੱਕ ਘੰਟਾ', + hh: '%d ਘੰਟੇ', + d: 'ਇੱਕ ਦਿਨ', + dd: '%d ਦਿਨ', + M: 'ਇੱਕ ਮਹੀਨਾ', + MM: '%d ਮਹੀਨੇ', + y: 'ਇੱਕ ਸਾਲ', + yy: '%d ਸਾਲ', + }, + preparse: function (e) { + return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'ਰਾਤ' === t + ? e < 4 + ? e + : e + 12 + : 'ਸਵੇਰ' === t + ? e + : 'ਦੁਪਹਿਰ' === t + ? e >= 10 + ? e + : e + 12 + : 'ਸ਼ਾਮ' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'ਰਾਤ' + : e < 10 + ? 'ਸਵੇਰ' + : e < 17 + ? 'ਦੁਪਹਿਰ' + : e < 20 + ? 'ਸ਼ਾਮ' + : 'ਰਾਤ' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e) { + return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 != 1 + } + function i(e, i, n) { + var s = e + ' ' + switch (n) { + case 'ss': + return s + (t(e) ? 'sekundy' : 'sekund') + case 'm': + return i ? 'minuta' : 'minutę' + case 'mm': + return s + (t(e) ? 'minuty' : 'minut') + case 'h': + return i ? 'godzina' : 'godzinę' + case 'hh': + return s + (t(e) ? 'godziny' : 'godzin') + case 'MM': + return s + (t(e) ? 'miesiące' : 'miesięcy') + case 'yy': + return s + (t(e) ? 'lata' : 'lat') + } + } + var n = + 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( + '_' + ), + s = + 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( + '_' + ) + return e.defineLocale('pl', { + months: function (e, t) { + return e + ? '' === t + ? '(' + s[e.month()] + '|' + n[e.month()] + ')' + : /D MMMM/.test(t) + ? s[e.month()] + : n[e.month()] + : n + }, + monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split( + '_' + ), + weekdays: + 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( + '_' + ), + weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Dziś o] LT', + nextDay: '[Jutro o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[W niedzielę o] LT' + case 2: + return '[We wtorek o] LT' + case 3: + return '[W środę o] LT' + case 6: + return '[W sobotę o] LT' + default: + return '[W] dddd [o] LT' + } + }, + lastDay: '[Wczoraj o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[W zeszłą niedzielę o] LT' + case 3: + return '[W zeszłą środę o] LT' + case 6: + return '[W zeszłą sobotę o] LT' + default: + return '[W zeszły] dddd [o] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: '%s temu', + s: 'kilka sekund', + ss: i, + m: i, + mm: i, + h: i, + hh: i, + d: '1 dzień', + dd: '%d dni', + M: 'miesiąc', + MM: i, + y: 'rok', + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('pt-br', { + months: + 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: + 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return 0 === this.day() || 6 === this.day() + ? '[Último] dddd [às] LT' + : '[Última] dddd [às] LT' + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'poucos segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('pt', { + months: + 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: + 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return 0 === this.day() || 6 === this.day() + ? '[Último] dddd [às] LT' + : '[Última] dddd [às] LT' + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i) { + var n = { + ss: 'secunde', + mm: 'minute', + hh: 'ore', + dd: 'zile', + MM: 'luni', + yy: 'ani', + }, + s = ' ' + return ( + (e % 100 >= 20 || (e >= 100 && e % 100 == 0)) && (s = ' de '), + e + s + n[i] + ) + } + return e.defineLocale('ro', { + months: + 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( + '_' + ), + monthsShort: + 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), + weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), + weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[azi la] LT', + nextDay: '[mâine la] LT', + nextWeek: 'dddd [la] LT', + lastDay: '[ieri la] LT', + lastWeek: '[fosta] dddd [la] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'peste %s', + past: '%s în urmă', + s: 'câteva secunde', + ss: t, + m: 'un minut', + mm: t, + h: 'o oră', + hh: t, + d: 'o zi', + dd: t, + M: 'o lună', + MM: t, + y: 'un an', + yy: t, + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t) { + var i = e.split('_') + return t % 10 == 1 && t % 100 != 11 + ? i[0] + : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) + ? i[1] + : i[2] + } + function i(e, i, n) { + var s = { + ss: i ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: i ? 'минута_минуты_минут' : 'минуту_минуты_минут', + hh: 'час_часа_часов', + dd: 'день_дня_дней', + MM: 'месяц_месяца_месяцев', + yy: 'год_года_лет', + } + return 'm' === n ? (i ? 'минута' : 'минуту') : e + ' ' + t(s[n], +e) + } + var n = [ + /^янв/i, + /^фев/i, + /^мар/i, + /^апр/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^авг/i, + /^сен/i, + /^окт/i, + /^ноя/i, + /^дек/i, + ] + return e.defineLocale('ru', { + months: { + format: + 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( + '_' + ), + standalone: + 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + }, + monthsShort: { + format: + 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( + '_' + ), + standalone: + 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( + '_' + ), + }, + weekdays: { + standalone: + 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( + '_' + ), + format: + 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( + '_' + ), + isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/, + }, + weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + monthsRegex: + /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + monthsShortRegex: + /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + monthsStrictRegex: + /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, + monthsShortStrictRegex: + /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., H:mm', + LLLL: 'dddd, D MMMM YYYY г., H:mm', + }, + calendar: { + sameDay: '[Сегодня, в] LT', + nextDay: '[Завтра, в] LT', + lastDay: '[Вчера, в] LT', + nextWeek: function (e) { + if (e.week() === this.week()) + return 2 === this.day() ? '[Во] dddd, [в] LT' : '[В] dddd, [в] LT' + switch (this.day()) { + case 0: + return '[В следующее] dddd, [в] LT' + case 1: + case 2: + case 4: + return '[В следующий] dddd, [в] LT' + case 3: + case 5: + case 6: + return '[В следующую] dddd, [в] LT' + } + }, + lastWeek: function (e) { + if (e.week() === this.week()) + return 2 === this.day() ? '[Во] dddd, [в] LT' : '[В] dddd, [в] LT' + switch (this.day()) { + case 0: + return '[В прошлое] dddd, [в] LT' + case 1: + case 2: + case 4: + return '[В прошлый] dddd, [в] LT' + case 3: + case 5: + case 6: + return '[В прошлую] dddd, [в] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'через %s', + past: '%s назад', + s: 'несколько секунд', + ss: i, + m: i, + mm: i, + h: 'час', + hh: i, + d: 'день', + dd: i, + M: 'месяц', + MM: i, + y: 'год', + yy: i, + }, + meridiemParse: /ночи|утра|дня|вечера/i, + isPM: function (e) { + return /^(дня|вечера)$/.test(e) + }, + meridiem: function (e, t, i) { + return e < 4 ? 'ночи' : e < 12 ? 'утра' : e < 17 ? 'дня' : 'вечера' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, + ordinal: function (e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + return e + '-й' + case 'D': + return e + '-го' + case 'w': + case 'W': + return e + '-я' + default: + return e + } + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = [ + 'جنوري', + 'فيبروري', + 'مارچ', + 'اپريل', + 'مئي', + 'جون', + 'جولاءِ', + 'آگسٽ', + 'سيپٽمبر', + 'آڪٽوبر', + 'نومبر', + 'ڊسمبر', + ], + i = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'] + return e.defineLocale('sd', { + months: t, + monthsShort: t, + weekdays: i, + weekdaysShort: i, + weekdaysMin: i, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm', + }, + meridiemParse: /صبح|شام/, + isPM: function (e) { + return 'شام' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'صبح' : 'شام' + }, + calendar: { + sameDay: '[اڄ] LT', + nextDay: '[سڀاڻي] LT', + nextWeek: 'dddd [اڳين هفتي تي] LT', + lastDay: '[ڪالهه] LT', + lastWeek: '[گزريل هفتي] dddd [تي] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s پوء', + past: '%s اڳ', + s: 'چند سيڪنڊ', + ss: '%d سيڪنڊ', + m: 'هڪ منٽ', + mm: '%d منٽ', + h: 'هڪ ڪلاڪ', + hh: '%d ڪلاڪ', + d: 'هڪ ڏينهن', + dd: '%d ڏينهن', + M: 'هڪ مهينو', + MM: '%d مهينا', + y: 'هڪ سال', + yy: '%d سال', + }, + preparse: function (e) { + return e.replace(/،/g, ',') + }, + postformat: function (e) { + return e.replace(/,/g, '،') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('se', { + months: + 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( + '_' + ), + monthsShort: + 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( + '_' + ), + weekdays: + 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( + '_' + ), + weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), + weekdaysMin: 's_v_m_g_d_b_L'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'MMMM D. [b.] YYYY', + LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', + LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', + }, + calendar: { + sameDay: '[otne ti] LT', + nextDay: '[ihttin ti] LT', + nextWeek: 'dddd [ti] LT', + lastDay: '[ikte ti] LT', + lastWeek: '[ovddit] dddd [ti] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s geažes', + past: 'maŋit %s', + s: 'moadde sekunddat', + ss: '%d sekunddat', + m: 'okta minuhta', + mm: '%d minuhtat', + h: 'okta diimmu', + hh: '%d diimmut', + d: 'okta beaivi', + dd: '%d beaivvit', + M: 'okta mánnu', + MM: '%d mánut', + y: 'okta jahki', + yy: '%d jagit', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('si', { + months: + 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( + '_' + ), + monthsShort: + 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'), + weekdays: + 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( + '_' + ), + weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), + weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'a h:mm', + LTS: 'a h:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY MMMM D', + LLL: 'YYYY MMMM D, a h:mm', + LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', + }, + calendar: { + sameDay: '[අද] LT[ට]', + nextDay: '[හෙට] LT[ට]', + nextWeek: 'dddd LT[ට]', + lastDay: '[ඊයේ] LT[ට]', + lastWeek: '[පසුගිය] dddd LT[ට]', + sameElse: 'L', + }, + relativeTime: { + future: '%sකින්', + past: '%sකට පෙර', + s: 'තත්පර කිහිපය', + ss: 'තත්පර %d', + m: 'මිනිත්තුව', + mm: 'මිනිත්තු %d', + h: 'පැය', + hh: 'පැය %d', + d: 'දිනය', + dd: 'දින %d', + M: 'මාසය', + MM: 'මාස %d', + y: 'වසර', + yy: 'වසර %d', + }, + dayOfMonthOrdinalParse: /\d{1,2} වැනි/, + ordinal: function (e) { + return e + ' වැනි' + }, + meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, + isPM: function (e) { + return 'ප.ව.' === e || 'පස් වරු' === e + }, + meridiem: function (e, t, i) { + return e > 11 ? (i ? 'ප.ව.' : 'පස් වරු') : i ? 'පෙ.ව.' : 'පෙර වරු' + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e) { + return e > 1 && e < 5 + } + function i(e, i, n, s) { + var r = e + ' ' + switch (n) { + case 's': + return i || s ? 'pár sekúnd' : 'pár sekundami' + case 'ss': + return i || s ? r + (t(e) ? 'sekundy' : 'sekúnd') : r + 'sekundami' + case 'm': + return i ? 'minúta' : s ? 'minútu' : 'minútou' + case 'mm': + return i || s ? r + (t(e) ? 'minúty' : 'minút') : r + 'minútami' + case 'h': + return i ? 'hodina' : s ? 'hodinu' : 'hodinou' + case 'hh': + return i || s ? r + (t(e) ? 'hodiny' : 'hodín') : r + 'hodinami' + case 'd': + return i || s ? 'deň' : 'dňom' + case 'dd': + return i || s ? r + (t(e) ? 'dni' : 'dní') : r + 'dňami' + case 'M': + return i || s ? 'mesiac' : 'mesiacom' + case 'MM': + return i || s ? r + (t(e) ? 'mesiace' : 'mesiacov') : r + 'mesiacmi' + case 'y': + return i || s ? 'rok' : 'rokom' + case 'yy': + return i || s ? r + (t(e) ? 'roky' : 'rokov') : r + 'rokmi' + } + } + var n = + 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( + '_' + ), + s = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_') + return e.defineLocale('sk', { + months: n, + monthsShort: s, + weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split( + '_' + ), + weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), + weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[dnes o] LT', + nextDay: '[zajtra o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v nedeľu o] LT' + case 1: + case 2: + return '[v] dddd [o] LT' + case 3: + return '[v stredu o] LT' + case 4: + return '[vo štvrtok o] LT' + case 5: + return '[v piatok o] LT' + case 6: + return '[v sobotu o] LT' + } + }, + lastDay: '[včera o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulú nedeľu o] LT' + case 1: + case 2: + return '[minulý] dddd [o] LT' + case 3: + return '[minulú stredu o] LT' + case 4: + case 5: + return '[minulý] dddd [o] LT' + case 6: + return '[minulú sobotu o] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pred %s', + s: i, + ss: i, + m: i, + mm: i, + h: i, + hh: i, + d: i, + dd: i, + M: i, + MM: i, + y: i, + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = e + ' ' + switch (i) { + case 's': + return t || n ? 'nekaj sekund' : 'nekaj sekundami' + case 'ss': + return (s += + 1 === e + ? t + ? 'sekundo' + : 'sekundi' + : 2 === e + ? t || n + ? 'sekundi' + : 'sekundah' + : e < 5 + ? t || n + ? 'sekunde' + : 'sekundah' + : 'sekund') + case 'm': + return t ? 'ena minuta' : 'eno minuto' + case 'mm': + return (s += + 1 === e + ? t + ? 'minuta' + : 'minuto' + : 2 === e + ? t || n + ? 'minuti' + : 'minutama' + : e < 5 + ? t || n + ? 'minute' + : 'minutami' + : t || n + ? 'minut' + : 'minutami') + case 'h': + return t ? 'ena ura' : 'eno uro' + case 'hh': + return (s += + 1 === e + ? t + ? 'ura' + : 'uro' + : 2 === e + ? t || n + ? 'uri' + : 'urama' + : e < 5 + ? t || n + ? 'ure' + : 'urami' + : t || n + ? 'ur' + : 'urami') + case 'd': + return t || n ? 'en dan' : 'enim dnem' + case 'dd': + return (s += + 1 === e + ? t || n + ? 'dan' + : 'dnem' + : 2 === e + ? t || n + ? 'dni' + : 'dnevoma' + : t || n + ? 'dni' + : 'dnevi') + case 'M': + return t || n ? 'en mesec' : 'enim mesecem' + case 'MM': + return (s += + 1 === e + ? t || n + ? 'mesec' + : 'mesecem' + : 2 === e + ? t || n + ? 'meseca' + : 'mesecema' + : e < 5 + ? t || n + ? 'mesece' + : 'meseci' + : t || n + ? 'mesecev' + : 'meseci') + case 'y': + return t || n ? 'eno leto' : 'enim letom' + case 'yy': + return (s += + 1 === e + ? t || n + ? 'leto' + : 'letom' + : 2 === e + ? t || n + ? 'leti' + : 'letoma' + : e < 5 + ? t || n + ? 'leta' + : 'leti' + : t || n + ? 'let' + : 'leti') + } + } + return e.defineLocale('sl', { + months: + 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( + '_' + ), + monthsShort: + 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split( + '_' + ), + weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), + weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danes ob] LT', + nextDay: '[jutri ob] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v] [nedeljo] [ob] LT' + case 3: + return '[v] [sredo] [ob] LT' + case 6: + return '[v] [soboto] [ob] LT' + case 1: + case 2: + case 4: + case 5: + return '[v] dddd [ob] LT' + } + }, + lastDay: '[včeraj ob] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[prejšnjo] [nedeljo] [ob] LT' + case 3: + return '[prejšnjo] [sredo] [ob] LT' + case 6: + return '[prejšnjo] [soboto] [ob] LT' + case 1: + case 2: + case 4: + case 5: + return '[prejšnji] dddd [ob] LT' + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'čez %s', + past: 'pred %s', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('sq', { + months: + 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( + '_' + ), + monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split( + '_' + ), + weekdays: + 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( + '_' + ), + weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), + weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), + weekdaysParseExact: !0, + meridiemParse: /PD|MD/, + isPM: function (e) { + return 'M' === e.charAt(0) + }, + meridiem: function (e, t, i) { + return e < 12 ? 'PD' : 'MD' + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Sot në] LT', + nextDay: '[Nesër në] LT', + nextWeek: 'dddd [në] LT', + lastDay: '[Dje në] LT', + lastWeek: 'dddd [e kaluar në] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'në %s', + past: '%s më parë', + s: 'disa sekonda', + ss: '%d sekonda', + m: 'një minutë', + mm: '%d minuta', + h: 'një orë', + hh: '%d orë', + d: 'një ditë', + dd: '%d ditë', + M: 'një muaj', + MM: '%d muaj', + y: 'një vit', + yy: '%d vite', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + words: { + ss: ['секунда', 'секунде', 'секунди'], + m: ['један минут', 'једне минуте'], + mm: ['минут', 'минуте', 'минута'], + h: ['један сат', 'једног сата'], + hh: ['сат', 'сата', 'сати'], + dd: ['дан', 'дана', 'дана'], + MM: ['месец', 'месеца', 'месеци'], + yy: ['година', 'године', 'година'], + }, + correctGrammaticalCase: function (e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2] + }, + translate: function (e, i, n) { + var s = t.words[n] + return 1 === n.length + ? i + ? s[0] + : s[1] + : e + ' ' + t.correctGrammaticalCase(e, s) + }, + } + return e.defineLocale('sr-cyrl', { + months: + 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( + '_' + ), + monthsShort: + 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'), + monthsParseExact: !0, + weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split( + '_' + ), + weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), + weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[данас у] LT', + nextDay: '[сутра у] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[у] [недељу] [у] LT' + case 3: + return '[у] [среду] [у] LT' + case 6: + return '[у] [суботу] [у] LT' + case 1: + case 2: + case 4: + case 5: + return '[у] dddd [у] LT' + } + }, + lastDay: '[јуче у] LT', + lastWeek: function () { + return [ + '[прошле] [недеље] [у] LT', + '[прошлог] [понедељка] [у] LT', + '[прошлог] [уторка] [у] LT', + '[прошле] [среде] [у] LT', + '[прошлог] [четвртка] [у] LT', + '[прошлог] [петка] [у] LT', + '[прошле] [суботе] [у] LT', + ][this.day()] + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: 'пре %s', + s: 'неколико секунди', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'дан', + dd: t.translate, + M: 'месец', + MM: t.translate, + y: 'годину', + yy: t.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + words: { + ss: ['sekunda', 'sekunde', 'sekundi'], + m: ['jedan minut', 'jedne minute'], + mm: ['minut', 'minute', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mesec', 'meseca', 'meseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2] + }, + translate: function (e, i, n) { + var s = t.words[n] + return 1 === n.length + ? i + ? s[0] + : s[1] + : e + ' ' + t.correctGrammaticalCase(e, s) + }, + } + return e.defineLocale('sr', { + months: + 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: + 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), + monthsParseExact: !0, + weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedelju] [u] LT' + case 3: + return '[u] [sredu] [u] LT' + case 6: + return '[u] [subotu] [u] LT' + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT' + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + return [ + '[prošle] [nedelje] [u] LT', + '[prošlog] [ponedeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ][this.day()] + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pre %s', + s: 'nekoliko sekundi', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'dan', + dd: t.translate, + M: 'mesec', + MM: t.translate, + y: 'godinu', + yy: t.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ss', { + months: + "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( + '_' + ), + monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split( + '_' + ), + weekdays: + 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( + '_' + ), + weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), + weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Namuhla nga] LT', + nextDay: '[Kusasa nga] LT', + nextWeek: 'dddd [nga] LT', + lastDay: '[Itolo nga] LT', + lastWeek: 'dddd [leliphelile] [nga] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'nga %s', + past: 'wenteka nga %s', + s: 'emizuzwana lomcane', + ss: '%d mzuzwana', + m: 'umzuzu', + mm: '%d emizuzu', + h: 'lihora', + hh: '%d emahora', + d: 'lilanga', + dd: '%d emalanga', + M: 'inyanga', + MM: '%d tinyanga', + y: 'umnyaka', + yy: '%d iminyaka', + }, + meridiemParse: /ekuseni|emini|entsambama|ebusuku/, + meridiem: function (e, t, i) { + return e < 11 + ? 'ekuseni' + : e < 15 + ? 'emini' + : e < 19 + ? 'entsambama' + : 'ebusuku' + }, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'ekuseni' === t + ? e + : 'emini' === t + ? e >= 11 + ? e + : e + 12 + : 'entsambama' === t || 'ebusuku' === t + ? 0 === e + ? 0 + : e + 12 + : void 0 + ) + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: '%d', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('sv', { + months: + 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split( + '_' + ), + weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Idag] LT', + nextDay: '[Imorgon] LT', + lastDay: '[Igår] LT', + nextWeek: '[På] dddd LT', + lastWeek: '[I] dddd[s] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: 'för %s sedan', + s: 'några sekunder', + ss: '%d sekunder', + m: 'en minut', + mm: '%d minuter', + h: 'en timme', + hh: '%d timmar', + d: 'en dag', + dd: '%d dagar', + M: 'en månad', + MM: '%d månader', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'e' + : 1 === t + ? 'a' + : 2 === t + ? 'a' + : 'e') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('sw', { + months: + 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: + 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( + '_' + ), + weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), + weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[leo saa] LT', + nextDay: '[kesho saa] LT', + nextWeek: '[wiki ijayo] dddd [saat] LT', + lastDay: '[jana] LT', + lastWeek: '[wiki iliyopita] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s baadaye', + past: 'tokea %s', + s: 'hivi punde', + ss: 'sekunde %d', + m: 'dakika moja', + mm: 'dakika %d', + h: 'saa limoja', + hh: 'masaa %d', + d: 'siku moja', + dd: 'masiku %d', + M: 'mwezi mmoja', + MM: 'miezi %d', + y: 'mwaka mmoja', + yy: 'miaka %d', + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: '௧', + 2: '௨', + 3: '௩', + 4: '௪', + 5: '௫', + 6: '௬', + 7: '௭', + 8: '௮', + 9: '௯', + 0: '௦', + }, + i = { + '௧': '1', + '௨': '2', + '௩': '3', + '௪': '4', + '௫': '5', + '௬': '6', + '௭': '7', + '௮': '8', + '௯': '9', + '௦': '0', + } + return e.defineLocale('ta', { + months: + 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + monthsShort: + 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + weekdays: + 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( + '_' + ), + weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( + '_' + ), + weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, HH:mm', + LLLL: 'dddd, D MMMM YYYY, HH:mm', + }, + calendar: { + sameDay: '[இன்று] LT', + nextDay: '[நாளை] LT', + nextWeek: 'dddd, LT', + lastDay: '[நேற்று] LT', + lastWeek: '[கடந்த வாரம்] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s இல்', + past: '%s முன்', + s: 'ஒரு சில விநாடிகள்', + ss: '%d விநாடிகள்', + m: 'ஒரு நிமிடம்', + mm: '%d நிமிடங்கள்', + h: 'ஒரு மணி நேரம்', + hh: '%d மணி நேரம்', + d: 'ஒரு நாள்', + dd: '%d நாட்கள்', + M: 'ஒரு மாதம்', + MM: '%d மாதங்கள்', + y: 'ஒரு வருடம்', + yy: '%d ஆண்டுகள்', + }, + dayOfMonthOrdinalParse: /\d{1,2}வது/, + ordinal: function (e) { + return e + 'வது' + }, + preparse: function (e) { + return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (e) { + return i[e] + }) + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e] + }) + }, + meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, + meridiem: function (e, t, i) { + return e < 2 + ? ' யாமம்' + : e < 6 + ? ' வைகறை' + : e < 10 + ? ' காலை' + : e < 14 + ? ' நண்பகல்' + : e < 18 + ? ' எற்பாடு' + : e < 22 + ? ' மாலை' + : ' யாமம்' + }, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'யாமம்' === t + ? e < 2 + ? e + : e + 12 + : 'வைகறை' === t || 'காலை' === t + ? e + : 'நண்பகல்' === t && e >= 10 + ? e + : e + 12 + ) + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('te', { + months: + 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( + '_' + ), + monthsShort: + 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( + '_' + ), + weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), + weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[నేడు] LT', + nextDay: '[రేపు] LT', + nextWeek: 'dddd, LT', + lastDay: '[నిన్న] LT', + lastWeek: '[గత] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s లో', + past: '%s క్రితం', + s: 'కొన్ని క్షణాలు', + ss: '%d సెకన్లు', + m: 'ఒక నిమిషం', + mm: '%d నిమిషాలు', + h: 'ఒక గంట', + hh: '%d గంటలు', + d: 'ఒక రోజు', + dd: '%d రోజులు', + M: 'ఒక నెల', + MM: '%d నెలలు', + y: 'ఒక సంవత్సరం', + yy: '%d సంవత్సరాలు', + }, + dayOfMonthOrdinalParse: /\d{1,2}వ/, + ordinal: '%dవ', + meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'రాత్రి' === t + ? e < 4 + ? e + : e + 12 + : 'ఉదయం' === t + ? e + : 'మధ్యాహ్నం' === t + ? e >= 10 + ? e + : e + 12 + : 'సాయంత్రం' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'రాత్రి' + : e < 10 + ? 'ఉదయం' + : e < 17 + ? 'మధ్యాహ్నం' + : e < 20 + ? 'సాయంత్రం' + : 'రాత్రి' + }, + week: { dow: 0, doy: 6 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('tet', { + months: + 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), + weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), + weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Ohin iha] LT', + nextDay: '[Aban iha] LT', + nextWeek: 'dddd [iha] LT', + lastDay: '[Horiseik iha] LT', + lastWeek: 'dddd [semana kotuk] [iha] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'iha %s', + past: '%s liuba', + s: 'minutu balun', + ss: 'minutu %d', + m: 'minutu ida', + mm: 'minutu %d', + h: 'oras ida', + hh: 'oras %d', + d: 'loron ida', + dd: 'loron %d', + M: 'fulan ida', + MM: 'fulan %d', + y: 'tinan ida', + yy: 'tinan %d', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 0: '-ум', + 1: '-ум', + 2: '-юм', + 3: '-юм', + 4: '-ум', + 5: '-ум', + 6: '-ум', + 7: '-ум', + 8: '-ум', + 9: '-ум', + 10: '-ум', + 12: '-ум', + 13: '-ум', + 20: '-ум', + 30: '-юм', + 40: '-ум', + 50: '-ум', + 60: '-ум', + 70: '-ум', + 80: '-ум', + 90: '-ум', + 100: '-ум', + } + return e.defineLocale('tg', { + months: + 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: + 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'), + weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), + weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Имрӯз соати] LT', + nextDay: '[Пагоҳ соати] LT', + lastDay: '[Дирӯз соати] LT', + nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', + lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'баъди %s', + past: '%s пеш', + s: 'якчанд сония', + m: 'як дақиқа', + mm: '%d дақиқа', + h: 'як соат', + hh: '%d соат', + d: 'як рӯз', + dd: '%d рӯз', + M: 'як моҳ', + MM: '%d моҳ', + y: 'як сол', + yy: '%d сол', + }, + meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'шаб' === t + ? e < 4 + ? e + : e + 12 + : 'субҳ' === t + ? e + : 'рӯз' === t + ? e >= 11 + ? e + : e + 12 + : 'бегоҳ' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + return e < 4 + ? 'шаб' + : e < 11 + ? 'субҳ' + : e < 16 + ? 'рӯз' + : e < 19 + ? 'бегоҳ' + : 'шаб' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, + ordinal: function (e) { + var i = e % 10, + n = e >= 100 ? 100 : null + return e + (t[e] || t[i] || t[n]) + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('th', { + months: + 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( + '_' + ), + monthsShort: + 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), + weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), + weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY เวลา H:mm', + LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm', + }, + meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, + isPM: function (e) { + return 'หลังเที่ยง' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'ก่อนเที่ยง' : 'หลังเที่ยง' + }, + calendar: { + sameDay: '[วันนี้ เวลา] LT', + nextDay: '[พรุ่งนี้ เวลา] LT', + nextWeek: 'dddd[หน้า เวลา] LT', + lastDay: '[เมื่อวานนี้ เวลา] LT', + lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'อีก %s', + past: '%sที่แล้ว', + s: 'ไม่กี่วินาที', + ss: '%d วินาที', + m: '1 นาที', + mm: '%d นาที', + h: '1 ชั่วโมง', + hh: '%d ชั่วโมง', + d: '1 วัน', + dd: '%d วัน', + M: '1 เดือน', + MM: '%d เดือน', + y: '1 ปี', + yy: '%d ปี', + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('tl-ph', { + months: + 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( + '_' + ), + monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split( + '_' + ), + weekdays: + 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), + weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), + weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'MM/D/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY HH:mm', + LLLL: 'dddd, MMMM DD, YYYY HH:mm', + }, + calendar: { + sameDay: 'LT [ngayong araw]', + nextDay: '[Bukas ng] LT', + nextWeek: 'LT [sa susunod na] dddd', + lastDay: 'LT [kahapon]', + lastWeek: 'LT [noong nakaraang] dddd', + sameElse: 'L', + }, + relativeTime: { + future: 'sa loob ng %s', + past: '%s ang nakalipas', + s: 'ilang segundo', + ss: '%d segundo', + m: 'isang minuto', + mm: '%d minuto', + h: 'isang oras', + hh: '%d oras', + d: 'isang araw', + dd: '%d araw', + M: 'isang buwan', + MM: '%d buwan', + y: 'isang taon', + yy: '%d taon', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (e) { + return e + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e) { + var t = e + return (t = + -1 !== e.indexOf('jaj') + ? t.slice(0, -3) + 'leS' + : -1 !== e.indexOf('jar') + ? t.slice(0, -3) + 'waQ' + : -1 !== e.indexOf('DIS') + ? t.slice(0, -3) + 'nem' + : t + ' pIq') + } + function i(e) { + var t = e + return (t = + -1 !== e.indexOf('jaj') + ? t.slice(0, -3) + 'Hu’' + : -1 !== e.indexOf('jar') + ? t.slice(0, -3) + 'wen' + : -1 !== e.indexOf('DIS') + ? t.slice(0, -3) + 'ben' + : t + ' ret') + } + function n(e, t, i, n) { + var r = s(e) + switch (i) { + case 'ss': + return r + ' lup' + case 'mm': + return r + ' tup' + case 'hh': + return r + ' rep' + case 'dd': + return r + ' jaj' + case 'MM': + return r + ' jar' + case 'yy': + return r + ' DIS' + } + } + function s(e) { + var t = Math.floor((e % 1e3) / 100), + i = Math.floor((e % 100) / 10), + n = e % 10, + s = '' + return ( + t > 0 && (s += r[t] + 'vatlh'), + i > 0 && (s += ('' !== s ? ' ' : '') + r[i] + 'maH'), + n > 0 && (s += ('' !== s ? ' ' : '') + r[n]), + '' === s ? 'pagh' : s + ) + } + var r = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_') + return e.defineLocale('tlh', { + months: + 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( + '_' + ), + monthsShort: + 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), + weekdaysShort: + 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), + weekdaysMin: + 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[DaHjaj] LT', + nextDay: '[wa’leS] LT', + nextWeek: 'LLL', + lastDay: '[wa’Hu’] LT', + lastWeek: 'LLL', + sameElse: 'L', + }, + relativeTime: { + future: t, + past: i, + s: 'puS lup', + ss: n, + m: 'wa’ tup', + mm: n, + h: 'wa’ rep', + hh: n, + d: 'wa’ jaj', + dd: n, + M: 'wa’ jar', + MM: n, + y: 'wa’ DIS', + yy: n, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = { + 1: "'inci", + 5: "'inci", + 8: "'inci", + 70: "'inci", + 80: "'inci", + 2: "'nci", + 7: "'nci", + 20: "'nci", + 50: "'nci", + 3: "'üncü", + 4: "'üncü", + 100: "'üncü", + 6: "'ncı", + 9: "'uncu", + 10: "'uncu", + 30: "'uncu", + 60: "'ıncı", + 90: "'ıncı", + } + return e.defineLocale('tr', { + months: + 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( + '_' + ), + monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split( + '_' + ), + weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( + '_' + ), + weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), + weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[yarın saat] LT', + nextWeek: '[gelecek] dddd [saat] LT', + lastDay: '[dün] LT', + lastWeek: '[geçen] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s sonra', + past: '%s önce', + s: 'birkaç saniye', + ss: '%d saniye', + m: 'bir dakika', + mm: '%d dakika', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir yıl', + yy: '%d yıl', + }, + ordinal: function (e, i) { + switch (i) { + case 'd': + case 'D': + case 'Do': + case 'DD': + return e + default: + if (0 === e) return e + "'ıncı" + var n = e % 10, + s = (e % 100) - n, + r = e >= 100 ? 100 : null + return e + (t[n] || t[s] || t[r]) + } + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t, i, n) { + var s = { + s: ['viensas secunds', "'iensas secunds"], + ss: [e + ' secunds', e + ' secunds'], + m: ["'n míut", "'iens míut"], + mm: [e + ' míuts', e + ' míuts'], + h: ["'n þora", "'iensa þora"], + hh: [e + ' þoras', e + ' þoras'], + d: ["'n ziua", "'iensa ziua"], + dd: [e + ' ziuas', e + ' ziuas'], + M: ["'n mes", "'iens mes"], + MM: [e + ' mesen', e + ' mesen'], + y: ["'n ar", "'iens ar"], + yy: [e + ' ars', e + ' ars'], + } + return n ? s[i][0] : t ? s[i][0] : s[i][1] + } + return e.defineLocale('tzl', { + months: + 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split( + '_' + ), + weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split( + '_' + ), + weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), + weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM [dallas] YYYY', + LLL: 'D. MMMM [dallas] YYYY HH.mm', + LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', + }, + meridiemParse: /d\'o|d\'a/i, + isPM: function (e) { + return "d'o" === e.toLowerCase() + }, + meridiem: function (e, t, i) { + return e > 11 ? (i ? "d'o" : "D'O") : i ? "d'a" : "D'A" + }, + calendar: { + sameDay: '[oxhi à] LT', + nextDay: '[demà à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[ieiri à] LT', + lastWeek: '[sür el] dddd [lasteu à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'osprei %s', + past: 'ja%s', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('tzm-latn', { + months: + 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + monthsShort: + 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( + '_' + ), + weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[asdkh g] LT', + nextDay: '[aska g] LT', + nextWeek: 'dddd [g] LT', + lastDay: '[assant g] LT', + lastWeek: 'dddd [g] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dadkh s yan %s', + past: 'yan %s', + s: 'imik', + ss: '%d imik', + m: 'minuḍ', + mm: '%d minuḍ', + h: 'saɛa', + hh: '%d tassaɛin', + d: 'ass', + dd: '%d ossan', + M: 'ayowr', + MM: '%d iyyirn', + y: 'asgas', + yy: '%d isgasn', + }, + week: { dow: 6, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('tzm', { + months: + 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + monthsShort: + 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( + '_' + ), + weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', + nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', + nextWeek: 'dddd [ⴴ] LT', + lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', + lastWeek: 'dddd [ⴴ] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', + past: 'ⵢⴰⵏ %s', + s: 'ⵉⵎⵉⴽ', + ss: '%d ⵉⵎⵉⴽ', + m: 'ⵎⵉⵏⵓⴺ', + mm: '%d ⵎⵉⵏⵓⴺ', + h: 'ⵙⴰⵄⴰ', + hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', + d: 'ⴰⵙⵙ', + dd: '%d oⵙⵙⴰⵏ', + M: 'ⴰⵢoⵓⵔ', + MM: '%d ⵉⵢⵢⵉⵔⵏ', + y: 'ⴰⵙⴳⴰⵙ', + yy: '%d ⵉⵙⴳⴰⵙⵏ', + }, + week: { dow: 6, doy: 12 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('ug-cn', { + months: + 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + monthsShort: + 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + weekdays: + 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'), + weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', + LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', + LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', + }, + meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'يېرىم كېچە' === t || 'سەھەر' === t || 'چۈشتىن بۇرۇن' === t + ? e + : 'چۈشتىن كېيىن' === t || 'كەچ' === t + ? e + 12 + : e >= 11 + ? e + : e + 12 + ) + }, + meridiem: function (e, t, i) { + var n = 100 * e + t + return n < 600 + ? 'يېرىم كېچە' + : n < 900 + ? 'سەھەر' + : n < 1130 + ? 'چۈشتىن بۇرۇن' + : n < 1230 + ? 'چۈش' + : n < 1800 + ? 'چۈشتىن كېيىن' + : 'كەچ' + }, + calendar: { + sameDay: '[بۈگۈن سائەت] LT', + nextDay: '[ئەتە سائەت] LT', + nextWeek: '[كېلەركى] dddd [سائەت] LT', + lastDay: '[تۆنۈگۈن] LT', + lastWeek: '[ئالدىنقى] dddd [سائەت] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s كېيىن', + past: '%s بۇرۇن', + s: 'نەچچە سېكونت', + ss: '%d سېكونت', + m: 'بىر مىنۇت', + mm: '%d مىنۇت', + h: 'بىر سائەت', + hh: '%d سائەت', + d: 'بىر كۈن', + dd: '%d كۈن', + M: 'بىر ئاي', + MM: '%d ئاي', + y: 'بىر يىل', + yy: '%d يىل', + }, + dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '-كۈنى' + case 'w': + case 'W': + return e + '-ھەپتە' + default: + return e + } + }, + preparse: function (e) { + return e.replace(/،/g, ',') + }, + postformat: function (e) { + return e.replace(/,/g, '،') + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + function t(e, t) { + var i = e.split('_') + return t % 10 == 1 && t % 100 != 11 + ? i[0] + : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) + ? i[1] + : i[2] + } + function i(e, i, n) { + var s = { + ss: i ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', + mm: i ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', + hh: i ? 'година_години_годин' : 'годину_години_годин', + dd: 'день_дні_днів', + MM: 'місяць_місяці_місяців', + yy: 'рік_роки_років', + } + return 'm' === n + ? i + ? 'хвилина' + : 'хвилину' + : 'h' === n + ? i + ? 'година' + : 'годину' + : e + ' ' + t(s[n], +e) + } + function n(e, t) { + var i = { + nominative: + 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( + '_' + ), + accusative: + 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( + '_' + ), + genitive: + 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( + '_' + ), + } + return !0 === e + ? i.nominative.slice(1, 7).concat(i.nominative.slice(0, 1)) + : e + ? i[ + /(\[[ВвУу]\]) ?dddd/.test(t) + ? 'accusative' + : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(t) + ? 'genitive' + : 'nominative' + ][e.day()] + : i.nominative + } + function s(e) { + return function () { + return e + 'о' + (11 === this.hours() ? 'б' : '') + '] LT' + } + } + return e.defineLocale('uk', { + months: { + format: + 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( + '_' + ), + standalone: + 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( + '_' + ), + }, + monthsShort: + 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'), + weekdays: n, + weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY р.', + LLL: 'D MMMM YYYY р., HH:mm', + LLLL: 'dddd, D MMMM YYYY р., HH:mm', + }, + calendar: { + sameDay: s('[Сьогодні '), + nextDay: s('[Завтра '), + lastDay: s('[Вчора '), + nextWeek: s('[У] dddd ['), + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return s('[Минулої] dddd [').call(this) + case 1: + case 2: + case 4: + return s('[Минулого] dddd [').call(this) + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: '%s тому', + s: 'декілька секунд', + ss: i, + m: i, + mm: i, + h: 'годину', + hh: i, + d: 'день', + dd: i, + M: 'місяць', + MM: i, + y: 'рік', + yy: i, + }, + meridiemParse: /ночі|ранку|дня|вечора/, + isPM: function (e) { + return /^(дня|вечора)$/.test(e) + }, + meridiem: function (e, t, i) { + return e < 4 ? 'ночі' : e < 12 ? 'ранку' : e < 17 ? 'дня' : 'вечора' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, + ordinal: function (e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return e + '-й' + case 'D': + return e + '-го' + default: + return e + } + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + var t = [ + 'جنوری', + 'فروری', + 'مارچ', + 'اپریل', + 'مئی', + 'جون', + 'جولائی', + 'اگست', + 'ستمبر', + 'اکتوبر', + 'نومبر', + 'دسمبر', + ], + i = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'] + return e.defineLocale('ur', { + months: t, + monthsShort: t, + weekdays: i, + weekdaysShort: i, + weekdaysMin: i, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm', + }, + meridiemParse: /صبح|شام/, + isPM: function (e) { + return 'شام' === e + }, + meridiem: function (e, t, i) { + return e < 12 ? 'صبح' : 'شام' + }, + calendar: { + sameDay: '[آج بوقت] LT', + nextDay: '[کل بوقت] LT', + nextWeek: 'dddd [بوقت] LT', + lastDay: '[گذشتہ روز بوقت] LT', + lastWeek: '[گذشتہ] dddd [بوقت] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s بعد', + past: '%s قبل', + s: 'چند سیکنڈ', + ss: '%d سیکنڈ', + m: 'ایک منٹ', + mm: '%d منٹ', + h: 'ایک گھنٹہ', + hh: '%d گھنٹے', + d: 'ایک دن', + dd: '%d دن', + M: 'ایک ماہ', + MM: '%d ماہ', + y: 'ایک سال', + yy: '%d سال', + }, + preparse: function (e) { + return e.replace(/،/g, ',') + }, + postformat: function (e) { + return e.replace(/,/g, '،') + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('uz-latn', { + months: + 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( + '_' + ), + monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split( + '_' + ), + weekdays: + 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( + '_' + ), + weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), + weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm', + }, + calendar: { + sameDay: '[Bugun soat] LT [da]', + nextDay: '[Ertaga] LT [da]', + nextWeek: 'dddd [kuni soat] LT [da]', + lastDay: '[Kecha soat] LT [da]', + lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", + sameElse: 'L', + }, + relativeTime: { + future: 'Yaqin %s ichida', + past: 'Bir necha %s oldin', + s: 'soniya', + ss: '%d soniya', + m: 'bir daqiqa', + mm: '%d daqiqa', + h: 'bir soat', + hh: '%d soat', + d: 'bir kun', + dd: '%d kun', + M: 'bir oy', + MM: '%d oy', + y: 'bir yil', + yy: '%d yil', + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('uz', { + months: + 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split( + '_' + ), + weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), + weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm', + }, + calendar: { + sameDay: '[Бугун соат] LT [да]', + nextDay: '[Эртага] LT [да]', + nextWeek: 'dddd [куни соат] LT [да]', + lastDay: '[Кеча соат] LT [да]', + lastWeek: '[Утган] dddd [куни соат] LT [да]', + sameElse: 'L', + }, + relativeTime: { + future: 'Якин %s ичида', + past: 'Бир неча %s олдин', + s: 'фурсат', + ss: '%d фурсат', + m: 'бир дакика', + mm: '%d дакика', + h: 'бир соат', + hh: '%d соат', + d: 'бир кун', + dd: '%d кун', + M: 'бир ой', + MM: '%d ой', + y: 'бир йил', + yy: '%d йил', + }, + week: { dow: 1, doy: 7 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('vi', { + months: + 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( + '_' + ), + monthsShort: + 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'), + weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysParseExact: !0, + meridiemParse: /sa|ch/i, + isPM: function (e) { + return /^ch$/i.test(e) + }, + meridiem: function (e, t, i) { + return e < 12 ? (i ? 'sa' : 'SA') : i ? 'ch' : 'CH' + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [năm] YYYY', + LLL: 'D MMMM [năm] YYYY HH:mm', + LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', + l: 'DD/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Hôm nay lúc] LT', + nextDay: '[Ngày mai lúc] LT', + nextWeek: 'dddd [tuần tới lúc] LT', + lastDay: '[Hôm qua lúc] LT', + lastWeek: 'dddd [tuần rồi lúc] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s tới', + past: '%s trước', + s: 'vài giây', + ss: '%d giây', + m: 'một phút', + mm: '%d phút', + h: 'một giờ', + hh: '%d giờ', + d: 'một ngày', + dd: '%d ngày', + M: 'một tháng', + MM: '%d tháng', + y: 'một năm', + yy: '%d năm', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (e) { + return e + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('x-pseudo', { + months: + 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( + '_' + ), + monthsShort: + 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( + '_' + ), + monthsParseExact: !0, + weekdays: + 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( + '_' + ), + weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), + weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[T~ódá~ý át] LT', + nextDay: '[T~ómó~rró~w át] LT', + nextWeek: 'dddd [át] LT', + lastDay: '[Ý~ést~érdá~ý át] LT', + lastWeek: '[L~ást] dddd [át] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'í~ñ %s', + past: '%s á~gó', + s: 'á ~féw ~sécó~ñds', + ss: '%d s~écóñ~ds', + m: 'á ~míñ~úté', + mm: '%d m~íñú~tés', + h: 'á~ñ hó~úr', + hh: '%d h~óúrs', + d: 'á ~dáý', + dd: '%d d~áýs', + M: 'á ~móñ~th', + MM: '%d m~óñt~hs', + y: 'á ~ýéár', + yy: '%d ý~éárs', + }, + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (e) { + var t = e % 10 + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ) + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('yo', { + months: + 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( + '_' + ), + monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split( + '_' + ), + weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), + weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), + weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Ònì ni] LT', + nextDay: '[Ọ̀la ni] LT', + nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", + lastDay: '[Àna ni] LT', + lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ní %s', + past: '%s kọjá', + s: 'ìsẹjú aayá die', + ss: 'aayá %d', + m: 'ìsẹjú kan', + mm: 'ìsẹjú %d', + h: 'wákati kan', + hh: 'wákati %d', + d: 'ọjọ́ kan', + dd: 'ọjọ́ %d', + M: 'osù kan', + MM: 'osù %d', + y: 'ọdún kan', + yy: 'ọdún %d', + }, + dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, + ordinal: 'ọjọ́ %d', + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('zh-cn', { + months: + '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日Ah点mm分', + LLLL: 'YYYY年M月D日ddddAh点mm分', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '下午' === t || '晚上' === t + ? e + 12 + : e >= 11 + ? e + : e + 12 + ) + }, + meridiem: function (e, t, i) { + var n = 100 * e + t + return n < 600 + ? '凌晨' + : n < 900 + ? '早上' + : n < 1130 + ? '上午' + : n < 1230 + ? '中午' + : n < 1800 + ? '下午' + : '晚上' + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日' + case 'M': + return e + '月' + case 'w': + case 'W': + return e + '周' + default: + return e + } + }, + relativeTime: { + future: '%s内', + past: '%s前', + s: '几秒', + ss: '%d 秒', + m: '1 分钟', + mm: '%d 分钟', + h: '1 小时', + hh: '%d 小时', + d: '1 天', + dd: '%d 天', + M: '1 个月', + MM: '%d 个月', + y: '1 年', + yy: '%d 年', + }, + week: { dow: 1, doy: 4 }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('zh-hk', { + months: + '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '中午' === t + ? e >= 11 + ? e + : e + 12 + : '下午' === t || '晚上' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + var n = 100 * e + t + return n < 600 + ? '凌晨' + : n < 900 + ? '早上' + : n < 1130 + ? '上午' + : n < 1230 + ? '中午' + : n < 1800 + ? '下午' + : '晚上' + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日' + case 'M': + return e + '月' + case 'w': + case 'W': + return e + '週' + default: + return e + } + }, + relativeTime: { + future: '%s內', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年', + }, + }) + }) + }, + function (e, t, i) { + !(function (e, t) { + t(i(14)) + })(0, function (e) { + 'use strict' + return e.defineLocale('zh-tw', { + months: + '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '中午' === t + ? e >= 11 + ? e + : e + 12 + : '下午' === t || '晚上' === t + ? e + 12 + : void 0 + ) + }, + meridiem: function (e, t, i) { + var n = 100 * e + t + return n < 600 + ? '凌晨' + : n < 900 + ? '早上' + : n < 1130 + ? '上午' + : n < 1230 + ? '中午' + : n < 1800 + ? '下午' + : '晚上' + }, + calendar: { + sameDay: '[今天] LT', + nextDay: '[明天] LT', + nextWeek: '[下]dddd LT', + lastDay: '[昨天] LT', + lastWeek: '[上]dddd LT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日' + case 'M': + return e + '月' + case 'w': + case 'W': + return e + '週' + default: + return e + } + }, + relativeTime: { + future: '%s內', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年', + }, + }) + }) + }, + , + , + , + , + , + , + , + , + , + , + , + function (e, t, i) { + 'use strict' + Object.defineProperty(t, '__esModule', { value: !0 }) + var n = i(624), + s = (function (e) { + return e && e.__esModule ? e : { default: e } + })(n), + r = window, + a = r.$, + o = function (e) { + var t = a(e) + a.each(t, function (e, t) { + if (!t.checkValidity()) { + var i = t.value.split('@') + s.default.toASCII(i[0]) === i[0] && + (t.value = s.default.toASCII(t.value)) + } + }) + } + t.default = o + }, + function (e, t, i) { + 'use strict' + ;(function (e) { + Object.defineProperty(t, '__esModule', { value: !0 }) + /** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.md. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/OSL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ + var i = e.$, + n = function () { + i('input,select,textarea').on('invalid', function () { + this.scrollIntoView(!1) + }) + } + t.default = n + }).call(t, i(9)) + }, + function (e, t, i) { + 'use strict' + /** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.md. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/OSL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ + !(function (e) { + ;(e.fn.clickableDropdown = function () { + return ( + e(document).on( + 'click', + '.dropdown-clickable .dropdown-menu', + function (e) { + e.stopPropagation() + } + ), + this + ) + }), + e(function () { + e(document).clickableDropdown() + }) + })(window.$) + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t, i) { + 'use strict' + function n(e) { + return e && e.__esModule ? e : { default: e } + } + Object.defineProperty(t, '__esModule', { value: !0 }) + var s = i(0), + r = n(s), + a = i(1), + o = n(a), + l = i(467), + u = n(l), + d = window.$, + c = (function () { + function e() { + var t = this + ;(0, r.default)(this, e), + d(function () { + t.initQuickAccess(), + t.initMultiStores(), + t.initNotificationsToggle(), + t.initSearch(), + t.initContentDivOffset(), + (0, u.default)() + }) + } + return ( + (0, o.default)(e, [ + { + key: 'initQuickAccess', + value: function () { + d('.js-quick-link').on('click', function (e) { + e.preventDefault() + var t = d(e.target).data('method'), + i = null + if ('add' === t) { + var n = d(e.target).data('prompt-text'), + s = d(e.target).data('link') + i = prompt(n, s) + } + if (('add' === t && i) || 'remove' === t) { + var r = d(e.target).data('post-link'), + a = d(e.target).data('quicklink-id'), + o = d(e.target).data('rand'), + l = d(e.target).data('url'), + u = d(e.target).data('icon') + d.ajax({ + type: 'POST', + headers: { 'cache-control': 'no-cache' }, + async: !0, + url: + r + + '&action=GetUrl&rand=' + + o + + '&ajax=1&method=' + + t + + '&id_quick_access=' + + a, + data: { url: l, name: i, icon: u }, + dataType: 'json', + success: function (t) { + var i = '' + d.each(t, function (e) { + void 0 !== t[e].name && + (i += + '
  • ' + + t[e].name + + '
  • ') + }), + void 0 !== t.has_errors && t.has_errors + ? d.each(t, function (e) { + 'string' == typeof t[e] && + d.growl.error({ title: '', message: t[e] }) + }) + : i && + (d('#header_quick ul.dropdown-menu .divider') + .prevAll() + .remove(), + d('#header_quick ul.dropdown-menu').prepend(i), + d(e.target).remove(), + window.showSuccessMessage( + window.update_success_msg + )) + }, + }) + } + }) + }, + }, + { + key: 'initMultiStores', + value: function () { + d('.js-link').on('click', function (e) { + window.open( + d(e.target).parents('.link').attr('href'), + '_blank' + ) + }) + }, + }, + { + key: 'initNotificationsToggle', + value: function () { + var e = this + d('.notification.dropdown-toggle').on('click', function () { + d('.mobile-nav').hasClass('expanded') || + e.updateEmployeeNotifications() + }), + d('body').on('click', function (e) { + d('div.notification-center.dropdown').is(e.target) || + 0 !== + d('div.notification-center.dropdown').has(e.target) + .length || + 0 !== d('.open').has(e.target).length || + (d('div.notification-center.dropdown').hasClass('open') && + (d('.mobile-layer').removeClass('expanded'), + (0, u.default)())) + }), + d('.notification-center .nav-link').on( + 'shown.bs.tab', + function () { + e.updateEmployeeNotifications() + } + ) + }, + }, + { + key: 'initSearch', + value: function () { + d('.js-items-list').on('click', function (e) { + d('.js-form-search').attr( + 'placeholder', + d(e.target).data('placeholder') + ), + d('.js-search-type').val(d(e.target).data('value')), + d('.js-dropdown-toggle').text(d(e.target).data('item')) + }) + }, + }, + { + key: 'updateEmployeeNotifications', + value: function () { + d.post(admin_notification_push_link, { + type: d('.notification-center .nav-link.active').attr( + 'data-type' + ), + }) + }, + }, + { + key: 'initContentDivOffset', + value: function () { + var e = function () { + var e = d('.header-toolbar').last(), + t = d('.main-header'), + i = d('.content-div') + e.length && + t.length && + i.length && + i.css('padding-top', e.outerHeight() + t.outerHeight() + 15) + } + e(), d(window).resize(e), d(document).on('vueHeaderMounted', e) + }, + }, + ]), + e + ) + })() + t.default = c + }, + function (e, t, i) { + 'use strict' + var n = i(466), + s = (function (e) { + return e && e.__esModule ? e : { default: e } + })(n) + /** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.md. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/OSL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ + ;(0, window.$)(function () { + window.location.pathname.match('/configure/shop/maintenance\\b') && + s.default.init() + }) + }, + function (e, t, i) { + 'use strict' + function n(e) { + return e && e.__esModule ? e : { default: e } + } + Object.defineProperty(t, '__esModule', { value: !0 }) + var s = i(0), + r = n(s), + a = i(1), + o = n(a), + l = i(625), + u = n(l) + i(616) + /** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.md. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/OSL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ + var d = window.$, + c = (function () { + function e() { + var t = this + ;(0, r.default)(this, e), + d(function () { + var e = d('.nav-bar') + if (e.length > 0) { + var i = function () { + d('body').is('.page-sidebar-closed:not(.mobile)') && + d('body').on('click.mobile', function () { + d('ul.main-menu li.ul-open').length > 0 && + (d( + '.nav-bar li.link-levelone.has_submenu.ul-open' + ).removeClass('ul-open open -hover'), + d( + '.nav-bar li.link-levelone.has_submenu.ul-open ul.submenu' + ).removeAttr('style')) + }) + } + new u.default('.nav-bar-overflow'), + d('.nav-bar-overflow').on('scroll', function () { + var e = d('.main-menu .link-levelone.has_submenu.ul-open') + d(e).each(function (e, t) { + var i = d(t).position().top + d(t).find('ul.submenu').css('top', i) + }) + }), + e.find('.link-levelone').hover( + function () { + d(this).addClass('-hover') + }, + function () { + d(this).removeClass('-hover') + } + ), + d('.nav-bar li.link-levelone.has_submenu > a').on( + 'click', + function (e) { + e.preventDefault(), e.stopPropagation() + var t = d(this).parent() + d( + '.nav-bar li.link-levelone.has_submenu a > i.material-icons.sub-tabs-arrow' + ).text('keyboard_arrow_down') + var i = d(e.currentTarget).parent().hasClass('ul-open') + if ( + (d('body').is('.page-sidebar-closed:not(.mobile)') + ? (d( + '.nav-bar li.link-levelone.has_submenu.ul-open' + ).removeClass('ul-open open -hover'), + d( + '.nav-bar li.link-levelone.has_submenu.ul-open ul.submenu' + ).removeAttr('style')) + : d( + '.nav-bar li.link-levelone.has_submenu.ul-open ul.submenu' + ).slideUp({ + complete: function () { + d(this).parent().removeClass('ul-open open'), + d(this).removeAttr('style') + }, + }), + !i) + ) { + t.addClass('ul-open'), + d('body').is('.page-sidebar-closed:not(.mobile)') + ? (t.addClass('-hover'), + t.find('ul.submenu').removeAttr('style')) + : t.find('ul.submenu').slideDown({ + complete: function () { + t.addClass('open'), + d(this).removeAttr('style') + }, + }), + t + .find('i.material-icons.sub-tabs-arrow') + .text('keyboard_arrow_up') + var n = t.position().top + t.find('ul.submenu').css('top', n) + } + } + ), + e.on('click', '.menu-collapse', function () { + d('body').toggleClass('page-sidebar-closed'), + d('.popover.show').remove(), + d('.help-box[aria-describedby]').removeAttr( + 'aria-describedby' + ), + d('body').hasClass('page-sidebar-closed') + ? (d('nav.nav-bar ul.main-menu > li') + .removeClass('ul-open open') + .find('a > i.material-icons.sub-tabs-arrow') + .text('keyboard_arrow_down'), + i()) + : (d('nav.nav-bar ul.main-menu > li.-active') + .addClass('ul-open open') + .find('a > i.material-icons.sub-tabs-arrow') + .text('keyboard_arrow_up'), + d('body').off('click.mobile')), + d.post({ + url: d(this).data('toggle-url'), + cache: !1, + data: { + shouldCollapse: Number( + d('body').hasClass('page-sidebar-closed') + ), + }, + }) + }), + i() + d(window).width() <= 1023 && t.mobileNav(1023), + d(window).on('resize', function () { + d('body').hasClass('mobile') && d(window).width() > 1023 + ? t.unbuildMobileMenu() + : !d('body').hasClass('mobile') && + d(window).width() <= 1023 && + t.mobileNav(1023) + }) + } + }) + } + return ( + (0, o.default)(e, [ + { + key: 'mobileNav', + value: function () { + function e(t) { + if (!d('div.notification-center.dropdown').hasClass('open')) { + if (d('.mobile-nav').hasClass('expanded')) + return ( + d('.mobile-nav').animate( + { 'margin-left': '-100%' }, + { + complete: function () { + d('.nav-bar, .mobile-layer').removeClass( + 'expanded' + ), + d('.nav-bar, .mobile-layer').addClass('d-none') + }, + } + ), + void d('.mobile-layer').off() + ) + d('.nav-bar, .mobile-layer').addClass('expanded'), + d('.nav-bar, .mobile-layer').removeClass('d-none'), + d('.mobile-layer').on('click', e), + d('.mobile-nav').animate({ 'margin-left': 0 }) + } + } + var t = d('#header_logout') + .addClass('link') + .removeClass('m-t-1') + .prop('outerHTML'), + i = d('.employee_avatar').prop('outerHTML'), + n = d('.profile-link').attr('href'), + s = d('.main-menu') + d( + '.nav-bar li.link-levelone.has_submenu:not(.open) a > i.material-icons.sub-tabs-arrow' + ).text('keyboard_arrow_down'), + d('body').addClass('mobile'), + d('.nav-bar') + .addClass('mobile-nav') + .attr('style', 'margin-left: -100%;'), + d('.panel-collapse').addClass('collapse'), + d('.link-levelone a').each(function (e, t) { + var i = d(t).parent().find('.collapse').attr('id') + i && + d(t) + .attr('href', '#' + i) + .attr('data-toggle', 'collapse') + }), + s.append( + "' + ), + s.prepend("'), + d('.collapse').collapse({ toggle: !1 }), + s + .find( + '.employee_avatar .material-icons, .employee_avatar span' + ) + .wrap(""), + d('.js-mobile-menu').on('click', e), + d('.js-notifs_dropdown').css({ height: window.innerHeight }) + }, + }, + { + key: 'unbuildMobileMenu', + value: function () { + d('body').removeClass('mobile'), + d( + 'body.page-sidebar-closed .nav-bar .link-levelone.open' + ).removeClass('ul-open open'), + d('.main-menu li:first, .main-menu li:last').remove(), + d('.js-notifs_dropdown').removeAttr('style'), + d('.nav-bar') + .removeClass('mobile-nav expanded') + .addClass('d-none') + .css('margin-left', 0), + d('.js-mobile-menu').off(), + d('.panel-collapse') + .removeClass('collapse') + .addClass('submenu'), + d('.shop-list-title').remove(), + d('.js-non-responsive').hide(), + d('.mobile-layer').addClass('d-none').removeClass('expanded') + }, + }, + ]), + e + ) + })() + t.default = c + }, + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + function (e, t, i) { + 'use strict' + ;(function (e) { + function t(e) { + return e && e.__esModule ? e : { default: e } + } + var n = i(547), + s = t(n), + r = i(543), + a = t(r), + o = i(544), + l = t(o), + u = i(546), + d = t(u), + c = i(545), + h = t(c) + e(function () { + ;(0, s.default)(l.default) + var e = (0, h.default)() + ;(0, a.default)(e), (0, d.default)() + }) + }).call(t, i(41)) + }, + function (e, t, i) { + ;(function (t) { + e.exports = t.Bloodhound = i(641) + }).call(t, i(9)) + }, + function (e, t) {}, + function (e, t) {}, + function (e, t) {}, + function (e, t, i) { + ;(function (e, t) { + var i = !1 + ;(function () { + /*! + * bootstrap-tokenfield + * https://github.com/sliptree/bootstrap-tokenfield + * Copyright 2013-2014 Sliptree and other contributors; Licensed MIT + */ + !(function (e) { + 'function' == typeof i && i.amd ? i(['jquery'], e) : e(t) + })(function (e, t) { + 'use strict' + var i = function (i, n) { + var s = this + ;(this.$element = e(i)), + (this.textDirection = this.$element.css('direction')), + (this.options = e.extend( + !0, + {}, + e.fn.tokenfield.defaults, + { tokens: this.$element.val() }, + this.$element.data(), + n + )), + (this._delimiters = + 'string' == typeof this.options.delimiter + ? [this.options.delimiter] + : this.options.delimiter), + (this._triggerKeys = e.map(this._delimiters, function (e) { + return e.charCodeAt(0) + })), + (this._firstDelimiter = this._delimiters[0]) + var r = e.inArray(' ', this._delimiters), + a = e.inArray('-', this._delimiters) + r >= 0 && (this._delimiters[r] = '\\s'), + a >= 0 && + (delete this._delimiters[a], this._delimiters.unshift('-')) + var o = [ + '\\', + '$', + '[', + '{', + '^', + '.', + '|', + '?', + '*', + '+', + '(', + ')', + ] + e.each(this._delimiters, function (t, i) { + e.inArray(i, o) >= 0 && (s._delimiters[t] = '\\' + i) + }) + var l, + u = + t && 'function' == typeof t.getMatchedCSSRules + ? t.getMatchedCSSRules(i) + : null, + d = i.style.width, + c = this.$element.width() + u && + e.each(u, function (e, t) { + t.style.width && (l = t.style.width) + }) + var h = 'rtl' === e('body').css('direction') ? 'right' : 'left', + p = { position: this.$element.css('position') } + ;(p[h] = this.$element.css(h)), + this.$element + .data('original-styles', p) + .data('original-tabindex', this.$element.prop('tabindex')) + .css('position', 'absolute') + .css(h, '-10000px') + .prop('tabindex', -1), + (this.$wrapper = e('
    ')), + this.$element.hasClass('input-lg') && + this.$wrapper.addClass('input-lg'), + this.$element.hasClass('input-sm') && + this.$wrapper.addClass('input-sm'), + 'rtl' === this.textDirection && this.$wrapper.addClass('rtl') + var f = + this.$element.prop('id') || + new Date().getTime() + '' + Math.floor(100 * (1 + Math.random())) + this.$input = e( + '' + ) + .appendTo(this.$wrapper) + .prop('placeholder', this.$element.prop('placeholder')) + .prop('id', f + '-tokenfield') + .prop('tabindex', this.$element.data('original-tabindex')) + var m = e('label[for="' + this.$element.prop('id') + '"]') + if ( + (m.length && m.prop('for', this.$input.prop('id')), + (this.$copyHelper = e('') + .css('position', 'absolute') + .css(h, '-10000px') + .prop('tabindex', -1) + .prependTo(this.$wrapper)), + d + ? this.$wrapper.css('width', d) + : l + ? this.$wrapper.css('width', l) + : this.$element.parents('.form-inline').length && + this.$wrapper.width(c), + (this.$element.prop('disabled') || + this.$element.parents('fieldset[disabled]').length) && + this.disable(), + this.$element.prop('readonly') && this.readonly(), + (this.$mirror = e( + '' + )), + this.$input.css('min-width', this.options.minWidth + 'px'), + e.each( + [ + 'fontFamily', + 'fontSize', + 'fontWeight', + 'fontStyle', + 'letterSpacing', + 'textTransform', + 'wordSpacing', + 'textIndent', + ], + function (e, t) { + s.$mirror[0].style[t] = s.$input.css(t) + } + ), + this.$mirror.appendTo('body'), + this.$wrapper.insertBefore(this.$element), + this.$element.prependTo(this.$wrapper), + this.update(), + this.setTokens(this.options.tokens, !1, !1), + this.listen(), + !e.isEmptyObject(this.options.autocomplete)) + ) { + var _ = 'rtl' === this.textDirection ? 'right' : 'left', + g = e.extend( + { + minLength: this.options.showAutocompleteOnFocus ? 0 : null, + position: { + my: _ + ' top', + at: _ + ' bottom', + of: this.$wrapper, + }, + }, + this.options.autocomplete + ) + this.$input.autocomplete(g) + } + if (!e.isEmptyObject(this.options.typeahead)) { + var v = this.options.typeahead, + y = { + minLength: this.options.showAutocompleteOnFocus ? 0 : null, + }, + b = e.isArray(v) ? v : [v, v] + ;(b[0] = e.extend({}, y, b[0])), + this.$input.typeahead.apply(this.$input, b), + (this.typeahead = !0) + } + this.$element.trigger('tokenfield:initialize') + } + i.prototype = { + constructor: i, + createToken: function (t, i) { + var n = this + if ( + ('string' == typeof t && (t = { value: t, label: t }), + void 0 === i && (i = !0), + (t.value = e.trim(t.value)), + (t.label = + t.label && t.label.length ? e.trim(t.label) : t.value), + t.value.length && + t.label.length && + !(t.label.length <= this.options.minLength) && + !( + this.options.limit && + this.getTokens().length >= this.options.limit + )) + ) { + var s = e.Event('tokenfield:createtoken', { attrs: t }) + if ( + (this.$element.trigger(s), s.attrs && !s.isDefaultPrevented()) + ) { + var r = e('
    ') + .attr('data-value', t.value) + .append('') + .append( + '×' + ) + this.$input.hasClass('tt-input') + ? this.$input.parent().before(r) + : this.$input.before(r), + this.$input.css('width', this.options.minWidth + 'px') + var a = r.find('.token-label'), + o = r.find('.close') + return ( + this.maxTokenWidth || + ((this.maxTokenWidth = + this.$wrapper.width() - + o.outerWidth() - + parseInt(o.css('margin-left'), 10) - + parseInt(o.css('margin-right'), 10) - + parseInt(r.css('border-left-width'), 10) - + parseInt(r.css('border-right-width'), 10) - + parseInt(r.css('padding-left'), 10) - + parseInt(r.css('padding-right'), 10)), + parseInt(a.css('border-left-width'), 10), + parseInt(a.css('border-right-width'), 10), + parseInt(a.css('padding-left'), 10), + parseInt(a.css('padding-right'), 10), + parseInt(a.css('margin-left'), 10), + parseInt(a.css('margin-right'), 10)), + a.text(t.label).css('max-width', this.maxTokenWidth), + r + .on('mousedown', function (e) { + if (n._disabled || n._readonly) return !1 + n.preventDeactivation = !0 + }) + .on('click', function (e) { + return ( + !n._disabled && + !n._readonly && + ((n.preventDeactivation = !1), + e.ctrlKey || e.metaKey + ? (e.preventDefault(), n.toggle(r)) + : void n.activate(r, e.shiftKey, e.shiftKey)) + ) + }) + .on('dblclick', function (e) { + if ( + n._disabled || + n._readonly || + !n.options.allowEditing + ) + return !1 + n.edit(r) + }), + o.on('click', e.proxy(this.remove, this)), + this.$element.trigger( + e.Event('tokenfield:createdtoken', { + attrs: t, + relatedTarget: r.get(0), + }) + ), + i && + this.$element + .val(this.getTokensList()) + .trigger( + e.Event('change', { initiator: 'tokenfield' }) + ), + this.update(), + this.$element.get(0) + ) + } + } + }, + setTokens: function (t, i, n) { + if (t) { + i || this.$wrapper.find('.token').remove(), + void 0 === n && (n = !0), + 'string' == typeof t && + (t = this._delimiters.length + ? t.split( + new RegExp('[' + this._delimiters.join('') + ']') + ) + : [t]) + var s = this + return ( + e.each(t, function (e, t) { + s.createToken(t, n) + }), + this.$element.get(0) + ) + } + }, + getTokenData: function (t) { + var i = t + .map(function () { + var t = e(this) + return { + value: t.attr('data-value'), + label: t.find('.token-label').text(), + } + }) + .get() + return 1 == i.length && (i = i[0]), i + }, + getTokens: function (t) { + var i = this, + n = [], + s = t ? '.active' : '' + return ( + this.$wrapper.find('.token' + s).each(function () { + n.push(i.getTokenData(e(this))) + }), + n + ) + }, + getTokensList: function (t, i, n) { + ;(t = t || this._firstDelimiter), + (i = void 0 !== i && null !== i ? i : this.options.beautify) + var s = t + (i && ' ' !== t ? ' ' : '') + return e + .map(this.getTokens(n), function (e) { + return e.value + }) + .join(s) + }, + getInput: function () { + return this.$input.val() + }, + listen: function () { + var i = this + this.$element.on('change', e.proxy(this.change, this)), + this.$wrapper.on('mousedown', e.proxy(this.focusInput, this)), + this.$input + .on('focus', e.proxy(this.focus, this)) + .on('blur', e.proxy(this.blur, this)) + .on('paste', e.proxy(this.paste, this)) + .on('keydown', e.proxy(this.keydown, this)) + .on('keypress', e.proxy(this.keypress, this)) + .on('keyup', e.proxy(this.keyup, this)), + this.$copyHelper + .on('focus', e.proxy(this.focus, this)) + .on('blur', e.proxy(this.blur, this)) + .on('keydown', e.proxy(this.keydown, this)) + .on('keyup', e.proxy(this.keyup, this)), + this.$input + .on('keypress', e.proxy(this.update, this)) + .on('keyup', e.proxy(this.update, this)), + this.$input + .on('autocompletecreate', function () { + var t = e(this).data('ui-autocomplete').menu.element, + n = + i.$wrapper.outerWidth() - + parseInt(t.css('border-left-width'), 10) - + parseInt(t.css('border-right-width'), 10) + t.css('min-width', n + 'px') + }) + .on('autocompleteselect', function (e, t) { + return ( + i.createToken(t.item) && + (i.$input.val(''), + i.$input.data('edit') && i.unedit(!0)), + !1 + ) + }) + .on( + 'typeahead:selected typeahead:autocompleted', + function (e, t, n) { + i.createToken(t) && + (i.$input.typeahead('val', ''), + i.$input.data('edit') && i.unedit(!0)) + } + ), + e(t).on('resize', e.proxy(this.update, this)) + }, + keydown: function (t) { + function i(e) { + if (s.$input.is(document.activeElement)) { + if (s.$input.val().length > 0) return + e += 'All' + var i = s.$input.hasClass('tt-input') + ? s.$input.parent()[e]('.token:first') + : s.$input[e]('.token:first') + if (!i.length) return + ;(s.preventInputFocus = !0), + (s.preventDeactivation = !0), + s.activate(i), + t.preventDefault() + } else s[e](t.shiftKey), t.preventDefault() + } + function n(i) { + if (t.shiftKey) { + if (s.$input.is(document.activeElement)) { + if (s.$input.val().length > 0) return + var n = s.$input.hasClass('tt-input') + ? s.$input.parent()[i + 'All']('.token:first') + : s.$input[i + 'All']('.token:first') + if (!n.length) return + s.activate(n) + } + var r = 'prev' === i ? 'next' : 'prev', + a = 'prev' === i ? 'first' : 'last' + s.firstActiveToken[r + 'All']('.token').each(function () { + s.deactivate(e(this)) + }), + s.activate(s.$wrapper.find('.token:' + a), !0, !0), + t.preventDefault() + } + } + if (this.focused) { + var s = this + switch (t.keyCode) { + case 8: + if (!this.$input.is(document.activeElement)) break + this.lastInputValue = this.$input.val() + break + case 37: + i('rtl' === this.textDirection ? 'next' : 'prev') + break + case 38: + n('prev') + break + case 39: + i('rtl' === this.textDirection ? 'prev' : 'next') + break + case 40: + n('next') + break + case 65: + if ( + this.$input.val().length > 0 || + (!t.ctrlKey && !t.metaKey) + ) + break + this.activateAll(), t.preventDefault() + break + case 9: + case 13: + if ( + this.$input.data('ui-autocomplete') && + this.$input + .data('ui-autocomplete') + .menu.element.find('li:has(a.ui-state-focus)').length + ) + break + if ( + this.$input.hasClass('tt-input') && + this.$wrapper.find('.tt-cursor').length + ) + break + if ( + this.$input.hasClass('tt-input') && + this.$wrapper.find('.tt-hint').val().length + ) + break + if ( + (this.$input.is(document.activeElement) && + this.$input.val().length) || + this.$input.data('edit') + ) + return this.createTokensFromInput( + t, + this.$input.data('edit') + ) + if (13 === t.keyCode) { + if ( + !this.$copyHelper.is(document.activeElement) || + 1 !== this.$wrapper.find('.token.active').length + ) + break + if (!s.options.allowEditing) break + this.edit(this.$wrapper.find('.token.active')) + } + } + this.lastKeyDown = t.keyCode + } + }, + keypress: function (t) { + if ( + ((this.lastKeyPressCode = t.keyCode), + (this.lastKeyPressCharCode = t.charCode), + -1 !== e.inArray(t.charCode, this._triggerKeys) && + this.$input.is(document.activeElement)) + ) + return this.$input.val() && this.createTokensFromInput(t), !1 + }, + keyup: function (e) { + if (((this.preventInputFocus = !1), this.focused)) { + switch (e.keyCode) { + case 8: + if (this.$input.is(document.activeElement)) { + if ( + this.$input.val().length || + (this.lastInputValue.length && 8 === this.lastKeyDown) + ) + break + this.preventDeactivation = !0 + var t = this.$input.hasClass('tt-input') + ? this.$input.parent().prevAll('.token:first') + : this.$input.prevAll('.token:first') + if (!t.length) break + this.activate(t) + } else this.remove(e) + break + case 46: + this.remove(e, 'next') + } + this.lastKeyUp = e.keyCode + } + }, + focus: function (e) { + ;(this.focused = !0), + this.$wrapper.addClass('focus'), + this.$input.is(document.activeElement) && + (this.$wrapper.find('.active').removeClass('active'), + (this.$firstActiveToken = null), + this.options.showAutocompleteOnFocus && this.search()) + }, + blur: function (e) { + ;(this.focused = !1), + this.$wrapper.removeClass('focus'), + this.preventDeactivation || + this.$element.is(document.activeElement) || + (this.$wrapper.find('.active').removeClass('active'), + (this.$firstActiveToken = null)), + !this.preventCreateTokens && + ((this.$input.data('edit') && + !this.$input.is(document.activeElement)) || + this.options.createTokensOnBlur) && + this.createTokensFromInput(e), + (this.preventDeactivation = !1), + (this.preventCreateTokens = !1) + }, + paste: function (e) { + var t = this + setTimeout(function () { + t.createTokensFromInput(e) + }, 1) + }, + change: function (e) { + 'tokenfield' !== e.initiator && + this.setTokens(this.$element.val()) + }, + createTokensFromInput: function (e, t) { + if (!(this.$input.val().length < this.options.minLength)) { + var i = this.getTokensList() + return ( + this.setTokens(this.$input.val(), !0), + i == this.getTokensList() && this.$input.val().length + ? !1 + : (this.$input.hasClass('tt-input') + ? this.$input.typeahead('val', '') + : this.$input.val(''), + this.$input.data('edit') && this.unedit(t), + !1) + ) + } + }, + next: function (e) { + if (e) { + var t = this.$wrapper.find('.active:first') + if ( + !(!t || !this.$firstActiveToken) && + t.index() < this.$firstActiveToken.index() + ) + return this.deactivate(t) + } + var i = this.$wrapper.find('.active:last'), + n = i.nextAll('.token:first') + if (!n.length) return void this.$input.focus() + this.activate(n, e) + }, + prev: function (e) { + if (e) { + var t = this.$wrapper.find('.active:last') + if ( + !(!t || !this.$firstActiveToken) && + t.index() > this.$firstActiveToken.index() + ) + return this.deactivate(t) + } + var i = this.$wrapper.find('.active:first'), + n = i.prevAll('.token:first') + if ( + (n.length || (n = this.$wrapper.find('.token:first')), + !n.length && !e) + ) + return void this.$input.focus() + this.activate(n, e) + }, + activate: function (t, i, n, s) { + if (t) { + if (void 0 === s) var s = !0 + if (n) var i = !0 + if ( + (this.$copyHelper.focus(), + i || + (this.$wrapper.find('.active').removeClass('active'), + s + ? (this.$firstActiveToken = t) + : delete this.$firstActiveToken), + n && this.$firstActiveToken) + ) { + var r = this.$firstActiveToken.index() - 2, + a = t.index() - 2, + o = this + this.$wrapper + .find('.token') + .slice(Math.min(r, a) + 1, Math.max(r, a)) + .each(function () { + o.activate(e(this), !0) + }) + } + t.addClass('active'), + this.$copyHelper + .val(this.getTokensList(null, null, !0)) + .select() + } + }, + activateAll: function () { + var t = this + this.$wrapper.find('.token').each(function (i) { + t.activate(e(this), 0 !== i, !1, !1) + }) + }, + deactivate: function (e) { + e && + (e.removeClass('active'), + this.$copyHelper + .val(this.getTokensList(null, null, !0)) + .select()) + }, + toggle: function (e) { + e && + (e.toggleClass('active'), + this.$copyHelper + .val(this.getTokensList(null, null, !0)) + .select()) + }, + edit: function (t) { + if (t) { + var i = { + value: t.data('value'), + label: t.find('.token-label').text(), + }, + n = { attrs: i, relatedTarget: t.get(0) }, + s = e.Event('tokenfield:edittoken', n) + if ((this.$element.trigger(s), !s.isDefaultPrevented())) { + t.find('.token-label').text(i.value) + var r = t.outerWidth(), + a = this.$input.hasClass('tt-input') + ? this.$input.parent() + : this.$input + t.replaceWith(a), + (this.preventCreateTokens = !0), + this.$input.val(i.value).select().data('edit', !0).width(r), + this.update(), + this.$element.trigger(e.Event('tokenfield:editedtoken', n)) + } + } + }, + unedit: function (e) { + if ( + ((this.$input.hasClass('tt-input') + ? this.$input.parent() + : this.$input + ).appendTo(this.$wrapper), + this.$input.data('edit', !1), + this.$mirror.text(''), + this.update(), + e) + ) { + var t = this + setTimeout(function () { + t.$input.focus() + }, 1) + } + }, + remove: function (t, i) { + if ( + !( + this.$input.is(document.activeElement) || + this._disabled || + this._readonly + ) + ) { + var n = + 'click' === t.type + ? e(t.target).closest('.token') + : this.$wrapper.find('.token.active') + if ('click' !== t.type) { + if (!i) var i = 'prev' + if ((this[i](), 'prev' === i)) + var s = 0 === n.first().prevAll('.token:first').length + } + var r = { + attrs: this.getTokenData(n), + relatedTarget: n.get(0), + }, + a = e.Event('tokenfield:removetoken', r) + if ((this.$element.trigger(a), !a.isDefaultPrevented())) { + var o = e.Event('tokenfield:removedtoken', r), + l = e.Event('change', { initiator: 'tokenfield' }) + n.remove(), + this.$element + .val(this.getTokensList()) + .trigger(o) + .trigger(l), + (this.$wrapper.find('.token').length && + 'click' !== t.type && + !s) || + this.$input.focus(), + this.$input.css('width', this.options.minWidth + 'px'), + this.update(), + t.preventDefault(), + t.stopPropagation() + } + } + }, + update: function (e) { + var t = this.$input.val(), + i = parseInt(this.$input.css('padding-left'), 10), + n = parseInt(this.$input.css('padding-right'), 10), + s = i + n + if (this.$input.data('edit')) { + if ( + (t || (t = this.$input.prop('placeholder')), + t === this.$mirror.text()) + ) + return + this.$mirror.text(t) + var r = this.$mirror.width() + 10 + if (r > this.$wrapper.width()) + return this.$input.width(this.$wrapper.width()) + this.$input.width(r) + } else { + if ( + (this.$input.css('width', this.options.minWidth + 'px'), + 'rtl' === this.textDirection) + ) + return this.$input.width( + this.$input.offset().left + + this.$input.outerWidth() - + this.$wrapper.offset().left - + parseInt(this.$wrapper.css('padding-left'), 10) - + s - + 1 + ) + this.$input.width( + this.$wrapper.offset().left + + this.$wrapper.width() + + parseInt(this.$wrapper.css('padding-left'), 10) - + this.$input.offset().left - + s + ) + } + }, + focusInput: function (t) { + if ( + !( + e(t.target).closest('.token').length || + e(t.target).closest('.token-input').length || + e(t.target).closest('.tt-dropdown-menu').length + ) + ) { + var i = this + setTimeout(function () { + i.$input.focus() + }, 0) + } + }, + search: function () { + this.$input.data('ui-autocomplete') && + this.$input.autocomplete('search') + }, + disable: function () { + this.setProperty('disabled', !0) + }, + enable: function () { + this.setProperty('disabled', !1) + }, + readonly: function () { + this.setProperty('readonly', !0) + }, + writeable: function () { + this.setProperty('readonly', !1) + }, + setProperty: function (e, t) { + ;(this['_' + e] = t), + this.$input.prop(e, t), + this.$element.prop(e, t), + this.$wrapper[t ? 'addClass' : 'removeClass'](e) + }, + destroy: function () { + this.$element.val(this.getTokensList()), + this.$element.css(this.$element.data('original-styles')), + this.$element.prop( + 'tabindex', + this.$element.data('original-tabindex') + ) + var t = e('label[for="' + this.$input.prop('id') + '"]') + return ( + t.length && t.prop('for', this.$element.prop('id')), + this.$element.insertBefore(this.$wrapper), + this.$element + .removeData('original-styles') + .removeData('original-tabindex') + .removeData('bs.tokenfield'), + this.$wrapper.remove(), + this.$element + ) + }, + } + var n = e.fn.tokenfield + return ( + (e.fn.tokenfield = function (t, n) { + var s, + r = [] + Array.prototype.push.apply(r, arguments) + var a = this.each(function () { + var a = e(this), + o = a.data('bs.tokenfield'), + l = 'object' == typeof t && t + 'string' == typeof t && o && o[t] + ? (r.shift(), (s = o[t].apply(o, r))) + : o || + 'string' == typeof t || + n || + a.data('bs.tokenfield', (o = new i(this, l))) + }) + return void 0 !== s ? s : a + }), + (e.fn.tokenfield.defaults = { + minWidth: 60, + minLength: 0, + allowEditing: !0, + limit: 0, + autocomplete: {}, + typeahead: {}, + showAutocompleteOnFocus: !1, + createTokensOnBlur: !1, + delimiter: ',', + beautify: !0, + }), + (e.fn.tokenfield.Constructor = i), + (e.fn.tokenfield.noConflict = function () { + return (e.fn.tokenfield = n), this + }), + i + ) + }) + }).call(window) + }).call(t, i(9), i(41)) + }, + function (e, t, i) { + ;(function (e, t) { + var i = !1 + ;(function () { + /*! version : 4.17.47 ========================================================= bootstrap-datetimejs https://github.com/Eonasdan/bootstrap-datetimepicker Copyright (c) 2015 Jonathan Peterson ========================================================= */ -!function(n){"use strict";if("function"==typeof i&&i.amd)i(["jquery","moment"],n);else{if(void 0===e)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if(void 0===t)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";n(e,t)}}(function(e,t){"use strict";if(!t)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var i=function(i,n){var s,r,a,o,l,u,d,c={},h=!0,p=!1,f=!1,m=0,_=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],g=["days","months","years","decades"],v=["top","bottom","auto"],y=["left","right","auto"],b=["default","top","bottom"],w={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},M={},k=function(){return void 0!==t.tz&&void 0!==n.timeZone&&null!==n.timeZone&&""!==n.timeZone},L=function(e){var i;return i=void 0===e||null===e?t():t.isDate(e)||t.isMoment(e)?t(e):k()?t.tz(e,u,n.useStrict,n.timeZone):t(e,u,n.useStrict),k()&&i.tz(n.timeZone),i},D=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==l.indexOf("Y");case"M":return-1!==l.indexOf("M");case"d":return-1!==l.toLowerCase().indexOf("d");case"h":case"H":return-1!==l.toLowerCase().indexOf("h");case"m":return-1!==l.indexOf("m");case"s":return-1!==l.indexOf("s");default:return!1}},T=function(){return D("h")||D("m")||D("s")},Y=function(){return D("y")||D("M")||D("d")},x=function(){var t=e("").append(e("").append(e("").addClass("prev").attr("data-action","previous").append(e("").addClass(n.icons.previous))).append(e("").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",n.calendarWeeks?"6":"5")).append(e("").addClass("next").attr("data-action","next").append(e("").addClass(n.icons.next)))),i=e("").append(e("").append(e("").attr("colspan",n.calendarWeeks?"8":"7")));return[e("
    ").addClass("datepicker-days").append(e("").addClass("table-condensed").append(t).append(e(""))),e("
    ").addClass("datepicker-months").append(e("
    ").addClass("table-condensed").append(t.clone()).append(i.clone())),e("
    ").addClass("datepicker-years").append(e("
    ").addClass("table-condensed").append(t.clone()).append(i.clone())),e("
    ").addClass("datepicker-decades").append(e("
    ").addClass("table-condensed").append(t.clone()).append(i.clone()))]},C=function(){var t=e(""),i=e(""),s=e("");return D("h")&&(t.append(e("', b.document[0]) + .attr('colspan', a(this).attr('colspan') || 1) + .appendTo(e) + }) + : 'img' === d && e.attr('src', b.currentItem.attr('src')), + c || e.css('visibility', 'hidden'), + e + ) + }, + update: function (a, e) { + ;(c && !d.forcePlaceholderSize) || + (e.height() || + e.height( + b.currentItem.innerHeight() - + parseInt(b.currentItem.css('paddingTop') || 0, 10) - + parseInt(b.currentItem.css('paddingBottom') || 0, 10) + ), + e.width() || + e.width( + b.currentItem.innerWidth() - + parseInt(b.currentItem.css('paddingLeft') || 0, 10) - + parseInt(b.currentItem.css('paddingRight') || 0, 10) + )) + }, + })), + (b.placeholder = a( + d.placeholder.element.call(b.element, b.currentItem) + )), + b.currentItem.after(b.placeholder), + d.placeholder.update(b, b.placeholder) + }, + _contactContainers: function (b) { + var e, + f, + g, + h, + i, + j, + k, + l, + m, + n, + o = null, + p = null + for (e = this.containers.length - 1; e >= 0; e--) + if (!a.contains(this.currentItem[0], this.containers[e].element[0])) + if (this._intersectsWith(this.containers[e].containerCache)) { + if (o && a.contains(this.containers[e].element[0], o.element[0])) + continue + ;(o = this.containers[e]), (p = e) + } else + this.containers[e].containerCache.over && + (this.containers[e]._trigger('out', b, this._uiHash(this)), + (this.containers[e].containerCache.over = 0)) + if (o) + if (1 === this.containers.length) + this.containers[p].containerCache.over || + (this.containers[p]._trigger('over', b, this._uiHash(this)), + (this.containers[p].containerCache.over = 1)) + else { + for ( + g = 1e4, + h = null, + n = o.floating || d(this.currentItem), + i = n ? 'left' : 'top', + j = n ? 'width' : 'height', + k = this.positionAbs[i] + this.offset.click[i], + f = this.items.length - 1; + f >= 0; + f-- + ) + a.contains( + this.containers[p].element[0], + this.items[f].item[0] + ) && + this.items[f].item[0] !== this.currentItem[0] && + ((n && + !c( + this.positionAbs.top + this.offset.click.top, + this.items[f].top, + this.items[f].height + )) || + ((l = this.items[f].item.offset()[i]), + (m = !1), + Math.abs(l - k) > Math.abs(l + this.items[f][j] - k) && + ((m = !0), (l += this.items[f][j])), + Math.abs(l - k) < g && + ((g = Math.abs(l - k)), + (h = this.items[f]), + (this.direction = m ? 'up' : 'down')))) + if (!h && !this.options.dropOnEmpty) return + if (this.currentContainer === this.containers[p]) return + h + ? this._rearrange(b, h, null, !0) + : this._rearrange(b, null, this.containers[p].element, !0), + this._trigger('change', b, this._uiHash()), + this.containers[p]._trigger('change', b, this._uiHash(this)), + (this.currentContainer = this.containers[p]), + this.options.placeholder.update( + this.currentContainer, + this.placeholder + ), + this.containers[p]._trigger('over', b, this._uiHash(this)), + (this.containers[p].containerCache.over = 1) + } + }, + _createHelper: function (b) { + var c = this.options, + d = a.isFunction(c.helper) + ? a(c.helper.apply(this.element[0], [b, this.currentItem])) + : 'clone' === c.helper + ? this.currentItem.clone() + : this.currentItem + return ( + d.parents('body').length || + a( + 'parent' !== c.appendTo + ? c.appendTo + : this.currentItem[0].parentNode + )[0].appendChild(d[0]), + d[0] === this.currentItem[0] && + (this._storedCSS = { + width: this.currentItem[0].style.width, + height: this.currentItem[0].style.height, + position: this.currentItem.css('position'), + top: this.currentItem.css('top'), + left: this.currentItem.css('left'), + }), + (d[0].style.width && !c.forceHelperSize) || + d.width(this.currentItem.width()), + (d[0].style.height && !c.forceHelperSize) || + d.height(this.currentItem.height()), + d + ) + }, + _adjustOffsetFromHelper: function (b) { + 'string' == typeof b && (b = b.split(' ')), + a.isArray(b) && (b = { left: +b[0], top: +b[1] || 0 }), + 'left' in b && (this.offset.click.left = b.left + this.margins.left), + 'right' in b && + (this.offset.click.left = + this.helperProportions.width - b.right + this.margins.left), + 'top' in b && (this.offset.click.top = b.top + this.margins.top), + 'bottom' in b && + (this.offset.click.top = + this.helperProportions.height - b.bottom + this.margins.top) + }, + _getParentOffset: function () { + this.offsetParent = this.helper.offsetParent() + var b = this.offsetParent.offset() + return ( + 'absolute' === this.cssPosition && + this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0]) && + ((b.left += this.scrollParent.scrollLeft()), + (b.top += this.scrollParent.scrollTop())), + (this.offsetParent[0] === document.body || + (this.offsetParent[0].tagName && + 'html' === this.offsetParent[0].tagName.toLowerCase() && + a.ui.ie)) && + (b = { top: 0, left: 0 }), + { + top: + b.top + + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), + left: + b.left + + (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), + } + ) + }, + _getRelativeOffset: function () { + if ('relative' === this.cssPosition) { + var a = this.currentItem.position() + return { + top: + a.top - + (parseInt(this.helper.css('top'), 10) || 0) + + this.scrollParent.scrollTop(), + left: + a.left - + (parseInt(this.helper.css('left'), 10) || 0) + + this.scrollParent.scrollLeft(), + } + } + return { top: 0, left: 0 } + }, + _cacheMargins: function () { + this.margins = { + left: parseInt(this.currentItem.css('marginLeft'), 10) || 0, + top: parseInt(this.currentItem.css('marginTop'), 10) || 0, + } + }, + _cacheHelperProportions: function () { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight(), + } + }, + _setContainment: function () { + var b, + c, + d, + e = this.options + 'parent' === e.containment && + (e.containment = this.helper[0].parentNode), + ('document' !== e.containment && 'window' !== e.containment) || + (this.containment = [ + 0 - this.offset.relative.left - this.offset.parent.left, + 0 - this.offset.relative.top - this.offset.parent.top, + a('document' === e.containment ? document : window).width() - + this.helperProportions.width - + this.margins.left, + (a('document' === e.containment ? document : window).height() || + document.body.parentNode.scrollHeight) - + this.helperProportions.height - + this.margins.top, + ]), + /^(document|window|parent)$/.test(e.containment) || + ((b = a(e.containment)[0]), + (c = a(e.containment).offset()), + (d = 'hidden' !== a(b).css('overflow')), + (this.containment = [ + c.left + + (parseInt(a(b).css('borderLeftWidth'), 10) || 0) + + (parseInt(a(b).css('paddingLeft'), 10) || 0) - + this.margins.left, + c.top + + (parseInt(a(b).css('borderTopWidth'), 10) || 0) + + (parseInt(a(b).css('paddingTop'), 10) || 0) - + this.margins.top, + c.left + + (d ? Math.max(b.scrollWidth, b.offsetWidth) : b.offsetWidth) - + (parseInt(a(b).css('borderLeftWidth'), 10) || 0) - + (parseInt(a(b).css('paddingRight'), 10) || 0) - + this.helperProportions.width - + this.margins.left, + c.top + + (d + ? Math.max(b.scrollHeight, b.offsetHeight) + : b.offsetHeight) - + (parseInt(a(b).css('borderTopWidth'), 10) || 0) - + (parseInt(a(b).css('paddingBottom'), 10) || 0) - + this.helperProportions.height - + this.margins.top, + ])) + }, + _convertPositionTo: function (b, c) { + c || (c = this.position) + var d = 'absolute' === b ? 1 : -1, + e = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent, + f = /(html|body)/i.test(e[0].tagName) + return { + top: + c.top + + this.offset.relative.top * d + + this.offset.parent.top * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : f + ? 0 + : e.scrollTop()) * + d, + left: + c.left + + this.offset.relative.left * d + + this.offset.parent.left * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : f + ? 0 + : e.scrollLeft()) * + d, + } + }, + _generatePosition: function (b) { + var c, + d, + e = this.options, + f = b.pageX, + g = b.pageY, + h = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent, + i = /(html|body)/i.test(h[0].tagName) + return ( + 'relative' !== this.cssPosition || + (this.scrollParent[0] !== document && + this.scrollParent[0] !== this.offsetParent[0]) || + (this.offset.relative = this._getRelativeOffset()), + this.originalPosition && + (this.containment && + (b.pageX - this.offset.click.left < this.containment[0] && + (f = this.containment[0] + this.offset.click.left), + b.pageY - this.offset.click.top < this.containment[1] && + (g = this.containment[1] + this.offset.click.top), + b.pageX - this.offset.click.left > this.containment[2] && + (f = this.containment[2] + this.offset.click.left), + b.pageY - this.offset.click.top > this.containment[3] && + (g = this.containment[3] + this.offset.click.top)), + e.grid && + ((c = + this.originalPageY + + Math.round((g - this.originalPageY) / e.grid[1]) * e.grid[1]), + (g = this.containment + ? c - this.offset.click.top >= this.containment[1] && + c - this.offset.click.top <= this.containment[3] + ? c + : c - this.offset.click.top >= this.containment[1] + ? c - e.grid[1] + : c + e.grid[1] + : c), + (d = + this.originalPageX + + Math.round((f - this.originalPageX) / e.grid[0]) * e.grid[0]), + (f = this.containment + ? d - this.offset.click.left >= this.containment[0] && + d - this.offset.click.left <= this.containment[2] + ? d + : d - this.offset.click.left >= this.containment[0] + ? d - e.grid[0] + : d + e.grid[0] + : d))), + { + top: + g - + this.offset.click.top - + this.offset.relative.top - + this.offset.parent.top + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : i + ? 0 + : h.scrollTop()), + left: + f - + this.offset.click.left - + this.offset.relative.left - + this.offset.parent.left + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : i + ? 0 + : h.scrollLeft()), + } + ) + }, + _rearrange: function (a, b, c, d) { + c + ? c[0].appendChild(this.placeholder[0]) + : b.item[0].parentNode.insertBefore( + this.placeholder[0], + 'down' === this.direction ? b.item[0] : b.item[0].nextSibling + ), + (this.counter = this.counter ? ++this.counter : 1) + var e = this.counter + this._delay(function () { + e === this.counter && this.refreshPositions(!d) + }) + }, + _clear: function (a, b) { + this.reverting = !1 + var c, + d = [] + if ( + (!this._noFinalSort && + this.currentItem.parent().length && + this.placeholder.before(this.currentItem), + (this._noFinalSort = null), + this.helper[0] === this.currentItem[0]) + ) { + for (c in this._storedCSS) + ('auto' !== this._storedCSS[c] && + 'static' !== this._storedCSS[c]) || + (this._storedCSS[c] = '') + this.currentItem + .css(this._storedCSS) + .removeClass('ui-sortable-helper') + } else this.currentItem.show() + for ( + this.fromOutside && + !b && + d.push(function (a) { + this._trigger('receive', a, this._uiHash(this.fromOutside)) + }), + (!this.fromOutside && + this.domPosition.prev === + this.currentItem.prev().not('.ui-sortable-helper')[0] && + this.domPosition.parent === this.currentItem.parent()[0]) || + b || + d.push(function (a) { + this._trigger('update', a, this._uiHash()) + }), + this !== this.currentContainer && + (b || + (d.push(function (a) { + this._trigger('remove', a, this._uiHash()) + }), + d.push( + function (a) { + return function (b) { + a._trigger('receive', b, this._uiHash(this)) + } + }.call(this, this.currentContainer) + ), + d.push( + function (a) { + return function (b) { + a._trigger('update', b, this._uiHash(this)) + } + }.call(this, this.currentContainer) + ))), + c = this.containers.length - 1; + c >= 0; + c-- + ) + b || + d.push( + function (a) { + return function (b) { + a._trigger('deactivate', b, this._uiHash(this)) + } + }.call(this, this.containers[c]) + ), + this.containers[c].containerCache.over && + (d.push( + function (a) { + return function (b) { + a._trigger('out', b, this._uiHash(this)) + } + }.call(this, this.containers[c]) + ), + (this.containers[c].containerCache.over = 0)) + if ( + (this.storedCursor && + (this.document.find('body').css('cursor', this.storedCursor), + this.storedStylesheet.remove()), + this._storedOpacity && + this.helper.css('opacity', this._storedOpacity), + this._storedZIndex && + this.helper.css( + 'zIndex', + 'auto' === this._storedZIndex ? '' : this._storedZIndex + ), + (this.dragging = !1), + this.cancelHelperRemoval) + ) { + if (!b) { + for ( + this._trigger('beforeStop', a, this._uiHash()), c = 0; + c < d.length; + c++ + ) + d[c].call(this, a) + this._trigger('stop', a, this._uiHash()) + } + return (this.fromOutside = !1), !1 + } + if ( + (b || this._trigger('beforeStop', a, this._uiHash()), + this.placeholder[0].parentNode.removeChild(this.placeholder[0]), + this.helper[0] !== this.currentItem[0] && this.helper.remove(), + (this.helper = null), + !b) + ) { + for (c = 0; c < d.length; c++) d[c].call(this, a) + this._trigger('stop', a, this._uiHash()) + } + return (this.fromOutside = !1), !0 + }, + _trigger: function () { + a.Widget.prototype._trigger.apply(this, arguments) === !1 && + this.cancel() + }, + _uiHash: function (b) { + var c = b || this + return { + helper: c.helper, + placeholder: c.placeholder || a([]), + position: c.position, + originalPosition: c.originalPosition, + offset: c.positionAbs, + item: c.currentItem, + sender: b ? b.element : null, + } + }, + }) + })(jQuery), + (function (a, b) { + var c = 'ui-effects-' + ;(a.effects = { effect: {} }), + (function (a, b) { + function m(a, b, c) { + var d = h[b.type] || {} + return null == a + ? c || !b.def + ? null + : b.def + : ((a = d.floor ? ~~a : parseFloat(a)), + isNaN(a) + ? b.def + : d.mod + ? (a + d.mod) % d.mod + : 0 > a + ? 0 + : d.max < a + ? d.max + : a) + } + function n(b) { + var c = f(), + d = (c._rgba = []) + return ( + (b = b.toLowerCase()), + l(e, function (a, e) { + var f, + h = e.re.exec(b), + i = h && e.parse(h), + j = e.space || 'rgba' + if (i) + return ( + (f = c[j](i)), + (c[g[j].cache] = f[g[j].cache]), + (d = c._rgba = f._rgba), + !1 + ) + }), + d.length + ? ('0,0,0,0' === d.join() && a.extend(d, k.transparent), c) + : k[b] + ) + } + function o(a, b, c) { + return ( + (c = (c + 1) % 1), + 6 * c < 1 + ? a + (b - a) * c * 6 + : 2 * c < 1 + ? b + : 3 * c < 2 + ? a + (b - a) * (2 / 3 - c) * 6 + : a + ) + } + var k, + c = + 'backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor', + d = /^([\-+])=\s*(\d+\.?\d*)/, + e = [ + { + re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function (a) { + return [a[1], a[2], a[3], a[4]] + }, + }, + { + re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function (a) { + return [2.55 * a[1], 2.55 * a[2], 2.55 * a[3], a[4]] + }, + }, + { + re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, + parse: function (a) { + return [ + parseInt(a[1], 16), + parseInt(a[2], 16), + parseInt(a[3], 16), + ] + }, + }, + { + re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, + parse: function (a) { + return [ + parseInt(a[1] + a[1], 16), + parseInt(a[2] + a[2], 16), + parseInt(a[3] + a[3], 16), + ] + }, + }, + { + re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + space: 'hsla', + parse: function (a) { + return [a[1], a[2] / 100, a[3] / 100, a[4]] + }, + }, + ], + f = (a.Color = function (b, c, d, e) { + return new a.Color.fn.parse(b, c, d, e) + }), + g = { + rgba: { + props: { + red: { idx: 0, type: 'byte' }, + green: { idx: 1, type: 'byte' }, + blue: { idx: 2, type: 'byte' }, + }, + }, + hsla: { + props: { + hue: { idx: 0, type: 'degrees' }, + saturation: { idx: 1, type: 'percent' }, + lightness: { idx: 2, type: 'percent' }, + }, + }, + }, + h = { + byte: { floor: !0, max: 255 }, + percent: { max: 1 }, + degrees: { mod: 360, floor: !0 }, + }, + i = (f.support = {}), + j = a('

    ')[0], + l = a.each + ;(j.style.cssText = 'background-color:rgba(1,1,1,.5)'), + (i.rgba = j.style.backgroundColor.indexOf('rgba') > -1), + l(g, function (a, b) { + ;(b.cache = '_' + a), + (b.props.alpha = { idx: 3, type: 'percent', def: 1 }) + }), + (f.fn = a.extend(f.prototype, { + parse: function (c, d, e, h) { + if (c === b) return (this._rgba = [null, null, null, null]), this + ;(c.jquery || c.nodeType) && ((c = a(c).css(d)), (d = b)) + var i = this, + j = a.type(c), + o = (this._rgba = []) + return ( + d !== b && ((c = [c, d, e, h]), (j = 'array')), + 'string' === j + ? this.parse(n(c) || k._default) + : 'array' === j + ? (l(g.rgba.props, function (a, b) { + o[b.idx] = m(c[b.idx], b) + }), + this) + : 'object' === j + ? (c instanceof f + ? l(g, function (a, b) { + c[b.cache] && (i[b.cache] = c[b.cache].slice()) + }) + : l(g, function (b, d) { + var e = d.cache + l(d.props, function (a, b) { + if (!i[e] && d.to) { + if ('alpha' === a || null == c[a]) return + i[e] = d.to(i._rgba) + } + i[e][b.idx] = m(c[a], b, !0) + }), + i[e] && + a.inArray(null, i[e].slice(0, 3)) < 0 && + ((i[e][3] = 1), + d.from && (i._rgba = d.from(i[e]))) + }), + this) + : void 0 + ) + }, + is: function (a) { + var b = f(a), + c = !0, + d = this + return ( + l(g, function (a, e) { + var f, + g = b[e.cache] + return ( + g && + ((f = d[e.cache] || (e.to && e.to(d._rgba)) || []), + l(e.props, function (a, b) { + if (null != g[b.idx]) return (c = g[b.idx] === f[b.idx]) + })), + c + ) + }), + c + ) + }, + _space: function () { + var a = [], + b = this + return ( + l(g, function (c, d) { + b[d.cache] && a.push(c) + }), + a.pop() + ) + }, + transition: function (a, b) { + var c = f(a), + d = c._space(), + e = g[d], + i = 0 === this.alpha() ? f('transparent') : this, + j = i[e.cache] || e.to(i._rgba), + k = j.slice() + return ( + (c = c[e.cache]), + l(e.props, function (a, d) { + var e = d.idx, + f = j[e], + g = c[e], + i = h[d.type] || {} + null !== g && + (null === f + ? (k[e] = g) + : (i.mod && + (g - f > i.mod / 2 + ? (f += i.mod) + : f - g > i.mod / 2 && (f -= i.mod)), + (k[e] = m((g - f) * b + f, d)))) + }), + this[d](k) + ) + }, + blend: function (b) { + if (1 === this._rgba[3]) return this + var c = this._rgba.slice(), + d = c.pop(), + e = f(b)._rgba + return f( + a.map(c, function (a, b) { + return (1 - d) * e[b] + d * a + }) + ) + }, + toRgbaString: function () { + var b = 'rgba(', + c = a.map(this._rgba, function (a, b) { + return null == a ? (b > 2 ? 1 : 0) : a + }) + return 1 === c[3] && (c.pop(), (b = 'rgb(')), b + c.join() + ')' + }, + toHslaString: function () { + var b = 'hsla(', + c = a.map(this.hsla(), function (a, b) { + return ( + null == a && (a = b > 2 ? 1 : 0), + b && b < 3 && (a = Math.round(100 * a) + '%'), + a + ) + }) + return 1 === c[3] && (c.pop(), (b = 'hsl(')), b + c.join() + ')' + }, + toHexString: function (b) { + var c = this._rgba.slice(), + d = c.pop() + return ( + b && c.push(~~(255 * d)), + '#' + + a + .map(c, function (a) { + return ( + (a = (a || 0).toString(16)), + 1 === a.length ? '0' + a : a + ) + }) + .join('') + ) + }, + toString: function () { + return 0 === this._rgba[3] ? 'transparent' : this.toRgbaString() + }, + })), + (f.fn.parse.prototype = f.fn), + (g.hsla.to = function (a) { + if (null == a[0] || null == a[1] || null == a[2]) + return [null, null, null, a[3]] + var k, + l, + b = a[0] / 255, + c = a[1] / 255, + d = a[2] / 255, + e = a[3], + f = Math.max(b, c, d), + g = Math.min(b, c, d), + h = f - g, + i = f + g, + j = 0.5 * i + return ( + (k = + g === f + ? 0 + : b === f + ? (60 * (c - d)) / h + 360 + : c === f + ? (60 * (d - b)) / h + 120 + : (60 * (b - c)) / h + 240), + (l = 0 === h ? 0 : j <= 0.5 ? h / i : h / (2 - i)), + [Math.round(k) % 360, l, j, null == e ? 1 : e] + ) + }), + (g.hsla.from = function (a) { + if (null == a[0] || null == a[1] || null == a[2]) + return [null, null, null, a[3]] + var b = a[0] / 360, + c = a[1], + d = a[2], + e = a[3], + f = d <= 0.5 ? d * (1 + c) : d + c - d * c, + g = 2 * d - f + return [ + Math.round(255 * o(g, f, b + 1 / 3)), + Math.round(255 * o(g, f, b)), + Math.round(255 * o(g, f, b - 1 / 3)), + e, + ] + }), + l(g, function (c, e) { + var g = e.props, + h = e.cache, + i = e.to, + j = e.from + ;(f.fn[c] = function (c) { + if ((i && !this[h] && (this[h] = i(this._rgba)), c === b)) + return this[h].slice() + var d, + e = a.type(c), + k = 'array' === e || 'object' === e ? c : arguments, + n = this[h].slice() + return ( + l(g, function (a, b) { + var c = k['object' === e ? a : b.idx] + null == c && (c = n[b.idx]), (n[b.idx] = m(c, b)) + }), + j ? ((d = f(j(n))), (d[h] = n), d) : f(n) + ) + }), + l(g, function (b, e) { + f.fn[b] || + (f.fn[b] = function (f) { + var k, + g = a.type(f), + h = 'alpha' === b ? (this._hsla ? 'hsla' : 'rgba') : c, + i = this[h](), + j = i[e.idx] + return 'undefined' === g + ? j + : ('function' === g && + ((f = f.call(this, j)), (g = a.type(f))), + null == f && e.empty + ? this + : ('string' === g && + ((k = d.exec(f)), + k && + (f = + j + + parseFloat(k[2]) * ('+' === k[1] ? 1 : -1))), + (i[e.idx] = f), + this[h](i))) + }) + }) + }), + (f.hook = function (b) { + var c = b.split(' ') + l(c, function (b, c) { + ;(a.cssHooks[c] = { + set: function (b, d) { + var e, + g, + h = '' + if ( + 'transparent' !== d && + ('string' !== a.type(d) || (e = n(d))) + ) { + if (((d = f(e || d)), !i.rgba && 1 !== d._rgba[3])) { + for ( + g = 'backgroundColor' === c ? b.parentNode : b; + ('' === h || 'transparent' === h) && g && g.style; + + ) + try { + ;(h = a.css(g, 'backgroundColor')), (g = g.parentNode) + } catch (a) {} + d = d.blend(h && 'transparent' !== h ? h : '_default') + } + d = d.toRgbaString() + } + try { + b.style[c] = d + } catch (a) {} + }, + }), + (a.fx.step[c] = function (b) { + b.colorInit || + ((b.start = f(b.elem, c)), + (b.end = f(b.end)), + (b.colorInit = !0)), + a.cssHooks[c].set(b.elem, b.start.transition(b.end, b.pos)) + }) + }) + }), + f.hook(c), + (a.cssHooks.borderColor = { + expand: function (a) { + var b = {} + return ( + l(['Top', 'Right', 'Bottom', 'Left'], function (c, d) { + b['border' + d + 'Color'] = a + }), + b + ) + }, + }), + (k = a.Color.names = + { + aqua: '#00ffff', + black: '#000000', + blue: '#0000ff', + fuchsia: '#ff00ff', + gray: '#808080', + green: '#008000', + lime: '#00ff00', + maroon: '#800000', + navy: '#000080', + olive: '#808000', + purple: '#800080', + red: '#ff0000', + silver: '#c0c0c0', + teal: '#008080', + white: '#ffffff', + yellow: '#ffff00', + transparent: [null, null, null, 0], + _default: '#ffffff', + }) + })(jQuery), + (function () { + function e(b) { + var c, + d, + e = b.ownerDocument.defaultView + ? b.ownerDocument.defaultView.getComputedStyle(b, null) + : b.currentStyle, + f = {} + if (e && e.length && e[0] && e[e[0]]) + for (d = e.length; d--; ) + (c = e[d]), 'string' == typeof e[c] && (f[a.camelCase(c)] = e[c]) + else for (c in e) 'string' == typeof e[c] && (f[c] = e[c]) + return f + } + function f(b, c) { + var f, + g, + e = {} + for (f in c) + (g = c[f]), + b[f] !== g && + (d[f] || (!a.fx.step[f] && isNaN(parseFloat(g))) || (e[f] = g)) + return e + } + var c = ['add', 'remove', 'toggle'], + d = { + border: 1, + borderBottom: 1, + borderColor: 1, + borderLeft: 1, + borderRight: 1, + borderTop: 1, + borderWidth: 1, + margin: 1, + padding: 1, + } + a.each( + [ + 'borderLeftStyle', + 'borderRightStyle', + 'borderBottomStyle', + 'borderTopStyle', + ], + function (b, c) { + a.fx.step[c] = function (a) { + ;(('none' !== a.end && !a.setAttr) || + (1 === a.pos && !a.setAttr)) && + (jQuery.style(a.elem, c, a.end), (a.setAttr = !0)) + } + } + ), + a.fn.addBack || + (a.fn.addBack = function (a) { + return this.add( + null == a ? this.prevObject : this.prevObject.filter(a) + ) + }), + (a.effects.animateClass = function (b, d, g, h) { + var i = a.speed(d, g, h) + return this.queue(function () { + var h, + d = a(this), + g = d.attr('class') || '', + j = i.children ? d.find('*').addBack() : d + ;(j = j.map(function () { + var b = a(this) + return { el: b, start: e(this) } + })), + (h = function () { + a.each(c, function (a, c) { + b[c] && d[c + 'Class'](b[c]) + }) + }), + h(), + (j = j.map(function () { + return ( + (this.end = e(this.el[0])), + (this.diff = f(this.start, this.end)), + this + ) + })), + d.attr('class', g), + (j = j.map(function () { + var b = this, + c = a.Deferred(), + d = a.extend({}, i, { + queue: !1, + complete: function () { + c.resolve(b) + }, + }) + return this.el.animate(this.diff, d), c.promise() + })), + a.when.apply(a, j.get()).done(function () { + h(), + a.each(arguments, function () { + var b = this.el + a.each(this.diff, function (a) { + b.css(a, '') + }) + }), + i.complete.call(d[0]) + }) + }) + }), + a.fn.extend({ + addClass: (function (b) { + return function (c, d, e, f) { + return d + ? a.effects.animateClass.call(this, { add: c }, d, e, f) + : b.apply(this, arguments) + } + })(a.fn.addClass), + removeClass: (function (b) { + return function (c, d, e, f) { + return arguments.length > 1 + ? a.effects.animateClass.call(this, { remove: c }, d, e, f) + : b.apply(this, arguments) + } + })(a.fn.removeClass), + toggleClass: (function (c) { + return function (d, e, f, g, h) { + return 'boolean' == typeof e || e === b + ? f + ? a.effects.animateClass.call( + this, + e ? { add: d } : { remove: d }, + f, + g, + h + ) + : c.apply(this, arguments) + : a.effects.animateClass.call(this, { toggle: d }, e, f, g) + } + })(a.fn.toggleClass), + switchClass: function (b, c, d, e, f) { + return a.effects.animateClass.call( + this, + { add: c, remove: b }, + d, + e, + f + ) + }, + }) + })(), + (function () { + function d(b, c, d, e) { + return ( + a.isPlainObject(b) && ((c = b), (b = b.effect)), + (b = { effect: b }), + null == c && (c = {}), + a.isFunction(c) && ((e = c), (d = null), (c = {})), + ('number' == typeof c || a.fx.speeds[c]) && + ((e = d), (d = c), (c = {})), + a.isFunction(d) && ((e = d), (d = null)), + c && a.extend(b, c), + (d = d || c.duration), + (b.duration = a.fx.off + ? 0 + : 'number' == typeof d + ? d + : d in a.fx.speeds + ? a.fx.speeds[d] + : a.fx.speeds._default), + (b.complete = e || c.complete), + b + ) + } + function e(b) { + return ( + !(b && 'number' != typeof b && !a.fx.speeds[b]) || + ('string' == typeof b && !a.effects.effect[b]) || + !!a.isFunction(b) || + ('object' == typeof b && !b.effect) + ) + } + a.extend(a.effects, { + version: '1.10.3', + save: function (a, b) { + for (var d = 0; d < b.length; d++) + null !== b[d] && a.data(c + b[d], a[0].style[b[d]]) + }, + restore: function (a, d) { + var e, f + for (f = 0; f < d.length; f++) + null !== d[f] && + ((e = a.data(c + d[f])), e === b && (e = ''), a.css(d[f], e)) + }, + setMode: function (a, b) { + return 'toggle' === b && (b = a.is(':hidden') ? 'show' : 'hide'), b + }, + getBaseline: function (a, b) { + var c, d + switch (a[0]) { + case 'top': + c = 0 + break + case 'middle': + c = 0.5 + break + case 'bottom': + c = 1 + break + default: + c = a[0] / b.height + } + switch (a[1]) { + case 'left': + d = 0 + break + case 'center': + d = 0.5 + break + case 'right': + d = 1 + break + default: + d = a[1] / b.width + } + return { x: d, y: c } + }, + createWrapper: function (b) { + if (b.parent().is('.ui-effects-wrapper')) return b.parent() + var c = { + width: b.outerWidth(!0), + height: b.outerHeight(!0), + float: b.css('float'), + }, + d = a('

    ') + .addClass('ui-effects-wrapper') + .css({ + fontSize: '100%', + background: 'transparent', + border: 'none', + margin: 0, + padding: 0, + }), + e = { width: b.width(), height: b.height() }, + f = document.activeElement + try { + f.id + } catch (a) { + f = document.body + } + return ( + b.wrap(d), + (b[0] === f || a.contains(b[0], f)) && a(f).focus(), + (d = b.parent()), + 'static' === b.css('position') + ? (d.css({ position: 'relative' }), + b.css({ position: 'relative' })) + : (a.extend(c, { + position: b.css('position'), + zIndex: b.css('z-index'), + }), + a.each(['top', 'left', 'bottom', 'right'], function (a, d) { + ;(c[d] = b.css(d)), + isNaN(parseInt(c[d], 10)) && (c[d] = 'auto') + }), + b.css({ + position: 'relative', + top: 0, + left: 0, + right: 'auto', + bottom: 'auto', + })), + b.css(e), + d.css(c).show() + ) + }, + removeWrapper: function (b) { + var c = document.activeElement + return ( + b.parent().is('.ui-effects-wrapper') && + (b.parent().replaceWith(b), + (b[0] === c || a.contains(b[0], c)) && a(c).focus()), + b + ) + }, + setTransition: function (b, c, d, e) { + return ( + (e = e || {}), + a.each(c, function (a, c) { + var f = b.cssUnit(c) + f[0] > 0 && (e[c] = f[0] * d + f[1]) + }), + e + ) + }, + }), + a.fn.extend({ + effect: function () { + function g(c) { + function h() { + a.isFunction(e) && e.call(d[0]), a.isFunction(c) && c() + } + var d = a(this), + e = b.complete, + g = b.mode + ;(d.is(':hidden') ? 'hide' === g : 'show' === g) + ? (d[g](), h()) + : f.call(d[0], b, h) + } + var b = d.apply(this, arguments), + c = b.mode, + e = b.queue, + f = a.effects.effect[b.effect] + return a.fx.off || !f + ? c + ? this[c](b.duration, b.complete) + : this.each(function () { + b.complete && b.complete.call(this) + }) + : e === !1 + ? this.each(g) + : this.queue(e || 'fx', g) + }, + show: (function (a) { + return function (b) { + if (e(b)) return a.apply(this, arguments) + var c = d.apply(this, arguments) + return (c.mode = 'show'), this.effect.call(this, c) + } + })(a.fn.show), + hide: (function (a) { + return function (b) { + if (e(b)) return a.apply(this, arguments) + var c = d.apply(this, arguments) + return (c.mode = 'hide'), this.effect.call(this, c) + } + })(a.fn.hide), + toggle: (function (a) { + return function (b) { + if (e(b) || 'boolean' == typeof b) + return a.apply(this, arguments) + var c = d.apply(this, arguments) + return (c.mode = 'toggle'), this.effect.call(this, c) + } + })(a.fn.toggle), + cssUnit: function (b) { + var c = this.css(b), + d = [] + return ( + a.each(['em', 'px', '%', 'pt'], function (a, b) { + c.indexOf(b) > 0 && (d = [parseFloat(c), b]) + }), + d + ) + }, + }) + })(), + (function () { + var b = {} + a.each(['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'], function (a, c) { + b[c] = function (b) { + return Math.pow(b, a + 2) + } + }), + a.extend(b, { + Sine: function (a) { + return 1 - Math.cos((a * Math.PI) / 2) + }, + Circ: function (a) { + return 1 - Math.sqrt(1 - a * a) + }, + Elastic: function (a) { + return 0 === a || 1 === a + ? a + : -Math.pow(2, 8 * (a - 1)) * + Math.sin(((80 * (a - 1) - 7.5) * Math.PI) / 15) + }, + Back: function (a) { + return a * a * (3 * a - 2) + }, + Bounce: function (a) { + for (var b, c = 4; a < ((b = Math.pow(2, --c)) - 1) / 11; ); + return ( + 1 / Math.pow(4, 3 - c) - + 7.5625 * Math.pow((3 * b - 2) / 22 - a, 2) + ) + }, + }), + a.each(b, function (b, c) { + ;(a.easing['easeIn' + b] = c), + (a.easing['easeOut' + b] = function (a) { + return 1 - c(1 - a) + }), + (a.easing['easeInOut' + b] = function (a) { + return a < 0.5 ? c(2 * a) / 2 : 1 - c(a * -2 + 2) / 2 + }) + }) + })() + })(jQuery), + (function (a, b) { + var c = 0, + d = {}, + e = {} + ;(d.height = + d.paddingTop = + d.paddingBottom = + d.borderTopWidth = + d.borderBottomWidth = + 'hide'), + (e.height = + e.paddingTop = + e.paddingBottom = + e.borderTopWidth = + e.borderBottomWidth = + 'show'), + a.widget('ui.accordion', { + version: '1.10.3', + options: { + active: 0, + animate: {}, + collapsible: !1, + event: 'click', + header: '> li > :first-child,> :not(li):even', + heightStyle: 'auto', + icons: { + activeHeader: 'ui-icon-triangle-1-s', + header: 'ui-icon-triangle-1-e', + }, + activate: null, + beforeActivate: null, + }, + _create: function () { + var b = this.options + ;(this.prevShow = this.prevHide = a()), + this.element + .addClass('ui-accordion ui-widget ui-helper-reset') + .attr('role', 'tablist'), + b.collapsible || + (b.active !== !1 && null != b.active) || + (b.active = 0), + this._processPanels(), + b.active < 0 && (b.active += this.headers.length), + this._refresh() + }, + _getCreateEventData: function () { + return { + header: this.active, + panel: this.active.length ? this.active.next() : a(), + content: this.active.length ? this.active.next() : a(), + } + }, + _createIcons: function () { + var b = this.options.icons + b && + (a('') + .addClass('ui-accordion-header-icon ui-icon ' + b.header) + .prependTo(this.headers), + this.active + .children('.ui-accordion-header-icon') + .removeClass(b.header) + .addClass(b.activeHeader), + this.headers.addClass('ui-accordion-icons')) + }, + _destroyIcons: function () { + this.headers + .removeClass('ui-accordion-icons') + .children('.ui-accordion-header-icon') + .remove() + }, + _destroy: function () { + var a + this.element + .removeClass('ui-accordion ui-widget ui-helper-reset') + .removeAttr('role'), + this.headers + .removeClass( + 'ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top' + ) + .removeAttr('role') + .removeAttr('aria-selected') + .removeAttr('aria-controls') + .removeAttr('tabIndex') + .each(function () { + ;/^ui-accordion/.test(this.id) && this.removeAttribute('id') + }), + this._destroyIcons(), + (a = this.headers + .next() + .css('display', '') + .removeAttr('role') + .removeAttr('aria-expanded') + .removeAttr('aria-hidden') + .removeAttr('aria-labelledby') + .removeClass( + 'ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled' + ) + .each(function () { + ;/^ui-accordion/.test(this.id) && this.removeAttribute('id') + })), + 'content' !== this.options.heightStyle && a.css('height', '') + }, + _setOption: function (a, b) { + return 'active' === a + ? void this._activate(b) + : ('event' === a && + (this.options.event && + this._off(this.headers, this.options.event), + this._setupEvents(b)), + this._super(a, b), + 'collapsible' !== a || + b || + this.options.active !== !1 || + this._activate(0), + 'icons' === a && (this._destroyIcons(), b && this._createIcons()), + void ( + 'disabled' === a && + this.headers + .add(this.headers.next()) + .toggleClass('ui-state-disabled', !!b) + )) + }, + _keydown: function (b) { + if (!b.altKey && !b.ctrlKey) { + var c = a.ui.keyCode, + d = this.headers.length, + e = this.headers.index(b.target), + f = !1 + switch (b.keyCode) { + case c.RIGHT: + case c.DOWN: + f = this.headers[(e + 1) % d] + break + case c.LEFT: + case c.UP: + f = this.headers[(e - 1 + d) % d] + break + case c.SPACE: + case c.ENTER: + this._eventHandler(b) + break + case c.HOME: + f = this.headers[0] + break + case c.END: + f = this.headers[d - 1] + } + f && + (a(b.target).attr('tabIndex', -1), + a(f).attr('tabIndex', 0), + f.focus(), + b.preventDefault()) + } + }, + _panelKeyDown: function (b) { + b.keyCode === a.ui.keyCode.UP && + b.ctrlKey && + a(b.currentTarget).prev().focus() + }, + refresh: function () { + var b = this.options + this._processPanels(), + (b.active === !1 && b.collapsible === !0) || !this.headers.length + ? ((b.active = !1), (this.active = a())) + : b.active === !1 + ? this._activate(0) + : this.active.length && + !a.contains(this.element[0], this.active[0]) + ? this.headers.length === + this.headers.find('.ui-state-disabled').length + ? ((b.active = !1), (this.active = a())) + : this._activate(Math.max(0, b.active - 1)) + : (b.active = this.headers.index(this.active)), + this._destroyIcons(), + this._refresh() + }, + _processPanels: function () { + ;(this.headers = this.element + .find(this.options.header) + .addClass( + 'ui-accordion-header ui-helper-reset ui-state-default ui-corner-all' + )), + this.headers + .next() + .addClass( + 'ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom' + ) + .filter(':not(.ui-accordion-content-active)') + .hide() + }, + _refresh: function () { + var b, + d = this.options, + e = d.heightStyle, + f = this.element.parent(), + g = (this.accordionId = + 'ui-accordion-' + (this.element.attr('id') || ++c)) + ;(this.active = this._findActive(d.active) + .addClass( + 'ui-accordion-header-active ui-state-active ui-corner-top' + ) + .removeClass('ui-corner-all')), + this.active.next().addClass('ui-accordion-content-active').show(), + this.headers + .attr('role', 'tab') + .each(function (b) { + var c = a(this), + d = c.attr('id'), + e = c.next(), + f = e.attr('id') + d || ((d = g + '-header-' + b), c.attr('id', d)), + f || ((f = g + '-panel-' + b), e.attr('id', f)), + c.attr('aria-controls', f), + e.attr('aria-labelledby', d) + }) + .next() + .attr('role', 'tabpanel'), + this.headers + .not(this.active) + .attr({ 'aria-selected': 'false', tabIndex: -1 }) + .next() + .attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }) + .hide(), + this.active.length + ? this.active + .attr({ 'aria-selected': 'true', tabIndex: 0 }) + .next() + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }) + : this.headers.eq(0).attr('tabIndex', 0), + this._createIcons(), + this._setupEvents(d.event), + 'fill' === e + ? ((b = f.height()), + this.element.siblings(':visible').each(function () { + var c = a(this), + d = c.css('position') + 'absolute' !== d && 'fixed' !== d && (b -= c.outerHeight(!0)) + }), + this.headers.each(function () { + b -= a(this).outerHeight(!0) + }), + this.headers + .next() + .each(function () { + a(this).height( + Math.max(0, b - a(this).innerHeight() + a(this).height()) + ) + }) + .css('overflow', 'auto')) + : 'auto' === e && + ((b = 0), + this.headers + .next() + .each(function () { + b = Math.max(b, a(this).css('height', '').height()) + }) + .height(b)) + }, + _activate: function (b) { + var c = this._findActive(b)[0] + c !== this.active[0] && + ((c = c || this.active[0]), + this._eventHandler({ + target: c, + currentTarget: c, + preventDefault: a.noop, + })) + }, + _findActive: function (b) { + return 'number' == typeof b ? this.headers.eq(b) : a() + }, + _setupEvents: function (b) { + var c = { keydown: '_keydown' } + b && + a.each(b.split(' '), function (a, b) { + c[b] = '_eventHandler' + }), + this._off(this.headers.add(this.headers.next())), + this._on(this.headers, c), + this._on(this.headers.next(), { keydown: '_panelKeyDown' }), + this._hoverable(this.headers), + this._focusable(this.headers) + }, + _eventHandler: function (b) { + var c = this.options, + d = this.active, + e = a(b.currentTarget), + f = e[0] === d[0], + g = f && c.collapsible, + h = g ? a() : e.next(), + i = d.next(), + j = { + oldHeader: d, + oldPanel: i, + newHeader: g ? a() : e, + newPanel: h, + } + b.preventDefault(), + (f && !c.collapsible) || + this._trigger('beforeActivate', b, j) === !1 || + ((c.active = !g && this.headers.index(e)), + (this.active = f ? a() : e), + this._toggle(j), + d.removeClass('ui-accordion-header-active ui-state-active'), + c.icons && + d + .children('.ui-accordion-header-icon') + .removeClass(c.icons.activeHeader) + .addClass(c.icons.header), + f || + (e + .removeClass('ui-corner-all') + .addClass( + 'ui-accordion-header-active ui-state-active ui-corner-top' + ), + c.icons && + e + .children('.ui-accordion-header-icon') + .removeClass(c.icons.header) + .addClass(c.icons.activeHeader), + e.next().addClass('ui-accordion-content-active'))) + }, + _toggle: function (b) { + var c = b.newPanel, + d = this.prevShow.length ? this.prevShow : b.oldPanel + this.prevShow.add(this.prevHide).stop(!0, !0), + (this.prevShow = c), + (this.prevHide = d), + this.options.animate + ? this._animate(c, d, b) + : (d.hide(), c.show(), this._toggleComplete(b)), + d.attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + d.prev().attr('aria-selected', 'false'), + c.length && d.length + ? d.prev().attr('tabIndex', -1) + : c.length && + this.headers + .filter(function () { + return 0 === a(this).attr('tabIndex') + }) + .attr('tabIndex', -1), + c + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }) + .prev() + .attr({ 'aria-selected': 'true', tabIndex: 0 }) + }, + _animate: function (a, b, c) { + var f, + g, + h, + i = this, + j = 0, + k = a.length && (!b.length || a.index() < b.index()), + l = this.options.animate || {}, + m = (k && l.down) || l, + n = function () { + i._toggleComplete(c) + } + return ( + 'number' == typeof m && (h = m), + 'string' == typeof m && (g = m), + (g = g || m.easing || l.easing), + (h = h || m.duration || l.duration), + b.length + ? a.length + ? ((f = a.show().outerHeight()), + b.animate(d, { + duration: h, + easing: g, + step: function (a, b) { + b.now = Math.round(a) + }, + }), + void a.hide().animate(e, { + duration: h, + easing: g, + complete: n, + step: function (a, c) { + ;(c.now = Math.round(a)), + 'height' !== c.prop + ? (j += c.now) + : 'content' !== i.options.heightStyle && + ((c.now = Math.round(f - b.outerHeight() - j)), + (j = 0)) + }, + })) + : b.animate(d, h, g, n) + : a.animate(e, h, g, n) + ) + }, + _toggleComplete: function (a) { + var b = a.oldPanel + b + .removeClass('ui-accordion-content-active') + .prev() + .removeClass('ui-corner-top') + .addClass('ui-corner-all'), + b.length && (b.parent()[0].className = b.parent()[0].className), + this._trigger('activate', null, a) + }, + }) + })(jQuery), + (function (a, b) { + var c = 0 + a.widget('ui.autocomplete', { + version: '1.10.3', + defaultElement: '', + options: { + appendTo: null, + autoFocus: !1, + delay: 300, + minLength: 1, + position: { my: 'left top', at: 'left bottom', collision: 'none' }, + source: null, + change: null, + close: null, + focus: null, + open: null, + response: null, + search: null, + select: null, + }, + pending: 0, + _create: function () { + var b, + c, + d, + e = this.element[0].nodeName.toLowerCase(), + f = 'textarea' === e, + g = 'input' === e + ;(this.isMultiLine = + !!f || (!g && this.element.prop('isContentEditable'))), + (this.valueMethod = this.element[f || g ? 'val' : 'text']), + (this.isNewMenu = !0), + this.element + .addClass('ui-autocomplete-input') + .attr('autocomplete', 'off'), + this._on(this.element, { + keydown: function (e) { + if (this.element.prop('readOnly')) + return (b = !0), (d = !0), void (c = !0) + ;(b = !1), (d = !1), (c = !1) + var f = a.ui.keyCode + switch (e.keyCode) { + case f.PAGE_UP: + ;(b = !0), this._move('previousPage', e) + break + case f.PAGE_DOWN: + ;(b = !0), this._move('nextPage', e) + break + case f.UP: + ;(b = !0), this._keyEvent('previous', e) + break + case f.DOWN: + ;(b = !0), this._keyEvent('next', e) + break + case f.ENTER: + case f.NUMPAD_ENTER: + this.menu.active && + ((b = !0), e.preventDefault(), this.menu.select(e)) + break + case f.TAB: + this.menu.active && this.menu.select(e) + break + case f.ESCAPE: + this.menu.element.is(':visible') && + (this._value(this.term), this.close(e), e.preventDefault()) + break + default: + ;(c = !0), this._searchTimeout(e) + } + }, + keypress: function (d) { + if (b) + return ( + (b = !1), + void ( + (this.isMultiLine && !this.menu.element.is(':visible')) || + d.preventDefault() + ) + ) + if (!c) { + var e = a.ui.keyCode + switch (d.keyCode) { + case e.PAGE_UP: + this._move('previousPage', d) + break + case e.PAGE_DOWN: + this._move('nextPage', d) + break + case e.UP: + this._keyEvent('previous', d) + break + case e.DOWN: + this._keyEvent('next', d) + } + } + }, + input: function (a) { + return d + ? ((d = !1), void a.preventDefault()) + : void this._searchTimeout(a) + }, + focus: function () { + ;(this.selectedItem = null), (this.previous = this._value()) + }, + blur: function (a) { + return this.cancelBlur + ? void delete this.cancelBlur + : (clearTimeout(this.searching), + this.close(a), + void this._change(a)) + }, + }), + this._initSource(), + (this.menu = a('
    ").append(e("").attr({href:"#",tabindex:"-1",title:n.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(e("").addClass(n.icons.up)))),i.append(e("").append(e("").addClass("timepicker-hour").attr({"data-time-component":"hours",title:n.tooltips.pickHour}).attr("data-action","showHours"))),s.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:n.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(e("").addClass(n.icons.down))))),D("m")&&(D("h")&&(t.append(e("").addClass("separator")),i.append(e("").addClass("separator").html(":")),s.append(e("").addClass("separator"))),t.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:n.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(e("").addClass(n.icons.up)))),i.append(e("").append(e("").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:n.tooltips.pickMinute}).attr("data-action","showMinutes"))),s.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:n.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(e("").addClass(n.icons.down))))),D("s")&&(D("m")&&(t.append(e("").addClass("separator")),i.append(e("").addClass("separator").html(":")),s.append(e("").addClass("separator"))),t.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:n.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(e("").addClass(n.icons.up)))),i.append(e("").append(e("").addClass("timepicker-second").attr({"data-time-component":"seconds",title:n.tooltips.pickSecond}).attr("data-action","showSeconds"))),s.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:n.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(e("").addClass(n.icons.down))))),o||(t.append(e("").addClass("separator")),i.append(e("").append(e("").addClass("separator"))),e("
    ").addClass("timepicker-picker").append(e("").addClass("table-condensed").append([t,i,s]))},S=function(){var t=e("
    ").addClass("timepicker-hours").append(e("
    ").addClass("table-condensed")),i=e("
    ").addClass("timepicker-minutes").append(e("
    ").addClass("table-condensed")),n=e("
    ").addClass("timepicker-seconds").append(e("
    ").addClass("table-condensed")),s=[C()];return D("h")&&s.push(t),D("m")&&s.push(i),D("s")&&s.push(n),s},E=function(){var t=[];return n.showTodayButton&&t.push(e("",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(n.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),n.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e("",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){var i,n,s,r,a,o,l,u,d,c,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&e.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,d=h.floating||this._isFloating(this.currentItem),a=d?"left":"top",o=d?"width":"height",c=d?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],u=!1,t[c]-l>this.items[n][o]/2&&(u=!0),Math.abs(t[c]-l)this.containment[2]&&(r=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){function i(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return e.each(["min","max","step"],function(e,n){var s=i.attr(n);null!=s&&s.length&&(t[n]=s)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelBlur)return void delete this.cancelBlur;this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("").parent().append("")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return t=null!==n.min?n.min:0,i=e-t,i=Math.round(i/n.step)*n.step,e=t+i,e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&e"},_buttonHtml:function(){return""}});e.ui.spinner;/*! - * jQuery UI Tabs 1.12.1 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -e.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(t){var i,n;i=t.href.replace(e,""),n=location.href.replace(e,"");try{i=decodeURIComponent(i)}catch(e){}try{n=decodeURIComponent(n)}catch(e){}return t.hash.length>1&&i===n}}(),_create:function(){var t=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===t&&(n&&this.tabs.each(function(i,s){if(e(s).attr("aria-controls")===n)return t=i,!1}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==t&&-1!==t||(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0),!i&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(e.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:s=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){for(var n=this.tabs.length-1;-1!==e.inArray(function(){return t>n&&(t=0),t<0&&(t=n),t}(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){if("active"===e)return void this._activate(t);this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,n=this.anchors,s=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each(function(i,n){var s,r,a,o=e(n).uniqueId().attr("id"),l=e(n).closest("li"),u=l.attr("aria-controls");t._isLocal(n)?(s=n.hash,a=s.substring(1),r=t.element.find(t._sanitizeSelector(s))):(a=l.attr("aria-controls")||e({}).uniqueId()[0].id,s="#"+a,r=t.element.find(s),r.length||(r=t._createPanel(a),r.insertAfter(t.panels[i-1]||t.tablist)),r.attr("aria-live","polite")),r.length&&(t.panels=t.panels.add(r)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":a,"aria-labelledby":o}),r.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("
    ").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,n,s;for(e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),s=0;n=this.tabs[s];s++)i=e(n),!0===t||-1!==e.inArray(s,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,n=this.element.parent();"fill"===t?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),n=t.css("position");"absolute"!==n&&"fixed"!==n&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,n=this.active,s=e(t.currentTarget),r=s.closest("li"),a=r[0]===n[0],o=a&&i.collapsible,l=o?e():this._getPanelForTab(r),u=n.length?this._getPanelForTab(n):e(),d={oldTab:n,oldPanel:u,newTab:o?e():r,newPanel:l};t.preventDefault(),r.hasClass("ui-state-disabled")||r.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||!1===this._trigger("beforeActivate",t,d)||(i.active=!o&&this.tabs.index(r),this.active=a?e():r,this.xhr&&this.xhr.abort(),u.length||l.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(r),t),this._toggle(t,d))},_toggle:function(t,i){function n(){r.running=!1,r._trigger("activate",t,i)}function s(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&r.options.show?r._show(a,r.options.show,n):(a.show(),n())}var r=this,a=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),s()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&o.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,n=this._findActive(t);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(void 0===t?i=!1:(t=this._getIndex(t),i=e.isArray(i)?e.map(i,function(e){return e!==t?e:null}):e.map(this.tabs,function(e,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=e.isArray(i)?e.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var n=this,s=this.tabs.eq(t),r=s.find(".ui-tabs-anchor"),a=this._getPanelForTab(s),o={tab:s,panel:a},l=function(e,t){"abort"===t&&n.panels.stop(!1,!0),n._removeClass(s,"ui-tabs-loading"),a.removeAttr("aria-busy"),e===n.xhr&&delete n.xhr};this._isLocal(r[0])||(this.xhr=e.ajax(this._ajaxSettings(r,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(s,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(e,t,s){setTimeout(function(){a.html(e),n._trigger("load",i,o),l(s,t)},1)}).fail(function(e,t){setTimeout(function(){l(e,t)},1)})))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,r){return s._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:r},n))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});e.ui.tabs;/*! - * jQuery UI Tooltip 1.12.1 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -e.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title")||"";return e("").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var n=(t.attr("aria-describedby")||"").split(/\s+/);n.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(n.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),s=e.inArray(i,n);-1!==s&&n.splice(s,1),t.removeData("ui-tooltip-id"),n=e.trim(n.join(" ")),n?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("
    ").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,i){var n=this;this._super(t,i),"content"===t&&e.each(this.tooltips,function(e,t){n._updateContent(t.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,function(i,n){var s=e.Event("blur");s.target=s.currentTarget=n.element[0],t.close(s,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=e([])},open:function(t){var i=this,n=e(t?t.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&n.parents().each(function(){var t,n=e(this);n.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,i.close(t,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._registerCloseHandlers(t,n),this._updateContent(n,t))},_updateContent:function(e,t){var i,n=this.options.content,s=this,r=t?t.type:null;if("string"==typeof n||n.nodeType||n.jquery)return this._open(t,e,n);(i=n.call(e[0],function(i){s._delay(function(){e.data("ui-tooltip-open")&&(t&&(t.type=r),this._open(t,e,i))})}))&&this._open(t,e,i)},_open:function(t,i,n){function s(e){u.of=e,a.is(":hidden")||a.position(u)}var r,a,o,l,u=e.extend({},this.options.position);if(n){if(r=this._find(i))return void r.tooltip.find(".ui-tooltip-content").html(n);i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),r=this._tooltip(i),a=r.tooltip,this._addDescribedBy(i,a.attr("id")),a.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),l=e("
    ").html(a.find(".ui-tooltip-content").html()),l.removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):a.position(e.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){a.is(":visible")&&(s(u.of),clearInterval(o))},e.fx.interval)),this._trigger("open",t,{tooltip:a})}},_registerCloseHandlers:function(t,i){var n={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var n=e.Event(t);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(i).tooltip)}),t&&"mouseover"!==t.type||(n.mouseleave="close"),t&&"focusin"!==t.type||(n.focusout="close"),this._on(!0,i,n)},close:function(t){var i,n=this,s=e(t?t.currentTarget:this.element),r=this._find(s);if(!r)return void s.removeData("ui-tooltip-open");i=r.tooltip,r.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),r.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){n._removeTooltip(e(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title",i.title),delete n.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:i}),r.hiding||(r.closing=!1))},_tooltip:function(t){var i=e("
    ").attr("role","tooltip"),n=e("
    ").appendTo(i),s=i.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,function(i,n){var s=e.Event("blur"),r=n.element;s.target=s.currentTarget=r[0],t.close(s,!0),e("#"+i).remove(),r.data("ui-tooltip-title")&&(r.attr("title")||r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}});e.ui.tooltip})}).call(window)}).call(t,i(41))},function(e,t){(function(){/* - * jwerty - Awesome handling of keyboard events - * - * jwerty is a JS lib which allows you to bind, fire and assert key combination - * strings against elements and events. It normalises the poor std api into - * something easy to use and clear. - * - * This code is licensed under the MIT - * For the full license see: http://keithamus.mit-license.org/ - * For more information see: http://keithamus.github.com/jwerty - * - * @author Keith Cirkel ('keithamus') - * @license http://keithamus.mit-license.org/ - * @copyright Copyright © 2011, Keith Cirkel - * - */ -!function(e,t){function i(e,t){return null===e?"null"===t:void 0===e?"undefined"===t:e.is&&e instanceof l?"element"===t:Object.prototype.toString.call(e).toLowerCase().indexOf(t)>7}function s(e){var t,n,r,a,o,l,u,h,p;if(e instanceof s)return e;for(i(e,"array")||(e=String(e).replace(/\s/g,"").toLowerCase().match(/(?:\+,|[^,])+/g)),t=0,n=e.length;t1?i-1:0),s=1;s=r.length)break;o=r[a++];o.apply(this,n)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var i=this._callbacks[e];if(!i)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var n=0;n=t.length)break;n=t[i++];var s=n;if(/(^| )dz-message($| )/.test(s.className)){e=s,s.className="dz-message";break}}e||(e=a.createElement('
    '),this.element.appendChild(e));var r=e.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,i,n){var s={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},r=e.width/e.height;null==t&&null==i?(t=s.srcWidth,i=s.srcHeight):null==t?t=i*r:null==i&&(i=t/r),t=Math.min(t,s.srcWidth),i=Math.min(i,s.srcHeight);var a=t/i;if(s.srcWidth>t||s.srcHeight>i)if("crop"===n)r>a?(s.srcHeight=e.height,s.srcWidth=s.srcHeight*a):(s.srcWidth=e.width,s.srcHeight=s.srcWidth/a);else{if("contain"!==n)throw new Error("Unknown resizeMethod '"+n+"'");r>a?i=t/r:t=i*r}return s.srcX=(e.width-s.srcWidth)/2,s.srcY=(e.height-s.srcHeight)/2,s.trgWidth=t,s.trgHeight=i,s},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n
    ',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=a.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var i=e.previewElement.querySelectorAll("[data-dz-name]"),n=0,i=i;;){var s;if(n>=i.length)break;s=i[n++];var r=s;r.textContent=e.name}for(var o=e.previewElement.querySelectorAll("[data-dz-size]"),l=0,o=o;!(l>=o.length);)r=o[l++],r.innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=a.createElement('
    '+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink));for(var u=function(i){return i.preventDefault(),i.stopPropagation(),e.status===a.UPLOADING?a.confirm(t.options.dictCancelUploadConfirmation,function(){return t.removeFile(e)}):t.options.dictRemoveFileConfirmation?a.confirm(t.options.dictRemoveFileConfirmation,function(){return t.removeFile(e)}):t.removeFile(e)},d=e.previewElement.querySelectorAll("[data-dz-remove]"),c=0,d=d;;){var h;if(c>=d.length)break;h=d[c++];h.addEventListener("click",u)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var i=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),n=0,i=i;;){var s;if(n>=i.length)break;s=i[n++];var r=s;r.alt=e.name,r.src=t}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var i=e.previewElement.querySelectorAll("[data-dz-errormessage]"),n=0,i=i;;){var s;if(n>=i.length)break;s=i[n++];s.textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,i){if(e.previewElement)for(var n=e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),s=0,n=n;;){var r;if(s>=n.length)break;r=n[s++];var a=r;"PROGRESS"===a.nodeName?a.value=t:a.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n=s.length)break;a=s[r++];var o=a;for(var l in o){var u=o[l];e[l]=u}}return e}}]),o(a,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(a.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(a.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(a.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===a.UPLOADING||e.status===a.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(a.createElement('
    '+this.options.dictDefaultMessage+"
    ")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",a.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var i=e.hiddenFileInput.files;if(i.length)for(var n=i,s=0,n=n;;){var r;if(s>=n.length)break;r=n[s++];var a=r;e.addFile(a)}return e.emit("addedfiles",i),t()})}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=this.events,i=0,t=t;;){var n;if(i>=t.length)break;n=t[i++];var s=n;this.on(s,this.options[s])}this.on("uploadprogress",function(){return e.updateTotalUploadProgress()}),this.on("removedfile",function(){return e.updateTotalUploadProgress()}),this.on("canceled",function(t){return e.emit("complete",t)}),this.on("complete",function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout(function(){return e.emit("queuecomplete")},0)});var r=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return r(t),e.emit("dragenter",t)},dragover:function(t){var i=void 0;try{i=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy",r(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return r(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach(function(t){return e.listeners.push({element:t,events:{click:function(i){return(t!==e.element||i.target===e.element||a.elementInside(i.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,a.instances.splice(a.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,i=0;if(this.getActiveFiles().length){for(var n=this.getActiveFiles(),s=0,n=n;;){var r;if(s>=n.length)break;r=n[s++];var a=r;t+=a.upload.bytesSent,i+=a.upload.total}e=100*t/i}else e=100;return this.emit("totaluploadprogress",e,i,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e=void 0,t=void 0;if(e=this.getExistingFallback())return e;var i='
    ';this.options.dictFallbackText&&(i+="

    "+this.options.dictFallbackText+"

    "),i+='
    ';var n=a.createElement(i);return"FORM"!==this.element.tagName?(t=a.createElement('
    '),t.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:n}},{key:"getExistingFallback",value:function(){for(var e=["div","form"],t=0;t=t.length)break;n=t[i++];var s=n;if(/(^| )fallback($| )/.test(s.className))return s}}(this.element.getElementsByTagName(n)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var i in e.events){var n=e.events[i];t.push(e.element.addEventListener(i,n,!1))}return t}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var i in e.events){var n=e.events[i];t.push(e.element.removeEventListener(i,n,!1))}return t}()})}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(t){return e.cancelUpload(t)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,i="b";if(e>0){for(var n=["tb","gb","mb","kb","b"],s=0;s=Math.pow(this.options.filesizeBase,4-s)/10){t=e/Math.pow(this.options.filesizeBase,4-s),i=r;break}}t=Math.round(10*t)/10}return""+t+" "+this.options.dictFileSizeUnits[i]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],i=0;i=t.length)break;n=t[i++];var s=n;this.addFile(s)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var i=[],n=e,s=0,n=n;;){var r;if(s>=n.length)break;r=n[s++];var a,o=r;null!=o.webkitGetAsEntry&&(a=o.webkitGetAsEntry())?a.isFile?i.push(t.addFile(o.getAsFile())):a.isDirectory?i.push(t._addFilesFromDirectory(a,a.name)):i.push(void 0):null!=o.getAsFile&&(null==o.kind||"file"===o.kind)?i.push(t.addFile(o.getAsFile())):i.push(void 0)}return i}()}},{key:"_addFilesFromDirectory",value:function(e,t){var i=this,n=e.createReader(),s=function(e){return r(console,"log",function(t){return t.log(e)})};return function e(){return n.readEntries(function(n){if(n.length>0){for(var s=n,r=0,s=s;;){var a;if(r>=s.length)break;a=s[r++];var o=a;o.isFile?o.file(function(e){if(!i.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,i.addFile(e)}):o.isDirectory&&i._addFilesFromDirectory(o,t+"/"+o.name)}e()}return null},s)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):a.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:a.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=a.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(i){return i?(e.accepted=!1,t._errorProcessing([e],i)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){for(var t=e,i=0,t=t;;){var n;if(i>=t.length)break;n=t[i++];var s=n;this.enqueueFile(s)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==a.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=a.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return t.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(i){return e.emit("thumbnail",t,i),e._processingThumbnail=!1,e._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===a.UPLOADING&&this.cancelUpload(e),this.files=d(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=this.files.slice(),i=0,t=t;;){var n;if(i>=t.length)break;n=t[i++];var s=n;(s.status!==a.UPLOADING||e)&&this.removeFile(s)}return null}},{key:"resizeImage",value:function(e,t,i,n,s){var r=this;return this.createThumbnail(e,t,i,n,!0,function(t,i){if(null==i)return s(e);var n=r.options.resizeMimeType;null==n&&(n=e.type);var o=i.toDataURL(n,r.options.resizeQuality);return"image/jpeg"!==n&&"image/jpg"!==n||(o=f.restore(e.dataURL,o)),s(a.dataURItoBlob(o))})}},{key:"createThumbnail",value:function(e,t,i,n,s,r){var a=this,o=new FileReader;return o.onload=function(){return e.dataURL=o.result,"image/svg+xml"===e.type?void(null!=r&&r(o.result)):a.createThumbnailFromUrl(e,t,i,n,s,r)},o.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,i,n,s,r,a){var o=this,l=document.createElement("img");return a&&(l.crossOrigin=a),l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&s&&(a=function(e){return EXIF.getData(l,function(){return e(EXIF.getTag(this,"Orientation"))})}),a(function(s){e.width=l.width,e.height=l.height;var a=o.options.resize.call(o,e,t,i,n),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=a.trgWidth,u.height=a.trgHeight,s>4&&(u.width=a.trgHeight,u.height=a.trgWidth),s){case 2:d.translate(u.width,0),d.scale(-1,1);break;case 3:d.translate(u.width,u.height),d.rotate(Math.PI);break;case 4:d.translate(0,u.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-u.width);break;case 7:d.rotate(.5*Math.PI),d.translate(u.height,-u.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-u.height,0)}p(d,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var c=u.toDataURL("image/png");if(null!=r)return r(c,u)})},null!=r&&(l.onerror=r),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,i=t;if(!(t>=e)){var n=this.getQueuedFiles();if(n.length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,e-t));for(;i=t.length)break;n=t[i++];var s=n;s.processing=!0,s.status=a.UPLOADING,this.emit("processing",s)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===a.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),i=t,n=0,i=i;;){var s;if(n>=i.length)break;s=i[n++];s.status=a.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var r=t,o=0,r=r;;){var l;if(o>=r.length)break;l=r[o++];var u=l;this.emit("canceled",u)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==a.ADDED&&e.status!==a.QUEUED||(e.status=a.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n=n.upload.totalChunkCount)){r++;var o=i*t.options.chunkSize,l=Math.min(o+t.options.chunkSize,n.size),u={name:t._getParamName(0),data:s.webkitSlice?s.webkitSlice(o,l):s.slice(o,l),filename:n.upload.filename,chunkIndex:i};n.upload.chunks[i]={file:n,index:i,dataBlock:u,status:a.UPLOADING,progress:0,retries:0},t._uploadData(e,[u])}};if(n.upload.finishedChunkUpload=function(i){var s=!0;i.status=a.SUCCESS,i.dataBlock=null,i.xhr=null;for(var r=0;r=s.length)break;o=s[r++];o.xhr=n}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=n);var l=this.resolveOption(this.options.method,e),u=this.resolveOption(this.options.url,e);n.open(l,u,!0),n.timeout=this.resolveOption(this.options.timeout,e),n.withCredentials=!!this.options.withCredentials,n.onload=function(t){i._finishedUploading(e,n,t)},n.onerror=function(){i._handleUploadError(e,n)},(null!=n.upload?n.upload:n).onprogress=function(t){return i._updateFilesUploadProgress(e,n,t)};var d={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&a.extend(d,this.options.headers);for(var c in d){var h=d[c];h&&n.setRequestHeader(c,h)}var p=new FormData;if(this.options.params){var f=this.options.params;"function"==typeof f&&(f=f.call(this,e,n,e[0].upload.chunked?this._getChunk(e[0],n):null));for(var m in f){var _=f[m];p.append(m,_)}}for(var g=e,v=0,g=g;;){var y;if(v>=g.length)break;y=g[v++];var b=y;this.emit("sending",b,n,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,n,p),this._addFormElementData(p);for(var w=0;w=t.length)break;n=t[i++];var s=n,r=s.getAttribute("name"),a=s.getAttribute("type");if(a&&(a=a.toLowerCase()),void 0!==r&&null!==r)if("SELECT"===s.tagName&&s.hasAttribute("multiple"))for(var o=s.options,l=0,o=o;;){var u;if(l>=o.length)break;u=o[l++];var d=u;d.selected&&e.append(r,d.value)}else(!a||"checkbox"!==a&&"radio"!==a||s.checked)&&e.append(r,s.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,i){var n=void 0;if(void 0!==i){if(n=100*i.loaded/i.total,e[0].upload.chunked){var s=e[0],r=this._getChunk(s,t);r.progress=n,r.total=i.total,r.bytesSent=i.loaded;s.upload.progress=0,s.upload.total=0,s.upload.bytesSent=0;for(var a=0;a=o.length)break;u=o[l++];var d=u;d.upload.progress=n,d.upload.total=i.total,d.upload.bytesSent=i.loaded}for(var c=e,h=0,c=c;;){var p;if(h>=c.length)break;p=c[h++];var f=p;this.emit("uploadprogress",f,f.upload.progress,f.upload.bytesSent)}}else{var m=!0;n=100;for(var _=e,g=0,_=_;;){var v;if(g>=_.length)break;v=_[g++];var y=v;100===y.upload.progress&&y.upload.bytesSent===y.upload.total||(m=!1),y.upload.progress=n,y.upload.bytesSent=y.upload.total}if(m)return;for(var b=e,w=0,b=b;;){var M;if(w>=b.length)break;M=b[w++];var k=M;this.emit("uploadprogress",k,n,k.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,i){var n=void 0;if(e[0].status!==a.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(n=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{n=JSON.parse(n)}catch(e){i=e,n="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,n,i):this._handleUploadError(e,t,n)}}},{key:"_handleUploadError",value:function(e,t,i){if(e[0].status!==a.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var n=this._getChunk(e[0],t);if(n.retries++=s.length)break;s[r++];this._errorProcessing(e,i||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,i){e.send(t)}},{key:"_finished",value:function(e,t,i){for(var n=e,s=0,n=n;;){var r;if(s>=n.length)break;r=n[s++];var o=r;o.status=a.SUCCESS,this.emit("success",o,t,i),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,i){for(var n=e,s=0,n=n;;){var r;if(s>=n.length)break;r=n[s++];var o=r;o.status=a.ERROR,this.emit("error",o,t,i),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),a}(l);u.initClass(),u.version="5.5.1",u.options={},u.optionsForElement=function(e){return e.getAttribute("id")?u.options[c(e.getAttribute("id"))]:void 0},u.instances=[],u.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},u.autoDiscover=!0,u.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var i=[],n=t,s=0,n=n;;){var r;if(s>=n.length)break;r=n[s++];var a=r;/(^| )dropzone($| )/.test(a.className)?i.push(e.push(a)):i.push(void 0)}return i}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],i=e,n=0,i=i;;){var s;if(n>=i.length)break;s=i[n++];var r=s;!1!==u.optionsForElement(r)?t.push(new u(r)):t.push(void 0)}return t}()},u.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],u.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=u.blacklistedBrowsers,i=0,t=t;;){var n;if(i>=t.length)break;n=t[i++];var s=n;s.test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},u.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),s=new Uint8Array(n),r=0,a=t.length,o=0<=a;o?r<=a:r>=a;o?r++:r--)s[r]=t.charCodeAt(r);return new Blob([n],{type:i})};var d=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},c=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};u.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},u.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},u.getElement=function(e,t){var i=void 0;if("string"==typeof e?i=document.querySelector(e):null!=e.nodeType&&(i=e),null==i)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return i},u.getElements=function(e,t){var i=void 0,n=void 0;if(e instanceof Array){n=[];try{for(var s=e,r=0,s=s;!(r>=s.length);)i=s[r++],n.push(this.getElement(i,t))}catch(e){n=null}}else if("string"==typeof e){n=[];for(var a=document.querySelectorAll(e),o=0,a=a;!(o>=a.length);)i=a[o++],n.push(i)}else null!=e.nodeType&&(n=[e]);if(null==n||!n.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return n},u.confirm=function(e,t,i){return window.confirm(e)?t():null!=i?i():void 0},u.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var i=e.type,n=i.replace(/\/.*$/,""),s=t,r=0,s=s;;){var a;if(r>=s.length)break;a=s[r++];var o=a;if(o=o.trim(),"."===o.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.length-o.length))return!0}else if(/\/\*$/.test(o)){if(n===o.replace(/\/.*$/,""))return!0}else if(i===o)return!0}return!1},void 0!==e&&null!==e&&(e.fn.dropzone=function(e){return this.each(function(){return new u(this,e)})}),void 0!==a&&null!==a?a.exports=u:window.Dropzone=u,u.ADDED="added",u.QUEUED="queued",u.ACCEPTED=u.QUEUED,u.UPLOADING="uploading",u.PROCESSING=u.UPLOADING,u.CANCELED="canceled",u.ERROR="error",u.SUCCESS="success";var h=function(e){var t=(e.naturalWidth,e.naturalHeight),i=document.createElement("canvas");i.width=1,i.height=t;var n=i.getContext("2d");n.drawImage(e,0,0);for(var s=n.getImageData(1,0,1,t),r=s.data,a=0,o=t,l=t;l>a;){0===r[4*(l-1)+3]?o=l:a=l,l=o+a>>1}var u=l/t;return 0===u?1:u},p=function(e,t,i,n,s,r,a,o,l,u){var d=h(t);return e.drawImage(t,i,n,s,r,a,o,l,u/d)},f=function(){function e(){n(this,e)}return o(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",i=void 0,n=void 0,s="",r=void 0,a=void 0,o=void 0,l="",u=0;;)if(i=e[u++],n=e[u++],s=e[u++],r=i>>2,a=(3&i)<<4|n>>4,o=(15&n)<<2|s>>6,l=63&s,isNaN(n)?o=l=64:isNaN(s)&&(l=64),t=t+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(l),i=n=s="",r=a=o=l="",!(ue.length)break}return i}},{key:"decode64",value:function(e){var t=void 0,i=void 0,n="",s=void 0,r=void 0,a=void 0,o="",l=0,u=[],d=/[^A-Za-z0-9\+\/\=]/g;for(d.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");;)if(s=this.KEY_STR.indexOf(e.charAt(l++)),r=this.KEY_STR.indexOf(e.charAt(l++)),a=this.KEY_STR.indexOf(e.charAt(l++)),o=this.KEY_STR.indexOf(e.charAt(l++)),t=s<<2|r>>4,i=(15&r)<<4|a>>2,n=(3&a)<<6|o,u.push(t),64!==a&&u.push(i),64!==o&&u.push(n),t=i=n="",s=r=a=o="",!(l
    ');var i=e.parent();i.addClass(e.attr("class")),e.on("change",function(){i.toggleClass("-checked",e.prop("checked"))}),i.click(function(t){if(t.srcElement==i[0]||void 0==t.srcElement)return e.prop("checked",!e.prop("checked")),!1})}})},initAlerts=function(){jQuery(".alert-text").each(function(){var e=jQuery(this),t=e.height(),i=parseFloat(e.css("lineHeight")),n=t/i;if(Math.ceil(n)>5){var s=e.html(),r=e.parent().attr("class");e.parent().addClass("alert-drop"),void 0!==e.data("title")&&""!==e.data("title")?e.html(""+e.data("title")+""):e.html("Read More"),e.css("cursor","pointer"),e.parent().after(''),jQuery(".alert-down-text").html(s)}}),$(".alert-drop").each(function(){var e=jQuery(this);e.click(function(){var t=e.css("border-radius");e.next("div").is(":hidden")?(e.css("border-radius","0"),e.css("border-bottom","none")):(e.css("border-radius",t),e.css("border-bottom","")),e.next("div").slideToggle(400)})})},initToolTips=function(){jQuery(".tooltip-error").pstooltip({template:'
    '}),jQuery('[data-toggle="pstooltip"]').pstooltip(),jQuery('[data-toggle="popover"]').popover()},initSearchBar=function(){$(".js-form-search").on("focusin",function(){$(".js-dropdown-form").hasClass("expanded")||$(".js-dropdown-form").addClass("expanded")})};global.prestaShopUiKit={init:function(){jQuery(function(){jQuery.propHooks.checked={set:function(e,t,i){var n=e[i]=t;return $(e).trigger("change"),n}},jQuery.fn.select2.defaults.set("theme","bootstrap"),jQuery.fn.select2.defaults.set("width","auto"),initSelect2(),initToggleButtons(),initAlerts(),initToolTips(),initSearchBar(),Object(__WEBPACK_IMPORTED_MODULE_5__components_file_input_js__.a)()})},initSelects:function(){initSelect2()},initToolTips:function(){initToolTips()}},global.prestaShopUiKit.init()}("undefined"!=typeof window?window:this,$),$(function(){var e=function(e,t){var i={};for(var n in t)e.hasOwnProperty(n)?i[n]=e[n]:i[n]=t[n];return i};$.fn.psdwl=function(t){var i=null,n={hover:"install",validate:'check',text:"default",time:3e3,default:!0},s=this;if(i=e(t,n),i.default){var r=s.attr("class").replace(/(btn-\w+)/,"$1-reverse");s.attr("class",r)}void 0!==$(s.selector).html()&&""!==$(s.selector).html()&&(i.text=$(s.selector).text()),s.html(i.hover);var a=this.css("width");s.html(i.text);var o=this.css("width"),l=parseInt(o,10)0&&t-1 in e)}function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function d(e,t,i){return Me(t)?De.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?De.grep(e,function(e){return e===t!==i}):"string"!=typeof t?De.grep(e,function(e){return me.call(t,e)>-1!==i}):De.filter(t,e,i)}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function h(e){var t={};return De.each(e.match(Ie)||[],function(e,i){t[i]=!0}),t}function p(e){return e}function f(e){throw e}function m(e,t,i,n){var s;try{e&&Me(s=e.promise)?s.call(e).done(t).fail(i):e&&Me(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}function _(){de.removeEventListener("DOMContentLoaded",_),i.removeEventListener("load",_),De.ready()}function g(e,t){return t.toUpperCase()}function v(e){return e.replace(Fe,"ms-").replace(ze,g)}function y(){this.expando=De.expando+y.uid++}function b(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ue.test(e)?JSON.parse(e):e)}function w(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(qe,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=b(i)}catch(e){}Be.set(e,t,i)}else i=void 0;return i}function M(e,t,i,n){var s,r,a=20,o=n?function(){return n.cur()}:function(){return De.css(e,t,"")},l=o(),u=i&&i[3]||(De.cssNumber[t]?"":"px"),d=(De.cssNumber[t]||"px"!==u&&+l)&&Ve.exec(De.css(e,t));if(d&&d[3]!==u){for(l/=2,u=u||d[3],d=+l||1;a--;)De.style(e,t,d+u),(1-r)*(1-(r=o()/l||.5))<=0&&(a=0),d/=r;d*=2,De.style(e,t,d+u),i=i||[]}return i&&(d=+d||+l||0,s=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=d,n.end=s)),s}function k(e){var t,i=e.ownerDocument,n=e.nodeName,s=Qe[n];return s||(t=i.body.appendChild(i.createElement(n)),s=De.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),Qe[n]=s,s)}function L(e,t){for(var i,n,s=[],r=0,a=e.length;r-1)s&&s.push(r);else if(d=De.contains(r.ownerDocument,r),a=D(h.appendChild(r),"script"),d&&T(a),i)for(c=0;r=a[c++];)tt.test(r.type||"")&&i.push(r);return h}function x(){return!0}function C(){return!1}function S(){try{return de.activeElement}catch(e){}}function E(e,t,i,n,s,r){var a,o;if("object"==typeof t){"string"!=typeof i&&(n=n||i,i=void 0);for(o in t)E(e,o,i,n,t[o],r);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=C;else if(!s)return e;return 1===r&&(a=s,s=function(e){return De().off(e),a.apply(this,arguments)},s.guid=a.guid||(a.guid=De.guid++)),e.each(function(){De.event.add(this,t,s,n,i)})}function H(e,t){return u(e,"table")&&u(11!==t.nodeType?t:t.firstChild,"tr")?De(e).children("tbody")[0]||e:e}function A(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function O(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function P(e,t){var i,n,s,r,a,o,l,u;if(1===t.nodeType){if($e.hasData(e)&&(r=$e.access(e),a=$e.set(t,r),u=r.events)){delete a.handle,a.events={};for(s in u)for(i=0,n=u[s].length;i1&&"string"==typeof f&&!we.checkClone&&dt.test(f))return e.each(function(s){var r=e.eq(s);m&&(t[0]=f.call(this,s,r.html())),j(r,t,i,n)});if(h&&(s=Y(t,e[0].ownerDocument,!1,e,n),r=s.firstChild,1===s.childNodes.length&&(s=r),r||n)){for(o=De.map(D(s,"script"),A),l=o.length;c=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-o-.5))),l}function U(e,t,i){var n=pt(e),s=N(e,t,n),r="border-box"===De.css(e,"boxSizing",!1,n),a=r;if(ht.test(s)){if(!i)return s;s="auto"}return a=a&&(we.boxSizingReliable()||s===e.style[t]),("auto"===s||!parseFloat(s)&&"inline"===De.css(e,"display",!1,n))&&(s=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(s=parseFloat(s)||0)+B(e,t,i||(r?"border":"content"),a,n,s)+"px"}function q(e,t,i,n,s){return new q.prototype.init(e,t,i,n,s)}function K(){Mt&&(!1===de.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(K):i.setTimeout(K,De.fx.interval),De.fx.tick())}function V(){return i.setTimeout(function(){wt=void 0}),wt=Date.now()}function G(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)i=Ge[n],s["margin"+i]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function J(e,t,i){for(var n,s=(Z.tweeners[t]||[]).concat(Z.tweeners["*"]),r=0,a=s.length;r=0&&iw.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[W]=!0,e}function s(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var i=e.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=t}function a(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function o(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Me(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return n(function(t){return t=+t,n(function(i,n){for(var s,r=e([],i.length,t),a=r.length;a--;)i[s=r[a]]&&(i[s]=!(n[s]=i[s]))})})}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function d(){}function c(e){for(var t=0,i=e.length,n="";t1?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function f(e,i,n){for(var s=0,r=i.length;s-1&&(n[u]=!(a[u]=c))}}else y=m(y===a?y.splice(_,y.length):y),r?r(null,a,y,l):J.apply(a,y)})}function g(e){for(var t,i,n,s=e.length,r=w.relative[e[0].type],a=r||w.relative[" "],o=r?1:0,l=h(function(e){return e===t},a,!0),u=h(function(e){return Q(t,e)>-1},a,!0),d=[function(e,i,n){var s=!r&&(n||i!==Y)||((t=i).nodeType?l(e,i,n):u(e,i,n));return t=null,s}];o1&&p(d),o>1&&c(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(re,"$1"),i,o0,r=e.length>0,a=function(n,a,o,l,u){var d,c,h,p=0,f="0",_=n&&[],g=[],v=Y,y=n||r&&w.find.TAG("*",u),b=F+=null==v?1:Math.random()||.1,M=y.length;for(u&&(Y=a===E||a||u);f!==M&&null!=(d=y[f]);f++){if(r&&d){for(c=0,a||d.ownerDocument===E||(S(d),o=!A);h=e[c++];)if(h(d,a||E,o)){l.push(d);break}u&&(F=b)}s&&((d=!h&&d)&&p--,n&&_.push(d))}if(p+=f,s&&f!==p){for(c=0;h=i[c++];)h(_,g,a,o);if(n){if(p>0)for(;f--;)_[f]||g[f]||(g[f]=V.call(l));g=m(g)}J.apply(l,g),u&&!n&&g.length>0&&p+i.length>1&&t.uniqueSort(l)}return u&&(F=b,Y=v),_};return s?n(a):a}var y,b,w,M,k,L,D,T,Y,x,C,S,E,H,A,O,P,I,j,W="sizzle"+1*new Date,N=e.document,F=0,z=0,R=i(),$=i(),B=i(),U=function(e,t){return e===t&&(C=!0),0},q={}.hasOwnProperty,K=[],V=K.pop,G=K.push,J=K.push,X=K.slice,Q=function(e,t){for(var i=0,n=e.length;i+~]|"+ee+")"+ee+"*"),le=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ue=new RegExp(ne),de=new RegExp("^"+te+"$"),ce={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ne),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,fe=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_e=/[+~]/,ge=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ve=function(e,t,i){var n="0x"+t-65536;return n!==n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){S()},Me=h(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(K=X.call(N.childNodes),N.childNodes),K[N.childNodes.length].nodeType}catch(e){J={apply:K.length?function(e,t){G.apply(e,X.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}b=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},S=t.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:N;return n!==E&&9===n.nodeType&&n.documentElement?(E=n,H=E.documentElement,A=!k(E),N!==E&&(i=E.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",we,!1):i.attachEvent&&i.attachEvent("onunload",we)),b.attributes=s(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=s(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=fe.test(E.getElementsByClassName),b.getById=s(function(e){return H.appendChild(e).id=W,!E.getElementsByName||!E.getElementsByName(W).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(ge,ve);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&A){var i=t.getElementById(e);return i?[i]:[]}}):(w.filter.ID=function(e){var t=e.replace(ge,ve);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&A){var i,n,s,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(s=t.getElementsByName(e),n=0;r=s[n++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,r=t.getElementsByTagName(e);if("*"===e){for(;i=r[s++];)1===i.nodeType&&n.push(i);return n}return r},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&A)return t.getElementsByClassName(e)},P=[],O=[],(b.qsa=fe.test(E.querySelectorAll))&&(s(function(e){H.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+W+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+W+"+*").length||O.push(".#.+[+~]")}),s(function(e){e.innerHTML="";var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),H.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(b.matchesSelector=fe.test(I=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&s(function(e){b.disconnectedMatch=I.call(e,"*"),I.call(e,"[s!='']:x"),P.push("!=",ne)}),O=O.length&&new RegExp(O.join("|")),P=P.length&&new RegExp(P.join("|")),t=fe.test(H.compareDocumentPosition),j=t||fe.test(H.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return C=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!b.sortDetached&&t.compareDocumentPosition(e)===i?e===E||e.ownerDocument===N&&j(N,e)?-1:t===E||t.ownerDocument===N&&j(N,t)?1:x?Q(x,e)-Q(x,t):0:4&i?-1:1)}:function(e,t){if(e===t)return C=!0,0;var i,n=0,s=e.parentNode,r=t.parentNode,o=[e],l=[t];if(!s||!r)return e===E?-1:t===E?1:s?-1:r?1:x?Q(x,e)-Q(x,t):0;if(s===r)return a(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;o[n]===l[n];)n++;return n?a(o[n],l[n]):o[n]===N?-1:l[n]===N?1:0},E):E},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==E&&S(e),i=i.replace(le,"='$1']"),b.matchesSelector&&A&&!B[i+" "]&&(!P||!P.test(i))&&(!O||!O.test(i)))try{var n=I.call(e,i);if(n||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return t(i,E,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==E&&S(e),j(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==E&&S(e);var i=w.attrHandle[t.toLowerCase()],n=i&&q.call(w.attrHandle,t.toLowerCase())?i(e,t,!A):void 0;return void 0!==n?n:b.attributes||!A?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.escape=function(e){return(e+"").replace(ye,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,s=0;if(C=!b.detectDuplicates,x=!b.sortStable&&e.slice(0),e.sort(U),C){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)e.splice(i[n],1)}return x=null,e},M=t.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=M(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=M(t);return i},w=t.selectors={cacheLength:50,createPseudo:n,match:ce,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ge,ve),e[3]=(e[3]||e[4]||e[5]||"").replace(ge,ve),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return ce.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&ue.test(i)&&(t=L(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ge,ve).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&R(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(s){var r=t.attr(s,e);return null==r?"!="===i:!i||(r+="","="===i?r===n:"!="===i?r!==n:"^="===i?n&&0===r.indexOf(n):"*="===i?n&&r.indexOf(n)>-1:"$="===i?n&&r.slice(-n.length)===n:"~="===i?(" "+r.replace(se," ")+" ").indexOf(n)>-1:"|="===i&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,i,n,s){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,l){var u,d,c,h,p,f,m=r!==a?"nextSibling":"previousSibling",_=t.parentNode,g=o&&t.nodeName.toLowerCase(),v=!l&&!o,y=!1;if(_){if(r){for(;m;){for(h=t;h=h[m];)if(o?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?_.firstChild:_.lastChild],a&&v){for(h=_,c=h[W]||(h[W]={}),d=c[h.uniqueID]||(c[h.uniqueID]={}),u=d[e]||[],p=u[0]===F&&u[1],y=p&&u[2],h=p&&_.childNodes[p];h=++p&&h&&h[m]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===t){d[e]=[F,p,y];break}}else if(v&&(h=t,c=h[W]||(h[W]={}),d=c[h.uniqueID]||(c[h.uniqueID]={}),u=d[e]||[],p=u[0]===F&&u[1],y=p),!1===y)for(;(h=++p&&h&&h[m]||(y=p=0)||f.pop())&&((o?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++y||(v&&(c=h[W]||(h[W]={}),d=c[h.uniqueID]||(c[h.uniqueID]={}),d[e]=[F,y]),h!==t)););return(y-=s)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,i){var s,r=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[W]?r(i):r.length>1?(s=[e,e,"",i],w.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,s=r(e,i),a=s.length;a--;)n=Q(e,s[a]),e[n]=!(t[n]=s[a])}):function(e){return r(e,0,s)}):r}},pseudos:{not:n(function(e){var t=[],i=[],s=D(e.replace(re,"$1"));return s[W]?n(function(e,t,i,n){for(var r,a=s(e,null,n,[]),o=e.length;o--;)(r=a[o])&&(e[o]=!(t[o]=r))}):function(e,n,r){return t[0]=e,s(t,null,r,i),t[0]=null,!i.pop()}}),has:n(function(e){return function(i){return t(e,i).length>0}}),contains:n(function(e){return e=e.replace(ge,ve),function(t){return(t.textContent||t.innerText||M(t)).indexOf(e)>-1}}),lang:n(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ge,ve).toLowerCase(),function(t){var i;do{if(i=A?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===H},focus:function(e){return e===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:o(!1),disabled:o(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,i){return[i<0?i+t:i]}),even:l(function(e,t){for(var i=0;i=0;)e.push(n);return e}),gt:l(function(e,t,i){for(var n=i<0?i+t:i;++n2&&"ID"===(a=r[0]).type&&9===t.nodeType&&A&&w.relative[r[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(ge,ve),t)||[])[0]))return i;d&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(s=ce.needsContext.test(e)?0:r.length;s--&&(a=r[s],!w.relative[o=a.type]);)if((l=w.find[o])&&(n=l(a.matches[0].replace(ge,ve),_e.test(r[0].type)&&u(t.parentNode)||t))){if(r.splice(s,1),!(e=n.length&&c(r)))return J.apply(i,n),i;break}}return(d||D(e,h))(n,t,!A,i,!t||_e.test(e)&&u(t.parentNode)||t),i},b.sortStable=W.split("").sort(U).join("")===W,b.detectDuplicates=!!C,S(),b.sortDetached=s(function(e){return 1&e.compareDocumentPosition(E.createElement("fieldset"))}),s(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&s(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),s(function(e){return null==e.getAttribute("disabled")})||r(Z,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),t}(i);De.find=Ye,De.expr=Ye.selectors,De.expr[":"]=De.expr.pseudos,De.uniqueSort=De.unique=Ye.uniqueSort,De.text=Ye.getText,De.isXMLDoc=Ye.isXML,De.contains=Ye.contains,De.escapeSelector=Ye.escape;var xe=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&De(e).is(i))break;n.push(e)}return n},Ce=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},Se=De.expr.match.needsContext,Ee=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;De.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?De.find.matchesSelector(n,e)?[n]:[]:De.find.matches(e,De.grep(t,function(e){return 1===e.nodeType}))},De.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(De(e).filter(function(){for(t=0;t1?De.uniqueSort(i):i},filter:function(e){return this.pushStack(d(this,e||[],!1))},not:function(e){return this.pushStack(d(this,e||[],!0))},is:function(e){return!!d(this,"string"==typeof e&&Se.test(e)?De(e):e||[],!1).length}});var He,Ae=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(De.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||He,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ae.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof De?t[0]:t,De.merge(this,De.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:de,!0)),Ee.test(n[1])&&De.isPlainObject(t))for(n in t)Me(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return s=de.getElementById(n[2]),s&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):Me(e)?void 0!==i.ready?i.ready(e):e(De):De.makeArray(e,this)}).prototype=De.fn,He=De(de);var Oe=/^(?:parents|prev(?:Until|All))/,Pe={children:!0,contents:!0,next:!0,prev:!0};De.fn.extend({has:function(e){var t=De(e,this),i=t.length;return this.filter(function(){for(var e=0;e-1:1===i.nodeType&&De.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(r.length>1?De.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?me.call(De(e),this[0]):me.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(De.uniqueSort(De.merge(this.get(),De(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),De.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xe(e,"parentNode")},parentsUntil:function(e,t,i){return xe(e,"parentNode",i)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return xe(e,"nextSibling")},prevAll:function(e){return xe(e,"previousSibling")},nextUntil:function(e,t,i){return xe(e,"nextSibling",i)},prevUntil:function(e,t,i){return xe(e,"previousSibling",i)},siblings:function(e){return Ce((e.parentNode||{}).firstChild,e)},children:function(e){return Ce(e.firstChild)},contents:function(e){return u(e,"iframe")?e.contentDocument:(u(e,"template")&&(e=e.content||e),De.merge([],e.childNodes))}},function(e,t){De.fn[e]=function(i,n){var s=De.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=De.filter(n,s)),this.length>1&&(Pe[e]||De.uniqueSort(s),Oe.test(e)&&s.reverse()),this.pushStack(s)}});var Ie=/[^\x20\t\r\n\f]+/g;De.Callbacks=function(e){e="string"==typeof e?h(e):De.extend({},e);var t,i,n,s,r=[],a=[],l=-1,u=function(){for(s=s||e.once,n=t=!0;a.length;l=-1)for(i=a.shift();++l-1;)r.splice(i,1),i<=l&&l--}),this},has:function(e){return e?De.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=a=[],r=i="",this},disabled:function(){return!r},lock:function(){return s=a=[],i||t||(r=i=""),this},locked:function(){return!!s},fireWith:function(e,i){return s||(i=i||[],i=[e,i.slice?i.slice():i],a.push(i),t||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},De.extend({Deferred:function(e){var t=[["notify","progress",De.Callbacks("memory"),De.Callbacks("memory"),2],["resolve","done",De.Callbacks("once memory"),De.Callbacks("once memory"),0,"resolved"],["reject","fail",De.Callbacks("once memory"),De.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return De.Deferred(function(i){De.each(t,function(t,n){var s=Me(e[n[4]])&&e[n[4]];r[n[1]](function(){var e=s&&s.apply(this,arguments);e&&Me(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[e]:arguments)})}),e=null}).promise()},then:function(e,n,s){function r(e,t,n,s){return function(){var o=this,l=arguments,u=function(){var i,u;if(!(e=a&&(n!==f&&(o=void 0,l=[i]),t.rejectWith(o,l))}};e?d():(De.Deferred.getStackHook&&(d.stackTrace=De.Deferred.getStackHook()),i.setTimeout(d))}}var a=0;return De.Deferred(function(i){t[0][3].add(r(0,i,Me(s)?s:p,i.notifyWith)),t[1][3].add(r(0,i,Me(e)?e:p)),t[2][3].add(r(0,i,Me(n)?n:f))}).promise()},promise:function(e){return null!=e?De.extend(e,s):s}},r={};return De.each(t,function(e,i){var a=i[2],o=i[5];s[i[1]]=a.add,o&&a.add(function(){n=o},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=a.fireWith}),s.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,i=t,n=Array(i),s=he.call(arguments),r=De.Deferred(),a=function(e){return function(i){n[e]=this,s[e]=arguments.length>1?he.call(arguments):i,--t||r.resolveWith(n,s)}};if(t<=1&&(m(e,r.done(a(i)).resolve,r.reject,!t),"pending"===r.state()||Me(s[i]&&s[i].then)))return r.then();for(;i--;)m(s[i],a(i),r.reject);return r.promise()}});var je=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;De.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&je.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},De.readyException=function(e){i.setTimeout(function(){throw e})};var We=De.Deferred();De.fn.ready=function(e){return We.then(e).catch(function(e){De.readyException(e)}),this},De.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--De.readyWait:De.isReady)||(De.isReady=!0,!0!==e&&--De.readyWait>0||We.resolveWith(de,[De]))}}),De.ready.then=We.then,"complete"===de.readyState||"loading"!==de.readyState&&!de.documentElement.doScroll?i.setTimeout(De.ready):(de.addEventListener("DOMContentLoaded",_),i.addEventListener("load",_));var Ne=function(e,t,i,n,s,r,a){var l=0,u=e.length,d=null==i;if("object"===o(i)){s=!0;for(l in i)Ne(e,t,l,i[l],!0,r,a)}else if(void 0!==n&&(s=!0,Me(n)||(a=!0),d&&(a?(t.call(e,n),t=null):(d=t,t=function(e,t,i){return d.call(De(e),i)})),t))for(;l1,null,!0)},removeData:function(e){return this.each(function(){Be.remove(this,e)})}}),De.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=$e.get(e,t),i&&(!n||Array.isArray(i)?n=$e.access(e,t,De.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=De.queue(e,t),n=i.length,s=i.shift(),r=De._queueHooks(e,t),a=function(){De.dequeue(e,t)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete r.stop,s.call(e,a,r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return $e.get(e,i)||$e.access(e,i,{empty:De.Callbacks("once memory").add(function(){$e.remove(e,[t+"queue",i])})})}}),De.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]+)/i,tt=/^$|^module$|\/(?:java|ecma)script/i,it={option:[1,""],thead:[1,"
    ").append(e("").attr({"data-action":"today",title:n.tooltips.today}).append(e("").addClass(n.icons.today)))),!n.sideBySide&&Y()&&T()&&t.push(e("").append(e("").attr({"data-action":"togglePicker",title:n.tooltips.selectTime}).append(e("").addClass(n.icons.time)))),n.showClear&&t.push(e("").append(e("").attr({"data-action":"clear",title:n.tooltips.clear}).append(e("").addClass(n.icons.clear)))),n.showClose&&t.push(e("").append(e("").attr({"data-action":"close",title:n.tooltips.close}).append(e("").addClass(n.icons.close)))),e("").addClass("table-condensed").append(e("").append(e("").append(t)))},H=function(){var t=e("
    ").addClass("bootstrap-datetimepicker-widget dropdown-menu"),i=e("
    ").addClass("datepicker").append(x()),s=e("
    ").addClass("timepicker").append(S()),r=e("
      ").addClass("list-unstyled"),a=e("
    • ").addClass("picker-switch"+(n.collapse?" accordion-toggle":"")).append(E());return n.inline&&t.removeClass("dropdown-menu"),o&&t.addClass("usetwentyfour"),D("s")&&!o&&t.addClass("wider"),n.sideBySide&&Y()&&T()?(t.addClass("timepicker-sbs"),"top"===n.toolbarPlacement&&t.append(a),t.append(e("
      ").addClass("row").append(i.addClass("col-md-6")).append(s.addClass("col-md-6"))),"bottom"===n.toolbarPlacement&&t.append(a),t):("top"===n.toolbarPlacement&&r.append(a),Y()&&r.append(e("
    • ").addClass(n.collapse&&T()?"collapse in":"").append(i)),"default"===n.toolbarPlacement&&r.append(a),T()&&r.append(e("
    • ").addClass(n.collapse&&Y()?"collapse":"").append(s)),"bottom"===n.toolbarPlacement&&r.append(a),t.append(r))},A=function(){var t,s=(p||i).position(),r=(p||i).offset(),a=n.widgetPositioning.vertical,o=n.widgetPositioning.horizontal;if(n.widgetParent)t=n.widgetParent.append(f);else if(i.is("input"))t=i.after(f).parent();else{if(n.inline)return void(t=i.append(f));t=i,i.children().first().after(f)}if("auto"===a&&(a=r.top+1.5*f.height()>=e(window).height()+e(window).scrollTop()&&f.height()+i.outerHeight()e(window).width()?"right":"left"),"top"===a?f.addClass("top").removeClass("bottom"):f.addClass("bottom").removeClass("top"),"right"===o?f.addClass("pull-right"):f.removeClass("pull-right"),"static"===t.css("position")&&(t=t.parents().filter(function(){return"static"!==e(this).css("position")}).first()),0===t.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");f.css({top:"top"===a?"auto":s.top+i.outerHeight(),bottom:"top"===a?t.outerHeight()-(t===i?0:s.top):"auto",left:"left"===o?t===i?0:s.left:"auto",right:"left"===o?"auto":t.outerWidth()-i.outerWidth()-(t===i?0:s.left)})},O=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||i.trigger(e)},P=function(e){"y"===e&&(e="YYYY"),O({type:"dp.update",change:e,viewDate:r.clone()})},I=function(e){f&&(e&&(d=Math.max(m,Math.min(3,d+e))),f.find(".datepicker > div").hide().filter(".datepicker-"+_[d].clsName).show())},j=function(){var t=e("
    "),i=r.clone().startOf("w").startOf("d");for(!0===n.calendarWeeks&&t.append(e(""),n.calendarWeeks&&i.append('"),u.push(i)),d=["day"],t.isBefore(r,"M")&&d.push("old"),t.isAfter(r,"M")&&d.push("new"),t.isSame(s,"d")&&!h&&d.push("active"),R(t,"d")||d.push("disabled"),t.isSame(L(),"d")&&d.push("today"),0!==t.day()&&6!==t.day()||d.push("weekend"),O({type:"dp.classify",date:t,classNames:d}),i.append('"),t.add(1,"d");o.find("tbody").empty().append(u),B(),U(),q()}},V=function(){var t=f.find(".timepicker-hours table"),i=r.clone().startOf("d"),n=[],s=e("");for(r.hour()>11&&!o&&i.hour(12);i.isSame(r,"d")&&(o||r.hour()<12&&i.hour()<12||r.hour()>11);)i.hour()%4==0&&(s=e(""),n.push(s)),s.append('"),i.add(1,"h");t.empty().append(n)},G=function(){for(var t=f.find(".timepicker-minutes table"),i=r.clone().startOf("h"),s=[],a=e(""),o=1===n.stepping?5:n.stepping;r.isSame(i,"h");)i.minute()%(4*o)==0&&(a=e(""),s.push(a)),a.append('"),i.add(o,"m");t.empty().append(s)},J=function(){for(var t=f.find(".timepicker-seconds table"),i=r.clone().startOf("m"),n=[],s=e("");r.isSame(i,"m");)i.second()%20==0&&(s=e(""),n.push(s)),s.append('"),i.add(5,"s");t.empty().append(n)},X=function(){var e,t,i=f.find(".timepicker span[data-time-component]");o||(e=f.find(".timepicker [data-action=togglePeriod]"),t=s.clone().add(s.hours()>=12?-12:12,"h"),e.text(s.format("A")),R(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),i.filter("[data-time-component=hours]").text(s.format(o?"HH":"hh")),i.filter("[data-time-component=minutes]").text(s.format("mm")),i.filter("[data-time-component=seconds]").text(s.format("ss")),V(),G(),J()},Q=function(){f&&(K(),X())},Z=function(e){var t=h?null:s;if(!e)return h=!0,a.val(""),i.data("date",""),O({type:"dp.change",date:!1,oldDate:t}),void Q();if(e=e.clone().locale(n.locale),k()&&e.tz(n.timeZone),1!==n.stepping)for(e.minutes(Math.round(e.minutes()/n.stepping)*n.stepping).seconds(0);n.minDate&&e.isBefore(n.minDate);)e.add(n.stepping,"minutes");R(e)?(s=e,r=s.clone(),a.val(s.format(l)),i.data("date",s.format(l)),h=!1,Q(),O({type:"dp.change",date:s.clone(),oldDate:t})):(n.keepInvalid?O({type:"dp.change",date:e,oldDate:t}):a.val(h?"":s.format(l)),O({type:"dp.error",date:e,oldDate:t}))},ee=function(){var t=!1;return f?(f.find(".collapse").each(function(){var i=e(this).data("collapse");return!i||!i.transitioning||(t=!0,!1)}),t?c:(p&&p.hasClass("btn")&&p.toggleClass("active"),f.hide(),e(window).off("resize",A),f.off("click","[data-action]"),f.off("mousedown",!1),f.remove(),f=!1,O({type:"dp.hide",date:s.clone()}),a.blur(),r=s.clone(),c)):c},te=function(){Z(null)},ie=function(e){return void 0===n.parseInputDate?(!t.isMoment(e)||e instanceof Date)&&(e=L(e)):e=n.parseInputDate(e),e},ne={next:function(){var e=_[d].navFnc;r.add(_[d].navStep,e),K(),P(e)},previous:function(){var e=_[d].navFnc;r.subtract(_[d].navStep,e),K(),P(e)},pickerSwitch:function(){I(1)},selectMonth:function(t){var i=e(t.target).closest("tbody").find("span").index(e(t.target));r.month(i),d===m?(Z(s.clone().year(r.year()).month(r.month())),n.inline||ee()):(I(-1),K()),P("M")},selectYear:function(t){var i=parseInt(e(t.target).text(),10)||0;r.year(i),d===m?(Z(s.clone().year(r.year())),n.inline||ee()):(I(-1),K()),P("YYYY")},selectDecade:function(t){var i=parseInt(e(t.target).data("selection"),10)||0;r.year(i),d===m?(Z(s.clone().year(r.year())),n.inline||ee()):(I(-1),K()),P("YYYY")},selectDay:function(t){var i=r.clone();e(t.target).is(".old")&&i.subtract(1,"M"),e(t.target).is(".new")&&i.add(1,"M"),Z(i.date(parseInt(e(t.target).text(),10))),T()||n.keepOpen||n.inline||ee()},incrementHours:function(){var e=s.clone().add(1,"h");R(e,"h")&&Z(e)},incrementMinutes:function(){var e=s.clone().add(n.stepping,"m");R(e,"m")&&Z(e)},incrementSeconds:function(){var e=s.clone().add(1,"s");R(e,"s")&&Z(e)},decrementHours:function(){var e=s.clone().subtract(1,"h");R(e,"h")&&Z(e)},decrementMinutes:function(){var e=s.clone().subtract(n.stepping,"m");R(e,"m")&&Z(e)},decrementSeconds:function(){var e=s.clone().subtract(1,"s");R(e,"s")&&Z(e)},togglePeriod:function(){Z(s.clone().add(s.hours()>=12?-12:12,"h"))},togglePicker:function(t){var i,s=e(t.target),r=s.closest("ul"),a=r.find(".in"),o=r.find(".collapse:not(.in)");if(a&&a.length){if((i=a.data("collapse"))&&i.transitioning)return;a.collapse?(a.collapse("hide"),o.collapse("show")):(a.removeClass("in"),o.addClass("in")),s.is("span")?s.toggleClass(n.icons.time+" "+n.icons.date):s.find("span").toggleClass(n.icons.time+" "+n.icons.date)}},showPicker:function(){f.find(".timepicker > div:not(.timepicker-picker)").hide(),f.find(".timepicker .timepicker-picker").show()},showHours:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-hours").show()},showMinutes:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var i=parseInt(e(t.target).text(),10);o||(s.hours()>=12?12!==i&&(i+=12):12===i&&(i=0)),Z(s.clone().hours(i)),ne.showPicker.call(c)},selectMinute:function(t){Z(s.clone().minutes(parseInt(e(t.target).text(),10))),ne.showPicker.call(c)},selectSecond:function(t){Z(s.clone().seconds(parseInt(e(t.target).text(),10))),ne.showPicker.call(c)},clear:te,today:function(){var e=L();R(e,"d")&&Z(e)},close:ee},se=function(t){return!e(t.currentTarget).is(".disabled")&&(ne[e(t.currentTarget).data("action")].apply(c,arguments),!1)},re=function(){var t,i={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}};return a.prop("disabled")||!n.ignoreReadonly&&a.prop("readonly")||f?c:(void 0!==a.val()&&0!==a.val().trim().length?Z(ie(a.val().trim())):h&&n.useCurrent&&(n.inline||a.is("input")&&0===a.val().trim().length)&&(t=L(),"string"==typeof n.useCurrent&&(t=i[n.useCurrent](t)),Z(t)),f=H(),j(),$(),f.find(".timepicker-hours").hide(),f.find(".timepicker-minutes").hide(),f.find(".timepicker-seconds").hide(),Q(),I(),e(window).on("resize",A),f.on("click","[data-action]",se),f.on("mousedown",!1),p&&p.hasClass("btn")&&p.toggleClass("active"),A(),f.show(),n.focusOnShow&&!a.is(":focus")&&a.focus(),O({type:"dp.show"}),c)},ae=function(){return f?ee():re()},oe=function(e){var t,i,s,r,a=null,o=[],l={},u=e.which;M[u]="p";for(t in M)M.hasOwnProperty(t)&&"p"===M[t]&&(o.push(t),parseInt(t,10)!==u&&(l[t]=!0));for(t in n.keyBinds)if(n.keyBinds.hasOwnProperty(t)&&"function"==typeof n.keyBinds[t]&&(s=t.split(" "),s.length===o.length&&w[u]===s[s.length-1])){for(r=!0,i=s.length-2;i>=0;i--)if(!(w[s[i]]in l)){r=!1;break}if(r){a=n.keyBinds[t];break}}a&&(a.call(c,f),e.stopPropagation(),e.preventDefault())},le=function(e){M[e.which]="r",e.stopPropagation(),e.preventDefault()},ue=function(t){var i=e(t.target).val().trim(),n=i?ie(i):null;return Z(n),t.stopImmediatePropagation(),!1},de=function(){a.off({change:ue,blur:blur,keydown:oe,keyup:le,focus:n.allowInputToggle?ee:""}),i.is("input")?a.off({focus:re}):p&&(p.off("click",ae),p.off("mousedown",!1))},ce=function(t){var i={};return e.each(t,function(){var e=ie(this);e.isValid()&&(i[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(i).length&&i},he=function(t){var i={};return e.each(t,function(){i[this]=!0}),!!Object.keys(i).length&&i},pe=function(){var e=n.format||"L LT";l=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return(s.localeData().longDateFormat(e)||e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return s.localeData().longDateFormat(e)||e})}),u=n.extraFormats?n.extraFormats.slice():[],u.indexOf(e)<0&&u.indexOf(l)<0&&u.push(l),o=l.toLowerCase().indexOf("a")<1&&l.replace(/\[.*?\]/g,"").indexOf("h")<1,D("y")&&(m=2),D("M")&&(m=1),D("d")&&(m=0),d=Math.max(m,d),h||Z(s)};if(c.destroy=function(){ee(),de(),i.removeData("DateTimePicker"),i.removeData("date")},c.toggle=ae,c.show=re,c.hide=ee,c.disable=function(){return ee(),p&&p.hasClass("btn")&&p.addClass("disabled"),a.prop("disabled",!0),c},c.enable=function(){return p&&p.hasClass("btn")&&p.removeClass("disabled"),a.prop("disabled",!1),c},c.ignoreReadonly=function(e){if(0===arguments.length)return n.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return n.ignoreReadonly=e,c},c.options=function(t){if(0===arguments.length)return e.extend(!0,{},n);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return e.extend(!0,n,t),e.each(n,function(e,t){if(void 0===c[e])throw new TypeError("option "+e+" is not recognized!");c[e](t)}),c},c.date=function(e){if(0===arguments.length)return h?null:s.clone();if(!(null===e||"string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return Z(null===e?null:ie(e)),c},c.format=function(e){if(0===arguments.length)return n.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a string or boolean:false parameter "+e);return n.format=e,l&&pe(),c},c.timeZone=function(e){if(0===arguments.length)return n.timeZone;if("string"!=typeof e)throw new TypeError("newZone() expects a string parameter");return n.timeZone=e,c},c.dayViewHeaderFormat=function(e){if(0===arguments.length)return n.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return n.dayViewHeaderFormat=e,c},c.extraFormats=function(e){if(0===arguments.length)return n.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return n.extraFormats=e,u&&pe(),c},c.disabledDates=function(t){if(0===arguments.length)return n.disabledDates?e.extend({},n.disabledDates):n.disabledDates;if(!t)return n.disabledDates=!1,Q(),c;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return n.disabledDates=ce(t),n.enabledDates=!1,Q(),c},c.enabledDates=function(t){if(0===arguments.length)return n.enabledDates?e.extend({},n.enabledDates):n.enabledDates;if(!t)return n.enabledDates=!1,Q(),c;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return n.enabledDates=ce(t),n.disabledDates=!1,Q(),c},c.daysOfWeekDisabled=function(e){if(0===arguments.length)return n.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return n.daysOfWeekDisabled=!1,Q(),c;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(n.daysOfWeekDisabled=e.reduce(function(e,t){return(t=parseInt(t,10))>6||t<0||isNaN(t)?e:(-1===e.indexOf(t)&&e.push(t),e)},[]).sort(),n.useCurrent&&!n.keepInvalid){for(var t=0;!R(s,"d");){if(s.add(1,"d"),31===t)throw"Tried 31 times to find a valid date";t++}Z(s)}return Q(),c},c.maxDate=function(e){if(0===arguments.length)return n.maxDate?n.maxDate.clone():n.maxDate;if("boolean"==typeof e&&!1===e)return n.maxDate=!1,Q(),c;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=L()));var t=ie(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(n.minDate&&t.isBefore(n.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(l));return n.maxDate=t,n.useCurrent&&!n.keepInvalid&&s.isAfter(e)&&Z(n.maxDate),r.isAfter(t)&&(r=t.clone().subtract(n.stepping,"m")),Q(),c},c.minDate=function(e){if(0===arguments.length)return n.minDate?n.minDate.clone():n.minDate;if("boolean"==typeof e&&!1===e)return n.minDate=!1,Q(),c;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=L()));var t=ie(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(n.maxDate&&t.isAfter(n.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(l));return n.minDate=t,n.useCurrent&&!n.keepInvalid&&s.isBefore(e)&&Z(n.minDate),r.isBefore(t)&&(r=t.clone().add(n.stepping,"m")),Q(),c},c.defaultDate=function(e){if(0===arguments.length)return n.defaultDate?n.defaultDate.clone():n.defaultDate;if(!e)return n.defaultDate=!1,c;"string"==typeof e&&(e="now"===e||"moment"===e?L():L(e));var t=ie(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!R(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return n.defaultDate=t,(n.defaultDate&&n.inline||""===a.val().trim())&&Z(n.defaultDate),c},c.locale=function(e){if(0===arguments.length)return n.locale;if(!t.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return n.locale=e,s.locale(n.locale),r.locale(n.locale),l&&pe(),f&&(ee(),re()),c},c.stepping=function(e){return 0===arguments.length?n.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),n.stepping=e,c)},c.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return n.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return n.useCurrent=e,c},c.collapse=function(e){if(0===arguments.length)return n.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return n.collapse===e?c:(n.collapse=e,f&&(ee(),re()),c)},c.icons=function(t){if(0===arguments.length)return e.extend({},n.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return e.extend(n.icons,t),f&&(ee(),re()),c},c.tooltips=function(t){if(0===arguments.length)return e.extend({},n.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return e.extend(n.tooltips,t),f&&(ee(),re()),c},c.useStrict=function(e){if(0===arguments.length)return n.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return n.useStrict=e,c},c.sideBySide=function(e){if(0===arguments.length)return n.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return n.sideBySide=e,f&&(ee(),re()),c},c.viewMode=function(e){if(0===arguments.length)return n.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===g.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+g.join(", ")+") value");return n.viewMode=e,d=Math.max(g.indexOf(e),m),I(),c},c.toolbarPlacement=function(e){if(0===arguments.length)return n.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===b.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+b.join(", ")+") value");return n.toolbarPlacement=e,f&&(ee(),re()),c},c.widgetPositioning=function(t){if(0===arguments.length)return e.extend({},n.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===y.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+y.join(", ")+")");n.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===v.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+v.join(", ")+")");n.widgetPositioning.vertical=t.vertical}return Q(),c},c.calendarWeeks=function(e){if(0===arguments.length)return n.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return n.calendarWeeks=e,Q(),c},c.showTodayButton=function(e){if(0===arguments.length)return n.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return n.showTodayButton=e,f&&(ee(),re()),c},c.showClear=function(e){if(0===arguments.length)return n.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return n.showClear=e,f&&(ee(),re()),c},c.widgetParent=function(t){if(0===arguments.length)return n.widgetParent;if("string"==typeof t&&(t=e(t)),null!==t&&"string"!=typeof t&&!(t instanceof e))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return n.widgetParent=t,f&&(ee(),re()),c},c.keepOpen=function(e){if(0===arguments.length)return n.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return n.keepOpen=e,c},c.focusOnShow=function(e){if(0===arguments.length)return n.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return n.focusOnShow=e,c},c.inline=function(e){if(0===arguments.length)return n.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return n.inline=e,c},c.clear=function(){return te(),c},c.keyBinds=function(e){return 0===arguments.length?n.keyBinds:(n.keyBinds=e,c)},c.getMoment=function(e){return L(e)},c.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return n.debug=e,c},c.allowInputToggle=function(e){if(0===arguments.length)return n.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return n.allowInputToggle=e,c},c.showClose=function(e){if(0===arguments.length)return n.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return n.showClose=e,c},c.keepInvalid=function(e){if(0===arguments.length)return n.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return n.keepInvalid=e,c},c.datepickerInput=function(e){if(0===arguments.length)return n.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return n.datepickerInput=e,c},c.parseInputDate=function(e){if(0===arguments.length)return n.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return n.parseInputDate=e,c},c.disabledTimeIntervals=function(t){if(0===arguments.length)return n.disabledTimeIntervals?e.extend({},n.disabledTimeIntervals):n.disabledTimeIntervals;if(!t)return n.disabledTimeIntervals=!1,Q(),c;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return n.disabledTimeIntervals=t,Q(),c},c.disabledHours=function(t){if(0===arguments.length)return n.disabledHours?e.extend({},n.disabledHours):n.disabledHours;if(!t)return n.disabledHours=!1,Q(),c;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(n.disabledHours=he(t),n.enabledHours=!1,n.useCurrent&&!n.keepInvalid){for(var i=0;!R(s,"h");){if(s.add(1,"h"),24===i)throw"Tried 24 times to find a valid date";i++}Z(s)}return Q(),c},c.enabledHours=function(t){if(0===arguments.length)return n.enabledHours?e.extend({},n.enabledHours):n.enabledHours;if(!t)return n.enabledHours=!1,Q(),c;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(n.enabledHours=he(t),n.disabledHours=!1,n.useCurrent&&!n.keepInvalid){for(var i=0;!R(s,"h");){if(s.add(1,"h"),24===i)throw"Tried 24 times to find a valid date";i++}Z(s)}return Q(),c},c.viewDate=function(e){if(0===arguments.length)return r.clone();if(!e)return r=s.clone(),c;if(!("string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return r=ie(e),P(),c},i.is("input"))a=i;else if(a=i.find(n.datepickerInput),0===a.length)a=i.find("input");else if(!a.is("input"))throw new Error('CSS class "'+n.datepickerInput+'" cannot be applied to non input element');if(i.hasClass("input-group")&&(p=0===i.find(".datepickerbutton").length?i.find(".input-group-addon"):i.find(".datepickerbutton")),!n.inline&&!a.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return s=L(),r=s.clone(),e.extend(!0,n,function(){var t,s={};return t=i.is("input")||n.inline?i.data():i.find("input").data(),t.dateOptions&&t.dateOptions instanceof Object&&(s=e.extend(!0,s,t.dateOptions)),e.each(n,function(e){var i="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==t[i]&&(s[e]=t[i])}),s}()),c.options(n),pe(),function(){a.on({change:ue,blur:n.debug?"":ee,keydown:oe,keyup:le,focus:n.allowInputToggle?re:""}),i.is("input")?a.on({focus:re}):p&&(p.on("click",ae),p.on("mousedown",!1))}(),a.prop("disabled")&&c.disable(),a.is("input")&&0!==a.val().trim().length?Z(ie(a.val().trim())):n.defaultDate&&void 0===a.attr("placeholder")&&Z(n.defaultDate),n.inline&&re(),c};return e.fn.datetimepicker=function(t){t=t||{};var n,s=Array.prototype.slice.call(arguments,1),r=!0,a=["destroy","hide","show","toggle"];if("object"==typeof t)return this.each(function(){var n,s=e(this);s.data("DateTimePicker")||(n=e.extend(!0,{},e.fn.datetimepicker.defaults,t),s.data("DateTimePicker",i(s,n)))});if("string"==typeof t)return this.each(function(){var i=e(this),a=i.data("DateTimePicker");if(!a)throw new Error('bootstrap-datetimepicker("'+t+'") method was called on an element that is not using DateTimePicker');n=a[t].apply(a,s),r=n===a}),r||e.inArray(t,a)>-1?this:n;throw new TypeError("Invalid arguments for DateTimePicker: "+t)},e.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(e){if(!e)return void this.show();var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))},"control up":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e&&e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},e.fn.datetimepicker})}).call(window)}).call(t,i(41),i(14))},function(e,t,i){var n=!1;(function(){!function(e){"function"==typeof n&&n.amd?n(["jquery"],e):e(window.jQuery||window.Zepto)}(function(e){var t,i,n,s,r,a,o=function(){},l=!!window.jQuery,u=e(window),d=function(e,i){t.ev.on("mfp"+e+".mfp",i)},c=function(t,i,n,s){var r=document.createElement("div");return r.className="mfp-"+t,n&&(r.innerHTML=n),s?i&&i.appendChild(r):(r=e(r),i&&r.appendTo(i)),r},h=function(i,n){t.ev.triggerHandler("mfp"+i,n),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(n)?n:[n]))},p=function(i){return i===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=i),t.currTemplate.closeBtn},f=function(){e.magnificPopup.instance||(t=new o,t.init(),e.magnificPopup.instance=t)},m=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};o.prototype={constructor:o,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=m(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var s;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var a,o=i.items;for(s=0;s(e||u.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!e.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,i,n){var s;n.data&&(i=e.extend(n.data,i)),h("MarkupParse",[t,i,n]),e.each(i,function(i,n){if(void 0===n||!1===n)return!0;if(s=i.split("_"),s.length>1){var r=t.find(".mfp-"+s[0]);if(r.length>0){var a=s[1];"replaceWith"===a?r[0]!==n[0]&&r.replaceWith(n):"img"===a?r.is("img")?r.attr("src",n):r.replaceWith(e("").attr("src",n).attr("class",r.attr("class"))):r.attr(s[1],n)}}else t.find(".mfp-"+i).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(t,i){return f(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){f();var n=e(this);if("string"==typeof i)if("open"===i){var s,r=l?n.data("magnificPopup"):n[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?s=r.items[a]:(s=n,r.delegate&&(s=s.find(r.delegate)),s=s.eq(a)),t._openClick({mfpEl:s},n,r)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),l?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var _,g,v,y=function(){v&&(g.after(v.addClass(_)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),d("Close.inline",function(){y()})},getInline:function(i,n){if(y(),i.src){var s=t.st.inline,r=e(i.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(g||(_=s.hiddenClass,g=c(_),_="mfp-"+_),v=r.after(g).detach().removeClass(_)),t.updateStatus("ready")}else t.updateStatus("error",s.tNotFound),r=e("
    ");return i.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var b,w=function(){b&&e(document.body).removeClass(b)},M=function(){w(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,d("Close.ajax",M),d("BeforeChange.ajax",M)},getAjax:function(i){b&&e(document.body).addClass(b),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(n,s,r){var a={data:n,xhr:r};h("ParseAjax",a),t.appendContent(e(a.data),"ajax"),i.finished=!0,w(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),h("AjaxContentAdded")},error:function(){w(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var k,L=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=t.st.image.titleSrc;if(n){if(e.isFunction(n))return n.call(t,i);if(i.el)return i.el.attr(n)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=t.st.image,n=".image";t.types.push("image"),d("Open"+n,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),d("Close"+n,function(){i.cursor&&e(document.body).removeClass(i.cursor),u.off("resize.mfp")}),d("Resize"+n,t.resizeImage),t.isLowIE&&d("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,k&&clearInterval(k),e.isCheckingImgSize=!1,h("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],s=function(r){k&&clearInterval(k),k=setInterval(function(){if(n.naturalWidth>0)return void t._onImageHasSize(e);i>200&&clearInterval(k),i++,3===i?s(10):40===i?s(50):100===i&&s(500)},r)};s(1)},getImage:function(i,n){var s=0,r=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,h("ImageLoadComplete")):(s++,s<200?setTimeout(r,100):a()))},a=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",o.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},o=t.st.image,l=n.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",i.el&&i.el.find("img").length&&(u.alt=i.el.find("img").attr("alt")),i.img=e(u).on("load.mfploader",r).on("error.mfploader",a),u.src=i.src,l.is("img")&&(i.img=i.img.clone()),u=i.img[0],u.naturalWidth>0?i.hasSize=!0:u.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:L(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(k&&clearInterval(k),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",o.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}});var D,T=function(){return void 0===D&&(D=void 0!==document.createElement("p").style.MozTransform),D};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var s,r,a=i.duration,o=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,s={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return s["-webkit-"+r]=s["-moz-"+r]=s["-o-"+r]=s[r]=n,t.css(s),t},l=function(){t.content.css("visibility","visible")};d("BuildControls"+n,function(){if(t._allowZoom()){if(clearTimeout(s),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();r=o(e),r.css(t._getOffset()),t.wrap.append(r),s=setTimeout(function(){r.css(t._getOffset(!0)),s=setTimeout(function(){l(),setTimeout(function(){r.remove(),e=r=null,h("ZoomAnimationEnded")},16)},a)},16)}}),d("BeforeClose"+n,function(){if(t._allowZoom()){if(clearTimeout(s),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=o(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),d("Close"+n,function(){t._allowZoom()&&(l(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var n;n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var s=n.offset(),r=parseInt(n.css("padding-top"),10),a=parseInt(n.css("padding-bottom"),10);s.top-=e(window).scrollTop()-r;var o={width:n.width(),height:(l?n.innerHeight():n[0].offsetHeight)-a-r};return T()?o["-moz-transform"]=o.transform="translate("+s.left+"px,"+s.top+"px)":(o.left=s.left,o.top=s.top),o}}});var Y=function(e){if(t.currTemplate.iframe){var i=t.currTemplate.iframe.find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),d("BeforeChange",function(e,t,i){t!==i&&("iframe"===t?Y():"iframe"===i&&Y(!0))}),d("Close.iframe",function(){Y()})},getIframe:function(i,n){var s=i.src,r=t.st.iframe;e.each(r.patterns,function(){if(s.indexOf(this.index)>-1)return this.id&&(s="string"==typeof this.id?s.substr(s.lastIndexOf(this.id)+this.id.length,s.length):this.id.call(this,s)),s=this.src.replace("%id%",s),!1});var a={};return r.srcAction&&(a[r.srcAction]=s),t._parseMarkup(n,a,i),t.updateStatus("ready"),n}}});var x=function(e){var i=t.items.length;return e>i-1?e-i:e<0?i+e:e},C=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=t.st.gallery,s=".mfp-gallery";if(t.direction=!0,!i||!i.enabled)return!1;r+=" mfp-gallery",d("Open"+s,function(){i.navigateByImgClick&&t.wrap.on("click"+s,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),n.on("keydown"+s,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),d("UpdateStatus"+s,function(e,i){i.text&&(i.text=C(i.text,t.currItem.index,t.items.length))}),d("MarkupParse"+s,function(e,n,s,r){var a=t.items.length;s.counter=a>1?C(i.tCounter,r.index,a):""}),d("BuildControls"+s,function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var n=i.arrowMarkup,s=t.arrowLeft=e(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),r=t.arrowRight=e(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");s.click(function(){t.prev()}),r.click(function(){t.next()}),t.container.append(s.add(r))}}),d("Change"+s,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),d("Close"+s,function(){n.off(s),t.wrap.off("click"+s),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=x(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=x(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,n=Math.min(i[0],t.items.length),s=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?s:n);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?n:s);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=x(i),!t.items[i].preloaded){var n=t.items[i];n.parsed||(n=t.parseEl(i)),h("LazyLoad",n),"image"===n.type&&(n.img=e('').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,h("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;i=isNaN(i)?i():i,i>1&&(d("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),d("ElementParse.retina",function(t,n){n.src=e.replaceSrc(n,i)}))}}}}),f()})}).call(window)},function(e,t,i){(function(e,t){var i=!1;(function(){/*! - * typeahead.js 0.11.1 - * https://github.com/twitter/typeahead.js - * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT - */ -!function(e,n){"function"==typeof i&&i.amd?i("typeahead.js",["jquery"],function(e){return n(e)}):n(t)}(0,function(t){var i=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(e){return!e||/^\s*$/.test(e)},escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(e){return void 0===e},isElement:function(e){return!(!e||1!==e.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(e){return i.isUndefined(e)||null===e?"":e+""},bind:t.proxy,each:function(e,i){function n(e,t){return i(t,e)}t.each(e,n)},map:t.map,filter:t.grep,every:function(e,i){var n=!0;return e?(t.each(e,function(t,s){if(!(n=i.call(null,s,t,e)))return!1}),!!n):n},some:function(e,i){var n=!1;return e?(t.each(e,function(t,s){if(n=i.call(null,s,t,e))return!1}),!!n):n},mixin:t.extend,identity:function(e){return e},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var e=0;return function(){return e++}},templatify:function(e){function i(){return String(e)}return t.isFunction(e)?e:i},defer:function(e){setTimeout(e,0)},debounce:function(e,t,i){var n,s;return function(){var r,a,o=this,l=arguments;return r=function(){n=null,i||(s=e.apply(o,l))},a=i&&!n,clearTimeout(n),n=setTimeout(r,t),a&&(s=e.apply(o,l)),s}},throttle:function(e,t){var i,n,s,r,a,o;return a=0,o=function(){a=new Date,s=null,r=e.apply(i,n)},function(){var l=new Date,u=t-(l-a);return i=this,n=arguments,u<=0?(clearTimeout(s),s=null,a=l,r=e.apply(i,n)):s||(s=setTimeout(o,u)),r}},stringify:function(e){return i.isString(e)?e:JSON.stringify(e)},noop:function(){}}}(),n=function(){"use strict";function e(e){var a,o;return o=i.mixin({},r,e),a={css:s(),classes:o,html:t(o),selectors:n(o)},{css:a.css,html:a.html,classes:a.classes,selectors:a.selectors,mixin:function(e){i.mixin(e,a)}}}function t(e){return{wrapper:'',menu:'
    '}}function n(e){var t={};return i.each(e,function(e,i){t[i]="."+e}),t}function s(){var e={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return i.isMsie()&&i.mixin(e.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),e}var r={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return e}(),s=function(){"use strict";function e(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}var n,s;return n="typeahead:",s={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},i.mixin(e.prototype,{_trigger:function(e,i){var s;return s=t.Event(n+e),(i=i||[]).unshift(s),this.$el.trigger.apply(this.$el,i),s},before:function(e){var t,i;return t=[].slice.call(arguments,1),i=this._trigger("before"+e,t),i.isDefaultPrevented()},trigger:function(e){var t;this._trigger(e,[].slice.call(arguments,1)),(t=s[e])&&this._trigger(t,[].slice.call(arguments,1))}}),e}(),r=function(){"use strict";function t(e,t,i,n){var s;if(!i)return this;for(t=t.split(l),i=n?o(i,n):i,this._callbacks=this._callbacks||{};s=t.shift();)this._callbacks[s]=this._callbacks[s]||{sync:[],async:[]},this._callbacks[s][e].push(i);return this}function i(e,i,n){return t.call(this,"async",e,i,n)}function n(e,i,n){return t.call(this,"sync",e,i,n)}function s(e){var t;if(!this._callbacks)return this;for(e=e.split(l);t=e.shift();)delete this._callbacks[t];return this}function r(e){var t,i,n,s,r;if(!this._callbacks)return this;for(e=e.split(l),n=[].slice.call(arguments,1);(t=e.shift())&&(i=this._callbacks[t]);)s=a(i.sync,this,[t].concat(n)),r=a(i.async,this,[t].concat(n)),s()&&u(r);return this}function a(e,t,i){function n(){for(var n,s=0,r=e.length;!n&&s
    ").addClass("cw").text("#"));i.isBefore(r.clone().endOf("w"));)t.append(e("").addClass("dow").text(i.format("dd"))),i.add(1,"d");f.find(".datepicker-days thead").append(t)},W=function(e){return!0===n.disabledDates[e.format("YYYY-MM-DD")]},N=function(e){return!0===n.enabledDates[e.format("YYYY-MM-DD")]},F=function(e){return!0===n.disabledHours[e.format("H")]},z=function(e){return!0===n.enabledHours[e.format("H")]},R=function(t,i){if(!t.isValid())return!1;if(n.disabledDates&&"d"===i&&W(t))return!1;if(n.enabledDates&&"d"===i&&!N(t))return!1;if(n.minDate&&t.isBefore(n.minDate,i))return!1;if(n.maxDate&&t.isAfter(n.maxDate,i))return!1;if(n.daysOfWeekDisabled&&"d"===i&&-1!==n.daysOfWeekDisabled.indexOf(t.day()))return!1;if(n.disabledHours&&("h"===i||"m"===i||"s"===i)&&F(t))return!1;if(n.enabledHours&&("h"===i||"m"===i||"s"===i)&&!z(t))return!1;if(n.disabledTimeIntervals&&("h"===i||"m"===i||"s"===i)){var s=!1;if(e.each(n.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return s=!0,!1}),s)return!1}return!0},$=function(){for(var t=[],i=r.clone().startOf("y").startOf("d");i.isSame(r,"y");)t.push(e("").attr("data-action","selectMonth").addClass("month").text(i.format("MMM"))),i.add(1,"M");f.find(".datepicker-months td").empty().append(t)},B=function(){var t=f.find(".datepicker-months"),i=t.find("th"),a=t.find("tbody").find("span");i.eq(0).find("span").attr("title",n.tooltips.prevYear),i.eq(1).attr("title",n.tooltips.selectYear),i.eq(2).find("span").attr("title",n.tooltips.nextYear),t.find(".disabled").removeClass("disabled"),R(r.clone().subtract(1,"y"),"y")||i.eq(0).addClass("disabled"),i.eq(1).text(r.year()),R(r.clone().add(1,"y"),"y")||i.eq(2).addClass("disabled"),a.removeClass("active"),s.isSame(r,"y")&&!h&&a.eq(s.month()).addClass("active"),a.each(function(t){R(r.clone().month(t),"M")||e(this).addClass("disabled")})},U=function(){var e=f.find(".datepicker-years"),t=e.find("th"),i=r.clone().subtract(5,"y"),a=r.clone().add(6,"y"),o="";for(t.eq(0).find("span").attr("title",n.tooltips.prevDecade),t.eq(1).attr("title",n.tooltips.selectDecade),t.eq(2).find("span").attr("title",n.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),n.minDate&&n.minDate.isAfter(i,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+a.year()),n.maxDate&&n.maxDate.isBefore(a,"y")&&t.eq(2).addClass("disabled");!i.isAfter(a,"y");)o+=''+i.year()+"",i.add(1,"y");e.find("td").html(o)},q=function(){var e,i=f.find(".datepicker-decades"),a=i.find("th"),o=t({y:r.year()-r.year()%100-1}),l=o.clone().add(100,"y"),u=o.clone(),d=!1,c=!1,h="";for(a.eq(0).find("span").attr("title",n.tooltips.prevCentury),a.eq(2).find("span").attr("title",n.tooltips.nextCentury),i.find(".disabled").removeClass("disabled"),(o.isSame(t({y:1900}))||n.minDate&&n.minDate.isAfter(o,"y"))&&a.eq(0).addClass("disabled"),a.eq(1).text(o.year()+"-"+l.year()),(o.isSame(t({y:2e3}))||n.maxDate&&n.maxDate.isBefore(l,"y"))&&a.eq(2).addClass("disabled");!o.isAfter(l,"y");)e=o.year()+12,d=n.minDate&&n.minDate.isAfter(o,"y")&&n.minDate.year()<=e,c=n.maxDate&&n.maxDate.isAfter(o,"y")&&n.maxDate.year()<=e,h+=''+(o.year()+1)+" - "+(o.year()+12)+"",o.add(12,"y");h+="",i.find("td").html(h),a.eq(1).text(u.year()+1+"-"+o.year())},K=function(){var t,i,a,o=f.find(".datepicker-days"),l=o.find("th"),u=[],d=[];if(Y()){for(l.eq(0).find("span").attr("title",n.tooltips.prevMonth),l.eq(1).attr("title",n.tooltips.selectMonth),l.eq(2).find("span").attr("title",n.tooltips.nextMonth),o.find(".disabled").removeClass("disabled"),l.eq(1).text(r.format(n.dayViewHeaderFormat)),R(r.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),R(r.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),t=r.clone().startOf("M").startOf("w").startOf("d"),a=0;a<42;a++)0===t.weekday()&&(i=e("
    '+t.week()+"'+t.date()+"
    '+i.format(o?"HH":"hh")+"
    '+i.format("mm")+"
    '+i.format("ss")+"
    ",x=c?"":"",w=0;w<7;w++)C=(w+d)%7,x+="";for(Y+=x+"",S=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,S)),E=(this._getFirstDayOfMonth(ee,Z)-d+7)%7,H=Math.ceil((E+S)/7),A=G&&this.maxRows>H?this.maxRows:H,this.maxRows=A,O=this._daylightSavingAdjust(new Date(ee,Z,1-E)),P=0;P",I=c?"":"",w=0;w<7;w++)j=_?_.apply(e.input?e.input[0]:null,[O]):[!0,""],W=O.getMonth()!==Z,N=W&&!v||!j[0]||X&&OQ,I+="",O.setDate(O.getDate()+1),O=this._daylightSavingAdjust(O);Y+=I+""}Z++,Z>11&&(Z=0,ee++),Y+="
    "+this._get(e,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+p[C]+"
    "+this._get(e,"calculateWeek")(O)+""+(W&&!g?" ":N?""+O.getDate()+"":""+O.getDate()+"")+"
    "+(G?""+(q[0]>0&&L===q[1]-1?"
    ":""):""),k+=Y}b+=k}return b+=u,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,i,n,s,r,a,o){var l,u,d,c,h,p,f,m,_=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),v=this._get(e,"showMonthAfterYear"),y="
    ",b="";if(r||!_)b+=""+a[t]+"";else{for(l=n&&n.getFullYear()===i,u=s&&s.getFullYear()===i,b+=""}if(v||(y+=b+(!r&&_&&g?"":" ")),!e.yearshtml)if(e.yearshtml="",r||!g)y+=""+i+"";else{for(c=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t},f=p(c[0]),m=Math.max(f,p(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=s?Math.min(m,s.getFullYear()):m,e.yearshtml+="",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),v&&(y+=(!r&&_&&g?"":" ")+b),y+="
    "},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,r)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&tn?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),r=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(e,r)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),a=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!r||t.getTime()<=r.getTime())&&(!a||t.getFullYear()>=a)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1";var f=(e.datepicker,e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1);e(document).on("mouseup",function(){f=!1});e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!f){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,n=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),f=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,f=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,i,n){var s,r=e.ui[t].prototype;for(s in n)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,r=e.plugins[t];if(r&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("
    ").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper),s=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options,r=this.document[0];return this.relativeContainer=null,s.containment?"window"===s.containment?void(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===s.containment?void(this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):s.containment.constructor===Array?void(this.containment=s.containment):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),i=e(s.containment),void((n=i[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,r,a=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),a.grid&&(s=a.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,u=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-a.grid[1]:s+a.grid[1]:s,r=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-a.grid[0]:r+a.grid[0]:r),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var s=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,s))})},stop:function(t,i,n){var s=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,s))})},drag:function(t,i,n){e.each(n.sortables,function(){var s=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(s=!0,e.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(s=!1),s})),s?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",t),n.dropped=r.element,e.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(t),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var s=e("body"),r=n.options;s.css("cursor")&&(r._cursor=s.css("cursor")),s.css("cursor",r.cursor)},stop:function(t,i,n){var s=n.options;s._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var s=e(i.helper),r=n.options;s.css("opacity")&&(r._opacity=s.css("opacity")),s.css("opacity",r.opacity)},stop:function(t,i,n){var s=n.options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var s=n.options,r=!1,a=n.scrollParentNotHidden[0],o=n.document[0];a!==o&&"HTML"!==a.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+a.offsetHeight-t.pageY=0;h--)l=n.snapElements[h].left-n.margins.left,u=l+n.snapElements[h].width,d=n.snapElements[h].top-n.margins.top,c=d+n.snapElements[h].height,gu+m||yc+m||!e.contains(n.snapElements[h].item.ownerDocument,n.snapElements[h].item)?(n.snapElements[h].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(d-y)<=m,r=Math.abs(c-v)<=m,a=Math.abs(l-g)<=m,o=Math.abs(u-_)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u}).left)),p=s||r||a||o,"outer"!==f.snapMode&&(s=Math.abs(d-v)<=m,r=Math.abs(c-y)<=m,a=Math.abs(l-_)<=m,o=Math.abs(u-g)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u-n.helperProportions.width}).left)),!n.snapElements[h].snapping&&(s||r||a||o||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=s||r||a||o||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,r=n.options,a=e.makeArray(e(r.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});a.length&&(s=parseInt(e(a[0]).css("zIndex"),10)||0,e(a).each(function(t){e(this).css("zIndex",s+t)}),this.css("zIndex",s+a.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var s=e(i.helper),r=n.options;s.css("zIndex")&&(r._zIndex=s.css("zIndex")),s.css("zIndex",r.zIndex)},stop:function(t,i,n){var s=n.options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}});e.ui.draggable;/*! - * jQuery UI Resizable 1.12.1 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -e.widget("ui.resizable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return t[n]>0||(t[n]=1,s=t[n]>0,t[n]=0,s)},_create:function(){var t,i=this.options,n=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("
    ").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var t,i,n,s,r,a=this.options,o=this;if(this.handles=a.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i"),this._addClass(r,"ui-resizable-handle "+s),r.css({zIndex:a.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(r);this._renderAxis=function(t){var i,n,s,r;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),r=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(s,r),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){o.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=r&&r[1]?r[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var i,n,s=!1;for(i in this.handles)((n=e(this.handles[i])[0])===t.target||e.contains(n,t.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var i,n,s,r=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),r.containment&&(i+=e(r.containment).scrollLeft()||0,n+=e(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,n,s=this.originalMousePosition,r=this.axis,a=t.pageX-s.left||0,o=t.pageY-s.top||0,l=this._change[r];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[t,a,o]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var i,n,s,r,a,o,l,u=this.options,d=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),s=n&&this._hasScroll(i[0],"left")?0:d.sizeDiff.height,r=n?0:d.sizeDiff.width,a={width:d.helper.width()-r,height:d.helper.height()-s},o=parseFloat(d.element.css("left"))+(d.position.left-d.originalPosition.left)||null,l=parseFloat(d.element.css("top"))+(d.position.top-d.originalPosition.top)||null,u.animate||this.element.css(e.extend(a,{top:l,left:o})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!u.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,s,r,a=this.options;r={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,s=r.maxWidth/this.aspectRatio,t>r.minWidth&&(r.minWidth=t),n>r.minHeight&&(r.minHeight=n),ie.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,o=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(i),d=/nw|ne|n/.test(i);return r&&(e.width=t.minWidth),a&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),r&&u&&(e.left=o-t.minWidth),n&&u&&(e.left=o-t.maxWidth),a&&d&&(e.top=l-t.minHeight),s&&d&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(s[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t
    "),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,r=s.length&&/textarea/i.test(s[0].nodeName),a=r&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,o=r?0:i.sizeDiff.width,l={width:i.size.width-o,height:i.size.height-a},u=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,d=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,d&&u?{top:d,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&e(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,n,s,r,a,o,l=e(this).resizable("instance"),u=l.options,d=l.element,c=u.containment,h=c instanceof e?c.get(0):/parent/.test(c)?d.parent().get(0):c;h&&(l.containerElement=e(h),/document/.test(c)||c===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(h),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,n){i[e]=l._num(t.css("padding"+n))}),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},n=l.containerOffset,s=l.containerSize.height,r=l.containerSize.width,a=l._hasScroll(h,"left")?h.scrollWidth:r,o=l._hasScroll(h)?h.scrollHeight:s,l.parentData={element:h,left:n.left,top:n.top,width:a,height:o}))},resize:function(t){var i,n,s,r,a=e(this).resizable("instance"),o=a.options,l=a.containerOffset,u=a.position,d=a._aspectRatio||t.shiftKey,c={top:0,left:0},h=a.containerElement,p=!0;h[0]!==document&&/static/.test(h.css("position"))&&(c=l),u.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-c.left),d&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=o.helper?l.left:0),u.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),d&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?l.top:0),s=a.containerElement.get(0)===a.element.parent().get(0),r=/relative|absolute/.test(a.containerElement.css("position")),s&&r?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-c.left:a.offset.left-l.left)),n=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-c.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,d&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),n+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-n,d&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,n=t.containerOffset,s=t.containerPosition,r=t.containerElement,a=e(t.helper),o=a.offset(),l=a.outerWidth()-t.sizeDiff.width,u=a.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(r.css("position"))&&e(this).css({left:o.left-s.left-n.left,width:l,height:u}),t._helper&&!i.animate&&/static/.test(r.css("position"))&&e(this).css({left:o.left-s.left-n.left,width:l,height:u})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance"),i=t.options;e(i.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var n=e(this).resizable("instance"),s=n.options,r=n.originalSize,a=n.originalPosition,o={height:n.size.height-r.height||0,width:n.size.width-r.width||0,top:n.position.top-a.top||0,left:n.position.left-a.left||0};e(s.alsoResize).each(function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),s={},r=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(e,t){var i=(n[t]||0)+(o[t]||0);i&&i>=0&&(s[t]=i||null)}),t.css(s)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),n=i.options,s=i.size,r=i.originalSize,a=i.originalPosition,o=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,u=l[0]||1,d=l[1]||1,c=Math.round((s.width-r.width)/u)*u,h=Math.round((s.height-r.height)/d)*d,p=r.width+c,f=r.height+h,m=n.maxWidth&&n.maxWidthp,v=n.minHeight&&n.minHeight>f;n.grid=l,g&&(p+=u),v&&(f+=d),m&&(p-=u),_&&(f-=d),/^(se|s|e)$/.test(o)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.top=a.top-h):/^(sw)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.left=a.left-c):((f-d<=0||p-u<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),f-d>0?(i.size.height=f,i.position.top=a.top-h):(f=d-t.height,i.size.height=f,i.position.top=a.top+r.height-f),p-u>0?(i.size.width=p,i.position.left=a.left-c):(p=u-t.width,i.size.width=p,i.position.left=a.left+r.width-p))}});e.ui.resizable;/*! - * jQuery UI Dialog 1.12.1 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -e.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;i<0&&e(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+e(this).css("z-index")}).get(),r=Math.max.apply(null,s);return r>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",r+1),n=!0),n&&!i&&this._trigger("focus",t),n},open:function(){var t=this;if(this._isOpen)return void(this._moveToTop()&&this._focusTabbable());this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open")},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_keepFocus:function(t){function i(){var t=e.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=e("
    ").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),s=i.filter(":last");t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==n[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){n.trigger("focus")}),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("
    "),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("").button({label:e("").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=e("
    "),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("
    ").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||e.isArray(i)&&!i.length)return void this._removeClass(this.uiDialog,"ui-dialog-buttons");e.each(i,function(i,n){var s,r;n=e.isFunction(n)?{click:n,text:i}:n,n=e.extend({type:"button"},n),s=n.click,r={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,e("",n).button(r).appendTo(t.uiButtonSet).on("click",function(){s.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){i._addClass(e(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,t(s))},drag:function(e,n){i._trigger("drag",e,t(n))},stop:function(s,r){var a=r.offset.left-i.document.scrollLeft(),o=r.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(o>=0?"+":"")+o,of:i.window},i._removeClass(e(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,t(r))}})},_makeResizable:function(){function t(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var i=this,n=this.options,s=n.resizable,r=this.uiDialog.css("position"),a="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:a,start:function(n,s){i._addClass(e(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,t(s))},resize:function(e,n){i._trigger("resize",e,t(n))},stop:function(s,r){var a=i.uiDialog.offset(),o=a.left-i.document.scrollLeft(),l=a.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(e(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,t(r))}}).css("position",r)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};e.each(t,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(n=!0),e in i.resizableRelatedOptions&&(s[e]=t)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,i){var n,s,r=this.uiDialog;"disabled"!==t&&(this._super(t,i),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("").text(""+this.options.closeText).html()}),"draggable"===t&&(n=r.is(":data(ui-draggable)"),n&&!i&&r.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(s=r.is(":data(ui-resizable)"),s&&!i&&r.resizable("destroy"),s&&"string"==typeof i&&r.resizable("option","handles",i),s||!1===i||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),t=Math.max(0,n.minHeight-e),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-e):"none","auto"===n.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("
    ").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=e("
    ").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}});e.ui.dialog;/*! - * jQuery UI Droppable 1.12.1 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(n)?n:function(e){return e.is(n)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t=t&&e=d&&a<=h||l>=d&&l<=h||ah)&&(r>=u&&r<=c||o>=u&&o<=c||rc);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var n,s,r=e.ui.ddmanager.droppables[t.options.scope]||[],a=i?i.type:null,o=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(n=0;n").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("
    ").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.widget("ui.selectable",e.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each(function(){var i=e(this),n=i.offset(),s={left:n.left-t.elementPos.left,top:n.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:i,left:s.left,top:s.top,right:s.left+i.outerWidth(),bottom:s.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=e("
    "),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var i=this,n=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled||(this.selectees=e(n.filter,this.element[0]),this._trigger("start",t),e(n.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=e.data(this,"selectable-item");n.startselected=!0,t.metaKey||t.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element}))}),e(t.target).parents().addBack().each(function(){var n,s=e.data(this,"selectable-item");if(s)return n=!t.metaKey&&!t.ctrlKey||!s.$element.hasClass("ui-selected"),i._removeClass(s.$element,n?"ui-unselecting":"ui-selected")._addClass(s.$element,n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",t,{selecting:s.element}):i._trigger("unselecting",t,{unselecting:s.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,r=this.opos[0],a=this.opos[1],o=t.pageX,l=t.pageY;return r>o&&(i=o,o=r,r=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:r,top:a,width:o-r,height:l-a}),this.selectees.each(function(){var i=e.data(this,"selectable-item"),u=!1,d={};i&&i.element!==n.element[0]&&(d.left=i.left+n.elementPos.left,d.right=i.right+n.elementPos.left,d.top=i.top+n.elementPos.top,d.bottom=i.bottom+n.elementPos.top,"touch"===s.tolerance?u=!(d.left>o||d.rightl||d.bottomr&&d.righta&&d.bottom",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,i=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=e("",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=e("").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=e("
      ",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("
      ").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,i){e.preventDefault(),t._setSelection(),t._select(i.item.data("ui-selectmenu-item"),e)},focus:function(e,i){var n=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&n.index!==t.focusIndex&&(t._trigger("focus",e,{item:n}),t.isOpen||t._select(n,e)),t.focusIndex=n.index,t.button.attr("aria-activedescendant",t.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=e("");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var n=this,s="";e.each(i,function(i,r){var a;r.optgroup!==s&&(a=e("
    • ",{text:r.optgroup}),n._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(r.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(t),s=r.optgroup),n._renderItemData(t,r)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var n=e("
    • "),s=e("
      ",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(s,i.label),n.append(s).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html(" ")},_move:function(e,t){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),n="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](s).eq(-1):i[e+"All"](s).eq(0),n.length&&this.menuInstance.focus(t,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?(e=window.getSelection(),e.removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+e.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection(),e.rangeCount&&(this.range=e.getRangeAt(0))):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var i=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),i=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;if(!1===e)return void this.button.css("width","");null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var i=this,n=[];t.each(function(t,s){n.push(i._parseOption(e(s),t))}),this.items=n},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i,n=this.options,s=this.element.find(".ui-slider-handle"),r=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),t=s.length;t");this.handles=s.add(e(r.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("
      ").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,n,s,r,a,o,l,u=this,d=this.options;return!d.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var i=Math.abs(n-u.values(t));(s>i||s===i&&(t===u._lastChangedValue||u.values(t)===d.min))&&(s=i,r=e(this),a=t)}),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(r,null,"ui-state-active"),r.trigger("focus"),o=r.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-o.left-r.width()/2,top:t.pageY-o.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,s,r;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/t,n>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),r=this._valueMin()+n*s,this._trimAlignValue(r)},_uiHash:function(e,t,i){var n={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==t?t:this.values(e),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var n,s=this.value(),r=this.values();this._hasMultipleValues()&&(n=this.values(t?0:1),s=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(n,i):Math.max(n,i)),r[t]=i),i!==s&&!1!==this._trigger("slide",e,this._uiHash(t,i,r))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,i){var n,s,r;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(n=this.options.values,s=arguments[0],r=0;r=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=i>0?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;e=Math.round((e-t)/i)*i+t,e>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,n,s,r,a=this.options.range,o=this.options,l=this,u=!this._animateOff&&o.animate,d={};this._hasMultipleValues()?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,d["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[u?"animate":"css"](d,o.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},o.animate),1===n&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:o.animate})):(0===n&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},o.animate),1===n&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:o.animate}))),t=i}):(n=this.value(),s=this._valueMin(),r=this._valueMax(),i=r!==s?(n-s)/(r-s)*100:0,d["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](d,o.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},o.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},o.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},o.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},o.animate))},_handleEvents:{keydown:function(t){var i,n,s,r=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,r)))return}switch(s=this.options.step,i=n=this._hasMultipleValues()?this.values(r):this.value(),t.keyCode){case e.ui.keyCode.HOME:n=this._valueMin();break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+s);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-s)}this._slide(t,r,n)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(e(t.target),null,"ui-state-active"))}}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,r.widgetName+"-item")===r)return n=e(this),!1}),e.data(t.target,r.widgetName+"-item")===r&&(n=e(t.target)),!!n&&(!(this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,i,n){var s,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",a.cursor),this.storedStylesheet=e("").appendTo(r)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var i,n,s,r,a=this.options,o=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;i--)if(n=this.items[i],s=n.item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,a={};r&&"x"!==r||(a.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(a.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=e.left,a=r+e.width,o=e.top,l=o+e.height,u=this.offset.click.top,d=this.offset.click.left,c="x"===this.options.axis||n+u>o&&n+ur&&t+de[this.floating?"width":"height"]?p:r0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){function i(){o.push(this)}var n,s,r,a,o=[],l=[],u=this._connectWith();if(u&&t)for(n=u.length-1;n>=0;n--)for(r=e(u[n],this.document[0]),s=r.length-1;s>=0;s--)(a=e.data(r[s],this.widgetFullName))&&a!==this&&!a.options.disabled&&l.push([e.isFunction(a.options.items)?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return e(o)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i=0;i--)for(s=e(h[i],this.document[0]),n=s.length-1;n>=0;n--)(r=e.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(c.push([e.isFunction(r.options.items)?r.options.items.call(r.element[0],t,{item:this.currentItem}):e(r.options.items,r.element),r]),this.containers.push(r));for(i=c.length-1;i>=0;i--)for(a=c[i][1],o=c[i][0],n=0,u=o.length;n=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),r=s.offset(),n.left=r.left,n.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)r=this.containers[i].element.offset(),this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var i,n=t.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=t.currentItem[0].nodeName.toLowerCase(),s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("
     
    ","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};it.optgroup=it.option,it.tbody=it.tfoot=it.colgroup=it.caption=it.thead,it.th=it.td;var nt=/<|&#?\w+;/;!function(){var e=de.createDocumentFragment(),t=e.appendChild(de.createElement("div")),i=de.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),we.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",we.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var st=de.documentElement,rt=/^key/,at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;De.event={global:{},add:function(e,t,i,n,s){var r,a,o,l,u,d,c,h,p,f,m,_=$e.get(e);if(_)for(i.handler&&(r=i,i=r.handler,s=r.selector),s&&De.find.matchesSelector(st,s),i.guid||(i.guid=De.guid++),(l=_.events)||(l=_.events={}),(a=_.handle)||(a=_.handle=function(t){return void 0!==De&&De.event.triggered!==t.type?De.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ie)||[""],u=t.length;u--;)o=ot.exec(t[u])||[],p=m=o[1],f=(o[2]||"").split(".").sort(),p&&(c=De.event.special[p]||{},p=(s?c.delegateType:c.bindType)||p,c=De.event.special[p]||{},d=De.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&De.expr.match.needsContext.test(s),namespace:f.join(".")},r),(h=l[p])||(h=l[p]=[],h.delegateCount=0,c.setup&&!1!==c.setup.call(e,n,f,a)||e.addEventListener&&e.addEventListener(p,a)),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,d):h.push(d),De.event.global[p]=!0)},remove:function(e,t,i,n,s){var r,a,o,l,u,d,c,h,p,f,m,_=$e.hasData(e)&&$e.get(e);if(_&&(l=_.events)){for(t=(t||"").match(Ie)||[""],u=t.length;u--;)if(o=ot.exec(t[u])||[],p=m=o[1],f=(o[2]||"").split(".").sort(),p){for(c=De.event.special[p]||{},p=(n?c.delegateType:c.bindType)||p,h=l[p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)d=h[r],!s&&m!==d.origType||i&&i.guid!==d.guid||o&&!o.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(h.splice(r,1),d.selector&&h.delegateCount--,c.remove&&c.remove.call(e,d));a&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,f,_.handle)||De.removeEvent(e,p,_.handle),delete l[p])}else for(p in l)De.event.remove(e,p+t[u],i,n,!0);De.isEmptyObject(l)&&$e.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,r,a,o=De.event.fix(e),l=new Array(arguments.length),u=($e.get(this,"events")||{})[o.type]||[],d=De.event.special[o.type]||{};for(l[0]=o,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],a={},i=0;i-1:De.find(s,this,null,[u]).length),a[s]&&r.push(n);r.length&&o.push({elem:u,handlers:r})}return u=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,ut=/\s*$/g;De.extend({htmlPrefilter:function(e){return e.replace(lt,"<$1>")},clone:function(e,t,i){var n,s,r,a,o=e.cloneNode(!0),l=De.contains(e.ownerDocument,e);if(!(we.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||De.isXMLDoc(e)))for(a=D(o),r=D(e),n=0,s=r.length;n0&&T(a,!l&&D(e,"script")),o},cleanData:function(e){for(var t,i,n,s=De.event.special,r=0;void 0!==(i=e[r]);r++)if(Re(i)){if(t=i[$e.expando]){if(t.events)for(n in t.events)s[n]?De.event.remove(i,n):De.removeEvent(i,n,t.handle);i[$e.expando]=void 0}i[Be.expando]&&(i[Be.expando]=void 0)}}}),De.fn.extend({detach:function(e){return W(this,e,!0)},remove:function(e){return W(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?De.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return j(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||H(this,e).appendChild(e)})},prepend:function(){return j(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=H(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return j(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return j(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(De.cleanData(D(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return De.clone(this,e,t)})},html:function(e){return Ne(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ut.test(e)&&!it[(et.exec(e)||["",""])[1].toLowerCase()]){e=De.htmlPrefilter(e);try{for(;i1)}}),De.Tween=q,q.prototype={constructor:q,init:function(e,t,i,n,s,r){this.elem=e,this.prop=i,this.easing=s||De.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(De.cssNumber[i]?"":"px")},cur:function(){var e=q.propHooks[this.prop];return e&&e.get?e.get(this):q.propHooks._default.get(this)},run:function(e){var t,i=q.propHooks[this.prop];return this.options.duration?this.pos=t=De.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=De.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){De.fx.step[e.prop]?De.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[De.cssProps[e.prop]]&&!De.cssHooks[e.prop]?e.elem[e.prop]=e.now:De.style(e.elem,e.prop,e.now+e.unit)}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},De.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},De.fx=q.prototype.init,De.fx.step={};var wt,Mt,kt=/^(?:toggle|show|hide)$/,Lt=/queueHooks$/;De.Animation=De.extend(Z,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return M(i.elem,e,Ve.exec(t),i),i}]},tweener:function(e,t){Me(e)?(t=e,e=["*"]):e=e.match(Ie);for(var i,n=0,s=e.length;n1)},removeAttr:function(e){return this.each(function(){De.removeAttr(this,e)})}}),De.extend({attr:function(e,t,i){var n,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?De.prop(e,t,i):(1===r&&De.isXMLDoc(e)||(s=De.attrHooks[t.toLowerCase()]||(De.expr.match.bool.test(t)?Dt:void 0)),void 0!==i?null===i?void De.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:(n=De.find.attr(e,t),null==n?void 0:n))},attrHooks:{type:{set:function(e,t){if(!we.radioValue&&"radio"===t&&u(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(Ie);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),Dt={set:function(e,t,i){return!1===t?De.removeAttr(e,i):e.setAttribute(i,i),i}},De.each(De.expr.match.bool.source.match(/\w+/g),function(e,t){var i=Tt[t]||De.find.attr;Tt[t]=function(e,t,n){var s,r,a=t.toLowerCase();return n||(r=Tt[a],Tt[a]=s,s=null!=i(e,t,n)?a:null,Tt[a]=r),s}});var Yt=/^(?:input|select|textarea|button)$/i,xt=/^(?:a|area)$/i;De.fn.extend({prop:function(e,t){return Ne(this,De.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[De.propFix[e]||e]})}}),De.extend({prop:function(e,t,i){var n,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&De.isXMLDoc(e)||(t=De.propFix[t]||t,s=De.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=De.find.attr(e,"tabindex");return t?parseInt(t,10):Yt.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),we.optSelected||(De.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),De.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){De.propFix[this.toLowerCase()]=this}),De.fn.extend({addClass:function(e){var t,i,n,s,r,a,o,l=0;if(Me(e))return this.each(function(t){De(this).addClass(e.call(this,t,te(this)))});if(t=ie(e),t.length)for(;i=this[l++];)if(s=te(i),n=1===i.nodeType&&" "+ee(s)+" "){for(a=0;r=t[a++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=ee(n),s!==o&&i.setAttribute("class",o)}return this},removeClass:function(e){var t,i,n,s,r,a,o,l=0;if(Me(e))return this.each(function(t){De(this).removeClass(e.call(this,t,te(this)))});if(!arguments.length)return this.attr("class","");if(t=ie(e),t.length)for(;i=this[l++];)if(s=te(i),n=1===i.nodeType&&" "+ee(s)+" "){for(a=0;r=t[a++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=ee(n),s!==o&&i.setAttribute("class",o)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):Me(e)?this.each(function(i){De(this).toggleClass(e.call(this,i,te(this),t),t)}):this.each(function(){var t,s,r,a;if(n)for(s=0,r=De(this),a=ie(e);t=a[s++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==i||(t=te(this),t&&$e.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":$e.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+ee(te(i))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;De.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=Me(e),this.each(function(i){var s;1===this.nodeType&&(s=n?e.call(this,i,De(this).val()):e,null==s?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=De.map(s,function(e){return null==e?"":e+""})),(t=De.valHooks[this.type]||De.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))})):s?(t=De.valHooks[s.type]||De.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:(i=s.value,"string"==typeof i?i.replace(Ct,""):null==i?"":i):void 0}}),De.extend({valHooks:{option:{get:function(e){var t=De.find.attr(e,"value");return null!=t?t:ee(De.text(e))}},select:{get:function(e){var t,i,n,s=e.options,r=e.selectedIndex,a="select-one"===e.type,o=a?null:[],l=a?r+1:s.length;for(n=r<0?l:a?r:0;n-1)&&(i=!0);return i||(e.selectedIndex=-1),r}}}}),De.each(["radio","checkbox"],function(){De.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=De.inArray(De(e).val(),t)>-1}},we.checkOn||(De.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),we.focusin="onfocusin"in i;var St=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};De.extend(De.event,{trigger:function(e,t,n,s){var r,a,o,l,u,d,c,h,p=[n||de],f=ve.call(e,"type")?e.type:e,m=ve.call(e,"namespace")?e.namespace.split("."):[];if(a=h=o=n=n||de,3!==n.nodeType&&8!==n.nodeType&&!St.test(f+De.event.triggered)&&(f.indexOf(".")>-1&&(m=f.split("."),f=m.shift(),m.sort()),u=f.indexOf(":")<0&&"on"+f,e=e[De.expando]?e:new De.Event(f,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:De.makeArray(t,[e]),c=De.event.special[f]||{},s||!c.trigger||!1!==c.trigger.apply(n,t))){if(!s&&!c.noBubble&&!ke(n)){for(l=c.delegateType||f,St.test(l+f)||(a=a.parentNode);a;a=a.parentNode)p.push(a),o=a;o===(n.ownerDocument||de)&&p.push(o.defaultView||o.parentWindow||i)}for(r=0;(a=p[r++])&&!e.isPropagationStopped();)h=a,e.type=r>1?l:c.bindType||f,d=($e.get(a,"events")||{})[e.type]&&$e.get(a,"handle"),d&&d.apply(a,t),(d=u&&a[u])&&d.apply&&Re(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=f,s||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!Re(n)||u&&Me(n[f])&&!ke(n)&&(o=n[u],o&&(n[u]=null),De.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,Et),n[f](),e.isPropagationStopped()&&h.removeEventListener(f,Et),De.event.triggered=void 0,o&&(n[u]=o)),e.result}},simulate:function(e,t,i){var n=De.extend(new De.Event,i,{type:e,isSimulated:!0});De.event.trigger(n,null,t)}}),De.fn.extend({trigger:function(e,t){return this.each(function(){De.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return De.event.trigger(e,t,i,!0)}}),we.focusin||De.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){De.event.simulate(t,e.target,De.event.fix(e))};De.event.special[t]={setup:function(){var n=this.ownerDocument||this,s=$e.access(n,t);s||n.addEventListener(e,i,!0),$e.access(n,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=$e.access(n,t)-1;s?$e.access(n,t,s):(n.removeEventListener(e,i,!0),$e.remove(n,t))}}});var Ht=i.location,At=Date.now(),Ot=/\?/;De.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||De.error("Invalid XML: "+e),t};var Pt=/\[\]$/,It=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Wt=/^(?:input|select|textarea|keygen)/i;De.param=function(e,t){var i,n=[],s=function(e,t){var i=Me(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(e)||e.jquery&&!De.isPlainObject(e))De.each(e,function(){s(this.name,this.value)});else for(i in e)ne(i,e[i],t,s);return n.join("&")},De.fn.extend({serialize:function(){return De.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=De.prop(this,"elements");return e?De.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!De(this).is(":disabled")&&Wt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Ze.test(e))}).map(function(e,t){var i=De(this).val();return null==i?null:Array.isArray(i)?De.map(i,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:i.replace(It,"\r\n")}}).get()}});var Nt=/%20/g,Ft=/#.*$/,zt=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Bt=/^(?:GET|HEAD)$/,Ut=/^\/\//,qt={},Kt={},Vt="*/".concat("*"),Gt=de.createElement("a");Gt.href=Ht.href,De.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ht.href,type:"GET",isLocal:$t.test(Ht.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":De.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ae(ae(e,De.ajaxSettings),t):ae(De.ajaxSettings,e)},ajaxPrefilter:se(qt),ajaxTransport:se(Kt),ajax:function(e,t){function n(e,t,n,o){var u,h,p,b,w,M=t;d||(d=!0,l&&i.clearTimeout(l),s=void 0,a=o||"",k.readyState=e>0?4:0,u=e>=200&&e<300||304===e,n&&(b=oe(f,k,n)),b=le(f,b,k,u),u?(f.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(De.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(De.etag[r]=w)),204===e||"HEAD"===f.type?M="nocontent":304===e?M="notmodified":(M=b.state,h=b.data,p=b.error,u=!p)):(p=M,!e&&M||(M="error",e<0&&(e=0))),k.status=e,k.statusText=(t||M)+"",u?g.resolveWith(m,[h,M,k]):g.rejectWith(m,[k,M,p]),k.statusCode(y),y=void 0,c&&_.trigger(u?"ajaxSuccess":"ajaxError",[k,f,u?h:p]),v.fireWith(m,[k,M]),c&&(_.trigger("ajaxComplete",[k,f]),--De.active||De.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var s,r,a,o,l,u,d,c,h,p,f=De.ajaxSetup({},t),m=f.context||f,_=f.context&&(m.nodeType||m.jquery)?De(m):De.event,g=De.Deferred(),v=De.Callbacks("once memory"),y=f.statusCode||{},b={},w={},M="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(d){if(!o)for(o={};t=Rt.exec(a);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return d?a:null},setRequestHeader:function(e,t){return null==d&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==d&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)k.always(e[k.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||M;return s&&s.abort(t),n(0,t),this}};if(g.promise(k),f.url=((e||f.url||Ht.href)+"").replace(Ut,Ht.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Ie)||[""],null==f.crossDomain){u=de.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Gt.protocol+"//"+Gt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=De.param(f.data,f.traditional)),re(qt,f,t,k),d)return k;c=De.event&&f.global,c&&0==De.active++&&De.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Bt.test(f.type),r=f.url.replace(Ft,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Nt,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Ot.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(zt,"$1"),p=(Ot.test(r)?"&":"?")+"_="+At+++p),f.url=r+p),f.ifModified&&(De.lastModified[r]&&k.setRequestHeader("If-Modified-Since",De.lastModified[r]),De.etag[r]&&k.setRequestHeader("If-None-Match",De.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Vt+"; q=0.01":""):f.accepts["*"]);for(h in f.headers)k.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(m,k,f)||d))return k.abort();if(M="abort",v.add(f.complete),k.done(f.success),k.fail(f.error),s=re(Kt,f,t,k)){if(k.readyState=1,c&&_.trigger("ajaxSend",[k,f]),d)return k;f.async&&f.timeout>0&&(l=i.setTimeout(function(){k.abort("timeout")},f.timeout));try{d=!1,s.send(b,n)}catch(e){if(d)throw e;n(-1,e)}}else n(-1,"No Transport");return k},getJSON:function(e,t,i){return De.get(e,t,i,"json")},getScript:function(e,t){return De.get(e,void 0,t,"script")}}),De.each(["get","post"],function(e,t){De[t]=function(e,i,n,s){return Me(i)&&(s=s||n,n=i,i=void 0),De.ajax(De.extend({url:e,type:t,dataType:s,data:i,success:n},De.isPlainObject(e)&&e))}}),De._evalUrl=function(e){return De.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},De.fn.extend({wrapAll:function(e){var t;return this[0]&&(Me(e)&&(e=e.call(this[0])),t=De(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return Me(e)?this.each(function(t){De(this).wrapInner(e.call(this,t))}):this.each(function(){var t=De(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=Me(e);return this.each(function(i){De(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){De(this).replaceWith(this.childNodes)}),this}}),De.expr.pseudos.hidden=function(e){return!De.expr.pseudos.visible(e)},De.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},De.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Xt=De.ajaxSettings.xhr();we.cors=!!Xt&&"withCredentials"in Xt,we.ajax=Xt=!!Xt,De.ajaxTransport(function(e){var t,n;if(we.cors||Xt&&!e.crossDomain)return{send:function(s,r){var a,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)o[a]=e.xhrFields[a];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");for(a in s)o.setRequestHeader(a,s[a]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?r(0,"error"):r(o.status,o.statusText):r(Jt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),De.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),De.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return De.globalEval(e),e}}}),De.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),De.ajaxTransport("script",function(e){if(e.crossDomain){var t,i;return{send:function(n,s){t=De("'), + (e = e.removeChild(e.firstChild))) + : 'string' == typeof r.is + ? (e = u.createElement(i, { is: r.is })) + : ((e = u.createElement(i)), + 'select' === i && + ((u = e), + r.multiple + ? (u.multiple = !0) + : r.size && (u.size = r.size))) + : (e = u.createElementNS(e, i)), + (e[En] = t), + (e[Sn] = r), + qa(e, t), + (t.stateNode = e), + (u = an(i, r)), + i) + ) { + case 'iframe': + case 'object': + case 'embed': + Qt('load', e), (s = r) + break + case 'video': + case 'audio': + for (s = 0; s < Ye.length; s++) Qt(Ye[s], e) + s = r + break + case 'source': + Qt('error', e), (s = r) + break + case 'img': + case 'image': + case 'link': + Qt('error', e), Qt('load', e), (s = r) + break + case 'form': + Qt('reset', e), Qt('submit', e), (s = r) + break + case 'details': + Qt('toggle', e), (s = r) + break + case 'input': + Te(e, r), (s = ke(e, r)), Qt('invalid', e), un(n, 'onChange') + break + case 'option': + s = Ne(e, r) + break + case 'select': + ;(e._wrapperState = { wasMultiple: !!r.multiple }), + (s = o({}, r, { value: void 0 })), + Qt('invalid', e), + un(n, 'onChange') + break + case 'textarea': + je(e, r), (s = Oe(e, r)), Qt('invalid', e), un(n, 'onChange') + break + default: + s = r + } + on(i, s) + var c = s + for (l in c) + if (c.hasOwnProperty(l)) { + var f = c[l] + 'style' === l + ? nn(e, f) + : 'dangerouslySetInnerHTML' === l + ? null != (f = f ? f.__html : void 0) && ze(e, f) + : 'children' === l + ? 'string' == typeof f + ? ('textarea' !== i || '' !== f) && qe(e, f) + : 'number' == typeof f && qe(e, '' + f) + : 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + 'autoFocus' !== l && + (E.hasOwnProperty(l) + ? null != f && un(n, l) + : null != f && G(e, l, f, u)) + } + switch (i) { + case 'input': + we(e), Ce(e, r, !1) + break + case 'textarea': + we(e), Ae(e) + break + case 'option': + null != r.value && e.setAttribute('value', '' + ge(r.value)) + break + case 'select': + ;(e.multiple = !!r.multiple), + null != (n = r.value) + ? _e(e, !!r.multiple, n, !1) + : null != r.defaultValue && + _e(e, !!r.multiple, r.defaultValue, !0) + break + default: + 'function' == typeof s.onClick && (e.onclick = sn) + } + yn(i, r) && (t.effectTag |= 4) + } + null !== t.ref && (t.effectTag |= 128) + } + return null + case 6: + if (e && null != t.stateNode) Wa(0, t, e.memoizedProps, r) + else { + if ('string' != typeof r && null === t.stateNode) + throw Error(a(166)) + ;(n = ji(Oi.current)), + ji(Ni.current), + Pa(t) + ? ((n = t.stateNode), + (r = t.memoizedProps), + (n[En] = t), + n.nodeValue !== r && (t.effectTag |= 4)) + : (((n = ( + 9 === n.nodeType ? n : n.ownerDocument + ).createTextNode(r))[En] = t), + (t.stateNode = n)) + } + return null + case 13: + return ( + uo(Ri), + (r = t.memoizedState), + 0 != (64 & t.effectTag) + ? ((t.expirationTime = n), t) + : ((n = null !== r), + (r = !1), + null === e + ? void 0 !== t.memoizedProps.fallback && Pa(t) + : ((r = null !== (i = e.memoizedState)), + n || + null === i || + (null !== (i = e.child.sibling) && + (null !== (l = t.firstEffect) + ? ((t.firstEffect = i), (i.nextEffect = l)) + : ((t.firstEffect = t.lastEffect = i), + (i.nextEffect = null)), + (i.effectTag = 8)))), + n && + !r && + 0 != (2 & t.mode) && + ((null === e && + !0 !== t.memoizedProps.unstable_avoidThisFallback) || + 0 != (1 & Ri.current) + ? Pl === wl && (Pl = xl) + : ((Pl !== wl && Pl !== xl) || (Pl = kl), + 0 !== Dl && null !== El && (Au(El, Cl), Lu(El, Dl)))), + (n || r) && (t.effectTag |= 4), + null) + ) + case 4: + return Ai(), null + case 10: + return ti(t), null + case 17: + return vo(t.type) && yo(), null + case 19: + if ((uo(Ri), null === (r = t.memoizedState))) return null + if (((i = 0 != (64 & t.effectTag)), null === (l = r.rendering))) { + if (i) Xa(r, !1) + else if (Pl !== wl || (null !== e && 0 != (64 & e.effectTag))) + for (l = t.child; null !== l; ) { + if (null !== (e = Mi(l))) { + for ( + t.effectTag |= 64, + Xa(r, !1), + null !== (i = e.updateQueue) && + ((t.updateQueue = i), (t.effectTag |= 4)), + null === r.lastEffect && (t.firstEffect = null), + t.lastEffect = r.lastEffect, + r = t.child; + null !== r; + + ) + (l = n), + ((i = r).effectTag &= 2), + (i.nextEffect = null), + (i.firstEffect = null), + (i.lastEffect = null), + null === (e = i.alternate) + ? ((i.childExpirationTime = 0), + (i.expirationTime = l), + (i.child = null), + (i.memoizedProps = null), + (i.memoizedState = null), + (i.updateQueue = null), + (i.dependencies = null)) + : ((i.childExpirationTime = e.childExpirationTime), + (i.expirationTime = e.expirationTime), + (i.child = e.child), + (i.memoizedProps = e.memoizedProps), + (i.memoizedState = e.memoizedState), + (i.updateQueue = e.updateQueue), + (l = e.dependencies), + (i.dependencies = + null === l + ? null + : { + expirationTime: l.expirationTime, + firstContext: l.firstContext, + responders: l.responders, + })), + (r = r.sibling) + return so(Ri, (1 & Ri.current) | 2), t.child + } + l = l.sibling + } + } else { + if (!i) + if (null !== (e = Mi(l))) { + if ( + ((t.effectTag |= 64), + (i = !0), + null !== (n = e.updateQueue) && + ((t.updateQueue = n), (t.effectTag |= 4)), + Xa(r, !0), + null === r.tail && 'hidden' === r.tailMode && !l.alternate) + ) + return ( + null !== (t = t.lastEffect = r.lastEffect) && + (t.nextEffect = null), + null + ) + } else + 2 * qo() - r.renderingStartTime > r.tailExpiration && + 1 < n && + ((t.effectTag |= 64), + (i = !0), + Xa(r, !1), + (t.expirationTime = t.childExpirationTime = n - 1)) + r.isBackwards + ? ((l.sibling = t.child), (t.child = l)) + : (null !== (n = r.last) ? (n.sibling = l) : (t.child = l), + (r.last = l)) + } + return null !== r.tail + ? (0 === r.tailExpiration && (r.tailExpiration = qo() + 500), + (n = r.tail), + (r.rendering = n), + (r.tail = n.sibling), + (r.lastEffect = t.lastEffect), + (r.renderingStartTime = qo()), + (n.sibling = null), + (t = Ri.current), + so(Ri, i ? (1 & t) | 2 : 1 & t), + n) + : null + } + throw Error(a(156, t.tag)) + } + function Ga(e) { + switch (e.tag) { + case 1: + vo(e.type) && yo() + var t = e.effectTag + return 4096 & t ? ((e.effectTag = (-4097 & t) | 64), e) : null + case 3: + if ((Ai(), uo(po), uo(fo), 0 != (64 & (t = e.effectTag)))) + throw Error(a(285)) + return (e.effectTag = (-4097 & t) | 64), e + case 5: + return Ii(e), null + case 13: + return ( + uo(Ri), + 4096 & (t = e.effectTag) + ? ((e.effectTag = (-4097 & t) | 64), e) + : null + ) + case 19: + return uo(Ri), null + case 4: + return Ai(), null + case 10: + return ti(e), null + default: + return null + } + } + function Ja(e, t) { + return { value: e, source: t, stack: ye(t) } + } + ;(qa = function (e, t) { + for (var n = t.child; null !== n; ) { + if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode) + else if (4 !== n.tag && null !== n.child) { + ;(n.child.return = n), (n = n.child) + continue + } + if (n === t) break + for (; null === n.sibling; ) { + if (null === n.return || n.return === t) return + n = n.return + } + ;(n.sibling.return = n.return), (n = n.sibling) + } + }), + (Ha = function (e, t, n, r, i) { + var a = e.memoizedProps + if (a !== r) { + var l, + u, + s = t.stateNode + switch ((ji(Ni.current), (e = null), n)) { + case 'input': + ;(a = ke(s, a)), (r = ke(s, r)), (e = []) + break + case 'option': + ;(a = Ne(s, a)), (r = Ne(s, r)), (e = []) + break + case 'select': + ;(a = o({}, a, { value: void 0 })), + (r = o({}, r, { value: void 0 })), + (e = []) + break + case 'textarea': + ;(a = Oe(s, a)), (r = Oe(s, r)), (e = []) + break + default: + 'function' != typeof a.onClick && + 'function' == typeof r.onClick && + (s.onclick = sn) + } + for (l in (on(n, r), (n = null), a)) + if (!r.hasOwnProperty(l) && a.hasOwnProperty(l) && null != a[l]) + if ('style' === l) + for (u in (s = a[l])) + s.hasOwnProperty(u) && (n || (n = {}), (n[u] = '')) + else + 'dangerouslySetInnerHTML' !== l && + 'children' !== l && + 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + 'autoFocus' !== l && + (E.hasOwnProperty(l) + ? e || (e = []) + : (e = e || []).push(l, null)) + for (l in r) { + var c = r[l] + if ( + ((s = null != a ? a[l] : void 0), + r.hasOwnProperty(l) && c !== s && (null != c || null != s)) + ) + if ('style' === l) + if (s) { + for (u in s) + !s.hasOwnProperty(u) || + (c && c.hasOwnProperty(u)) || + (n || (n = {}), (n[u] = '')) + for (u in c) + c.hasOwnProperty(u) && + s[u] !== c[u] && + (n || (n = {}), (n[u] = c[u])) + } else n || (e || (e = []), e.push(l, n)), (n = c) + else + 'dangerouslySetInnerHTML' === l + ? ((c = c ? c.__html : void 0), + (s = s ? s.__html : void 0), + null != c && s !== c && (e = e || []).push(l, c)) + : 'children' === l + ? s === c || + ('string' != typeof c && 'number' != typeof c) || + (e = e || []).push(l, '' + c) + : 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + (E.hasOwnProperty(l) + ? (null != c && un(i, l), e || s === c || (e = [])) + : (e = e || []).push(l, c)) + } + n && (e = e || []).push('style', n), + (i = e), + (t.updateQueue = i) && (t.effectTag |= 4) + } + }), + (Wa = function (e, t, n, r) { + n !== r && (t.effectTag |= 4) + }) + var Za = 'function' == typeof WeakSet ? WeakSet : Set + function el(e, t) { + var n = t.source, + r = t.stack + null === r && null !== n && (r = ye(n)), + null !== n && ve(n.type), + (t = t.value), + null !== e && 1 === e.tag && ve(e.type) + try { + console.error(t) + } catch (e) { + setTimeout(function () { + throw e + }) + } + } + function tl(e) { + var t = e.ref + if (null !== t) + if ('function' == typeof t) + try { + t(null) + } catch (t) { + gu(e, t) + } + else t.current = null + } + function nl(e, t) { + switch (t.tag) { + case 0: + case 11: + case 15: + case 22: + return + case 1: + if (256 & t.effectTag && null !== e) { + var n = e.memoizedProps, + r = e.memoizedState + ;(t = (e = t.stateNode).getSnapshotBeforeUpdate( + t.elementType === t.type ? n : Xo(t.type, n), + r + )), + (e.__reactInternalSnapshotBeforeUpdate = t) + } + return + case 3: + case 5: + case 6: + case 4: + case 17: + return + } + throw Error(a(163)) + } + function rl(e, t) { + if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { + var n = (t = t.next) + do { + if ((n.tag & e) === e) { + var r = n.destroy + ;(n.destroy = void 0), void 0 !== r && r() + } + n = n.next + } while (n !== t) + } + } + function ol(e, t) { + if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { + var n = (t = t.next) + do { + if ((n.tag & e) === e) { + var r = n.create + n.destroy = r() + } + n = n.next + } while (n !== t) + } + } + function il(e, t, n) { + switch (n.tag) { + case 0: + case 11: + case 15: + case 22: + return void ol(3, n) + case 1: + if (((e = n.stateNode), 4 & n.effectTag)) + if (null === t) e.componentDidMount() + else { + var r = + n.elementType === n.type + ? t.memoizedProps + : Xo(n.type, t.memoizedProps) + e.componentDidUpdate( + r, + t.memoizedState, + e.__reactInternalSnapshotBeforeUpdate + ) + } + return void (null !== (t = n.updateQueue) && di(n, t, e)) + case 3: + if (null !== (t = n.updateQueue)) { + if (((e = null), null !== n.child)) + switch (n.child.tag) { + case 5: + e = n.child.stateNode + break + case 1: + e = n.child.stateNode + } + di(n, t, e) + } + return + case 5: + return ( + (e = n.stateNode), + void ( + null === t && + 4 & n.effectTag && + yn(n.type, n.memoizedProps) && + e.focus() + ) + ) + case 6: + case 4: + case 12: + return + case 13: + return void ( + null === n.memoizedState && + ((n = n.alternate), + null !== n && + ((n = n.memoizedState), + null !== n && ((n = n.dehydrated), null !== n && Rt(n)))) + ) + case 19: + case 17: + case 20: + case 21: + return + } + throw Error(a(163)) + } + function al(e, t, n) { + switch (('function' == typeof ku && ku(t), t.tag)) { + case 0: + case 11: + case 14: + case 15: + case 22: + if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) { + var r = e.next + Uo(97 < n ? 97 : n, function () { + var e = r + do { + var n = e.destroy + if (void 0 !== n) { + var o = t + try { + n() + } catch (e) { + gu(o, e) + } + } + e = e.next + } while (e !== r) + }) + } + break + case 1: + tl(t), + 'function' == typeof (n = t.stateNode).componentWillUnmount && + (function (e, t) { + try { + ;(t.props = e.memoizedProps), + (t.state = e.memoizedState), + t.componentWillUnmount() + } catch (t) { + gu(e, t) + } + })(t, n) + break + case 5: + tl(t) + break + case 4: + cl(e, t, n) + } + } + function ll(e) { + var t = e.alternate + ;(e.return = null), + (e.child = null), + (e.memoizedState = null), + (e.updateQueue = null), + (e.dependencies = null), + (e.alternate = null), + (e.firstEffect = null), + (e.lastEffect = null), + (e.pendingProps = null), + (e.memoizedProps = null), + (e.stateNode = null), + null !== t && ll(t) + } + function ul(e) { + return 5 === e.tag || 3 === e.tag || 4 === e.tag + } + function sl(e) { + e: { + for (var t = e.return; null !== t; ) { + if (ul(t)) { + var n = t + break e + } + t = t.return + } + throw Error(a(160)) + } + switch (((t = n.stateNode), n.tag)) { + case 5: + var r = !1 + break + case 3: + case 4: + ;(t = t.containerInfo), (r = !0) + break + default: + throw Error(a(161)) + } + 16 & n.effectTag && (qe(t, ''), (n.effectTag &= -17)) + e: t: for (n = e; ; ) { + for (; null === n.sibling; ) { + if (null === n.return || ul(n.return)) { + n = null + break e + } + n = n.return + } + for ( + n.sibling.return = n.return, n = n.sibling; + 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; + + ) { + if (2 & n.effectTag) continue t + if (null === n.child || 4 === n.tag) continue t + ;(n.child.return = n), (n = n.child) + } + if (!(2 & n.effectTag)) { + n = n.stateNode + break e + } + } + r + ? (function e(t, n, r) { + var o = t.tag, + i = 5 === o || 6 === o + if (i) + (t = i ? t.stateNode : t.stateNode.instance), + n + ? 8 === r.nodeType + ? r.parentNode.insertBefore(t, n) + : r.insertBefore(t, n) + : (8 === r.nodeType + ? (n = r.parentNode).insertBefore(t, r) + : (n = r).appendChild(t), + (null !== (r = r._reactRootContainer) && void 0 !== r) || + null !== n.onclick || + (n.onclick = sn)) + else if (4 !== o && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t; ) + e(t, n, r), (t = t.sibling) + })(e, n, t) + : (function e(t, n, r) { + var o = t.tag, + i = 5 === o || 6 === o + if (i) + (t = i ? t.stateNode : t.stateNode.instance), + n ? r.insertBefore(t, n) : r.appendChild(t) + else if (4 !== o && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t; ) + e(t, n, r), (t = t.sibling) + })(e, n, t) + } + function cl(e, t, n) { + for (var r, o, i = t, l = !1; ; ) { + if (!l) { + l = i.return + e: for (;;) { + if (null === l) throw Error(a(160)) + switch (((r = l.stateNode), l.tag)) { + case 5: + o = !1 + break e + case 3: + case 4: + ;(r = r.containerInfo), (o = !0) + break e + } + l = l.return + } + l = !0 + } + if (5 === i.tag || 6 === i.tag) { + e: for (var u = e, s = i, c = n, f = s; ; ) + if ((al(u, f, c), null !== f.child && 4 !== f.tag)) + (f.child.return = f), (f = f.child) + else { + if (f === s) break e + for (; null === f.sibling; ) { + if (null === f.return || f.return === s) break e + f = f.return + } + ;(f.sibling.return = f.return), (f = f.sibling) + } + o + ? ((u = r), + (s = i.stateNode), + 8 === u.nodeType ? u.parentNode.removeChild(s) : u.removeChild(s)) + : r.removeChild(i.stateNode) + } else if (4 === i.tag) { + if (null !== i.child) { + ;(r = i.stateNode.containerInfo), + (o = !0), + (i.child.return = i), + (i = i.child) + continue + } + } else if ((al(e, i, n), null !== i.child)) { + ;(i.child.return = i), (i = i.child) + continue + } + if (i === t) break + for (; null === i.sibling; ) { + if (null === i.return || i.return === t) return + 4 === (i = i.return).tag && (l = !1) + } + ;(i.sibling.return = i.return), (i = i.sibling) + } + } + function fl(e, t) { + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + case 22: + return void rl(3, t) + case 1: + return + case 5: + var n = t.stateNode + if (null != n) { + var r = t.memoizedProps, + o = null !== e ? e.memoizedProps : r + e = t.type + var i = t.updateQueue + if (((t.updateQueue = null), null !== i)) { + for ( + n[Sn] = r, + 'input' === e && + 'radio' === r.type && + null != r.name && + Ee(n, r), + an(e, o), + t = an(e, r), + o = 0; + o < i.length; + o += 2 + ) { + var l = i[o], + u = i[o + 1] + 'style' === l + ? nn(n, u) + : 'dangerouslySetInnerHTML' === l + ? ze(n, u) + : 'children' === l + ? qe(n, u) + : G(n, l, u, t) + } + switch (e) { + case 'input': + Se(n, r) + break + case 'textarea': + De(n, r) + break + case 'select': + ;(t = n._wrapperState.wasMultiple), + (n._wrapperState.wasMultiple = !!r.multiple), + null != (e = r.value) + ? _e(n, !!r.multiple, e, !1) + : t !== !!r.multiple && + (null != r.defaultValue + ? _e(n, !!r.multiple, r.defaultValue, !0) + : _e(n, !!r.multiple, r.multiple ? [] : '', !1)) + } + } + } + return + case 6: + if (null === t.stateNode) throw Error(a(162)) + return void (t.stateNode.nodeValue = t.memoizedProps) + case 3: + return void ( + (t = t.stateNode).hydrate && ((t.hydrate = !1), Rt(t.containerInfo)) + ) + case 12: + return + case 13: + if ( + ((n = t), + null === t.memoizedState + ? (r = !1) + : ((r = !0), (n = t.child), (Ll = qo())), + null !== n) + ) + e: for (e = n; ; ) { + if (5 === e.tag) + (i = e.stateNode), + r + ? 'function' == typeof (i = i.style).setProperty + ? i.setProperty('display', 'none', 'important') + : (i.display = 'none') + : ((i = e.stateNode), + (o = + null != (o = e.memoizedProps.style) && + o.hasOwnProperty('display') + ? o.display + : null), + (i.style.display = tn('display', o))) + else if (6 === e.tag) + e.stateNode.nodeValue = r ? '' : e.memoizedProps + else { + if ( + 13 === e.tag && + null !== e.memoizedState && + null === e.memoizedState.dehydrated + ) { + ;((i = e.child.sibling).return = e), (e = i) + continue + } + if (null !== e.child) { + ;(e.child.return = e), (e = e.child) + continue + } + } + if (e === n) break + for (; null === e.sibling; ) { + if (null === e.return || e.return === n) break e + e = e.return + } + ;(e.sibling.return = e.return), (e = e.sibling) + } + return void dl(t) + case 19: + return void dl(t) + case 17: + return + } + throw Error(a(163)) + } + function dl(e) { + var t = e.updateQueue + if (null !== t) { + e.updateQueue = null + var n = e.stateNode + null === n && (n = e.stateNode = new Za()), + t.forEach(function (t) { + var r = wu.bind(null, e, t) + n.has(t) || (n.add(t), t.then(r, r)) + }) + } + } + var pl = 'function' == typeof WeakMap ? WeakMap : Map + function hl(e, t, n) { + ;((n = ui(n, null)).tag = 3), (n.payload = { element: null }) + var r = t.value + return ( + (n.callback = function () { + Rl || ((Rl = !0), (Ml = r)), el(e, t) + }), + n + ) + } + function ml(e, t, n) { + ;(n = ui(n, null)).tag = 3 + var r = e.type.getDerivedStateFromError + if ('function' == typeof r) { + var o = t.value + n.payload = function () { + return el(e, t), r(o) + } + } + var i = e.stateNode + return ( + null !== i && + 'function' == typeof i.componentDidCatch && + (n.callback = function () { + 'function' != typeof r && + (null === Fl ? (Fl = new Set([this])) : Fl.add(this), el(e, t)) + var n = t.stack + this.componentDidCatch(t.value, { + componentStack: null !== n ? n : '', + }) + }), + n + ) + } + var vl, + yl = Math.ceil, + gl = Y.ReactCurrentDispatcher, + bl = Y.ReactCurrentOwner, + wl = 0, + xl = 3, + kl = 4, + Tl = 0, + El = null, + Sl = null, + Cl = 0, + Pl = wl, + Nl = null, + _l = 1073741823, + Ol = 1073741823, + jl = null, + Dl = 0, + Al = !1, + Ll = 0, + Il = null, + Rl = !1, + Ml = null, + Fl = null, + zl = !1, + ql = null, + Hl = 90, + Wl = null, + Ul = 0, + $l = null, + Bl = 0 + function Vl() { + return 0 != (48 & Tl) + ? 1073741821 - ((qo() / 10) | 0) + : 0 !== Bl + ? Bl + : (Bl = 1073741821 - ((qo() / 10) | 0)) + } + function Ql(e, t, n) { + if (0 == (2 & (t = t.mode))) return 1073741823 + var r = Ho() + if (0 == (4 & t)) return 99 === r ? 1073741823 : 1073741822 + if (0 != (16 & Tl)) return Cl + if (null !== n) e = Ko(e, 0 | n.timeoutMs || 5e3, 250) + else + switch (r) { + case 99: + e = 1073741823 + break + case 98: + e = Ko(e, 150, 100) + break + case 97: + case 96: + e = Ko(e, 5e3, 250) + break + case 95: + e = 2 + break + default: + throw Error(a(326)) + } + return null !== El && e === Cl && --e, e + } + function Kl(e, t) { + if (50 < Ul) throw ((Ul = 0), ($l = null), Error(a(185))) + if (null !== (e = Xl(e, t))) { + var n = Ho() + 1073741823 === t + ? 0 != (8 & Tl) && 0 == (48 & Tl) + ? Zl(e) + : (Gl(e), 0 === Tl && Vo()) + : Gl(e), + 0 == (4 & Tl) || + (98 !== n && 99 !== n) || + (null === Wl + ? (Wl = new Map([[e, t]])) + : (void 0 === (n = Wl.get(e)) || n > t) && Wl.set(e, t)) + } + } + function Xl(e, t) { + e.expirationTime < t && (e.expirationTime = t) + var n = e.alternate + null !== n && n.expirationTime < t && (n.expirationTime = t) + var r = e.return, + o = null + if (null === r && 3 === e.tag) o = e.stateNode + else + for (; null !== r; ) { + if ( + ((n = r.alternate), + r.childExpirationTime < t && (r.childExpirationTime = t), + null !== n && + n.childExpirationTime < t && + (n.childExpirationTime = t), + null === r.return && 3 === r.tag) + ) { + o = r.stateNode + break + } + r = r.return + } + return ( + null !== o && (El === o && (au(t), Pl === kl && Au(o, Cl)), Lu(o, t)), o + ) + } + function Yl(e) { + var t = e.lastExpiredTime + if (0 !== t) return t + if (!Du(e, (t = e.firstPendingTime))) return t + var n = e.lastPingedTime + return 2 >= (e = n > (e = e.nextKnownPendingLevel) ? n : e) && t !== e + ? 0 + : e + } + function Gl(e) { + if (0 !== e.lastExpiredTime) + (e.callbackExpirationTime = 1073741823), + (e.callbackPriority = 99), + (e.callbackNode = Bo(Zl.bind(null, e))) + else { + var t = Yl(e), + n = e.callbackNode + if (0 === t) + null !== n && + ((e.callbackNode = null), + (e.callbackExpirationTime = 0), + (e.callbackPriority = 90)) + else { + var r = Vl() + if ( + (1073741823 === t + ? (r = 99) + : 1 === t || 2 === t + ? (r = 95) + : (r = + 0 >= (r = 10 * (1073741821 - t) - 10 * (1073741821 - r)) + ? 99 + : 250 >= r + ? 98 + : 5250 >= r + ? 97 + : 95), + null !== n) + ) { + var o = e.callbackPriority + if (e.callbackExpirationTime === t && o >= r) return + n !== Ao && Eo(n) + } + ;(e.callbackExpirationTime = t), + (e.callbackPriority = r), + (t = + 1073741823 === t + ? Bo(Zl.bind(null, e)) + : $o(r, Jl.bind(null, e), { + timeout: 10 * (1073741821 - t) - qo(), + })), + (e.callbackNode = t) + } + } + } + function Jl(e, t) { + if (((Bl = 0), t)) return Iu(e, (t = Vl())), Gl(e), null + var n = Yl(e) + if (0 !== n) { + if (((t = e.callbackNode), 0 != (48 & Tl))) throw Error(a(327)) + if ((mu(), (e === El && n === Cl) || nu(e, n), null !== Sl)) { + var r = Tl + Tl |= 16 + for (var o = ou(); ; ) + try { + uu() + break + } catch (t) { + ru(e, t) + } + if ((ei(), (Tl = r), (gl.current = o), 1 === Pl)) + throw ((t = Nl), nu(e, n), Au(e, n), Gl(e), t) + if (null === Sl) + switch ( + ((o = e.finishedWork = e.current.alternate), + (e.finishedExpirationTime = n), + (r = Pl), + (El = null), + r) + ) { + case wl: + case 1: + throw Error(a(345)) + case 2: + Iu(e, 2 < n ? 2 : n) + break + case xl: + if ( + (Au(e, n), + n === (r = e.lastSuspendedTime) && + (e.nextKnownPendingLevel = fu(o)), + 1073741823 === _l && 10 < (o = Ll + 500 - qo())) + ) { + if (Al) { + var i = e.lastPingedTime + if (0 === i || i >= n) { + ;(e.lastPingedTime = n), nu(e, n) + break + } + } + if (0 !== (i = Yl(e)) && i !== n) break + if (0 !== r && r !== n) { + e.lastPingedTime = r + break + } + e.timeoutHandle = bn(du.bind(null, e), o) + break + } + du(e) + break + case kl: + if ( + (Au(e, n), + n === (r = e.lastSuspendedTime) && + (e.nextKnownPendingLevel = fu(o)), + Al && (0 === (o = e.lastPingedTime) || o >= n)) + ) { + ;(e.lastPingedTime = n), nu(e, n) + break + } + if (0 !== (o = Yl(e)) && o !== n) break + if (0 !== r && r !== n) { + e.lastPingedTime = r + break + } + if ( + (1073741823 !== Ol + ? (r = 10 * (1073741821 - Ol) - qo()) + : 1073741823 === _l + ? (r = 0) + : ((r = 10 * (1073741821 - _l) - 5e3), + 0 > (r = (o = qo()) - r) && (r = 0), + (n = 10 * (1073741821 - n) - o) < + (r = + (120 > r + ? 120 + : 480 > r + ? 480 + : 1080 > r + ? 1080 + : 1920 > r + ? 1920 + : 3e3 > r + ? 3e3 + : 4320 > r + ? 4320 + : 1960 * yl(r / 1960)) - r) && (r = n)), + 10 < r) + ) { + e.timeoutHandle = bn(du.bind(null, e), r) + break + } + du(e) + break + case 5: + if (1073741823 !== _l && null !== jl) { + i = _l + var l = jl + if ( + (0 >= (r = 0 | l.busyMinDurationMs) + ? (r = 0) + : ((o = 0 | l.busyDelayMs), + (r = + (i = + qo() - + (10 * (1073741821 - i) - + (0 | l.timeoutMs || 5e3))) <= o + ? 0 + : o + r - i)), + 10 < r) + ) { + Au(e, n), (e.timeoutHandle = bn(du.bind(null, e), r)) + break + } + } + du(e) + break + default: + throw Error(a(329)) + } + if ((Gl(e), e.callbackNode === t)) return Jl.bind(null, e) + } + } + return null + } + function Zl(e) { + var t = e.lastExpiredTime + if (((t = 0 !== t ? t : 1073741823), 0 != (48 & Tl))) throw Error(a(327)) + if ((mu(), (e === El && t === Cl) || nu(e, t), null !== Sl)) { + var n = Tl + Tl |= 16 + for (var r = ou(); ; ) + try { + lu() + break + } catch (t) { + ru(e, t) + } + if ((ei(), (Tl = n), (gl.current = r), 1 === Pl)) + throw ((n = Nl), nu(e, t), Au(e, t), Gl(e), n) + if (null !== Sl) throw Error(a(261)) + ;(e.finishedWork = e.current.alternate), + (e.finishedExpirationTime = t), + (El = null), + du(e), + Gl(e) + } + return null + } + function eu(e, t) { + var n = Tl + Tl |= 1 + try { + return e(t) + } finally { + 0 === (Tl = n) && Vo() + } + } + function tu(e, t) { + var n = Tl + ;(Tl &= -2), (Tl |= 8) + try { + return e(t) + } finally { + 0 === (Tl = n) && Vo() + } + } + function nu(e, t) { + ;(e.finishedWork = null), (e.finishedExpirationTime = 0) + var n = e.timeoutHandle + if ((-1 !== n && ((e.timeoutHandle = -1), wn(n)), null !== Sl)) + for (n = Sl.return; null !== n; ) { + var r = n + switch (r.tag) { + case 1: + null != (r = r.type.childContextTypes) && yo() + break + case 3: + Ai(), uo(po), uo(fo) + break + case 5: + Ii(r) + break + case 4: + Ai() + break + case 13: + case 19: + uo(Ri) + break + case 10: + ti(r) + } + n = n.return + } + ;(El = e), + (Sl = Cu(e.current, null)), + (Cl = t), + (Pl = wl), + (Nl = null), + (Ol = _l = 1073741823), + (jl = null), + (Dl = 0), + (Al = !1) + } + function ru(e, t) { + while (!0) { + try { + if ((ei(), (zi.current = va), Bi)) + for (var n = Wi.memoizedState; null !== n; ) { + var r = n.queue + null !== r && (r.pending = null), (n = n.next) + } + if ( + ((Hi = 0), + ($i = Ui = Wi = null), + (Bi = !1), + null === Sl || null === Sl.return) + ) + return (Pl = 1), (Nl = t), (Sl = null) + e: { + var o = e, + i = Sl.return, + a = Sl, + l = t + if ( + ((t = Cl), + (a.effectTag |= 2048), + (a.firstEffect = a.lastEffect = null), + null !== l && 'object' == typeof l && 'function' == typeof l.then) + ) { + var u = l + if (0 == (2 & a.mode)) { + var s = a.alternate + s + ? ((a.updateQueue = s.updateQueue), + (a.memoizedState = s.memoizedState), + (a.expirationTime = s.expirationTime)) + : ((a.updateQueue = null), (a.memoizedState = null)) + } + var c = 0 != (1 & Ri.current), + f = i + do { + var d + if ((d = 13 === f.tag)) { + var p = f.memoizedState + if (null !== p) d = null !== p.dehydrated + else { + var h = f.memoizedProps + d = + void 0 !== h.fallback && + (!0 !== h.unstable_avoidThisFallback || !c) + } + } + if (d) { + var m = f.updateQueue + if (null === m) { + var v = new Set() + v.add(u), (f.updateQueue = v) + } else m.add(u) + if (0 == (2 & f.mode)) { + if ( + ((f.effectTag |= 64), (a.effectTag &= -2981), 1 === a.tag) + ) + if (null === a.alternate) a.tag = 17 + else { + var y = ui(1073741823, null) + ;(y.tag = 2), si(a, y) + } + a.expirationTime = 1073741823 + break e + } + ;(l = void 0), (a = t) + var g = o.pingCache + if ( + (null === g + ? ((g = o.pingCache = new pl()), + (l = new Set()), + g.set(u, l)) + : void 0 === (l = g.get(u)) && + ((l = new Set()), g.set(u, l)), + !l.has(a)) + ) { + l.add(a) + var b = bu.bind(null, o, u, a) + u.then(b, b) + } + ;(f.effectTag |= 4096), (f.expirationTime = t) + break e + } + f = f.return + } while (null !== f) + l = Error( + (ve(a.type) || 'A React component') + + ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.' + + ye(a) + ) + } + 5 !== Pl && (Pl = 2), (l = Ja(l, a)), (f = i) + do { + switch (f.tag) { + case 3: + ;(u = l), + (f.effectTag |= 4096), + (f.expirationTime = t), + ci(f, hl(f, u, t)) + break e + case 1: + u = l + var w = f.type, + x = f.stateNode + if ( + 0 == (64 & f.effectTag) && + ('function' == typeof w.getDerivedStateFromError || + (null !== x && + 'function' == typeof x.componentDidCatch && + (null === Fl || !Fl.has(x)))) + ) { + ;(f.effectTag |= 4096), + (f.expirationTime = t), + ci(f, ml(f, u, t)) + break e + } + } + f = f.return + } while (null !== f) + } + Sl = cu(Sl) + } catch (e) { + t = e + continue + } + break + } + } + function ou() { + var e = gl.current + return (gl.current = va), null === e ? va : e + } + function iu(e, t) { + e < _l && 2 < e && (_l = e), + null !== t && e < Ol && 2 < e && ((Ol = e), (jl = t)) + } + function au(e) { + e > Dl && (Dl = e) + } + function lu() { + for (; null !== Sl; ) Sl = su(Sl) + } + function uu() { + for (; null !== Sl && !Lo(); ) Sl = su(Sl) + } + function su(e) { + var t = vl(e.alternate, e, Cl) + return ( + (e.memoizedProps = e.pendingProps), + null === t && (t = cu(e)), + (bl.current = null), + t + ) + } + function cu(e) { + Sl = e + do { + var t = Sl.alternate + if (((e = Sl.return), 0 == (2048 & Sl.effectTag))) { + if (((t = Ya(t, Sl, Cl)), 1 === Cl || 1 !== Sl.childExpirationTime)) { + for (var n = 0, r = Sl.child; null !== r; ) { + var o = r.expirationTime, + i = r.childExpirationTime + o > n && (n = o), i > n && (n = i), (r = r.sibling) + } + Sl.childExpirationTime = n + } + if (null !== t) return t + null !== e && + 0 == (2048 & e.effectTag) && + (null === e.firstEffect && (e.firstEffect = Sl.firstEffect), + null !== Sl.lastEffect && + (null !== e.lastEffect && + (e.lastEffect.nextEffect = Sl.firstEffect), + (e.lastEffect = Sl.lastEffect)), + 1 < Sl.effectTag && + (null !== e.lastEffect + ? (e.lastEffect.nextEffect = Sl) + : (e.firstEffect = Sl), + (e.lastEffect = Sl))) + } else { + if (null !== (t = Ga(Sl))) return (t.effectTag &= 2047), t + null !== e && + ((e.firstEffect = e.lastEffect = null), (e.effectTag |= 2048)) + } + if (null !== (t = Sl.sibling)) return t + Sl = e + } while (null !== Sl) + return Pl === wl && (Pl = 5), null + } + function fu(e) { + var t = e.expirationTime + return t > (e = e.childExpirationTime) ? t : e + } + function du(e) { + var t = Ho() + return Uo(99, pu.bind(null, e, t)), null + } + function pu(e, t) { + do { + mu() + } while (null !== ql) + if (0 != (48 & Tl)) throw Error(a(327)) + var n = e.finishedWork, + r = e.finishedExpirationTime + if (null === n) return null + if ( + ((e.finishedWork = null), + (e.finishedExpirationTime = 0), + n === e.current) + ) + throw Error(a(177)) + ;(e.callbackNode = null), + (e.callbackExpirationTime = 0), + (e.callbackPriority = 90), + (e.nextKnownPendingLevel = 0) + var o = fu(n) + if ( + ((e.firstPendingTime = o), + r <= e.lastSuspendedTime + ? (e.firstSuspendedTime = + e.lastSuspendedTime = + e.nextKnownPendingLevel = + 0) + : r <= e.firstSuspendedTime && (e.firstSuspendedTime = r - 1), + r <= e.lastPingedTime && (e.lastPingedTime = 0), + r <= e.lastExpiredTime && (e.lastExpiredTime = 0), + e === El && ((Sl = El = null), (Cl = 0)), + 1 < n.effectTag + ? null !== n.lastEffect + ? ((n.lastEffect.nextEffect = n), (o = n.firstEffect)) + : (o = n) + : (o = n.firstEffect), + null !== o) + ) { + var i = Tl + ;(Tl |= 32), (bl.current = null), (mn = Vt) + var l = pn() + if (hn(l)) { + if ('selectionStart' in l) + var u = { start: l.selectionStart, end: l.selectionEnd } + else + e: { + var s = + (u = ((u = l.ownerDocument) && u.defaultView) || window) + .getSelection && u.getSelection() + if (s && 0 !== s.rangeCount) { + u = s.anchorNode + var c = s.anchorOffset, + f = s.focusNode + s = s.focusOffset + try { + u.nodeType, f.nodeType + } catch (e) { + u = null + break e + } + var d = 0, + p = -1, + h = -1, + m = 0, + v = 0, + y = l, + g = null + t: while (!0) { + for ( + var b; + y !== u || (0 !== c && 3 !== y.nodeType) || (p = d + c), + y !== f || (0 !== s && 3 !== y.nodeType) || (h = d + s), + 3 === y.nodeType && (d += y.nodeValue.length), + null !== (b = y.firstChild); + + ) + (g = y), (y = b) + while (!0) { + if (y === l) break t + if ( + (g === u && ++m === c && (p = d), + g === f && ++v === s && (h = d), + null !== (b = y.nextSibling)) + ) + break + g = (y = g).parentNode + } + y = b + } + u = -1 === p || -1 === h ? null : { start: p, end: h } + } else u = null + } + u = u || { start: 0, end: 0 } + } else u = null + ;(vn = { + activeElementDetached: null, + focusedElem: l, + selectionRange: u, + }), + (Vt = !1), + (Il = o) + do { + try { + hu() + } catch (e) { + if (null === Il) throw Error(a(330)) + gu(Il, e), (Il = Il.nextEffect) + } + } while (null !== Il) + Il = o + do { + try { + for (l = e, u = t; null !== Il; ) { + var w = Il.effectTag + if ((16 & w && qe(Il.stateNode, ''), 128 & w)) { + var x = Il.alternate + if (null !== x) { + var k = x.ref + null !== k && + ('function' == typeof k ? k(null) : (k.current = null)) + } + } + switch (1038 & w) { + case 2: + sl(Il), (Il.effectTag &= -3) + break + case 6: + sl(Il), (Il.effectTag &= -3), fl(Il.alternate, Il) + break + case 1024: + Il.effectTag &= -1025 + break + case 1028: + ;(Il.effectTag &= -1025), fl(Il.alternate, Il) + break + case 4: + fl(Il.alternate, Il) + break + case 8: + cl(l, (c = Il), u), ll(c) + } + Il = Il.nextEffect + } + } catch (e) { + if (null === Il) throw Error(a(330)) + gu(Il, e), (Il = Il.nextEffect) + } + } while (null !== Il) + if ( + ((k = vn), + (x = pn()), + (w = k.focusedElem), + (u = k.selectionRange), + x !== w && + w && + w.ownerDocument && + (function e(t, n) { + return ( + !(!t || !n) && + (t === n || + ((!t || 3 !== t.nodeType) && + (n && 3 === n.nodeType + ? e(t, n.parentNode) + : 'contains' in t + ? t.contains(n) + : !!t.compareDocumentPosition && + !!(16 & t.compareDocumentPosition(n))))) + ) + })(w.ownerDocument.documentElement, w)) + ) { + null !== u && + hn(w) && + ((x = u.start), + void 0 === (k = u.end) && (k = x), + 'selectionStart' in w + ? ((w.selectionStart = x), + (w.selectionEnd = Math.min(k, w.value.length))) + : (k = + ((x = w.ownerDocument || document) && x.defaultView) || + window).getSelection && + ((k = k.getSelection()), + (c = w.textContent.length), + (l = Math.min(u.start, c)), + (u = void 0 === u.end ? l : Math.min(u.end, c)), + !k.extend && l > u && ((c = u), (u = l), (l = c)), + (c = dn(w, l)), + (f = dn(w, u)), + c && + f && + (1 !== k.rangeCount || + k.anchorNode !== c.node || + k.anchorOffset !== c.offset || + k.focusNode !== f.node || + k.focusOffset !== f.offset) && + ((x = x.createRange()).setStart(c.node, c.offset), + k.removeAllRanges(), + l > u + ? (k.addRange(x), k.extend(f.node, f.offset)) + : (x.setEnd(f.node, f.offset), k.addRange(x))))), + (x = []) + for (k = w; (k = k.parentNode); ) + 1 === k.nodeType && + x.push({ element: k, left: k.scrollLeft, top: k.scrollTop }) + for ( + 'function' == typeof w.focus && w.focus(), w = 0; + w < x.length; + w++ + ) + ((k = x[w]).element.scrollLeft = k.left), + (k.element.scrollTop = k.top) + } + ;(Vt = !!mn), (vn = mn = null), (e.current = n), (Il = o) + do { + try { + for (w = e; null !== Il; ) { + var T = Il.effectTag + if ((36 & T && il(w, Il.alternate, Il), 128 & T)) { + x = void 0 + var E = Il.ref + if (null !== E) { + var S = Il.stateNode + switch (Il.tag) { + case 5: + x = S + break + default: + x = S + } + 'function' == typeof E ? E(x) : (E.current = x) + } + } + Il = Il.nextEffect + } + } catch (e) { + if (null === Il) throw Error(a(330)) + gu(Il, e), (Il = Il.nextEffect) + } + } while (null !== Il) + ;(Il = null), Io(), (Tl = i) + } else e.current = n + if (zl) (zl = !1), (ql = e), (Hl = t) + else + for (Il = o; null !== Il; ) + (t = Il.nextEffect), (Il.nextEffect = null), (Il = t) + if ( + (0 === (t = e.firstPendingTime) && (Fl = null), + 1073741823 === t ? (e === $l ? Ul++ : ((Ul = 0), ($l = e))) : (Ul = 0), + 'function' == typeof xu && xu(n.stateNode, r), + Gl(e), + Rl) + ) + throw ((Rl = !1), (e = Ml), (Ml = null), e) + return 0 != (8 & Tl) || Vo(), null + } + function hu() { + for (; null !== Il; ) { + var e = Il.effectTag + 0 != (256 & e) && nl(Il.alternate, Il), + 0 == (512 & e) || + zl || + ((zl = !0), + $o(97, function () { + return mu(), null + })), + (Il = Il.nextEffect) + } + } + function mu() { + if (90 !== Hl) { + var e = 97 < Hl ? 97 : Hl + return (Hl = 90), Uo(e, vu) + } + } + function vu() { + if (null === ql) return !1 + var e = ql + if (((ql = null), 0 != (48 & Tl))) throw Error(a(331)) + var t = Tl + for (Tl |= 32, e = e.current.firstEffect; null !== e; ) { + try { + var n = e + if (0 != (512 & n.effectTag)) + switch (n.tag) { + case 0: + case 11: + case 15: + case 22: + rl(5, n), ol(5, n) + } + } catch (t) { + if (null === e) throw Error(a(330)) + gu(e, t) + } + ;(n = e.nextEffect), (e.nextEffect = null), (e = n) + } + return (Tl = t), Vo(), !0 + } + function yu(e, t, n) { + si(e, (t = hl(e, (t = Ja(n, t)), 1073741823))), + null !== (e = Xl(e, 1073741823)) && Gl(e) + } + function gu(e, t) { + if (3 === e.tag) yu(e, e, t) + else + for (var n = e.return; null !== n; ) { + if (3 === n.tag) { + yu(n, e, t) + break + } + if (1 === n.tag) { + var r = n.stateNode + if ( + 'function' == typeof n.type.getDerivedStateFromError || + ('function' == typeof r.componentDidCatch && + (null === Fl || !Fl.has(r))) + ) { + si(n, (e = ml(n, (e = Ja(t, e)), 1073741823))), + null !== (n = Xl(n, 1073741823)) && Gl(n) + break + } + } + n = n.return + } + } + function bu(e, t, n) { + var r = e.pingCache + null !== r && r.delete(t), + El === e && Cl === n + ? Pl === kl || (Pl === xl && 1073741823 === _l && qo() - Ll < 500) + ? nu(e, Cl) + : (Al = !0) + : Du(e, n) && + ((0 !== (t = e.lastPingedTime) && t < n) || + ((e.lastPingedTime = n), Gl(e))) + } + function wu(e, t) { + var n = e.stateNode + null !== n && n.delete(t), + 0 === (t = 0) && (t = Ql((t = Vl()), e, null)), + null !== (e = Xl(e, t)) && Gl(e) + } + vl = function (e, t, n) { + var r = t.expirationTime + if (null !== e) { + var o = t.pendingProps + if (e.memoizedProps !== o || po.current) Oa = !0 + else { + if (r < n) { + switch (((Oa = !1), t.tag)) { + case 3: + za(t), Na() + break + case 5: + if ((Li(t), 4 & t.mode && 1 !== n && o.hidden)) + return (t.expirationTime = t.childExpirationTime = 1), null + break + case 1: + vo(t.type) && wo(t) + break + case 4: + Di(t, t.stateNode.containerInfo) + break + case 10: + ;(r = t.memoizedProps.value), + (o = t.type._context), + so(Yo, o._currentValue), + (o._currentValue = r) + break + case 13: + if (null !== t.memoizedState) + return 0 !== (r = t.child.childExpirationTime) && r >= n + ? $a(e, t, n) + : (so(Ri, 1 & Ri.current), + null !== (t = Ka(e, t, n)) ? t.sibling : null) + so(Ri, 1 & Ri.current) + break + case 19: + if ( + ((r = t.childExpirationTime >= n), 0 != (64 & e.effectTag)) + ) { + if (r) return Qa(e, t, n) + t.effectTag |= 64 + } + if ( + (null !== (o = t.memoizedState) && + ((o.rendering = null), (o.tail = null)), + so(Ri, Ri.current), + !r) + ) + return null + } + return Ka(e, t, n) + } + Oa = !1 + } + } else Oa = !1 + switch (((t.expirationTime = 0), t.tag)) { + case 2: + if ( + ((r = t.type), + null !== e && + ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)), + (e = t.pendingProps), + (o = mo(t, fo.current)), + ri(t, n), + (o = Ki(null, t, r, e, o, n)), + (t.effectTag |= 1), + 'object' == typeof o && + null !== o && + 'function' == typeof o.render && + void 0 === o.$$typeof) + ) { + if ( + ((t.tag = 1), + (t.memoizedState = null), + (t.updateQueue = null), + vo(r)) + ) { + var i = !0 + wo(t) + } else i = !1 + ;(t.memoizedState = + null !== o.state && void 0 !== o.state ? o.state : null), + ai(t) + var l = r.getDerivedStateFromProps + 'function' == typeof l && mi(t, r, l, e), + (o.updater = vi), + (t.stateNode = o), + (o._reactInternalFiber = t), + wi(t, r, e, n), + (t = Fa(null, t, r, !0, i, n)) + } else (t.tag = 0), ja(null, t, o, n), (t = t.child) + return t + case 16: + e: { + if ( + ((o = t.elementType), + null !== e && + ((e.alternate = null), + (t.alternate = null), + (t.effectTag |= 2)), + (e = t.pendingProps), + (function (e) { + if (-1 === e._status) { + e._status = 0 + var t = e._ctor + ;(t = t()), + (e._result = t), + t.then( + function (t) { + 0 === e._status && + ((t = t.default), (e._status = 1), (e._result = t)) + }, + function (t) { + 0 === e._status && ((e._status = 2), (e._result = t)) + } + ) + } + })(o), + 1 !== o._status) + ) + throw o._result + switch ( + ((o = o._result), + (t.type = o), + (i = t.tag = + (function (e) { + if ('function' == typeof e) return Su(e) ? 1 : 0 + if (null != e) { + if ((e = e.$$typeof) === ue) return 11 + if (e === fe) return 14 + } + return 2 + })(o)), + (e = Xo(o, e)), + i) + ) { + case 0: + t = Ra(null, t, o, e, n) + break e + case 1: + t = Ma(null, t, o, e, n) + break e + case 11: + t = Da(null, t, o, e, n) + break e + case 14: + t = Aa(null, t, o, Xo(o.type, e), r, n) + break e + } + throw Error(a(306, o, '')) + } + return t + case 0: + return ( + (r = t.type), + (o = t.pendingProps), + Ra(e, t, r, (o = t.elementType === r ? o : Xo(r, o)), n) + ) + case 1: + return ( + (r = t.type), + (o = t.pendingProps), + Ma(e, t, r, (o = t.elementType === r ? o : Xo(r, o)), n) + ) + case 3: + if ((za(t), (r = t.updateQueue), null === e || null === r)) + throw Error(a(282)) + if ( + ((r = t.pendingProps), + (o = null !== (o = t.memoizedState) ? o.element : null), + li(e, t), + fi(t, r, null, n), + (r = t.memoizedState.element) === o) + ) + Na(), (t = Ka(e, t, n)) + else { + if ( + ((o = t.stateNode.hydrate) && + ((xa = xn(t.stateNode.containerInfo.firstChild)), + (wa = t), + (o = ka = !0)), + o) + ) + for (n = Ci(t, null, r, n), t.child = n; n; ) + (n.effectTag = (-3 & n.effectTag) | 1024), (n = n.sibling) + else ja(e, t, r, n), Na() + t = t.child + } + return t + case 5: + return ( + Li(t), + null === e && Sa(t), + (r = t.type), + (o = t.pendingProps), + (i = null !== e ? e.memoizedProps : null), + (l = o.children), + gn(r, o) + ? (l = null) + : null !== i && gn(r, i) && (t.effectTag |= 16), + Ia(e, t), + 4 & t.mode && 1 !== n && o.hidden + ? ((t.expirationTime = t.childExpirationTime = 1), (t = null)) + : (ja(e, t, l, n), (t = t.child)), + t + ) + case 6: + return null === e && Sa(t), null + case 13: + return $a(e, t, n) + case 4: + return ( + Di(t, t.stateNode.containerInfo), + (r = t.pendingProps), + null === e ? (t.child = Si(t, null, r, n)) : ja(e, t, r, n), + t.child + ) + case 11: + return ( + (r = t.type), + (o = t.pendingProps), + Da(e, t, r, (o = t.elementType === r ? o : Xo(r, o)), n) + ) + case 7: + return ja(e, t, t.pendingProps, n), t.child + case 8: + case 12: + return ja(e, t, t.pendingProps.children, n), t.child + case 10: + e: { + ;(r = t.type._context), + (o = t.pendingProps), + (l = t.memoizedProps), + (i = o.value) + var u = t.type._context + if ((so(Yo, u._currentValue), (u._currentValue = i), null !== l)) + if ( + ((u = l.value), + 0 === + (i = Mr(u, i) + ? 0 + : 0 | + ('function' == typeof r._calculateChangedBits + ? r._calculateChangedBits(u, i) + : 1073741823))) + ) { + if (l.children === o.children && !po.current) { + t = Ka(e, t, n) + break e + } + } else + for (null !== (u = t.child) && (u.return = t); null !== u; ) { + var s = u.dependencies + if (null !== s) { + l = u.child + for (var c = s.firstContext; null !== c; ) { + if (c.context === r && 0 != (c.observedBits & i)) { + 1 === u.tag && (((c = ui(n, null)).tag = 2), si(u, c)), + u.expirationTime < n && (u.expirationTime = n), + null !== (c = u.alternate) && + c.expirationTime < n && + (c.expirationTime = n), + ni(u.return, n), + s.expirationTime < n && (s.expirationTime = n) + break + } + c = c.next + } + } else l = 10 === u.tag && u.type === t.type ? null : u.child + if (null !== l) l.return = u + else + for (l = u; null !== l; ) { + if (l === t) { + l = null + break + } + if (null !== (u = l.sibling)) { + ;(u.return = l.return), (l = u) + break + } + l = l.return + } + u = l + } + ja(e, t, o.children, n), (t = t.child) + } + return t + case 9: + return ( + (o = t.type), + (r = (i = t.pendingProps).children), + ri(t, n), + (r = r((o = oi(o, i.unstable_observedBits)))), + (t.effectTag |= 1), + ja(e, t, r, n), + t.child + ) + case 14: + return ( + (i = Xo((o = t.type), t.pendingProps)), + Aa(e, t, o, (i = Xo(o.type, i)), r, n) + ) + case 15: + return La(e, t, t.type, t.pendingProps, r, n) + case 17: + return ( + (r = t.type), + (o = t.pendingProps), + (o = t.elementType === r ? o : Xo(r, o)), + null !== e && + ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)), + (t.tag = 1), + vo(r) ? ((e = !0), wo(t)) : (e = !1), + ri(t, n), + gi(t, r, o), + wi(t, r, o, n), + Fa(null, t, r, !0, e, n) + ) + case 19: + return Qa(e, t, n) + } + throw Error(a(156, t.tag)) + } + var xu = null, + ku = null + function Tu(e, t, n, r) { + ;(this.tag = e), + (this.key = n), + (this.sibling = + this.child = + this.return = + this.stateNode = + this.type = + this.elementType = + null), + (this.index = 0), + (this.ref = null), + (this.pendingProps = t), + (this.dependencies = + this.memoizedState = + this.updateQueue = + this.memoizedProps = + null), + (this.mode = r), + (this.effectTag = 0), + (this.lastEffect = this.firstEffect = this.nextEffect = null), + (this.childExpirationTime = this.expirationTime = 0), + (this.alternate = null) + } + function Eu(e, t, n, r) { + return new Tu(e, t, n, r) + } + function Su(e) { + return !(!(e = e.prototype) || !e.isReactComponent) + } + function Cu(e, t) { + var n = e.alternate + return ( + null === n + ? (((n = Eu(e.tag, t, e.key, e.mode)).elementType = e.elementType), + (n.type = e.type), + (n.stateNode = e.stateNode), + (n.alternate = e), + (e.alternate = n)) + : ((n.pendingProps = t), + (n.effectTag = 0), + (n.nextEffect = null), + (n.firstEffect = null), + (n.lastEffect = null)), + (n.childExpirationTime = e.childExpirationTime), + (n.expirationTime = e.expirationTime), + (n.child = e.child), + (n.memoizedProps = e.memoizedProps), + (n.memoizedState = e.memoizedState), + (n.updateQueue = e.updateQueue), + (t = e.dependencies), + (n.dependencies = + null === t + ? null + : { + expirationTime: t.expirationTime, + firstContext: t.firstContext, + responders: t.responders, + }), + (n.sibling = e.sibling), + (n.index = e.index), + (n.ref = e.ref), + n + ) + } + function Pu(e, t, n, r, o, i) { + var l = 2 + if (((r = e), 'function' == typeof e)) Su(e) && (l = 1) + else if ('string' == typeof e) l = 5 + else + e: switch (e) { + case ne: + return Nu(n.children, o, i, t) + case le: + ;(l = 8), (o |= 7) + break + case re: + ;(l = 8), (o |= 1) + break + case oe: + return ( + ((e = Eu(12, n, t, 8 | o)).elementType = oe), + (e.type = oe), + (e.expirationTime = i), + e + ) + case se: + return ( + ((e = Eu(13, n, t, o)).type = se), + (e.elementType = se), + (e.expirationTime = i), + e + ) + case ce: + return ( + ((e = Eu(19, n, t, o)).elementType = ce), + (e.expirationTime = i), + e + ) + default: + if ('object' == typeof e && null !== e) + switch (e.$$typeof) { + case ie: + l = 10 + break e + case ae: + l = 9 + break e + case ue: + l = 11 + break e + case fe: + l = 14 + break e + case de: + ;(l = 16), (r = null) + break e + case pe: + l = 22 + break e + } + throw Error(a(130, null == e ? e : typeof e, '')) + } + return ( + ((t = Eu(l, n, t, o)).elementType = e), + (t.type = r), + (t.expirationTime = i), + t + ) + } + function Nu(e, t, n, r) { + return ((e = Eu(7, e, r, t)).expirationTime = n), e + } + function _u(e, t, n) { + return ((e = Eu(6, e, null, t)).expirationTime = n), e + } + function Ou(e, t, n) { + return ( + ((t = Eu( + 4, + null !== e.children ? e.children : [], + e.key, + t + )).expirationTime = n), + (t.stateNode = { + containerInfo: e.containerInfo, + pendingChildren: null, + implementation: e.implementation, + }), + t + ) + } + function ju(e, t, n) { + ;(this.tag = t), + (this.current = null), + (this.containerInfo = e), + (this.pingCache = this.pendingChildren = null), + (this.finishedExpirationTime = 0), + (this.finishedWork = null), + (this.timeoutHandle = -1), + (this.pendingContext = this.context = null), + (this.hydrate = n), + (this.callbackNode = null), + (this.callbackPriority = 90), + (this.lastExpiredTime = + this.lastPingedTime = + this.nextKnownPendingLevel = + this.lastSuspendedTime = + this.firstSuspendedTime = + this.firstPendingTime = + 0) + } + function Du(e, t) { + var n = e.firstSuspendedTime + return (e = e.lastSuspendedTime), 0 !== n && n >= t && e <= t + } + function Au(e, t) { + var n = e.firstSuspendedTime, + r = e.lastSuspendedTime + n < t && (e.firstSuspendedTime = t), + (r > t || 0 === n) && (e.lastSuspendedTime = t), + t <= e.lastPingedTime && (e.lastPingedTime = 0), + t <= e.lastExpiredTime && (e.lastExpiredTime = 0) + } + function Lu(e, t) { + t > e.firstPendingTime && (e.firstPendingTime = t) + var n = e.firstSuspendedTime + 0 !== n && + (t >= n + ? (e.firstSuspendedTime = + e.lastSuspendedTime = + e.nextKnownPendingLevel = + 0) + : t >= e.lastSuspendedTime && (e.lastSuspendedTime = t + 1), + t > e.nextKnownPendingLevel && (e.nextKnownPendingLevel = t)) + } + function Iu(e, t) { + var n = e.lastExpiredTime + ;(0 === n || n > t) && (e.lastExpiredTime = t) + } + function Ru(e, t, n, r) { + var o = t.current, + i = Vl(), + l = pi.suspense + i = Ql(i, o, l) + e: if (n) { + t: { + if (Ze((n = n._reactInternalFiber)) !== n || 1 !== n.tag) + throw Error(a(170)) + var u = n + do { + switch (u.tag) { + case 3: + u = u.stateNode.context + break t + case 1: + if (vo(u.type)) { + u = u.stateNode.__reactInternalMemoizedMergedChildContext + break t + } + } + u = u.return + } while (null !== u) + throw Error(a(171)) + } + if (1 === n.tag) { + var s = n.type + if (vo(s)) { + n = bo(n, s, u) + break e + } + } + n = u + } else n = co + return ( + null === t.context ? (t.context = n) : (t.pendingContext = n), + ((t = ui(i, l)).payload = { element: e }), + null !== (r = void 0 === r ? null : r) && (t.callback = r), + si(o, t), + Kl(o, i), + i + ) + } + function Mu(e) { + if (!(e = e.current).child) return null + switch (e.child.tag) { + case 5: + default: + return e.child.stateNode + } + } + function Fu(e, t) { + null !== (e = e.memoizedState) && + null !== e.dehydrated && + e.retryTime < t && + (e.retryTime = t) + } + function zu(e, t) { + Fu(e, t), (e = e.alternate) && Fu(e, t) + } + function qu(e, t, n) { + var r = new ju(e, t, (n = null != n && !0 === n.hydrate)), + o = Eu(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0) + ;(r.current = o), + (o.stateNode = r), + ai(o), + (e[Cn] = r.current), + n && + 0 !== t && + (function (e, t) { + var n = Je(t) + Ct.forEach(function (e) { + ht(e, t, n) + }), + Pt.forEach(function (e) { + ht(e, t, n) + }) + })(0, 9 === e.nodeType ? e : e.ownerDocument), + (this._internalRoot = r) + } + function Hu(e) { + return !( + !e || + (1 !== e.nodeType && + 9 !== e.nodeType && + 11 !== e.nodeType && + (8 !== e.nodeType || ' react-mount-point-unstable ' !== e.nodeValue)) + ) + } + function Wu(e, t, n, r, o) { + var i = n._reactRootContainer + if (i) { + var a = i._internalRoot + if ('function' == typeof o) { + var l = o + o = function () { + var e = Mu(a) + l.call(e) + } + } + Ru(t, a, e, o) + } else { + if ( + ((i = n._reactRootContainer = + (function (e, t) { + if ( + (t || + (t = !( + !(t = e + ? 9 === e.nodeType + ? e.documentElement + : e.firstChild + : null) || + 1 !== t.nodeType || + !t.hasAttribute('data-reactroot') + )), + !t) + ) + for (var n; (n = e.lastChild); ) e.removeChild(n) + return new qu(e, 0, t ? { hydrate: !0 } : void 0) + })(n, r)), + (a = i._internalRoot), + 'function' == typeof o) + ) { + var u = o + o = function () { + var e = Mu(a) + u.call(e) + } + } + tu(function () { + Ru(t, a, e, o) + }) + } + return Mu(a) + } + function Uu(e, t, n) { + var r = + 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null + return { + $$typeof: te, + key: null == r ? null : '' + r, + children: e, + containerInfo: t, + implementation: n, + } + } + function $u(e, t) { + var n = + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null + if (!Hu(t)) throw Error(a(200)) + return Uu(e, t, null, n) + } + ;(qu.prototype.render = function (e) { + Ru(e, this._internalRoot, null, null) + }), + (qu.prototype.unmount = function () { + var e = this._internalRoot, + t = e.containerInfo + Ru(null, e, null, function () { + t[Cn] = null + }) + }), + (mt = function (e) { + if (13 === e.tag) { + var t = Ko(Vl(), 150, 100) + Kl(e, t), zu(e, t) + } + }), + (vt = function (e) { + 13 === e.tag && (Kl(e, 3), zu(e, 3)) + }), + (yt = function (e) { + if (13 === e.tag) { + var t = Vl() + Kl(e, (t = Ql(t, e, null))), zu(e, t) + } + }), + (N = function (e, t, n) { + switch (t) { + case 'input': + if ((Se(e, n), (t = n.name), 'radio' === n.type && null != t)) { + for (n = e; n.parentNode; ) n = n.parentNode + for ( + n = n.querySelectorAll( + 'input[name=' + JSON.stringify('' + t) + '][type="radio"]' + ), + t = 0; + t < n.length; + t++ + ) { + var r = n[t] + if (r !== e && r.form === e.form) { + var o = On(r) + if (!o) throw Error(a(90)) + xe(r), Se(r, o) + } + } + } + break + case 'textarea': + De(e, n) + break + case 'select': + null != (t = n.value) && _e(e, !!n.multiple, t, !1) + } + }), + (L = eu), + (I = function (e, t, n, r, o) { + var i = Tl + Tl |= 4 + try { + return Uo(98, e.bind(null, t, n, r, o)) + } finally { + 0 === (Tl = i) && Vo() + } + }), + (R = function () { + 0 == (49 & Tl) && + ((function () { + if (null !== Wl) { + var e = Wl + ;(Wl = null), + e.forEach(function (e, t) { + Iu(t, e), Gl(t) + }), + Vo() + } + })(), + mu()) + }), + (M = function (e, t) { + var n = Tl + Tl |= 2 + try { + return e(t) + } finally { + 0 === (Tl = n) && Vo() + } + }) + var Bu, + Vu, + Qu = { + Events: [ + Nn, + _n, + On, + C, + T, + Mn, + function (e) { + ot(e, Rn) + }, + D, + A, + Gt, + lt, + mu, + { current: !1 }, + ], + } + ;(Vu = (Bu = { + findFiberByHostInstance: Pn, + bundleType: 0, + version: '16.14.0', + rendererPackageName: 'react-dom', + }).findFiberByHostInstance), + (function (e) { + if ('undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1 + var t = __REACT_DEVTOOLS_GLOBAL_HOOK__ + if (t.isDisabled || !t.supportsFiber) return !0 + try { + var n = t.inject(e) + ;(xu = function (e) { + try { + t.onCommitFiberRoot( + n, + e, + void 0, + 64 == (64 & e.current.effectTag) + ) + } catch (e) {} + }), + (ku = function (e) { + try { + t.onCommitFiberUnmount(n, e) + } catch (e) {} + }) + } catch (e) {} + })( + o({}, Bu, { + overrideHookState: null, + overrideProps: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: Y.ReactCurrentDispatcher, + findHostInstanceByFiber: function (e) { + return null === (e = nt(e)) ? null : e.stateNode + }, + findFiberByHostInstance: function (e) { + return Vu ? Vu(e) : null + }, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + }) + ), + (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Qu), + (t.createPortal = $u), + (t.findDOMNode = function (e) { + if (null == e) return null + if (1 === e.nodeType) return e + var t = e._reactInternalFiber + if (void 0 === t) { + if ('function' == typeof e.render) throw Error(a(188)) + throw Error(a(268, Object.keys(e))) + } + return (e = null === (e = nt(t)) ? null : e.stateNode) + }), + (t.flushSync = function (e, t) { + if (0 != (48 & Tl)) throw Error(a(187)) + var n = Tl + Tl |= 1 + try { + return Uo(99, e.bind(null, t)) + } finally { + ;(Tl = n), Vo() + } + }), + (t.hydrate = function (e, t, n) { + if (!Hu(t)) throw Error(a(200)) + return Wu(null, e, t, !0, n) + }), + (t.render = function (e, t, n) { + if (!Hu(t)) throw Error(a(200)) + return Wu(null, e, t, !1, n) + }), + (t.unmountComponentAtNode = function (e) { + if (!Hu(e)) throw Error(a(40)) + return ( + !!e._reactRootContainer && + (tu(function () { + Wu(null, null, e, !1, function () { + ;(e._reactRootContainer = null), (e[Cn] = null) + }) + }), + !0) + ) + }), + (t.unstable_batchedUpdates = eu), + (t.unstable_createPortal = function (e, t) { + return $u( + e, + t, + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null + ) + }), + (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { + if (!Hu(n)) throw Error(a(200)) + if (null == e || void 0 === e._reactInternalFiber) throw Error(a(38)) + return Wu(e, t, n, !1, r) + }), + (t.version = '16.14.0') + }, + 321: function (e, t, n) { + 'use strict' + e.exports = n(322) + }, + 322: function (e, t, n) { + 'use strict' + /** @license React v0.19.1 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var r, o, i, a, l + if ('undefined' == typeof window || 'function' != typeof MessageChannel) { + var u = null, + s = null, + c = function () { + if (null !== u) + try { + var e = t.unstable_now() + u(!0, e), (u = null) + } catch (e) { + throw (setTimeout(c, 0), e) + } + }, + f = Date.now() + ;(t.unstable_now = function () { + return Date.now() - f + }), + (r = function (e) { + null !== u ? setTimeout(r, 0, e) : ((u = e), setTimeout(c, 0)) + }), + (o = function (e, t) { + s = setTimeout(e, t) + }), + (i = function () { + clearTimeout(s) + }), + (a = function () { + return !1 + }), + (l = t.unstable_forceFrameRate = function () {}) + } else { + var d = window.performance, + p = window.Date, + h = window.setTimeout, + m = window.clearTimeout + if ('undefined' != typeof console) { + var v = window.cancelAnimationFrame + 'function' != typeof window.requestAnimationFrame && + console.error( + "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + ), + 'function' != typeof v && + console.error( + "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + ) + } + if ('object' == typeof d && 'function' == typeof d.now) + t.unstable_now = function () { + return d.now() + } + else { + var y = p.now() + t.unstable_now = function () { + return p.now() - y + } + } + var g = !1, + b = null, + w = -1, + x = 5, + k = 0 + ;(a = function () { + return t.unstable_now() >= k + }), + (l = function () {}), + (t.unstable_forceFrameRate = function (e) { + 0 > e || 125 < e + ? console.error( + 'forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported' + ) + : (x = 0 < e ? Math.floor(1e3 / e) : 5) + }) + var T = new MessageChannel(), + E = T.port2 + ;(T.port1.onmessage = function () { + if (null !== b) { + var e = t.unstable_now() + k = e + x + try { + b(!0, e) ? E.postMessage(null) : ((g = !1), (b = null)) + } catch (e) { + throw (E.postMessage(null), e) + } + } else g = !1 + }), + (r = function (e) { + ;(b = e), g || ((g = !0), E.postMessage(null)) + }), + (o = function (e, n) { + w = h(function () { + e(t.unstable_now()) + }, n) + }), + (i = function () { + m(w), (w = -1) + }) + } + function S(e, t) { + var n = e.length + e.push(t) + e: while (!0) { + var r = (n - 1) >>> 1, + o = e[r] + if (!(void 0 !== o && 0 < N(o, t))) break e + ;(e[r] = t), (e[n] = o), (n = r) + } + } + function C(e) { + return void 0 === (e = e[0]) ? null : e + } + function P(e) { + var t = e[0] + if (void 0 !== t) { + var n = e.pop() + if (n !== t) { + e[0] = n + e: for (var r = 0, o = e.length; r < o; ) { + var i = 2 * (r + 1) - 1, + a = e[i], + l = i + 1, + u = e[l] + if (void 0 !== a && 0 > N(a, n)) + void 0 !== u && 0 > N(u, a) + ? ((e[r] = u), (e[l] = n), (r = l)) + : ((e[r] = a), (e[i] = n), (r = i)) + else { + if (!(void 0 !== u && 0 > N(u, n))) break e + ;(e[r] = u), (e[l] = n), (r = l) + } + } + } + return t + } + return null + } + function N(e, t) { + var n = e.sortIndex - t.sortIndex + return 0 !== n ? n : e.id - t.id + } + var _ = [], + O = [], + j = 1, + D = null, + A = 3, + L = !1, + I = !1, + R = !1 + function M(e) { + for (var t = C(O); null !== t; ) { + if (null === t.callback) P(O) + else { + if (!(t.startTime <= e)) break + P(O), (t.sortIndex = t.expirationTime), S(_, t) + } + t = C(O) + } + } + function F(e) { + if (((R = !1), M(e), !I)) + if (null !== C(_)) (I = !0), r(z) + else { + var t = C(O) + null !== t && o(F, t.startTime - e) + } + } + function z(e, n) { + ;(I = !1), R && ((R = !1), i()), (L = !0) + var r = A + try { + for ( + M(n), D = C(_); + null !== D && (!(D.expirationTime > n) || (e && !a())); + + ) { + var l = D.callback + if (null !== l) { + ;(D.callback = null), (A = D.priorityLevel) + var u = l(D.expirationTime <= n) + ;(n = t.unstable_now()), + 'function' == typeof u ? (D.callback = u) : D === C(_) && P(_), + M(n) + } else P(_) + D = C(_) + } + if (null !== D) var s = !0 + else { + var c = C(O) + null !== c && o(F, c.startTime - n), (s = !1) + } + return s + } finally { + ;(D = null), (A = r), (L = !1) + } + } + function q(e) { + switch (e) { + case 1: + return -1 + case 2: + return 250 + case 5: + return 1073741823 + case 4: + return 1e4 + default: + return 5e3 + } + } + var H = l + ;(t.unstable_IdlePriority = 5), + (t.unstable_ImmediatePriority = 1), + (t.unstable_LowPriority = 4), + (t.unstable_NormalPriority = 3), + (t.unstable_Profiling = null), + (t.unstable_UserBlockingPriority = 2), + (t.unstable_cancelCallback = function (e) { + e.callback = null + }), + (t.unstable_continueExecution = function () { + I || L || ((I = !0), r(z)) + }), + (t.unstable_getCurrentPriorityLevel = function () { + return A + }), + (t.unstable_getFirstCallbackNode = function () { + return C(_) + }), + (t.unstable_next = function (e) { + switch (A) { + case 1: + case 2: + case 3: + var t = 3 + break + default: + t = A + } + var n = A + A = t + try { + return e() + } finally { + A = n + } + }), + (t.unstable_pauseExecution = function () {}), + (t.unstable_requestPaint = H), + (t.unstable_runWithPriority = function (e, t) { + switch (e) { + case 1: + case 2: + case 3: + case 4: + case 5: + break + default: + e = 3 + } + var n = A + A = e + try { + return t() + } finally { + A = n + } + }), + (t.unstable_scheduleCallback = function (e, n, a) { + var l = t.unstable_now() + if ('object' == typeof a && null !== a) { + var u = a.delay + ;(u = 'number' == typeof u && 0 < u ? l + u : l), + (a = 'number' == typeof a.timeout ? a.timeout : q(e)) + } else (a = q(e)), (u = l) + return ( + (e = { + id: j++, + callback: n, + priorityLevel: e, + startTime: u, + expirationTime: (a = u + a), + sortIndex: -1, + }), + u > l + ? ((e.sortIndex = u), + S(O, e), + null === C(_) && e === C(O) && (R ? i() : (R = !0), o(F, u - l))) + : ((e.sortIndex = a), S(_, e), I || L || ((I = !0), r(z))), + e + ) + }), + (t.unstable_shouldYield = function () { + var e = t.unstable_now() + M(e) + var n = C(_) + return ( + (n !== D && + null !== D && + null !== n && + null !== n.callback && + n.startTime <= e && + n.expirationTime < D.expirationTime) || + a() + ) + }), + (t.unstable_wrapCallback = function (e) { + var t = A + return function () { + var n = A + A = t + try { + return e.apply(this, arguments) + } finally { + A = n + } + } + }) + }, + 337: function (e, t) {}, + 339: function (e, t) {}, + 341: function (e, t) {}, + 343: function (e, t) {}, + 4: function (e, t, n) { + 'use strict' + e.exports = n(319) + }, + 5: function (e, t, n) { + 'use strict' + ;(function (e) { + function r(e) { + return (r = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function (e) { + return typeof e + } + : function (e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e + })(e) + } + n.d(t, 'a', function () { + return o + }) + var o = new (n(9).a)() + 'object' === r(window.NewsletterProAppTranslate) && + o.setObject(window.NewsletterProAppTranslate, !0), + e(document).ready(function () { + 0 === o.length() && o.setObject(window.NewsletterProAppTranslate, !0) + }) + }).call(this, n(2)) + }, + 6: function (e, t, n) { + 'use strict' + function r(e) { + return ( + (function (e) { + if (Array.isArray(e)) return a(e) + })(e) || + (function (e) { + if ( + ('undefined' != typeof Symbol && null != e[Symbol.iterator]) || + null != e['@@iterator'] + ) + return Array.from(e) + })(e) || + i(e) || + (function () { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })() + ) + } + function o(e, t) { + var n = + ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator'] + if (!n) { + if ( + Array.isArray(e) || + (n = i(e)) || + (t && e && 'number' == typeof e.length) + ) { + n && (e = n) + var r = 0, + o = function () {} + return { + s: o, + n: function () { + return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] } + }, + e: function (e) { + throw e + }, + f: o, + } + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + } + var a, + l = !0, + u = !1 + return { + s: function () { + n = n.call(e) + }, + n: function () { + var e = n.next() + return (l = e.done), e + }, + e: function (e) { + ;(u = !0), (a = e) + }, + f: function () { + try { + l || null == n.return || n.return() + } finally { + if (u) throw a + } + }, + } + } + function i(e, t) { + if (e) { + if ('string' == typeof e) return a(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + return ( + 'Object' === n && e.constructor && (n = e.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(e) + : 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? a(e, t) + : void 0 + ) + } + } + function a(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] + return r + } + n.d(t, 'c', function () { + return s + }), + n.d(t, 'd', function () { + return c + }), + n.d(t, 'b', function () { + return f + }), + n.d(t, 'a', function () { + return d + }) + var l = window.MutationObserver || window.WebKitMutationObserver, + u = window.addEventListener + var s = function (e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : void 0, + n = + arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null + return function (i, a) { + if (!i) return e + if ((void 0 === a && (a = t), !e)) return n ? n(a) : a + var l = i.split('.') + l.length + return (function e(t, i) { + var a, + l = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : void 0, + u = i.length, + s = o(i) + try { + for (s.s(); !(a = s.n()).done; ) { + var c = a.value + if (c in t && t[c]) { + if (1 === u) return n ? n(t[c]) : t[c] + if (t[c] instanceof Object) { + var f = r(i) + return f.shift(), e(t[c], f, l) + } + } + } + } catch (e) { + s.e(e) + } finally { + s.f() + } + return n ? n(l) : l + })(e, l, a) + } + } + function c(e, t) { + l + ? new l(function (e, n) { + ;(e[0].addedNodes.length || e[0].removedNodes.length) && t() + }).observe(e, { childList: !0, subtree: !0 }) + : u && + (e.addEventListener('DOMNodeInserted', t, !1), + e.addEventListener('DOMNodeRemoved', t, !1)) + } + function f(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = e.serializeArray() + for (var r in t) t.hasOwnProperty(r) && n.push({ name: r, value: t[r] }) + return n + } + function d(e) { + return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + } + }, + 7: function (e, t, n) { + 'use strict' + var r, + o = 'object' == typeof Reflect ? Reflect : null, + i = + o && 'function' == typeof o.apply + ? o.apply + : function (e, t, n) { + return Function.prototype.apply.call(e, t, n) + } + r = + o && 'function' == typeof o.ownKeys + ? o.ownKeys + : Object.getOwnPropertySymbols + ? function (e) { + return Object.getOwnPropertyNames(e).concat( + Object.getOwnPropertySymbols(e) + ) + } + : function (e) { + return Object.getOwnPropertyNames(e) + } + var a = + Number.isNaN || + function (e) { + return e != e + } + function l() { + l.init.call(this) + } + ;(e.exports = l), + (e.exports.once = function (e, t) { + return new Promise(function (n, r) { + function o(n) { + e.removeListener(t, i), r(n) + } + function i() { + 'function' == typeof e.removeListener && + e.removeListener('error', o), + n([].slice.call(arguments)) + } + y(e, t, i, { once: !0 }), + 'error' !== t && + (function (e, t, n) { + 'function' == typeof e.on && y(e, 'error', t, n) + })(e, o, { once: !0 }) + }) + }), + (l.EventEmitter = l), + (l.prototype._events = void 0), + (l.prototype._eventsCount = 0), + (l.prototype._maxListeners = void 0) + var u = 10 + function s(e) { + if ('function' != typeof e) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof e + ) + } + function c(e) { + return void 0 === e._maxListeners + ? l.defaultMaxListeners + : e._maxListeners + } + function f(e, t, n, r) { + var o, i, a, l + if ( + (s(n), + void 0 === (i = e._events) + ? ((i = e._events = Object.create(null)), (e._eventsCount = 0)) + : (void 0 !== i.newListener && + (e.emit('newListener', t, n.listener ? n.listener : n), + (i = e._events)), + (a = i[t])), + void 0 === a) + ) + (a = i[t] = n), ++e._eventsCount + else if ( + ('function' == typeof a + ? (a = i[t] = r ? [n, a] : [a, n]) + : r + ? a.unshift(n) + : a.push(n), + (o = c(e)) > 0 && a.length > o && !a.warned) + ) { + a.warned = !0 + var u = new Error( + 'Possible EventEmitter memory leak detected. ' + + a.length + + ' ' + + String(t) + + ' listeners added. Use emitter.setMaxListeners() to increase limit' + ) + ;(u.name = 'MaxListenersExceededWarning'), + (u.emitter = e), + (u.type = t), + (u.count = a.length), + (l = u), + console && console.warn && console.warn(l) + } + return e + } + function d() { + if (!this.fired) + return ( + this.target.removeListener(this.type, this.wrapFn), + (this.fired = !0), + 0 === arguments.length + ? this.listener.call(this.target) + : this.listener.apply(this.target, arguments) + ) + } + function p(e, t, n) { + var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, + o = d.bind(r) + return (o.listener = n), (r.wrapFn = o), o + } + function h(e, t, n) { + var r = e._events + if (void 0 === r) return [] + var o = r[t] + return void 0 === o + ? [] + : 'function' == typeof o + ? n + ? [o.listener || o] + : [o] + : n + ? (function (e) { + for (var t = new Array(e.length), n = 0; n < t.length; ++n) + t[n] = e[n].listener || e[n] + return t + })(o) + : v(o, o.length) + } + function m(e) { + var t = this._events + if (void 0 !== t) { + var n = t[e] + if ('function' == typeof n) return 1 + if (void 0 !== n) return n.length + } + return 0 + } + function v(e, t) { + for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r] + return n + } + function y(e, t, n, r) { + if ('function' == typeof e.on) r.once ? e.once(t, n) : e.on(t, n) + else { + if ('function' != typeof e.addEventListener) + throw new TypeError( + 'The "emitter" argument must be of type EventEmitter. Received type ' + + typeof e + ) + e.addEventListener(t, function o(i) { + r.once && e.removeEventListener(t, o), n(i) + }) + } + } + Object.defineProperty(l, 'defaultMaxListeners', { + enumerable: !0, + get: function () { + return u + }, + set: function (e) { + if ('number' != typeof e || e < 0 || a(e)) + throw new RangeError( + 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + + e + + '.' + ) + u = e + }, + }), + (l.init = function () { + ;(void 0 !== this._events && + this._events !== Object.getPrototypeOf(this)._events) || + ((this._events = Object.create(null)), (this._eventsCount = 0)), + (this._maxListeners = this._maxListeners || void 0) + }), + (l.prototype.setMaxListeners = function (e) { + if ('number' != typeof e || e < 0 || a(e)) + throw new RangeError( + 'The value of "n" is out of range. It must be a non-negative number. Received ' + + e + + '.' + ) + return (this._maxListeners = e), this + }), + (l.prototype.getMaxListeners = function () { + return c(this) + }), + (l.prototype.emit = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]) + var r = 'error' === e, + o = this._events + if (void 0 !== o) r = r && void 0 === o.error + else if (!r) return !1 + if (r) { + var a + if ((t.length > 0 && (a = t[0]), a instanceof Error)) throw a + var l = new Error( + 'Unhandled error.' + (a ? ' (' + a.message + ')' : '') + ) + throw ((l.context = a), l) + } + var u = o[e] + if (void 0 === u) return !1 + if ('function' == typeof u) i(u, this, t) + else { + var s = u.length, + c = v(u, s) + for (n = 0; n < s; ++n) i(c[n], this, t) + } + return !0 + }), + (l.prototype.addListener = function (e, t) { + return f(this, e, t, !1) + }), + (l.prototype.on = l.prototype.addListener), + (l.prototype.prependListener = function (e, t) { + return f(this, e, t, !0) + }), + (l.prototype.once = function (e, t) { + return s(t), this.on(e, p(this, e, t)), this + }), + (l.prototype.prependOnceListener = function (e, t) { + return s(t), this.prependListener(e, p(this, e, t)), this + }), + (l.prototype.removeListener = function (e, t) { + var n, r, o, i, a + if ((s(t), void 0 === (r = this._events))) return this + if (void 0 === (n = r[e])) return this + if (n === t || n.listener === t) + 0 == --this._eventsCount + ? (this._events = Object.create(null)) + : (delete r[e], + r.removeListener && + this.emit('removeListener', e, n.listener || t)) + else if ('function' != typeof n) { + for (o = -1, i = n.length - 1; i >= 0; i--) + if (n[i] === t || n[i].listener === t) { + ;(a = n[i].listener), (o = i) + break + } + if (o < 0) return this + 0 === o + ? n.shift() + : (function (e, t) { + for (; t + 1 < e.length; t++) e[t] = e[t + 1] + e.pop() + })(n, o), + 1 === n.length && (r[e] = n[0]), + void 0 !== r.removeListener && + this.emit('removeListener', e, a || t) + } + return this + }), + (l.prototype.off = l.prototype.removeListener), + (l.prototype.removeAllListeners = function (e) { + var t, n, r + if (void 0 === (n = this._events)) return this + if (void 0 === n.removeListener) + return ( + 0 === arguments.length + ? ((this._events = Object.create(null)), (this._eventsCount = 0)) + : void 0 !== n[e] && + (0 == --this._eventsCount + ? (this._events = Object.create(null)) + : delete n[e]), + this + ) + if (0 === arguments.length) { + var o, + i = Object.keys(n) + for (r = 0; r < i.length; ++r) + 'removeListener' !== (o = i[r]) && this.removeAllListeners(o) + return ( + this.removeAllListeners('removeListener'), + (this._events = Object.create(null)), + (this._eventsCount = 0), + this + ) + } + if ('function' == typeof (t = n[e])) this.removeListener(e, t) + else if (void 0 !== t) + for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]) + return this + }), + (l.prototype.listeners = function (e) { + return h(this, e, !0) + }), + (l.prototype.rawListeners = function (e) { + return h(this, e, !1) + }), + (l.listenerCount = function (e, t) { + return 'function' == typeof e.listenerCount + ? e.listenerCount(t) + : m.call(e, t) + }), + (l.prototype.listenerCount = m), + (l.prototype.eventNames = function () { + return this._eventsCount > 0 ? r(this._events) : [] + }) + }, + 8: function (e, t, n) { + 'use strict' + ;(function (e) { + n.d(t, 'a', function () { + return f + }), + n.d(t, 'b', function () { + return s + }) + var r = n(4), + o = n(11), + i = n(13), + a = n(14) + function l(e, t) { + var n = + ('undefined' != typeof Symbol && e[Symbol.iterator]) || + e['@@iterator'] + if (!n) { + if ( + Array.isArray(e) || + (n = (function (e, t) { + if (!e) return + if ('string' == typeof e) return u(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + 'Object' === n && e.constructor && (n = e.constructor.name) + if ('Map' === n || 'Set' === n) return Array.from(e) + if ( + 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ) + return u(e, t) + })(e)) || + (t && e && 'number' == typeof e.length) + ) { + n && (e = n) + var r = 0, + o = function () {} + return { + s: o, + n: function () { + return r >= e.length + ? { done: !0 } + : { done: !1, value: e[r++] } + }, + e: function (e) { + throw e + }, + f: o, + } + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + } + var i, + a = !0, + l = !1 + return { + s: function () { + n = n.call(e) + }, + n: function () { + var e = n.next() + return (a = e.done), e + }, + e: function (e) { + ;(l = !0), (i = e) + }, + f: function () { + try { + a || null == n.return || n.return() + } finally { + if (l) throw i + } + }, + } + } + function u(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] + return r + } + var s = null, + c = [] + function f(t) { + return new a.a(function (n, a) { + e(document).ready(function () { + if ( + (e(document.body).append('
    '), + (s = o.render( + r.createElement(i.b, null), + document.getElementById('pqnp-win') + )), + n(s), + t(s), + c.length > 0) + ) { + var a, + u = l(c) + try { + for (u.s(); !(a = u.n()).done; ) { + ;(0, a.value)(s) + } + } catch (e) { + u.e(e) + } finally { + u.f() + } + } + }) + }) + } + }).call(this, n(2)) + }, + 9: function (e, t, n) { + 'use strict' + n.d(t, 'a', function () { + return s + }) + var r = n(7) + function o(e, t) { + var n = + ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator'] + if (!n) { + if ( + Array.isArray(e) || + (n = (function (e, t) { + if (!e) return + if ('string' == typeof e) return i(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + 'Object' === n && e.constructor && (n = e.constructor.name) + if ('Map' === n || 'Set' === n) return Array.from(e) + if ( + 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ) + return i(e, t) + })(e)) || + (t && e && 'number' == typeof e.length) + ) { + n && (e = n) + var r = 0, + o = function () {} + return { + s: o, + n: function () { + return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] } + }, + e: function (e) { + throw e + }, + f: o, + } + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + } + var a, + l = !0, + u = !1 + return { + s: function () { + n = n.call(e) + }, + n: function () { + var e = n.next() + return (l = e.done), e + }, + e: function (e) { + ;(u = !0), (a = e) + }, + f: function () { + try { + l || null == n.return || n.return() + } finally { + if (u) throw a + } + }, + } + } + function i(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] + return r + } + function a(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r) + } + } + function l(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (e[t] = n), + e + ) + } + var u = new r.EventEmitter(), + s = (function () { + function e() { + !(function (e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function') + })(this, e), + l(this, 'data', {}), + l(this, 'cache', {}), + l(this, 'on', function (e, t) { + u.on(e, t) + }) + } + var t, n, r + return ( + (t = e), + (n = [ + { + key: 'setObject', + value: function (e) { + for ( + var t = + arguments.length > 1 && + void 0 !== arguments[1] && + arguments[1], + n = 0, + r = Object.keys(e); + n < r.length; + n++ + ) { + var o = r[n] + this.data[o] = e[o] + } + t && u.emit('ready', this) + }, + }, + { + key: 'source', + value: function (e) { + var t, + n, + r = this, + i = this.data, + a = o((t = e.split('.'))) + try { + for (a.s(); !(n = a.n()).done; ) { + var l = n.value + if (!i.hasOwnProperty(l)) + return ( + console.error( + 'Invalid translation path "' + .concat(t, '" - "') + .concat(l, '"') + ), + function (e) { + return e + } + ) + i = i[l] + } + } catch (e) { + a.e(e) + } finally { + a.f() + } + return function (e) { + if (i.hasOwnProperty(e)) return i[e].replace(/\"/g, '"') + var n = 'The translation does not exist >>>' + .concat(e, '<<< in "') + .concat(t, '"') + return ( + void 0 === r.cache[n] && + ((r.cache[n] = !0), console.log(n)), + e + ) + } + }, + }, + { + key: 'length', + value: function () { + return Object.keys(this.data).length + }, + }, + { + key: 'set', + value: function (e, t) { + var n = this + this.length() > 0 + ? (e.l = this.source(t)) + : this.on('ready', function () { + e.l = n.source(t) + }) + }, + }, + ]) && a(t.prototype, n), + r && a(t, r), + e + ) + })() + }, +}) +/*! jQuery UI - v1.10.3 - 2013-05-03 + * http://jqueryui.com + * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js + * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ +!(function (a, b) { + function e(b, c) { + var d, + e, + g, + h = b.nodeName.toLowerCase() + return 'area' === h + ? ((d = b.parentNode), + (e = d.name), + !(!b.href || !e || 'map' !== d.nodeName.toLowerCase()) && + ((g = a('img[usemap=#' + e + ']')[0]), !!g && f(g))) + : (/input|select|textarea|button|object/.test(h) + ? !b.disabled + : 'a' === h + ? b.href || c + : c) && f(b) + } + function f(b) { + return ( + a.expr.filters.visible(b) && + !a(b) + .parents() + .addBack() + .filter(function () { + return 'hidden' === a.css(this, 'visibility') + }).length + ) + } + var c = 0, + d = /^ui-id-\d+$/ + ;(a.ui = a.ui || {}), + a.extend(a.ui, { + version: '1.10.3', + keyCode: { + BACKSPACE: 8, + COMMA: 188, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + LEFT: 37, + NUMPAD_ADD: 107, + NUMPAD_DECIMAL: 110, + NUMPAD_DIVIDE: 111, + NUMPAD_ENTER: 108, + NUMPAD_MULTIPLY: 106, + NUMPAD_SUBTRACT: 109, + PAGE_DOWN: 34, + PAGE_UP: 33, + PERIOD: 190, + RIGHT: 39, + SPACE: 32, + TAB: 9, + UP: 38, + }, + }), + a.fn.extend({ + focus: (function (b) { + return function (c, d) { + return 'number' == typeof c + ? this.each(function () { + var b = this + setTimeout(function () { + a(b).focus(), d && d.call(b) + }, c) + }) + : b.apply(this, arguments) + } + })(a.fn.focus), + scrollParent: function () { + var b + return ( + (b = + (a.ui.ie && /(static|relative)/.test(this.css('position'))) || + /absolute/.test(this.css('position')) + ? this.parents() + .filter(function () { + return ( + /(relative|absolute|fixed)/.test( + a.css(this, 'position') + ) && + /(auto|scroll)/.test( + a.css(this, 'overflow') + + a.css(this, 'overflow-y') + + a.css(this, 'overflow-x') + ) + ) + }) + .eq(0) + : this.parents() + .filter(function () { + return /(auto|scroll)/.test( + a.css(this, 'overflow') + + a.css(this, 'overflow-y') + + a.css(this, 'overflow-x') + ) + }) + .eq(0)), + /fixed/.test(this.css('position')) || !b.length ? a(document) : b + ) + }, + zIndex: function (c) { + if (c !== b) return this.css('zIndex', c) + if (this.length) + for (var e, f, d = a(this[0]); d.length && d[0] !== document; ) { + if ( + ((e = d.css('position')), + ('absolute' === e || 'relative' === e || 'fixed' === e) && + ((f = parseInt(d.css('zIndex'), 10)), !isNaN(f) && 0 !== f)) + ) + return f + d = d.parent() + } + return 0 + }, + uniqueId: function () { + return this.each(function () { + this.id || (this.id = 'ui-id-' + ++c) + }) + }, + removeUniqueId: function () { + return this.each(function () { + d.test(this.id) && a(this).removeAttr('id') + }) + }, + }), + 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 (b) { + return e(b, !isNaN(a.attr(b, 'tabindex'))) + }, + tabbable: function (b) { + var c = a.attr(b, 'tabindex'), + d = isNaN(c) + return (d || c >= 0) && e(b, !d) + }, + }), + a('').outerWidth(1).jquery || + a.each(['Width', 'Height'], function (c, d) { + function h(b, c, d, f) { + return ( + a.each(e, function () { + ;(c -= parseFloat(a.css(b, 'padding' + this)) || 0), + d && + (c -= parseFloat(a.css(b, 'border' + this + 'Width')) || 0), + f && (c -= parseFloat(a.css(b, 'margin' + this)) || 0) + }), + c + ) + } + var e = 'Width' === d ? ['Left', 'Right'] : ['Top', 'Bottom'], + f = d.toLowerCase(), + g = { + innerWidth: a.fn.innerWidth, + innerHeight: a.fn.innerHeight, + outerWidth: a.fn.outerWidth, + outerHeight: a.fn.outerHeight, + } + ;(a.fn['inner' + d] = function (c) { + return c === b + ? g['inner' + d].call(this) + : this.each(function () { + a(this).css(f, h(this, c) + 'px') + }) + }), + (a.fn['outer' + d] = function (b, c) { + return 'number' != typeof b + ? g['outer' + d].call(this, b) + : this.each(function () { + a(this).css(f, h(this, b, !0, c) + 'px') + }) + }) + }), + a.fn.addBack || + (a.fn.addBack = function (a) { + return this.add(null == a ? this.prevObject : this.prevObject.filter(a)) + }), + a('').data('a-b', 'a').removeData('a-b').data('a-b') && + (a.fn.removeData = (function (b) { + return function (c) { + return arguments.length ? b.call(this, a.camelCase(c)) : b.call(this) + } + })(a.fn.removeData)), + (a.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())), + (a.support.selectstart = 'onselectstart' in document.createElement('div')), + a.fn.extend({ + disableSelection: function () { + return this.bind( + (a.support.selectstart ? 'selectstart' : 'mousedown') + + '.ui-disableSelection', + function (a) { + a.preventDefault() + } + ) + }, + enableSelection: function () { + return this.unbind('.ui-disableSelection') + }, + }), + a.extend(a.ui, { + plugin: { + add: function (b, c, d) { + var e, + f = a.ui[b].prototype + for (e in d) + (f.plugins[e] = f.plugins[e] || []), f.plugins[e].push([c, d[e]]) + }, + call: function (a, b, c) { + var d, + e = a.plugins[b] + if ( + e && + a.element[0].parentNode && + 11 !== a.element[0].parentNode.nodeType + ) + for (d = 0; d < e.length; d++) + a.options[e[d][0]] && e[d][1].apply(a.element, c) + }, + }, + hasScroll: function (b, c) { + if ('hidden' === a(b).css('overflow')) return !1 + var d = c && 'left' === c ? 'scrollLeft' : 'scrollTop', + e = !1 + return b[d] > 0 || ((b[d] = 1), (e = b[d] > 0), (b[d] = 0), e) + }, + }) +})(jQuery), + (function (a, b) { + var c = 0, + d = Array.prototype.slice, + e = a.cleanData + ;(a.cleanData = function (b) { + for (var d, c = 0; null != (d = b[c]); c++) + try { + a(d).triggerHandler('remove') + } catch (a) {} + e(b) + }), + (a.widget = function (b, c, d) { + var e, + f, + g, + h, + i = {}, + j = b.split('.')[0] + ;(b = b.split('.')[1]), + (e = j + '-' + b), + d || ((d = c), (c = a.Widget)), + (a.expr[':'][e.toLowerCase()] = function (b) { + return !!a.data(b, e) + }), + (a[j] = a[j] || {}), + (f = a[j][b]), + (g = a[j][b] = + function (a, b) { + return this._createWidget + ? void (arguments.length && this._createWidget(a, b)) + : new g(a, b) + }), + a.extend(g, f, { + version: d.version, + _proto: a.extend({}, d), + _childConstructors: [], + }), + (h = new c()), + (h.options = a.widget.extend({}, h.options)), + a.each(d, function (b, d) { + return a.isFunction(d) + ? void (i[b] = (function () { + var a = function () { + return c.prototype[b].apply(this, arguments) + }, + e = function (a) { + return c.prototype[b].apply(this, a) + } + return function () { + var f, + b = this._super, + c = this._superApply + return ( + (this._super = a), + (this._superApply = e), + (f = d.apply(this, arguments)), + (this._super = b), + (this._superApply = c), + f + ) + } + })()) + : void (i[b] = d) + }), + (g.prototype = a.widget.extend( + h, + { widgetEventPrefix: f ? h.widgetEventPrefix : b }, + i, + { constructor: g, namespace: j, widgetName: b, widgetFullName: e } + )), + f + ? (a.each(f._childConstructors, function (b, c) { + var d = c.prototype + a.widget(d.namespace + '.' + d.widgetName, g, c._proto) + }), + delete f._childConstructors) + : c._childConstructors.push(g), + a.widget.bridge(b, g) + }), + (a.widget.extend = function (c) { + for ( + var h, i, e = d.call(arguments, 1), f = 0, g = e.length; + f < g; + f++ + ) + for (h in e[f]) + (i = e[f][h]), + e[f].hasOwnProperty(h) && + i !== b && + (a.isPlainObject(i) + ? (c[h] = a.isPlainObject(c[h]) + ? a.widget.extend({}, c[h], i) + : a.widget.extend({}, i)) + : (c[h] = i)) + return c + }), + (a.widget.bridge = function (c, e) { + var f = e.prototype.widgetFullName || c + a.fn[c] = function (g) { + var h = 'string' == typeof g, + i = d.call(arguments, 1), + j = this + return ( + (g = + !h && i.length ? a.widget.extend.apply(null, [g].concat(i)) : g), + h + ? this.each(function () { + var d, + e = a.data(this, f) + return e + ? a.isFunction(e[g]) && '_' !== g.charAt(0) + ? ((d = e[g].apply(e, i)), + d !== e && d !== b + ? ((j = d && d.jquery ? j.pushStack(d.get()) : d), !1) + : void 0) + : a.error( + "no such method '" + + g + + "' for " + + c + + ' widget instance' + ) + : a.error( + 'cannot call methods on ' + + c + + " prior to initialization; attempted to call method '" + + g + + "'" + ) + }) + : this.each(function () { + var b = a.data(this, f) + b + ? b.option(g || {})._init() + : a.data(this, f, new e(g, this)) + }), + j + ) + } + }), + (a.Widget = function () {}), + (a.Widget._childConstructors = []), + (a.Widget.prototype = { + widgetName: 'widget', + widgetEventPrefix: '', + defaultElement: '
    ', + options: { disabled: !1, create: null }, + _createWidget: function (b, d) { + ;(d = a(d || this.defaultElement || this)[0]), + (this.element = a(d)), + (this.uuid = c++), + (this.eventNamespace = '.' + this.widgetName + this.uuid), + (this.options = a.widget.extend( + {}, + this.options, + this._getCreateOptions(), + b + )), + (this.bindings = a()), + (this.hoverable = a()), + (this.focusable = a()), + d !== this && + (a.data(d, this.widgetFullName, this), + this._on(!0, this.element, { + remove: function (a) { + a.target === d && this.destroy() + }, + }), + (this.document = a(d.style ? d.ownerDocument : d.document || d)), + (this.window = a( + this.document[0].defaultView || this.document[0].parentWindow + ))), + this._create(), + this._trigger('create', null, this._getCreateEventData()), + this._init() + }, + _getCreateOptions: a.noop, + _getCreateEventData: a.noop, + _create: a.noop, + _init: a.noop, + destroy: function () { + this._destroy(), + this.element + .unbind(this.eventNamespace) + .removeData(this.widgetName) + .removeData(this.widgetFullName) + .removeData(a.camelCase(this.widgetFullName)), + this.widget() + .unbind(this.eventNamespace) + .removeAttr('aria-disabled') + .removeClass(this.widgetFullName + '-disabled ui-state-disabled'), + this.bindings.unbind(this.eventNamespace), + this.hoverable.removeClass('ui-state-hover'), + this.focusable.removeClass('ui-state-focus') + }, + _destroy: a.noop, + widget: function () { + return this.element + }, + option: function (c, d) { + var f, + g, + h, + e = c + if (0 === arguments.length) return a.widget.extend({}, this.options) + if ('string' == typeof c) + if (((e = {}), (f = c.split('.')), (c = f.shift()), f.length)) { + for ( + g = e[c] = a.widget.extend({}, this.options[c]), h = 0; + h < f.length - 1; + h++ + ) + (g[f[h]] = g[f[h]] || {}), (g = g[f[h]]) + if (((c = f.pop()), d === b)) return g[c] === b ? null : g[c] + g[c] = d + } else { + if (d === b) return this.options[c] === b ? null : this.options[c] + e[c] = d + } + return this._setOptions(e), this + }, + _setOptions: function (a) { + var b + for (b in a) this._setOption(b, a[b]) + return this + }, + _setOption: function (a, b) { + return ( + (this.options[a] = b), + 'disabled' === a && + (this.widget() + .toggleClass( + this.widgetFullName + '-disabled ui-state-disabled', + !!b + ) + .attr('aria-disabled', b), + this.hoverable.removeClass('ui-state-hover'), + this.focusable.removeClass('ui-state-focus')), + this + ) + }, + enable: function () { + return this._setOption('disabled', !1) + }, + disable: function () { + return this._setOption('disabled', !0) + }, + _on: function (b, c, d) { + var e, + f = this + 'boolean' != typeof b && ((d = c), (c = b), (b = !1)), + d + ? ((c = e = a(c)), (this.bindings = this.bindings.add(c))) + : ((d = c), (c = this.element), (e = this.widget())), + a.each(d, function (d, g) { + function h() { + if ( + b || + (f.options.disabled !== !0 && + !a(this).hasClass('ui-state-disabled')) + ) + return ('string' == typeof g ? f[g] : g).apply(f, arguments) + } + 'string' != typeof g && + (h.guid = g.guid = g.guid || h.guid || a.guid++) + var i = d.match(/^(\w+)\s*(.*)$/), + j = i[1] + f.eventNamespace, + k = i[2] + k ? e.delegate(k, j, h) : c.bind(j, h) + }) + }, + _off: function (a, b) { + ;(b = + (b || '').split(' ').join(this.eventNamespace + ' ') + + this.eventNamespace), + a.unbind(b).undelegate(b) + }, + _delay: function (a, b) { + function c() { + return ('string' == typeof a ? d[a] : a).apply(d, arguments) + } + var d = this + return setTimeout(c, b || 0) + }, + _hoverable: function (b) { + ;(this.hoverable = this.hoverable.add(b)), + this._on(b, { + mouseenter: function (b) { + a(b.currentTarget).addClass('ui-state-hover') + }, + mouseleave: function (b) { + a(b.currentTarget).removeClass('ui-state-hover') + }, + }) + }, + _focusable: function (b) { + ;(this.focusable = this.focusable.add(b)), + this._on(b, { + focusin: function (b) { + a(b.currentTarget).addClass('ui-state-focus') + }, + focusout: function (b) { + a(b.currentTarget).removeClass('ui-state-focus') + }, + }) + }, + _trigger: function (b, c, d) { + var e, + f, + g = this.options[b] + if ( + ((d = d || {}), + (c = a.Event(c)), + (c.type = ( + b === this.widgetEventPrefix ? b : this.widgetEventPrefix + b + ).toLowerCase()), + (c.target = this.element[0]), + (f = c.originalEvent)) + ) + for (e in f) e in c || (c[e] = f[e]) + return ( + this.element.trigger(c, d), + !( + (a.isFunction(g) && + g.apply(this.element[0], [c].concat(d)) === !1) || + c.isDefaultPrevented() + ) + ) + }, + }), + a.each({ show: 'fadeIn', hide: 'fadeOut' }, function (b, c) { + a.Widget.prototype['_' + b] = function (d, e, f) { + 'string' == typeof e && (e = { effect: e }) + var g, + h = e ? (e === !0 || 'number' == typeof e ? c : e.effect || c) : b + ;(e = e || {}), + 'number' == typeof e && (e = { duration: e }), + (g = !a.isEmptyObject(e)), + (e.complete = f), + e.delay && d.delay(e.delay), + g && a.effects && a.effects.effect[h] + ? d[b](e) + : h !== b && d[h] + ? d[h](e.duration, e.easing, f) + : d.queue(function (c) { + a(this)[b](), f && f.call(d[0]), c() + }) + } + }) + })(jQuery), + (function (a, b) { + var c = !1 + a(document).mouseup(function () { + c = !1 + }), + a.widget('ui.mouse', { + version: '1.10.3', + options: { + cancel: 'input,textarea,button,select,option', + distance: 1, + delay: 0, + }, + _mouseInit: function () { + var b = this + this.element + .bind('mousedown.' + this.widgetName, function (a) { + return b._mouseDown(a) + }) + .bind('click.' + this.widgetName, function (c) { + if (!0 === a.data(c.target, b.widgetName + '.preventClickEvent')) + return ( + a.removeData(c.target, b.widgetName + '.preventClickEvent'), + c.stopImmediatePropagation(), + !1 + ) + }), + (this.started = !1) + }, + _mouseDestroy: function () { + this.element.unbind('.' + this.widgetName), + this._mouseMoveDelegate && + a(document) + .unbind('mousemove.' + this.widgetName, this._mouseMoveDelegate) + .unbind('mouseup.' + this.widgetName, this._mouseUpDelegate) + }, + _mouseDown: function (b) { + if (!c) { + this._mouseStarted && this._mouseUp(b), (this._mouseDownEvent = b) + var d = this, + e = 1 === b.which, + f = + !( + 'string' != typeof this.options.cancel || !b.target.nodeName + ) && a(b.target).closest(this.options.cancel).length + return ( + !(e && !f && this._mouseCapture(b)) || + ((this.mouseDelayMet = !this.options.delay), + this.mouseDelayMet || + (this._mouseDelayTimer = setTimeout(function () { + d.mouseDelayMet = !0 + }, this.options.delay)), + this._mouseDistanceMet(b) && + this._mouseDelayMet(b) && + ((this._mouseStarted = this._mouseStart(b) !== !1), + !this._mouseStarted) + ? (b.preventDefault(), !0) + : (!0 === + a.data(b.target, this.widgetName + '.preventClickEvent') && + a.removeData( + b.target, + this.widgetName + '.preventClickEvent' + ), + (this._mouseMoveDelegate = function (a) { + return d._mouseMove(a) + }), + (this._mouseUpDelegate = function (a) { + return d._mouseUp(a) + }), + a(document) + .bind( + 'mousemove.' + this.widgetName, + this._mouseMoveDelegate + ) + .bind('mouseup.' + this.widgetName, this._mouseUpDelegate), + b.preventDefault(), + (c = !0), + !0)) + ) + } + }, + _mouseMove: function (b) { + return a.ui.ie && + (!document.documentMode || document.documentMode < 9) && + !b.button + ? this._mouseUp(b) + : this._mouseStarted + ? (this._mouseDrag(b), b.preventDefault()) + : (this._mouseDistanceMet(b) && + this._mouseDelayMet(b) && + ((this._mouseStarted = + this._mouseStart(this._mouseDownEvent, b) !== !1), + this._mouseStarted ? this._mouseDrag(b) : this._mouseUp(b)), + !this._mouseStarted) + }, + _mouseUp: function (b) { + return ( + a(document) + .unbind('mousemove.' + this.widgetName, this._mouseMoveDelegate) + .unbind('mouseup.' + this.widgetName, this._mouseUpDelegate), + this._mouseStarted && + ((this._mouseStarted = !1), + b.target === this._mouseDownEvent.target && + a.data(b.target, this.widgetName + '.preventClickEvent', !0), + this._mouseStop(b)), + !1 + ) + }, + _mouseDistanceMet: function (a) { + return ( + Math.max( + Math.abs(this._mouseDownEvent.pageX - a.pageX), + Math.abs(this._mouseDownEvent.pageY - a.pageY) + ) >= this.options.distance + ) + }, + _mouseDelayMet: function () { + return this.mouseDelayMet + }, + _mouseStart: function () {}, + _mouseDrag: function () {}, + _mouseStop: function () {}, + _mouseCapture: function () { + return !0 + }, + }) + })(jQuery), + (function (a, b) { + a.widget('ui.draggable', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'drag', + options: { + addClasses: !0, + appendTo: 'parent', + axis: !1, + connectToSortable: !1, + containment: !1, + cursor: 'auto', + cursorAt: !1, + grid: !1, + handle: !1, + helper: 'original', + iframeFix: !1, + opacity: !1, + refreshPositions: !1, + revert: !1, + revertDuration: 500, + scope: 'default', + scroll: !0, + scrollSensitivity: 20, + scrollSpeed: 20, + snap: !1, + snapMode: 'both', + snapTolerance: 20, + stack: !1, + zIndex: !1, + drag: null, + start: null, + stop: null, + }, + _create: function () { + 'original' !== this.options.helper || + /^(?:r|a|f)/.test(this.element.css('position')) || + (this.element[0].style.position = 'relative'), + this.options.addClasses && this.element.addClass('ui-draggable'), + this.options.disabled && + this.element.addClass('ui-draggable-disabled'), + this._mouseInit() + }, + _destroy: function () { + this.element.removeClass( + 'ui-draggable ui-draggable-dragging ui-draggable-disabled' + ), + this._mouseDestroy() + }, + _mouseCapture: function (b) { + var c = this.options + return ( + !( + this.helper || + c.disabled || + a(b.target).closest('.ui-resizable-handle').length > 0 + ) && + ((this.handle = this._getHandle(b)), + !!this.handle && + (a(c.iframeFix === !0 ? 'iframe' : c.iframeFix).each(function () { + a( + "
    " + ) + .css({ + width: this.offsetWidth + 'px', + height: this.offsetHeight + 'px', + position: 'absolute', + opacity: '0.001', + zIndex: 1e3, + }) + .css(a(this).offset()) + .appendTo('body') + }), + !0)) + ) + }, + _mouseStart: function (b) { + var c = this.options + return ( + (this.helper = this._createHelper(b)), + this.helper.addClass('ui-draggable-dragging'), + this._cacheHelperProportions(), + a.ui.ddmanager && (a.ui.ddmanager.current = this), + this._cacheMargins(), + (this.cssPosition = this.helper.css('position')), + (this.scrollParent = this.helper.scrollParent()), + (this.offsetParent = this.helper.offsetParent()), + (this.offsetParentCssPosition = this.offsetParent.css('position')), + (this.offset = this.positionAbs = this.element.offset()), + (this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left, + }), + (this.offset.scroll = !1), + a.extend(this.offset, { + click: { + left: b.pageX - this.offset.left, + top: b.pageY - this.offset.top, + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset(), + }), + (this.originalPosition = this.position = this._generatePosition(b)), + (this.originalPageX = b.pageX), + (this.originalPageY = b.pageY), + c.cursorAt && this._adjustOffsetFromHelper(c.cursorAt), + this._setContainment(), + this._trigger('start', b) === !1 + ? (this._clear(), !1) + : (this._cacheHelperProportions(), + a.ui.ddmanager && + !c.dropBehaviour && + a.ui.ddmanager.prepareOffsets(this, b), + this._mouseDrag(b, !0), + a.ui.ddmanager && a.ui.ddmanager.dragStart(this, b), + !0) + ) + }, + _mouseDrag: function (b, c) { + if ( + ('fixed' === this.offsetParentCssPosition && + (this.offset.parent = this._getParentOffset()), + (this.position = this._generatePosition(b)), + (this.positionAbs = this._convertPositionTo('absolute')), + !c) + ) { + var d = this._uiHash() + if (this._trigger('drag', b, d) === !1) return this._mouseUp({}), !1 + this.position = d.position + } + return ( + (this.options.axis && 'y' === this.options.axis) || + (this.helper[0].style.left = this.position.left + 'px'), + (this.options.axis && 'x' === this.options.axis) || + (this.helper[0].style.top = this.position.top + 'px'), + a.ui.ddmanager && a.ui.ddmanager.drag(this, b), + !1 + ) + }, + _mouseStop: function (b) { + var c = this, + d = !1 + return ( + a.ui.ddmanager && + !this.options.dropBehaviour && + (d = a.ui.ddmanager.drop(this, b)), + this.dropped && ((d = this.dropped), (this.dropped = !1)), + !( + 'original' === this.options.helper && + !a.contains(this.element[0].ownerDocument, this.element[0]) + ) && + (('invalid' === this.options.revert && !d) || + ('valid' === this.options.revert && d) || + this.options.revert === !0 || + (a.isFunction(this.options.revert) && + this.options.revert.call(this.element, d)) + ? a(this.helper).animate( + this.originalPosition, + parseInt(this.options.revertDuration, 10), + function () { + c._trigger('stop', b) !== !1 && c._clear() + } + ) + : this._trigger('stop', b) !== !1 && this._clear(), + !1) + ) + }, + _mouseUp: function (b) { + return ( + a('div.ui-draggable-iframeFix').each(function () { + this.parentNode.removeChild(this) + }), + a.ui.ddmanager && a.ui.ddmanager.dragStop(this, b), + a.ui.mouse.prototype._mouseUp.call(this, b) + ) + }, + cancel: function () { + return ( + this.helper.is('.ui-draggable-dragging') + ? this._mouseUp({}) + : this._clear(), + this + ) + }, + _getHandle: function (b) { + return ( + !this.options.handle || + !!a(b.target).closest(this.element.find(this.options.handle)).length + ) + }, + _createHelper: function (b) { + var c = this.options, + d = a.isFunction(c.helper) + ? a(c.helper.apply(this.element[0], [b])) + : 'clone' === c.helper + ? this.element.clone().removeAttr('id') + : this.element + return ( + d.parents('body').length || + d.appendTo( + 'parent' === c.appendTo ? this.element[0].parentNode : c.appendTo + ), + d[0] === this.element[0] || + /(fixed|absolute)/.test(d.css('position')) || + d.css('position', 'absolute'), + d + ) + }, + _adjustOffsetFromHelper: function (b) { + 'string' == typeof b && (b = b.split(' ')), + a.isArray(b) && (b = { left: +b[0], top: +b[1] || 0 }), + 'left' in b && (this.offset.click.left = b.left + this.margins.left), + 'right' in b && + (this.offset.click.left = + this.helperProportions.width - b.right + this.margins.left), + 'top' in b && (this.offset.click.top = b.top + this.margins.top), + 'bottom' in b && + (this.offset.click.top = + this.helperProportions.height - b.bottom + this.margins.top) + }, + _getParentOffset: function () { + var b = this.offsetParent.offset() + return ( + 'absolute' === this.cssPosition && + this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0]) && + ((b.left += this.scrollParent.scrollLeft()), + (b.top += this.scrollParent.scrollTop())), + (this.offsetParent[0] === document.body || + (this.offsetParent[0].tagName && + 'html' === this.offsetParent[0].tagName.toLowerCase() && + a.ui.ie)) && + (b = { top: 0, left: 0 }), + { + top: + b.top + + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), + left: + b.left + + (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), + } + ) + }, + _getRelativeOffset: function () { + if ('relative' === this.cssPosition) { + var a = this.element.position() + return { + top: + a.top - + (parseInt(this.helper.css('top'), 10) || 0) + + this.scrollParent.scrollTop(), + left: + a.left - + (parseInt(this.helper.css('left'), 10) || 0) + + this.scrollParent.scrollLeft(), + } + } + return { top: 0, left: 0 } + }, + _cacheMargins: function () { + this.margins = { + left: parseInt(this.element.css('marginLeft'), 10) || 0, + top: parseInt(this.element.css('marginTop'), 10) || 0, + right: parseInt(this.element.css('marginRight'), 10) || 0, + bottom: parseInt(this.element.css('marginBottom'), 10) || 0, + } + }, + _cacheHelperProportions: function () { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight(), + } + }, + _setContainment: function () { + var b, + c, + d, + e = this.options + return e.containment + ? 'window' === e.containment + ? void (this.containment = [ + a(window).scrollLeft() - + this.offset.relative.left - + this.offset.parent.left, + a(window).scrollTop() - + this.offset.relative.top - + this.offset.parent.top, + a(window).scrollLeft() + + a(window).width() - + this.helperProportions.width - + this.margins.left, + a(window).scrollTop() + + (a(window).height() || + document.body.parentNode.scrollHeight) - + this.helperProportions.height - + this.margins.top, + ]) + : 'document' === e.containment + ? void (this.containment = [ + 0, + 0, + a(document).width() - + this.helperProportions.width - + this.margins.left, + (a(document).height() || + document.body.parentNode.scrollHeight) - + this.helperProportions.height - + this.margins.top, + ]) + : e.containment.constructor === Array + ? void (this.containment = e.containment) + : ('parent' === e.containment && + (e.containment = this.helper[0].parentNode), + (c = a(e.containment)), + (d = c[0]), + void ( + d && + ((b = 'hidden' !== c.css('overflow')), + (this.containment = [ + (parseInt(c.css('borderLeftWidth'), 10) || 0) + + (parseInt(c.css('paddingLeft'), 10) || 0), + (parseInt(c.css('borderTopWidth'), 10) || 0) + + (parseInt(c.css('paddingTop'), 10) || 0), + (b ? Math.max(d.scrollWidth, d.offsetWidth) : d.offsetWidth) - + (parseInt(c.css('borderRightWidth'), 10) || 0) - + (parseInt(c.css('paddingRight'), 10) || 0) - + this.helperProportions.width - + this.margins.left - + this.margins.right, + (b + ? Math.max(d.scrollHeight, d.offsetHeight) + : d.offsetHeight) - + (parseInt(c.css('borderBottomWidth'), 10) || 0) - + (parseInt(c.css('paddingBottom'), 10) || 0) - + this.helperProportions.height - + this.margins.top - + this.margins.bottom, + ]), + (this.relative_container = c)) + )) + : void (this.containment = null) + }, + _convertPositionTo: function (b, c) { + c || (c = this.position) + var d = 'absolute' === b ? 1 : -1, + e = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent + return ( + this.offset.scroll || + (this.offset.scroll = { top: e.scrollTop(), left: e.scrollLeft() }), + { + top: + c.top + + this.offset.relative.top * d + + this.offset.parent.top * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : this.offset.scroll.top) * + d, + left: + c.left + + this.offset.relative.left * d + + this.offset.parent.left * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : this.offset.scroll.left) * + d, + } + ) + }, + _generatePosition: function (b) { + var c, + d, + e, + f, + g = this.options, + h = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent, + i = b.pageX, + j = b.pageY + return ( + this.offset.scroll || + (this.offset.scroll = { top: h.scrollTop(), left: h.scrollLeft() }), + this.originalPosition && + (this.containment && + (this.relative_container + ? ((d = this.relative_container.offset()), + (c = [ + this.containment[0] + d.left, + this.containment[1] + d.top, + this.containment[2] + d.left, + this.containment[3] + d.top, + ])) + : (c = this.containment), + b.pageX - this.offset.click.left < c[0] && + (i = c[0] + this.offset.click.left), + b.pageY - this.offset.click.top < c[1] && + (j = c[1] + this.offset.click.top), + b.pageX - this.offset.click.left > c[2] && + (i = c[2] + this.offset.click.left), + b.pageY - this.offset.click.top > c[3] && + (j = c[3] + this.offset.click.top)), + g.grid && + ((e = g.grid[1] + ? this.originalPageY + + Math.round((j - this.originalPageY) / g.grid[1]) * g.grid[1] + : this.originalPageY), + (j = c + ? e - this.offset.click.top >= c[1] || + e - this.offset.click.top > c[3] + ? e + : e - this.offset.click.top >= c[1] + ? e - g.grid[1] + : e + g.grid[1] + : e), + (f = g.grid[0] + ? this.originalPageX + + Math.round((i - this.originalPageX) / g.grid[0]) * g.grid[0] + : this.originalPageX), + (i = c + ? f - this.offset.click.left >= c[0] || + f - this.offset.click.left > c[2] + ? f + : f - this.offset.click.left >= c[0] + ? f - g.grid[0] + : f + g.grid[0] + : f))), + { + top: + j - + this.offset.click.top - + this.offset.relative.top - + this.offset.parent.top + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : this.offset.scroll.top), + left: + i - + this.offset.click.left - + this.offset.relative.left - + this.offset.parent.left + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : this.offset.scroll.left), + } + ) + }, + _clear: function () { + this.helper.removeClass('ui-draggable-dragging'), + this.helper[0] === this.element[0] || + this.cancelHelperRemoval || + this.helper.remove(), + (this.helper = null), + (this.cancelHelperRemoval = !1) + }, + _trigger: function (b, c, d) { + return ( + (d = d || this._uiHash()), + a.ui.plugin.call(this, b, [c, d]), + 'drag' === b && + (this.positionAbs = this._convertPositionTo('absolute')), + a.Widget.prototype._trigger.call(this, b, c, d) + ) + }, + plugins: {}, + _uiHash: function () { + return { + helper: this.helper, + position: this.position, + originalPosition: this.originalPosition, + offset: this.positionAbs, + } + }, + }), + a.ui.plugin.add('draggable', 'connectToSortable', { + start: function (b, c) { + var d = a(this).data('ui-draggable'), + e = d.options, + f = a.extend({}, c, { item: d.element }) + ;(d.sortables = []), + a(e.connectToSortable).each(function () { + var c = a.data(this, 'ui-sortable') + c && + !c.options.disabled && + (d.sortables.push({ + instance: c, + shouldRevert: c.options.revert, + }), + c.refreshPositions(), + c._trigger('activate', b, f)) + }) + }, + stop: function (b, c) { + var d = a(this).data('ui-draggable'), + e = a.extend({}, c, { item: d.element }) + a.each(d.sortables, function () { + this.instance.isOver + ? ((this.instance.isOver = 0), + (d.cancelHelperRemoval = !0), + (this.instance.cancelHelperRemoval = !1), + this.shouldRevert && + (this.instance.options.revert = this.shouldRevert), + this.instance._mouseStop(b), + (this.instance.options.helper = this.instance.options._helper), + 'original' === d.options.helper && + this.instance.currentItem.css({ top: 'auto', left: 'auto' })) + : ((this.instance.cancelHelperRemoval = !1), + this.instance._trigger('deactivate', b, e)) + }) + }, + drag: function (b, c) { + var d = a(this).data('ui-draggable'), + e = this + a.each(d.sortables, function () { + var f = !1, + g = this + ;(this.instance.positionAbs = d.positionAbs), + (this.instance.helperProportions = d.helperProportions), + (this.instance.offset.click = d.offset.click), + this.instance._intersectsWith(this.instance.containerCache) && + ((f = !0), + a.each(d.sortables, function () { + return ( + (this.instance.positionAbs = d.positionAbs), + (this.instance.helperProportions = d.helperProportions), + (this.instance.offset.click = d.offset.click), + this !== g && + this.instance._intersectsWith( + this.instance.containerCache + ) && + a.contains( + g.instance.element[0], + this.instance.element[0] + ) && + (f = !1), + f + ) + })), + f + ? (this.instance.isOver || + ((this.instance.isOver = 1), + (this.instance.currentItem = a(e) + .clone() + .removeAttr('id') + .appendTo(this.instance.element) + .data('ui-sortable-item', !0)), + (this.instance.options._helper = + this.instance.options.helper), + (this.instance.options.helper = function () { + return c.helper[0] + }), + (b.target = this.instance.currentItem[0]), + this.instance._mouseCapture(b, !0), + this.instance._mouseStart(b, !0, !0), + (this.instance.offset.click.top = d.offset.click.top), + (this.instance.offset.click.left = d.offset.click.left), + (this.instance.offset.parent.left -= + d.offset.parent.left - this.instance.offset.parent.left), + (this.instance.offset.parent.top -= + d.offset.parent.top - this.instance.offset.parent.top), + d._trigger('toSortable', b), + (d.dropped = this.instance.element), + (d.currentItem = d.element), + (this.instance.fromOutside = d)), + this.instance.currentItem && this.instance._mouseDrag(b)) + : this.instance.isOver && + ((this.instance.isOver = 0), + (this.instance.cancelHelperRemoval = !0), + (this.instance.options.revert = !1), + this.instance._trigger( + 'out', + b, + this.instance._uiHash(this.instance) + ), + this.instance._mouseStop(b, !0), + (this.instance.options.helper = + this.instance.options._helper), + this.instance.currentItem.remove(), + this.instance.placeholder && + this.instance.placeholder.remove(), + d._trigger('fromSortable', b), + (d.dropped = !1)) + }) + }, + }), + a.ui.plugin.add('draggable', 'cursor', { + start: function () { + var b = a('body'), + c = a(this).data('ui-draggable').options + b.css('cursor') && (c._cursor = b.css('cursor')), + b.css('cursor', c.cursor) + }, + stop: function () { + var b = a(this).data('ui-draggable').options + b._cursor && a('body').css('cursor', b._cursor) + }, + }), + a.ui.plugin.add('draggable', 'opacity', { + start: function (b, c) { + var d = a(c.helper), + e = a(this).data('ui-draggable').options + d.css('opacity') && (e._opacity = d.css('opacity')), + d.css('opacity', e.opacity) + }, + stop: function (b, c) { + var d = a(this).data('ui-draggable').options + d._opacity && a(c.helper).css('opacity', d._opacity) + }, + }), + a.ui.plugin.add('draggable', 'scroll', { + start: function () { + var b = a(this).data('ui-draggable') + b.scrollParent[0] !== document && + 'HTML' !== b.scrollParent[0].tagName && + (b.overflowOffset = b.scrollParent.offset()) + }, + drag: function (b) { + var c = a(this).data('ui-draggable'), + d = c.options, + e = !1 + c.scrollParent[0] !== document && 'HTML' !== c.scrollParent[0].tagName + ? ((d.axis && 'x' === d.axis) || + (c.overflowOffset.top + + c.scrollParent[0].offsetHeight - + b.pageY < + d.scrollSensitivity + ? (c.scrollParent[0].scrollTop = e = + c.scrollParent[0].scrollTop + d.scrollSpeed) + : b.pageY - c.overflowOffset.top < d.scrollSensitivity && + (c.scrollParent[0].scrollTop = e = + c.scrollParent[0].scrollTop - d.scrollSpeed)), + (d.axis && 'y' === d.axis) || + (c.overflowOffset.left + + c.scrollParent[0].offsetWidth - + b.pageX < + d.scrollSensitivity + ? (c.scrollParent[0].scrollLeft = e = + c.scrollParent[0].scrollLeft + d.scrollSpeed) + : b.pageX - c.overflowOffset.left < d.scrollSensitivity && + (c.scrollParent[0].scrollLeft = e = + c.scrollParent[0].scrollLeft - d.scrollSpeed))) + : ((d.axis && 'x' === d.axis) || + (b.pageY - a(document).scrollTop() < d.scrollSensitivity + ? (e = a(document).scrollTop( + a(document).scrollTop() - d.scrollSpeed + )) + : a(window).height() - (b.pageY - a(document).scrollTop()) < + d.scrollSensitivity && + (e = a(document).scrollTop( + a(document).scrollTop() + d.scrollSpeed + ))), + (d.axis && 'y' === d.axis) || + (b.pageX - a(document).scrollLeft() < d.scrollSensitivity + ? (e = a(document).scrollLeft( + a(document).scrollLeft() - d.scrollSpeed + )) + : a(window).width() - (b.pageX - a(document).scrollLeft()) < + d.scrollSensitivity && + (e = a(document).scrollLeft( + a(document).scrollLeft() + d.scrollSpeed + )))), + e !== !1 && + a.ui.ddmanager && + !d.dropBehaviour && + a.ui.ddmanager.prepareOffsets(c, b) + }, + }), + a.ui.plugin.add('draggable', 'snap', { + start: function () { + var b = a(this).data('ui-draggable'), + c = b.options + ;(b.snapElements = []), + a( + c.snap.constructor !== String + ? c.snap.items || ':data(ui-draggable)' + : c.snap + ).each(function () { + var c = a(this), + d = c.offset() + this !== b.element[0] && + b.snapElements.push({ + item: this, + width: c.outerWidth(), + height: c.outerHeight(), + top: d.top, + left: d.left, + }) + }) + }, + drag: function (b, c) { + var d, + e, + f, + g, + h, + i, + j, + k, + l, + m, + n = a(this).data('ui-draggable'), + o = n.options, + p = o.snapTolerance, + q = c.offset.left, + r = q + n.helperProportions.width, + s = c.offset.top, + t = s + n.helperProportions.height + for (l = n.snapElements.length - 1; l >= 0; l--) + (h = n.snapElements[l].left), + (i = h + n.snapElements[l].width), + (j = n.snapElements[l].top), + (k = j + n.snapElements[l].height), + r < h - p || + q > i + p || + t < j - p || + s > k + p || + !a.contains( + n.snapElements[l].item.ownerDocument, + n.snapElements[l].item + ) + ? (n.snapElements[l].snapping && + n.options.snap.release && + n.options.snap.release.call( + n.element, + b, + a.extend(n._uiHash(), { + snapItem: n.snapElements[l].item, + }) + ), + (n.snapElements[l].snapping = !1)) + : ('inner' !== o.snapMode && + ((d = Math.abs(j - t) <= p), + (e = Math.abs(k - s) <= p), + (f = Math.abs(h - r) <= p), + (g = Math.abs(i - q) <= p), + d && + (c.position.top = + n._convertPositionTo('relative', { + top: j - n.helperProportions.height, + left: 0, + }).top - n.margins.top), + e && + (c.position.top = + n._convertPositionTo('relative', { top: k, left: 0 }) + .top - n.margins.top), + f && + (c.position.left = + n._convertPositionTo('relative', { + top: 0, + left: h - n.helperProportions.width, + }).left - n.margins.left), + g && + (c.position.left = + n._convertPositionTo('relative', { top: 0, left: i }) + .left - n.margins.left)), + (m = d || e || f || g), + 'outer' !== o.snapMode && + ((d = Math.abs(j - s) <= p), + (e = Math.abs(k - t) <= p), + (f = Math.abs(h - q) <= p), + (g = Math.abs(i - r) <= p), + d && + (c.position.top = + n._convertPositionTo('relative', { top: j, left: 0 }) + .top - n.margins.top), + e && + (c.position.top = + n._convertPositionTo('relative', { + top: k - n.helperProportions.height, + left: 0, + }).top - n.margins.top), + f && + (c.position.left = + n._convertPositionTo('relative', { top: 0, left: h }) + .left - n.margins.left), + g && + (c.position.left = + n._convertPositionTo('relative', { + top: 0, + left: i - n.helperProportions.width, + }).left - n.margins.left)), + !n.snapElements[l].snapping && + (d || e || f || g || m) && + n.options.snap.snap && + n.options.snap.snap.call( + n.element, + b, + a.extend(n._uiHash(), { + snapItem: n.snapElements[l].item, + }) + ), + (n.snapElements[l].snapping = d || e || f || g || m)) + }, + }), + a.ui.plugin.add('draggable', 'stack', { + start: function () { + var b, + c = this.data('ui-draggable').options, + d = a.makeArray(a(c.stack)).sort(function (b, c) { + return ( + (parseInt(a(b).css('zIndex'), 10) || 0) - + (parseInt(a(c).css('zIndex'), 10) || 0) + ) + }) + d.length && + ((b = parseInt(a(d[0]).css('zIndex'), 10) || 0), + a(d).each(function (c) { + a(this).css('zIndex', b + c) + }), + this.css('zIndex', b + d.length)) + }, + }), + a.ui.plugin.add('draggable', 'zIndex', { + start: function (b, c) { + var d = a(c.helper), + e = a(this).data('ui-draggable').options + d.css('zIndex') && (e._zIndex = d.css('zIndex')), + d.css('zIndex', e.zIndex) + }, + stop: function (b, c) { + var d = a(this).data('ui-draggable').options + d._zIndex && a(c.helper).css('zIndex', d._zIndex) + }, + }) + })(jQuery), + (function (a, b) { + function c(a, b, c) { + return a > b && a < b + c + } + a.widget('ui.droppable', { + version: '1.10.3', + widgetEventPrefix: 'drop', + options: { + accept: '*', + activeClass: !1, + addClasses: !0, + greedy: !1, + hoverClass: !1, + scope: 'default', + tolerance: 'intersect', + activate: null, + deactivate: null, + drop: null, + out: null, + over: null, + }, + _create: function () { + var b = this.options, + c = b.accept + ;(this.isover = !1), + (this.isout = !0), + (this.accept = a.isFunction(c) + ? c + : function (a) { + return a.is(c) + }), + (this.proportions = { + width: this.element[0].offsetWidth, + height: this.element[0].offsetHeight, + }), + (a.ui.ddmanager.droppables[b.scope] = + a.ui.ddmanager.droppables[b.scope] || []), + a.ui.ddmanager.droppables[b.scope].push(this), + b.addClasses && this.element.addClass('ui-droppable') + }, + _destroy: function () { + for ( + var b = 0, c = a.ui.ddmanager.droppables[this.options.scope]; + b < c.length; + b++ + ) + c[b] === this && c.splice(b, 1) + this.element.removeClass('ui-droppable ui-droppable-disabled') + }, + _setOption: function (b, c) { + 'accept' === b && + (this.accept = a.isFunction(c) + ? c + : function (a) { + return a.is(c) + }), + a.Widget.prototype._setOption.apply(this, arguments) + }, + _activate: function (b) { + var c = a.ui.ddmanager.current + this.options.activeClass && + this.element.addClass(this.options.activeClass), + c && this._trigger('activate', b, this.ui(c)) + }, + _deactivate: function (b) { + var c = a.ui.ddmanager.current + this.options.activeClass && + this.element.removeClass(this.options.activeClass), + c && this._trigger('deactivate', b, this.ui(c)) + }, + _over: function (b) { + var c = a.ui.ddmanager.current + c && + (c.currentItem || c.element)[0] !== this.element[0] && + this.accept.call(this.element[0], c.currentItem || c.element) && + (this.options.hoverClass && + this.element.addClass(this.options.hoverClass), + this._trigger('over', b, this.ui(c))) + }, + _out: function (b) { + var c = a.ui.ddmanager.current + c && + (c.currentItem || c.element)[0] !== this.element[0] && + this.accept.call(this.element[0], c.currentItem || c.element) && + (this.options.hoverClass && + this.element.removeClass(this.options.hoverClass), + this._trigger('out', b, this.ui(c))) + }, + _drop: function (b, c) { + var d = c || a.ui.ddmanager.current, + e = !1 + return ( + !(!d || (d.currentItem || d.element)[0] === this.element[0]) && + (this.element + .find(':data(ui-droppable)') + .not('.ui-draggable-dragging') + .each(function () { + var b = a.data(this, 'ui-droppable') + if ( + b.options.greedy && + !b.options.disabled && + b.options.scope === d.options.scope && + b.accept.call(b.element[0], d.currentItem || d.element) && + a.ui.intersect( + d, + a.extend(b, { offset: b.element.offset() }), + b.options.tolerance + ) + ) + return (e = !0), !1 + }), + !e && + !!this.accept.call(this.element[0], d.currentItem || d.element) && + (this.options.activeClass && + this.element.removeClass(this.options.activeClass), + this.options.hoverClass && + this.element.removeClass(this.options.hoverClass), + this._trigger('drop', b, this.ui(d)), + this.element)) + ) + }, + ui: function (a) { + return { + draggable: a.currentItem || a.element, + helper: a.helper, + position: a.position, + offset: a.positionAbs, + } + }, + }), + (a.ui.intersect = function (a, b, d) { + if (!b.offset) return !1 + var e, + f, + g = (a.positionAbs || a.position.absolute).left, + h = g + a.helperProportions.width, + i = (a.positionAbs || a.position.absolute).top, + j = i + a.helperProportions.height, + k = b.offset.left, + l = k + b.proportions.width, + m = b.offset.top, + n = m + b.proportions.height + switch (d) { + case 'fit': + return k <= g && h <= l && m <= i && j <= n + case 'intersect': + return ( + k < g + a.helperProportions.width / 2 && + h - a.helperProportions.width / 2 < l && + m < i + a.helperProportions.height / 2 && + j - a.helperProportions.height / 2 < n + ) + case 'pointer': + return ( + (e = + (a.positionAbs || a.position.absolute).left + + (a.clickOffset || a.offset.click).left), + (f = + (a.positionAbs || a.position.absolute).top + + (a.clickOffset || a.offset.click).top), + c(f, m, b.proportions.height) && c(e, k, b.proportions.width) + ) + case 'touch': + return ( + ((i >= m && i <= n) || (j >= m && j <= n) || (i < m && j > n)) && + ((g >= k && g <= l) || (h >= k && h <= l) || (g < k && h > l)) + ) + default: + return !1 + } + }), + (a.ui.ddmanager = { + current: null, + droppables: { default: [] }, + prepareOffsets: function (b, c) { + var d, + e, + f = a.ui.ddmanager.droppables[b.options.scope] || [], + g = c ? c.type : null, + h = (b.currentItem || b.element) + .find(':data(ui-droppable)') + .addBack() + a: for (d = 0; d < f.length; d++) + if ( + !( + f[d].options.disabled || + (b && + !f[d].accept.call( + f[d].element[0], + b.currentItem || b.element + )) + ) + ) { + for (e = 0; e < h.length; e++) + if (h[e] === f[d].element[0]) { + f[d].proportions.height = 0 + continue a + } + ;(f[d].visible = 'none' !== f[d].element.css('display')), + f[d].visible && + ('mousedown' === g && f[d]._activate.call(f[d], c), + (f[d].offset = f[d].element.offset()), + (f[d].proportions = { + width: f[d].element[0].offsetWidth, + height: f[d].element[0].offsetHeight, + })) + } + }, + drop: function (b, c) { + var d = !1 + return ( + a.each( + (a.ui.ddmanager.droppables[b.options.scope] || []).slice(), + function () { + this.options && + (!this.options.disabled && + this.visible && + a.ui.intersect(b, this, this.options.tolerance) && + (d = this._drop.call(this, c) || d), + !this.options.disabled && + this.visible && + this.accept.call( + this.element[0], + b.currentItem || b.element + ) && + ((this.isout = !0), + (this.isover = !1), + this._deactivate.call(this, c))) + } + ), + d + ) + }, + dragStart: function (b, c) { + b.element.parentsUntil('body').bind('scroll.droppable', function () { + b.options.refreshPositions || a.ui.ddmanager.prepareOffsets(b, c) + }) + }, + drag: function (b, c) { + b.options.refreshPositions && a.ui.ddmanager.prepareOffsets(b, c), + a.each( + a.ui.ddmanager.droppables[b.options.scope] || [], + function () { + if ( + !this.options.disabled && + !this.greedyChild && + this.visible + ) { + var d, + e, + f, + g = a.ui.intersect(b, this, this.options.tolerance), + h = + !g && this.isover + ? 'isout' + : g && !this.isover + ? 'isover' + : null + h && + (this.options.greedy && + ((e = this.options.scope), + (f = this.element + .parents(':data(ui-droppable)') + .filter(function () { + return ( + a.data(this, 'ui-droppable').options.scope === e + ) + })), + f.length && + ((d = a.data(f[0], 'ui-droppable')), + (d.greedyChild = 'isover' === h))), + d && + 'isover' === h && + ((d.isover = !1), (d.isout = !0), d._out.call(d, c)), + (this[h] = !0), + (this['isout' === h ? 'isover' : 'isout'] = !1), + this['isover' === h ? '_over' : '_out'].call(this, c), + d && + 'isout' === h && + ((d.isout = !1), (d.isover = !0), d._over.call(d, c))) + } + } + ) + }, + dragStop: function (b, c) { + b.element.parentsUntil('body').unbind('scroll.droppable'), + b.options.refreshPositions || a.ui.ddmanager.prepareOffsets(b, c) + }, + }) + })(jQuery), + (function (a, b) { + function c(a) { + return parseInt(a, 10) || 0 + } + function d(a) { + return !isNaN(parseInt(a, 10)) + } + a.widget('ui.resizable', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'resize', + options: { + alsoResize: !1, + animate: !1, + animateDuration: 'slow', + animateEasing: 'swing', + aspectRatio: !1, + autoHide: !1, + containment: !1, + ghost: !1, + grid: !1, + handles: 'e,s,se', + helper: !1, + maxHeight: null, + maxWidth: null, + minHeight: 10, + minWidth: 10, + zIndex: 90, + resize: null, + start: null, + stop: null, + }, + _create: function () { + var b, + c, + d, + e, + f, + g = this, + h = this.options + if ( + (this.element.addClass('ui-resizable'), + a.extend(this, { + _aspectRatio: !!h.aspectRatio, + aspectRatio: h.aspectRatio, + originalElement: this.element, + _proportionallyResizeElements: [], + _helper: + h.helper || h.ghost || h.animate + ? h.helper || 'ui-resizable-helper' + : null, + }), + this.element[0].nodeName.match( + /canvas|textarea|input|select|button|img/i + ) && + (this.element.wrap( + a("
    ").css( + { + position: this.element.css('position'), + width: this.element.outerWidth(), + height: this.element.outerHeight(), + top: this.element.css('top'), + left: this.element.css('left'), + } + ) + ), + (this.element = this.element + .parent() + .data('ui-resizable', this.element.data('ui-resizable'))), + (this.elementIsWrapper = !0), + this.element.css({ + marginLeft: this.originalElement.css('marginLeft'), + marginTop: this.originalElement.css('marginTop'), + marginRight: this.originalElement.css('marginRight'), + marginBottom: this.originalElement.css('marginBottom'), + }), + this.originalElement.css({ + marginLeft: 0, + marginTop: 0, + marginRight: 0, + marginBottom: 0, + }), + (this.originalResizeStyle = this.originalElement.css('resize')), + this.originalElement.css('resize', 'none'), + this._proportionallyResizeElements.push( + this.originalElement.css({ + position: 'static', + zoom: 1, + display: 'block', + }) + ), + this.originalElement.css({ + margin: this.originalElement.css('margin'), + }), + this._proportionallyResize()), + (this.handles = + h.handles || + (a('.ui-resizable-handle', this.element).length + ? { + n: '.ui-resizable-n', + e: '.ui-resizable-e', + s: '.ui-resizable-s', + w: '.ui-resizable-w', + se: '.ui-resizable-se', + sw: '.ui-resizable-sw', + ne: '.ui-resizable-ne', + nw: '.ui-resizable-nw', + } + : 'e,s,se')), + this.handles.constructor === String) + ) + for ( + 'all' === this.handles && (this.handles = 'n,e,s,w,se,sw,ne,nw'), + b = this.handles.split(','), + this.handles = {}, + c = 0; + c < b.length; + c++ + ) + (d = a.trim(b[c])), + (f = 'ui-resizable-' + d), + (e = a("
    ")), + e.css({ zIndex: h.zIndex }), + 'se' === d && e.addClass('ui-icon ui-icon-gripsmall-diagonal-se'), + (this.handles[d] = '.ui-resizable-' + d), + this.element.append(e) + ;(this._renderAxis = function (b) { + var c, d, e, f + b = b || this.element + for (c in this.handles) + this.handles[c].constructor === String && + (this.handles[c] = a(this.handles[c], this.element).show()), + this.elementIsWrapper && + this.originalElement[0].nodeName.match( + /textarea|input|select|button/i + ) && + ((d = a(this.handles[c], this.element)), + (f = /sw|ne|nw|se|n|s/.test(c) + ? d.outerHeight() + : d.outerWidth()), + (e = [ + 'padding', + /ne|nw|n/.test(c) + ? 'Top' + : /se|sw|s/.test(c) + ? 'Bottom' + : /^e$/.test(c) + ? 'Right' + : 'Left', + ].join('')), + b.css(e, f), + this._proportionallyResize()), + a(this.handles[c]).length + }), + this._renderAxis(this.element), + (this._handles = a( + '.ui-resizable-handle', + this.element + ).disableSelection()), + this._handles.mouseover(function () { + g.resizing || + (this.className && + (e = this.className.match( + /ui-resizable-(se|sw|ne|nw|n|e|s|w)/i + )), + (g.axis = e && e[1] ? e[1] : 'se')) + }), + h.autoHide && + (this._handles.hide(), + a(this.element) + .addClass('ui-resizable-autohide') + .mouseenter(function () { + h.disabled || + (a(this).removeClass('ui-resizable-autohide'), + g._handles.show()) + }) + .mouseleave(function () { + h.disabled || + g.resizing || + (a(this).addClass('ui-resizable-autohide'), g._handles.hide()) + })), + this._mouseInit() + }, + _destroy: function () { + this._mouseDestroy() + var b, + c = function (b) { + a(b) + .removeClass( + 'ui-resizable ui-resizable-disabled ui-resizable-resizing' + ) + .removeData('resizable') + .removeData('ui-resizable') + .unbind('.resizable') + .find('.ui-resizable-handle') + .remove() + } + return ( + this.elementIsWrapper && + (c(this.element), + (b = this.element), + this.originalElement + .css({ + position: b.css('position'), + width: b.outerWidth(), + height: b.outerHeight(), + top: b.css('top'), + left: b.css('left'), + }) + .insertAfter(b), + b.remove()), + this.originalElement.css('resize', this.originalResizeStyle), + c(this.originalElement), + this + ) + }, + _mouseCapture: function (b) { + var c, + d, + e = !1 + for (c in this.handles) + (d = a(this.handles[c])[0]), + (d === b.target || a.contains(d, b.target)) && (e = !0) + return !this.options.disabled && e + }, + _mouseStart: function (b) { + var d, + e, + f, + g = this.options, + h = this.element.position(), + i = this.element + return ( + (this.resizing = !0), + /absolute/.test(i.css('position')) + ? i.css({ + position: 'absolute', + top: i.css('top'), + left: i.css('left'), + }) + : i.is('.ui-draggable') && + i.css({ position: 'absolute', top: h.top, left: h.left }), + this._renderProxy(), + (d = c(this.helper.css('left'))), + (e = c(this.helper.css('top'))), + g.containment && + ((d += a(g.containment).scrollLeft() || 0), + (e += a(g.containment).scrollTop() || 0)), + (this.offset = this.helper.offset()), + (this.position = { left: d, top: e }), + (this.size = this._helper + ? { width: i.outerWidth(), height: i.outerHeight() } + : { width: i.width(), height: i.height() }), + (this.originalSize = this._helper + ? { width: i.outerWidth(), height: i.outerHeight() } + : { width: i.width(), height: i.height() }), + (this.originalPosition = { left: d, top: e }), + (this.sizeDiff = { + width: i.outerWidth() - i.width(), + height: i.outerHeight() - i.height(), + }), + (this.originalMousePosition = { left: b.pageX, top: b.pageY }), + (this.aspectRatio = + 'number' == typeof g.aspectRatio + ? g.aspectRatio + : this.originalSize.width / this.originalSize.height || 1), + (f = a('.ui-resizable-' + this.axis).css('cursor')), + a('body').css('cursor', 'auto' === f ? this.axis + '-resize' : f), + i.addClass('ui-resizable-resizing'), + this._propagate('start', b), + !0 + ) + }, + _mouseDrag: function (b) { + var c, + d = this.helper, + e = {}, + f = this.originalMousePosition, + g = this.axis, + h = this.position.top, + i = this.position.left, + j = this.size.width, + k = this.size.height, + l = b.pageX - f.left || 0, + m = b.pageY - f.top || 0, + n = this._change[g] + return ( + !!n && + ((c = n.apply(this, [b, l, m])), + this._updateVirtualBoundaries(b.shiftKey), + (this._aspectRatio || b.shiftKey) && (c = this._updateRatio(c, b)), + (c = this._respectSize(c, b)), + this._updateCache(c), + this._propagate('resize', b), + this.position.top !== h && (e.top = this.position.top + 'px'), + this.position.left !== i && (e.left = this.position.left + 'px'), + this.size.width !== j && (e.width = this.size.width + 'px'), + this.size.height !== k && (e.height = this.size.height + 'px'), + d.css(e), + !this._helper && + this._proportionallyResizeElements.length && + this._proportionallyResize(), + a.isEmptyObject(e) || this._trigger('resize', b, this.ui()), + !1) + ) + }, + _mouseStop: function (b) { + this.resizing = !1 + var c, + d, + e, + f, + g, + h, + i, + j = this.options, + k = this + return ( + this._helper && + ((c = this._proportionallyResizeElements), + (d = c.length && /textarea/i.test(c[0].nodeName)), + (e = d && a.ui.hasScroll(c[0], 'left') ? 0 : k.sizeDiff.height), + (f = d ? 0 : k.sizeDiff.width), + (g = { + width: k.helper.width() - f, + height: k.helper.height() - e, + }), + (h = + parseInt(k.element.css('left'), 10) + + (k.position.left - k.originalPosition.left) || null), + (i = + parseInt(k.element.css('top'), 10) + + (k.position.top - k.originalPosition.top) || null), + j.animate || this.element.css(a.extend(g, { top: i, left: h })), + k.helper.height(k.size.height), + k.helper.width(k.size.width), + this._helper && !j.animate && this._proportionallyResize()), + a('body').css('cursor', 'auto'), + this.element.removeClass('ui-resizable-resizing'), + this._propagate('stop', b), + this._helper && this.helper.remove(), + !1 + ) + }, + _updateVirtualBoundaries: function (a) { + var b, + c, + e, + f, + g, + h = this.options + ;(g = { + minWidth: d(h.minWidth) ? h.minWidth : 0, + maxWidth: d(h.maxWidth) ? h.maxWidth : 1 / 0, + minHeight: d(h.minHeight) ? h.minHeight : 0, + maxHeight: d(h.maxHeight) ? h.maxHeight : 1 / 0, + }), + (this._aspectRatio || a) && + ((b = g.minHeight * this.aspectRatio), + (e = g.minWidth / this.aspectRatio), + (c = g.maxHeight * this.aspectRatio), + (f = g.maxWidth / this.aspectRatio), + b > g.minWidth && (g.minWidth = b), + e > g.minHeight && (g.minHeight = e), + c < g.maxWidth && (g.maxWidth = c), + f < g.maxHeight && (g.maxHeight = f)), + (this._vBoundaries = g) + }, + _updateCache: function (a) { + ;(this.offset = this.helper.offset()), + d(a.left) && (this.position.left = a.left), + d(a.top) && (this.position.top = a.top), + d(a.height) && (this.size.height = a.height), + d(a.width) && (this.size.width = a.width) + }, + _updateRatio: function (a) { + var b = this.position, + c = this.size, + e = this.axis + return ( + d(a.height) + ? (a.width = a.height * this.aspectRatio) + : d(a.width) && (a.height = a.width / this.aspectRatio), + 'sw' === e && + ((a.left = b.left + (c.width - a.width)), (a.top = null)), + 'nw' === e && + ((a.top = b.top + (c.height - a.height)), + (a.left = b.left + (c.width - a.width))), + a + ) + }, + _respectSize: function (a) { + var b = this._vBoundaries, + c = this.axis, + e = d(a.width) && b.maxWidth && b.maxWidth < a.width, + f = d(a.height) && b.maxHeight && b.maxHeight < a.height, + g = d(a.width) && b.minWidth && b.minWidth > a.width, + h = d(a.height) && b.minHeight && b.minHeight > a.height, + i = this.originalPosition.left + this.originalSize.width, + j = this.position.top + this.size.height, + k = /sw|nw|w/.test(c), + l = /nw|ne|n/.test(c) + return ( + g && (a.width = b.minWidth), + h && (a.height = b.minHeight), + e && (a.width = b.maxWidth), + f && (a.height = b.maxHeight), + g && k && (a.left = i - b.minWidth), + e && k && (a.left = i - b.maxWidth), + h && l && (a.top = j - b.minHeight), + f && l && (a.top = j - b.maxHeight), + a.width || a.height || a.left || !a.top + ? a.width || a.height || a.top || !a.left || (a.left = null) + : (a.top = null), + a + ) + }, + _proportionallyResize: function () { + if (this._proportionallyResizeElements.length) { + var a, + b, + c, + d, + e, + f = this.helper || this.element + for (a = 0; a < this._proportionallyResizeElements.length; a++) { + if (((e = this._proportionallyResizeElements[a]), !this.borderDif)) + for ( + this.borderDif = [], + c = [ + e.css('borderTopWidth'), + e.css('borderRightWidth'), + e.css('borderBottomWidth'), + e.css('borderLeftWidth'), + ], + d = [ + e.css('paddingTop'), + e.css('paddingRight'), + e.css('paddingBottom'), + e.css('paddingLeft'), + ], + b = 0; + b < c.length; + b++ + ) + this.borderDif[b] = + (parseInt(c[b], 10) || 0) + (parseInt(d[b], 10) || 0) + e.css({ + height: f.height() - this.borderDif[0] - this.borderDif[2] || 0, + width: f.width() - this.borderDif[1] - this.borderDif[3] || 0, + }) + } + } + }, + _renderProxy: function () { + var b = this.element, + c = this.options + ;(this.elementOffset = b.offset()), + this._helper + ? ((this.helper = + this.helper || a("
    ")), + this.helper + .addClass(this._helper) + .css({ + width: this.element.outerWidth() - 1, + height: this.element.outerHeight() - 1, + position: 'absolute', + left: this.elementOffset.left + 'px', + top: this.elementOffset.top + 'px', + zIndex: ++c.zIndex, + }), + this.helper.appendTo('body').disableSelection()) + : (this.helper = this.element) + }, + _change: { + e: function (a, b) { + return { width: this.originalSize.width + b } + }, + w: function (a, b) { + var c = this.originalSize, + d = this.originalPosition + return { left: d.left + b, width: c.width - b } + }, + n: function (a, b, c) { + var d = this.originalSize, + e = this.originalPosition + return { top: e.top + c, height: d.height - c } + }, + s: function (a, b, c) { + return { height: this.originalSize.height + c } + }, + se: function (b, c, d) { + return a.extend( + this._change.s.apply(this, arguments), + this._change.e.apply(this, [b, c, d]) + ) + }, + sw: function (b, c, d) { + return a.extend( + this._change.s.apply(this, arguments), + this._change.w.apply(this, [b, c, d]) + ) + }, + ne: function (b, c, d) { + return a.extend( + this._change.n.apply(this, arguments), + this._change.e.apply(this, [b, c, d]) + ) + }, + nw: function (b, c, d) { + return a.extend( + this._change.n.apply(this, arguments), + this._change.w.apply(this, [b, c, d]) + ) + }, + }, + _propagate: function (b, c) { + a.ui.plugin.call(this, b, [c, this.ui()]), + 'resize' !== b && this._trigger(b, c, this.ui()) + }, + plugins: {}, + ui: function () { + return { + originalElement: this.originalElement, + element: this.element, + helper: this.helper, + position: this.position, + size: this.size, + originalSize: this.originalSize, + originalPosition: this.originalPosition, + } + }, + }), + a.ui.plugin.add('resizable', 'animate', { + stop: function (b) { + var c = a(this).data('ui-resizable'), + d = c.options, + e = c._proportionallyResizeElements, + f = e.length && /textarea/i.test(e[0].nodeName), + g = f && a.ui.hasScroll(e[0], 'left') ? 0 : c.sizeDiff.height, + h = f ? 0 : c.sizeDiff.width, + i = { width: c.size.width - h, height: c.size.height - g }, + j = + parseInt(c.element.css('left'), 10) + + (c.position.left - c.originalPosition.left) || null, + k = + parseInt(c.element.css('top'), 10) + + (c.position.top - c.originalPosition.top) || null + c.element.animate(a.extend(i, k && j ? { top: k, left: j } : {}), { + duration: d.animateDuration, + easing: d.animateEasing, + step: function () { + var d = { + width: parseInt(c.element.css('width'), 10), + height: parseInt(c.element.css('height'), 10), + top: parseInt(c.element.css('top'), 10), + left: parseInt(c.element.css('left'), 10), + } + e && + e.length && + a(e[0]).css({ width: d.width, height: d.height }), + c._updateCache(d), + c._propagate('resize', b) + }, + }) + }, + }), + a.ui.plugin.add('resizable', 'containment', { + start: function () { + var b, + d, + e, + f, + g, + h, + i, + j = a(this).data('ui-resizable'), + k = j.options, + l = j.element, + m = k.containment, + n = + m instanceof a + ? m.get(0) + : /parent/.test(m) + ? l.parent().get(0) + : m + n && + ((j.containerElement = a(n)), + /document/.test(m) || m === document + ? ((j.containerOffset = { left: 0, top: 0 }), + (j.containerPosition = { left: 0, top: 0 }), + (j.parentData = { + element: a(document), + left: 0, + top: 0, + width: a(document).width(), + height: + a(document).height() || + document.body.parentNode.scrollHeight, + })) + : ((b = a(n)), + (d = []), + a(['Top', 'Right', 'Left', 'Bottom']).each(function (a, e) { + d[a] = c(b.css('padding' + e)) + }), + (j.containerOffset = b.offset()), + (j.containerPosition = b.position()), + (j.containerSize = { + height: b.innerHeight() - d[3], + width: b.innerWidth() - d[1], + }), + (e = j.containerOffset), + (f = j.containerSize.height), + (g = j.containerSize.width), + (h = a.ui.hasScroll(n, 'left') ? n.scrollWidth : g), + (i = a.ui.hasScroll(n) ? n.scrollHeight : f), + (j.parentData = { + element: n, + left: e.left, + top: e.top, + width: h, + height: i, + }))) + }, + resize: function (b) { + var c, + d, + e, + f, + g = a(this).data('ui-resizable'), + h = g.options, + i = g.containerOffset, + j = g.position, + k = g._aspectRatio || b.shiftKey, + l = { top: 0, left: 0 }, + m = g.containerElement + m[0] !== document && /static/.test(m.css('position')) && (l = i), + j.left < (g._helper ? i.left : 0) && + ((g.size.width = + g.size.width + + (g._helper + ? g.position.left - i.left + : g.position.left - l.left)), + k && (g.size.height = g.size.width / g.aspectRatio), + (g.position.left = h.helper ? i.left : 0)), + j.top < (g._helper ? i.top : 0) && + ((g.size.height = + g.size.height + + (g._helper ? g.position.top - i.top : g.position.top)), + k && (g.size.width = g.size.height * g.aspectRatio), + (g.position.top = g._helper ? i.top : 0)), + (g.offset.left = g.parentData.left + g.position.left), + (g.offset.top = g.parentData.top + g.position.top), + (c = Math.abs( + (g._helper ? g.offset.left - l.left : g.offset.left - l.left) + + g.sizeDiff.width + )), + (d = Math.abs( + (g._helper ? g.offset.top - l.top : g.offset.top - i.top) + + g.sizeDiff.height + )), + (e = g.containerElement.get(0) === g.element.parent().get(0)), + (f = /relative|absolute/.test(g.containerElement.css('position'))), + e && f && (c -= g.parentData.left), + c + g.size.width >= g.parentData.width && + ((g.size.width = g.parentData.width - c), + k && (g.size.height = g.size.width / g.aspectRatio)), + d + g.size.height >= g.parentData.height && + ((g.size.height = g.parentData.height - d), + k && (g.size.width = g.size.height * g.aspectRatio)) + }, + stop: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = b.containerOffset, + e = b.containerPosition, + f = b.containerElement, + g = a(b.helper), + h = g.offset(), + i = g.outerWidth() - b.sizeDiff.width, + j = g.outerHeight() - b.sizeDiff.height + b._helper && + !c.animate && + /relative/.test(f.css('position')) && + a(this).css({ + left: h.left - e.left - d.left, + width: i, + height: j, + }), + b._helper && + !c.animate && + /static/.test(f.css('position')) && + a(this).css({ + left: h.left - e.left - d.left, + width: i, + height: j, + }) + }, + }), + a.ui.plugin.add('resizable', 'alsoResize', { + start: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = function (b) { + a(b).each(function () { + var b = a(this) + b.data('ui-resizable-alsoresize', { + width: parseInt(b.width(), 10), + height: parseInt(b.height(), 10), + left: parseInt(b.css('left'), 10), + top: parseInt(b.css('top'), 10), + }) + }) + } + 'object' != typeof c.alsoResize || c.alsoResize.parentNode + ? d(c.alsoResize) + : c.alsoResize.length + ? ((c.alsoResize = c.alsoResize[0]), d(c.alsoResize)) + : a.each(c.alsoResize, function (a) { + d(a) + }) + }, + resize: function (b, c) { + var d = a(this).data('ui-resizable'), + e = d.options, + f = d.originalSize, + g = d.originalPosition, + h = { + height: d.size.height - f.height || 0, + width: d.size.width - f.width || 0, + top: d.position.top - g.top || 0, + left: d.position.left - g.left || 0, + }, + i = function (b, d) { + a(b).each(function () { + var b = a(this), + e = a(this).data('ui-resizable-alsoresize'), + f = {}, + g = + d && d.length + ? d + : b.parents(c.originalElement[0]).length + ? ['width', 'height'] + : ['width', 'height', 'top', 'left'] + a.each(g, function (a, b) { + var c = (e[b] || 0) + (h[b] || 0) + c && c >= 0 && (f[b] = c || null) + }), + b.css(f) + }) + } + 'object' != typeof e.alsoResize || e.alsoResize.nodeType + ? i(e.alsoResize) + : a.each(e.alsoResize, function (a, b) { + i(a, b) + }) + }, + stop: function () { + a(this).removeData('resizable-alsoresize') + }, + }), + a.ui.plugin.add('resizable', 'ghost', { + start: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = b.size + ;(b.ghost = b.originalElement.clone()), + b.ghost + .css({ + opacity: 0.25, + display: 'block', + position: 'relative', + height: d.height, + width: d.width, + margin: 0, + left: 0, + top: 0, + }) + .addClass('ui-resizable-ghost') + .addClass('string' == typeof c.ghost ? c.ghost : ''), + b.ghost.appendTo(b.helper) + }, + resize: function () { + var b = a(this).data('ui-resizable') + b.ghost && + b.ghost.css({ + position: 'relative', + height: b.size.height, + width: b.size.width, + }) + }, + stop: function () { + var b = a(this).data('ui-resizable') + b.ghost && b.helper && b.helper.get(0).removeChild(b.ghost.get(0)) + }, + }), + a.ui.plugin.add('resizable', 'grid', { + resize: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = b.size, + e = b.originalSize, + f = b.originalPosition, + g = b.axis, + h = 'number' == typeof c.grid ? [c.grid, c.grid] : c.grid, + i = h[0] || 1, + j = h[1] || 1, + k = Math.round((d.width - e.width) / i) * i, + l = Math.round((d.height - e.height) / j) * j, + m = e.width + k, + n = e.height + l, + o = c.maxWidth && c.maxWidth < m, + p = c.maxHeight && c.maxHeight < n, + q = c.minWidth && c.minWidth > m, + r = c.minHeight && c.minHeight > n + ;(c.grid = h), + q && (m += i), + r && (n += j), + o && (m -= i), + p && (n -= j), + /^(se|s|e)$/.test(g) + ? ((b.size.width = m), (b.size.height = n)) + : /^(ne)$/.test(g) + ? ((b.size.width = m), + (b.size.height = n), + (b.position.top = f.top - l)) + : /^(sw)$/.test(g) + ? ((b.size.width = m), + (b.size.height = n), + (b.position.left = f.left - k)) + : ((b.size.width = m), + (b.size.height = n), + (b.position.top = f.top - l), + (b.position.left = f.left - k)) + }, + }) + })(jQuery), + (function (a, b) { + a.widget('ui.selectable', a.ui.mouse, { + version: '1.10.3', + options: { + appendTo: 'body', + autoRefresh: !0, + distance: 0, + filter: '*', + tolerance: 'touch', + selected: null, + selecting: null, + start: null, + stop: null, + unselected: null, + unselecting: null, + }, + _create: function () { + var b, + c = this + this.element.addClass('ui-selectable'), + (this.dragged = !1), + (this.refresh = function () { + ;(b = a(c.options.filter, c.element[0])), + b.addClass('ui-selectee'), + b.each(function () { + var b = a(this), + c = b.offset() + a.data(this, 'selectable-item', { + element: this, + $element: b, + left: c.left, + top: c.top, + right: c.left + b.outerWidth(), + bottom: c.top + b.outerHeight(), + startselected: !1, + selected: b.hasClass('ui-selected'), + selecting: b.hasClass('ui-selecting'), + unselecting: b.hasClass('ui-unselecting'), + }) + }) + }), + this.refresh(), + (this.selectees = b.addClass('ui-selectee')), + this._mouseInit(), + (this.helper = a("
    ")) + }, + _destroy: function () { + this.selectees.removeClass('ui-selectee').removeData('selectable-item'), + this.element.removeClass('ui-selectable ui-selectable-disabled'), + this._mouseDestroy() + }, + _mouseStart: function (b) { + var c = this, + d = this.options + ;(this.opos = [b.pageX, b.pageY]), + this.options.disabled || + ((this.selectees = a(d.filter, this.element[0])), + this._trigger('start', b), + a(d.appendTo).append(this.helper), + this.helper.css({ + left: b.pageX, + top: b.pageY, + width: 0, + height: 0, + }), + d.autoRefresh && this.refresh(), + this.selectees.filter('.ui-selected').each(function () { + var d = a.data(this, 'selectable-item') + ;(d.startselected = !0), + b.metaKey || + b.ctrlKey || + (d.$element.removeClass('ui-selected'), + (d.selected = !1), + d.$element.addClass('ui-unselecting'), + (d.unselecting = !0), + c._trigger('unselecting', b, { unselecting: d.element })) + }), + a(b.target) + .parents() + .addBack() + .each(function () { + var d, + e = a.data(this, 'selectable-item') + if (e) + return ( + (d = + (!b.metaKey && !b.ctrlKey) || + !e.$element.hasClass('ui-selected')), + e.$element + .removeClass(d ? 'ui-unselecting' : 'ui-selected') + .addClass(d ? 'ui-selecting' : 'ui-unselecting'), + (e.unselecting = !d), + (e.selecting = d), + (e.selected = d), + d + ? c._trigger('selecting', b, { selecting: e.element }) + : c._trigger('unselecting', b, { + unselecting: e.element, + }), + !1 + ) + })) + }, + _mouseDrag: function (b) { + if (((this.dragged = !0), !this.options.disabled)) { + var c, + d = this, + e = this.options, + f = this.opos[0], + g = this.opos[1], + h = b.pageX, + i = b.pageY + return ( + f > h && ((c = h), (h = f), (f = c)), + g > i && ((c = i), (i = g), (g = c)), + this.helper.css({ left: f, top: g, width: h - f, height: i - g }), + this.selectees.each(function () { + var c = a.data(this, 'selectable-item'), + j = !1 + c && + c.element !== d.element[0] && + ('touch' === e.tolerance + ? (j = !( + c.left > h || + c.right < f || + c.top > i || + c.bottom < g + )) + : 'fit' === e.tolerance && + (j = + c.left > f && c.right < h && c.top > g && c.bottom < i), + j + ? (c.selected && + (c.$element.removeClass('ui-selected'), + (c.selected = !1)), + c.unselecting && + (c.$element.removeClass('ui-unselecting'), + (c.unselecting = !1)), + c.selecting || + (c.$element.addClass('ui-selecting'), + (c.selecting = !0), + d._trigger('selecting', b, { selecting: c.element }))) + : (c.selecting && + ((b.metaKey || b.ctrlKey) && c.startselected + ? (c.$element.removeClass('ui-selecting'), + (c.selecting = !1), + c.$element.addClass('ui-selected'), + (c.selected = !0)) + : (c.$element.removeClass('ui-selecting'), + (c.selecting = !1), + c.startselected && + (c.$element.addClass('ui-unselecting'), + (c.unselecting = !0)), + d._trigger('unselecting', b, { + unselecting: c.element, + }))), + c.selected && + (b.metaKey || + b.ctrlKey || + c.startselected || + (c.$element.removeClass('ui-selected'), + (c.selected = !1), + c.$element.addClass('ui-unselecting'), + (c.unselecting = !0), + d._trigger('unselecting', b, { + unselecting: c.element, + }))))) + }), + !1 + ) + } + }, + _mouseStop: function (b) { + var c = this + return ( + (this.dragged = !1), + a('.ui-unselecting', this.element[0]).each(function () { + var d = a.data(this, 'selectable-item') + d.$element.removeClass('ui-unselecting'), + (d.unselecting = !1), + (d.startselected = !1), + c._trigger('unselected', b, { unselected: d.element }) + }), + a('.ui-selecting', this.element[0]).each(function () { + var d = a.data(this, 'selectable-item') + d.$element.removeClass('ui-selecting').addClass('ui-selected'), + (d.selecting = !1), + (d.selected = !0), + (d.startselected = !0), + c._trigger('selected', b, { selected: d.element }) + }), + this._trigger('stop', b), + this.helper.remove(), + !1 + ) + }, + }) + })(jQuery), + (function (a, b) { + function c(a, b, c) { + return a > b && a < b + c + } + function d(a) { + return ( + /left|right/.test(a.css('float')) || + /inline|table-cell/.test(a.css('display')) + ) + } + a.widget('ui.sortable', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'sort', + ready: !1, + options: { + appendTo: 'parent', + axis: !1, + connectWith: !1, + containment: !1, + cursor: 'auto', + cursorAt: !1, + dropOnEmpty: !0, + forcePlaceholderSize: !1, + forceHelperSize: !1, + grid: !1, + handle: !1, + helper: 'original', + items: '> *', + opacity: !1, + placeholder: !1, + revert: !1, + scroll: !0, + scrollSensitivity: 20, + scrollSpeed: 20, + scope: 'default', + tolerance: 'intersect', + zIndex: 1e3, + activate: null, + beforeStop: null, + change: null, + deactivate: null, + out: null, + over: null, + receive: null, + remove: null, + sort: null, + start: null, + stop: null, + update: null, + }, + _create: function () { + var a = this.options + ;(this.containerCache = {}), + this.element.addClass('ui-sortable'), + this.refresh(), + (this.floating = + !!this.items.length && ('x' === a.axis || d(this.items[0].item))), + (this.offset = this.element.offset()), + this._mouseInit(), + (this.ready = !0) + }, + _destroy: function () { + this.element.removeClass('ui-sortable ui-sortable-disabled'), + this._mouseDestroy() + for (var a = this.items.length - 1; a >= 0; a--) + this.items[a].item.removeData(this.widgetName + '-item') + return this + }, + _setOption: function (b, c) { + 'disabled' === b + ? ((this.options[b] = c), + this.widget().toggleClass('ui-sortable-disabled', !!c)) + : a.Widget.prototype._setOption.apply(this, arguments) + }, + _mouseCapture: function (b, c) { + var d = null, + e = !1, + f = this + return ( + !this.reverting && + !this.options.disabled && + 'static' !== this.options.type && + (this._refreshItems(b), + a(b.target) + .parents() + .each(function () { + if (a.data(this, f.widgetName + '-item') === f) + return (d = a(this)), !1 + }), + a.data(b.target, f.widgetName + '-item') === f && (d = a(b.target)), + !!d && + !( + this.options.handle && + !c && + (a(this.options.handle, d) + .find('*') + .addBack() + .each(function () { + this === b.target && (e = !0) + }), + !e) + ) && + ((this.currentItem = d), this._removeCurrentsFromItems(), !0)) + ) + }, + _mouseStart: function (b, c, d) { + var e, + f, + g = this.options + if ( + ((this.currentContainer = this), + this.refreshPositions(), + (this.helper = this._createHelper(b)), + this._cacheHelperProportions(), + this._cacheMargins(), + (this.scrollParent = this.helper.scrollParent()), + (this.offset = this.currentItem.offset()), + (this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left, + }), + a.extend(this.offset, { + click: { + left: b.pageX - this.offset.left, + top: b.pageY - this.offset.top, + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset(), + }), + this.helper.css('position', 'absolute'), + (this.cssPosition = this.helper.css('position')), + (this.originalPosition = this._generatePosition(b)), + (this.originalPageX = b.pageX), + (this.originalPageY = b.pageY), + g.cursorAt && this._adjustOffsetFromHelper(g.cursorAt), + (this.domPosition = { + prev: this.currentItem.prev()[0], + parent: this.currentItem.parent()[0], + }), + this.helper[0] !== this.currentItem[0] && this.currentItem.hide(), + this._createPlaceholder(), + g.containment && this._setContainment(), + g.cursor && + 'auto' !== g.cursor && + ((f = this.document.find('body')), + (this.storedCursor = f.css('cursor')), + f.css('cursor', g.cursor), + (this.storedStylesheet = a( + '' + ).appendTo(f))), + g.opacity && + (this.helper.css('opacity') && + (this._storedOpacity = this.helper.css('opacity')), + this.helper.css('opacity', g.opacity)), + g.zIndex && + (this.helper.css('zIndex') && + (this._storedZIndex = this.helper.css('zIndex')), + this.helper.css('zIndex', g.zIndex)), + this.scrollParent[0] !== document && + 'HTML' !== this.scrollParent[0].tagName && + (this.overflowOffset = this.scrollParent.offset()), + this._trigger('start', b, this._uiHash()), + this._preserveHelperProportions || this._cacheHelperProportions(), + !d) + ) + for (e = this.containers.length - 1; e >= 0; e--) + this.containers[e]._trigger('activate', b, this._uiHash(this)) + return ( + a.ui.ddmanager && (a.ui.ddmanager.current = this), + a.ui.ddmanager && + !g.dropBehaviour && + a.ui.ddmanager.prepareOffsets(this, b), + (this.dragging = !0), + this.helper.addClass('ui-sortable-helper'), + this._mouseDrag(b), + !0 + ) + }, + _mouseDrag: function (b) { + var c, + d, + e, + f, + g = this.options, + h = !1 + for ( + this.position = this._generatePosition(b), + this.positionAbs = this._convertPositionTo('absolute'), + this.lastPositionAbs || (this.lastPositionAbs = this.positionAbs), + this.options.scroll && + (this.scrollParent[0] !== document && + 'HTML' !== this.scrollParent[0].tagName + ? (this.overflowOffset.top + + this.scrollParent[0].offsetHeight - + b.pageY < + g.scrollSensitivity + ? (this.scrollParent[0].scrollTop = h = + this.scrollParent[0].scrollTop + g.scrollSpeed) + : b.pageY - this.overflowOffset.top < g.scrollSensitivity && + (this.scrollParent[0].scrollTop = h = + this.scrollParent[0].scrollTop - g.scrollSpeed), + this.overflowOffset.left + + this.scrollParent[0].offsetWidth - + b.pageX < + g.scrollSensitivity + ? (this.scrollParent[0].scrollLeft = h = + this.scrollParent[0].scrollLeft + g.scrollSpeed) + : b.pageX - this.overflowOffset.left < + g.scrollSensitivity && + (this.scrollParent[0].scrollLeft = h = + this.scrollParent[0].scrollLeft - g.scrollSpeed)) + : (b.pageY - a(document).scrollTop() < g.scrollSensitivity + ? (h = a(document).scrollTop( + a(document).scrollTop() - g.scrollSpeed + )) + : a(window).height() - (b.pageY - a(document).scrollTop()) < + g.scrollSensitivity && + (h = a(document).scrollTop( + a(document).scrollTop() + g.scrollSpeed + )), + b.pageX - a(document).scrollLeft() < g.scrollSensitivity + ? (h = a(document).scrollLeft( + a(document).scrollLeft() - g.scrollSpeed + )) + : a(window).width() - (b.pageX - a(document).scrollLeft()) < + g.scrollSensitivity && + (h = a(document).scrollLeft( + a(document).scrollLeft() + g.scrollSpeed + ))), + h !== !1 && + a.ui.ddmanager && + !g.dropBehaviour && + a.ui.ddmanager.prepareOffsets(this, b)), + this.positionAbs = this._convertPositionTo('absolute'), + (this.options.axis && 'y' === this.options.axis) || + (this.helper[0].style.left = this.position.left + 'px'), + (this.options.axis && 'x' === this.options.axis) || + (this.helper[0].style.top = this.position.top + 'px'), + c = this.items.length - 1; + c >= 0; + c-- + ) + if ( + ((d = this.items[c]), + (e = d.item[0]), + (f = this._intersectsWithPointer(d)), + f && + d.instance === this.currentContainer && + !( + e === this.currentItem[0] || + this.placeholder[1 === f ? 'next' : 'prev']()[0] === e || + a.contains(this.placeholder[0], e) || + ('semi-dynamic' === this.options.type && + a.contains(this.element[0], e)) + )) + ) { + if ( + ((this.direction = 1 === f ? 'down' : 'up'), + 'pointer' !== this.options.tolerance && + !this._intersectsWithSides(d)) + ) + break + this._rearrange(b, d), this._trigger('change', b, this._uiHash()) + break + } + return ( + this._contactContainers(b), + a.ui.ddmanager && a.ui.ddmanager.drag(this, b), + this._trigger('sort', b, this._uiHash()), + (this.lastPositionAbs = this.positionAbs), + !1 + ) + }, + _mouseStop: function (b, c) { + if (b) { + if ( + (a.ui.ddmanager && + !this.options.dropBehaviour && + a.ui.ddmanager.drop(this, b), + this.options.revert) + ) { + var d = this, + e = this.placeholder.offset(), + f = this.options.axis, + g = {} + ;(f && 'x' !== f) || + (g.left = + e.left - + this.offset.parent.left - + this.margins.left + + (this.offsetParent[0] === document.body + ? 0 + : this.offsetParent[0].scrollLeft)), + (f && 'y' !== f) || + (g.top = + e.top - + this.offset.parent.top - + this.margins.top + + (this.offsetParent[0] === document.body + ? 0 + : this.offsetParent[0].scrollTop)), + (this.reverting = !0), + a(this.helper).animate( + g, + parseInt(this.options.revert, 10) || 500, + function () { + d._clear(b) + } + ) + } else this._clear(b, c) + return !1 + } + }, + cancel: function () { + if (this.dragging) { + this._mouseUp({ target: null }), + 'original' === this.options.helper + ? this.currentItem + .css(this._storedCSS) + .removeClass('ui-sortable-helper') + : this.currentItem.show() + for (var b = this.containers.length - 1; b >= 0; b--) + this.containers[b]._trigger('deactivate', null, this._uiHash(this)), + this.containers[b].containerCache.over && + (this.containers[b]._trigger('out', null, this._uiHash(this)), + (this.containers[b].containerCache.over = 0)) + } + return ( + this.placeholder && + (this.placeholder[0].parentNode && + this.placeholder[0].parentNode.removeChild(this.placeholder[0]), + 'original' !== this.options.helper && + this.helper && + this.helper[0].parentNode && + this.helper.remove(), + a.extend(this, { + helper: null, + dragging: !1, + reverting: !1, + _noFinalSort: null, + }), + this.domPosition.prev + ? a(this.domPosition.prev).after(this.currentItem) + : a(this.domPosition.parent).prepend(this.currentItem)), + this + ) + }, + serialize: function (b) { + var c = this._getItemsAsjQuery(b && b.connected), + d = [] + return ( + (b = b || {}), + a(c).each(function () { + var c = (a(b.item || this).attr(b.attribute || 'id') || '').match( + b.expression || /(.+)[\-=_](.+)/ + ) + c && + d.push( + (b.key || c[1] + '[]') + + '=' + + (b.key && b.expression ? c[1] : c[2]) + ) + }), + !d.length && b.key && d.push(b.key + '='), + d.join('&') + ) + }, + toArray: function (b) { + var c = this._getItemsAsjQuery(b && b.connected), + d = [] + return ( + (b = b || {}), + c.each(function () { + d.push(a(b.item || this).attr(b.attribute || 'id') || '') + }), + d + ) + }, + _intersectsWith: function (a) { + var b = this.positionAbs.left, + c = b + this.helperProportions.width, + d = this.positionAbs.top, + e = d + this.helperProportions.height, + f = a.left, + g = f + a.width, + h = a.top, + i = h + a.height, + j = this.offset.click.top, + k = this.offset.click.left, + l = 'x' === this.options.axis || (d + j > h && d + j < i), + m = 'y' === this.options.axis || (b + k > f && b + k < g), + n = l && m + return 'pointer' === this.options.tolerance || + this.options.forcePointerForContainers || + ('pointer' !== this.options.tolerance && + this.helperProportions[this.floating ? 'width' : 'height'] > + a[this.floating ? 'width' : 'height']) + ? n + : f < b + this.helperProportions.width / 2 && + c - this.helperProportions.width / 2 < g && + h < d + this.helperProportions.height / 2 && + e - this.helperProportions.height / 2 < i + }, + _intersectsWithPointer: function (a) { + var b = + 'x' === this.options.axis || + c(this.positionAbs.top + this.offset.click.top, a.top, a.height), + d = + 'y' === this.options.axis || + c(this.positionAbs.left + this.offset.click.left, a.left, a.width), + e = b && d, + f = this._getDragVerticalDirection(), + g = this._getDragHorizontalDirection() + return ( + !!e && + (this.floating + ? (g && 'right' === g) || 'down' === f + ? 2 + : 1 + : f && ('down' === f ? 2 : 1)) + ) + }, + _intersectsWithSides: function (a) { + var b = c( + this.positionAbs.top + this.offset.click.top, + a.top + a.height / 2, + a.height + ), + d = c( + this.positionAbs.left + this.offset.click.left, + a.left + a.width / 2, + a.width + ), + e = this._getDragVerticalDirection(), + f = this._getDragHorizontalDirection() + return this.floating && f + ? ('right' === f && d) || ('left' === f && !d) + : e && (('down' === e && b) || ('up' === e && !b)) + }, + _getDragVerticalDirection: function () { + var a = this.positionAbs.top - this.lastPositionAbs.top + return 0 !== a && (a > 0 ? 'down' : 'up') + }, + _getDragHorizontalDirection: function () { + var a = this.positionAbs.left - this.lastPositionAbs.left + return 0 !== a && (a > 0 ? 'right' : 'left') + }, + refresh: function (a) { + return this._refreshItems(a), this.refreshPositions(), this + }, + _connectWith: function () { + var a = this.options + return a.connectWith.constructor === String + ? [a.connectWith] + : a.connectWith + }, + _getItemsAsjQuery: function (b) { + var c, + d, + e, + f, + g = [], + h = [], + i = this._connectWith() + if (i && b) + for (c = i.length - 1; c >= 0; c--) + for (e = a(i[c]), d = e.length - 1; d >= 0; d--) + (f = a.data(e[d], this.widgetFullName)), + f && + f !== this && + !f.options.disabled && + h.push([ + a.isFunction(f.options.items) + ? f.options.items.call(f.element) + : a(f.options.items, f.element) + .not('.ui-sortable-helper') + .not('.ui-sortable-placeholder'), + f, + ]) + for ( + h.push([ + a.isFunction(this.options.items) + ? this.options.items.call(this.element, null, { + options: this.options, + item: this.currentItem, + }) + : a(this.options.items, this.element) + .not('.ui-sortable-helper') + .not('.ui-sortable-placeholder'), + this, + ]), + c = h.length - 1; + c >= 0; + c-- + ) + h[c][0].each(function () { + g.push(this) + }) + return a(g) + }, + _removeCurrentsFromItems: function () { + var b = this.currentItem.find(':data(' + this.widgetName + '-item)') + this.items = a.grep(this.items, function (a) { + for (var c = 0; c < b.length; c++) if (b[c] === a.item[0]) return !1 + return !0 + }) + }, + _refreshItems: function (b) { + ;(this.items = []), (this.containers = [this]) + var c, + d, + e, + f, + g, + h, + i, + j, + k = this.items, + l = [ + [ + a.isFunction(this.options.items) + ? this.options.items.call(this.element[0], b, { + item: this.currentItem, + }) + : a(this.options.items, this.element), + this, + ], + ], + m = this._connectWith() + if (m && this.ready) + for (c = m.length - 1; c >= 0; c--) + for (e = a(m[c]), d = e.length - 1; d >= 0; d--) + (f = a.data(e[d], this.widgetFullName)), + f && + f !== this && + !f.options.disabled && + (l.push([ + a.isFunction(f.options.items) + ? f.options.items.call(f.element[0], b, { + item: this.currentItem, + }) + : a(f.options.items, f.element), + f, + ]), + this.containers.push(f)) + for (c = l.length - 1; c >= 0; c--) + for (g = l[c][1], h = l[c][0], d = 0, j = h.length; d < j; d++) + (i = a(h[d])), + i.data(this.widgetName + '-item', g), + k.push({ + item: i, + instance: g, + width: 0, + height: 0, + left: 0, + top: 0, + }) + }, + refreshPositions: function (b) { + this.offsetParent && + this.helper && + (this.offset.parent = this._getParentOffset()) + var c, d, e, f + for (c = this.items.length - 1; c >= 0; c--) + (d = this.items[c]), + (d.instance !== this.currentContainer && + this.currentContainer && + d.item[0] !== this.currentItem[0]) || + ((e = this.options.toleranceElement + ? a(this.options.toleranceElement, d.item) + : d.item), + b || ((d.width = e.outerWidth()), (d.height = e.outerHeight())), + (f = e.offset()), + (d.left = f.left), + (d.top = f.top)) + if (this.options.custom && this.options.custom.refreshContainers) + this.options.custom.refreshContainers.call(this) + else + for (c = this.containers.length - 1; c >= 0; c--) + (f = this.containers[c].element.offset()), + (this.containers[c].containerCache.left = f.left), + (this.containers[c].containerCache.top = f.top), + (this.containers[c].containerCache.width = + this.containers[c].element.outerWidth()), + (this.containers[c].containerCache.height = + this.containers[c].element.outerHeight()) + return this + }, + _createPlaceholder: function (b) { + b = b || this + var c, + d = b.options + ;(d.placeholder && d.placeholder.constructor !== String) || + ((c = d.placeholder), + (d.placeholder = { + element: function () { + var d = b.currentItem[0].nodeName.toLowerCase(), + e = a('<' + d + '>', b.document[0]) + .addClass( + c || b.currentItem[0].className + ' ui-sortable-placeholder' + ) + .removeClass('ui-sortable-helper') + return ( + 'tr' === d + ? b.currentItem.children().each(function () { + a('
     
    ", + C = l + ? "' + : '', + v = 0; + v < 7; + v++ + ) + (D = (v + k) % 7), + (C += + '= 5 + ? " class='ui-datepicker-week-end'" + : '') + + ">" + + n[D] + + '') + for ( + B += C + '', + E = this._getDaysInMonth(aa, _), + aa === a.selectedYear && + _ === a.selectedMonth && + (a.selectedDay = Math.min(a.selectedDay, E)), + F = (this._getFirstDayOfMonth(aa, _) - k + 7) % 7, + G = Math.ceil((F + E) / 7), + H = X && this.maxRows > G ? this.maxRows : G, + this.maxRows = H, + I = this._daylightSavingAdjust(new Date(aa, _, 1 - F)), + J = 0; + J < H; + J++ + ) { + for ( + B += '', + K = l + ? "' + : '', + v = 0; + v < 7; + v++ + ) + (L = q ? q.apply(a.input ? a.input[0] : null, [I]) : [!0, '']), + (M = I.getMonth() !== _), + (N = (M && !s) || !L[0] || (Z && I < Z) || ($ && I > $)), + (K += + "'), + I.setDate(I.getDate() + 1), + (I = this._daylightSavingAdjust(I)) + B += K + '' + } + _++, + _ > 11 && ((_ = 0), aa++), + (B += + '
    " + + this._get(a, 'weekHeader') + + '
    " + + this._get(a, 'calculateWeek')(I) + + '' + + (M && !r + ? ' ' + : N + ? "" + + I.getDate() + + '' + : "" + + I.getDate() + + '') + + '
    ' + + (X + ? '
    ' + + (U[0] > 0 && y === U[1] - 1 + ? "
    " + : '') + : '')), + (x += B) + } + u += x + } + return (u += j), (a._keyEvent = !1), u + }, + _generateMonthYearHeader: function (a, b, c, d, e, f, g, h) { + var i, + j, + k, + l, + m, + n, + o, + p, + q = this._get(a, 'changeMonth'), + r = this._get(a, 'changeYear'), + s = this._get(a, 'showMonthAfterYear'), + t = "
    ", + u = '' + if (f || !q) + u += "" + g[b] + '' + else { + for ( + i = d && d.getFullYear() === c, + j = e && e.getFullYear() === c, + u += + "' + } + if ((s || (t += u + (!f && q && r ? '' : ' ')), !a.yearshtml)) + if (((a.yearshtml = ''), f || !r)) + t += "" + c + '' + else { + for ( + l = this._get(a, 'yearRange').split(':'), + m = new Date().getFullYear(), + n = function (a) { + var b = a.match(/c[+\-].*/) + ? c + parseInt(a.substring(1), 10) + : a.match(/[+\-].*/) + ? m + parseInt(a, 10) + : parseInt(a, 10) + return isNaN(b) ? m : b + }, + o = n(l[0]), + p = Math.max(o, n(l[1] || '')), + o = d ? Math.max(o, d.getFullYear()) : o, + p = e ? Math.min(p, e.getFullYear()) : p, + a.yearshtml += + "'), + (t += a.yearshtml), + (a.yearshtml = null) + } + return ( + (t += this._get(a, 'yearSuffix')), + s && (t += (!f && q && r ? '' : ' ') + u), + (t += '
    ') + ) + }, + _adjustInstDate: function (a, b, c) { + var d = a.drawYear + ('Y' === c ? b : 0), + e = a.drawMonth + ('M' === c ? b : 0), + f = + Math.min(a.selectedDay, this._getDaysInMonth(d, e)) + + ('D' === c ? b : 0), + g = this._restrictMinMax( + a, + this._daylightSavingAdjust(new Date(d, e, f)) + ) + ;(a.selectedDay = g.getDate()), + (a.drawMonth = a.selectedMonth = g.getMonth()), + (a.drawYear = a.selectedYear = g.getFullYear()), + ('M' !== c && 'Y' !== c) || this._notifyChange(a) + }, + _restrictMinMax: function (a, b) { + var c = this._getMinMaxDate(a, 'min'), + d = this._getMinMaxDate(a, 'max'), + e = c && b < c ? c : b + return d && e > d ? d : e + }, + _notifyChange: function (a) { + var b = this._get(a, 'onChangeMonthYear') + b && + b.apply(a.input ? a.input[0] : null, [ + a.selectedYear, + a.selectedMonth + 1, + a, + ]) + }, + _getNumberOfMonths: function (a) { + var b = this._get(a, 'numberOfMonths') + return null == b ? [1, 1] : 'number' == typeof b ? [1, b] : b + }, + _getMinMaxDate: function (a, b) { + return this._determineDate(a, this._get(a, b + 'Date'), null) + }, + _getDaysInMonth: function (a, b) { + return 32 - this._daylightSavingAdjust(new Date(a, b, 32)).getDate() + }, + _getFirstDayOfMonth: function (a, b) { + return new Date(a, b, 1).getDay() + }, + _canAdjustMonth: function (a, b, c, d) { + var e = this._getNumberOfMonths(a), + f = this._daylightSavingAdjust( + new Date(c, d + (b < 0 ? b : e[0] * e[1]), 1) + ) + return ( + b < 0 && + f.setDate(this._getDaysInMonth(f.getFullYear(), f.getMonth())), + this._isInRange(a, f) + ) + }, + _isInRange: function (a, b) { + var c, + d, + e = this._getMinMaxDate(a, 'min'), + f = this._getMinMaxDate(a, 'max'), + g = null, + h = null, + i = this._get(a, 'yearRange') + return ( + i && + ((c = i.split(':')), + (d = new Date().getFullYear()), + (g = parseInt(c[0], 10)), + (h = parseInt(c[1], 10)), + c[0].match(/[+\-].*/) && (g += d), + c[1].match(/[+\-].*/) && (h += d)), + (!e || b.getTime() >= e.getTime()) && + (!f || b.getTime() <= f.getTime()) && + (!g || b.getFullYear() >= g) && + (!h || b.getFullYear() <= h) + ) + }, + _getFormatConfig: function (a) { + var b = this._get(a, 'shortYearCutoff') + return ( + (b = + 'string' != typeof b + ? b + : (new Date().getFullYear() % 100) + parseInt(b, 10)), + { + shortYearCutoff: b, + dayNamesShort: this._get(a, 'dayNamesShort'), + dayNames: this._get(a, 'dayNames'), + monthNamesShort: this._get(a, 'monthNamesShort'), + monthNames: this._get(a, 'monthNames'), + } + ) + }, + _formatDate: function (a, b, c, d) { + b || + ((a.currentDay = a.selectedDay), + (a.currentMonth = a.selectedMonth), + (a.currentYear = a.selectedYear)) + var e = b + ? 'object' == typeof b + ? b + : this._daylightSavingAdjust(new Date(d, c, b)) + : this._daylightSavingAdjust( + new Date(a.currentYear, a.currentMonth, a.currentDay) + ) + return this.formatDate( + this._get(a, 'dateFormat'), + e, + this._getFormatConfig(a) + ) + }, + }), + (a.fn.datepicker = function (b) { + if (!this.length) return this + a.datepicker.initialized || + (a(document).mousedown(a.datepicker._checkExternalClick), + (a.datepicker.initialized = !0)), + 0 === a('#' + a.datepicker._mainDivId).length && + a('body').append(a.datepicker.dpDiv) + var c = Array.prototype.slice.call(arguments, 1) + return 'string' != typeof b || + ('isDisabled' !== b && 'getDate' !== b && 'widget' !== b) + ? 'option' === b && + 2 === arguments.length && + 'string' == typeof arguments[1] + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + : this.each(function () { + 'string' == typeof b + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this].concat(c) + ) + : a.datepicker._attachDatepicker(this, b) + }) + : a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + }), + (a.datepicker = new e()), + (a.datepicker.initialized = !1), + (a.datepicker.uuid = new Date().getTime()), + (a.datepicker.version = '1.10.3') + })(jQuery), + (function (a, b) { + var c = { + buttons: !0, + height: !0, + maxHeight: !0, + maxWidth: !0, + minHeight: !0, + minWidth: !0, + width: !0, + }, + d = { maxHeight: !0, maxWidth: !0, minHeight: !0, minWidth: !0 } + a.widget('ui.dialog', { + version: '1.10.3', + options: { + appendTo: 'body', + autoOpen: !0, + buttons: [], + closeOnEscape: !0, + closeText: 'close', + dialogClass: '', + draggable: !0, + hide: null, + height: 'auto', + maxHeight: null, + maxWidth: null, + minHeight: 150, + minWidth: 150, + modal: !1, + position: { + my: 'center', + at: 'center', + of: window, + collision: 'fit', + using: function (b) { + var c = a(this).css(b).offset().top + c < 0 && a(this).css('top', b.top - c) + }, + }, + resizable: !0, + show: null, + title: null, + width: 300, + beforeClose: null, + close: null, + drag: null, + dragStart: null, + dragStop: null, + focus: null, + open: null, + resize: null, + resizeStart: null, + resizeStop: null, + }, + _create: function () { + ;(this.originalCss = { + display: this.element[0].style.display, + width: this.element[0].style.width, + minHeight: this.element[0].style.minHeight, + maxHeight: this.element[0].style.maxHeight, + height: this.element[0].style.height, + }), + (this.originalPosition = { + parent: this.element.parent(), + index: this.element.parent().children().index(this.element), + }), + (this.originalTitle = this.element.attr('title')), + (this.options.title = this.options.title || this.originalTitle), + this._createWrapper(), + this.element + .show() + .removeAttr('title') + .addClass('ui-dialog-content ui-widget-content') + .appendTo(this.uiDialog), + this._createTitlebar(), + this._createButtonPane(), + this.options.draggable && a.fn.draggable && this._makeDraggable(), + this.options.resizable && a.fn.resizable && this._makeResizable(), + (this._isOpen = !1) + }, + _init: function () { + this.options.autoOpen && this.open() + }, + _appendTo: function () { + var b = this.options.appendTo + return b && (b.jquery || b.nodeType) + ? a(b) + : this.document.find(b || 'body').eq(0) + }, + _destroy: function () { + var a, + b = this.originalPosition + this._destroyOverlay(), + this.element + .removeUniqueId() + .removeClass('ui-dialog-content ui-widget-content') + .css(this.originalCss) + .detach(), + this.uiDialog.stop(!0, !0).remove(), + this.originalTitle && this.element.attr('title', this.originalTitle), + (a = b.parent.children().eq(b.index)), + a.length && a[0] !== this.element[0] + ? a.before(this.element) + : b.parent.append(this.element) + }, + widget: function () { + return this.uiDialog + }, + disable: a.noop, + enable: a.noop, + close: function (b) { + var c = this + this._isOpen && + this._trigger('beforeClose', b) !== !1 && + ((this._isOpen = !1), + this._destroyOverlay(), + this.opener.filter(':focusable').focus().length || + a(this.document[0].activeElement).blur(), + this._hide(this.uiDialog, this.options.hide, function () { + c._trigger('close', b) + })) + }, + isOpen: function () { + return this._isOpen + }, + moveToTop: function () { + this._moveToTop() + }, + _moveToTop: function (a, b) { + var c = !!this.uiDialog.nextAll(':visible').insertBefore(this.uiDialog) + .length + return c && !b && this._trigger('focus', a), c + }, + open: function () { + var b = this + return this._isOpen + ? void (this._moveToTop() && this._focusTabbable()) + : ((this._isOpen = !0), + (this.opener = a(this.document[0].activeElement)), + this._size(), + this._position(), + this._createOverlay(), + this._moveToTop(null, !0), + this._show(this.uiDialog, this.options.show, function () { + b._focusTabbable(), b._trigger('focus') + }), + void this._trigger('open')) + }, + _focusTabbable: function () { + var a = this.element.find('[autofocus]') + a.length || (a = this.element.find(':tabbable')), + a.length || (a = this.uiDialogButtonPane.find(':tabbable')), + a.length || (a = this.uiDialogTitlebarClose.filter(':tabbable')), + a.length || (a = this.uiDialog), + a.eq(0).focus() + }, + _keepFocus: function (b) { + function c() { + var b = this.document[0].activeElement, + c = this.uiDialog[0] === b || a.contains(this.uiDialog[0], b) + c || this._focusTabbable() + } + b.preventDefault(), c.call(this), this._delay(c) + }, + _createWrapper: function () { + ;(this.uiDialog = a('
    ') + .addClass( + 'ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ' + + this.options.dialogClass + ) + .hide() + .attr({ tabIndex: -1, role: 'dialog' }) + .appendTo(this._appendTo())), + this._on(this.uiDialog, { + keydown: function (b) { + if ( + this.options.closeOnEscape && + !b.isDefaultPrevented() && + b.keyCode && + b.keyCode === a.ui.keyCode.ESCAPE + ) + return b.preventDefault(), void this.close(b) + if (b.keyCode === a.ui.keyCode.TAB) { + var c = this.uiDialog.find(':tabbable'), + d = c.filter(':first'), + e = c.filter(':last') + ;(b.target !== e[0] && b.target !== this.uiDialog[0]) || + b.shiftKey + ? (b.target !== d[0] && b.target !== this.uiDialog[0]) || + !b.shiftKey || + (e.focus(1), b.preventDefault()) + : (d.focus(1), b.preventDefault()) + } + }, + mousedown: function (a) { + this._moveToTop(a) && this._focusTabbable() + }, + }), + this.element.find('[aria-describedby]').length || + this.uiDialog.attr({ + 'aria-describedby': this.element.uniqueId().attr('id'), + }) + }, + _createTitlebar: function () { + var b + ;(this.uiDialogTitlebar = a('
    ') + .addClass( + 'ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix' + ) + .prependTo(this.uiDialog)), + this._on(this.uiDialogTitlebar, { + mousedown: function (b) { + a(b.target).closest('.ui-dialog-titlebar-close') || + this.uiDialog.focus() + }, + }), + (this.uiDialogTitlebarClose = a('') + .button({ + label: this.options.closeText, + icons: { primary: 'ui-icon-closethick' }, + text: !1, + }) + .addClass('ui-dialog-titlebar-close') + .appendTo(this.uiDialogTitlebar)), + this._on(this.uiDialogTitlebarClose, { + click: function (a) { + a.preventDefault(), this.close(a) + }, + }), + (b = a('') + .uniqueId() + .addClass('ui-dialog-title') + .prependTo(this.uiDialogTitlebar)), + this._title(b), + this.uiDialog.attr({ 'aria-labelledby': b.attr('id') }) + }, + _title: function (a) { + this.options.title || a.html(' '), a.text(this.options.title) + }, + _createButtonPane: function () { + ;(this.uiDialogButtonPane = a('
    ').addClass( + 'ui-dialog-buttonpane ui-widget-content ui-helper-clearfix' + )), + (this.uiButtonSet = a('
    ') + .addClass('ui-dialog-buttonset') + .appendTo(this.uiDialogButtonPane)), + this._createButtons() + }, + _createButtons: function () { + var b = this, + c = this.options.buttons + return ( + this.uiDialogButtonPane.remove(), + this.uiButtonSet.empty(), + a.isEmptyObject(c) || (a.isArray(c) && !c.length) + ? void this.uiDialog.removeClass('ui-dialog-buttons') + : (a.each(c, function (c, d) { + var e, f + ;(d = a.isFunction(d) ? { click: d, text: c } : d), + (d = a.extend({ type: 'button' }, d)), + (e = d.click), + (d.click = function () { + e.apply(b.element[0], arguments) + }), + (f = { icons: d.icons, text: d.showText }), + delete d.icons, + delete d.showText, + a('', d).button(f).appendTo(b.uiButtonSet) + }), + this.uiDialog.addClass('ui-dialog-buttons'), + void this.uiDialogButtonPane.appendTo(this.uiDialog)) + ) + }, + _makeDraggable: function () { + function d(a) { + return { position: a.position, offset: a.offset } + } + var b = this, + c = this.options + this.uiDialog.draggable({ + cancel: '.ui-dialog-content, .ui-dialog-titlebar-close', + handle: '.ui-dialog-titlebar', + containment: 'document', + start: function (c, e) { + a(this).addClass('ui-dialog-dragging'), + b._blockFrames(), + b._trigger('dragStart', c, d(e)) + }, + drag: function (a, c) { + b._trigger('drag', a, d(c)) + }, + stop: function (e, f) { + ;(c.position = [ + f.position.left - b.document.scrollLeft(), + f.position.top - b.document.scrollTop(), + ]), + a(this).removeClass('ui-dialog-dragging'), + b._unblockFrames(), + b._trigger('dragStop', e, d(f)) + }, + }) + }, + _makeResizable: function () { + function g(a) { + return { + originalPosition: a.originalPosition, + originalSize: a.originalSize, + position: a.position, + size: a.size, + } + } + var b = this, + c = this.options, + d = c.resizable, + e = this.uiDialog.css('position'), + f = 'string' == typeof d ? d : 'n,e,s,w,se,sw,ne,nw' + this.uiDialog + .resizable({ + cancel: '.ui-dialog-content', + containment: 'document', + alsoResize: this.element, + maxWidth: c.maxWidth, + maxHeight: c.maxHeight, + minWidth: c.minWidth, + minHeight: this._minHeight(), + handles: f, + start: function (c, d) { + a(this).addClass('ui-dialog-resizing'), + b._blockFrames(), + b._trigger('resizeStart', c, g(d)) + }, + resize: function (a, c) { + b._trigger('resize', a, g(c)) + }, + stop: function (d, e) { + ;(c.height = a(this).height()), + (c.width = a(this).width()), + a(this).removeClass('ui-dialog-resizing'), + b._unblockFrames(), + b._trigger('resizeStop', d, g(e)) + }, + }) + .css('position', e) + }, + _minHeight: function () { + var a = this.options + return 'auto' === a.height + ? a.minHeight + : Math.min(a.minHeight, a.height) + }, + _position: function () { + var a = this.uiDialog.is(':visible') + a || this.uiDialog.show(), + this.uiDialog.position(this.options.position), + a || this.uiDialog.hide() + }, + _setOptions: function (b) { + var e = this, + f = !1, + g = {} + a.each(b, function (a, b) { + e._setOption(a, b), a in c && (f = !0), a in d && (g[a] = b) + }), + f && (this._size(), this._position()), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', g) + }, + _setOption: function (a, b) { + var c, + d, + e = this.uiDialog + 'dialogClass' === a && + e.removeClass(this.options.dialogClass).addClass(b), + 'disabled' !== a && + (this._super(a, b), + 'appendTo' === a && this.uiDialog.appendTo(this._appendTo()), + 'buttons' === a && this._createButtons(), + 'closeText' === a && + this.uiDialogTitlebarClose.button({ label: '' + b }), + 'draggable' === a && + ((c = e.is(':data(ui-draggable)')), + c && !b && e.draggable('destroy'), + !c && b && this._makeDraggable()), + 'position' === a && this._position(), + 'resizable' === a && + ((d = e.is(':data(ui-resizable)')), + d && !b && e.resizable('destroy'), + d && 'string' == typeof b && e.resizable('option', 'handles', b), + d || b === !1 || this._makeResizable()), + 'title' === a && + this._title(this.uiDialogTitlebar.find('.ui-dialog-title'))) + }, + _size: function () { + var a, + b, + c, + d = this.options + this.element + .show() + .css({ width: 'auto', minHeight: 0, maxHeight: 'none', height: 0 }), + d.minWidth > d.width && (d.width = d.minWidth), + (a = this.uiDialog + .css({ height: 'auto', width: d.width }) + .outerHeight()), + (b = Math.max(0, d.minHeight - a)), + (c = + 'number' == typeof d.maxHeight + ? Math.max(0, d.maxHeight - a) + : 'none'), + 'auto' === d.height + ? this.element.css({ minHeight: b, maxHeight: c, height: 'auto' }) + : this.element.height(Math.max(0, d.height - a)), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', 'minHeight', this._minHeight()) + }, + _blockFrames: function () { + this.iframeBlocks = this.document.find('iframe').map(function () { + var b = a(this) + return a('
    ') + .css({ + position: 'absolute', + width: b.outerWidth(), + height: b.outerHeight(), + }) + .appendTo(b.parent()) + .offset(b.offset())[0] + }) + }, + _unblockFrames: function () { + this.iframeBlocks && + (this.iframeBlocks.remove(), delete this.iframeBlocks) + }, + _allowInteraction: function (b) { + return ( + !!a(b.target).closest('.ui-dialog').length || + !!a(b.target).closest('.ui-datepicker').length + ) + }, + _createOverlay: function () { + if (this.options.modal) { + var b = this, + c = this.widgetFullName + a.ui.dialog.overlayInstances || + this._delay(function () { + a.ui.dialog.overlayInstances && + this.document.bind('focusin.dialog', function (d) { + b._allowInteraction(d) || + (d.preventDefault(), + a('.ui-dialog:visible:last .ui-dialog-content') + .data(c) + ._focusTabbable()) + }) + }), + (this.overlay = a('
    ') + .addClass('ui-widget-overlay ui-front') + .appendTo(this._appendTo())), + this._on(this.overlay, { mousedown: '_keepFocus' }), + a.ui.dialog.overlayInstances++ + } + }, + _destroyOverlay: function () { + this.options.modal && + this.overlay && + (a.ui.dialog.overlayInstances--, + a.ui.dialog.overlayInstances || + this.document.unbind('focusin.dialog'), + this.overlay.remove(), + (this.overlay = null)) + }, + }), + (a.ui.dialog.overlayInstances = 0), + a.uiBackCompat !== !1 && + a.widget('ui.dialog', a.ui.dialog, { + _position: function () { + var e, + b = this.options.position, + c = [], + d = [0, 0] + b + ? (('string' == typeof b || ('object' == typeof b && '0' in b)) && + ((c = b.split ? b.split(' ') : [b[0], b[1]]), + 1 === c.length && (c[1] = c[0]), + a.each(['left', 'top'], function (a, b) { + ;+c[a] === c[a] && ((d[a] = c[a]), (c[a] = b)) + }), + (b = { + my: + c[0] + + (d[0] < 0 ? d[0] : '+' + d[0]) + + ' ' + + c[1] + + (d[1] < 0 ? d[1] : '+' + d[1]), + at: c.join(' '), + })), + (b = a.extend({}, a.ui.dialog.prototype.options.position, b))) + : (b = a.ui.dialog.prototype.options.position), + (e = this.uiDialog.is(':visible')), + e || this.uiDialog.show(), + this.uiDialog.position(b), + e || this.uiDialog.hide() + }, + }) + })(jQuery), + (function (a, b) { + var c = /up|down|vertical/, + d = /up|left|vertical|horizontal/ + a.effects.effect.blind = function (b, e) { + var p, + q, + r, + f = a(this), + g = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + h = a.effects.setMode(f, b.mode || 'hide'), + i = b.direction || 'up', + j = c.test(i), + k = j ? 'height' : 'width', + l = j ? 'top' : 'left', + m = d.test(i), + n = {}, + o = 'show' === h + f.parent().is('.ui-effects-wrapper') + ? a.effects.save(f.parent(), g) + : a.effects.save(f, g), + f.show(), + (p = a.effects.createWrapper(f).css({ overflow: 'hidden' })), + (q = p[k]()), + (r = parseFloat(p.css(l)) || 0), + (n[k] = o ? q : 0), + m || + (f + .css(j ? 'bottom' : 'right', 0) + .css(j ? 'top' : 'left', 'auto') + .css({ position: 'absolute' }), + (n[l] = o ? r : q + r)), + o && (p.css(k, 0), m || p.css(l, r + q)), + p.animate(n, { + duration: b.duration, + easing: b.easing, + queue: !1, + complete: function () { + 'hide' === h && f.hide(), + a.effects.restore(f, g), + a.effects.removeWrapper(f), + e() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.bounce = function (b, c) { + var q, + r, + s, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = 'hide' === f, + h = 'show' === f, + i = b.direction || 'up', + j = b.distance, + k = b.times || 5, + l = 2 * k + (h || g ? 1 : 0), + m = b.duration / l, + n = b.easing, + o = 'up' === i || 'down' === i ? 'top' : 'left', + p = 'up' === i || 'left' === i, + t = d.queue(), + u = t.length + for ( + (h || g) && e.push('opacity'), + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + j || (j = d['top' === o ? 'outerHeight' : 'outerWidth']() / 3), + h && + ((s = { opacity: 1 }), + (s[o] = 0), + d + .css('opacity', 0) + .css(o, p ? 2 * -j : 2 * j) + .animate(s, m, n)), + g && (j /= Math.pow(2, k - 1)), + s = {}, + s[o] = 0, + q = 0; + q < k; + q++ + ) + (r = {}), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n).animate(s, m, n), + (j = g ? 2 * j : j / 2) + g && + ((r = { opacity: 0 }), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n)), + d.queue(function () { + g && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + u > 1 && t.splice.apply(t, [1, 0].concat(t.splice(u, l + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.clip = function (b, c) { + var m, + n, + o, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'vertical', + i = 'vertical' === h, + j = i ? 'height' : 'width', + k = i ? 'top' : 'left', + l = {} + a.effects.save(d, e), + d.show(), + (m = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (n = 'IMG' === d[0].tagName ? m : d), + (o = n[j]()), + g && (n.css(j, 0), n.css(k, o / 2)), + (l[j] = g ? o : 0), + (l[k] = g ? 0 : o / 2), + n.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + g || d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.drop = function (b, c) { + var l, + d = a(this), + e = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'opacity', + 'height', + 'width', + ], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h ? 'pos' : 'neg', + k = { opacity: g ? 1 : 0 } + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + (l = + b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0) / 2), + g && d.css('opacity', 0).css(i, 'pos' === j ? -l : l), + (k[i] = + (g ? ('pos' === j ? '+=' : '-=') : 'pos' === j ? '-=' : '+=') + l), + d.animate(k, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.explode = function (b, c) { + function s() { + l.push(this), l.length === d * e && t() + } + function t() { + f.css({ visibility: 'visible' }), a(l).remove(), h || f.hide(), c() + } + var m, + n, + o, + p, + q, + r, + d = b.pieces ? Math.round(Math.sqrt(b.pieces)) : 3, + e = d, + f = a(this), + g = a.effects.setMode(f, b.mode || 'hide'), + h = 'show' === g, + i = f.show().css('visibility', 'hidden').offset(), + j = Math.ceil(f.outerWidth() / e), + k = Math.ceil(f.outerHeight() / d), + l = [] + for (m = 0; m < d; m++) + for (p = i.top + m * k, r = m - (d - 1) / 2, n = 0; n < e; n++) + (o = i.left + n * j), + (q = n - (e - 1) / 2), + f + .clone() + .appendTo('body') + .wrap('
    ') + .css({ + position: 'absolute', + visibility: 'visible', + left: -n * j, + top: -m * k, + }) + .parent() + .addClass('ui-effects-explode') + .css({ + position: 'absolute', + overflow: 'hidden', + width: j, + height: k, + left: o + (h ? q * j : 0), + top: p + (h ? r * k : 0), + opacity: h ? 0 : 1, + }) + .animate( + { + left: o + (h ? 0 : q * j), + top: p + (h ? 0 : r * k), + opacity: h ? 1 : 0, + }, + b.duration || 500, + b.easing, + s + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fade = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'toggle') + d.animate( + { opacity: e }, + { queue: !1, duration: b.duration, easing: b.easing, complete: c } + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fold = function (b, c) { + var o, + p, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = 'hide' === f, + i = b.size || 15, + j = /([0-9]+)%/.exec(i), + k = !!b.horizFirst, + l = g !== k, + m = l ? ['width', 'height'] : ['height', 'width'], + n = b.duration / 2, + q = {}, + r = {} + a.effects.save(d, e), + d.show(), + (o = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (p = l ? [o.width(), o.height()] : [o.height(), o.width()]), + j && (i = (parseInt(j[1], 10) / 100) * p[h ? 0 : 1]), + g && o.css(k ? { height: 0, width: i } : { height: i, width: 0 }), + (q[m[0]] = g ? p[0] : i), + (r[m[1]] = g ? p[1] : 0), + o.animate(q, n, b.easing).animate(r, n, b.easing, function () { + h && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.highlight = function (b, c) { + var d = a(this), + e = ['backgroundImage', 'backgroundColor', 'opacity'], + f = a.effects.setMode(d, b.mode || 'show'), + g = { backgroundColor: d.css('backgroundColor') } + 'hide' === f && (g.opacity = 0), + a.effects.save(d, e), + d + .show() + .css({ + backgroundImage: 'none', + backgroundColor: b.color || '#ffff99', + }) + .animate(g, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), a.effects.restore(d, e), c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.pulsate = function (b, c) { + var n, + d = a(this), + e = a.effects.setMode(d, b.mode || 'show'), + f = 'show' === e, + g = 'hide' === e, + h = f || 'hide' === e, + i = 2 * (b.times || 5) + (h ? 1 : 0), + j = b.duration / i, + k = 0, + l = d.queue(), + m = l.length + for ( + (!f && d.is(':visible')) || (d.css('opacity', 0).show(), (k = 1)), + n = 1; + n < i; + n++ + ) + d.animate({ opacity: k }, j, b.easing), (k = 1 - k) + d.animate({ opacity: k }, j, b.easing), + d.queue(function () { + g && d.hide(), c() + }), + m > 1 && l.splice.apply(l, [1, 0].concat(l.splice(m, i + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + ;(a.effects.effect.puff = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'hide'), + f = 'hide' === e, + g = parseInt(b.percent, 10) || 150, + h = g / 100, + i = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + } + a.extend(b, { + effect: 'scale', + queue: !1, + fade: !0, + mode: e, + complete: c, + percent: f ? g : 100, + from: f + ? i + : { + height: i.height * h, + width: i.width * h, + outerHeight: i.outerHeight * h, + outerWidth: i.outerWidth * h, + }, + }), + d.effect(b) + }), + (a.effects.effect.scale = function (b, c) { + var d = a(this), + e = a.extend(!0, {}, b), + f = a.effects.setMode(d, b.mode || 'effect'), + g = + parseInt(b.percent, 10) || + (0 === parseInt(b.percent, 10) ? 0 : 'hide' === f ? 0 : 100), + h = b.direction || 'both', + i = b.origin, + j = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + }, + k = { + y: 'horizontal' !== h ? g / 100 : 1, + x: 'vertical' !== h ? g / 100 : 1, + } + ;(e.effect = 'size'), + (e.queue = !1), + (e.complete = c), + 'effect' !== f && + ((e.origin = i || ['middle', 'center']), (e.restore = !0)), + (e.from = + b.from || + ('show' === f + ? { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + : j)), + (e.to = { + height: j.height * k.y, + width: j.width * k.x, + outerHeight: j.outerHeight * k.y, + outerWidth: j.outerWidth * k.x, + }), + e.fade && + ('show' === f && ((e.from.opacity = 0), (e.to.opacity = 1)), + 'hide' === f && ((e.from.opacity = 1), (e.to.opacity = 0))), + d.effect(e) + }), + (a.effects.effect.size = function (b, c) { + var d, + e, + f, + g = a(this), + h = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'width', + 'height', + 'overflow', + 'opacity', + ], + i = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'overflow', + 'opacity', + ], + j = ['width', 'height', 'overflow'], + k = ['fontSize'], + l = [ + 'borderTopWidth', + 'borderBottomWidth', + 'paddingTop', + 'paddingBottom', + ], + m = [ + 'borderLeftWidth', + 'borderRightWidth', + 'paddingLeft', + 'paddingRight', + ], + n = a.effects.setMode(g, b.mode || 'effect'), + o = b.restore || 'effect' !== n, + p = b.scale || 'both', + q = b.origin || ['middle', 'center'], + r = g.css('position'), + s = o ? h : i, + t = { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + 'show' === n && g.show(), + (d = { + height: g.height(), + width: g.width(), + outerHeight: g.outerHeight(), + outerWidth: g.outerWidth(), + }), + 'toggle' === b.mode && 'show' === n + ? ((g.from = b.to || t), (g.to = b.from || d)) + : ((g.from = b.from || ('show' === n ? t : d)), + (g.to = b.to || ('hide' === n ? t : d))), + (f = { + from: { y: g.from.height / d.height, x: g.from.width / d.width }, + to: { y: g.to.height / d.height, x: g.to.width / d.width }, + }), + ('box' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(l)), + (g.from = a.effects.setTransition(g, l, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, l, f.to.y, g.to))), + f.from.x !== f.to.x && + ((s = s.concat(m)), + (g.from = a.effects.setTransition(g, m, f.from.x, g.from)), + (g.to = a.effects.setTransition(g, m, f.to.x, g.to)))), + ('content' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(k).concat(j)), + (g.from = a.effects.setTransition(g, k, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, k, f.to.y, g.to)))), + a.effects.save(g, s), + g.show(), + a.effects.createWrapper(g), + g.css('overflow', 'hidden').css(g.from), + q && + ((e = a.effects.getBaseline(q, d)), + (g.from.top = (d.outerHeight - g.outerHeight()) * e.y), + (g.from.left = (d.outerWidth - g.outerWidth()) * e.x), + (g.to.top = (d.outerHeight - g.to.outerHeight) * e.y), + (g.to.left = (d.outerWidth - g.to.outerWidth) * e.x)), + g.css(g.from), + ('content' !== p && 'both' !== p) || + ((l = l.concat(['marginTop', 'marginBottom']).concat(k)), + (m = m.concat(['marginLeft', 'marginRight'])), + (j = h.concat(l).concat(m)), + g.find('*[width]').each(function () { + var c = a(this), + d = { + height: c.height(), + width: c.width(), + outerHeight: c.outerHeight(), + outerWidth: c.outerWidth(), + } + o && a.effects.save(c, j), + (c.from = { + height: d.height * f.from.y, + width: d.width * f.from.x, + outerHeight: d.outerHeight * f.from.y, + outerWidth: d.outerWidth * f.from.x, + }), + (c.to = { + height: d.height * f.to.y, + width: d.width * f.to.x, + outerHeight: d.height * f.to.y, + outerWidth: d.width * f.to.x, + }), + f.from.y !== f.to.y && + ((c.from = a.effects.setTransition(c, l, f.from.y, c.from)), + (c.to = a.effects.setTransition(c, l, f.to.y, c.to))), + f.from.x !== f.to.x && + ((c.from = a.effects.setTransition(c, m, f.from.x, c.from)), + (c.to = a.effects.setTransition(c, m, f.to.x, c.to))), + c.css(c.from), + c.animate(c.to, b.duration, b.easing, function () { + o && a.effects.restore(c, j) + }) + })), + g.animate(g.to, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 0 === g.to.opacity && g.css('opacity', g.from.opacity), + 'hide' === n && g.hide(), + a.effects.restore(g, s), + o || + ('static' === r + ? g.css({ + position: 'relative', + top: g.to.top, + left: g.to.left, + }) + : a.each(['top', 'left'], function (a, b) { + g.css(b, function (b, c) { + var d = parseInt(c, 10), + e = a ? g.to.left : g.to.top + return 'auto' === c ? e + 'px' : d + e + 'px' + }) + })), + a.effects.removeWrapper(g), + c() + }, + }) + }) + })(jQuery), + (function (a, b) { + a.effects.effect.shake = function (b, c) { + var q, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = b.direction || 'left', + h = b.distance || 20, + i = b.times || 3, + j = 2 * i + 1, + k = Math.round(b.duration / j), + l = 'up' === g || 'down' === g ? 'top' : 'left', + m = 'up' === g || 'left' === g, + n = {}, + o = {}, + p = {}, + r = d.queue(), + s = r.length + for ( + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + n[l] = (m ? '-=' : '+=') + h, + o[l] = (m ? '+=' : '-=') + 2 * h, + p[l] = (m ? '-=' : '+=') + 2 * h, + d.animate(n, k, b.easing), + q = 1; + q < i; + q++ + ) + d.animate(o, k, b.easing).animate(p, k, b.easing) + d + .animate(o, k, b.easing) + .animate(n, k / 2, b.easing) + .queue(function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + s > 1 && r.splice.apply(r, [1, 0].concat(r.splice(s, j + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.slide = function (b, c) { + var k, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'width', 'height'], + f = a.effects.setMode(d, b.mode || 'show'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h, + l = {} + a.effects.save(d, e), + d.show(), + (k = b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0)), + a.effects.createWrapper(d).css({ overflow: 'hidden' }), + g && d.css(i, j ? (isNaN(k) ? '-' + k : -k) : k), + (l[i] = (g ? (j ? '+=' : '-=') : j ? '-=' : '+=') + k), + d.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.transfer = function (b, c) { + var d = a(this), + e = a(b.to), + f = 'fixed' === e.css('position'), + g = a('body'), + h = f ? g.scrollTop() : 0, + i = f ? g.scrollLeft() : 0, + j = e.offset(), + k = { + top: j.top - h, + left: j.left - i, + height: e.innerHeight(), + width: e.innerWidth(), + }, + l = d.offset(), + m = a("
    ") + .appendTo(document.body) + .addClass(b.className) + .css({ + top: l.top - h, + left: l.left - i, + height: d.innerHeight(), + width: d.innerWidth(), + position: f ? 'fixed' : 'absolute', + }) + .animate(k, b.duration, b.easing, function () { + m.remove(), c() + }) + } + })(jQuery), + (function (a, b) { + a.widget('ui.menu', { + version: '1.10.3', + defaultElement: '
      ', + delay: 300, + options: { + icons: { submenu: 'ui-icon-carat-1-e' }, + menus: 'ul', + position: { my: 'left top', at: 'right top' }, + role: 'menu', + blur: null, + focus: null, + select: null, + }, + _create: function () { + ;(this.activeMenu = this.element), + (this.mouseHandled = !1), + this.element + .uniqueId() + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .toggleClass( + 'ui-menu-icons', + !!this.element.find('.ui-icon').length + ) + .attr({ role: this.options.role, tabIndex: 0 }) + .bind( + 'click' + this.eventNamespace, + a.proxy(function (a) { + this.options.disabled && a.preventDefault() + }, this) + ), + this.options.disabled && + this.element + .addClass('ui-state-disabled') + .attr('aria-disabled', 'true'), + this._on({ + 'mousedown .ui-menu-item > a': function (a) { + a.preventDefault() + }, + 'click .ui-state-disabled > a': function (a) { + a.preventDefault() + }, + 'click .ui-menu-item:has(a)': function (b) { + var c = a(b.target).closest('.ui-menu-item') + !this.mouseHandled && + c.not('.ui-state-disabled').length && + ((this.mouseHandled = !0), + this.select(b), + c.has('.ui-menu').length + ? this.expand(b) + : this.element.is(':focus') || + (this.element.trigger('focus', [!0]), + this.active && + 1 === this.active.parents('.ui-menu').length && + clearTimeout(this.timer))) + }, + 'mouseenter .ui-menu-item': function (b) { + var c = a(b.currentTarget) + c + .siblings() + .children('.ui-state-active') + .removeClass('ui-state-active'), + this.focus(b, c) + }, + mouseleave: 'collapseAll', + 'mouseleave .ui-menu': 'collapseAll', + focus: function (a, b) { + var c = + this.active || this.element.children('.ui-menu-item').eq(0) + b || this.focus(a, c) + }, + blur: function (b) { + this._delay(function () { + a.contains(this.element[0], this.document[0].activeElement) || + this.collapseAll(b) + }) + }, + keydown: '_keydown', + }), + this.refresh(), + this._on(this.document, { + click: function (b) { + a(b.target).closest('.ui-menu').length || this.collapseAll(b), + (this.mouseHandled = !1) + }, + }) + }, + _destroy: function () { + this.element + .removeAttr('aria-activedescendant') + .find('.ui-menu') + .addBack() + .removeClass( + 'ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons' + ) + .removeAttr('role') + .removeAttr('tabIndex') + .removeAttr('aria-labelledby') + .removeAttr('aria-expanded') + .removeAttr('aria-hidden') + .removeAttr('aria-disabled') + .removeUniqueId() + .show(), + this.element + .find('.ui-menu-item') + .removeClass('ui-menu-item') + .removeAttr('role') + .removeAttr('aria-disabled') + .children('a') + .removeUniqueId() + .removeClass('ui-corner-all ui-state-hover') + .removeAttr('tabIndex') + .removeAttr('role') + .removeAttr('aria-haspopup') + .children() + .each(function () { + var b = a(this) + b.data('ui-menu-submenu-carat') && b.remove() + }), + this.element + .find('.ui-menu-divider') + .removeClass('ui-menu-divider ui-widget-content') + }, + _keydown: function (b) { + function i(a) { + return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&') + } + var c, + d, + e, + f, + g, + h = !0 + switch (b.keyCode) { + case a.ui.keyCode.PAGE_UP: + this.previousPage(b) + break + case a.ui.keyCode.PAGE_DOWN: + this.nextPage(b) + break + case a.ui.keyCode.HOME: + this._move('first', 'first', b) + break + case a.ui.keyCode.END: + this._move('last', 'last', b) + break + case a.ui.keyCode.UP: + this.previous(b) + break + case a.ui.keyCode.DOWN: + this.next(b) + break + case a.ui.keyCode.LEFT: + this.collapse(b) + break + case a.ui.keyCode.RIGHT: + this.active && + !this.active.is('.ui-state-disabled') && + this.expand(b) + break + case a.ui.keyCode.ENTER: + case a.ui.keyCode.SPACE: + this._activate(b) + break + case a.ui.keyCode.ESCAPE: + this.collapse(b) + break + default: + ;(h = !1), + (d = this.previousFilter || ''), + (e = String.fromCharCode(b.keyCode)), + (f = !1), + clearTimeout(this.filterTimer), + e === d ? (f = !0) : (e = d + e), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + })), + (c = + f && c.index(this.active.next()) !== -1 + ? this.active.nextAll('.ui-menu-item') + : c), + c.length || + ((e = String.fromCharCode(b.keyCode)), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + }))), + c.length + ? (this.focus(b, c), + c.length > 1 + ? ((this.previousFilter = e), + (this.filterTimer = this._delay(function () { + delete this.previousFilter + }, 1e3))) + : delete this.previousFilter) + : delete this.previousFilter + } + h && b.preventDefault() + }, + _activate: function (a) { + this.active.is('.ui-state-disabled') || + (this.active.children("a[aria-haspopup='true']").length + ? this.expand(a) + : this.select(a)) + }, + refresh: function () { + var b, + c = this.options.icons.submenu, + d = this.element.find(this.options.menus) + d + .filter(':not(.ui-menu)') + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .hide() + .attr({ + role: this.options.role, + 'aria-hidden': 'true', + 'aria-expanded': 'false', + }) + .each(function () { + var b = a(this), + d = b.prev('a'), + e = a('') + .addClass('ui-menu-icon ui-icon ' + c) + .data('ui-menu-submenu-carat', !0) + d.attr('aria-haspopup', 'true').prepend(e), + b.attr('aria-labelledby', d.attr('id')) + }), + (b = d.add(this.element)), + b + .children(':not(.ui-menu-item):has(a)') + .addClass('ui-menu-item') + .attr('role', 'presentation') + .children('a') + .uniqueId() + .addClass('ui-corner-all') + .attr({ tabIndex: -1, role: this._itemRole() }), + b.children(':not(.ui-menu-item)').each(function () { + var b = a(this) + ;/[^\-\u2014\u2013\s]/.test(b.text()) || + b.addClass('ui-widget-content ui-menu-divider') + }), + b.children('.ui-state-disabled').attr('aria-disabled', 'true'), + this.active && + !a.contains(this.element[0], this.active[0]) && + this.blur() + }, + _itemRole: function () { + return { menu: 'menuitem', listbox: 'option' }[this.options.role] + }, + _setOption: function (a, b) { + 'icons' === a && + this.element + .find('.ui-menu-icon') + .removeClass(this.options.icons.submenu) + .addClass(b.submenu), + this._super(a, b) + }, + focus: function (a, b) { + var c, d + this.blur(a, a && 'focus' === a.type), + this._scrollIntoView(b), + (this.active = b.first()), + (d = this.active.children('a').addClass('ui-state-focus')), + this.options.role && + this.element.attr('aria-activedescendant', d.attr('id')), + this.active + .parent() + .closest('.ui-menu-item') + .children('a:first') + .addClass('ui-state-active'), + a && 'keydown' === a.type + ? this._close() + : (this.timer = this._delay(function () { + this._close() + }, this.delay)), + (c = b.children('.ui-menu')), + c.length && /^mouse/.test(a.type) && this._startOpening(c), + (this.activeMenu = b.parent()), + this._trigger('focus', a, { item: b }) + }, + _scrollIntoView: function (b) { + var c, d, e, f, g, h + this._hasScroll() && + ((c = parseFloat(a.css(this.activeMenu[0], 'borderTopWidth')) || 0), + (d = parseFloat(a.css(this.activeMenu[0], 'paddingTop')) || 0), + (e = b.offset().top - this.activeMenu.offset().top - c - d), + (f = this.activeMenu.scrollTop()), + (g = this.activeMenu.height()), + (h = b.height()), + e < 0 + ? this.activeMenu.scrollTop(f + e) + : e + h > g && this.activeMenu.scrollTop(f + e - g + h)) + }, + blur: function (a, b) { + b || clearTimeout(this.timer), + this.active && + (this.active.children('a').removeClass('ui-state-focus'), + (this.active = null), + this._trigger('blur', a, { item: this.active })) + }, + _startOpening: function (a) { + clearTimeout(this.timer), + 'true' === a.attr('aria-hidden') && + (this.timer = this._delay(function () { + this._close(), this._open(a) + }, this.delay)) + }, + _open: function (b) { + var c = a.extend({ of: this.active }, this.options.position) + clearTimeout(this.timer), + this.element + .find('.ui-menu') + .not(b.parents('.ui-menu')) + .hide() + .attr('aria-hidden', 'true'), + b + .show() + .removeAttr('aria-hidden') + .attr('aria-expanded', 'true') + .position(c) + }, + collapseAll: function (b, c) { + clearTimeout(this.timer), + (this.timer = this._delay(function () { + var d = c + ? this.element + : a(b && b.target).closest(this.element.find('.ui-menu')) + d.length || (d = this.element), + this._close(d), + this.blur(b), + (this.activeMenu = d) + }, this.delay)) + }, + _close: function (a) { + a || (a = this.active ? this.active.parent() : this.element), + a + .find('.ui-menu') + .hide() + .attr('aria-hidden', 'true') + .attr('aria-expanded', 'false') + .end() + .find('a.ui-state-active') + .removeClass('ui-state-active') + }, + collapse: function (a) { + var b = + this.active && + this.active.parent().closest('.ui-menu-item', this.element) + b && b.length && (this._close(), this.focus(a, b)) + }, + expand: function (a) { + var b = + this.active && + this.active.children('.ui-menu ').children('.ui-menu-item').first() + b && + b.length && + (this._open(b.parent()), + this._delay(function () { + this.focus(a, b) + })) + }, + next: function (a) { + this._move('next', 'first', a) + }, + previous: function (a) { + this._move('prev', 'last', a) + }, + isFirstItem: function () { + return this.active && !this.active.prevAll('.ui-menu-item').length + }, + isLastItem: function () { + return this.active && !this.active.nextAll('.ui-menu-item').length + }, + _move: function (a, b, c) { + var d + this.active && + (d = + 'first' === a || 'last' === a + ? this.active['first' === a ? 'prevAll' : 'nextAll']( + '.ui-menu-item' + ).eq(-1) + : this.active[a + 'All']('.ui-menu-item').eq(0)), + (d && d.length && this.active) || + (d = this.activeMenu.children('.ui-menu-item')[b]()), + this.focus(c, d) + }, + nextPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isLastItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.nextAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d - e < 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu + .children('.ui-menu-item') + [this.active ? 'last' : 'first']() + )) + ) + : void this.next(b) + }, + previousPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isFirstItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.prevAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d + e > 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu.children('.ui-menu-item').first() + )) + ) + : void this.next(b) + }, + _hasScroll: function () { + return this.element.outerHeight() < this.element.prop('scrollHeight') + }, + select: function (b) { + this.active = this.active || a(b.target).closest('.ui-menu-item') + var c = { item: this.active } + this.active.has('.ui-menu').length || this.collapseAll(b, !0), + this._trigger('select', b, c) + }, + }) + })(jQuery), + (function (a, b) { + function m(a, b, c) { + return [ + parseFloat(a[0]) * (k.test(a[0]) ? b / 100 : 1), + parseFloat(a[1]) * (k.test(a[1]) ? c / 100 : 1), + ] + } + function n(b, c) { + return parseInt(a.css(b, c), 10) || 0 + } + function o(b) { + var c = b[0] + return 9 === c.nodeType + ? { width: b.width(), height: b.height(), offset: { top: 0, left: 0 } } + : a.isWindow(c) + ? { + width: b.width(), + height: b.height(), + offset: { top: b.scrollTop(), left: b.scrollLeft() }, + } + : c.preventDefault + ? { width: 0, height: 0, offset: { top: c.pageY, left: c.pageX } } + : { width: b.outerWidth(), height: b.outerHeight(), offset: b.offset() } + } + a.ui = a.ui || {} + var c, + d = Math.max, + e = Math.abs, + f = Math.round, + g = /left|center|right/, + h = /top|center|bottom/, + i = /[\+\-]\d+(\.[\d]+)?%?/, + j = /^\w+/, + k = /%$/, + l = a.fn.position + ;(a.position = { + scrollbarWidth: function () { + if (c !== b) return c + var d, + e, + f = a( + "
      " + ), + g = f.children()[0] + return ( + a('body').append(f), + (d = g.offsetWidth), + f.css('overflow', 'scroll'), + (e = g.offsetWidth), + d === e && (e = f[0].clientWidth), + f.remove(), + (c = d - e) + ) + }, + getScrollInfo: function (b) { + var c = b.isWindow ? '' : b.element.css('overflow-x'), + d = b.isWindow ? '' : b.element.css('overflow-y'), + e = + 'scroll' === c || + ('auto' === c && b.width < b.element[0].scrollWidth), + f = + 'scroll' === d || + ('auto' === d && b.height < b.element[0].scrollHeight) + return { + width: f ? a.position.scrollbarWidth() : 0, + height: e ? a.position.scrollbarWidth() : 0, + } + }, + getWithinInfo: function (b) { + var c = a(b || window), + d = a.isWindow(c[0]) + return { + element: c, + isWindow: d, + offset: c.offset() || { left: 0, top: 0 }, + scrollLeft: c.scrollLeft(), + scrollTop: c.scrollTop(), + width: d ? c.width() : c.outerWidth(), + height: d ? c.height() : c.outerHeight(), + } + }, + }), + (a.fn.position = function (b) { + if (!b || !b.of) return l.apply(this, arguments) + b = a.extend({}, b) + var c, + k, + p, + q, + r, + s, + t = a(b.of), + u = a.position.getWithinInfo(b.within), + v = a.position.getScrollInfo(u), + w = (b.collision || 'flip').split(' '), + x = {} + return ( + (s = o(t)), + t[0].preventDefault && (b.at = 'left top'), + (k = s.width), + (p = s.height), + (q = s.offset), + (r = a.extend({}, q)), + a.each(['my', 'at'], function () { + var c, + d, + a = (b[this] || '').split(' ') + 1 === a.length && + (a = g.test(a[0]) + ? a.concat(['center']) + : h.test(a[0]) + ? ['center'].concat(a) + : ['center', 'center']), + (a[0] = g.test(a[0]) ? a[0] : 'center'), + (a[1] = h.test(a[1]) ? a[1] : 'center'), + (c = i.exec(a[0])), + (d = i.exec(a[1])), + (x[this] = [c ? c[0] : 0, d ? d[0] : 0]), + (b[this] = [j.exec(a[0])[0], j.exec(a[1])[0]]) + }), + 1 === w.length && (w[1] = w[0]), + 'right' === b.at[0] + ? (r.left += k) + : 'center' === b.at[0] && (r.left += k / 2), + 'bottom' === b.at[1] + ? (r.top += p) + : 'center' === b.at[1] && (r.top += p / 2), + (c = m(x.at, k, p)), + (r.left += c[0]), + (r.top += c[1]), + this.each(function () { + var g, + h, + i = a(this), + j = i.outerWidth(), + l = i.outerHeight(), + o = n(this, 'marginLeft'), + s = n(this, 'marginTop'), + y = j + o + n(this, 'marginRight') + v.width, + z = l + s + n(this, 'marginBottom') + v.height, + A = a.extend({}, r), + B = m(x.my, i.outerWidth(), i.outerHeight()) + 'right' === b.my[0] + ? (A.left -= j) + : 'center' === b.my[0] && (A.left -= j / 2), + 'bottom' === b.my[1] + ? (A.top -= l) + : 'center' === b.my[1] && (A.top -= l / 2), + (A.left += B[0]), + (A.top += B[1]), + a.support.offsetFractions || + ((A.left = f(A.left)), (A.top = f(A.top))), + (g = { marginLeft: o, marginTop: s }), + a.each(['left', 'top'], function (d, e) { + a.ui.position[w[d]] && + a.ui.position[w[d]][e](A, { + targetWidth: k, + targetHeight: p, + elemWidth: j, + elemHeight: l, + collisionPosition: g, + collisionWidth: y, + collisionHeight: z, + offset: [c[0] + B[0], c[1] + B[1]], + my: b.my, + at: b.at, + within: u, + elem: i, + }) + }), + b.using && + (h = function (a) { + var c = q.left - A.left, + f = c + k - j, + g = q.top - A.top, + h = g + p - l, + m = { + target: { + element: t, + left: q.left, + top: q.top, + width: k, + height: p, + }, + element: { + element: i, + left: A.left, + top: A.top, + width: j, + height: l, + }, + horizontal: f < 0 ? 'left' : c > 0 ? 'right' : 'center', + vertical: h < 0 ? 'top' : g > 0 ? 'bottom' : 'middle', + } + k < j && e(c + f) < k && (m.horizontal = 'center'), + p < l && e(g + h) < p && (m.vertical = 'middle'), + d(e(c), e(f)) > d(e(g), e(h)) + ? (m.important = 'horizontal') + : (m.important = 'vertical'), + b.using.call(this, a, m) + }), + i.offset(a.extend(A, { using: h })) + }) + ) + }), + (a.ui.position = { + fit: { + left: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollLeft : c.offset.left, + f = c.width, + g = a.left - b.collisionPosition.marginLeft, + h = e - g, + i = g + b.collisionWidth - f - e + b.collisionWidth > f + ? h > 0 && i <= 0 + ? ((j = a.left + h + b.collisionWidth - f - e), + (a.left += h - j)) + : i > 0 && h <= 0 + ? (a.left = e) + : h > i + ? (a.left = e + f - b.collisionWidth) + : (a.left = e) + : h > 0 + ? (a.left += h) + : i > 0 + ? (a.left -= i) + : (a.left = d(a.left - g, a.left)) + }, + top: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollTop : c.offset.top, + f = b.within.height, + g = a.top - b.collisionPosition.marginTop, + h = e - g, + i = g + b.collisionHeight - f - e + b.collisionHeight > f + ? h > 0 && i <= 0 + ? ((j = a.top + h + b.collisionHeight - f - e), + (a.top += h - j)) + : i > 0 && h <= 0 + ? (a.top = e) + : h > i + ? (a.top = e + f - b.collisionHeight) + : (a.top = e) + : h > 0 + ? (a.top += h) + : i > 0 + ? (a.top -= i) + : (a.top = d(a.top - g, a.top)) + }, + }, + flip: { + left: function (a, b) { + var n, + o, + c = b.within, + d = c.offset.left + c.scrollLeft, + f = c.width, + g = c.isWindow ? c.scrollLeft : c.offset.left, + h = a.left - b.collisionPosition.marginLeft, + i = h - g, + j = h + b.collisionWidth - f - g, + k = + 'left' === b.my[0] + ? -b.elemWidth + : 'right' === b.my[0] + ? b.elemWidth + : 0, + l = + 'left' === b.at[0] + ? b.targetWidth + : 'right' === b.at[0] + ? -b.targetWidth + : 0, + m = -2 * b.offset[0] + i < 0 + ? ((n = a.left + k + l + m + b.collisionWidth - f - d), + (n < 0 || n < e(i)) && (a.left += k + l + m)) + : j > 0 && + ((o = a.left - b.collisionPosition.marginLeft + k + l + m - g), + (o > 0 || e(o) < j) && (a.left += k + l + m)) + }, + top: function (a, b) { + var o, + p, + c = b.within, + d = c.offset.top + c.scrollTop, + f = c.height, + g = c.isWindow ? c.scrollTop : c.offset.top, + h = a.top - b.collisionPosition.marginTop, + i = h - g, + j = h + b.collisionHeight - f - g, + k = 'top' === b.my[1], + l = k ? -b.elemHeight : 'bottom' === b.my[1] ? b.elemHeight : 0, + m = + 'top' === b.at[1] + ? b.targetHeight + : 'bottom' === b.at[1] + ? -b.targetHeight + : 0, + n = -2 * b.offset[1] + i < 0 + ? ((p = a.top + l + m + n + b.collisionHeight - f - d), + a.top + l + m + n > i && + (p < 0 || p < e(i)) && + (a.top += l + m + n)) + : j > 0 && + ((o = a.top - b.collisionPosition.marginTop + l + m + n - g), + a.top + l + m + n > j && + (o > 0 || e(o) < j) && + (a.top += l + m + n)) + }, + }, + flipfit: { + left: function () { + a.ui.position.flip.left.apply(this, arguments), + a.ui.position.fit.left.apply(this, arguments) + }, + top: function () { + a.ui.position.flip.top.apply(this, arguments), + a.ui.position.fit.top.apply(this, arguments) + }, + }, + }), + (function () { + var b, + c, + d, + e, + f, + g = document.getElementsByTagName('body')[0], + h = document.createElement('div') + ;(b = document.createElement(g ? 'div' : 'body')), + (d = { + visibility: 'hidden', + width: 0, + height: 0, + border: 0, + margin: 0, + background: 'none', + }), + g && + a.extend(d, { + position: 'absolute', + left: '-1000px', + top: '-1000px', + }) + for (f in d) b.style[f] = d[f] + b.appendChild(h), + (c = g || document.documentElement), + c.insertBefore(b, c.firstChild), + (h.style.cssText = 'position: absolute; left: 10.7432222px;'), + (e = a(h).offset().left), + (a.support.offsetFractions = e > 10 && e < 11), + (b.innerHTML = ''), + c.removeChild(b) + })() + })(jQuery), + (function (a, b) { + a.widget('ui.progressbar', { + version: '1.10.3', + options: { max: 100, value: 0, change: null, complete: null }, + min: 0, + _create: function () { + ;(this.oldValue = this.options.value = this._constrainedValue()), + this.element + .addClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .attr({ role: 'progressbar', 'aria-valuemin': this.min }), + (this.valueDiv = a( + "
      " + ).appendTo(this.element)), + this._refreshValue() + }, + _destroy: function () { + this.element + .removeClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.valueDiv.remove() + }, + value: function (a) { + return a === b + ? this.options.value + : ((this.options.value = this._constrainedValue(a)), + void this._refreshValue()) + }, + _constrainedValue: function (a) { + return ( + a === b && (a = this.options.value), + (this.indeterminate = a === !1), + 'number' != typeof a && (a = 0), + !this.indeterminate && + Math.min(this.options.max, Math.max(this.min, a)) + ) + }, + _setOptions: function (a) { + var b = a.value + delete a.value, + this._super(a), + (this.options.value = this._constrainedValue(b)), + this._refreshValue() + }, + _setOption: function (a, b) { + 'max' === a && (b = Math.max(this.min, b)), this._super(a, b) + }, + _percentage: function () { + return this.indeterminate + ? 100 + : (100 * (this.options.value - this.min)) / + (this.options.max - this.min) + }, + _refreshValue: function () { + var b = this.options.value, + c = this._percentage() + this.valueDiv + .toggle(this.indeterminate || b > this.min) + .toggleClass('ui-corner-right', b === this.options.max) + .width(c.toFixed(0) + '%'), + this.element.toggleClass( + 'ui-progressbar-indeterminate', + this.indeterminate + ), + this.indeterminate + ? (this.element.removeAttr('aria-valuenow'), + this.overlayDiv || + (this.overlayDiv = a( + "
      " + ).appendTo(this.valueDiv))) + : (this.element.attr({ + 'aria-valuemax': this.options.max, + 'aria-valuenow': b, + }), + this.overlayDiv && + (this.overlayDiv.remove(), (this.overlayDiv = null))), + this.oldValue !== b && ((this.oldValue = b), this._trigger('change')), + b === this.options.max && this._trigger('complete') + }, + }) + })(jQuery), + (function (a, b) { + var c = 5 + a.widget('ui.slider', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'slide', + options: { + animate: !1, + distance: 0, + max: 100, + min: 0, + orientation: 'horizontal', + range: !1, + step: 1, + value: 0, + values: null, + change: null, + slide: null, + start: null, + stop: null, + }, + _create: function () { + ;(this._keySliding = !1), + (this._mouseSliding = !1), + (this._animateOff = !0), + (this._handleIndex = null), + this._detectOrientation(), + this._mouseInit(), + this.element.addClass( + 'ui-slider ui-slider-' + + this.orientation + + ' ui-widget ui-widget-content ui-corner-all' + ), + this._refresh(), + this._setOption('disabled', this.options.disabled), + (this._animateOff = !1) + }, + _refresh: function () { + this._createRange(), + this._createHandles(), + this._setupEvents(), + this._refreshValue() + }, + _createHandles: function () { + var b, + c, + d = this.options, + e = this.element + .find('.ui-slider-handle') + .addClass('ui-state-default ui-corner-all'), + f = + "", + g = [] + for ( + c = (d.values && d.values.length) || 1, + e.length > c && (e.slice(c).remove(), (e = e.slice(0, c))), + b = e.length; + b < c; + b++ + ) + g.push(f) + ;(this.handles = e.add(a(g.join('')).appendTo(this.element))), + (this.handle = this.handles.eq(0)), + this.handles.each(function (b) { + a(this).data('ui-slider-handle-index', b) + }) + }, + _createRange: function () { + var b = this.options, + c = '' + b.range + ? (b.range === !0 && + (b.values + ? b.values.length && 2 !== b.values.length + ? (b.values = [b.values[0], b.values[0]]) + : a.isArray(b.values) && (b.values = b.values.slice(0)) + : (b.values = [this._valueMin(), this._valueMin()])), + this.range && this.range.length + ? this.range + .removeClass('ui-slider-range-min ui-slider-range-max') + .css({ left: '', bottom: '' }) + : ((this.range = a('
      ').appendTo(this.element)), + (c = 'ui-slider-range ui-widget-header ui-corner-all')), + this.range.addClass( + c + + ('min' === b.range || 'max' === b.range + ? ' ui-slider-range-' + b.range + : '') + )) + : (this.range = a([])) + }, + _setupEvents: function () { + var a = this.handles.add(this.range).filter('a') + this._off(a), + this._on(a, this._handleEvents), + this._hoverable(a), + this._focusable(a) + }, + _destroy: function () { + this.handles.remove(), + this.range.remove(), + this.element.removeClass( + 'ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all' + ), + this._mouseDestroy() + }, + _mouseCapture: function (b) { + var c, + d, + e, + f, + g, + h, + i, + j, + k = this, + l = this.options + return ( + !l.disabled && + ((this.elementSize = { + width: this.element.outerWidth(), + height: this.element.outerHeight(), + }), + (this.elementOffset = this.element.offset()), + (c = { x: b.pageX, y: b.pageY }), + (d = this._normValueFromMouse(c)), + (e = this._valueMax() - this._valueMin() + 1), + this.handles.each(function (b) { + var c = Math.abs(d - k.values(b)) + ;(e > c || + (e === c && + (b === k._lastChangedValue || k.values(b) === l.min))) && + ((e = c), (f = a(this)), (g = b)) + }), + (h = this._start(b, g)), + h !== !1 && + ((this._mouseSliding = !0), + (this._handleIndex = g), + f.addClass('ui-state-active').focus(), + (i = f.offset()), + (j = !a(b.target).parents().addBack().is('.ui-slider-handle')), + (this._clickOffset = j + ? { left: 0, top: 0 } + : { + left: b.pageX - i.left - f.width() / 2, + top: + b.pageY - + i.top - + f.height() / 2 - + (parseInt(f.css('borderTopWidth'), 10) || 0) - + (parseInt(f.css('borderBottomWidth'), 10) || 0) + + (parseInt(f.css('marginTop'), 10) || 0), + }), + this.handles.hasClass('ui-state-hover') || this._slide(b, g, d), + (this._animateOff = !0), + !0)) + ) + }, + _mouseStart: function () { + return !0 + }, + _mouseDrag: function (a) { + var b = { x: a.pageX, y: a.pageY }, + c = this._normValueFromMouse(b) + return this._slide(a, this._handleIndex, c), !1 + }, + _mouseStop: function (a) { + return ( + this.handles.removeClass('ui-state-active'), + (this._mouseSliding = !1), + this._stop(a, this._handleIndex), + this._change(a, this._handleIndex), + (this._handleIndex = null), + (this._clickOffset = null), + (this._animateOff = !1), + !1 + ) + }, + _detectOrientation: function () { + this.orientation = + 'vertical' === this.options.orientation ? 'vertical' : 'horizontal' + }, + _normValueFromMouse: function (a) { + var b, c, d, e, f + return ( + 'horizontal' === this.orientation + ? ((b = this.elementSize.width), + (c = + a.x - + this.elementOffset.left - + (this._clickOffset ? this._clickOffset.left : 0))) + : ((b = this.elementSize.height), + (c = + a.y - + this.elementOffset.top - + (this._clickOffset ? this._clickOffset.top : 0))), + (d = c / b), + d > 1 && (d = 1), + d < 0 && (d = 0), + 'vertical' === this.orientation && (d = 1 - d), + (e = this._valueMax() - this._valueMin()), + (f = this._valueMin() + d * e), + this._trimAlignValue(f) + ) + }, + _start: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + return ( + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('start', a, c) + ) + }, + _slide: function (a, b, c) { + var d, e, f + this.options.values && this.options.values.length + ? ((d = this.values(b ? 0 : 1)), + 2 === this.options.values.length && + this.options.range === !0 && + ((0 === b && c > d) || (1 === b && c < d)) && + (c = d), + c !== this.values(b) && + ((e = this.values()), + (e[b] = c), + (f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + values: e, + })), + (d = this.values(b ? 0 : 1)), + f !== !1 && this.values(b, c, !0))) + : c !== this.value() && + ((f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + })), + f !== !1 && this.value(c)) + }, + _stop: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('stop', a, c) + }, + _change: function (a, b) { + if (!this._keySliding && !this._mouseSliding) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + (this._lastChangedValue = b), + this._trigger('change', a, c) + } + }, + value: function (a) { + return arguments.length + ? ((this.options.value = this._trimAlignValue(a)), + this._refreshValue(), + void this._change(null, 0)) + : this._value() + }, + values: function (b, c) { + var d, e, f + if (arguments.length > 1) + return ( + (this.options.values[b] = this._trimAlignValue(c)), + this._refreshValue(), + void this._change(null, b) + ) + if (!arguments.length) return this._values() + if (!a.isArray(arguments[0])) + return this.options.values && this.options.values.length + ? this._values(b) + : this.value() + for ( + d = this.options.values, e = arguments[0], f = 0; + f < d.length; + f += 1 + ) + (d[f] = this._trimAlignValue(e[f])), this._change(null, f) + this._refreshValue() + }, + _setOption: function (b, c) { + var d, + e = 0 + switch ( + ('range' === b && + this.options.range === !0 && + ('min' === c + ? ((this.options.value = this._values(0)), + (this.options.values = null)) + : 'max' === c && + ((this.options.value = this._values( + this.options.values.length - 1 + )), + (this.options.values = null))), + a.isArray(this.options.values) && (e = this.options.values.length), + a.Widget.prototype._setOption.apply(this, arguments), + b) + ) { + case 'orientation': + this._detectOrientation(), + this.element + .removeClass('ui-slider-horizontal ui-slider-vertical') + .addClass('ui-slider-' + this.orientation), + this._refreshValue() + break + case 'value': + ;(this._animateOff = !0), + this._refreshValue(), + this._change(null, 0), + (this._animateOff = !1) + break + case 'values': + for ( + this._animateOff = !0, this._refreshValue(), d = 0; + d < e; + d += 1 + ) + this._change(null, d) + this._animateOff = !1 + break + case 'min': + case 'max': + ;(this._animateOff = !0), + this._refreshValue(), + (this._animateOff = !1) + break + case 'range': + ;(this._animateOff = !0), this._refresh(), (this._animateOff = !1) + } + }, + _value: function () { + var a = this.options.value + return (a = this._trimAlignValue(a)) + }, + _values: function (a) { + var b, c, d + if (arguments.length) + return (b = this.options.values[a]), (b = this._trimAlignValue(b)) + if (this.options.values && this.options.values.length) { + for (c = this.options.values.slice(), d = 0; d < c.length; d += 1) + c[d] = this._trimAlignValue(c[d]) + return c + } + return [] + }, + _trimAlignValue: function (a) { + if (a <= this._valueMin()) return this._valueMin() + if (a >= this._valueMax()) return this._valueMax() + var b = this.options.step > 0 ? this.options.step : 1, + c = (a - this._valueMin()) % b, + d = a - c + return ( + 2 * Math.abs(c) >= b && (d += c > 0 ? b : -b), + parseFloat(d.toFixed(5)) + ) + }, + _valueMin: function () { + return this.options.min + }, + _valueMax: function () { + return this.options.max + }, + _refreshValue: function () { + var b, + c, + d, + e, + f, + g = this.options.range, + h = this.options, + i = this, + j = !this._animateOff && h.animate, + k = {} + this.options.values && this.options.values.length + ? this.handles.each(function (d) { + ;(c = + ((i.values(d) - i._valueMin()) / + (i._valueMax() - i._valueMin())) * + 100), + (k['horizontal' === i.orientation ? 'left' : 'bottom'] = + c + '%'), + a(this).stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + i.options.range === !0 && + ('horizontal' === i.orientation + ? (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']({ left: c + '%' }, h.animate), + 1 === d && + i.range[j ? 'animate' : 'css']( + { width: c - b + '%' }, + { queue: !1, duration: h.animate } + )) + : (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']( + { bottom: c + '%' }, + h.animate + ), + 1 === d && + i.range[j ? 'animate' : 'css']( + { height: c - b + '%' }, + { queue: !1, duration: h.animate } + ))), + (b = c) + }) + : ((d = this.value()), + (e = this._valueMin()), + (f = this._valueMax()), + (c = f !== e ? ((d - e) / (f - e)) * 100 : 0), + (k['horizontal' === this.orientation ? 'left' : 'bottom'] = + c + '%'), + this.handle.stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + 'min' === g && + 'horizontal' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ width: c + '%' }, h.animate), + 'max' === g && + 'horizontal' === this.orientation && + this.range[j ? 'animate' : 'css']( + { width: 100 - c + '%' }, + { queue: !1, duration: h.animate } + ), + 'min' === g && + 'vertical' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ height: c + '%' }, h.animate), + 'max' === g && + 'vertical' === this.orientation && + this.range[j ? 'animate' : 'css']( + { height: 100 - c + '%' }, + { queue: !1, duration: h.animate } + )) + }, + _handleEvents: { + keydown: function (b) { + var d, + e, + f, + g, + h = a(b.target).data('ui-slider-handle-index') + switch (b.keyCode) { + case a.ui.keyCode.HOME: + case a.ui.keyCode.END: + case a.ui.keyCode.PAGE_UP: + case a.ui.keyCode.PAGE_DOWN: + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if ( + (b.preventDefault(), + !this._keySliding && + ((this._keySliding = !0), + a(b.target).addClass('ui-state-active'), + (d = this._start(b, h)), + d === !1)) + ) + return + } + switch ( + ((g = this.options.step), + (e = f = + this.options.values && this.options.values.length + ? this.values(h) + : this.value()), + b.keyCode) + ) { + case a.ui.keyCode.HOME: + f = this._valueMin() + break + case a.ui.keyCode.END: + f = this._valueMax() + break + case a.ui.keyCode.PAGE_UP: + f = this._trimAlignValue( + e + (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.PAGE_DOWN: + f = this._trimAlignValue( + e - (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + if (e === this._valueMax()) return + f = this._trimAlignValue(e + g) + break + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if (e === this._valueMin()) return + f = this._trimAlignValue(e - g) + } + this._slide(b, h, f) + }, + click: function (a) { + a.preventDefault() + }, + keyup: function (b) { + var c = a(b.target).data('ui-slider-handle-index') + this._keySliding && + ((this._keySliding = !1), + this._stop(b, c), + this._change(b, c), + a(b.target).removeClass('ui-state-active')) + }, + }, + }) + })(jQuery), + (function (a) { + function b(a) { + return function () { + var b = this.element.val() + a.apply(this, arguments), + this._refresh(), + b !== this.element.val() && this._trigger('change') + } + } + a.widget('ui.spinner', { + version: '1.10.3', + defaultElement: '', + widgetEventPrefix: 'spin', + options: { + culture: null, + icons: { down: 'ui-icon-triangle-1-s', up: 'ui-icon-triangle-1-n' }, + incremental: !0, + max: null, + min: null, + numberFormat: null, + page: 10, + step: 1, + change: null, + spin: null, + start: null, + stop: null, + }, + _create: function () { + this._setOption('max', this.options.max), + this._setOption('min', this.options.min), + this._setOption('step', this.options.step), + this._value(this.element.val(), !0), + this._draw(), + this._on(this._events), + this._refresh(), + this._on(this.window, { + beforeunload: function () { + this.element.removeAttr('autocomplete') + }, + }) + }, + _getCreateOptions: function () { + var b = {}, + c = this.element + return ( + a.each(['min', 'max', 'step'], function (a, d) { + var e = c.attr(d) + void 0 !== e && e.length && (b[d] = e) + }), + b + ) + }, + _events: { + keydown: function (a) { + this._start(a) && this._keydown(a) && a.preventDefault() + }, + keyup: '_stop', + focus: function () { + this.previous = this.element.val() + }, + blur: function (a) { + return this.cancelBlur + ? void delete this.cancelBlur + : (this._stop(), + this._refresh(), + void ( + this.previous !== this.element.val() && + this._trigger('change', a) + )) + }, + mousewheel: function (a, b) { + if (b) { + if (!this.spinning && !this._start(a)) return !1 + this._spin((b > 0 ? 1 : -1) * this.options.step, a), + clearTimeout(this.mousewheelTimer), + (this.mousewheelTimer = this._delay(function () { + this.spinning && this._stop(a) + }, 100)), + a.preventDefault() + } + }, + 'mousedown .ui-spinner-button': function (b) { + function d() { + var a = this.element[0] === this.document[0].activeElement + a || + (this.element.focus(), + (this.previous = c), + this._delay(function () { + this.previous = c + })) + } + var c + ;(c = + this.element[0] === this.document[0].activeElement + ? this.previous + : this.element.val()), + b.preventDefault(), + d.call(this), + (this.cancelBlur = !0), + this._delay(function () { + delete this.cancelBlur, d.call(this) + }), + this._start(b) !== !1 && + this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + }, + 'mouseup .ui-spinner-button': '_stop', + 'mouseenter .ui-spinner-button': function (b) { + if (a(b.currentTarget).hasClass('ui-state-active')) + return ( + this._start(b) !== !1 && + void this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + ) + }, + 'mouseleave .ui-spinner-button': '_stop', + }, + _draw: function () { + var a = (this.uiSpinner = this.element + .addClass('ui-spinner-input') + .attr('autocomplete', 'off') + .wrap(this._uiSpinnerHtml()) + .parent() + .append(this._buttonHtml())) + this.element.attr('role', 'spinbutton'), + (this.buttons = a + .find('.ui-spinner-button') + .attr('tabIndex', -1) + .button() + .removeClass('ui-corner-all')), + this.buttons.height() > Math.ceil(0.5 * a.height()) && + a.height() > 0 && + a.height(a.height()), + this.options.disabled && this.disable() + }, + _keydown: function (b) { + var c = this.options, + d = a.ui.keyCode + switch (b.keyCode) { + case d.UP: + return this._repeat(null, 1, b), !0 + case d.DOWN: + return this._repeat(null, -1, b), !0 + case d.PAGE_UP: + return this._repeat(null, c.page, b), !0 + case d.PAGE_DOWN: + return this._repeat(null, -c.page, b), !0 + } + return !1 + }, + _uiSpinnerHtml: function () { + return "" + }, + _buttonHtml: function () { + return ( + "" + ) + }, + _start: function (a) { + return ( + !(!this.spinning && this._trigger('start', a) === !1) && + (this.counter || (this.counter = 1), (this.spinning = !0), !0) + ) + }, + _repeat: function (a, b, c) { + ;(a = a || 500), + clearTimeout(this.timer), + (this.timer = this._delay(function () { + this._repeat(40, b, c) + }, a)), + this._spin(b * this.options.step, c) + }, + _spin: function (a, b) { + var c = this.value() || 0 + this.counter || (this.counter = 1), + (c = this._adjustValue(c + a * this._increment(this.counter))), + (this.spinning && this._trigger('spin', b, { value: c }) === !1) || + (this._value(c), this.counter++) + }, + _increment: function (b) { + var c = this.options.incremental + return c + ? a.isFunction(c) + ? c(b) + : Math.floor((b * b * b) / 5e4 - (b * b) / 500 + (17 * b) / 200 + 1) + : 1 + }, + _precision: function () { + var a = this._precisionOf(this.options.step) + return ( + null !== this.options.min && + (a = Math.max(a, this._precisionOf(this.options.min))), + a + ) + }, + _precisionOf: function (a) { + var b = a.toString(), + c = b.indexOf('.') + return c === -1 ? 0 : b.length - c - 1 + }, + _adjustValue: function (a) { + var b, + c, + d = this.options + return ( + (b = null !== d.min ? d.min : 0), + (c = a - b), + (c = Math.round(c / d.step) * d.step), + (a = b + c), + (a = parseFloat(a.toFixed(this._precision()))), + null !== d.max && a > d.max + ? d.max + : null !== d.min && a < d.min + ? d.min + : a + ) + }, + _stop: function (a) { + this.spinning && + (clearTimeout(this.timer), + clearTimeout(this.mousewheelTimer), + (this.counter = 0), + (this.spinning = !1), + this._trigger('stop', a)) + }, + _setOption: function (a, b) { + if ('culture' === a || 'numberFormat' === a) { + var c = this._parse(this.element.val()) + return (this.options[a] = b), void this.element.val(this._format(c)) + } + ;('max' !== a && 'min' !== a && 'step' !== a) || + ('string' == typeof b && (b = this._parse(b))), + 'icons' === a && + (this.buttons + .first() + .find('.ui-icon') + .removeClass(this.options.icons.up) + .addClass(b.up), + this.buttons + .last() + .find('.ui-icon') + .removeClass(this.options.icons.down) + .addClass(b.down)), + this._super(a, b), + 'disabled' === a && + (b + ? (this.element.prop('disabled', !0), + this.buttons.button('disable')) + : (this.element.prop('disabled', !1), + this.buttons.button('enable'))) + }, + _setOptions: b(function (a) { + this._super(a), this._value(this.element.val()) + }), + _parse: function (a) { + return ( + 'string' == typeof a && + '' !== a && + (a = + window.Globalize && this.options.numberFormat + ? Globalize.parseFloat(a, 10, this.options.culture) + : +a), + '' === a || isNaN(a) ? null : a + ) + }, + _format: function (a) { + return '' === a + ? '' + : window.Globalize && this.options.numberFormat + ? Globalize.format(a, this.options.numberFormat, this.options.culture) + : a + }, + _refresh: function () { + this.element.attr({ + 'aria-valuemin': this.options.min, + 'aria-valuemax': this.options.max, + 'aria-valuenow': this._parse(this.element.val()), + }) + }, + _value: function (a, b) { + var c + '' !== a && + ((c = this._parse(a)), + null !== c && + (b || (c = this._adjustValue(c)), (a = this._format(c)))), + this.element.val(a), + this._refresh() + }, + _destroy: function () { + this.element + .removeClass('ui-spinner-input') + .prop('disabled', !1) + .removeAttr('autocomplete') + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.uiSpinner.replaceWith(this.element) + }, + stepUp: b(function (a) { + this._stepUp(a) + }), + _stepUp: function (a) { + this._start() && + (this._spin((a || 1) * this.options.step), this._stop()) + }, + stepDown: b(function (a) { + this._stepDown(a) + }), + _stepDown: function (a) { + this._start() && + (this._spin((a || 1) * -this.options.step), this._stop()) + }, + pageUp: b(function (a) { + this._stepUp((a || 1) * this.options.page) + }), + pageDown: b(function (a) { + this._stepDown((a || 1) * this.options.page) + }), + value: function (a) { + return arguments.length + ? void b(this._value).call(this, a) + : this._parse(this.element.val()) + }, + widget: function () { + return this.uiSpinner + }, + }) + })(jQuery), + (function (a, b) { + function e() { + return ++c + } + function f(a) { + return ( + a.hash.length > 1 && + decodeURIComponent(a.href.replace(d, '')) === + decodeURIComponent(location.href.replace(d, '')) + ) + } + var c = 0, + d = /#.*$/ + a.widget('ui.tabs', { + version: '1.10.3', + delay: 300, + options: { + active: null, + collapsible: !1, + event: 'click', + heightStyle: 'content', + hide: null, + show: null, + activate: null, + beforeActivate: null, + beforeLoad: null, + load: null, + }, + _create: function () { + var b = this, + c = this.options + ;(this.running = !1), + this.element + .addClass('ui-tabs ui-widget ui-widget-content ui-corner-all') + .toggleClass('ui-tabs-collapsible', c.collapsible) + .delegate( + '.ui-tabs-nav > li', + 'mousedown' + this.eventNamespace, + function (b) { + a(this).is('.ui-state-disabled') && b.preventDefault() + } + ) + .delegate( + '.ui-tabs-anchor', + 'focus' + this.eventNamespace, + function () { + a(this).closest('li').is('.ui-state-disabled') && this.blur() + } + ), + this._processTabs(), + (c.active = this._initialActive()), + a.isArray(c.disabled) && + (c.disabled = a + .unique( + c.disabled.concat( + a.map(this.tabs.filter('.ui-state-disabled'), function (a) { + return b.tabs.index(a) + }) + ) + ) + .sort()), + this.options.active !== !1 && this.anchors.length + ? (this.active = this._findActive(c.active)) + : (this.active = a()), + this._refresh(), + this.active.length && this.load(c.active) + }, + _initialActive: function () { + var b = this.options.active, + c = this.options.collapsible, + d = location.hash.substring(1) + return ( + null === b && + (d && + this.tabs.each(function (c, e) { + if (a(e).attr('aria-controls') === d) return (b = c), !1 + }), + null === b && + (b = this.tabs.index(this.tabs.filter('.ui-tabs-active'))), + (null !== b && b !== -1) || (b = !!this.tabs.length && 0)), + b !== !1 && + ((b = this.tabs.index(this.tabs.eq(b))), b === -1 && (b = !c && 0)), + !c && b === !1 && this.anchors.length && (b = 0), + b + ) + }, + _getCreateEventData: function () { + return { + tab: this.active, + panel: this.active.length ? this._getPanelForTab(this.active) : a(), + } + }, + _tabKeydown: function (b) { + var c = a(this.document[0].activeElement).closest('li'), + d = this.tabs.index(c), + e = !0 + if (!this._handlePageNav(b)) { + switch (b.keyCode) { + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + d++ + break + case a.ui.keyCode.UP: + case a.ui.keyCode.LEFT: + ;(e = !1), d-- + break + case a.ui.keyCode.END: + d = this.anchors.length - 1 + break + case a.ui.keyCode.HOME: + d = 0 + break + case a.ui.keyCode.SPACE: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d) + ) + case a.ui.keyCode.ENTER: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d !== this.options.active && d) + ) + default: + return + } + b.preventDefault(), + clearTimeout(this.activating), + (d = this._focusNextTab(d, e)), + b.ctrlKey || + (c.attr('aria-selected', 'false'), + this.tabs.eq(d).attr('aria-selected', 'true'), + (this.activating = this._delay(function () { + this.option('active', d) + }, this.delay))) + } + }, + _panelKeydown: function (b) { + this._handlePageNav(b) || + (b.ctrlKey && + b.keyCode === a.ui.keyCode.UP && + (b.preventDefault(), this.active.focus())) + }, + _handlePageNav: function (b) { + return b.altKey && b.keyCode === a.ui.keyCode.PAGE_UP + ? (this._activate(this._focusNextTab(this.options.active - 1, !1)), + !0) + : b.altKey && b.keyCode === a.ui.keyCode.PAGE_DOWN + ? (this._activate(this._focusNextTab(this.options.active + 1, !0)), + !0) + : void 0 + }, + _findNextTab: function (b, c) { + function e() { + return b > d && (b = 0), b < 0 && (b = d), b + } + for ( + var d = this.tabs.length - 1; + a.inArray(e(), this.options.disabled) !== -1; + + ) + b = c ? b + 1 : b - 1 + return b + }, + _focusNextTab: function (a, b) { + return (a = this._findNextTab(a, b)), this.tabs.eq(a).focus(), a + }, + _setOption: function (a, b) { + return 'active' === a + ? void this._activate(b) + : 'disabled' === a + ? void this._setupDisabled(b) + : (this._super(a, b), + 'collapsible' === a && + (this.element.toggleClass('ui-tabs-collapsible', b), + b || this.options.active !== !1 || this._activate(0)), + 'event' === a && this._setupEvents(b), + void ('heightStyle' === a && this._setupHeightStyle(b))) + }, + _tabId: function (a) { + return a.attr('aria-controls') || 'ui-tabs-' + e() + }, + _sanitizeSelector: function (a) { + return a ? a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, '\\$&') : '' + }, + refresh: function () { + var b = this.options, + c = this.tablist.children(':has(a[href])') + ;(b.disabled = a.map(c.filter('.ui-state-disabled'), function (a) { + return c.index(a) + })), + this._processTabs(), + b.active !== !1 && this.anchors.length + ? this.active.length && !a.contains(this.tablist[0], this.active[0]) + ? this.tabs.length === b.disabled.length + ? ((b.active = !1), (this.active = a())) + : this._activate( + this._findNextTab(Math.max(0, b.active - 1), !1) + ) + : (b.active = this.tabs.index(this.active)) + : ((b.active = !1), (this.active = a())), + this._refresh() + }, + _refresh: function () { + this._setupDisabled(this.options.disabled), + this._setupEvents(this.options.event), + this._setupHeightStyle(this.options.heightStyle), + this.tabs + .not(this.active) + .attr({ 'aria-selected': 'false', tabIndex: -1 }), + this.panels + .not(this._getPanelForTab(this.active)) + .hide() + .attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + this.active.length + ? (this.active + .addClass('ui-tabs-active ui-state-active') + .attr({ 'aria-selected': 'true', tabIndex: 0 }), + this._getPanelForTab(this.active) + .show() + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' })) + : this.tabs.eq(0).attr('tabIndex', 0) + }, + _processTabs: function () { + var b = this + ;(this.tablist = this._getList() + .addClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .attr('role', 'tablist')), + (this.tabs = this.tablist + .find('> li:has(a[href])') + .addClass('ui-state-default ui-corner-top') + .attr({ role: 'tab', tabIndex: -1 })), + (this.anchors = this.tabs + .map(function () { + return a('a', this)[0] + }) + .addClass('ui-tabs-anchor') + .attr({ role: 'presentation', tabIndex: -1 })), + (this.panels = a()), + this.anchors.each(function (c, d) { + var e, + g, + h, + i = a(d).uniqueId().attr('id'), + j = a(d).closest('li'), + k = j.attr('aria-controls') + f(d) + ? ((e = d.hash), (g = b.element.find(b._sanitizeSelector(e)))) + : ((h = b._tabId(j)), + (e = '#' + h), + (g = b.element.find(e)), + g.length || + ((g = b._createPanel(h)), + g.insertAfter(b.panels[c - 1] || b.tablist)), + g.attr('aria-live', 'polite')), + g.length && (b.panels = b.panels.add(g)), + k && j.data('ui-tabs-aria-controls', k), + j.attr({ 'aria-controls': e.substring(1), 'aria-labelledby': i }), + g.attr('aria-labelledby', i) + }), + this.panels + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .attr('role', 'tabpanel') + }, + _getList: function () { + return this.element.find('ol,ul').eq(0) + }, + _createPanel: function (b) { + return a('
      ') + .attr('id', b) + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .data('ui-tabs-destroy', !0) + }, + _setupDisabled: function (b) { + a.isArray(b) && + (b.length ? b.length === this.anchors.length && (b = !0) : (b = !1)) + for (var d, c = 0; (d = this.tabs[c]); c++) + b === !0 || a.inArray(c, b) !== -1 + ? a(d).addClass('ui-state-disabled').attr('aria-disabled', 'true') + : a(d).removeClass('ui-state-disabled').removeAttr('aria-disabled') + this.options.disabled = b + }, + _setupEvents: function (b) { + var c = { + click: function (a) { + a.preventDefault() + }, + } + b && + a.each(b.split(' '), function (a, b) { + c[b] = '_eventHandler' + }), + this._off(this.anchors.add(this.tabs).add(this.panels)), + this._on(this.anchors, c), + this._on(this.tabs, { keydown: '_tabKeydown' }), + this._on(this.panels, { keydown: '_panelKeydown' }), + this._focusable(this.tabs), + this._hoverable(this.tabs) + }, + _setupHeightStyle: function (b) { + var c, + d = this.element.parent() + 'fill' === b + ? ((c = d.height()), + (c -= this.element.outerHeight() - this.element.height()), + this.element.siblings(':visible').each(function () { + var b = a(this), + d = b.css('position') + 'absolute' !== d && 'fixed' !== d && (c -= b.outerHeight(!0)) + }), + this.element + .children() + .not(this.panels) + .each(function () { + c -= a(this).outerHeight(!0) + }), + this.panels + .each(function () { + a(this).height( + Math.max(0, c - a(this).innerHeight() + a(this).height()) + ) + }) + .css('overflow', 'auto')) + : 'auto' === b && + ((c = 0), + this.panels + .each(function () { + c = Math.max(c, a(this).height('').height()) + }) + .height(c)) + }, + _eventHandler: function (b) { + var c = this.options, + d = this.active, + e = a(b.currentTarget), + f = e.closest('li'), + g = f[0] === d[0], + h = g && c.collapsible, + i = h ? a() : this._getPanelForTab(f), + j = d.length ? this._getPanelForTab(d) : a(), + k = { oldTab: d, oldPanel: j, newTab: h ? a() : f, newPanel: i } + b.preventDefault(), + f.hasClass('ui-state-disabled') || + f.hasClass('ui-tabs-loading') || + this.running || + (g && !c.collapsible) || + this._trigger('beforeActivate', b, k) === !1 || + ((c.active = !h && this.tabs.index(f)), + (this.active = g ? a() : f), + this.xhr && this.xhr.abort(), + j.length || + i.length || + a.error('jQuery UI Tabs: Mismatching fragment identifier.'), + i.length && this.load(this.tabs.index(f), b), + this._toggle(b, k)) + }, + _toggle: function (b, c) { + function g() { + ;(d.running = !1), d._trigger('activate', b, c) + } + function h() { + c.newTab.closest('li').addClass('ui-tabs-active ui-state-active'), + e.length && d.options.show + ? d._show(e, d.options.show, g) + : (e.show(), g()) + } + var d = this, + e = c.newPanel, + f = c.oldPanel + ;(this.running = !0), + f.length && this.options.hide + ? this._hide(f, this.options.hide, function () { + c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + h() + }) + : (c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + f.hide(), + h()), + f.attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + c.oldTab.attr('aria-selected', 'false'), + e.length && f.length + ? c.oldTab.attr('tabIndex', -1) + : e.length && + this.tabs + .filter(function () { + return 0 === a(this).attr('tabIndex') + }) + .attr('tabIndex', -1), + e.attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }), + c.newTab.attr({ 'aria-selected': 'true', tabIndex: 0 }) + }, + _activate: function (b) { + var c, + d = this._findActive(b) + d[0] !== this.active[0] && + (d.length || (d = this.active), + (c = d.find('.ui-tabs-anchor')[0]), + this._eventHandler({ + target: c, + currentTarget: c, + preventDefault: a.noop, + })) + }, + _findActive: function (b) { + return b === !1 ? a() : this.tabs.eq(b) + }, + _getIndex: function (a) { + return ( + 'string' == typeof a && + (a = this.anchors.index( + this.anchors.filter("[href$='" + a + "']") + )), + a + ) + }, + _destroy: function () { + this.xhr && this.xhr.abort(), + this.element.removeClass( + 'ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible' + ), + this.tablist + .removeClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .removeAttr('role'), + this.anchors + .removeClass('ui-tabs-anchor') + .removeAttr('role') + .removeAttr('tabIndex') + .removeUniqueId(), + this.tabs.add(this.panels).each(function () { + a.data(this, 'ui-tabs-destroy') + ? a(this).remove() + : a(this) + .removeClass( + 'ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel' + ) + .removeAttr('tabIndex') + .removeAttr('aria-live') + .removeAttr('aria-busy') + .removeAttr('aria-selected') + .removeAttr('aria-labelledby') + .removeAttr('aria-hidden') + .removeAttr('aria-expanded') + .removeAttr('role') + }), + this.tabs.each(function () { + var b = a(this), + c = b.data('ui-tabs-aria-controls') + c + ? b.attr('aria-controls', c).removeData('ui-tabs-aria-controls') + : b.removeAttr('aria-controls') + }), + this.panels.show(), + 'content' !== this.options.heightStyle && + this.panels.css('height', '') + }, + enable: function (c) { + var d = this.options.disabled + d !== !1 && + (c === b + ? (d = !1) + : ((c = this._getIndex(c)), + (d = a.isArray(d) + ? a.map(d, function (a) { + return a !== c ? a : null + }) + : a.map(this.tabs, function (a, b) { + return b !== c ? b : null + }))), + this._setupDisabled(d)) + }, + disable: function (c) { + var d = this.options.disabled + if (d !== !0) { + if (c === b) d = !0 + else { + if (((c = this._getIndex(c)), a.inArray(c, d) !== -1)) return + d = a.isArray(d) ? a.merge([c], d).sort() : [c] + } + this._setupDisabled(d) + } + }, + load: function (b, c) { + b = this._getIndex(b) + var d = this, + e = this.tabs.eq(b), + g = e.find('.ui-tabs-anchor'), + h = this._getPanelForTab(e), + i = { tab: e, panel: h } + f(g[0]) || + ((this.xhr = a.ajax(this._ajaxSettings(g, c, i))), + this.xhr && + 'canceled' !== this.xhr.statusText && + (e.addClass('ui-tabs-loading'), + h.attr('aria-busy', 'true'), + this.xhr + .success(function (a) { + setTimeout(function () { + h.html(a), d._trigger('load', c, i) + }, 1) + }) + .complete(function (a, b) { + setTimeout(function () { + 'abort' === b && d.panels.stop(!1, !0), + e.removeClass('ui-tabs-loading'), + h.removeAttr('aria-busy'), + a === d.xhr && delete d.xhr + }, 1) + }))) + }, + _ajaxSettings: function (b, c, d) { + var e = this + return { + url: b.attr('href'), + beforeSend: function (b, f) { + return e._trigger( + 'beforeLoad', + c, + a.extend({ jqXHR: b, ajaxSettings: f }, d) + ) + }, + } + }, + _getPanelForTab: function (b) { + var c = a(b).attr('aria-controls') + return this.element.find(this._sanitizeSelector('#' + c)) + }, + }) + })(jQuery), + (function (a) { + function c(b, c) { + var d = (b.attr('aria-describedby') || '').split(/\s+/) + d.push(c), + b.data('ui-tooltip-id', c).attr('aria-describedby', a.trim(d.join(' '))) + } + function d(b) { + var c = b.data('ui-tooltip-id'), + d = (b.attr('aria-describedby') || '').split(/\s+/), + e = a.inArray(c, d) + e !== -1 && d.splice(e, 1), + b.removeData('ui-tooltip-id'), + (d = a.trim(d.join(' '))), + d ? b.attr('aria-describedby', d) : b.removeAttr('aria-describedby') + } + var b = 0 + a.widget('ui.tooltip', { + version: '1.10.3', + options: { + content: function () { + var b = a(this).attr('title') || '' + return a('').text(b).html() + }, + hide: !0, + items: '[title]:not([disabled])', + position: { + my: 'left top+15', + at: 'left bottom', + collision: 'flipfit flip', + }, + show: !0, + tooltipClass: null, + track: !1, + close: null, + open: null, + }, + _create: function () { + this._on({ mouseover: 'open', focusin: 'open' }), + (this.tooltips = {}), + (this.parents = {}), + this.options.disabled && this._disable() + }, + _setOption: function (b, c) { + var d = this + return 'disabled' === b + ? (this[c ? '_disable' : '_enable'](), void (this.options[b] = c)) + : (this._super(b, c), + void ( + 'content' === b && + a.each(this.tooltips, function (a, b) { + d._updateContent(b) + }) + )) + }, + _disable: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), b.close(e, !0) + }), + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.is('[title]') && + b.data('ui-tooltip-title', b.attr('title')).attr('title', '') + }) + }, + _enable: function () { + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.data('ui-tooltip-title') && + b.attr('title', b.data('ui-tooltip-title')) + }) + }, + open: function (b) { + var c = this, + d = a(b ? b.target : this.element).closest(this.options.items) + d.length && + !d.data('ui-tooltip-id') && + (d.attr('title') && d.data('ui-tooltip-title', d.attr('title')), + d.data('ui-tooltip-open', !0), + b && + 'mouseover' === b.type && + d.parents().each(function () { + var d, + b = a(this) + b.data('ui-tooltip-open') && + ((d = a.Event('blur')), + (d.target = d.currentTarget = this), + c.close(d, !0)), + b.attr('title') && + (b.uniqueId(), + (c.parents[this.id] = { + element: this, + title: b.attr('title'), + }), + b.attr('title', '')) + }), + this._updateContent(d, b)) + }, + _updateContent: function (a, b) { + var c, + d = this.options.content, + e = this, + f = b ? b.type : null + return 'string' == typeof d + ? this._open(b, a, d) + : ((c = d.call(a[0], function (c) { + a.data('ui-tooltip-open') && + e._delay(function () { + b && (b.type = f), this._open(b, a, c) + }) + })), + void (c && this._open(b, a, c))) + }, + _open: function (b, d, e) { + function j(a) { + ;(i.of = a), f.is(':hidden') || f.position(i) + } + var f, + g, + h, + i = a.extend({}, this.options.position) + if (e) { + if (((f = this._find(d)), f.length)) + return void f.find('.ui-tooltip-content').html(e) + d.is('[title]') && + (b && 'mouseover' === b.type + ? d.attr('title', '') + : d.removeAttr('title')), + (f = this._tooltip(d)), + c(d, f.attr('id')), + f.find('.ui-tooltip-content').html(e), + this.options.track && b && /^mouse/.test(b.type) + ? (this._on(this.document, { mousemove: j }), j(b)) + : f.position(a.extend({ of: d }, this.options.position)), + f.hide(), + this._show(f, this.options.show), + this.options.show && + this.options.show.delay && + (h = this.delayedShow = + setInterval(function () { + f.is(':visible') && (j(i.of), clearInterval(h)) + }, a.fx.interval)), + this._trigger('open', b, { tooltip: f }), + (g = { + keyup: function (b) { + if (b.keyCode === a.ui.keyCode.ESCAPE) { + var c = a.Event(b) + ;(c.currentTarget = d[0]), this.close(c, !0) + } + }, + remove: function () { + this._removeTooltip(f) + }, + }), + (b && 'mouseover' !== b.type) || (g.mouseleave = 'close'), + (b && 'focusin' !== b.type) || (g.focusout = 'close'), + this._on(!0, d, g) + } + }, + close: function (b) { + var c = this, + e = a(b ? b.currentTarget : this.element), + f = this._find(e) + this.closing || + (clearInterval(this.delayedShow), + e.data('ui-tooltip-title') && + e.attr('title', e.data('ui-tooltip-title')), + d(e), + f.stop(!0), + this._hide(f, this.options.hide, function () { + c._removeTooltip(a(this)) + }), + e.removeData('ui-tooltip-open'), + this._off(e, 'mouseleave focusout keyup'), + e[0] !== this.element[0] && this._off(e, 'remove'), + this._off(this.document, 'mousemove'), + b && + 'mouseleave' === b.type && + a.each(this.parents, function (b, d) { + a(d.element).attr('title', d.title), delete c.parents[b] + }), + (this.closing = !0), + this._trigger('close', b, { tooltip: f }), + (this.closing = !1)) + }, + _tooltip: function (c) { + var d = 'ui-tooltip-' + b++, + e = a('
      ') + .attr({ id: d, role: 'tooltip' }) + .addClass( + 'ui-tooltip ui-widget ui-corner-all ui-widget-content ' + + (this.options.tooltipClass || '') + ) + return ( + a('
      ').addClass('ui-tooltip-content').appendTo(e), + e.appendTo(this.document[0].body), + (this.tooltips[d] = c), + e + ) + }, + _find: function (b) { + var c = b.data('ui-tooltip-id') + return c ? a('#' + c) : a() + }, + _removeTooltip: function (a) { + a.remove(), delete this.tooltips[a.attr('id')] + }, + _destroy: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), + b.close(e, !0), + a('#' + c).remove(), + d.data('ui-tooltip-title') && + (d.attr('title', d.data('ui-tooltip-title')), + d.removeData('ui-tooltip-title')) + }) + }, + }) + })( + jQuery + ) /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +;(function (r, G, f, v) { + var J = f('html'), + n = f(r), + p = f(G), + b = (f.fancybox = function () { + b.open.apply(this, arguments) + }), + I = navigator.userAgent.match(/msie/i), + B = null, + s = G.createTouch !== v, + t = function (a) { + return a && a.hasOwnProperty && a instanceof f + }, + q = function (a) { + return a && 'string' === f.type(a) + }, + E = function (a) { + return q(a) && 0 < a.indexOf('%') + }, + l = function (a, d) { + var e = parseInt(a, 10) || 0 + d && E(a) && (e *= b.getViewport()[d] / 100) + return Math.ceil(e) + }, + w = function (a, b) { + return l(a, b) + 'px' + } + f.extend(b, { + version: '2.1.5', + defaults: { + padding: 15, + margin: 20, + width: 800, + height: 600, + minWidth: 100, + minHeight: 100, + maxWidth: 9999, + maxHeight: 9999, + pixelRatio: 1, + autoSize: !0, + autoHeight: !1, + autoWidth: !1, + autoResize: !0, + autoCenter: !s, + fitToView: !0, + aspectRatio: !1, + topRatio: 0.5, + leftRatio: 0.5, + scrolling: 'auto', + wrapCSS: '', + arrows: !0, + closeBtn: !0, + closeClick: !1, + nextClick: !1, + mouseWheel: !0, + autoPlay: !1, + playSpeed: 3e3, + preload: 3, + modal: !1, + loop: !0, + ajax: { dataType: 'html', headers: { 'X-fancyBox': !0 } }, + iframe: { scrolling: 'auto', preload: !0 }, + swf: { + wmode: 'transparent', + allowfullscreen: 'true', + allowscriptaccess: 'always', + }, + keys: { + next: { 13: 'left', 34: 'up', 39: 'left', 40: 'up' }, + prev: { 8: 'right', 33: 'down', 37: 'right', 38: 'down' }, + close: [27], + play: [32], + toggle: [70], + }, + direction: { next: 'left', prev: 'right' }, + scrollOutside: !0, + index: 0, + type: null, + href: null, + content: null, + title: null, + tpl: { + wrap: '
      ', + image: '', + iframe: + '', + error: + '

      The requested content cannot be loaded.
      Please try again later.

      ', + closeBtn: + '
      ', + next: '', + prev: '', + }, + openEffect: 'fade', + openSpeed: 250, + openEasing: 'swing', + openOpacity: !0, + openMethod: 'zoomIn', + closeEffect: 'fade', + closeSpeed: 250, + closeEasing: 'swing', + closeOpacity: !0, + closeMethod: 'zoomOut', + nextEffect: 'elastic', + nextSpeed: 250, + nextEasing: 'swing', + nextMethod: 'changeIn', + prevEffect: 'elastic', + prevSpeed: 250, + prevEasing: 'swing', + prevMethod: 'changeOut', + helpers: { overlay: !0, title: !0 }, + onCancel: f.noop, + beforeLoad: f.noop, + afterLoad: f.noop, + beforeShow: f.noop, + afterShow: f.noop, + beforeChange: f.noop, + beforeClose: f.noop, + afterClose: f.noop, + }, + group: {}, + opts: {}, + previous: null, + coming: null, + current: null, + isActive: !1, + isOpen: !1, + isOpened: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + player: { timer: null, isActive: !1 }, + ajaxLoad: null, + imgPreload: null, + transitions: {}, + helpers: {}, + open: function (a, d) { + if (a && (f.isPlainObject(d) || (d = {}), !1 !== b.close(!0))) + return ( + f.isArray(a) || (a = t(a) ? f(a).get() : [a]), + f.each(a, function (e, c) { + var k = {}, + g, + h, + j, + m, + l + 'object' === f.type(c) && + (c.nodeType && (c = f(c)), + t(c) + ? ((k = { + href: c.data('fancybox-href') || c.attr('href'), + title: c.data('fancybox-title') || c.attr('title'), + isDom: !0, + element: c, + }), + f.metadata && f.extend(!0, k, c.metadata())) + : (k = c)) + g = d.href || k.href || (q(c) ? c : null) + h = d.title !== v ? d.title : k.title || '' + m = (j = d.content || k.content) ? 'html' : d.type || k.type + !m && + k.isDom && + ((m = c.data('fancybox-type')), + m || + (m = (m = c.prop('class').match(/fancybox\.(\w+)/)) + ? m[1] + : null)) + q(g) && + (m || + (b.isImage(g) + ? (m = 'image') + : b.isSWF(g) + ? (m = 'swf') + : '#' === g.charAt(0) + ? (m = 'inline') + : q(c) && ((m = 'html'), (j = c))), + 'ajax' === m && + ((l = g.split(/\s+/, 2)), (g = l.shift()), (l = l.shift()))) + j || + ('inline' === m + ? g + ? (j = f(q(g) ? g.replace(/.*(?=#[^\s]+$)/, '') : g)) + : k.isDom && (j = c) + : 'html' === m + ? (j = g) + : !m && !g && k.isDom && ((m = 'inline'), (j = c))) + f.extend(k, { href: g, type: m, content: j, title: h, selector: l }) + a[e] = k + }), + (b.opts = f.extend(!0, {}, b.defaults, d)), + d.keys !== v && + (b.opts.keys = d.keys ? f.extend({}, b.defaults.keys, d.keys) : !1), + (b.group = a), + b._start(b.opts.index) + ) + }, + cancel: function () { + var a = b.coming + a && + !1 !== b.trigger('onCancel') && + (b.hideLoading(), + b.ajaxLoad && b.ajaxLoad.abort(), + (b.ajaxLoad = null), + b.imgPreload && (b.imgPreload.onload = b.imgPreload.onerror = null), + a.wrap && a.wrap.stop(!0, !0).trigger('onReset').remove(), + (b.coming = null), + b.current || b._afterZoomOut(a)) + }, + close: function (a) { + b.cancel() + !1 !== b.trigger('beforeClose') && + (b.unbindEvents(), + b.isActive && + (!b.isOpen || !0 === a + ? (f('.fancybox-wrap').stop(!0).trigger('onReset').remove(), + b._afterZoomOut()) + : ((b.isOpen = b.isOpened = !1), + (b.isClosing = !0), + f('.fancybox-item, .fancybox-nav').remove(), + b.wrap.stop(!0, !0).removeClass('fancybox-opened'), + b.transitions[b.current.closeMethod]()))) + }, + play: function (a) { + var d = function () { + clearTimeout(b.player.timer) + }, + e = function () { + d() + b.current && + b.player.isActive && + (b.player.timer = setTimeout(b.next, b.current.playSpeed)) + }, + c = function () { + d() + p.unbind('.player') + b.player.isActive = !1 + b.trigger('onPlayEnd') + } + if (!0 === a || (!b.player.isActive && !1 !== a)) { + if ( + b.current && + (b.current.loop || b.current.index < b.group.length - 1) + ) + (b.player.isActive = !0), + p.bind({ + 'onCancel.player beforeClose.player': c, + 'onUpdate.player': e, + 'beforeLoad.player': d, + }), + e(), + b.trigger('onPlayStart') + } else c() + }, + next: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.next), b.jumpto(d.index + 1, a, 'next')) + }, + prev: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.prev), b.jumpto(d.index - 1, a, 'prev')) + }, + jumpto: function (a, d, e) { + var c = b.current + c && + ((a = l(a)), + (b.direction = d || c.direction[a >= c.index ? 'next' : 'prev']), + (b.router = e || 'jumpto'), + c.loop && + (0 > a && (a = c.group.length + (a % c.group.length)), + (a %= c.group.length)), + c.group[a] !== v && (b.cancel(), b._start(a))) + }, + reposition: function (a, d) { + var e = b.current, + c = e ? e.wrap : null, + k + c && + ((k = b._getPosition(d)), + a && 'scroll' === a.type + ? (delete k.position, c.stop(!0, !0).animate(k, 200)) + : (c.css(k), (e.pos = f.extend({}, e.dim, k)))) + }, + update: function (a) { + var d = a && a.type, + e = !d || 'orientationchange' === d + e && (clearTimeout(B), (B = null)) + b.isOpen && + !B && + (B = setTimeout( + function () { + var c = b.current + c && + !b.isClosing && + (b.wrap.removeClass('fancybox-tmp'), + (e || 'load' === d || ('resize' === d && c.autoResize)) && + b._setDimension(), + ('scroll' === d && c.canShrink) || b.reposition(a), + b.trigger('onUpdate'), + (B = null)) + }, + e && !s ? 0 : 300 + )) + }, + toggle: function (a) { + b.isOpen && + ((b.current.fitToView = + 'boolean' === f.type(a) ? a : !b.current.fitToView), + s && + (b.wrap.removeAttr('style').addClass('fancybox-tmp'), + b.trigger('onUpdate')), + b.update()) + }, + hideLoading: function () { + p.unbind('.loading') + f('#fancybox-loading').remove() + }, + showLoading: function () { + var a, d + b.hideLoading() + a = f('
      ') + .click(b.cancel) + .appendTo('body') + p.bind('keydown.loading', function (a) { + if (27 === (a.which || a.keyCode)) a.preventDefault(), b.cancel() + }) + b.defaults.fixed || + ((d = b.getViewport()), + a.css({ + position: 'absolute', + top: 0.5 * d.h + d.y, + left: 0.5 * d.w + d.x, + })) + }, + getViewport: function () { + var a = (b.current && b.current.locked) || !1, + d = { x: n.scrollLeft(), y: n.scrollTop() } + a + ? ((d.w = a[0].clientWidth), (d.h = a[0].clientHeight)) + : ((d.w = s && r.innerWidth ? r.innerWidth : n.width()), + (d.h = s && r.innerHeight ? r.innerHeight : n.height())) + return d + }, + unbindEvents: function () { + b.wrap && t(b.wrap) && b.wrap.unbind('.fb') + p.unbind('.fb') + n.unbind('.fb') + }, + bindEvents: function () { + var a = b.current, + d + a && + (n.bind( + 'orientationchange.fb' + + (s ? '' : ' resize.fb') + + (a.autoCenter && !a.locked ? ' scroll.fb' : ''), + b.update + ), + (d = a.keys) && + p.bind('keydown.fb', function (e) { + var c = e.which || e.keyCode, + k = e.target || e.srcElement + if (27 === c && b.coming) return !1 + !e.ctrlKey && + !e.altKey && + !e.shiftKey && + !e.metaKey && + (!k || (!k.type && !f(k).is('[contenteditable]'))) && + f.each(d, function (d, k) { + if (1 < a.group.length && k[c] !== v) + return b[d](k[c]), e.preventDefault(), !1 + if (-1 < f.inArray(c, k)) return b[d](), e.preventDefault(), !1 + }) + }), + f.fn.mousewheel && + a.mouseWheel && + b.wrap.bind('mousewheel.fb', function (d, c, k, g) { + for ( + var h = f(d.target || null), j = !1; + h.length && + !j && + !h.is('.fancybox-skin') && + !h.is('.fancybox-wrap'); + + ) + (j = + h[0] && + !(h[0].style.overflow && 'hidden' === h[0].style.overflow) && + ((h[0].clientWidth && h[0].scrollWidth > h[0].clientWidth) || + (h[0].clientHeight && + h[0].scrollHeight > h[0].clientHeight))), + (h = f(h).parent()) + if (0 !== c && !j && 1 < b.group.length && !a.canShrink) { + if (0 < g || 0 < k) b.prev(0 < g ? 'down' : 'left') + else if (0 > g || 0 > k) b.next(0 > g ? 'up' : 'right') + d.preventDefault() + } + })) + }, + trigger: function (a, d) { + var e, + c = d || b.coming || b.current + if (c) { + f.isFunction(c[a]) && + (e = c[a].apply(c, Array.prototype.slice.call(arguments, 1))) + if (!1 === e) return !1 + c.helpers && + f.each(c.helpers, function (d, e) { + if (e && b.helpers[d] && f.isFunction(b.helpers[d][a])) + b.helpers[d][a](f.extend(!0, {}, b.helpers[d].defaults, e), c) + }) + p.trigger(a) + } + }, + isImage: function (a) { + return ( + q(a) && + a.match( + /(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i + ) + ) + }, + isSWF: function (a) { + return q(a) && a.match(/\.(swf)((\?|#).*)?$/i) + }, + _start: function (a) { + var d = {}, + e, + c + a = l(a) + e = b.group[a] || null + if (!e) return !1 + d = f.extend(!0, {}, b.opts, e) + e = d.margin + c = d.padding + 'number' === f.type(e) && (d.margin = [e, e, e, e]) + 'number' === f.type(c) && (d.padding = [c, c, c, c]) + d.modal && + f.extend(!0, d, { + closeBtn: !1, + closeClick: !1, + nextClick: !1, + arrows: !1, + mouseWheel: !1, + keys: null, + helpers: { overlay: { closeClick: !1 } }, + }) + d.autoSize && (d.autoWidth = d.autoHeight = !0) + 'auto' === d.width && (d.autoWidth = !0) + 'auto' === d.height && (d.autoHeight = !0) + d.group = b.group + d.index = a + b.coming = d + if (!1 === b.trigger('beforeLoad')) b.coming = null + else { + c = d.type + e = d.href + if (!c) + return ( + (b.coming = null), + b.current && b.router && 'jumpto' !== b.router + ? ((b.current.index = a), b[b.router](b.direction)) + : !1 + ) + b.isActive = !0 + if ('image' === c || 'swf' === c) + (d.autoHeight = d.autoWidth = !1), (d.scrolling = 'visible') + 'image' === c && (d.aspectRatio = !0) + 'iframe' === c && s && (d.scrolling = 'scroll') + d.wrap = f(d.tpl.wrap) + .addClass( + 'fancybox-' + + (s ? 'mobile' : 'desktop') + + ' fancybox-type-' + + c + + ' fancybox-tmp ' + + d.wrapCSS + ) + .appendTo(d.parent || 'body') + f.extend(d, { + skin: f('.fancybox-skin', d.wrap), + outer: f('.fancybox-outer', d.wrap), + inner: f('.fancybox-inner', d.wrap), + }) + f.each(['Top', 'Right', 'Bottom', 'Left'], function (a, b) { + d.skin.css('padding' + b, w(d.padding[a])) + }) + b.trigger('onReady') + if ('inline' === c || 'html' === c) { + if (!d.content || !d.content.length) return b._error('content') + } else if (!e) return b._error('href') + 'image' === c + ? b._loadImage() + : 'ajax' === c + ? b._loadAjax() + : 'iframe' === c + ? b._loadIframe() + : b._afterLoad() + } + }, + _error: function (a) { + f.extend(b.coming, { + type: 'html', + autoWidth: !0, + autoHeight: !0, + minWidth: 0, + minHeight: 0, + scrolling: 'no', + hasError: a, + content: b.coming.tpl.error, + }) + b._afterLoad() + }, + _loadImage: function () { + var a = (b.imgPreload = new Image()) + a.onload = function () { + this.onload = this.onerror = null + b.coming.width = this.width / b.opts.pixelRatio + b.coming.height = this.height / b.opts.pixelRatio + b._afterLoad() + } + a.onerror = function () { + this.onload = this.onerror = null + b._error('image') + } + a.src = b.coming.href + !0 !== a.complete && b.showLoading() + }, + _loadAjax: function () { + var a = b.coming + b.showLoading() + b.ajaxLoad = f.ajax( + f.extend({}, a.ajax, { + url: a.href, + error: function (a, e) { + b.coming && 'abort' !== e ? b._error('ajax', a) : b.hideLoading() + }, + success: function (d, e) { + 'success' === e && ((a.content = d), b._afterLoad()) + }, + }) + ) + }, + _loadIframe: function () { + var a = b.coming, + d = f(a.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())) + .attr('scrolling', s ? 'auto' : a.iframe.scrolling) + .attr('src', a.href) + f(a.wrap).bind('onReset', function () { + try { + f(this) + .find('iframe') + .hide() + .attr('src', '//about:blank') + .end() + .empty() + } catch (a) {} + }) + a.iframe.preload && + (b.showLoading(), + d.one('load', function () { + f(this).data('ready', 1) + s || f(this).bind('load.fb', b.update) + f(this) + .parents('.fancybox-wrap') + .width('100%') + .removeClass('fancybox-tmp') + .show() + b._afterLoad() + })) + a.content = d.appendTo(a.inner) + a.iframe.preload || b._afterLoad() + }, + _preloadImages: function () { + var a = b.group, + d = b.current, + e = a.length, + c = d.preload ? Math.min(d.preload, e - 1) : 0, + f, + g + for (g = 1; g <= c; g += 1) + (f = a[(d.index + g) % e]), + 'image' === f.type && f.href && (new Image().src = f.href) + }, + _afterLoad: function () { + var a = b.coming, + d = b.current, + e, + c, + k, + g, + h + b.hideLoading() + if (a && !1 !== b.isActive) + if (!1 === b.trigger('afterLoad', a, d)) + a.wrap.stop(!0).trigger('onReset').remove(), (b.coming = null) + else { + d && + (b.trigger('beforeChange', d), + d.wrap + .stop(!0) + .removeClass('fancybox-opened') + .find('.fancybox-item, .fancybox-nav') + .remove()) + b.unbindEvents() + e = a.content + c = a.type + k = a.scrolling + f.extend(b, { + wrap: a.wrap, + skin: a.skin, + outer: a.outer, + inner: a.inner, + current: a, + previous: d, + }) + g = a.href + switch (c) { + case 'inline': + case 'ajax': + case 'html': + a.selector + ? (e = f('
      ').html(e).find(a.selector)) + : t(e) && + (e.data('fancybox-placeholder') || + e.data( + 'fancybox-placeholder', + f('
      ') + .insertAfter(e) + .hide() + ), + (e = e.show().detach()), + a.wrap.bind('onReset', function () { + f(this).find(e).length && + e + .hide() + .replaceAll(e.data('fancybox-placeholder')) + .data('fancybox-placeholder', !1) + })) + break + case 'image': + e = a.tpl.image.replace('{href}', g) + break + case 'swf': + ;(e = + ''), + (h = ''), + f.each(a.swf, function (a, b) { + e += '' + h += ' ' + a + '="' + b + '"' + }), + (e += + '') + } + ;(!t(e) || !e.parent().is(a.inner)) && a.inner.append(e) + b.trigger('beforeShow') + a.inner.css( + 'overflow', + 'yes' === k ? 'scroll' : 'no' === k ? 'hidden' : k + ) + b._setDimension() + b.reposition() + b.isOpen = !1 + b.coming = null + b.bindEvents() + if (b.isOpened) { + if (d.prevMethod) b.transitions[d.prevMethod]() + } else + f('.fancybox-wrap').not(a.wrap).stop(!0).trigger('onReset').remove() + b.transitions[b.isOpened ? a.nextMethod : a.openMethod]() + b._preloadImages() + } + }, + _setDimension: function () { + var a = b.getViewport(), + d = 0, + e = !1, + c = !1, + e = b.wrap, + k = b.skin, + g = b.inner, + h = b.current, + c = h.width, + j = h.height, + m = h.minWidth, + u = h.minHeight, + n = h.maxWidth, + p = h.maxHeight, + s = h.scrolling, + q = h.scrollOutside ? h.scrollbarWidth : 0, + x = h.margin, + y = l(x[1] + x[3]), + r = l(x[0] + x[2]), + v, + z, + t, + C, + A, + F, + B, + D, + H + e.add(k).add(g).width('auto').height('auto').removeClass('fancybox-tmp') + x = l(k.outerWidth(!0) - k.width()) + v = l(k.outerHeight(!0) - k.height()) + z = y + x + t = r + v + C = E(c) ? ((a.w - z) * l(c)) / 100 : c + A = E(j) ? ((a.h - t) * l(j)) / 100 : j + if ('iframe' === h.type) { + if (((H = h.content), h.autoHeight && 1 === H.data('ready'))) + try { + H[0].contentWindow.document.location && + (g.width(C).height(9999), + (F = H.contents().find('body')), + q && F.css('overflow-x', 'hidden'), + (A = F.outerHeight(!0))) + } catch (G) {} + } else if (h.autoWidth || h.autoHeight) + g.addClass('fancybox-tmp'), + h.autoWidth || g.width(C), + h.autoHeight || g.height(A), + h.autoWidth && (C = g.width()), + h.autoHeight && (A = g.height()), + g.removeClass('fancybox-tmp') + c = l(C) + j = l(A) + D = C / A + m = l(E(m) ? l(m, 'w') - z : m) + n = l(E(n) ? l(n, 'w') - z : n) + u = l(E(u) ? l(u, 'h') - t : u) + p = l(E(p) ? l(p, 'h') - t : p) + F = n + B = p + h.fitToView && ((n = Math.min(a.w - z, n)), (p = Math.min(a.h - t, p))) + z = a.w - y + r = a.h - r + h.aspectRatio + ? (c > n && ((c = n), (j = l(c / D))), + j > p && ((j = p), (c = l(j * D))), + c < m && ((c = m), (j = l(c / D))), + j < u && ((j = u), (c = l(j * D)))) + : ((c = Math.max(m, Math.min(c, n))), + h.autoHeight && 'iframe' !== h.type && (g.width(c), (j = g.height())), + (j = Math.max(u, Math.min(j, p)))) + if (h.fitToView) + if ( + (g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()), + h.aspectRatio) + ) + for (; (a > z || y > r) && c > m && j > u && !(19 < d++); ) + (j = Math.max(u, Math.min(p, j - 10))), + (c = l(j * D)), + c < m && ((c = m), (j = l(c / D))), + c > n && ((c = n), (j = l(c / D))), + g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()) + else + (c = Math.max(m, Math.min(c, c - (a - z)))), + (j = Math.max(u, Math.min(j, j - (y - r)))) + q && 'auto' === s && j < A && c + x + q < z && (c += q) + g.width(c).height(j) + e.width(c + x) + a = e.width() + y = e.height() + e = (a > z || y > r) && c > m && j > u + c = h.aspectRatio + ? c < F && j < B && c < C && j < A + : (c < F || j < B) && (c < C || j < A) + f.extend(h, { + dim: { width: w(a), height: w(y) }, + origWidth: C, + origHeight: A, + canShrink: e, + canExpand: c, + wPadding: x, + hPadding: v, + wrapSpace: y - k.outerHeight(!0), + skinSpace: k.height() - j, + }) + !H && h.autoHeight && j > u && j < p && !c && g.height('auto') + }, + _getPosition: function (a) { + var d = b.current, + e = b.getViewport(), + c = d.margin, + f = b.wrap.width() + c[1] + c[3], + g = b.wrap.height() + c[0] + c[2], + c = { position: 'absolute', top: c[0], left: c[3] } + d.autoCenter && d.fixed && !a && g <= e.h && f <= e.w + ? (c.position = 'fixed') + : d.locked || ((c.top += e.y), (c.left += e.x)) + c.top = w(Math.max(c.top, c.top + (e.h - g) * d.topRatio)) + c.left = w(Math.max(c.left, c.left + (e.w - f) * d.leftRatio)) + return c + }, + _afterZoomIn: function () { + var a = b.current + a && + ((b.isOpen = b.isOpened = !0), + b.wrap.css('overflow', 'visible').addClass('fancybox-opened'), + b.update(), + (a.closeClick || (a.nextClick && 1 < b.group.length)) && + b.inner.css('cursor', 'pointer').bind('click.fb', function (d) { + !f(d.target).is('a') && + !f(d.target).parent().is('a') && + (d.preventDefault(), b[a.closeClick ? 'close' : 'next']()) + }), + a.closeBtn && + f(a.tpl.closeBtn) + .appendTo(b.skin) + .bind('click.fb', function (a) { + a.preventDefault() + b.close() + }), + a.arrows && + 1 < b.group.length && + ((a.loop || 0 < a.index) && + f(a.tpl.prev).appendTo(b.outer).bind('click.fb', b.prev), + (a.loop || a.index < b.group.length - 1) && + f(a.tpl.next).appendTo(b.outer).bind('click.fb', b.next)), + b.trigger('afterShow'), + !a.loop && a.index === a.group.length - 1 + ? b.play(!1) + : b.opts.autoPlay && + !b.player.isActive && + ((b.opts.autoPlay = !1), b.play())) + }, + _afterZoomOut: function (a) { + a = a || b.current + f('.fancybox-wrap').trigger('onReset').remove() + f.extend(b, { + group: {}, + opts: {}, + router: !1, + current: null, + isActive: !1, + isOpened: !1, + isOpen: !1, + isClosing: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + }) + b.trigger('afterClose', a) + }, + }) + b.transitions = { + getOrigPosition: function () { + var a = b.current, + d = a.element, + e = a.orig, + c = {}, + f = 50, + g = 50, + h = a.hPadding, + j = a.wPadding, + m = b.getViewport() + !e && + a.isDom && + d.is(':visible') && + ((e = d.find('img:first')), e.length || (e = d)) + t(e) + ? ((c = e.offset()), + e.is('img') && ((f = e.outerWidth()), (g = e.outerHeight()))) + : ((c.top = m.y + (m.h - g) * a.topRatio), + (c.left = m.x + (m.w - f) * a.leftRatio)) + if ('fixed' === b.wrap.css('position') || a.locked) + (c.top -= m.y), (c.left -= m.x) + return (c = { + top: w(c.top - h * a.topRatio), + left: w(c.left - j * a.leftRatio), + width: w(f + j), + height: w(g + h), + }) + }, + step: function (a, d) { + var e, + c, + f = d.prop + c = b.current + var g = c.wrapSpace, + h = c.skinSpace + if ('width' === f || 'height' === f) + (e = d.end === d.start ? 1 : (a - d.start) / (d.end - d.start)), + b.isClosing && (e = 1 - e), + (c = 'width' === f ? c.wPadding : c.hPadding), + (c = a - c), + b.skin[f](l('width' === f ? c : c - g * e)), + b.inner[f](l('width' === f ? c : c - g * e - h * e)) + }, + zoomIn: function () { + var a = b.current, + d = a.pos, + e = a.openEffect, + c = 'elastic' === e, + k = f.extend({ opacity: 1 }, d) + delete k.position + c + ? ((d = this.getOrigPosition()), a.openOpacity && (d.opacity = 0.1)) + : 'fade' === e && (d.opacity = 0.1) + b.wrap + .css(d) + .animate(k, { + duration: 'none' === e ? 0 : a.openSpeed, + easing: a.openEasing, + step: c ? this.step : null, + complete: b._afterZoomIn, + }) + }, + zoomOut: function () { + var a = b.current, + d = a.closeEffect, + e = 'elastic' === d, + c = { opacity: 0.1 } + e && ((c = this.getOrigPosition()), a.closeOpacity && (c.opacity = 0.1)) + b.wrap.animate(c, { + duration: 'none' === d ? 0 : a.closeSpeed, + easing: a.closeEasing, + step: e ? this.step : null, + complete: b._afterZoomOut, + }) + }, + changeIn: function () { + var a = b.current, + d = a.nextEffect, + e = a.pos, + c = { opacity: 1 }, + f = b.direction, + g + e.opacity = 0.1 + 'elastic' === d && + ((g = 'down' === f || 'up' === f ? 'top' : 'left'), + 'down' === f || 'right' === f + ? ((e[g] = w(l(e[g]) - 200)), (c[g] = '+=200px')) + : ((e[g] = w(l(e[g]) + 200)), (c[g] = '-=200px'))) + 'none' === d + ? b._afterZoomIn() + : b.wrap + .css(e) + .animate(c, { + duration: a.nextSpeed, + easing: a.nextEasing, + complete: b._afterZoomIn, + }) + }, + changeOut: function () { + var a = b.previous, + d = a.prevEffect, + e = { opacity: 0.1 }, + c = b.direction + 'elastic' === d && + (e['down' === c || 'up' === c ? 'top' : 'left'] = + ('up' === c || 'left' === c ? '-' : '+') + '=200px') + a.wrap.animate(e, { + duration: 'none' === d ? 0 : a.prevSpeed, + easing: a.prevEasing, + complete: function () { + f(this).trigger('onReset').remove() + }, + }) + }, + } + b.helpers.overlay = { + defaults: { + closeClick: !0, + speedOut: 200, + showEarly: !0, + css: {}, + locked: !s, + fixed: !0, + }, + overlay: null, + fixed: !1, + el: f('html'), + create: function (a) { + a = f.extend({}, this.defaults, a) + this.overlay && this.close() + this.overlay = f('
      ').appendTo( + b.coming ? b.coming.parent : a.parent + ) + this.fixed = !1 + a.fixed && + b.defaults.fixed && + (this.overlay.addClass('fancybox-overlay-fixed'), (this.fixed = !0)) + }, + open: function (a) { + var d = this + a = f.extend({}, this.defaults, a) + this.overlay + ? this.overlay.unbind('.overlay').width('auto').height('auto') + : this.create(a) + this.fixed || + (n.bind('resize.overlay', f.proxy(this.update, this)), this.update()) + a.closeClick && + this.overlay.bind('click.overlay', function (a) { + if (f(a.target).hasClass('fancybox-overlay')) + return b.isActive ? b.close() : d.close(), !1 + }) + this.overlay.css(a.css).show() + }, + close: function () { + var a, b + n.unbind('resize.overlay') + this.el.hasClass('fancybox-lock') && + (f('.fancybox-margin').removeClass('fancybox-margin'), + (a = n.scrollTop()), + (b = n.scrollLeft()), + this.el.removeClass('fancybox-lock'), + n.scrollTop(a).scrollLeft(b)) + f('.fancybox-overlay').remove().hide() + f.extend(this, { overlay: null, fixed: !1 }) + }, + update: function () { + var a = '100%', + b + this.overlay.width(a).height('100%') + I + ? ((b = Math.max(G.documentElement.offsetWidth, G.body.offsetWidth)), + p.width() > b && (a = p.width())) + : p.width() > n.width() && (a = p.width()) + this.overlay.width(a).height(p.height()) + }, + onReady: function (a, b) { + var e = this.overlay + f('.fancybox-overlay').stop(!0, !0) + e || this.create(a) + a.locked && + this.fixed && + b.fixed && + (e || + (this.margin = + p.height() > n.height() + ? f('html').css('margin-right').replace('px', '') + : !1), + (b.locked = this.overlay.append(b.wrap)), + (b.fixed = !1)) + !0 === a.showEarly && this.beforeShow.apply(this, arguments) + }, + beforeShow: function (a, b) { + var e, c + b.locked && + (!1 !== this.margin && + (f('*') + .filter(function () { + return ( + 'fixed' === f(this).css('position') && + !f(this).hasClass('fancybox-overlay') && + !f(this).hasClass('fancybox-wrap') + ) + }) + .addClass('fancybox-margin'), + this.el.addClass('fancybox-margin')), + (e = n.scrollTop()), + (c = n.scrollLeft()), + this.el.addClass('fancybox-lock'), + n.scrollTop(e).scrollLeft(c)) + this.open(a) + }, + onUpdate: function () { + this.fixed || this.update() + }, + afterClose: function (a) { + this.overlay && + !b.coming && + this.overlay.fadeOut(a.speedOut, f.proxy(this.close, this)) + }, + } + b.helpers.title = { + defaults: { type: 'float', position: 'bottom' }, + beforeShow: function (a) { + var d = b.current, + e = d.title, + c = a.type + f.isFunction(e) && (e = e.call(d.element, d)) + if (q(e) && '' !== f.trim(e)) { + d = f( + '
      ' + + e + + '
      ' + ) + switch (c) { + case 'inside': + c = b.skin + break + case 'outside': + c = b.wrap + break + case 'over': + c = b.inner + break + default: + ;(c = b.skin), + d.appendTo('body'), + I && d.width(d.width()), + d.wrapInner(''), + (b.current.margin[2] += Math.abs(l(d.css('margin-bottom')))) + } + d['top' === a.position ? 'prependTo' : 'appendTo'](c) + } + }, + } + f.fn.fancybox = function (a) { + var d, + e = f(this), + c = this.selector || '', + k = function (g) { + var h = f(this).blur(), + j = d, + k, + l + !g.ctrlKey && + !g.altKey && + !g.shiftKey && + !g.metaKey && + !h.is('.fancybox-wrap') && + ((k = a.groupAttr || 'data-fancybox-group'), + (l = h.attr(k)), + l || ((k = 'rel'), (l = h.get(0)[k])), + l && + '' !== l && + 'nofollow' !== l && + ((h = c.length ? f(c) : e), + (h = h.filter('[' + k + '="' + l + '"]')), + (j = h.index(this))), + (a.index = j), + !1 !== b.open(h, a) && g.preventDefault()) + } + a = a || {} + d = a.index || 0 + !c || !1 === a.live + ? e.unbind('click.fb-start').bind('click.fb-start', k) + : p + .undelegate(c, 'click.fb-start') + .delegate( + c + ":not('.fancybox-item, .fancybox-nav')", + 'click.fb-start', + k + ) + this.filter('[data-fancybox-start=1]').trigger('click') + return this + } + p.ready(function () { + var a, d + f.scrollbarWidth === v && + (f.scrollbarWidth = function () { + var a = f( + '
      ' + ).appendTo('body'), + b = a.children(), + b = b.innerWidth() - b.height(99).innerWidth() + a.remove() + return b + }) + if (f.support.fixedPosition === v) { + a = f.support + d = f('
      ').appendTo('body') + var e = 20 === d[0].offsetTop || 15 === d[0].offsetTop + d.remove() + a.fixedPosition = e + } + f.extend(b.defaults, { + scrollbarWidth: f.scrollbarWidth(), + fixed: f.support.fixedPosition, + parent: f('body'), + }) + a = f(r).width() + J.addClass('fancybox-lock-test') + d = f(r).width() + J.removeClass('fancybox-lock-test') + f( + "' + ).appendTo('head') + }) +})(window, document, jQuery) +;(function () { + 'use strict' + var $, + Animation, + Growl, + __bind = function (fn, me) { + return function () { + return fn.apply(me, arguments) + } + } + $ = jQuery + Animation = (function () { + function Animation() {} + Animation.transitions = { + webkitTransition: 'webkitTransitionEnd', + mozTransition: 'mozTransitionEnd', + oTransition: 'oTransitionEnd', + transition: 'transitionend', + } + Animation.transition = function ($el) { + var el, result, type, _ref + el = $el[0] + _ref = this.transitions + for (type in _ref) { + result = _ref[type] + if (el.style[type] != null) { + return result + } + } + } + return Animation + })() + Growl = (function () { + Growl.settings = { + namespace: 'growl', + duration: 1000, + close: '×', + location: 'default', + style: 'default', + size: 'medium', + } + Growl.growl = function (settings) { + if (settings == null) { + settings = {} + } + this.initialize() + return new Growl(settings) + } + Growl.initialize = function () { + return $('body:not(:has(#growls))').append('
      ') + } + function Growl(settings) { + if (settings == null) { + settings = {} + } + this.html = __bind(this.html, this) + this.$growl = __bind(this.$growl, this) + this.$growls = __bind(this.$growls, this) + this.animate = __bind(this.animate, this) + this.remove = __bind(this.remove, this) + this.dismiss = __bind(this.dismiss, this) + this.present = __bind(this.present, this) + this.close = __bind(this.close, this) + this.cycle = __bind(this.cycle, this) + this.unbind = __bind(this.unbind, this) + this.bind = __bind(this.bind, this) + this.render = __bind(this.render, this) + this.settings = $.extend({}, Growl.settings, settings) + this.$growls().attr('class', this.settings.location) + this.render() + } + Growl.prototype.render = function () { + var $growl + $growl = this.$growl() + this.$growls().append($growl) + this.cycle($growl) + } + Growl.prototype.bind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + this.settings.namespace + '-close') + .on('click', this.close) + } + Growl.prototype.unbind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + (this.settings.namespace - close)) + .off('click', this.close) + } + Growl.prototype.cycle = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .queue(this.present) + .delay(this.settings.duration) + .queue(this.dismiss) + .queue(this.remove) + } + Growl.prototype.close = function (event) { + var $growl + event.preventDefault() + event.stopPropagation() + $growl = this.$growl() + return $growl.stop().queue(this.dismiss).queue(this.remove) + } + Growl.prototype.present = function (callback) { + var $growl + $growl = this.$growl() + this.bind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-incoming', + 'out', + callback + ) + } + Growl.prototype.dismiss = function (callback) { + var $growl + $growl = this.$growl() + this.unbind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-outgoing', + 'in', + callback + ) + } + Growl.prototype.remove = function (callback) { + this.$growl().remove() + return callback() + } + Growl.prototype.animate = function ($element, name, direction, callback) { + var transition + if (direction == null) { + direction = 'in' + } + transition = Animation.transition($element) + $element[direction === 'in' ? 'removeClass' : 'addClass'](name) + $element.offset().position + $element[direction === 'in' ? 'addClass' : 'removeClass'](name) + if (callback == null) { + return + } + if (transition != null) { + $element.one(transition, callback) + } else { + callback() + } + } + Growl.prototype.$growls = function () { + return this.$_growls != null + ? this.$_growls + : (this.$_growls = $('#growls')) + } + Growl.prototype.$growl = function () { + return this.$_growl != null + ? this.$_growl + : (this.$_growl = $(this.html())) + } + Growl.prototype.html = function () { + return ( + "
      \n
      " + + this.settings.close + + "
      \n
      " + + this.settings.title + + "
      \n
      " + + this.settings.message + + '
      \n
      ' + ) + } + return Growl + })() + $.growl = function (options) { + if (options == null) { + options = {} + } + return Growl.growl(options) + } + $.growl.error = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Error!', style: 'error' } + return $.growl($.extend(settings, options)) + } + $.growl.notice = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Notice!', style: 'notice' } + return $.growl($.extend(settings, options)) + } + $.growl.warning = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Warning!', style: 'warning' } + return $.growl($.extend(settings, options)) + } +}).call(this) +;(function (k) { + 'use strict' + k(['jquery'], function ($) { + var j = ($.scrollTo = function (a, b, c) { + return $(window).scrollTo(a, b, c) + }) + j.defaults = { axis: 'xy', duration: 0, limit: !0 } + j.window = function (a) { + return $(window)._scrollable() + } + $.fn._scrollable = function () { + return this.map(function () { + var a = this, + isWin = + !a.nodeName || + $.inArray(a.nodeName.toLowerCase(), [ + 'iframe', + '#document', + 'html', + 'body', + ]) != -1 + if (!isWin) return a + var b = (a.contentWindow || a).document || a.ownerDocument || a + return /webkit/i.test(navigator.userAgent) || + b.compatMode == 'BackCompat' + ? b.body + : b.documentElement + }) + } + $.fn.scrollTo = function (f, g, h) { + if (typeof g == 'object') { + h = g + g = 0 + } + if (typeof h == 'function') h = { onAfter: h } + if (f == 'max') f = 9e9 + h = $.extend({}, j.defaults, h) + g = g || h.duration + h.queue = h.queue && h.axis.length > 1 + if (h.queue) g /= 2 + h.offset = both(h.offset) + h.over = both(h.over) + return this._scrollable() + .each(function () { + if (f == null) return + var d = this, + $elem = $(d), + targ = f, + toff, + attr = {}, + win = $elem.is('html,body') + switch (typeof targ) { + case 'number': + case 'string': + if (/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)) { + targ = both(targ) + break + } + targ = win ? $(targ) : $(targ, this) + if (!targ.length) return + case 'object': + if (targ.is || targ.style) toff = (targ = $(targ)).offset() + } + var e = ($.isFunction(h.offset) && h.offset(d, targ)) || h.offset + $.each(h.axis.split(''), function (i, a) { + var b = a == 'x' ? 'Left' : 'Top', + pos = b.toLowerCase(), + key = 'scroll' + b, + old = d[key], + max = j.max(d, a) + if (toff) { + attr[key] = toff[pos] + (win ? 0 : old - $elem.offset()[pos]) + if (h.margin) { + attr[key] -= parseInt(targ.css('margin' + b)) || 0 + attr[key] -= parseInt(targ.css('border' + b + 'Width')) || 0 + } + attr[key] += e[pos] || 0 + if (h.over[pos]) + attr[key] += targ[a == 'x' ? 'width' : 'height']() * h.over[pos] + } else { + var c = targ[pos] + attr[key] = + c.slice && c.slice(-1) == '%' ? (parseFloat(c) / 100) * max : c + } + if (h.limit && /^\d+$/.test(attr[key])) + attr[key] = attr[key] <= 0 ? 0 : Math.min(attr[key], max) + if (!i && h.queue) { + if (old != attr[key]) animate(h.onAfterFirst) + delete attr[key] + } + }) + animate(h.onAfter) + function animate(a) { + $elem.animate( + attr, + g, + h.easing, + a && + function () { + a.call(this, targ, h) + } + ) + } + }) + .end() + } + j.max = function (a, b) { + var c = b == 'x' ? 'Width' : 'Height', + scroll = 'scroll' + c + if (!$(a).is('html,body')) return a[scroll] - $(a)[c.toLowerCase()]() + var d = 'client' + c, + html = a.ownerDocument.documentElement, + body = a.ownerDocument.body + return Math.max(html[scroll], body[scroll]) - Math.min(html[d], body[d]) + } + function both(a) { + return $.isFunction(a) || $.isPlainObject(a) ? a : { top: a, left: a } + } + return j + }) +})( + typeof define === 'function' && define.amd + ? define + : function (a, b) { + if (typeof module !== 'undefined' && module.exports) { + module.exports = b(require('jquery')) + } else { + b(jQuery) + } + } +) +;(function (a) { + var b = (a.serialScroll = function (c) { + return a(window).serialScroll(c) + }) + b.defaults = { + duration: 1e3, + axis: 'x', + event: 'click', + start: 0, + step: 1, + lock: !0, + cycle: !0, + constant: !0, + } + a.fn.serialScroll = function (c) { + return this.each(function () { + var t = a.extend({}, b.defaults, c), + s = t.event, + i = t.step, + r = t.lazy, + e = t.target ? this : document, + u = a(t.target || this, e), + p = u[0], + m = t.items, + h = t.start, + g = t.interval, + k = t.navigation, + l + if (!r) { + m = d() + } + if (t.force) { + f({}, h) + } + a(t.prev || [], e).bind(s, -i, q) + a(t.next || [], e).bind(s, i, q) + if (!p.ssbound) { + u.bind('prev.serialScroll', -i, q) + .bind('next.serialScroll', i, q) + .bind('goto.serialScroll', f) + } + if (g) { + u.bind('start.serialScroll', function (v) { + if (!g) { + o() + g = !0 + n() + } + }).bind('stop.serialScroll', function () { + o() + g = !1 + }) + } + u.bind('notify.serialScroll', function (x, w) { + var v = j(w) + if (v > -1) { + h = v + } + }) + p.ssbound = !0 + if (t.jump) { + ;(r ? u : d()).bind(s, function (v) { + f(v, j(v.target)) + }) + } + if (k) { + k = a(k, e).bind(s, function (v) { + v.data = Math.round(d().length / k.length) * k.index(this) + f(v, this) + }) + } + function q(v) { + v.data += h + f(v, this) + } + function f(B, z) { + if (!isNaN(z)) { + B.data = z + z = p + } + var C = B.data, + v, + D = B.type, + A = t.exclude ? d().slice(0, -t.exclude) : d(), + y = A.length, + w = A[C], + x = t.duration + if (D) { + B.preventDefault() + } + if (g) { + o() + l = setTimeout(n, t.interval) + } + if (!w) { + v = C < 0 ? 0 : y - 1 + if (h != v) { + C = v + } else { + if (!t.cycle) { + return + } else { + C = y - v - 1 + } + } + w = A[C] + } + if ( + !w || + (t.lock && u.is(':animated')) || + (D && t.onBefore && t.onBefore(B, w, u, d(), C) === !1) + ) { + return + } + if (t.stop) { + u.queue('fx', []).stop() + } + if (t.constant) { + x = Math.abs((x / i) * (h - C)) + } + u.scrollTo(w, x, t).trigger('notify.serialScroll', [C]) + } + function n() { + u.trigger('next.serialScroll') + } + function o() { + clearTimeout(l) + } + function d() { + return a(m, p) + } + function j(w) { + if (!isNaN(w)) { + return w + } + var x = d(), + v + while ((v = x.index(w)) == -1 && w != p) { + w = w.parentNode + } + return v + } + }) + } +})(jQuery) +/*! * jQuery Cookie Plugin * https://github.com/carhartl/jquery-cookie * @@ -1795,12 +95929,1200 @@ settings={title:"Warning!",style:"warning"};return $.growl($.extend(settings,opt * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ -(function($){$.cookie=function(key,value,options){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(value))||value===null||value===undefined)){options=$.extend({},options);if(value===null||value===undefined){options.expires=-1} -if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days)} -value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))} -options=value||{};var decode=options.raw?function(s){return s}:decodeURIComponent;var pairs=document.cookie.split('; ');for(var i=0,pair;pair=pairs[i]&&pairs[i].split('=');i++){if(decode(pair[0])===key)return decode(pair[1]||'')} -return null}})(jQuery);/*! For license information please see front.js.LICENSE.txt */ -(()=>{var t={557:()=>{!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(jQuery)},658:(t,e,n)=>{var r=/[\\^$.*+?()[\]{}|]/g,i=RegExp(r.source),o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,a="object"==typeof self&&self&&self.Object===Object&&self,u=o||a||Function("return this")(),c=Object.prototype.toString,s=u.Symbol,l=s?s.prototype:void 0,f=l?l.toString:void 0;t.exports=function(t){var e;return(t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return f?f.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e))&&i.test(t)?t.replace(r,"\\$&"):t}},741:()=>{},580:()=>{},765:()=>{},379:(t,e,n)=>{"use strict";var r,i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function a(t){for(var e=-1,n=0;n{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.numberSpecification.getMaxFractionDigits()&&(e=e.replace(/0+$/,"")),e.length1&&(o=e(i[1]));var a=!1;o.forEach((function(t){"q"===t.name&&(a=!0)})),a||o.push({name:"q",value:""}),o.forEach((function(e){"q"===e.name&&(e.value+=[e.value.length>0?"/":"",t.data("slider-label"),"-",t.data("slider-unit"),"-",r.values[0],"-",r.values[1]].join(""))}));var u=[i[0],"?",$.param(o)].join("");prestashop.emit("updateFacets",u)},slide:function(e,n){P(t.data("slider-id"),$("#facet_label_".concat(t.data("slider-id"))),n.values[0],n.values[1])}})}))};var M=n(379),I=n.n(M),_=n(580),E=n.n(_);I()(E(),{insert:"head",singleton:!1}),E().locals,$(document).ready((function(){prestashop.on("updateProductList",(function(){$(".faceted-overlay").remove(),k()})),k(),prestashop.on("updateFacets",(function(){1!==$(".faceted-overlay").length&&$("body").append('
      \n
      \n
      \n
      \n
      ')}))}));var D=n(765),O=n.n(D);I()(O(),{insert:"head",singleton:!1}),O().locals;var C=n(741),F=n.n(C);I()(F(),{insert:"head",singleton:!1}),F().locals})()})();/* +;(function ($) { + $.cookie = function (key, value, options) { + if ( + arguments.length > 1 && + (!/Object/.test(Object.prototype.toString.call(value)) || + value === null || + value === undefined) + ) { + options = $.extend({}, options) + if (value === null || value === undefined) { + options.expires = -1 + } + if (typeof options.expires === 'number') { + var days = options.expires, + t = (options.expires = new Date()) + t.setDate(t.getDate() + days) + } + value = String(value) + return (document.cookie = [ + encodeURIComponent(key), + '=', + options.raw ? value : encodeURIComponent(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '', + ].join('')) + } + options = value || {} + var decode = options.raw + ? function (s) { + return s + } + : decodeURIComponent + var pairs = document.cookie.split('; ') + for (var i = 0, pair; (pair = pairs[i] && pairs[i].split('=')); i++) { + if (decode(pair[0]) === key) return decode(pair[1] || '') + } + return null + } +})(jQuery) /*! For license information please see front.js.LICENSE.txt */ +;(() => { + var t = { + 557: () => { + !(function (t) { + if (((t.support.touch = 'ontouchend' in document), t.support.touch)) { + var e, + n = t.ui.mouse.prototype, + r = n._mouseInit, + i = n._mouseDestroy + ;(n._touchStart = function (t) { + !e && + this._mouseCapture(t.originalEvent.changedTouches[0]) && + ((e = !0), + (this._touchMoved = !1), + o(t, 'mouseover'), + o(t, 'mousemove'), + o(t, 'mousedown')) + }), + (n._touchMove = function (t) { + e && ((this._touchMoved = !0), o(t, 'mousemove')) + }), + (n._touchEnd = function (t) { + e && + (o(t, 'mouseup'), + o(t, 'mouseout'), + this._touchMoved || o(t, 'click'), + (e = !1)) + }), + (n._mouseInit = function () { + var e = this + e.element.bind({ + touchstart: t.proxy(e, '_touchStart'), + touchmove: t.proxy(e, '_touchMove'), + touchend: t.proxy(e, '_touchEnd'), + }), + r.call(e) + }), + (n._mouseDestroy = function () { + var e = this + e.element.unbind({ + touchstart: t.proxy(e, '_touchStart'), + touchmove: t.proxy(e, '_touchMove'), + touchend: t.proxy(e, '_touchEnd'), + }), + i.call(e) + }) + } + function o(t, e) { + if (!(t.originalEvent.touches.length > 1)) { + t.preventDefault() + var n = t.originalEvent.changedTouches[0], + r = document.createEvent('MouseEvents') + r.initMouseEvent( + e, + !0, + !0, + window, + 1, + n.screenX, + n.screenY, + n.clientX, + n.clientY, + !1, + !1, + !1, + !1, + 0, + null + ), + t.target.dispatchEvent(r) + } + } + })(jQuery) + }, + 658: (t, e, n) => { + var r = /[\\^$.*+?()[\]{}|]/g, + i = RegExp(r.source), + o = 'object' == typeof n.g && n.g && n.g.Object === Object && n.g, + a = 'object' == typeof self && self && self.Object === Object && self, + u = o || a || Function('return this')(), + c = Object.prototype.toString, + s = u.Symbol, + l = s ? s.prototype : void 0, + f = l ? l.toString : void 0 + t.exports = function (t) { + var e + return (t = + null == (e = t) + ? '' + : (function (t) { + if ('string' == typeof t) return t + if ( + (function (t) { + return ( + 'symbol' == typeof t || + ((function (t) { + return !!t && 'object' == typeof t + })(t) && + '[object Symbol]' == c.call(t)) + ) + })(t) + ) + return f ? f.call(t) : '' + var e = t + '' + return '0' == e && 1 / t == -1 / 0 ? '-0' : e + })(e)) && i.test(t) + ? t.replace(r, '\\$&') + : t + } + }, + 741: () => {}, + 580: () => {}, + 765: () => {}, + 379: (t, e, n) => { + 'use strict' + var r, + i = (function () { + var t = {} + return function (e) { + if (void 0 === t[e]) { + var n = document.querySelector(e) + if ( + window.HTMLIFrameElement && + n instanceof window.HTMLIFrameElement + ) + try { + n = n.contentDocument.head + } catch (t) { + n = null + } + t[e] = n + } + return t[e] + } + })(), + o = [] + function a(t) { + for (var e = -1, n = 0; n < o.length; n++) + if (o[n].identifier === t) { + e = n + break + } + return e + } + function u(t, e) { + for (var n = {}, r = [], i = 0; i < t.length; i++) { + var u = t[i], + c = e.base ? u[0] + e.base : u[0], + s = n[c] || 0, + l = ''.concat(c, ' ').concat(s) + n[c] = s + 1 + var f = a(l), + p = { css: u[1], media: u[2], sourceMap: u[3] } + ;-1 !== f + ? (o[f].references++, o[f].updater(p)) + : o.push({ identifier: l, updater: h(p, e), references: 1 }), + r.push(l) + } + return r + } + function c(t) { + var e = document.createElement('style'), + r = t.attributes || {} + if (void 0 === r.nonce) { + var o = n.nc + o && (r.nonce = o) + } + if ( + (Object.keys(r).forEach(function (t) { + e.setAttribute(t, r[t]) + }), + 'function' == typeof t.insert) + ) + t.insert(e) + else { + var a = i(t.insert || 'head') + if (!a) + throw new Error( + "Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid." + ) + a.appendChild(e) + } + return e + } + var s, + l = + ((s = []), + function (t, e) { + return (s[t] = e), s.filter(Boolean).join('\n') + }) + function f(t, e, n, r) { + var i = n + ? '' + : r.media + ? '@media '.concat(r.media, ' {').concat(r.css, '}') + : r.css + if (t.styleSheet) t.styleSheet.cssText = l(e, i) + else { + var o = document.createTextNode(i), + a = t.childNodes + a[e] && t.removeChild(a[e]), + a.length ? t.insertBefore(o, a[e]) : t.appendChild(o) + } + } + function p(t, e, n) { + var r = n.css, + i = n.media, + o = n.sourceMap + if ( + (i ? t.setAttribute('media', i) : t.removeAttribute('media'), + o && + 'undefined' != typeof btoa && + (r += + '\n/*# sourceMappingURL=data:application/json;base64,'.concat( + btoa(unescape(encodeURIComponent(JSON.stringify(o)))), + ' */' + )), + t.styleSheet) + ) + t.styleSheet.cssText = r + else { + for (; t.firstChild; ) t.removeChild(t.firstChild) + t.appendChild(document.createTextNode(r)) + } + } + var y = null, + d = 0 + function h(t, e) { + var n, r, i + if (e.singleton) { + var o = d++ + ;(n = y || (y = c(e))), + (r = f.bind(null, n, o, !1)), + (i = f.bind(null, n, o, !0)) + } else + (n = c(e)), + (r = p.bind(null, n, e)), + (i = function () { + !(function (t) { + if (null === t.parentNode) return !1 + t.parentNode.removeChild(t) + })(n) + }) + return ( + r(t), + function (e) { + if (e) { + if ( + e.css === t.css && + e.media === t.media && + e.sourceMap === t.sourceMap + ) + return + r((t = e)) + } else i() + } + ) + } + t.exports = function (t, e) { + ;(e = e || {}).singleton || + 'boolean' == typeof e.singleton || + (e.singleton = + (void 0 === r && + (r = Boolean( + window && document && document.all && !window.atob + )), + r)) + var n = u((t = t || []), e) + return function (t) { + if ( + ((t = t || []), + '[object Array]' === Object.prototype.toString.call(t)) + ) { + for (var r = 0; r < n.length; r++) { + var i = a(n[r]) + o[i].references-- + } + for (var c = u(t, e), s = 0; s < n.length; s++) { + var l = a(n[s]) + 0 === o[l].references && (o[l].updater(), o.splice(l, 1)) + } + n = c + } + } + } + }, + }, + e = {} + function n(r) { + if (e[r]) return e[r].exports + var i = (e[r] = { exports: {} }) + return t[r](i, i.exports, n), i.exports + } + ;(n.n = (t) => { + var e = t && t.__esModule ? () => t.default : () => t + return n.d(e, { a: e }), e + }), + (n.d = (t, e) => { + for (var r in e) + n.o(e, r) && + !n.o(t, r) && + Object.defineProperty(t, r, { enumerable: !0, get: e[r] }) + }), + (n.g = (function () { + if ('object' == typeof globalThis) return globalThis + try { + return this || new Function('return this')() + } catch (t) { + if ('object' == typeof window) return window + } + })()), + (n.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e)), + (() => { + 'use strict' + function t(t, e) { + ;(null == e || e > t.length) && (e = t.length) + for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n] + return r + } + n(557) + const e = function (e) { + return e.split('&').map(function (e) { + var n, + r, + i = + ((n = e.split('=')), + (r = 2), + (function (t) { + if (Array.isArray(t)) return t + })(n) || + (function (t, e) { + if ( + 'undefined' != typeof Symbol && + Symbol.iterator in Object(t) + ) { + var n = [], + r = !0, + i = !1, + o = void 0 + try { + for ( + var a, u = t[Symbol.iterator](); + !(r = (a = u.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + ;(i = !0), (o = t) + } finally { + try { + r || null == u.return || u.return() + } finally { + if (i) throw o + } + } + return n + } + })(n, r) || + (function (e, n) { + if (e) { + if ('string' == typeof e) return t(e, n) + var r = Object.prototype.toString.call(e).slice(8, -1) + return ( + 'Object' === r && + e.constructor && + (r = e.constructor.name), + 'Map' === r || 'Set' === r + ? Array.from(e) + : 'Arguments' === r || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) + ? t(e, n) + : void 0 + ) + } + })(n, r) || + (function () { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })()), + o = i[0], + a = i[1] + return { name: o, value: decodeURIComponent(a).replace(/\+/g, ' ') } + }) + }, + r = function t(e) { + !(function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.message = e), + (this.name = 'LocalizationException') + } + function i(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + const o = (function () { + function t(e, n, r, i, o, a, u, c, s, l, f) { + !(function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.decimal = e), + (this.group = n), + (this.list = r), + (this.percentSign = i), + (this.minusSign = o), + (this.plusSign = a), + (this.exponential = u), + (this.superscriptingExponent = c), + (this.perMille = s), + (this.infinity = l), + (this.nan = f), + this.validateData() + } + var e, n + return ( + (e = t), + (n = [ + { + key: 'getDecimal', + value: function () { + return this.decimal + }, + }, + { + key: 'getGroup', + value: function () { + return this.group + }, + }, + { + key: 'getList', + value: function () { + return this.list + }, + }, + { + key: 'getPercentSign', + value: function () { + return this.percentSign + }, + }, + { + key: 'getMinusSign', + value: function () { + return this.minusSign + }, + }, + { + key: 'getPlusSign', + value: function () { + return this.plusSign + }, + }, + { + key: 'getExponential', + value: function () { + return this.exponential + }, + }, + { + key: 'getSuperscriptingExponent', + value: function () { + return this.superscriptingExponent + }, + }, + { + key: 'getPerMille', + value: function () { + return this.perMille + }, + }, + { + key: 'getInfinity', + value: function () { + return this.infinity + }, + }, + { + key: 'getNan', + value: function () { + return this.nan + }, + }, + { + key: 'validateData', + value: function () { + if (!this.decimal || 'string' != typeof this.decimal) + throw new r('Invalid decimal') + if (!this.group || 'string' != typeof this.group) + throw new r('Invalid group') + if (!this.list || 'string' != typeof this.list) + throw new r('Invalid symbol list') + if (!this.percentSign || 'string' != typeof this.percentSign) + throw new r('Invalid percentSign') + if (!this.minusSign || 'string' != typeof this.minusSign) + throw new r('Invalid minusSign') + if (!this.plusSign || 'string' != typeof this.plusSign) + throw new r('Invalid plusSign') + if (!this.exponential || 'string' != typeof this.exponential) + throw new r('Invalid exponential') + if ( + !this.superscriptingExponent || + 'string' != typeof this.superscriptingExponent + ) + throw new r('Invalid superscriptingExponent') + if (!this.perMille || 'string' != typeof this.perMille) + throw new r('Invalid perMille') + if (!this.infinity || 'string' != typeof this.infinity) + throw new r('Invalid infinity') + if (!this.nan || 'string' != typeof this.nan) + throw new r('Invalid nan') + }, + }, + ]) && i(e.prototype, n), + t + ) + })() + function a(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + const u = (function () { + function t(e, n, i, a, u, c, s, l) { + if ( + ((function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.positivePattern = e), + (this.negativePattern = n), + (this.symbol = i), + (this.maxFractionDigits = a), + (this.minFractionDigits = a < u ? a : u), + (this.groupingUsed = c), + (this.primaryGroupSize = s), + (this.secondaryGroupSize = l), + !this.positivePattern || 'string' != typeof this.positivePattern) + ) + throw new r('Invalid positivePattern') + if (!this.negativePattern || 'string' != typeof this.negativePattern) + throw new r('Invalid negativePattern') + if (!(this.symbol && this.symbol instanceof o)) + throw new r('Invalid symbol') + if ('number' != typeof this.maxFractionDigits) + throw new r('Invalid maxFractionDigits') + if ('number' != typeof this.minFractionDigits) + throw new r('Invalid minFractionDigits') + if ('boolean' != typeof this.groupingUsed) + throw new r('Invalid groupingUsed') + if ('number' != typeof this.primaryGroupSize) + throw new r('Invalid primaryGroupSize') + if ('number' != typeof this.secondaryGroupSize) + throw new r('Invalid secondaryGroupSize') + } + var e, n + return ( + (e = t), + (n = [ + { + key: 'getSymbol', + value: function () { + return this.symbol + }, + }, + { + key: 'getPositivePattern', + value: function () { + return this.positivePattern + }, + }, + { + key: 'getNegativePattern', + value: function () { + return this.negativePattern + }, + }, + { + key: 'getMaxFractionDigits', + value: function () { + return this.maxFractionDigits + }, + }, + { + key: 'getMinFractionDigits', + value: function () { + return this.minFractionDigits + }, + }, + { + key: 'isGroupingUsed', + value: function () { + return this.groupingUsed + }, + }, + { + key: 'getPrimaryGroupSize', + value: function () { + return this.primaryGroupSize + }, + }, + { + key: 'getSecondaryGroupSize', + value: function () { + return this.secondaryGroupSize + }, + }, + ]) && a(e.prototype, n), + t + ) + })() + function c(t) { + return (c = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function (t) { + return typeof t + } + : function (t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t + })(t) + } + function s(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + function l(t, e) { + return (l = + Object.setPrototypeOf || + function (t, e) { + return (t.__proto__ = e), t + })(t, e) + } + function f(t, e) { + return !e || ('object' !== c(e) && 'function' != typeof e) + ? (function (t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ) + return t + })(t) + : e + } + function p(t) { + return (p = Object.setPrototypeOf + ? Object.getPrototypeOf + : function (t) { + return t.__proto__ || Object.getPrototypeOf(t) + })(t) + } + const y = (function (t) { + !(function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ) + ;(t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 }, + })), + e && l(t, e) + })(c, t) + var e, + n, + i, + o, + a, + u = + ((o = c), + (a = (function () { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1 + if (Reflect.construct.sham) return !1 + if ('function' == typeof Proxy) return !0 + try { + return ( + Date.prototype.toString.call( + Reflect.construct(Date, [], function () {}) + ), + !0 + ) + } catch (t) { + return !1 + } + })()), + function () { + var t, + e = p(o) + if (a) { + var n = p(this).constructor + t = Reflect.construct(e, arguments, n) + } else t = e.apply(this, arguments) + return f(this, t) + }) + function c(t, e, n, i, o, a, s, l, f, p) { + var y + if ( + ((function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, c), + ((y = u.call(this, t, e, n, i, o, a, s, l)).currencySymbol = f), + (y.currencyCode = p), + !y.currencySymbol || 'string' != typeof y.currencySymbol) + ) + throw new r('Invalid currencySymbol') + if (!y.currencyCode || 'string' != typeof y.currencyCode) + throw new r('Invalid currencyCode') + return y + } + return ( + (e = c), + (i = [ + { + key: 'getCurrencyDisplay', + value: function () { + return 'symbol' + }, + }, + ]), + (n = [ + { + key: 'getCurrencySymbol', + value: function () { + return this.currencySymbol + }, + }, + { + key: 'getCurrencyCode', + value: function () { + return this.currencyCode + }, + }, + ]) && s(e.prototype, n), + i && s(e, i), + c + ) + })(u) + function d(t, e, n) { + return (d = h() + ? Reflect.construct + : function (t, e, n) { + var r = [null] + r.push.apply(r, e) + var i = new (Function.bind.apply(t, r))() + return n && v(i, n.prototype), i + }).apply(null, arguments) + } + function h() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1 + if (Reflect.construct.sham) return !1 + if ('function' == typeof Proxy) return !0 + try { + return ( + Date.prototype.toString.call( + Reflect.construct(Date, [], function () {}) + ), + !0 + ) + } catch (t) { + return !1 + } + } + function v(t, e) { + return (v = + Object.setPrototypeOf || + function (t, e) { + return (t.__proto__ = e), t + })(t, e) + } + function g(t) { + return ( + (function (t) { + if (Array.isArray(t)) return b(t) + })(t) || + (function (t) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(t)) + return Array.from(t) + })(t) || + m(t) || + (function () { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })() + ) + } + function m(t, e) { + if (t) { + if ('string' == typeof t) return b(t, e) + var n = Object.prototype.toString.call(t).slice(8, -1) + return ( + 'Object' === n && t.constructor && (n = t.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(t) + : 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? b(t, e) + : void 0 + ) + } + } + function b(t, e) { + ;(null == e || e > t.length) && (e = t.length) + for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n] + return r + } + function S(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + var w = n(658) + const x = (function () { + function t(e) { + !(function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.numberSpecification = e) + } + var e, n, r + return ( + (e = t), + (r = [ + { + key: 'build', + value: function (e) { + var n + return ( + (n = + void 0 !== e.numberSymbols + ? d(o, g(e.numberSymbols)) + : d(o, g(e.symbol))), + new t( + e.currencySymbol + ? new y( + e.positivePattern, + e.negativePattern, + n, + parseInt(e.maxFractionDigits, 10), + parseInt(e.minFractionDigits, 10), + e.groupingUsed, + e.primaryGroupSize, + e.secondaryGroupSize, + e.currencySymbol, + e.currencyCode + ) + : new u( + e.positivePattern, + e.negativePattern, + n, + parseInt(e.maxFractionDigits, 10), + parseInt(e.minFractionDigits, 10), + e.groupingUsed, + e.primaryGroupSize, + e.secondaryGroupSize + ) + ) + ) + }, + }, + ]), + (n = [ + { + key: 'format', + value: function (t, e) { + void 0 !== e && (this.numberSpecification = e) + var n, + r, + i = Math.abs(t).toFixed( + this.numberSpecification.getMaxFractionDigits() + ), + o = + ((n = this.extractMajorMinorDigits(i)), + (r = 2), + (function (t) { + if (Array.isArray(t)) return t + })(n) || + (function (t, e) { + if ( + 'undefined' != typeof Symbol && + Symbol.iterator in Object(t) + ) { + var n = [], + r = !0, + i = !1, + o = void 0 + try { + for ( + var a, u = t[Symbol.iterator](); + !(r = (a = u.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + ;(i = !0), (o = t) + } finally { + try { + r || null == u.return || u.return() + } finally { + if (i) throw o + } + } + return n + } + })(n, r) || + m(n, r) || + (function () { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })()), + a = o[0], + u = o[1], + c = (a = this.splitMajorGroups(a)) + ;(u = this.adjustMinorDigitsZeroes(u)) && (c += '.' + u) + var s = this.getCldrPattern(t < 0) + return ( + (c = this.addPlaceholders(c, s)), + (c = this.replaceSymbols(c)), + this.performSpecificReplacements(c) + ) + }, + }, + { + key: 'extractMajorMinorDigits', + value: function (t) { + var e = t.toString().split('.') + return [e[0], void 0 === e[1] ? '' : e[1]] + }, + }, + { + key: 'splitMajorGroups', + value: function (t) { + if (!this.numberSpecification.isGroupingUsed()) return t + var e = t.split('').reverse(), + n = [] + for ( + n.push( + e.splice(0, this.numberSpecification.getPrimaryGroupSize()) + ); + e.length; + + ) + n.push( + e.splice( + 0, + this.numberSpecification.getSecondaryGroupSize() + ) + ) + n = n.reverse() + var r = [] + return ( + n.forEach(function (t) { + r.push(t.reverse().join('')) + }), + r.join(',') + ) + }, + }, + { + key: 'adjustMinorDigitsZeroes', + value: function (t) { + var e = t + return ( + e.length > this.numberSpecification.getMaxFractionDigits() && + (e = e.replace(/0+$/, '')), + e.length < this.numberSpecification.getMinFractionDigits() && + (e = e.padEnd( + this.numberSpecification.getMinFractionDigits(), + '0' + )), + e + ) + }, + }, + { + key: 'getCldrPattern', + value: function (t) { + return t + ? this.numberSpecification.getNegativePattern() + : this.numberSpecification.getPositivePattern() + }, + }, + { + key: 'replaceSymbols', + value: function (t) { + var e = this.numberSpecification.getSymbol(), + n = {} + return ( + (n['.'] = e.getDecimal()), + (n[','] = e.getGroup()), + (n['-'] = e.getMinusSign()), + (n['%'] = e.getPercentSign()), + (n['+'] = e.getPlusSign()), + this.strtr(t, n) + ) + }, + }, + { + key: 'strtr', + value: function (t, e) { + var n = Object.keys(e).map(w) + return t + .split(RegExp('('.concat(n.join('|'), ')'))) + .map(function (t) { + return e[t] || t + }) + .join('') + }, + }, + { + key: 'addPlaceholders', + value: function (t, e) { + return e.replace(/#?(,#+)*0(\.[0#]+)*/, t) + }, + }, + { + key: 'performSpecificReplacements', + value: function (t) { + return this.numberSpecification instanceof y + ? t + .split('¤') + .join(this.numberSpecification.getCurrencySymbol()) + : t + }, + }, + ]) && S(e.prototype, n), + r && S(e, r), + t + ) + })() + var j = {}, + P = function (t, e, n, r) { + void 0 === j[t] + ? e.text( + e + .text() + .replace( + /([^\d]*)(?:[\d\s.,]+)([^\d]+)(?:[\d\s.,]+)(.*)/, + '$1'.concat(n, '$2').concat(r, '$3') + ) + ) + : e.text(''.concat(j[t].format(n), ' - ').concat(j[t].format(r))) + } + const k = function () { + $('.faceted-slider').each(function () { + var t = $(this), + n = t.data('slider-values'), + r = t.data('slider-specifications') + null != r && (j[t.data('slider-id')] = x.build(r)), + P( + t.data('slider-id'), + $('#facet_label_'.concat(t.data('slider-id'))), + null === n ? t.data('slider-min') : n[0], + null === n ? t.data('slider-max') : n[1] + ), + $('#slider-range_'.concat(t.data('slider-id'))).slider({ + range: !0, + min: t.data('slider-min'), + max: t.data('slider-max'), + values: [ + null === n ? t.data('slider-min') : n[0], + null === n ? t.data('slider-max') : n[1], + ], + stop: function (n, r) { + var i = t.data('slider-encoded-url').split('?'), + o = [] + i.length > 1 && (o = e(i[1])) + var a = !1 + o.forEach(function (t) { + 'q' === t.name && (a = !0) + }), + a || o.push({ name: 'q', value: '' }), + o.forEach(function (e) { + 'q' === e.name && + (e.value += [ + e.value.length > 0 ? '/' : '', + t.data('slider-label'), + '-', + t.data('slider-unit'), + '-', + r.values[0], + '-', + r.values[1], + ].join('')) + }) + var u = [i[0], '?', $.param(o)].join('') + prestashop.emit('updateFacets', u) + }, + slide: function (e, n) { + P( + t.data('slider-id'), + $('#facet_label_'.concat(t.data('slider-id'))), + n.values[0], + n.values[1] + ) + }, + }) + }) + } + var M = n(379), + I = n.n(M), + _ = n(580), + E = n.n(_) + I()(E(), { insert: 'head', singleton: !1 }), + E().locals, + $(document).ready(function () { + prestashop.on('updateProductList', function () { + $('.faceted-overlay').remove(), k() + }), + k(), + prestashop.on('updateFacets', function () { + 1 !== $('.faceted-overlay').length && + $('body').append( + '
      \n
      \n
      \n
      \n
      ' + ) + }) + }) + var D = n(765), + O = n.n(D) + I()(O(), { insert: 'head', singleton: !1 }), O().locals + var C = n(741), + F = n.n(C) + I()(F(), { insert: 'head', singleton: !1 }), F().locals + })() +})() +/* * NOTICE OF LICENSE * * This product is licensed for one customer to use on one installation (test stores and multishop included). @@ -1819,371 +97141,11180 @@ return null}})(jQuery);/*! For license information please see front.js.LICENSE.t * @copyright 2022 idnovate.com * @license See above */ -(function($,F){F.transitions.dropIn=function(){var endPos=F._getPosition(!0);endPos.top=(parseInt(endPos.top,10)-200)+'px';endPos.opacity=0;F.wrap.css(endPos).show().animate({top:'+=200px',opacity:1},{duration:F.current.openSpeed,complete:F._afterZoomIn})};F.transitions.dropOut=function(){F.wrap.removeClass('fancybox-opened').animate({top:'-=200px',opacity:0},{duration:F.current.closeSpeed,complete:F._afterZoomOut})};F.transitions.superscaleIn=function(){F.wrap.addClass('superscale');setTimeout(function(){F.wrap.addClass('superscale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.superscaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('superscale superscale-transitions');F._afterZoomOut()},300)} -F.transitions.fadescaleIn=function(){F.wrap.addClass('fadescale');setTimeout(function(){F.wrap.addClass('fadescale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fadescaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fadescale fadescale-transitions');F._afterZoomOut()},300)} -F.transitions.sliderightIn=function(){F.wrap.addClass('slideright');setTimeout(function(){F.wrap.addClass('slideright-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sliderightOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slideright slideright-transitions');F._afterZoomOut()},300)} -F.transitions.slidebottomIn=function(){F.wrap.addClass('slidebottom');setTimeout(function(){F.wrap.addClass('slidebottom-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slidebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slidebottom slidebottom-transitions');F._afterZoomOut()},300)} -F.transitions.newspaperIn=function(){F.wrap.addClass('newspaper');setTimeout(function(){F.wrap.addClass('newspaper-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.newspaperOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('newspaper newspaper-transitions');F._afterZoomOut()},300)} -F.transitions.fallIn=function(){F.wrap.addClass('fall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fall');F._afterZoomOut()},300)} -F.transitions.sidefallIn=function(){F.wrap.addClass('sidefall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sidefallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sidefall');F._afterZoomOut()},300)} -F.transitions.stickyupIn=function(){F.wrap.addClass('stickyup');setTimeout(function(){F.wrap.addClass('show stickyup-transitions');F._afterZoomIn()})} -F.transitions.stickyupOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('stickyup stickyup-transitions');F._afterZoomOut()},300)} -F.transitions.horizontalflipIn=function(){F.wrap.addClass('horizflip');setTimeout(function(){F.wrap.addClass('show horizflip-transitions');F._afterZoomIn()})} -F.transitions.horizontalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('horizflip horizflip-transitions');F._afterZoomOut()},300)} -F.transitions.verticalflipIn=function(){F.wrap.addClass('vertflip');setTimeout(function(){F.wrap.addClass('show vertflip-transitions');F._afterZoomIn()})} -F.transitions.verticalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('vertflip vertflip-transitions');F._afterZoomOut()},300)} -F.transitions.signIn=function(){F.wrap.addClass('sign');setTimeout(function(){F.wrap.addClass('show sign-transitions');F._afterZoomIn()})} -F.transitions.signOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sign sign-transitions');F._afterZoomOut()},300)} -F.transitions.slitIn=function(){F.wrap.addClass('slit');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slitOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slit');F._afterZoomOut()},300)} -F.transitions.rotatebottomIn=function(){F.wrap.addClass('rotatebottom');setTimeout(function(){F.wrap.addClass('show rotatebottom-transitions');F._afterZoomIn()})} -F.transitions.rotatebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotatebottom-transitions rotatebottom');F._afterZoomOut()},300)} -F.transitions.rotateleftIn=function(){F.wrap.addClass('rotateleft');setTimeout(function(){F.wrap.addClass('show rotateleft-transitions');F._afterZoomIn()})} -F.transitions.rotateleftOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotateleft-transitions rotateleft');F._afterZoomOut()},300)} -F.transitions.blurIn=function(){F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').addClass('blur-overlay');F.wrap.addClass('blur');setTimeout(function(){F.wrap.addClass('blur-transitions show');F._afterZoomIn()})} -F.transitions.blurOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('blur-transitions blur');F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').removeClass('blur-overlay');F._afterZoomOut()},300)}})(jQuery,jQuery.fancybox);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){return function(A){"use strict";var L=A.tablesorter={version:"2.32.0",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:null,ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssIconDisabled:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(t,r){var e,o,s,a;t&&t.tHead&&0!==t.tBodies.length&&!0!==t.hasInitialized?(e="",o=A(t),s=A.metadata,t.hasInitialized=!1,t.isProcessing=!0,t.config=r,A.data(t,"tablesorter",r),L.debug(r,"core")&&(console[console.group?"group":"log"]("Initializing tablesorter v"+L.version),A.data(t,"startoveralltimer",new Date)),r.supportsDataObject=((a=A.fn.jquery.split("."))[0]=parseInt(a[0],10),1':"",i.$headers=A(A.map(i.$table.find(i.selectorHeaders),function(e,t){var r,o,s,a,n=A(e);if(!L.getClosest(n,"tr").hasClass(i.cssIgnoreRow))return/(th|td)/i.test(e.nodeName)||(a=L.getClosest(n,"th, td"),n.attr("data-column",a.attr("data-column"))),r=L.getColumnData(i.table,i.headers,t,!0),i.headerContent[t]=n.html(),""===i.headerTemplate||n.find("."+L.css.headerIn).length||(s=i.headerTemplate.replace(L.regex.templateContent,n.html()).replace(L.regex.templateIcon,n.find("."+L.css.icon).length?"":l),i.onRenderTemplate&&(o=i.onRenderTemplate.apply(n,[t,s]))&&"string"==typeof o&&(s=o),n.html('
      '+s+"
      ")),i.onRenderHeader&&i.onRenderHeader.apply(n,[t,i,i.$table]),o=parseInt(n.attr("data-column"),10),e.column=o,a=L.getOrder(L.getData(n,r,"sortInitialOrder")||i.sortInitialOrder),i.sortVars[o]={count:-1,order:a?i.sortReset?[1,0,2]:[1,0]:i.sortReset?[0,1,2]:[0,1],lockedOrder:!1,sortedBy:""},void 0!==(a=L.getData(n,r,"lockedOrder")||!1)&&!1!==a&&(i.sortVars[o].lockedOrder=!0,i.sortVars[o].order=L.getOrder(a)?[1,1]:[0,0]),i.headerList[t]=e,n.addClass(L.css.header+" "+i.cssHeader),L.getClosest(n,"tr").addClass(L.css.headerRow+" "+i.cssHeaderRow).attr("role","row"),i.tabIndex&&n.attr("tabindex",0),e})),i.$headerIndexed=[],r=0;r'),t=e.$table.width(),s=(o=e.$tbodies.find("tr:first").children(":visible")).length,a=0;a").css("width",r));e.$table.prepend(n)}},getData:function(e,t,r){var o,s,a="",e=A(e);return e.length?(o=!!A.metadata&&e.metadata(),s=" "+(e.attr("class")||""),void 0!==e.data(r)||void 0!==e.data(r.toLowerCase())?a+=e.data(r)||e.data(r.toLowerCase()):o&&void 0!==o[r]?a+=o[r]:t&&void 0!==t[r]?a+=t[r]:" "!==s&&s.match(" "+r+"-")&&(a=s.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),A.trim(a)):""},getColumnData:function(e,t,r,o,s){if("object"!=typeof t||null===t)return t;var a,e=(e=A(e)[0]).config,s=s||e.$headers,n=e.$headerIndexed&&e.$headerIndexed[r]||s.find('[data-column="'+r+'"]:last');if(void 0!==t[r])return o?t[r]:t[s.index(n)];for(a in t)if("string"==typeof a&&n.filter(a).add(n.find(a)).length)return t[a]},isProcessing:function(e,t,r){var o=(e=A(e))[0].config,s=r||e.find("."+L.css.header);t?(void 0!==r&&0'),A.fn.detach?t.detach():t.remove();r=A(e).find("colgroup.tablesorter-savemyplace");t.insertAfter(r),r.remove(),e.isProcessing=!1},clearTableBody:function(e){A(e)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(e){var t,r="[",o=L.characterEquivalents;if(!L.characterRegex){for(t in L.characterRegexArray={},o)"string"==typeof t&&(r+=o[t],L.characterRegexArray[t]=new RegExp("["+o[t]+"]","g"));L.characterRegex=new RegExp(r+"]")}if(L.characterRegex.test(e))for(t in o)"string"==typeof t&&(e=e.replace(L.characterRegexArray[t],t));return e},validateOptions:function(e){var t,r,o,s,a="headers sortForce sortList sortAppend widgets".split(" "),n=e.originalSettings;if(n){for(t in L.debug(e,"core")&&(s=new Date),n)if("undefined"===(o=typeof L.defaults[t]))console.warn('Tablesorter Warning! "table.config.'+t+'" option not recognized');else if("object"===o)for(r in n[t])o=L.defaults[t]&&typeof L.defaults[t][r],A.inArray(t,a)<0&&"undefined"===o&&console.warn('Tablesorter Warning! "table.config.'+t+"."+r+'" option not recognized');L.debug(e,"core")&&console.log("validate options time:"+L.benchmark(s))}},restoreHeaders:function(e){for(var t,r=A(e)[0].config,o=r.$table.find(r.selectorHeaders),s=o.length,a=0;a tr").children("th, td"),!1===t&&0<=A.inArray("uitheme",s.widgets)&&(o.triggerHandler("applyWidgetId",["uitheme"]),o.triggerHandler("applyWidgetId",["zebra"])),a.find("tr").not(n).remove(),a="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(s.namespace+" "),o.removeData("tablesorter").unbind(a.replace(L.regex.spaces," ")),s.$headers.add(i).removeClass([L.css.header,s.cssHeader,s.cssAsc,s.cssDesc,L.css.sortAsc,L.css.sortDesc,L.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),n.find(s.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(s.namespace+" ").replace(L.regex.spaces," ")),L.restoreHeaders(e),o.toggleClass(L.css.table+" "+s.tableClass+" tablesorter-"+s.theme,!1===t),o.removeClass(s.namespace.slice(1)),e.hasInitialized=!1,delete e.config.cache,"function"==typeof r&&r(e),L.debug(s,"core"))&&console.log("tablesorter has been removed")}};A.fn.tablesorter=function(t){return this.each(function(){var e=A.extend(!0,{},L.defaults,t,L.instanceMethods);e.originalSettings=t,!this.hasInitialized&&L.buildTable&&"TABLE"!==this.nodeName?L.buildTable(this,e):L.setup(this,e)})},window.console&&window.console.log||(L.logs=[],(console={}).log=console.warn=console.error=console.table=function(){var e=1> Using",a?c:"cookies"),h.parseJSON&&(l=a?h.parseJSON(u[c][t]||"null")||{}:(i=p.cookie.split(/[;\s|=]/),0!==(n=h.inArray(t,i)+1)&&h.parseJSON(i[n]||"null")||{})),void 0===r||!u.JSON||!JSON.hasOwnProperty("stringify"))return l&&l[f]?l[f][e]:"";l[f]||(l[f]={}),l[f][e]=r,a?u[c][t]=JSON.stringify(l):((s=new Date).setTime(s.getTime()+31536e6),p.cookie=t+"="+JSON.stringify(l).replace(/\"/g,'"')+"; expires="+s.toGMTString()+"; path=/")}}(e,window,document),function(S){"use strict";var C=S.tablesorter||{};C.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"glyphicon glyphicon-chevron-up",iconSortDesc:"glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},S.extend(C.css,{wrapper:"tablesorter-wrapper"}),C.addWidget({id:"uitheme",priority:10,format:function(e,t,r){var i,a,l,s,n,o,c,d,f,h,u,p,g=C.themes,m=t.$table.add(S(t.namespace+"_extra_table")),b=t.$headers.add(S(t.namespace+"_extra_headers")),y=t.theme||"jui",_=g[y]||{},v=S.trim([_.sortNone,_.sortDesc,_.sortAsc,_.active].join(" ")),w=S.trim([_.iconSortNone,_.iconSortDesc,_.iconSortAsc].join(" ")),x=C.debug(t,"uitheme");for(x&&(n=new Date),m.hasClass("tablesorter-"+y)&&t.theme===t.appliedTheme&&r.uitheme_applied||(r.uitheme_applied=!0,h=g[t.appliedTheme]||{},g=(p=!S.isEmptyObject(h))?[h.sortNone,h.sortDesc,h.sortAsc,h.active].join(" "):"",u=p?[h.iconSortNone,h.iconSortDesc,h.iconSortAsc].join(" "):"",p&&(r.zebra[0]=S.trim(" "+r.zebra[0].replace(" "+h.even,"")),r.zebra[1]=S.trim(" "+r.zebra[1].replace(" "+h.odd,"")),t.$tbodies.children().removeClass([h.even,h.odd].join(" "))),_.even&&(r.zebra[0]+=" "+_.even),_.odd&&(r.zebra[1]+=" "+_.odd),m.children("caption").removeClass(h.caption||"").addClass(_.caption),d=m.removeClass((t.appliedTheme?"tablesorter-"+(t.appliedTheme||""):"")+" "+(h.table||"")).addClass("tablesorter-"+y+" "+(_.table||"")).children("tfoot"),t.appliedTheme=t.theme,d.length&&d.children("tr").removeClass(h.footerRow||"").addClass(_.footerRow).children("th, td").removeClass(h.footerCells||"").addClass(_.footerCells),b.removeClass((p?[h.header,h.hover,g].join(" "):"")||"").addClass(_.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(e){S(this)["mouseenter"===e.type?"addClass":"removeClass"](_.hover||"")}),b.each(function(){var e=S(this);e.find("."+C.css.wrapper).length||e.wrapInner('
      ')}),t.cssIcon&&b.find("."+C.css.icon).removeClass(p?[h.icons,u].join(" "):"").addClass(_.icons||""),C.hasWidget(t.table,"filter")&&(a=function(){m.children("thead").children("."+C.css.filterRow).removeClass(p&&h.filterRow||"").addClass(_.filterRow||"")},r.filter_initialized?a():m.one("filterInit",function(){a()}))),i=0;i> Applied "+y+" theme"+C.benchmark(n))},remove:function(e,t,r,i){var a,l,s,n,o;r.uitheme_applied&&(a=t.$table,t=t.appliedTheme||"jui",l=C.themes[t]||C.themes.jui,s=a.children("thead").children(),n=l.sortNone+" "+l.sortDesc+" "+l.sortAsc,o=l.iconSortNone+" "+l.iconSortDesc+" "+l.iconSortAsc,a.removeClass("tablesorter-"+t+" "+l.table),r.uitheme_applied=!1,i||(a.find(C.css.header).removeClass(l.header),s.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(l.hover+" "+n+" "+l.active).filter("."+C.css.filterRow).removeClass(l.filterRow),s.find("."+C.css.icon).removeClass(l.icons+" "+o)))}})}(e),function(m){"use strict";var b=m.tablesorter||{};b.addWidget({id:"columns",priority:65,options:{columns:["primary","secondary","tertiary"]},format:function(e,t,r){for(var i,a,l,s,n,o=t.$table,c=t.$tbodies,d=t.sortList,f=d.length,h=r&&r.columns||["primary","secondary","tertiary"],u=h.length-1,p=h.join(" "),g=0;g=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(e,t,r){if(!O.orTest.test(t.iFilter)&&!O.orSplit.test(t.filter)||O.regex.test(t.filter))return null;for(var i,a,l=A.extend({},t),s=t.filter.split(O.orSplit),n=t.iFilter.split(O.orSplit),o=s.length,c=0;c]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(l.data("placeholder")||l.attr("data-placeholder")||f.filter_placeholder.select||"")+"":"",0<=(a=n=i).indexOf(f.filter_selectSourceSeparator)&&(a=(n=i.split(f.filter_selectSourceSeparator))[1],n=n[0]),t+="");d.$table.find("thead").find("select."+g.filter+'[data-column="'+s+'"]').append(t),("function"==typeof(a=f.filter_selectSource)||E.getColumnData(r,a,s))&&I.buildSelect(d.table,s,"",!0,l.hasClass(f.filter_onlyAvail))}I.buildDefault(r,!0),I.bindSearch(r,d.$table.find("."+g.filter),!0),f.filter_external&&I.bindSearch(r,f.filter_external),f.filter_hideFilters&&I.hideFilters(d),d.showProcessing&&(a="filterStart filterEnd ".split(" ").join(d.namespace+"filter-sp "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(e,t){l=t?d.$table.find("."+g.header).filter("[data-column]").filter(function(){return""!==t[A(this).data("column")]}):"",E.isProcessing(r,"filterStart"===e.type,t?l:"")})),d.filteredRows=d.totalRows,a="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(d.namespace+"filter "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(){I.completeInit(this)}),d.pager&&d.pager.initialized&&!f.filter_initialized?(d.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){I.filterInitComplete(d)},100)):f.filter_initialized||I.completeInit(r)},completeInit:function(e){var t=e.config,r=t.widgetOptions,i=I.setDefaults(e,t,r)||[];!i.length||t.delayInit&&""===i.join("")||E.setFilters(e,i,!0),t.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){r.filter_initialized||I.filterInitComplete(t)},100)},formatterUpdated:function(e,t){e=e&&e.closest("table"),e=e.length&&e[0].config,e=e&&e.widgetOptions;e&&!e.filter_initialized&&(e.filter_formatterInit[t]=1)},filterInitComplete:function(e){function t(){a.filter_initialized=!0,e.lastSearch=e.$table.data("lastSearch"),e.$table.triggerHandler("filterInit",e),I.findRows(e.table,e.lastSearch||[]),E.debug(e,"filter")&&console.log("Filter >> Widget initialized")}var r,i,a=e.widgetOptions,l=0;if(A.isEmptyObject(a.filter_formatter))t();else{for(i=a.filter_formatterInit.length,r=0;r',p=0;p");for(t.$filters=A(u+="").appendTo(t.$table.children("thead").eq(0)).children("td"),p=0;p").appendTo(i):((o=E.getColumnData(e,r.filter_formatter,p))?(r.filter_formatterCount++,(u=(u=o(i,p))&&0===u.length?i.children("input"):u)&&(0===u.parent().length||u.parent().length&&u.parent()[0]!==i[0])&&i.append(u)):u=A('').appendTo(i),u&&(c=a.data("placeholder")||a.attr("data-placeholder")||r.filter_placeholder.search||"",u.attr("placeholder",c))),u)&&(n=(A.isArray(r.filter_cssFilter)?void 0!==r.filter_cssFilter[p]&&r.filter_cssFilter[p]||"":r.filter_cssFilter)||"",u.addClass(g.filter+" "+n),c=(n=r.filter_filterLabel).match(/{{([^}]+?)}}/g),A.each(c=c||["{{label}}"],function(e,t){var r=new RegExp(t,"g"),t=a.attr("data-"+t.replace(/{{|}}/g,"")),t=void 0===t?a.text():t;n=n.replace(r,A.trim(t))}),u.attr({"data-column":i.attr("data-column"),"aria-label":n}),s)&&(u.attr("placeholder","").addClass(g.filterDisabled)[0].disabled=!0)},bindSearch:function(a,e,t){var r,l,s,i,n;a=A(a)[0],(e=A(e)).length&&(l=a.config,s=l.widgetOptions,i=l.namespace+"filter",n=s.filter_$externalFilters,!0!==t&&(r=s.filter_anyColumnSelector+","+s.filter_multipleColumnSelector,s.filter_$anyMatch=e.filter(r),n&&n.length?s.filter_$externalFilters=s.filter_$externalFilters.add(e):s.filter_$externalFilters=e,E.setFilters(a,l.$table.data("lastSearch")||[],!1===t)),r="keypress keyup keydown search change input ".split(" ").join(i+" "),e.attr("data-lastSearchTime",(new Date).getTime()).unbind(r.replace(E.regex.spaces," ")).bind("keydown"+i,function(e){if(e.which===o.escape&&!a.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+i,function(e){s=a.config.widgetOptions;var t=parseInt(A(this).attr("data-column"),10),r="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);if(void 0===r&&(r=s.filter_liveSearch.fallback||!1),A(this).attr("data-lastSearchTime",(new Date).getTime()),e.which===o.escape)this.value=s.filter_resetOnEsc?"":l.lastSearch[t];else{if(""!==this.value&&("number"==typeof r&&this.value.length=o.left&&e.which<=o.down)))return;if(!1===r&&""!==this.value&&e.which!==o.enter)return}I.searching(a,!0,!0,t)}).bind("search change keypress input blur ".split(" ").join(i+" "),function(e){var t=parseInt(A(this).attr("data-column"),10),r=e.type,i="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);!a.config.widgetOptions.filter_initialized||e.which!==o.enter&&"search"!==r&&"blur"!==r&&("change"!==r&&"input"!==r||!0!==i&&(!0===i||"INPUT"===e.target.nodeName)||this.value===l.lastSearch[t])||(e.preventDefault(),A(this).attr("data-lastSearchTime",(new Date).getTime()),I.searching(a,"keypress"!==r||e.which===o.enter,!0,t))}))},searching:function(e,t,r,i){var a,l=e.config.widgetOptions;void 0===i?a=!1:void 0===(a="boolean"==typeof l.filter_liveSearch?l.filter_liveSearch:E.getColumnData(e,l.filter_liveSearch,i))&&(a=l.filter_liveSearch.fallback||!1),clearTimeout(l.filter_searchTimer),void 0===t||!0===t?l.filter_searchTimer=setTimeout(function(){I.checkFilters(e,t,r)},a?l.filter_searchDelay:10):I.checkFilters(e,t,r)},equalFilters:function(e,t,r){var i,a=[],l=[],s=e.columns+1;for(t=A.isArray(t)?t:[],r=A.isArray(r)?r:[],i=0;i=e.columns&&(s=e.columns-1);l<=s;l++)f[f.length]=l;t=t.replace(i[c],"")}if(!r&&/,/.test(t))for(d=(n=t.split(/\s*,\s*/)).length,o=0;o> Starting filter widget search",r),m=new Date),F.filteredRows=0,t=$||[],c=F.totalRows=0;c> Searching through "+(v&&_> Completed search"+E.benchmark(m)),R.filter_initialized&&(F.$table.triggerHandler("filterBeforeEnd",F),F.$table.triggerHandler("filterEnd",F)),setTimeout(function(){E.applyWidget(F.table)},0)}},getOptionSource:function(e,t,r){var i=(e=A(e)[0]).config,a=!1,l=i.widgetOptions.filter_selectSource,i=i.$table.data("lastSearch")||[],s="function"==typeof l||E.getColumnData(e,l,t);if(r&&""!==i[t]&&(r=!1),!0===s)a=l(e,t,r);else{if(s instanceof A||"string"===A.type(s)&&0<=s.indexOf(""))return s;if(A.isArray(s))a=s;else if("object"===A.type(l)&&s&&null===(a=s(e,t,r)))return null}return!1===a&&(a=I.getOptions(e,t,r)),I.processOptions(e,t,a)},processOptions:function(i,a,r){if(!A.isArray(r))return!1;var l,e,t,s,n,o=(i=A(i)[0]).config,c=null!=a&&0<=a&&a'+(h.data("placeholder")||h.attr("data-placeholder")||f.filter_placeholder.select||"")+"",h=d.$table.find("thead").find("select."+g.filter+'[data-column="'+t+'"]').val();if(void 0!==r&&""!==r||null!==(r=I.getOptionSource(e,t,a))){if(A.isArray(r)){for(l=0;l"}else""+c!="[object Object]"&&(0<=(s=n=c=(""+c).replace(O.quote,""")).indexOf(f.filter_selectSourceSeparator)&&(s=(o=n.split(f.filter_selectSourceSeparator))[0],n=o[1]),u+=""!==c?"":"");r=[]}e=(d.$filters||d.$table.children("thead")).find("."+g.filter),(a=(e=f.filter_$externalFilters?e&&e.length?e.add(f.filter_$externalFilters):f.filter_$externalFilters:e).filter('select[data-column="'+t+'"]')).length&&(a[i?"html":"append"](u),A.isArray(r)||a.append(r).val(h),a.val(h))}}},buildDefault:function(e,t){for(var r,i,a=e.config,l=a.widgetOptions,s=a.columns,n=0;n'),y=b.parent().addClass($.css.stickyHide).css({position:d.length?"absolute":"fixed",padding:parseInt(b.parent().parent().css("padding-left"),10),top:p+m,left:0,visibility:"hidden",zIndex:o.stickyHeaders_zIndex||2}),p=b.children("thead:first"),_="",v=function(e,t){for(var r,i,a,l=e.filter(":visible"),s=l.length,n=0;na.top&&i thead:gt(0), tr.sticky-false").hide(),b.find("> tbody, > tfoot").remove(),b.find("caption").toggle(o.stickyHeaders_includeCaption),l=p.children().children(),b.css({height:0,width:0,margin:0}),l.find("."+$.css.resizer).remove(),c.addClass("hasStickyHeaders").bind("pagerComplete"+s,function(){x()}),$.bindEvents(e,p.children().children("."+$.css.header)),o.stickyHeaders_appendTo?C(o.stickyHeaders_appendTo).append(y):c.after(y),t.onRenderHeader)for(i=(a=p.children("tr").children()).length,r=0;r";c("head").append(e)}),d.resizable={init:function(e,t){if(!e.$table.hasClass("hasResizable")){e.$table.addClass("hasResizable");var r,i,a,l=e.$table,s=l.parent(),n=parseInt(l.css("margin-top"),10),o=t.resizable_vars={useStorage:d.storage&&!1!==t.resizable,$wrap:s,mouseXPosition:0,$target:null,$next:null,overflow:"auto"===s.css("overflow")||"scroll"===s.css("overflow")||"auto"===s.css("overflow-x")||"scroll"===s.css("overflow-x"),storedSizes:[]};for(d.resizableReset(e.table,!0),o.tableWidth=l.width(),o.fullWidth=Math.abs(s.width()-o.tableWidth)<20,o.useStorage&&o.overflow&&(d.storage(e.table,"tablesorter-table-original-css-width",o.tableWidth),a=d.storage(e.table,"tablesorter-table-resized-width")||"auto",d.resizable.setWidth(l,a,!0)),t.resizable_vars.storedSizes=s=(o.useStorage?d.storage(e.table,d.css.resizableStorage):[])||[],d.resizable.setWidths(e,t,s),d.resizable.updateStoredSizes(e,t),t.$resizable_container=c('
      ').css({top:n}).insertBefore(l),i=0;i').appendTo(t.$resizable_container).attr({"data-column":i,unselectable:"on"}).data("header",r).bind("selectstart",!1);d.resizable.bindings(e,t)}},updateStoredSizes:function(e,t){var r,i,a=e.columns,l=t.resizable_vars;for(l.storedSizes=[],r=0;r> Saving last sort: "+e.sortList+o.benchmark(a)):(l.addClass("hasSaveSort"),s="",o.storage&&(s=c(e),n&&console.log('saveSort >> Last sort loaded: "'+s+'"'+o.benchmark(a)),l.bind("saveSortReset",function(e){e.stopPropagation(),o.storage(t,"tablesorter-savesort","")})),i&&s&&0 -* @copyright 2007-2014 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ -$(document).ready(function(){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons();$("#pdproductattributeslist table.table").tablesorter({theme:'default',headerTemplate:'{content} {icon}',widgets:["uitheme","columns"],});prestashop.on('updateProductList',function(params){if(typeof(params)!=='undefined'){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons()}})});let PdProductAttributesList={initFancyboxOnProductImages(){if(!!$.prototype.fancybox){$('.option_image a.fancybox').fancybox({'hideOnContentClick':!0,'openEffect':'elastic','closeEffect':'elastic','helpers':{overlay:{locked:!1}}})}},initTouchSpinOnProductQtyInputs(){if(!!$.prototype.TouchSpin){var max=parseInt($("#pdproductattributeslist input[name='qty']").data('max'));$("#pdproductattributeslist input[name='qty']").TouchSpin({min:0,max:max,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '});$("#pdproductattributeslist_grid input[name='qty']").TouchSpin({min:0,max:9999999999,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '})}},executeAddProductsToCart(products){$.ajax({type:'POST',url:pdproductattributeslist_ajax_link,dataType:"json",data:{'action':'addProductsToCart','products':products,'secure_key':pdproductattributeslist_secure_key,'ajax':1},success:function(resp){if(resp){prestashop.emit('updateCart',{reason:{cart:[]},resp:resp});Object.entries(resp).forEach(([k,v])=>{if(v.response){if(v.id_product_attribute>0){message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+' '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}else{message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}}else if(v.response==!1){if(v.id_product_attribute>0){message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}else{message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}}})}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error,duration:15000})}}})},initEventAddToCartToButtons(){$('body').on('click','button.add-to-cart-pdproductattributeslist',function(){var products_array=[];var tr_colection=$(this).parent().parent().parent().find('tr');$(tr_colection).each(function(index){elem=$(this).find('td.option_gty');qty=parseInt(elem.find('input.quantity').val());if(elem.length>0&&qty>0){var product={'id_product':parseInt(elem.data('id-product')),'id_product_attribute':parseInt(elem.data('id-product-attribute')),'quantity':qty,'id_customization':0};products_array.push(product)}});if(products_array.length>0){PdProductAttributesList.executeAddProductsToCart(products_array)}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error})}})}};;$(document).ready(function(){$.each(list_menu,function(index,value){if(value.type=="horizontal"){var megamenu_element=$('.cavas_menu[data-megamenu-id='+value.id+']');if($("body").attr("id")=="index")isHomeMenu=1;megamenu_element.find(".megamenu > li > a").each(function(){menuURL=$(this).attr("href").replace("https://","").replace("http://","").replace("www.","").replace(/#\w*/,"");if((currentURL==menuURL)||(currentURL.replace(current_link,"")==menuURL)||isHomeMenu){$(this).parent().addClass("active");return!1}});if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)} -if(value.show_cavas==1){$.fn.OffCavasmenu=function(opts){var config=$.extend({},{opt1:null,text_warning_select:text_warning_select_txt,text_confirm_remove:text_confirm_remove_txt,JSON:null},opts);this.each(function(){var $btn=megamenu_element.find('.navbar-toggler');var $nav=null;if(!$btn.length) -return;var $nav=$("
      ");var $menucontent=$($btn.data('target')).find('.megamenu').clone();$("body").append($nav);$('body main').append("
      ");$(".megamenu-overlay[data-megamenu-id="+value.id+"]").click(function(){$btn.trigger('click')});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").append($menucontent);$("html").addClass("off-canvas");$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find(".off-canvas-button-megamenu").click(function(){off_canvas_active()});if($btn.is(':visible')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")} -$btn.click(function(){off_canvas_active();$('.off-canvas-nav-megamenu').removeClass('active');if(!$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").hasClass('active')&&$('body').hasClass('off-canvas-active')){$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").addClass('active');auto_height(value.id)}})});return this} -megamenu_element.OffCavasmenu();megamenu_element.find('.navbar-toggler').click(function(){$('body,html').animate({scrollTop:0},0);return!1});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('.offcanvas-mainnav .caret').click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height(value.id)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height(value.id)});$(this).parent('li').addClass('open-sub')}});$(window).resize(function(){if($(window).width()>991){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else{auto_height(value.id)}})}else{var $bt=megamenu_element.find('.navbar-toggler');var $menu=megamenu_element.find('.leo-top-menu');$bt.click(function(){if($menu.hasClass('in')){megamenu_element.removeClass('active')}else{if(!megamenu_element.hasClass('active')){megamenu_element.addClass('active')}}});megamenu_element.find('.leo-top-menu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find(".leo-top-menu li a").each(function(){if((this).hasAttribute('data-toggle')){$(this).removeAttr('data-toggle')}});megamenu_element.find(".leo-top-menu li a.dropdown-toggle").click(function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}}) -megamenu_element.find(".leo-top-menu .caret").click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').addClass('open-sub')}});if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')} -auto_height_off(megamenu_element);$(window).resize(function(){auto_height_off(megamenu_element);if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')}})}}else{var megamenu_element=$('.leo-verticalmenu[data-megamenu-id='+value.id+']');megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".verticalmenu .dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr('data-toggle');megamenu_element.find(".verticalmenu .caret").click(function(){if($(this).parents('.verticalmenu').hasClass('active-button')){var $parent=$(this).parent('li');if($parent.hasClass('open-sub')){$parent.find('.dropdown-menu').first().slideUp('fast',function(){$parent.removeClass('open-sub')})}else{if($parent.siblings('.open-sub').length>0){$parent.siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast',function(){$parent.siblings('.open-sub').removeClass('open-sub')});$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}else{$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}} -return!1}});if($(window).width()>991){megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.find('.leo-verticalmenu').removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')} -$(window).resize(function(){if($(window).width()>991){megamenu_element.find('.verticalmenu .dropdown').removeClass('open-sub');megamenu_element.find('.verticalmenu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')}});scrollSliderBarMenu(megamenu_element)} -if(typeof value.list_tab!=='undefined'&&value.list_tab.length>0){$.each(value.list_tab,function(key,val){megamenu_element.find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();$(this).tab('show')}) -$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();if(!$(this).hasClass('active')){var wrapper_tab=$(this).closest('.panel-group');var tab_href=$(this).attr('href');wrapper_tab.find('.nav-link').removeClass('active');wrapper_tab.find('.nav-item').removeClass('active');wrapper_tab.find('.tab-pane').removeClass('active');$(this).addClass('active');$(this).parents('.nav-item').addClass('active');wrapper_tab.find(tab_href).addClass('active')}})})} -if(typeof value.level!=='undefined'&&typeof value.limit!=='undefined'){megamenu_element.find('.widget-category_image ul.level0').each(function(){$(this).find('ul').removeClass('dropdown-sub dropdown-menu')});megamenu_element.find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}})} -if(value.type=="horizontal"){$(window).resize(function(){if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)}})} -if(value.type=="horizontal"&&value.show_cavas==1){$(document.body).on('click','[data-toggle="dropdown"]',function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}})}}) -$('.dropdown-menu.level1').parent().removeClass('aligned-fullwidth');$(".fancybox").fancybox({openEffect:'none',closeEffect:'none'})}) -function auto_height_off(menu_object){wrapper_height=$("#page").innerHeight();ul_height=menu_object.find(".leo-top-menu ul").innerHeight();ul_offset_top=menu_object.find(".leo-top-menu ul").offset().top;if(ul_offset_top+ul_height>wrapper_height){if(!$("#page").hasClass('megamenu-autoheight')){$("#page").addClass('megamenu-autoheight')}}else{$("#page").removeClass('megamenu-autoheight')}} -function auto_height(menu_id){windowHeight=$(window).innerHeight();$(".off-canvas-nav-megamenu[data-megamenu-id="+menu_id+"] .offcanvas-mainnav").css('min-height',windowHeight)} -function off_canvas_active(){if($('body').hasClass('off-canvas-active')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else if($('body').hasClass('off-canvas-inactive')){$("body").removeClass("off-canvas-inactive").addClass("off-canvas-active")}else{$("body").addClass("off-canvas-active")}} -function set_target_blank(show,megamenu_element){if(show){megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('data-toggle');$(this).removeAttr('data-toggle');$(this).attr('remove-data-toggle',value)}})}else{megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('remove-data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('remove-data-toggle');$(this).removeAttr('remove-data-toggle');$(this).attr('data-toggle',value)}})}} -function scrollSliderBarMenu(megamenu_element){var menuElement=megamenu_element;var columnElement=null;var maxWindowSize=991;if($(columnElement).length&&$(window).width()>=maxWindowSize)showOrHideSliderBarMenu(columnElement,menuElement,1);megamenu_element.find(".verticalmenu-button").click(function(){if($(menuElement).hasClass('active')){showOrHideSliderBarMenu(columnElement,menuElement,0)}else{showOrHideSliderBarMenu(columnElement,menuElement,1)}});var lastWidth=$(window).width();$(window).resize(function(){if($(window).width()!=lastWidth){if($(window).width()=991) -columnElement.css('padding-top',($('.block_content',$(menuElement)).height())+'px')}else{$(menuElement).removeClass('active');if($(columnElement).length)columnElement.css('padding-top','')}};$(document).ready(function(){if(typeof enable_js_lang!='undefined'){$('ul#first-currencies li:not(.selected)').css('opacity',0.3);$('ul#first-currencies li:not(.selected)').hover(function(){$(this).css('opacity',1)},function(){$(this).css('opacity',0.3)})} -if(typeof enable_js_currency!='undefined'){$("#setCurrency").mouseover(function(){$(this).addClass("countries_hover");$(".currencies_ul").addClass("currencies_ul_hover")});$("#setCurrency").mouseout(function(){$(this).removeClass("countries_hover");$(".currencies_ul").removeClass("currencies_ul_hover")})} -if(typeof js_country!='undefined'){$("#countries").mouseover(function(){$(this).addClass("countries_hover");$(".countries_ul").addClass("countries_ul_hover")});$("#countries").mouseout(function(){$(this).removeClass("countries_hover");$(".countries_ul").removeClass("countries_ul_hover")})}}) -function setCurrency(id_currency){$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:prestashop.urls.base_url+'index.php'+'?rand='+new Date().getTime(),data:'controller=change-currency&id_currency='+parseInt(id_currency),success:function(msg){location.reload(!0)}})};var matched,browser;jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=!0;browser.version=matched.version} -if(browser.chrome){browser.webkit=!0}else if(browser.webkit){browser.safari=!0} -jQuery.browser=browser;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options)})},result:function(handler){return this.bind("result",handler)},search:function(handler){return this.trigger("search",[handler])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(options){return this.trigger("setOptions",[options])},unautocomplete:function(){return this.trigger("unautocomplete")}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var $loading=$input.parent().find('.leoproductsearch-loading');var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:!1};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=!1;return!1}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev()}else{onChange(0,!0)} -break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next()}else{onChange(0,!0)} -break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp()}else{onChange(0,!0)} -break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown()}else{onChange(0,!0)} -break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=!0;return!1} -break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break}}).focus(function(){hasFocus++}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults()}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,!0)}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i1){v=words.slice(0,words.length-1).join(options.multipleSeparator)+options.multipleSeparator+v} -v+=options.multipleSeparator} -$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return!0} -function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return} -var currentValue=$input.val();if(!skipPrevCheck&¤tValue==previousValue) -return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase) -currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow)}else{stopLoading();select.hide()}};function trimWords(value){if(!value){return[""]} -var words=value.split(options.multipleSeparator);var result=[];$.each(words,function(i,value){if($.trim(value)) -result[i]=$.trim(value)});return result} -function lastWord(value){if(!options.multiple) -return value;var words=trimWords(value);return words[words.length-1]} -function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$.Autocompleter.Selection(input,previousValue.length,previousValue.length+sValue.length)}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200)};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""))}else $input.val("")}})} -if(wasVisible) -$.Autocompleter.Selection(input,input.value.length,input.value.length)};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show()}else{hideResultsNow()}};function request(term,success,failure){$loading.show();if(!options.matchCase) -term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data)}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({cate:$('input[name="cate"]').val(),q:lastWord(term),limit:options.max},extraParams),success:function(data){var str='
      ';if(data.suggest.length){str+='
      ';str+='
      '+$("#leosearchtopbox").data('label-suggestion')+'
      ';str+='';str+='
      '} -if(data.category.length){str+='
      ';str+='
      '+$("#leosearchtopbox").data('search-for')+' "'+$("#leo_search_query_top").val()+'"
      ';if(data.category.length){str+=''} -str+='
      '} -if(data.products.length){str+='
      ';str+='
      '+$("#leosearchtopbox").data('products-for')+' "'+$("#leo_search_query_top").val()+'"
      ';str+='';str+='
      ';str+='
      ';str+=''}else{str+="
      Nie znaleziono żadnego produktu
      ";str+='
      '} -$(".leoproductsearch-result .ac_results").html(str);$(".leoproductsearch-result .ac_results").show();$(".suggest-item").click(function(){$("#leo_search_query_top").val($(this).attr('href'));onChange(0,!0);return!1});$loading.hide()}})}else{select.emptyList();failure(term)}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")},scroll:!0,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase) -s=s.toLowerCase();var i=s.indexOf(sub);if(i==-1)return!1;return i==0||options.matchContains};function add(q,cate,value){if(length>options.cacheLength){flush()} -if(!data[q]){length++} -data[q]=value} -function populate(){if(!options.data)return!1;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x)}})}} -return csub}else if(data[q]){return data[q]}else if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x}});return csub}}} -return null}}};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=!0,element,list;function init(){if(!needsInit) -return;element=$("
      ").hide().addClass(options.resultsClass).css("position","absolute").appendTo('.leoproductsearch-result');list=$("
      ").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE)}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return!1}).mousedown(function(){config.mouseDownOnSelect=!0}).mouseup(function(){config.mouseDownOnSelect=!1});if(options.width>0) -element.css("width",options.width);needsInit=!1} -function target(event){var element=event.target;while(element&&element.tagName!="LI") -element=element.parentNode;if(!element) -return[];return element} -function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight())}else if(offset=listItems.size()){active=0}} -function limitNumberOfItems(available){return options.max&&options.max").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i])} -listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0} -if($.fn.bgiframe) -list.bgiframe()} -return{display:function(d,q){init();data=d;term=q;fillList()},next:function(){moveSelect(1)},prev:function(){moveSelect(-1)},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active)}else{moveSelect(-8)}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active)}else{moveSelect(8)}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1},visible:function(){return element&&element.is(":visible")},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0])},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:($(input).width()+parseInt($(input).css('padding-left'))+parseInt($(input).css('padding-right'))+parseInt($(input).css('margin-left'))+parseInt($(input).css('margin-right'))),top:"100%",left:0}).show();if(options.scroll){list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")))}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data")},emptyList:function(){list&&list.empty()},unbind:function(){element&&element.remove()}}};$.Autocompleter.Selection=function(field,start,end){if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(!0);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select()}else if(field.setSelectionRange){field.setSelectionRange(start,end)}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end}} -field.focus()}})(jQuery);var instantSearchQueries=[];$(document).click(function(event){var $target=$(event.target);if(!$target.closest('.leoproductsearch-content').length){$(".leoproductsearch-result .ac_results").hide()}});$(document).ready(function(){$('#leo_search_query_top').click(function(){if($(this).val().length>2){$(".leoproductsearch-result .ac_results").show()}});if(typeof ajaxsearch!='undefined'&&ajaxsearch&&typeof blocksearch_type!=='undefined'&&blocksearch_type){var width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).autocomplete(leo_search_url,{minChars:3,max:numpro_display,width:(width_ac_results>0?width_ac_results:500),selectFirst:!1,scroll:!1,dataType:"json",formatItem:function(data,i,max,value,term){return value},extraParams:{ajaxSearch:1,id_lang:prestashop.language.id,leoproductsearch_static_token:leoproductsearch_static_token,leoproductsearch_token:leoproductsearch_token}}).result(function(event,data,formatted){$('#leo_search_query_'+blocksearch_type).val(data.name);document.location.href=data.url});$("#leo_search_query_"+blocksearch_type).click(function(){width_ac_results=$(this).outerWidth();$(this).setOptions({width:width_ac_results})})} -$('.cate-item').click(function(){if(!$(this).hasClass('active')){$('.cate-item.active').removeClass('active');var cate_id=$(this).data('cate-id');var cate_name=$(this).data('cate-name');$('#leosearch-cate-id').val(cate_id);$('#leosearchtop-cate-id').val(cate_id);$('#dropdownListCate span').text(cate_name);$('#dropdownListCateTop span').text(cate_name);$(this).addClass('active')} -$('#dropdownListCate').trigger('click');$('#dropdownListCateTop').trigger('click');var e=jQuery.Event("keydown");e.keyCode=40;$(this).parents('form').find('.search_query').focus().trigger(e);return!1});$('.search_query').click(function(){if($(this).val()!=''){}});$('.search_query').change(function(){if($(this).val()!=''){var e=jQuery.Event("keydown");e.keyCode=40;$(this).trigger(e)}})});$(window).resize(function(){updatePositionOfResult()});function updatePositionOfResult(){if($('.ac_results').length){width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).setOptions({width:width_ac_results});$('.ac_results').width(width_ac_results)}} -function tryToCloseInstantSearch(){if($('#old_center_column').length>0){$('#center_column').remove();$('#old_center_column').attr('id','center_column');$('#center_column').show();return!1}} -function stopInstantSearchQueries(){for(i=0;iPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3000,centerMode:!1,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('', + nextArrow: + '', + autoplay: !1, + autoplaySpeed: 3000, + centerMode: !1, + centerPadding: '50px', + cssEase: 'ease', + customPaging: function (slider, i) { + return $('") + .addClass(this._triggerClass) + .html( + f ? a('').attr({ src: f, alt: e, title: e }) : e + ) + )), + b[h ? 'before' : 'after'](c.trigger), + c.trigger.click(function () { + return ( + a.datepicker._datepickerShowing && + a.datepicker._lastInput === b[0] + ? a.datepicker._hideDatepicker() + : a.datepicker._datepickerShowing && + a.datepicker._lastInput !== b[0] + ? (a.datepicker._hideDatepicker(), + a.datepicker._showDatepicker(b[0])) + : a.datepicker._showDatepicker(b[0]), + !1 + ) + })) + }, + _autoSize: function (a) { + if (this._get(a, 'autoSize') && !a.inline) { + var b, + c, + d, + e, + f = new Date(2009, 11, 20), + g = this._get(a, 'dateFormat') + g.match(/[DM]/) && + ((b = function (a) { + for (c = 0, d = 0, e = 0; e < a.length; e++) + a[e].length > c && ((c = a[e].length), (d = e)) + return d + }), + f.setMonth( + b(this._get(a, g.match(/MM/) ? 'monthNames' : 'monthNamesShort')) + ), + f.setDate( + b(this._get(a, g.match(/DD/) ? 'dayNames' : 'dayNamesShort')) + + 20 - + f.getDay() + )), + a.input.attr('size', this._formatDate(a, f).length) + } + }, + _inlineDatepicker: function (b, d) { + var e = a(b) + e.hasClass(this.markerClassName) || + (e.addClass(this.markerClassName).append(d.dpDiv), + a.data(b, c, d), + this._setDate(d, this._getDefaultDate(d), !0), + this._updateDatepicker(d), + this._updateAlternate(d), + d.settings.disabled && this._disableDatepicker(b), + d.dpDiv.css('display', 'block')) + }, + _dialogDatepicker: function (b, d, e, f, h) { + var i, + j, + k, + l, + m, + n = this._dialogInst + return ( + n || + ((this.uuid += 1), + (i = 'dp' + this.uuid), + (this._dialogInput = a( + "" + )), + this._dialogInput.keydown(this._doKeyDown), + a('body').append(this._dialogInput), + (n = this._dialogInst = this._newInst(this._dialogInput, !1)), + (n.settings = {}), + a.data(this._dialogInput[0], c, n)), + g(n.settings, f || {}), + (d = d && d.constructor === Date ? this._formatDate(n, d) : d), + this._dialogInput.val(d), + (this._pos = h ? (h.length ? h : [h.pageX, h.pageY]) : null), + this._pos || + ((j = document.documentElement.clientWidth), + (k = document.documentElement.clientHeight), + (l = + document.documentElement.scrollLeft || document.body.scrollLeft), + (m = document.documentElement.scrollTop || document.body.scrollTop), + (this._pos = [j / 2 - 100 + l, k / 2 - 150 + m])), + this._dialogInput + .css('left', this._pos[0] + 20 + 'px') + .css('top', this._pos[1] + 'px'), + (n.settings.onSelect = e), + (this._inDialog = !0), + this.dpDiv.addClass(this._dialogClass), + this._showDatepicker(this._dialogInput[0]), + a.blockUI && a.blockUI(this.dpDiv), + a.data(this._dialogInput[0], c, n), + this + ) + }, + _destroyDatepicker: function (b) { + var d, + e = a(b), + f = a.data(b, c) + e.hasClass(this.markerClassName) && + ((d = b.nodeName.toLowerCase()), + a.removeData(b, c), + 'input' === d + ? (f.append.remove(), + f.trigger.remove(), + e + .removeClass(this.markerClassName) + .unbind('focus', this._showDatepicker) + .unbind('keydown', this._doKeyDown) + .unbind('keypress', this._doKeyPress) + .unbind('keyup', this._doKeyUp)) + : ('div' !== d && 'span' !== d) || + e.removeClass(this.markerClassName).empty()) + }, + _enableDatepicker: function (b) { + var d, + e, + f = a(b), + g = a.data(b, c) + f.hasClass(this.markerClassName) && + ((d = b.nodeName.toLowerCase()), + 'input' === d + ? ((b.disabled = !1), + g.trigger + .filter('button') + .each(function () { + this.disabled = !1 + }) + .end() + .filter('img') + .css({ opacity: '1.0', cursor: '' })) + : ('div' !== d && 'span' !== d) || + ((e = f.children('.' + this._inlineClass)), + e.children().removeClass('ui-state-disabled'), + e + .find('select.ui-datepicker-month, select.ui-datepicker-year') + .prop('disabled', !1)), + (this._disabledInputs = a.map(this._disabledInputs, function (a) { + return a === b ? null : a + }))) + }, + _disableDatepicker: function (b) { + var d, + e, + f = a(b), + g = a.data(b, c) + f.hasClass(this.markerClassName) && + ((d = b.nodeName.toLowerCase()), + 'input' === d + ? ((b.disabled = !0), + g.trigger + .filter('button') + .each(function () { + this.disabled = !0 + }) + .end() + .filter('img') + .css({ opacity: '0.5', cursor: 'default' })) + : ('div' !== d && 'span' !== d) || + ((e = f.children('.' + this._inlineClass)), + e.children().addClass('ui-state-disabled'), + e + .find('select.ui-datepicker-month, select.ui-datepicker-year') + .prop('disabled', !0)), + (this._disabledInputs = a.map(this._disabledInputs, function (a) { + return a === b ? null : a + })), + (this._disabledInputs[this._disabledInputs.length] = b)) + }, + _isDisabledDatepicker: function (a) { + if (!a) return !1 + for (var b = 0; b < this._disabledInputs.length; b++) + if (this._disabledInputs[b] === a) return !0 + return !1 + }, + _getInst: function (b) { + try { + return a.data(b, c) + } catch (a) { + throw 'Missing instance data for this datepicker' + } + }, + _optionDatepicker: function (c, d, e) { + var f, + h, + i, + j, + k = this._getInst(c) + return 2 === arguments.length && 'string' == typeof d + ? 'defaults' === d + ? a.extend({}, a.datepicker._defaults) + : k + ? 'all' === d + ? a.extend({}, k.settings) + : this._get(k, d) + : null + : ((f = d || {}), + 'string' == typeof d && ((f = {}), (f[d] = e)), + void ( + k && + (this._curInst === k && this._hideDatepicker(), + (h = this._getDateDatepicker(c, !0)), + (i = this._getMinMaxDate(k, 'min')), + (j = this._getMinMaxDate(k, 'max')), + g(k.settings, f), + null !== i && + f.dateFormat !== b && + f.minDate === b && + (k.settings.minDate = this._formatDate(k, i)), + null !== j && + f.dateFormat !== b && + f.maxDate === b && + (k.settings.maxDate = this._formatDate(k, j)), + 'disabled' in f && + (f.disabled + ? this._disableDatepicker(c) + : this._enableDatepicker(c)), + this._attachments(a(c), k), + this._autoSize(k), + this._setDate(k, h), + this._updateAlternate(k), + this._updateDatepicker(k)) + )) + }, + _changeDatepicker: function (a, b, c) { + this._optionDatepicker(a, b, c) + }, + _refreshDatepicker: function (a) { + var b = this._getInst(a) + b && this._updateDatepicker(b) + }, + _setDateDatepicker: function (a, b) { + var c = this._getInst(a) + c && + (this._setDate(c, b), + this._updateDatepicker(c), + this._updateAlternate(c)) + }, + _getDateDatepicker: function (a, b) { + var c = this._getInst(a) + return ( + c && !c.inline && this._setDateFromField(c, b), + c ? this._getDate(c) : null + ) + }, + _doKeyDown: function (b) { + var c, + d, + e, + f = a.datepicker._getInst(b.target), + g = !0, + h = f.dpDiv.is('.ui-datepicker-rtl') + if (((f._keyEvent = !0), a.datepicker._datepickerShowing)) + switch (b.keyCode) { + case 9: + a.datepicker._hideDatepicker(), (g = !1) + break + case 13: + return ( + (e = a( + 'td.' + + a.datepicker._dayOverClass + + ':not(.' + + a.datepicker._currentClass + + ')', + f.dpDiv + )), + e[0] && + a.datepicker._selectDay( + b.target, + f.selectedMonth, + f.selectedYear, + e[0] + ), + (c = a.datepicker._get(f, 'onSelect')), + c + ? ((d = a.datepicker._formatDate(f)), + c.apply(f.input ? f.input[0] : null, [d, f])) + : a.datepicker._hideDatepicker(), + !1 + ) + case 27: + a.datepicker._hideDatepicker() + break + case 33: + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? -a.datepicker._get(f, 'stepBigMonths') + : -a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 34: + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? +a.datepicker._get(f, 'stepBigMonths') + : +a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 35: + ;(b.ctrlKey || b.metaKey) && a.datepicker._clearDate(b.target), + (g = b.ctrlKey || b.metaKey) + break + case 36: + ;(b.ctrlKey || b.metaKey) && a.datepicker._gotoToday(b.target), + (g = b.ctrlKey || b.metaKey) + break + case 37: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, h ? 1 : -1, 'D'), + (g = b.ctrlKey || b.metaKey), + b.originalEvent.altKey && + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? -a.datepicker._get(f, 'stepBigMonths') + : -a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 38: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, -7, 'D'), + (g = b.ctrlKey || b.metaKey) + break + case 39: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, h ? -1 : 1, 'D'), + (g = b.ctrlKey || b.metaKey), + b.originalEvent.altKey && + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? +a.datepicker._get(f, 'stepBigMonths') + : +a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 40: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, 7, 'D'), + (g = b.ctrlKey || b.metaKey) + break + default: + g = !1 + } + else + 36 === b.keyCode && b.ctrlKey + ? a.datepicker._showDatepicker(this) + : (g = !1) + g && (b.preventDefault(), b.stopPropagation()) + }, + _doKeyPress: function (b) { + var c, + d, + e = a.datepicker._getInst(b.target) + if (a.datepicker._get(e, 'constrainInput')) + return ( + (c = a.datepicker._possibleChars( + a.datepicker._get(e, 'dateFormat') + )), + (d = String.fromCharCode( + null == b.charCode ? b.keyCode : b.charCode + )), + b.ctrlKey || b.metaKey || d < ' ' || !c || c.indexOf(d) > -1 + ) + }, + _doKeyUp: function (b) { + var c, + d = a.datepicker._getInst(b.target) + if (d.input.val() !== d.lastVal) + try { + ;(c = a.datepicker.parseDate( + a.datepicker._get(d, 'dateFormat'), + d.input ? d.input.val() : null, + a.datepicker._getFormatConfig(d) + )), + c && + (a.datepicker._setDateFromField(d), + a.datepicker._updateAlternate(d), + a.datepicker._updateDatepicker(d)) + } catch (a) {} + return !0 + }, + _showDatepicker: function (b) { + if ( + ((b = b.target || b), + 'input' !== b.nodeName.toLowerCase() && + (b = a('input', b.parentNode)[0]), + !a.datepicker._isDisabledDatepicker(b) && + a.datepicker._lastInput !== b) + ) { + var c, d, e, f, h, i, j + ;(c = a.datepicker._getInst(b)), + a.datepicker._curInst && + a.datepicker._curInst !== c && + (a.datepicker._curInst.dpDiv.stop(!0, !0), + c && + a.datepicker._datepickerShowing && + a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])), + (d = a.datepicker._get(c, 'beforeShow')), + (e = d ? d.apply(b, [b, c]) : {}), + e !== !1 && + (g(c.settings, e), + (c.lastVal = null), + (a.datepicker._lastInput = b), + a.datepicker._setDateFromField(c), + a.datepicker._inDialog && (b.value = ''), + a.datepicker._pos || + ((a.datepicker._pos = a.datepicker._findPos(b)), + (a.datepicker._pos[1] += b.offsetHeight)), + (f = !1), + a(b) + .parents() + .each(function () { + return (f |= 'fixed' === a(this).css('position')), !f + }), + (h = { left: a.datepicker._pos[0], top: a.datepicker._pos[1] }), + (a.datepicker._pos = null), + c.dpDiv.empty(), + c.dpDiv.css({ + position: 'absolute', + display: 'block', + top: '-1000px', + }), + a.datepicker._updateDatepicker(c), + (h = a.datepicker._checkOffset(c, h, f)), + c.dpDiv.css({ + position: + a.datepicker._inDialog && a.blockUI + ? 'static' + : f + ? 'fixed' + : 'absolute', + display: 'none', + left: h.left + 'px', + top: h.top + 'px', + }), + c.inline || + ((i = a.datepicker._get(c, 'showAnim')), + (j = a.datepicker._get(c, 'duration')), + c.dpDiv.zIndex(a(b).zIndex() + 1), + (a.datepicker._datepickerShowing = !0), + a.effects && a.effects.effect[i] + ? c.dpDiv.show(i, a.datepicker._get(c, 'showOptions'), j) + : c.dpDiv[i || 'show'](i ? j : null), + a.datepicker._shouldFocusInput(c) && c.input.focus(), + (a.datepicker._curInst = c))) + } + }, + _updateDatepicker: function (b) { + ;(this.maxRows = 4), + (d = b), + b.dpDiv.empty().append(this._generateHTML(b)), + this._attachHandlers(b), + b.dpDiv.find('.' + this._dayOverClass + ' a').mouseover() + var c, + e = this._getNumberOfMonths(b), + f = e[1], + g = 17 + b.dpDiv + .removeClass( + 'ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4' + ) + .width(''), + f > 1 && + b.dpDiv + .addClass('ui-datepicker-multi-' + f) + .css('width', g * f + 'em'), + b.dpDiv[(1 !== e[0] || 1 !== e[1] ? 'add' : 'remove') + 'Class']( + 'ui-datepicker-multi' + ), + b.dpDiv[(this._get(b, 'isRTL') ? 'add' : 'remove') + 'Class']( + 'ui-datepicker-rtl' + ), + b === a.datepicker._curInst && + a.datepicker._datepickerShowing && + a.datepicker._shouldFocusInput(b) && + b.input.focus(), + b.yearshtml && + ((c = b.yearshtml), + setTimeout(function () { + c === b.yearshtml && + b.yearshtml && + b.dpDiv + .find('select.ui-datepicker-year:first') + .replaceWith(b.yearshtml), + (c = b.yearshtml = null) + }, 0)) + }, + _shouldFocusInput: function (a) { + return ( + a.input && + a.input.is(':visible') && + !a.input.is(':disabled') && + !a.input.is(':focus') + ) + }, + _checkOffset: function (b, c, d) { + var e = b.dpDiv.outerWidth(), + f = b.dpDiv.outerHeight(), + g = b.input ? b.input.outerWidth() : 0, + h = b.input ? b.input.outerHeight() : 0, + i = + document.documentElement.clientWidth + + (d ? 0 : a(document).scrollLeft()), + j = + document.documentElement.clientHeight + + (d ? 0 : a(document).scrollTop()) + return ( + (c.left -= this._get(b, 'isRTL') ? e - g : 0), + (c.left -= + d && c.left === b.input.offset().left + ? a(document).scrollLeft() + : 0), + (c.top -= + d && c.top === b.input.offset().top + h + ? a(document).scrollTop() + : 0), + (c.left -= Math.min( + c.left, + c.left + e > i && i > e ? Math.abs(c.left + e - i) : 0 + )), + (c.top -= Math.min( + c.top, + c.top + f > j && j > f ? Math.abs(f + h) : 0 + )), + c + ) + }, + _findPos: function (b) { + for ( + var c, d = this._getInst(b), e = this._get(d, 'isRTL'); + b && + ('hidden' === b.type || 1 !== b.nodeType || a.expr.filters.hidden(b)); + + ) + b = b[e ? 'previousSibling' : 'nextSibling'] + return (c = a(b).offset()), [c.left, c.top] + }, + _hideDatepicker: function (b) { + var d, + e, + f, + g, + h = this._curInst + !h || + (b && h !== a.data(b, c)) || + (this._datepickerShowing && + ((d = this._get(h, 'showAnim')), + (e = this._get(h, 'duration')), + (f = function () { + a.datepicker._tidyDialog(h) + }), + a.effects && (a.effects.effect[d] || a.effects[d]) + ? h.dpDiv.hide(d, a.datepicker._get(h, 'showOptions'), e, f) + : h.dpDiv[ + 'slideDown' === d + ? 'slideUp' + : 'fadeIn' === d + ? 'fadeOut' + : 'hide' + ](d ? e : null, f), + d || f(), + (this._datepickerShowing = !1), + (g = this._get(h, 'onClose')), + g && + g.apply(h.input ? h.input[0] : null, [ + h.input ? h.input.val() : '', + h, + ]), + (this._lastInput = null), + this._inDialog && + (this._dialogInput.css({ + position: 'absolute', + left: '0', + top: '-100px', + }), + a.blockUI && (a.unblockUI(), a('body').append(this.dpDiv))), + (this._inDialog = !1))) + }, + _tidyDialog: function (a) { + a.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar') + }, + _checkExternalClick: function (b) { + if (a.datepicker._curInst) { + var c = a(b.target), + d = a.datepicker._getInst(c[0]) + ;((c[0].id === a.datepicker._mainDivId || + 0 !== c.parents('#' + a.datepicker._mainDivId).length || + c.hasClass(a.datepicker.markerClassName) || + c.closest('.' + a.datepicker._triggerClass).length || + !a.datepicker._datepickerShowing || + (a.datepicker._inDialog && a.blockUI)) && + (!c.hasClass(a.datepicker.markerClassName) || + a.datepicker._curInst === d)) || + a.datepicker._hideDatepicker() + } + }, + _adjustDate: function (b, c, d) { + var e = a(b), + f = this._getInst(e[0]) + this._isDisabledDatepicker(e[0]) || + (this._adjustInstDate( + f, + c + ('M' === d ? this._get(f, 'showCurrentAtPos') : 0), + d + ), + this._updateDatepicker(f)) + }, + _gotoToday: function (b) { + var c, + d = a(b), + e = this._getInst(d[0]) + this._get(e, 'gotoCurrent') && e.currentDay + ? ((e.selectedDay = e.currentDay), + (e.drawMonth = e.selectedMonth = e.currentMonth), + (e.drawYear = e.selectedYear = e.currentYear)) + : ((c = new Date()), + (e.selectedDay = c.getDate()), + (e.drawMonth = e.selectedMonth = c.getMonth()), + (e.drawYear = e.selectedYear = c.getFullYear())), + this._notifyChange(e), + this._adjustDate(d) + }, + _selectMonthYear: function (b, c, d) { + var e = a(b), + f = this._getInst(e[0]) + ;(f['selected' + ('M' === d ? 'Month' : 'Year')] = f[ + 'draw' + ('M' === d ? 'Month' : 'Year') + ] = + parseInt(c.options[c.selectedIndex].value, 10)), + this._notifyChange(f), + this._adjustDate(e) + }, + _selectDay: function (b, c, d, e) { + var f, + g = a(b) + a(e).hasClass(this._unselectableClass) || + this._isDisabledDatepicker(g[0]) || + ((f = this._getInst(g[0])), + (f.selectedDay = f.currentDay = a('a', e).html()), + (f.selectedMonth = f.currentMonth = c), + (f.selectedYear = f.currentYear = d), + this._selectDate( + b, + this._formatDate(f, f.currentDay, f.currentMonth, f.currentYear) + )) + }, + _clearDate: function (b) { + var c = a(b) + this._selectDate(c, '') + }, + _selectDate: function (b, c) { + var d, + e = a(b), + f = this._getInst(e[0]) + ;(c = null != c ? c : this._formatDate(f)), + f.input && f.input.val(c), + this._updateAlternate(f), + (d = this._get(f, 'onSelect')), + d + ? d.apply(f.input ? f.input[0] : null, [c, f]) + : f.input && f.input.trigger('change'), + f.inline + ? this._updateDatepicker(f) + : (this._hideDatepicker(), + (this._lastInput = f.input[0]), + 'object' != typeof f.input[0] && f.input.focus(), + (this._lastInput = null)) + }, + _updateAlternate: function (b) { + var c, + d, + e, + f = this._get(b, 'altField') + f && + ((c = this._get(b, 'altFormat') || this._get(b, 'dateFormat')), + (d = this._getDate(b)), + (e = this.formatDate(c, d, this._getFormatConfig(b))), + a(f).each(function () { + a(this).val(e) + })) + }, + noWeekends: function (a) { + var b = a.getDay() + return [b > 0 && b < 6, ''] + }, + iso8601Week: function (a) { + var b, + c = new Date(a.getTime()) + return ( + c.setDate(c.getDate() + 4 - (c.getDay() || 7)), + (b = c.getTime()), + c.setMonth(0), + c.setDate(1), + Math.floor(Math.round((b - c) / 864e5) / 7) + 1 + ) + }, + parseDate: function (b, c, d) { + if (null == b || null == c) throw 'Invalid arguments' + if (((c = 'object' == typeof c ? c.toString() : c + ''), '' === c)) + return null + var e, + f, + g, + t, + h = 0, + i = (d ? d.shortYearCutoff : null) || this._defaults.shortYearCutoff, + j = + 'string' != typeof i + ? i + : (new Date().getFullYear() % 100) + parseInt(i, 10), + k = (d ? d.dayNamesShort : null) || this._defaults.dayNamesShort, + l = (d ? d.dayNames : null) || this._defaults.dayNames, + m = (d ? d.monthNamesShort : null) || this._defaults.monthNamesShort, + n = (d ? d.monthNames : null) || this._defaults.monthNames, + o = -1, + p = -1, + q = -1, + r = -1, + s = !1, + u = function (a) { + var c = e + 1 < b.length && b.charAt(e + 1) === a + return c && e++, c + }, + v = function (a) { + var b = u(a), + d = + '@' === a + ? 14 + : '!' === a + ? 20 + : 'y' === a && b + ? 4 + : 'o' === a + ? 3 + : 2, + e = new RegExp('^\\d{1,' + d + '}'), + f = c.substring(h).match(e) + if (!f) throw 'Missing number at position ' + h + return (h += f[0].length), parseInt(f[0], 10) + }, + w = function (b, d, e) { + var f = -1, + g = a + .map(u(b) ? e : d, function (a, b) { + return [[b, a]] + }) + .sort(function (a, b) { + return -(a[1].length - b[1].length) + }) + if ( + (a.each(g, function (a, b) { + var d = b[1] + if (c.substr(h, d.length).toLowerCase() === d.toLowerCase()) + return (f = b[0]), (h += d.length), !1 + }), + f !== -1) + ) + return f + 1 + throw 'Unknown name at position ' + h + }, + x = function () { + if (c.charAt(h) !== b.charAt(e)) + throw 'Unexpected literal at position ' + h + h++ + } + for (e = 0; e < b.length; e++) + if (s) "'" !== b.charAt(e) || u("'") ? x() : (s = !1) + else + switch (b.charAt(e)) { + case 'd': + q = v('d') + break + case 'D': + w('D', k, l) + break + case 'o': + r = v('o') + break + case 'm': + p = v('m') + break + case 'M': + p = w('M', m, n) + break + case 'y': + o = v('y') + break + case '@': + ;(t = new Date(v('@'))), + (o = t.getFullYear()), + (p = t.getMonth() + 1), + (q = t.getDate()) + break + case '!': + ;(t = new Date((v('!') - this._ticksTo1970) / 1e4)), + (o = t.getFullYear()), + (p = t.getMonth() + 1), + (q = t.getDate()) + break + case "'": + u("'") ? x() : (s = !0) + break + default: + x() + } + if (h < c.length && ((g = c.substr(h)), !/^\s+/.test(g))) + throw 'Extra/unparsed characters found in date: ' + g + if ( + (o === -1 + ? (o = new Date().getFullYear()) + : o < 100 && + (o += + new Date().getFullYear() - + (new Date().getFullYear() % 100) + + (o <= j ? 0 : -100)), + r > -1) + ) + for (p = 1, q = r; ; ) { + if (((f = this._getDaysInMonth(o, p - 1)), q <= f)) break + p++, (q -= f) + } + if ( + ((t = this._daylightSavingAdjust(new Date(o, p - 1, q))), + t.getFullYear() !== o || t.getMonth() + 1 !== p || t.getDate() !== q) + ) + throw 'Invalid date' + return t + }, + ATOM: 'yy-mm-dd', + COOKIE: 'D, dd M yy', + ISO_8601: 'yy-mm-dd', + RFC_822: 'D, d M y', + RFC_850: 'DD, dd-M-y', + RFC_1036: 'D, d M y', + RFC_1123: 'D, d M yy', + RFC_2822: 'D, d M yy', + RSS: 'D, d M y', + TICKS: '!', + TIMESTAMP: '@', + W3C: 'yy-mm-dd', + _ticksTo1970: + 24 * + (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)) * + 60 * + 60 * + 1e7, + formatDate: function (a, b, c) { + if (!b) return '' + var d, + e = (c ? c.dayNamesShort : null) || this._defaults.dayNamesShort, + f = (c ? c.dayNames : null) || this._defaults.dayNames, + g = (c ? c.monthNamesShort : null) || this._defaults.monthNamesShort, + h = (c ? c.monthNames : null) || this._defaults.monthNames, + i = function (b) { + var c = d + 1 < a.length && a.charAt(d + 1) === b + return c && d++, c + }, + j = function (a, b, c) { + var d = '' + b + if (i(a)) for (; d.length < c; ) d = '0' + d + return d + }, + k = function (a, b, c, d) { + return i(a) ? d[b] : c[b] + }, + l = '', + m = !1 + if (b) + for (d = 0; d < a.length; d++) + if (m) "'" !== a.charAt(d) || i("'") ? (l += a.charAt(d)) : (m = !1) + else + switch (a.charAt(d)) { + case 'd': + l += j('d', b.getDate(), 2) + break + case 'D': + l += k('D', b.getDay(), e, f) + break + case 'o': + l += j( + 'o', + Math.round( + (new Date( + b.getFullYear(), + b.getMonth(), + b.getDate() + ).getTime() - + new Date(b.getFullYear(), 0, 0).getTime()) / + 864e5 + ), + 3 + ) + break + case 'm': + l += j('m', b.getMonth() + 1, 2) + break + case 'M': + l += k('M', b.getMonth(), g, h) + break + case 'y': + l += i('y') + ? b.getFullYear() + : (b.getYear() % 100 < 10 ? '0' : '') + (b.getYear() % 100) + break + case '@': + l += b.getTime() + break + case '!': + l += 1e4 * b.getTime() + this._ticksTo1970 + break + case "'": + i("'") ? (l += "'") : (m = !0) + break + default: + l += a.charAt(d) + } + return l + }, + _possibleChars: function (a) { + var b, + c = '', + d = !1, + e = function (c) { + var d = b + 1 < a.length && a.charAt(b + 1) === c + return d && b++, d + } + for (b = 0; b < a.length; b++) + if (d) "'" !== a.charAt(b) || e("'") ? (c += a.charAt(b)) : (d = !1) + else + switch (a.charAt(b)) { + case 'd': + case 'm': + case 'y': + case '@': + c += '0123456789' + break + case 'D': + case 'M': + return null + case "'": + e("'") ? (c += "'") : (d = !0) + break + default: + c += a.charAt(b) + } + return c + }, + _get: function (a, c) { + return a.settings[c] !== b ? a.settings[c] : this._defaults[c] + }, + _setDateFromField: function (a, b) { + if (a.input.val() !== a.lastVal) { + var c = this._get(a, 'dateFormat'), + d = (a.lastVal = a.input ? a.input.val() : null), + e = this._getDefaultDate(a), + f = e, + g = this._getFormatConfig(a) + try { + f = this.parseDate(c, d, g) || e + } catch (a) { + d = b ? '' : d + } + ;(a.selectedDay = f.getDate()), + (a.drawMonth = a.selectedMonth = f.getMonth()), + (a.drawYear = a.selectedYear = f.getFullYear()), + (a.currentDay = d ? f.getDate() : 0), + (a.currentMonth = d ? f.getMonth() : 0), + (a.currentYear = d ? f.getFullYear() : 0), + this._adjustInstDate(a) + } + }, + _getDefaultDate: function (a) { + return this._restrictMinMax( + a, + this._determineDate(a, this._get(a, 'defaultDate'), new Date()) + ) + }, + _determineDate: function (b, c, d) { + var e = function (a) { + var b = new Date() + return b.setDate(b.getDate() + a), b + }, + f = function (c) { + try { + return a.datepicker.parseDate( + a.datepicker._get(b, 'dateFormat'), + c, + a.datepicker._getFormatConfig(b) + ) + } catch (a) {} + for ( + var d = + (c.toLowerCase().match(/^c/) + ? a.datepicker._getDate(b) + : null) || new Date(), + e = d.getFullYear(), + f = d.getMonth(), + g = d.getDate(), + h = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, + i = h.exec(c); + i; + + ) { + switch (i[2] || 'd') { + case 'd': + case 'D': + g += parseInt(i[1], 10) + break + case 'w': + case 'W': + g += 7 * parseInt(i[1], 10) + break + case 'm': + case 'M': + ;(f += parseInt(i[1], 10)), + (g = Math.min(g, a.datepicker._getDaysInMonth(e, f))) + break + case 'y': + case 'Y': + ;(e += parseInt(i[1], 10)), + (g = Math.min(g, a.datepicker._getDaysInMonth(e, f))) + } + i = h.exec(c) + } + return new Date(e, f, g) + }, + g = + null == c || '' === c + ? d + : 'string' == typeof c + ? f(c) + : 'number' == typeof c + ? isNaN(c) + ? d + : e(c) + : new Date(c.getTime()) + return ( + (g = g && 'Invalid Date' === g.toString() ? d : g), + g && + (g.setHours(0), + g.setMinutes(0), + g.setSeconds(0), + g.setMilliseconds(0)), + this._daylightSavingAdjust(g) + ) + }, + _daylightSavingAdjust: function (a) { + return a + ? (a.setHours(a.getHours() > 12 ? a.getHours() + 2 : 0), a) + : null + }, + _setDate: function (a, b, c) { + var d = !b, + e = a.selectedMonth, + f = a.selectedYear, + g = this._restrictMinMax(a, this._determineDate(a, b, new Date())) + ;(a.selectedDay = a.currentDay = g.getDate()), + (a.drawMonth = a.selectedMonth = a.currentMonth = g.getMonth()), + (a.drawYear = a.selectedYear = a.currentYear = g.getFullYear()), + (e === a.selectedMonth && f === a.selectedYear) || + c || + this._notifyChange(a), + this._adjustInstDate(a), + a.input && a.input.val(d ? '' : this._formatDate(a)) + }, + _getDate: function (a) { + var b = + !a.currentYear || (a.input && '' === a.input.val()) + ? null + : this._daylightSavingAdjust( + new Date(a.currentYear, a.currentMonth, a.currentDay) + ) + return b + }, + _attachHandlers: function (b) { + var c = this._get(b, 'stepMonths'), + d = '#' + b.id.replace(/\\\\/g, '\\') + b.dpDiv.find('[data-handler]').map(function () { + var b = { + prev: function () { + a.datepicker._adjustDate(d, -c, 'M') + }, + next: function () { + a.datepicker._adjustDate(d, +c, 'M') + }, + hide: function () { + a.datepicker._hideDatepicker() + }, + today: function () { + a.datepicker._gotoToday(d) + }, + selectDay: function () { + return ( + a.datepicker._selectDay( + d, + +this.getAttribute('data-month'), + +this.getAttribute('data-year'), + this + ), + !1 + ) + }, + selectMonth: function () { + return a.datepicker._selectMonthYear(d, this, 'M'), !1 + }, + selectYear: function () { + return a.datepicker._selectMonthYear(d, this, 'Y'), !1 + }, + } + a(this).bind( + this.getAttribute('data-event'), + b[this.getAttribute('data-handler')] + ) + }) + }, + _generateHTML: function (a) { + var b, + c, + d, + e, + f, + g, + h, + i, + j, + k, + l, + m, + n, + o, + p, + q, + r, + s, + t, + u, + v, + w, + x, + y, + z, + A, + B, + C, + D, + E, + F, + G, + H, + I, + J, + K, + L, + M, + N, + O = new Date(), + P = this._daylightSavingAdjust( + new Date(O.getFullYear(), O.getMonth(), O.getDate()) + ), + Q = this._get(a, 'isRTL'), + R = this._get(a, 'showButtonPanel'), + S = this._get(a, 'hideIfNoPrevNext'), + T = this._get(a, 'navigationAsDateFormat'), + U = this._getNumberOfMonths(a), + V = this._get(a, 'showCurrentAtPos'), + W = this._get(a, 'stepMonths'), + X = 1 !== U[0] || 1 !== U[1], + Y = this._daylightSavingAdjust( + a.currentDay + ? new Date(a.currentYear, a.currentMonth, a.currentDay) + : new Date(9999, 9, 9) + ), + Z = this._getMinMaxDate(a, 'min'), + $ = this._getMinMaxDate(a, 'max'), + _ = a.drawMonth - V, + aa = a.drawYear + if ((_ < 0 && ((_ += 12), aa--), $)) + for ( + b = this._daylightSavingAdjust( + new Date( + $.getFullYear(), + $.getMonth() - U[0] * U[1] + 1, + $.getDate() + ) + ), + b = Z && b < Z ? Z : b; + this._daylightSavingAdjust(new Date(aa, _, 1)) > b; + + ) + _--, _ < 0 && ((_ = 11), aa--) + for ( + a.drawMonth = _, + a.drawYear = aa, + c = this._get(a, 'prevText'), + c = T + ? this.formatDate( + c, + this._daylightSavingAdjust(new Date(aa, _ - W, 1)), + this._getFormatConfig(a) + ) + : c, + d = this._canAdjustMonth(a, -1, aa, _) + ? "" + + c + + '' + : S + ? '' + : "" + + c + + '', + e = this._get(a, 'nextText'), + e = T + ? this.formatDate( + e, + this._daylightSavingAdjust(new Date(aa, _ + W, 1)), + this._getFormatConfig(a) + ) + : e, + f = this._canAdjustMonth(a, 1, aa, _) + ? "" + + e + + '' + : S + ? '' + : "" + + e + + '', + g = this._get(a, 'currentText'), + h = this._get(a, 'gotoCurrent') && a.currentDay ? Y : P, + g = T ? this.formatDate(g, h, this._getFormatConfig(a)) : g, + i = a.inline + ? '' + : "', + j = R + ? "
      " + + (Q ? i : '') + + (this._isInRange(a, h) + ? "' + : '') + + (Q ? '' : i) + + '
      ' + : '', + k = parseInt(this._get(a, 'firstDay'), 10), + k = isNaN(k) ? 0 : k, + l = this._get(a, 'showWeek'), + m = this._get(a, 'dayNames'), + n = this._get(a, 'dayNamesMin'), + o = this._get(a, 'monthNames'), + p = this._get(a, 'monthNamesShort'), + q = this._get(a, 'beforeShowDay'), + r = this._get(a, 'showOtherMonths'), + s = this._get(a, 'selectOtherMonths'), + t = this._getDefaultDate(a), + u = '', + w = 0; + w < U[0]; + w++ + ) { + for (x = '', this.maxRows = 4, y = 0; y < U[1]; y++) { + if ( + ((z = this._daylightSavingAdjust(new Date(aa, _, a.selectedDay))), + (A = ' ui-corner-all'), + (B = ''), + X) + ) { + if (((B += "
      " + + (/all|left/.test(A) && 0 === w ? (Q ? f : d) : '') + + (/all|right/.test(A) && 0 === w ? (Q ? d : f) : '') + + this._generateMonthYearHeader( + a, + _, + aa, + Z, + $, + w > 0 || y > 0, + o, + p + ) + + "
      ", + C = l + ? "' + : '', + v = 0; + v < 7; + v++ + ) + (D = (v + k) % 7), + (C += + '= 5 + ? " class='ui-datepicker-week-end'" + : '') + + ">" + + n[D] + + '') + for ( + B += C + '', + E = this._getDaysInMonth(aa, _), + aa === a.selectedYear && + _ === a.selectedMonth && + (a.selectedDay = Math.min(a.selectedDay, E)), + F = (this._getFirstDayOfMonth(aa, _) - k + 7) % 7, + G = Math.ceil((F + E) / 7), + H = X && this.maxRows > G ? this.maxRows : G, + this.maxRows = H, + I = this._daylightSavingAdjust(new Date(aa, _, 1 - F)), + J = 0; + J < H; + J++ + ) { + for ( + B += '', + K = l + ? "' + : '', + v = 0; + v < 7; + v++ + ) + (L = q ? q.apply(a.input ? a.input[0] : null, [I]) : [!0, '']), + (M = I.getMonth() !== _), + (N = (M && !s) || !L[0] || (Z && I < Z) || ($ && I > $)), + (K += + "'), + I.setDate(I.getDate() + 1), + (I = this._daylightSavingAdjust(I)) + B += K + '' + } + _++, + _ > 11 && ((_ = 0), aa++), + (B += + '
      " + + this._get(a, 'weekHeader') + + '
      " + + this._get(a, 'calculateWeek')(I) + + '' + + (M && !r + ? ' ' + : N + ? "" + + I.getDate() + + '' + : "" + + I.getDate() + + '') + + '
      ' + + (X + ? '
      ' + + (U[0] > 0 && y === U[1] - 1 + ? "
      " + : '') + : '')), + (x += B) + } + u += x + } + return (u += j), (a._keyEvent = !1), u + }, + _generateMonthYearHeader: function (a, b, c, d, e, f, g, h) { + var i, + j, + k, + l, + m, + n, + o, + p, + q = this._get(a, 'changeMonth'), + r = this._get(a, 'changeYear'), + s = this._get(a, 'showMonthAfterYear'), + t = "
      ", + u = '' + if (f || !q) + u += "" + g[b] + '' + else { + for ( + i = d && d.getFullYear() === c, + j = e && e.getFullYear() === c, + u += + "' + } + if ((s || (t += u + (!f && q && r ? '' : ' ')), !a.yearshtml)) + if (((a.yearshtml = ''), f || !r)) + t += "" + c + '' + else { + for ( + l = this._get(a, 'yearRange').split(':'), + m = new Date().getFullYear(), + n = function (a) { + var b = a.match(/c[+\-].*/) + ? c + parseInt(a.substring(1), 10) + : a.match(/[+\-].*/) + ? m + parseInt(a, 10) + : parseInt(a, 10) + return isNaN(b) ? m : b + }, + o = n(l[0]), + p = Math.max(o, n(l[1] || '')), + o = d ? Math.max(o, d.getFullYear()) : o, + p = e ? Math.min(p, e.getFullYear()) : p, + a.yearshtml += + "'), + (t += a.yearshtml), + (a.yearshtml = null) + } + return ( + (t += this._get(a, 'yearSuffix')), + s && (t += (!f && q && r ? '' : ' ') + u), + (t += '
      ') + ) + }, + _adjustInstDate: function (a, b, c) { + var d = a.drawYear + ('Y' === c ? b : 0), + e = a.drawMonth + ('M' === c ? b : 0), + f = + Math.min(a.selectedDay, this._getDaysInMonth(d, e)) + + ('D' === c ? b : 0), + g = this._restrictMinMax( + a, + this._daylightSavingAdjust(new Date(d, e, f)) + ) + ;(a.selectedDay = g.getDate()), + (a.drawMonth = a.selectedMonth = g.getMonth()), + (a.drawYear = a.selectedYear = g.getFullYear()), + ('M' !== c && 'Y' !== c) || this._notifyChange(a) + }, + _restrictMinMax: function (a, b) { + var c = this._getMinMaxDate(a, 'min'), + d = this._getMinMaxDate(a, 'max'), + e = c && b < c ? c : b + return d && e > d ? d : e + }, + _notifyChange: function (a) { + var b = this._get(a, 'onChangeMonthYear') + b && + b.apply(a.input ? a.input[0] : null, [ + a.selectedYear, + a.selectedMonth + 1, + a, + ]) + }, + _getNumberOfMonths: function (a) { + var b = this._get(a, 'numberOfMonths') + return null == b ? [1, 1] : 'number' == typeof b ? [1, b] : b + }, + _getMinMaxDate: function (a, b) { + return this._determineDate(a, this._get(a, b + 'Date'), null) + }, + _getDaysInMonth: function (a, b) { + return 32 - this._daylightSavingAdjust(new Date(a, b, 32)).getDate() + }, + _getFirstDayOfMonth: function (a, b) { + return new Date(a, b, 1).getDay() + }, + _canAdjustMonth: function (a, b, c, d) { + var e = this._getNumberOfMonths(a), + f = this._daylightSavingAdjust( + new Date(c, d + (b < 0 ? b : e[0] * e[1]), 1) + ) + return ( + b < 0 && + f.setDate(this._getDaysInMonth(f.getFullYear(), f.getMonth())), + this._isInRange(a, f) + ) + }, + _isInRange: function (a, b) { + var c, + d, + e = this._getMinMaxDate(a, 'min'), + f = this._getMinMaxDate(a, 'max'), + g = null, + h = null, + i = this._get(a, 'yearRange') + return ( + i && + ((c = i.split(':')), + (d = new Date().getFullYear()), + (g = parseInt(c[0], 10)), + (h = parseInt(c[1], 10)), + c[0].match(/[+\-].*/) && (g += d), + c[1].match(/[+\-].*/) && (h += d)), + (!e || b.getTime() >= e.getTime()) && + (!f || b.getTime() <= f.getTime()) && + (!g || b.getFullYear() >= g) && + (!h || b.getFullYear() <= h) + ) + }, + _getFormatConfig: function (a) { + var b = this._get(a, 'shortYearCutoff') + return ( + (b = + 'string' != typeof b + ? b + : (new Date().getFullYear() % 100) + parseInt(b, 10)), + { + shortYearCutoff: b, + dayNamesShort: this._get(a, 'dayNamesShort'), + dayNames: this._get(a, 'dayNames'), + monthNamesShort: this._get(a, 'monthNamesShort'), + monthNames: this._get(a, 'monthNames'), + } + ) + }, + _formatDate: function (a, b, c, d) { + b || + ((a.currentDay = a.selectedDay), + (a.currentMonth = a.selectedMonth), + (a.currentYear = a.selectedYear)) + var e = b + ? 'object' == typeof b + ? b + : this._daylightSavingAdjust(new Date(d, c, b)) + : this._daylightSavingAdjust( + new Date(a.currentYear, a.currentMonth, a.currentDay) + ) + return this.formatDate( + this._get(a, 'dateFormat'), + e, + this._getFormatConfig(a) + ) + }, + }), + (a.fn.datepicker = function (b) { + if (!this.length) return this + a.datepicker.initialized || + (a(document).mousedown(a.datepicker._checkExternalClick), + (a.datepicker.initialized = !0)), + 0 === a('#' + a.datepicker._mainDivId).length && + a('body').append(a.datepicker.dpDiv) + var c = Array.prototype.slice.call(arguments, 1) + return 'string' != typeof b || + ('isDisabled' !== b && 'getDate' !== b && 'widget' !== b) + ? 'option' === b && + 2 === arguments.length && + 'string' == typeof arguments[1] + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + : this.each(function () { + 'string' == typeof b + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this].concat(c) + ) + : a.datepicker._attachDatepicker(this, b) + }) + : a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + }), + (a.datepicker = new e()), + (a.datepicker.initialized = !1), + (a.datepicker.uuid = new Date().getTime()), + (a.datepicker.version = '1.10.3') + })(jQuery), + (function (a, b) { + var c = { + buttons: !0, + height: !0, + maxHeight: !0, + maxWidth: !0, + minHeight: !0, + minWidth: !0, + width: !0, + }, + d = { maxHeight: !0, maxWidth: !0, minHeight: !0, minWidth: !0 } + a.widget('ui.dialog', { + version: '1.10.3', + options: { + appendTo: 'body', + autoOpen: !0, + buttons: [], + closeOnEscape: !0, + closeText: 'close', + dialogClass: '', + draggable: !0, + hide: null, + height: 'auto', + maxHeight: null, + maxWidth: null, + minHeight: 150, + minWidth: 150, + modal: !1, + position: { + my: 'center', + at: 'center', + of: window, + collision: 'fit', + using: function (b) { + var c = a(this).css(b).offset().top + c < 0 && a(this).css('top', b.top - c) + }, + }, + resizable: !0, + show: null, + title: null, + width: 300, + beforeClose: null, + close: null, + drag: null, + dragStart: null, + dragStop: null, + focus: null, + open: null, + resize: null, + resizeStart: null, + resizeStop: null, + }, + _create: function () { + ;(this.originalCss = { + display: this.element[0].style.display, + width: this.element[0].style.width, + minHeight: this.element[0].style.minHeight, + maxHeight: this.element[0].style.maxHeight, + height: this.element[0].style.height, + }), + (this.originalPosition = { + parent: this.element.parent(), + index: this.element.parent().children().index(this.element), + }), + (this.originalTitle = this.element.attr('title')), + (this.options.title = this.options.title || this.originalTitle), + this._createWrapper(), + this.element + .show() + .removeAttr('title') + .addClass('ui-dialog-content ui-widget-content') + .appendTo(this.uiDialog), + this._createTitlebar(), + this._createButtonPane(), + this.options.draggable && a.fn.draggable && this._makeDraggable(), + this.options.resizable && a.fn.resizable && this._makeResizable(), + (this._isOpen = !1) + }, + _init: function () { + this.options.autoOpen && this.open() + }, + _appendTo: function () { + var b = this.options.appendTo + return b && (b.jquery || b.nodeType) + ? a(b) + : this.document.find(b || 'body').eq(0) + }, + _destroy: function () { + var a, + b = this.originalPosition + this._destroyOverlay(), + this.element + .removeUniqueId() + .removeClass('ui-dialog-content ui-widget-content') + .css(this.originalCss) + .detach(), + this.uiDialog.stop(!0, !0).remove(), + this.originalTitle && this.element.attr('title', this.originalTitle), + (a = b.parent.children().eq(b.index)), + a.length && a[0] !== this.element[0] + ? a.before(this.element) + : b.parent.append(this.element) + }, + widget: function () { + return this.uiDialog + }, + disable: a.noop, + enable: a.noop, + close: function (b) { + var c = this + this._isOpen && + this._trigger('beforeClose', b) !== !1 && + ((this._isOpen = !1), + this._destroyOverlay(), + this.opener.filter(':focusable').focus().length || + a(this.document[0].activeElement).blur(), + this._hide(this.uiDialog, this.options.hide, function () { + c._trigger('close', b) + })) + }, + isOpen: function () { + return this._isOpen + }, + moveToTop: function () { + this._moveToTop() + }, + _moveToTop: function (a, b) { + var c = !!this.uiDialog.nextAll(':visible').insertBefore(this.uiDialog) + .length + return c && !b && this._trigger('focus', a), c + }, + open: function () { + var b = this + return this._isOpen + ? void (this._moveToTop() && this._focusTabbable()) + : ((this._isOpen = !0), + (this.opener = a(this.document[0].activeElement)), + this._size(), + this._position(), + this._createOverlay(), + this._moveToTop(null, !0), + this._show(this.uiDialog, this.options.show, function () { + b._focusTabbable(), b._trigger('focus') + }), + void this._trigger('open')) + }, + _focusTabbable: function () { + var a = this.element.find('[autofocus]') + a.length || (a = this.element.find(':tabbable')), + a.length || (a = this.uiDialogButtonPane.find(':tabbable')), + a.length || (a = this.uiDialogTitlebarClose.filter(':tabbable')), + a.length || (a = this.uiDialog), + a.eq(0).focus() + }, + _keepFocus: function (b) { + function c() { + var b = this.document[0].activeElement, + c = this.uiDialog[0] === b || a.contains(this.uiDialog[0], b) + c || this._focusTabbable() + } + b.preventDefault(), c.call(this), this._delay(c) + }, + _createWrapper: function () { + ;(this.uiDialog = a('
      ') + .addClass( + 'ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ' + + this.options.dialogClass + ) + .hide() + .attr({ tabIndex: -1, role: 'dialog' }) + .appendTo(this._appendTo())), + this._on(this.uiDialog, { + keydown: function (b) { + if ( + this.options.closeOnEscape && + !b.isDefaultPrevented() && + b.keyCode && + b.keyCode === a.ui.keyCode.ESCAPE + ) + return b.preventDefault(), void this.close(b) + if (b.keyCode === a.ui.keyCode.TAB) { + var c = this.uiDialog.find(':tabbable'), + d = c.filter(':first'), + e = c.filter(':last') + ;(b.target !== e[0] && b.target !== this.uiDialog[0]) || + b.shiftKey + ? (b.target !== d[0] && b.target !== this.uiDialog[0]) || + !b.shiftKey || + (e.focus(1), b.preventDefault()) + : (d.focus(1), b.preventDefault()) + } + }, + mousedown: function (a) { + this._moveToTop(a) && this._focusTabbable() + }, + }), + this.element.find('[aria-describedby]').length || + this.uiDialog.attr({ + 'aria-describedby': this.element.uniqueId().attr('id'), + }) + }, + _createTitlebar: function () { + var b + ;(this.uiDialogTitlebar = a('
      ') + .addClass( + 'ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix' + ) + .prependTo(this.uiDialog)), + this._on(this.uiDialogTitlebar, { + mousedown: function (b) { + a(b.target).closest('.ui-dialog-titlebar-close') || + this.uiDialog.focus() + }, + }), + (this.uiDialogTitlebarClose = a('') + .button({ + label: this.options.closeText, + icons: { primary: 'ui-icon-closethick' }, + text: !1, + }) + .addClass('ui-dialog-titlebar-close') + .appendTo(this.uiDialogTitlebar)), + this._on(this.uiDialogTitlebarClose, { + click: function (a) { + a.preventDefault(), this.close(a) + }, + }), + (b = a('') + .uniqueId() + .addClass('ui-dialog-title') + .prependTo(this.uiDialogTitlebar)), + this._title(b), + this.uiDialog.attr({ 'aria-labelledby': b.attr('id') }) + }, + _title: function (a) { + this.options.title || a.html(' '), a.text(this.options.title) + }, + _createButtonPane: function () { + ;(this.uiDialogButtonPane = a('
      ').addClass( + 'ui-dialog-buttonpane ui-widget-content ui-helper-clearfix' + )), + (this.uiButtonSet = a('
      ') + .addClass('ui-dialog-buttonset') + .appendTo(this.uiDialogButtonPane)), + this._createButtons() + }, + _createButtons: function () { + var b = this, + c = this.options.buttons + return ( + this.uiDialogButtonPane.remove(), + this.uiButtonSet.empty(), + a.isEmptyObject(c) || (a.isArray(c) && !c.length) + ? void this.uiDialog.removeClass('ui-dialog-buttons') + : (a.each(c, function (c, d) { + var e, f + ;(d = a.isFunction(d) ? { click: d, text: c } : d), + (d = a.extend({ type: 'button' }, d)), + (e = d.click), + (d.click = function () { + e.apply(b.element[0], arguments) + }), + (f = { icons: d.icons, text: d.showText }), + delete d.icons, + delete d.showText, + a('', d).button(f).appendTo(b.uiButtonSet) + }), + this.uiDialog.addClass('ui-dialog-buttons'), + void this.uiDialogButtonPane.appendTo(this.uiDialog)) + ) + }, + _makeDraggable: function () { + function d(a) { + return { position: a.position, offset: a.offset } + } + var b = this, + c = this.options + this.uiDialog.draggable({ + cancel: '.ui-dialog-content, .ui-dialog-titlebar-close', + handle: '.ui-dialog-titlebar', + containment: 'document', + start: function (c, e) { + a(this).addClass('ui-dialog-dragging'), + b._blockFrames(), + b._trigger('dragStart', c, d(e)) + }, + drag: function (a, c) { + b._trigger('drag', a, d(c)) + }, + stop: function (e, f) { + ;(c.position = [ + f.position.left - b.document.scrollLeft(), + f.position.top - b.document.scrollTop(), + ]), + a(this).removeClass('ui-dialog-dragging'), + b._unblockFrames(), + b._trigger('dragStop', e, d(f)) + }, + }) + }, + _makeResizable: function () { + function g(a) { + return { + originalPosition: a.originalPosition, + originalSize: a.originalSize, + position: a.position, + size: a.size, + } + } + var b = this, + c = this.options, + d = c.resizable, + e = this.uiDialog.css('position'), + f = 'string' == typeof d ? d : 'n,e,s,w,se,sw,ne,nw' + this.uiDialog + .resizable({ + cancel: '.ui-dialog-content', + containment: 'document', + alsoResize: this.element, + maxWidth: c.maxWidth, + maxHeight: c.maxHeight, + minWidth: c.minWidth, + minHeight: this._minHeight(), + handles: f, + start: function (c, d) { + a(this).addClass('ui-dialog-resizing'), + b._blockFrames(), + b._trigger('resizeStart', c, g(d)) + }, + resize: function (a, c) { + b._trigger('resize', a, g(c)) + }, + stop: function (d, e) { + ;(c.height = a(this).height()), + (c.width = a(this).width()), + a(this).removeClass('ui-dialog-resizing'), + b._unblockFrames(), + b._trigger('resizeStop', d, g(e)) + }, + }) + .css('position', e) + }, + _minHeight: function () { + var a = this.options + return 'auto' === a.height + ? a.minHeight + : Math.min(a.minHeight, a.height) + }, + _position: function () { + var a = this.uiDialog.is(':visible') + a || this.uiDialog.show(), + this.uiDialog.position(this.options.position), + a || this.uiDialog.hide() + }, + _setOptions: function (b) { + var e = this, + f = !1, + g = {} + a.each(b, function (a, b) { + e._setOption(a, b), a in c && (f = !0), a in d && (g[a] = b) + }), + f && (this._size(), this._position()), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', g) + }, + _setOption: function (a, b) { + var c, + d, + e = this.uiDialog + 'dialogClass' === a && + e.removeClass(this.options.dialogClass).addClass(b), + 'disabled' !== a && + (this._super(a, b), + 'appendTo' === a && this.uiDialog.appendTo(this._appendTo()), + 'buttons' === a && this._createButtons(), + 'closeText' === a && + this.uiDialogTitlebarClose.button({ label: '' + b }), + 'draggable' === a && + ((c = e.is(':data(ui-draggable)')), + c && !b && e.draggable('destroy'), + !c && b && this._makeDraggable()), + 'position' === a && this._position(), + 'resizable' === a && + ((d = e.is(':data(ui-resizable)')), + d && !b && e.resizable('destroy'), + d && 'string' == typeof b && e.resizable('option', 'handles', b), + d || b === !1 || this._makeResizable()), + 'title' === a && + this._title(this.uiDialogTitlebar.find('.ui-dialog-title'))) + }, + _size: function () { + var a, + b, + c, + d = this.options + this.element + .show() + .css({ width: 'auto', minHeight: 0, maxHeight: 'none', height: 0 }), + d.minWidth > d.width && (d.width = d.minWidth), + (a = this.uiDialog + .css({ height: 'auto', width: d.width }) + .outerHeight()), + (b = Math.max(0, d.minHeight - a)), + (c = + 'number' == typeof d.maxHeight + ? Math.max(0, d.maxHeight - a) + : 'none'), + 'auto' === d.height + ? this.element.css({ minHeight: b, maxHeight: c, height: 'auto' }) + : this.element.height(Math.max(0, d.height - a)), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', 'minHeight', this._minHeight()) + }, + _blockFrames: function () { + this.iframeBlocks = this.document.find('iframe').map(function () { + var b = a(this) + return a('
      ') + .css({ + position: 'absolute', + width: b.outerWidth(), + height: b.outerHeight(), + }) + .appendTo(b.parent()) + .offset(b.offset())[0] + }) + }, + _unblockFrames: function () { + this.iframeBlocks && + (this.iframeBlocks.remove(), delete this.iframeBlocks) + }, + _allowInteraction: function (b) { + return ( + !!a(b.target).closest('.ui-dialog').length || + !!a(b.target).closest('.ui-datepicker').length + ) + }, + _createOverlay: function () { + if (this.options.modal) { + var b = this, + c = this.widgetFullName + a.ui.dialog.overlayInstances || + this._delay(function () { + a.ui.dialog.overlayInstances && + this.document.bind('focusin.dialog', function (d) { + b._allowInteraction(d) || + (d.preventDefault(), + a('.ui-dialog:visible:last .ui-dialog-content') + .data(c) + ._focusTabbable()) + }) + }), + (this.overlay = a('
      ') + .addClass('ui-widget-overlay ui-front') + .appendTo(this._appendTo())), + this._on(this.overlay, { mousedown: '_keepFocus' }), + a.ui.dialog.overlayInstances++ + } + }, + _destroyOverlay: function () { + this.options.modal && + this.overlay && + (a.ui.dialog.overlayInstances--, + a.ui.dialog.overlayInstances || + this.document.unbind('focusin.dialog'), + this.overlay.remove(), + (this.overlay = null)) + }, + }), + (a.ui.dialog.overlayInstances = 0), + a.uiBackCompat !== !1 && + a.widget('ui.dialog', a.ui.dialog, { + _position: function () { + var e, + b = this.options.position, + c = [], + d = [0, 0] + b + ? (('string' == typeof b || ('object' == typeof b && '0' in b)) && + ((c = b.split ? b.split(' ') : [b[0], b[1]]), + 1 === c.length && (c[1] = c[0]), + a.each(['left', 'top'], function (a, b) { + ;+c[a] === c[a] && ((d[a] = c[a]), (c[a] = b)) + }), + (b = { + my: + c[0] + + (d[0] < 0 ? d[0] : '+' + d[0]) + + ' ' + + c[1] + + (d[1] < 0 ? d[1] : '+' + d[1]), + at: c.join(' '), + })), + (b = a.extend({}, a.ui.dialog.prototype.options.position, b))) + : (b = a.ui.dialog.prototype.options.position), + (e = this.uiDialog.is(':visible')), + e || this.uiDialog.show(), + this.uiDialog.position(b), + e || this.uiDialog.hide() + }, + }) + })(jQuery), + (function (a, b) { + var c = /up|down|vertical/, + d = /up|left|vertical|horizontal/ + a.effects.effect.blind = function (b, e) { + var p, + q, + r, + f = a(this), + g = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + h = a.effects.setMode(f, b.mode || 'hide'), + i = b.direction || 'up', + j = c.test(i), + k = j ? 'height' : 'width', + l = j ? 'top' : 'left', + m = d.test(i), + n = {}, + o = 'show' === h + f.parent().is('.ui-effects-wrapper') + ? a.effects.save(f.parent(), g) + : a.effects.save(f, g), + f.show(), + (p = a.effects.createWrapper(f).css({ overflow: 'hidden' })), + (q = p[k]()), + (r = parseFloat(p.css(l)) || 0), + (n[k] = o ? q : 0), + m || + (f + .css(j ? 'bottom' : 'right', 0) + .css(j ? 'top' : 'left', 'auto') + .css({ position: 'absolute' }), + (n[l] = o ? r : q + r)), + o && (p.css(k, 0), m || p.css(l, r + q)), + p.animate(n, { + duration: b.duration, + easing: b.easing, + queue: !1, + complete: function () { + 'hide' === h && f.hide(), + a.effects.restore(f, g), + a.effects.removeWrapper(f), + e() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.bounce = function (b, c) { + var q, + r, + s, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = 'hide' === f, + h = 'show' === f, + i = b.direction || 'up', + j = b.distance, + k = b.times || 5, + l = 2 * k + (h || g ? 1 : 0), + m = b.duration / l, + n = b.easing, + o = 'up' === i || 'down' === i ? 'top' : 'left', + p = 'up' === i || 'left' === i, + t = d.queue(), + u = t.length + for ( + (h || g) && e.push('opacity'), + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + j || (j = d['top' === o ? 'outerHeight' : 'outerWidth']() / 3), + h && + ((s = { opacity: 1 }), + (s[o] = 0), + d + .css('opacity', 0) + .css(o, p ? 2 * -j : 2 * j) + .animate(s, m, n)), + g && (j /= Math.pow(2, k - 1)), + s = {}, + s[o] = 0, + q = 0; + q < k; + q++ + ) + (r = {}), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n).animate(s, m, n), + (j = g ? 2 * j : j / 2) + g && + ((r = { opacity: 0 }), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n)), + d.queue(function () { + g && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + u > 1 && t.splice.apply(t, [1, 0].concat(t.splice(u, l + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.clip = function (b, c) { + var m, + n, + o, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'vertical', + i = 'vertical' === h, + j = i ? 'height' : 'width', + k = i ? 'top' : 'left', + l = {} + a.effects.save(d, e), + d.show(), + (m = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (n = 'IMG' === d[0].tagName ? m : d), + (o = n[j]()), + g && (n.css(j, 0), n.css(k, o / 2)), + (l[j] = g ? o : 0), + (l[k] = g ? 0 : o / 2), + n.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + g || d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.drop = function (b, c) { + var l, + d = a(this), + e = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'opacity', + 'height', + 'width', + ], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h ? 'pos' : 'neg', + k = { opacity: g ? 1 : 0 } + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + (l = + b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0) / 2), + g && d.css('opacity', 0).css(i, 'pos' === j ? -l : l), + (k[i] = + (g ? ('pos' === j ? '+=' : '-=') : 'pos' === j ? '-=' : '+=') + l), + d.animate(k, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.explode = function (b, c) { + function s() { + l.push(this), l.length === d * e && t() + } + function t() { + f.css({ visibility: 'visible' }), a(l).remove(), h || f.hide(), c() + } + var m, + n, + o, + p, + q, + r, + d = b.pieces ? Math.round(Math.sqrt(b.pieces)) : 3, + e = d, + f = a(this), + g = a.effects.setMode(f, b.mode || 'hide'), + h = 'show' === g, + i = f.show().css('visibility', 'hidden').offset(), + j = Math.ceil(f.outerWidth() / e), + k = Math.ceil(f.outerHeight() / d), + l = [] + for (m = 0; m < d; m++) + for (p = i.top + m * k, r = m - (d - 1) / 2, n = 0; n < e; n++) + (o = i.left + n * j), + (q = n - (e - 1) / 2), + f + .clone() + .appendTo('body') + .wrap('
      ') + .css({ + position: 'absolute', + visibility: 'visible', + left: -n * j, + top: -m * k, + }) + .parent() + .addClass('ui-effects-explode') + .css({ + position: 'absolute', + overflow: 'hidden', + width: j, + height: k, + left: o + (h ? q * j : 0), + top: p + (h ? r * k : 0), + opacity: h ? 0 : 1, + }) + .animate( + { + left: o + (h ? 0 : q * j), + top: p + (h ? 0 : r * k), + opacity: h ? 1 : 0, + }, + b.duration || 500, + b.easing, + s + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fade = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'toggle') + d.animate( + { opacity: e }, + { queue: !1, duration: b.duration, easing: b.easing, complete: c } + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fold = function (b, c) { + var o, + p, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = 'hide' === f, + i = b.size || 15, + j = /([0-9]+)%/.exec(i), + k = !!b.horizFirst, + l = g !== k, + m = l ? ['width', 'height'] : ['height', 'width'], + n = b.duration / 2, + q = {}, + r = {} + a.effects.save(d, e), + d.show(), + (o = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (p = l ? [o.width(), o.height()] : [o.height(), o.width()]), + j && (i = (parseInt(j[1], 10) / 100) * p[h ? 0 : 1]), + g && o.css(k ? { height: 0, width: i } : { height: i, width: 0 }), + (q[m[0]] = g ? p[0] : i), + (r[m[1]] = g ? p[1] : 0), + o.animate(q, n, b.easing).animate(r, n, b.easing, function () { + h && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.highlight = function (b, c) { + var d = a(this), + e = ['backgroundImage', 'backgroundColor', 'opacity'], + f = a.effects.setMode(d, b.mode || 'show'), + g = { backgroundColor: d.css('backgroundColor') } + 'hide' === f && (g.opacity = 0), + a.effects.save(d, e), + d + .show() + .css({ + backgroundImage: 'none', + backgroundColor: b.color || '#ffff99', + }) + .animate(g, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), a.effects.restore(d, e), c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.pulsate = function (b, c) { + var n, + d = a(this), + e = a.effects.setMode(d, b.mode || 'show'), + f = 'show' === e, + g = 'hide' === e, + h = f || 'hide' === e, + i = 2 * (b.times || 5) + (h ? 1 : 0), + j = b.duration / i, + k = 0, + l = d.queue(), + m = l.length + for ( + (!f && d.is(':visible')) || (d.css('opacity', 0).show(), (k = 1)), + n = 1; + n < i; + n++ + ) + d.animate({ opacity: k }, j, b.easing), (k = 1 - k) + d.animate({ opacity: k }, j, b.easing), + d.queue(function () { + g && d.hide(), c() + }), + m > 1 && l.splice.apply(l, [1, 0].concat(l.splice(m, i + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + ;(a.effects.effect.puff = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'hide'), + f = 'hide' === e, + g = parseInt(b.percent, 10) || 150, + h = g / 100, + i = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + } + a.extend(b, { + effect: 'scale', + queue: !1, + fade: !0, + mode: e, + complete: c, + percent: f ? g : 100, + from: f + ? i + : { + height: i.height * h, + width: i.width * h, + outerHeight: i.outerHeight * h, + outerWidth: i.outerWidth * h, + }, + }), + d.effect(b) + }), + (a.effects.effect.scale = function (b, c) { + var d = a(this), + e = a.extend(!0, {}, b), + f = a.effects.setMode(d, b.mode || 'effect'), + g = + parseInt(b.percent, 10) || + (0 === parseInt(b.percent, 10) ? 0 : 'hide' === f ? 0 : 100), + h = b.direction || 'both', + i = b.origin, + j = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + }, + k = { + y: 'horizontal' !== h ? g / 100 : 1, + x: 'vertical' !== h ? g / 100 : 1, + } + ;(e.effect = 'size'), + (e.queue = !1), + (e.complete = c), + 'effect' !== f && + ((e.origin = i || ['middle', 'center']), (e.restore = !0)), + (e.from = + b.from || + ('show' === f + ? { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + : j)), + (e.to = { + height: j.height * k.y, + width: j.width * k.x, + outerHeight: j.outerHeight * k.y, + outerWidth: j.outerWidth * k.x, + }), + e.fade && + ('show' === f && ((e.from.opacity = 0), (e.to.opacity = 1)), + 'hide' === f && ((e.from.opacity = 1), (e.to.opacity = 0))), + d.effect(e) + }), + (a.effects.effect.size = function (b, c) { + var d, + e, + f, + g = a(this), + h = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'width', + 'height', + 'overflow', + 'opacity', + ], + i = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'overflow', + 'opacity', + ], + j = ['width', 'height', 'overflow'], + k = ['fontSize'], + l = [ + 'borderTopWidth', + 'borderBottomWidth', + 'paddingTop', + 'paddingBottom', + ], + m = [ + 'borderLeftWidth', + 'borderRightWidth', + 'paddingLeft', + 'paddingRight', + ], + n = a.effects.setMode(g, b.mode || 'effect'), + o = b.restore || 'effect' !== n, + p = b.scale || 'both', + q = b.origin || ['middle', 'center'], + r = g.css('position'), + s = o ? h : i, + t = { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + 'show' === n && g.show(), + (d = { + height: g.height(), + width: g.width(), + outerHeight: g.outerHeight(), + outerWidth: g.outerWidth(), + }), + 'toggle' === b.mode && 'show' === n + ? ((g.from = b.to || t), (g.to = b.from || d)) + : ((g.from = b.from || ('show' === n ? t : d)), + (g.to = b.to || ('hide' === n ? t : d))), + (f = { + from: { y: g.from.height / d.height, x: g.from.width / d.width }, + to: { y: g.to.height / d.height, x: g.to.width / d.width }, + }), + ('box' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(l)), + (g.from = a.effects.setTransition(g, l, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, l, f.to.y, g.to))), + f.from.x !== f.to.x && + ((s = s.concat(m)), + (g.from = a.effects.setTransition(g, m, f.from.x, g.from)), + (g.to = a.effects.setTransition(g, m, f.to.x, g.to)))), + ('content' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(k).concat(j)), + (g.from = a.effects.setTransition(g, k, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, k, f.to.y, g.to)))), + a.effects.save(g, s), + g.show(), + a.effects.createWrapper(g), + g.css('overflow', 'hidden').css(g.from), + q && + ((e = a.effects.getBaseline(q, d)), + (g.from.top = (d.outerHeight - g.outerHeight()) * e.y), + (g.from.left = (d.outerWidth - g.outerWidth()) * e.x), + (g.to.top = (d.outerHeight - g.to.outerHeight) * e.y), + (g.to.left = (d.outerWidth - g.to.outerWidth) * e.x)), + g.css(g.from), + ('content' !== p && 'both' !== p) || + ((l = l.concat(['marginTop', 'marginBottom']).concat(k)), + (m = m.concat(['marginLeft', 'marginRight'])), + (j = h.concat(l).concat(m)), + g.find('*[width]').each(function () { + var c = a(this), + d = { + height: c.height(), + width: c.width(), + outerHeight: c.outerHeight(), + outerWidth: c.outerWidth(), + } + o && a.effects.save(c, j), + (c.from = { + height: d.height * f.from.y, + width: d.width * f.from.x, + outerHeight: d.outerHeight * f.from.y, + outerWidth: d.outerWidth * f.from.x, + }), + (c.to = { + height: d.height * f.to.y, + width: d.width * f.to.x, + outerHeight: d.height * f.to.y, + outerWidth: d.width * f.to.x, + }), + f.from.y !== f.to.y && + ((c.from = a.effects.setTransition(c, l, f.from.y, c.from)), + (c.to = a.effects.setTransition(c, l, f.to.y, c.to))), + f.from.x !== f.to.x && + ((c.from = a.effects.setTransition(c, m, f.from.x, c.from)), + (c.to = a.effects.setTransition(c, m, f.to.x, c.to))), + c.css(c.from), + c.animate(c.to, b.duration, b.easing, function () { + o && a.effects.restore(c, j) + }) + })), + g.animate(g.to, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 0 === g.to.opacity && g.css('opacity', g.from.opacity), + 'hide' === n && g.hide(), + a.effects.restore(g, s), + o || + ('static' === r + ? g.css({ + position: 'relative', + top: g.to.top, + left: g.to.left, + }) + : a.each(['top', 'left'], function (a, b) { + g.css(b, function (b, c) { + var d = parseInt(c, 10), + e = a ? g.to.left : g.to.top + return 'auto' === c ? e + 'px' : d + e + 'px' + }) + })), + a.effects.removeWrapper(g), + c() + }, + }) + }) + })(jQuery), + (function (a, b) { + a.effects.effect.shake = function (b, c) { + var q, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = b.direction || 'left', + h = b.distance || 20, + i = b.times || 3, + j = 2 * i + 1, + k = Math.round(b.duration / j), + l = 'up' === g || 'down' === g ? 'top' : 'left', + m = 'up' === g || 'left' === g, + n = {}, + o = {}, + p = {}, + r = d.queue(), + s = r.length + for ( + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + n[l] = (m ? '-=' : '+=') + h, + o[l] = (m ? '+=' : '-=') + 2 * h, + p[l] = (m ? '-=' : '+=') + 2 * h, + d.animate(n, k, b.easing), + q = 1; + q < i; + q++ + ) + d.animate(o, k, b.easing).animate(p, k, b.easing) + d + .animate(o, k, b.easing) + .animate(n, k / 2, b.easing) + .queue(function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + s > 1 && r.splice.apply(r, [1, 0].concat(r.splice(s, j + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.slide = function (b, c) { + var k, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'width', 'height'], + f = a.effects.setMode(d, b.mode || 'show'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h, + l = {} + a.effects.save(d, e), + d.show(), + (k = b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0)), + a.effects.createWrapper(d).css({ overflow: 'hidden' }), + g && d.css(i, j ? (isNaN(k) ? '-' + k : -k) : k), + (l[i] = (g ? (j ? '+=' : '-=') : j ? '-=' : '+=') + k), + d.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.transfer = function (b, c) { + var d = a(this), + e = a(b.to), + f = 'fixed' === e.css('position'), + g = a('body'), + h = f ? g.scrollTop() : 0, + i = f ? g.scrollLeft() : 0, + j = e.offset(), + k = { + top: j.top - h, + left: j.left - i, + height: e.innerHeight(), + width: e.innerWidth(), + }, + l = d.offset(), + m = a("
      ") + .appendTo(document.body) + .addClass(b.className) + .css({ + top: l.top - h, + left: l.left - i, + height: d.innerHeight(), + width: d.innerWidth(), + position: f ? 'fixed' : 'absolute', + }) + .animate(k, b.duration, b.easing, function () { + m.remove(), c() + }) + } + })(jQuery), + (function (a, b) { + a.widget('ui.menu', { + version: '1.10.3', + defaultElement: '
        ', + delay: 300, + options: { + icons: { submenu: 'ui-icon-carat-1-e' }, + menus: 'ul', + position: { my: 'left top', at: 'right top' }, + role: 'menu', + blur: null, + focus: null, + select: null, + }, + _create: function () { + ;(this.activeMenu = this.element), + (this.mouseHandled = !1), + this.element + .uniqueId() + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .toggleClass( + 'ui-menu-icons', + !!this.element.find('.ui-icon').length + ) + .attr({ role: this.options.role, tabIndex: 0 }) + .bind( + 'click' + this.eventNamespace, + a.proxy(function (a) { + this.options.disabled && a.preventDefault() + }, this) + ), + this.options.disabled && + this.element + .addClass('ui-state-disabled') + .attr('aria-disabled', 'true'), + this._on({ + 'mousedown .ui-menu-item > a': function (a) { + a.preventDefault() + }, + 'click .ui-state-disabled > a': function (a) { + a.preventDefault() + }, + 'click .ui-menu-item:has(a)': function (b) { + var c = a(b.target).closest('.ui-menu-item') + !this.mouseHandled && + c.not('.ui-state-disabled').length && + ((this.mouseHandled = !0), + this.select(b), + c.has('.ui-menu').length + ? this.expand(b) + : this.element.is(':focus') || + (this.element.trigger('focus', [!0]), + this.active && + 1 === this.active.parents('.ui-menu').length && + clearTimeout(this.timer))) + }, + 'mouseenter .ui-menu-item': function (b) { + var c = a(b.currentTarget) + c + .siblings() + .children('.ui-state-active') + .removeClass('ui-state-active'), + this.focus(b, c) + }, + mouseleave: 'collapseAll', + 'mouseleave .ui-menu': 'collapseAll', + focus: function (a, b) { + var c = + this.active || this.element.children('.ui-menu-item').eq(0) + b || this.focus(a, c) + }, + blur: function (b) { + this._delay(function () { + a.contains(this.element[0], this.document[0].activeElement) || + this.collapseAll(b) + }) + }, + keydown: '_keydown', + }), + this.refresh(), + this._on(this.document, { + click: function (b) { + a(b.target).closest('.ui-menu').length || this.collapseAll(b), + (this.mouseHandled = !1) + }, + }) + }, + _destroy: function () { + this.element + .removeAttr('aria-activedescendant') + .find('.ui-menu') + .addBack() + .removeClass( + 'ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons' + ) + .removeAttr('role') + .removeAttr('tabIndex') + .removeAttr('aria-labelledby') + .removeAttr('aria-expanded') + .removeAttr('aria-hidden') + .removeAttr('aria-disabled') + .removeUniqueId() + .show(), + this.element + .find('.ui-menu-item') + .removeClass('ui-menu-item') + .removeAttr('role') + .removeAttr('aria-disabled') + .children('a') + .removeUniqueId() + .removeClass('ui-corner-all ui-state-hover') + .removeAttr('tabIndex') + .removeAttr('role') + .removeAttr('aria-haspopup') + .children() + .each(function () { + var b = a(this) + b.data('ui-menu-submenu-carat') && b.remove() + }), + this.element + .find('.ui-menu-divider') + .removeClass('ui-menu-divider ui-widget-content') + }, + _keydown: function (b) { + function i(a) { + return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&') + } + var c, + d, + e, + f, + g, + h = !0 + switch (b.keyCode) { + case a.ui.keyCode.PAGE_UP: + this.previousPage(b) + break + case a.ui.keyCode.PAGE_DOWN: + this.nextPage(b) + break + case a.ui.keyCode.HOME: + this._move('first', 'first', b) + break + case a.ui.keyCode.END: + this._move('last', 'last', b) + break + case a.ui.keyCode.UP: + this.previous(b) + break + case a.ui.keyCode.DOWN: + this.next(b) + break + case a.ui.keyCode.LEFT: + this.collapse(b) + break + case a.ui.keyCode.RIGHT: + this.active && + !this.active.is('.ui-state-disabled') && + this.expand(b) + break + case a.ui.keyCode.ENTER: + case a.ui.keyCode.SPACE: + this._activate(b) + break + case a.ui.keyCode.ESCAPE: + this.collapse(b) + break + default: + ;(h = !1), + (d = this.previousFilter || ''), + (e = String.fromCharCode(b.keyCode)), + (f = !1), + clearTimeout(this.filterTimer), + e === d ? (f = !0) : (e = d + e), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + })), + (c = + f && c.index(this.active.next()) !== -1 + ? this.active.nextAll('.ui-menu-item') + : c), + c.length || + ((e = String.fromCharCode(b.keyCode)), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + }))), + c.length + ? (this.focus(b, c), + c.length > 1 + ? ((this.previousFilter = e), + (this.filterTimer = this._delay(function () { + delete this.previousFilter + }, 1e3))) + : delete this.previousFilter) + : delete this.previousFilter + } + h && b.preventDefault() + }, + _activate: function (a) { + this.active.is('.ui-state-disabled') || + (this.active.children("a[aria-haspopup='true']").length + ? this.expand(a) + : this.select(a)) + }, + refresh: function () { + var b, + c = this.options.icons.submenu, + d = this.element.find(this.options.menus) + d + .filter(':not(.ui-menu)') + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .hide() + .attr({ + role: this.options.role, + 'aria-hidden': 'true', + 'aria-expanded': 'false', + }) + .each(function () { + var b = a(this), + d = b.prev('a'), + e = a('') + .addClass('ui-menu-icon ui-icon ' + c) + .data('ui-menu-submenu-carat', !0) + d.attr('aria-haspopup', 'true').prepend(e), + b.attr('aria-labelledby', d.attr('id')) + }), + (b = d.add(this.element)), + b + .children(':not(.ui-menu-item):has(a)') + .addClass('ui-menu-item') + .attr('role', 'presentation') + .children('a') + .uniqueId() + .addClass('ui-corner-all') + .attr({ tabIndex: -1, role: this._itemRole() }), + b.children(':not(.ui-menu-item)').each(function () { + var b = a(this) + ;/[^\-\u2014\u2013\s]/.test(b.text()) || + b.addClass('ui-widget-content ui-menu-divider') + }), + b.children('.ui-state-disabled').attr('aria-disabled', 'true'), + this.active && + !a.contains(this.element[0], this.active[0]) && + this.blur() + }, + _itemRole: function () { + return { menu: 'menuitem', listbox: 'option' }[this.options.role] + }, + _setOption: function (a, b) { + 'icons' === a && + this.element + .find('.ui-menu-icon') + .removeClass(this.options.icons.submenu) + .addClass(b.submenu), + this._super(a, b) + }, + focus: function (a, b) { + var c, d + this.blur(a, a && 'focus' === a.type), + this._scrollIntoView(b), + (this.active = b.first()), + (d = this.active.children('a').addClass('ui-state-focus')), + this.options.role && + this.element.attr('aria-activedescendant', d.attr('id')), + this.active + .parent() + .closest('.ui-menu-item') + .children('a:first') + .addClass('ui-state-active'), + a && 'keydown' === a.type + ? this._close() + : (this.timer = this._delay(function () { + this._close() + }, this.delay)), + (c = b.children('.ui-menu')), + c.length && /^mouse/.test(a.type) && this._startOpening(c), + (this.activeMenu = b.parent()), + this._trigger('focus', a, { item: b }) + }, + _scrollIntoView: function (b) { + var c, d, e, f, g, h + this._hasScroll() && + ((c = parseFloat(a.css(this.activeMenu[0], 'borderTopWidth')) || 0), + (d = parseFloat(a.css(this.activeMenu[0], 'paddingTop')) || 0), + (e = b.offset().top - this.activeMenu.offset().top - c - d), + (f = this.activeMenu.scrollTop()), + (g = this.activeMenu.height()), + (h = b.height()), + e < 0 + ? this.activeMenu.scrollTop(f + e) + : e + h > g && this.activeMenu.scrollTop(f + e - g + h)) + }, + blur: function (a, b) { + b || clearTimeout(this.timer), + this.active && + (this.active.children('a').removeClass('ui-state-focus'), + (this.active = null), + this._trigger('blur', a, { item: this.active })) + }, + _startOpening: function (a) { + clearTimeout(this.timer), + 'true' === a.attr('aria-hidden') && + (this.timer = this._delay(function () { + this._close(), this._open(a) + }, this.delay)) + }, + _open: function (b) { + var c = a.extend({ of: this.active }, this.options.position) + clearTimeout(this.timer), + this.element + .find('.ui-menu') + .not(b.parents('.ui-menu')) + .hide() + .attr('aria-hidden', 'true'), + b + .show() + .removeAttr('aria-hidden') + .attr('aria-expanded', 'true') + .position(c) + }, + collapseAll: function (b, c) { + clearTimeout(this.timer), + (this.timer = this._delay(function () { + var d = c + ? this.element + : a(b && b.target).closest(this.element.find('.ui-menu')) + d.length || (d = this.element), + this._close(d), + this.blur(b), + (this.activeMenu = d) + }, this.delay)) + }, + _close: function (a) { + a || (a = this.active ? this.active.parent() : this.element), + a + .find('.ui-menu') + .hide() + .attr('aria-hidden', 'true') + .attr('aria-expanded', 'false') + .end() + .find('a.ui-state-active') + .removeClass('ui-state-active') + }, + collapse: function (a) { + var b = + this.active && + this.active.parent().closest('.ui-menu-item', this.element) + b && b.length && (this._close(), this.focus(a, b)) + }, + expand: function (a) { + var b = + this.active && + this.active.children('.ui-menu ').children('.ui-menu-item').first() + b && + b.length && + (this._open(b.parent()), + this._delay(function () { + this.focus(a, b) + })) + }, + next: function (a) { + this._move('next', 'first', a) + }, + previous: function (a) { + this._move('prev', 'last', a) + }, + isFirstItem: function () { + return this.active && !this.active.prevAll('.ui-menu-item').length + }, + isLastItem: function () { + return this.active && !this.active.nextAll('.ui-menu-item').length + }, + _move: function (a, b, c) { + var d + this.active && + (d = + 'first' === a || 'last' === a + ? this.active['first' === a ? 'prevAll' : 'nextAll']( + '.ui-menu-item' + ).eq(-1) + : this.active[a + 'All']('.ui-menu-item').eq(0)), + (d && d.length && this.active) || + (d = this.activeMenu.children('.ui-menu-item')[b]()), + this.focus(c, d) + }, + nextPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isLastItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.nextAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d - e < 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu + .children('.ui-menu-item') + [this.active ? 'last' : 'first']() + )) + ) + : void this.next(b) + }, + previousPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isFirstItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.prevAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d + e > 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu.children('.ui-menu-item').first() + )) + ) + : void this.next(b) + }, + _hasScroll: function () { + return this.element.outerHeight() < this.element.prop('scrollHeight') + }, + select: function (b) { + this.active = this.active || a(b.target).closest('.ui-menu-item') + var c = { item: this.active } + this.active.has('.ui-menu').length || this.collapseAll(b, !0), + this._trigger('select', b, c) + }, + }) + })(jQuery), + (function (a, b) { + function m(a, b, c) { + return [ + parseFloat(a[0]) * (k.test(a[0]) ? b / 100 : 1), + parseFloat(a[1]) * (k.test(a[1]) ? c / 100 : 1), + ] + } + function n(b, c) { + return parseInt(a.css(b, c), 10) || 0 + } + function o(b) { + var c = b[0] + return 9 === c.nodeType + ? { width: b.width(), height: b.height(), offset: { top: 0, left: 0 } } + : a.isWindow(c) + ? { + width: b.width(), + height: b.height(), + offset: { top: b.scrollTop(), left: b.scrollLeft() }, + } + : c.preventDefault + ? { width: 0, height: 0, offset: { top: c.pageY, left: c.pageX } } + : { width: b.outerWidth(), height: b.outerHeight(), offset: b.offset() } + } + a.ui = a.ui || {} + var c, + d = Math.max, + e = Math.abs, + f = Math.round, + g = /left|center|right/, + h = /top|center|bottom/, + i = /[\+\-]\d+(\.[\d]+)?%?/, + j = /^\w+/, + k = /%$/, + l = a.fn.position + ;(a.position = { + scrollbarWidth: function () { + if (c !== b) return c + var d, + e, + f = a( + "
        " + ), + g = f.children()[0] + return ( + a('body').append(f), + (d = g.offsetWidth), + f.css('overflow', 'scroll'), + (e = g.offsetWidth), + d === e && (e = f[0].clientWidth), + f.remove(), + (c = d - e) + ) + }, + getScrollInfo: function (b) { + var c = b.isWindow ? '' : b.element.css('overflow-x'), + d = b.isWindow ? '' : b.element.css('overflow-y'), + e = + 'scroll' === c || + ('auto' === c && b.width < b.element[0].scrollWidth), + f = + 'scroll' === d || + ('auto' === d && b.height < b.element[0].scrollHeight) + return { + width: f ? a.position.scrollbarWidth() : 0, + height: e ? a.position.scrollbarWidth() : 0, + } + }, + getWithinInfo: function (b) { + var c = a(b || window), + d = a.isWindow(c[0]) + return { + element: c, + isWindow: d, + offset: c.offset() || { left: 0, top: 0 }, + scrollLeft: c.scrollLeft(), + scrollTop: c.scrollTop(), + width: d ? c.width() : c.outerWidth(), + height: d ? c.height() : c.outerHeight(), + } + }, + }), + (a.fn.position = function (b) { + if (!b || !b.of) return l.apply(this, arguments) + b = a.extend({}, b) + var c, + k, + p, + q, + r, + s, + t = a(b.of), + u = a.position.getWithinInfo(b.within), + v = a.position.getScrollInfo(u), + w = (b.collision || 'flip').split(' '), + x = {} + return ( + (s = o(t)), + t[0].preventDefault && (b.at = 'left top'), + (k = s.width), + (p = s.height), + (q = s.offset), + (r = a.extend({}, q)), + a.each(['my', 'at'], function () { + var c, + d, + a = (b[this] || '').split(' ') + 1 === a.length && + (a = g.test(a[0]) + ? a.concat(['center']) + : h.test(a[0]) + ? ['center'].concat(a) + : ['center', 'center']), + (a[0] = g.test(a[0]) ? a[0] : 'center'), + (a[1] = h.test(a[1]) ? a[1] : 'center'), + (c = i.exec(a[0])), + (d = i.exec(a[1])), + (x[this] = [c ? c[0] : 0, d ? d[0] : 0]), + (b[this] = [j.exec(a[0])[0], j.exec(a[1])[0]]) + }), + 1 === w.length && (w[1] = w[0]), + 'right' === b.at[0] + ? (r.left += k) + : 'center' === b.at[0] && (r.left += k / 2), + 'bottom' === b.at[1] + ? (r.top += p) + : 'center' === b.at[1] && (r.top += p / 2), + (c = m(x.at, k, p)), + (r.left += c[0]), + (r.top += c[1]), + this.each(function () { + var g, + h, + i = a(this), + j = i.outerWidth(), + l = i.outerHeight(), + o = n(this, 'marginLeft'), + s = n(this, 'marginTop'), + y = j + o + n(this, 'marginRight') + v.width, + z = l + s + n(this, 'marginBottom') + v.height, + A = a.extend({}, r), + B = m(x.my, i.outerWidth(), i.outerHeight()) + 'right' === b.my[0] + ? (A.left -= j) + : 'center' === b.my[0] && (A.left -= j / 2), + 'bottom' === b.my[1] + ? (A.top -= l) + : 'center' === b.my[1] && (A.top -= l / 2), + (A.left += B[0]), + (A.top += B[1]), + a.support.offsetFractions || + ((A.left = f(A.left)), (A.top = f(A.top))), + (g = { marginLeft: o, marginTop: s }), + a.each(['left', 'top'], function (d, e) { + a.ui.position[w[d]] && + a.ui.position[w[d]][e](A, { + targetWidth: k, + targetHeight: p, + elemWidth: j, + elemHeight: l, + collisionPosition: g, + collisionWidth: y, + collisionHeight: z, + offset: [c[0] + B[0], c[1] + B[1]], + my: b.my, + at: b.at, + within: u, + elem: i, + }) + }), + b.using && + (h = function (a) { + var c = q.left - A.left, + f = c + k - j, + g = q.top - A.top, + h = g + p - l, + m = { + target: { + element: t, + left: q.left, + top: q.top, + width: k, + height: p, + }, + element: { + element: i, + left: A.left, + top: A.top, + width: j, + height: l, + }, + horizontal: f < 0 ? 'left' : c > 0 ? 'right' : 'center', + vertical: h < 0 ? 'top' : g > 0 ? 'bottom' : 'middle', + } + k < j && e(c + f) < k && (m.horizontal = 'center'), + p < l && e(g + h) < p && (m.vertical = 'middle'), + d(e(c), e(f)) > d(e(g), e(h)) + ? (m.important = 'horizontal') + : (m.important = 'vertical'), + b.using.call(this, a, m) + }), + i.offset(a.extend(A, { using: h })) + }) + ) + }), + (a.ui.position = { + fit: { + left: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollLeft : c.offset.left, + f = c.width, + g = a.left - b.collisionPosition.marginLeft, + h = e - g, + i = g + b.collisionWidth - f - e + b.collisionWidth > f + ? h > 0 && i <= 0 + ? ((j = a.left + h + b.collisionWidth - f - e), + (a.left += h - j)) + : i > 0 && h <= 0 + ? (a.left = e) + : h > i + ? (a.left = e + f - b.collisionWidth) + : (a.left = e) + : h > 0 + ? (a.left += h) + : i > 0 + ? (a.left -= i) + : (a.left = d(a.left - g, a.left)) + }, + top: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollTop : c.offset.top, + f = b.within.height, + g = a.top - b.collisionPosition.marginTop, + h = e - g, + i = g + b.collisionHeight - f - e + b.collisionHeight > f + ? h > 0 && i <= 0 + ? ((j = a.top + h + b.collisionHeight - f - e), + (a.top += h - j)) + : i > 0 && h <= 0 + ? (a.top = e) + : h > i + ? (a.top = e + f - b.collisionHeight) + : (a.top = e) + : h > 0 + ? (a.top += h) + : i > 0 + ? (a.top -= i) + : (a.top = d(a.top - g, a.top)) + }, + }, + flip: { + left: function (a, b) { + var n, + o, + c = b.within, + d = c.offset.left + c.scrollLeft, + f = c.width, + g = c.isWindow ? c.scrollLeft : c.offset.left, + h = a.left - b.collisionPosition.marginLeft, + i = h - g, + j = h + b.collisionWidth - f - g, + k = + 'left' === b.my[0] + ? -b.elemWidth + : 'right' === b.my[0] + ? b.elemWidth + : 0, + l = + 'left' === b.at[0] + ? b.targetWidth + : 'right' === b.at[0] + ? -b.targetWidth + : 0, + m = -2 * b.offset[0] + i < 0 + ? ((n = a.left + k + l + m + b.collisionWidth - f - d), + (n < 0 || n < e(i)) && (a.left += k + l + m)) + : j > 0 && + ((o = a.left - b.collisionPosition.marginLeft + k + l + m - g), + (o > 0 || e(o) < j) && (a.left += k + l + m)) + }, + top: function (a, b) { + var o, + p, + c = b.within, + d = c.offset.top + c.scrollTop, + f = c.height, + g = c.isWindow ? c.scrollTop : c.offset.top, + h = a.top - b.collisionPosition.marginTop, + i = h - g, + j = h + b.collisionHeight - f - g, + k = 'top' === b.my[1], + l = k ? -b.elemHeight : 'bottom' === b.my[1] ? b.elemHeight : 0, + m = + 'top' === b.at[1] + ? b.targetHeight + : 'bottom' === b.at[1] + ? -b.targetHeight + : 0, + n = -2 * b.offset[1] + i < 0 + ? ((p = a.top + l + m + n + b.collisionHeight - f - d), + a.top + l + m + n > i && + (p < 0 || p < e(i)) && + (a.top += l + m + n)) + : j > 0 && + ((o = a.top - b.collisionPosition.marginTop + l + m + n - g), + a.top + l + m + n > j && + (o > 0 || e(o) < j) && + (a.top += l + m + n)) + }, + }, + flipfit: { + left: function () { + a.ui.position.flip.left.apply(this, arguments), + a.ui.position.fit.left.apply(this, arguments) + }, + top: function () { + a.ui.position.flip.top.apply(this, arguments), + a.ui.position.fit.top.apply(this, arguments) + }, + }, + }), + (function () { + var b, + c, + d, + e, + f, + g = document.getElementsByTagName('body')[0], + h = document.createElement('div') + ;(b = document.createElement(g ? 'div' : 'body')), + (d = { + visibility: 'hidden', + width: 0, + height: 0, + border: 0, + margin: 0, + background: 'none', + }), + g && + a.extend(d, { + position: 'absolute', + left: '-1000px', + top: '-1000px', + }) + for (f in d) b.style[f] = d[f] + b.appendChild(h), + (c = g || document.documentElement), + c.insertBefore(b, c.firstChild), + (h.style.cssText = 'position: absolute; left: 10.7432222px;'), + (e = a(h).offset().left), + (a.support.offsetFractions = e > 10 && e < 11), + (b.innerHTML = ''), + c.removeChild(b) + })() + })(jQuery), + (function (a, b) { + a.widget('ui.progressbar', { + version: '1.10.3', + options: { max: 100, value: 0, change: null, complete: null }, + min: 0, + _create: function () { + ;(this.oldValue = this.options.value = this._constrainedValue()), + this.element + .addClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .attr({ role: 'progressbar', 'aria-valuemin': this.min }), + (this.valueDiv = a( + "
        " + ).appendTo(this.element)), + this._refreshValue() + }, + _destroy: function () { + this.element + .removeClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.valueDiv.remove() + }, + value: function (a) { + return a === b + ? this.options.value + : ((this.options.value = this._constrainedValue(a)), + void this._refreshValue()) + }, + _constrainedValue: function (a) { + return ( + a === b && (a = this.options.value), + (this.indeterminate = a === !1), + 'number' != typeof a && (a = 0), + !this.indeterminate && + Math.min(this.options.max, Math.max(this.min, a)) + ) + }, + _setOptions: function (a) { + var b = a.value + delete a.value, + this._super(a), + (this.options.value = this._constrainedValue(b)), + this._refreshValue() + }, + _setOption: function (a, b) { + 'max' === a && (b = Math.max(this.min, b)), this._super(a, b) + }, + _percentage: function () { + return this.indeterminate + ? 100 + : (100 * (this.options.value - this.min)) / + (this.options.max - this.min) + }, + _refreshValue: function () { + var b = this.options.value, + c = this._percentage() + this.valueDiv + .toggle(this.indeterminate || b > this.min) + .toggleClass('ui-corner-right', b === this.options.max) + .width(c.toFixed(0) + '%'), + this.element.toggleClass( + 'ui-progressbar-indeterminate', + this.indeterminate + ), + this.indeterminate + ? (this.element.removeAttr('aria-valuenow'), + this.overlayDiv || + (this.overlayDiv = a( + "
        " + ).appendTo(this.valueDiv))) + : (this.element.attr({ + 'aria-valuemax': this.options.max, + 'aria-valuenow': b, + }), + this.overlayDiv && + (this.overlayDiv.remove(), (this.overlayDiv = null))), + this.oldValue !== b && ((this.oldValue = b), this._trigger('change')), + b === this.options.max && this._trigger('complete') + }, + }) + })(jQuery), + (function (a, b) { + var c = 5 + a.widget('ui.slider', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'slide', + options: { + animate: !1, + distance: 0, + max: 100, + min: 0, + orientation: 'horizontal', + range: !1, + step: 1, + value: 0, + values: null, + change: null, + slide: null, + start: null, + stop: null, + }, + _create: function () { + ;(this._keySliding = !1), + (this._mouseSliding = !1), + (this._animateOff = !0), + (this._handleIndex = null), + this._detectOrientation(), + this._mouseInit(), + this.element.addClass( + 'ui-slider ui-slider-' + + this.orientation + + ' ui-widget ui-widget-content ui-corner-all' + ), + this._refresh(), + this._setOption('disabled', this.options.disabled), + (this._animateOff = !1) + }, + _refresh: function () { + this._createRange(), + this._createHandles(), + this._setupEvents(), + this._refreshValue() + }, + _createHandles: function () { + var b, + c, + d = this.options, + e = this.element + .find('.ui-slider-handle') + .addClass('ui-state-default ui-corner-all'), + f = + "", + g = [] + for ( + c = (d.values && d.values.length) || 1, + e.length > c && (e.slice(c).remove(), (e = e.slice(0, c))), + b = e.length; + b < c; + b++ + ) + g.push(f) + ;(this.handles = e.add(a(g.join('')).appendTo(this.element))), + (this.handle = this.handles.eq(0)), + this.handles.each(function (b) { + a(this).data('ui-slider-handle-index', b) + }) + }, + _createRange: function () { + var b = this.options, + c = '' + b.range + ? (b.range === !0 && + (b.values + ? b.values.length && 2 !== b.values.length + ? (b.values = [b.values[0], b.values[0]]) + : a.isArray(b.values) && (b.values = b.values.slice(0)) + : (b.values = [this._valueMin(), this._valueMin()])), + this.range && this.range.length + ? this.range + .removeClass('ui-slider-range-min ui-slider-range-max') + .css({ left: '', bottom: '' }) + : ((this.range = a('
        ').appendTo(this.element)), + (c = 'ui-slider-range ui-widget-header ui-corner-all')), + this.range.addClass( + c + + ('min' === b.range || 'max' === b.range + ? ' ui-slider-range-' + b.range + : '') + )) + : (this.range = a([])) + }, + _setupEvents: function () { + var a = this.handles.add(this.range).filter('a') + this._off(a), + this._on(a, this._handleEvents), + this._hoverable(a), + this._focusable(a) + }, + _destroy: function () { + this.handles.remove(), + this.range.remove(), + this.element.removeClass( + 'ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all' + ), + this._mouseDestroy() + }, + _mouseCapture: function (b) { + var c, + d, + e, + f, + g, + h, + i, + j, + k = this, + l = this.options + return ( + !l.disabled && + ((this.elementSize = { + width: this.element.outerWidth(), + height: this.element.outerHeight(), + }), + (this.elementOffset = this.element.offset()), + (c = { x: b.pageX, y: b.pageY }), + (d = this._normValueFromMouse(c)), + (e = this._valueMax() - this._valueMin() + 1), + this.handles.each(function (b) { + var c = Math.abs(d - k.values(b)) + ;(e > c || + (e === c && + (b === k._lastChangedValue || k.values(b) === l.min))) && + ((e = c), (f = a(this)), (g = b)) + }), + (h = this._start(b, g)), + h !== !1 && + ((this._mouseSliding = !0), + (this._handleIndex = g), + f.addClass('ui-state-active').focus(), + (i = f.offset()), + (j = !a(b.target).parents().addBack().is('.ui-slider-handle')), + (this._clickOffset = j + ? { left: 0, top: 0 } + : { + left: b.pageX - i.left - f.width() / 2, + top: + b.pageY - + i.top - + f.height() / 2 - + (parseInt(f.css('borderTopWidth'), 10) || 0) - + (parseInt(f.css('borderBottomWidth'), 10) || 0) + + (parseInt(f.css('marginTop'), 10) || 0), + }), + this.handles.hasClass('ui-state-hover') || this._slide(b, g, d), + (this._animateOff = !0), + !0)) + ) + }, + _mouseStart: function () { + return !0 + }, + _mouseDrag: function (a) { + var b = { x: a.pageX, y: a.pageY }, + c = this._normValueFromMouse(b) + return this._slide(a, this._handleIndex, c), !1 + }, + _mouseStop: function (a) { + return ( + this.handles.removeClass('ui-state-active'), + (this._mouseSliding = !1), + this._stop(a, this._handleIndex), + this._change(a, this._handleIndex), + (this._handleIndex = null), + (this._clickOffset = null), + (this._animateOff = !1), + !1 + ) + }, + _detectOrientation: function () { + this.orientation = + 'vertical' === this.options.orientation ? 'vertical' : 'horizontal' + }, + _normValueFromMouse: function (a) { + var b, c, d, e, f + return ( + 'horizontal' === this.orientation + ? ((b = this.elementSize.width), + (c = + a.x - + this.elementOffset.left - + (this._clickOffset ? this._clickOffset.left : 0))) + : ((b = this.elementSize.height), + (c = + a.y - + this.elementOffset.top - + (this._clickOffset ? this._clickOffset.top : 0))), + (d = c / b), + d > 1 && (d = 1), + d < 0 && (d = 0), + 'vertical' === this.orientation && (d = 1 - d), + (e = this._valueMax() - this._valueMin()), + (f = this._valueMin() + d * e), + this._trimAlignValue(f) + ) + }, + _start: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + return ( + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('start', a, c) + ) + }, + _slide: function (a, b, c) { + var d, e, f + this.options.values && this.options.values.length + ? ((d = this.values(b ? 0 : 1)), + 2 === this.options.values.length && + this.options.range === !0 && + ((0 === b && c > d) || (1 === b && c < d)) && + (c = d), + c !== this.values(b) && + ((e = this.values()), + (e[b] = c), + (f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + values: e, + })), + (d = this.values(b ? 0 : 1)), + f !== !1 && this.values(b, c, !0))) + : c !== this.value() && + ((f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + })), + f !== !1 && this.value(c)) + }, + _stop: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('stop', a, c) + }, + _change: function (a, b) { + if (!this._keySliding && !this._mouseSliding) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + (this._lastChangedValue = b), + this._trigger('change', a, c) + } + }, + value: function (a) { + return arguments.length + ? ((this.options.value = this._trimAlignValue(a)), + this._refreshValue(), + void this._change(null, 0)) + : this._value() + }, + values: function (b, c) { + var d, e, f + if (arguments.length > 1) + return ( + (this.options.values[b] = this._trimAlignValue(c)), + this._refreshValue(), + void this._change(null, b) + ) + if (!arguments.length) return this._values() + if (!a.isArray(arguments[0])) + return this.options.values && this.options.values.length + ? this._values(b) + : this.value() + for ( + d = this.options.values, e = arguments[0], f = 0; + f < d.length; + f += 1 + ) + (d[f] = this._trimAlignValue(e[f])), this._change(null, f) + this._refreshValue() + }, + _setOption: function (b, c) { + var d, + e = 0 + switch ( + ('range' === b && + this.options.range === !0 && + ('min' === c + ? ((this.options.value = this._values(0)), + (this.options.values = null)) + : 'max' === c && + ((this.options.value = this._values( + this.options.values.length - 1 + )), + (this.options.values = null))), + a.isArray(this.options.values) && (e = this.options.values.length), + a.Widget.prototype._setOption.apply(this, arguments), + b) + ) { + case 'orientation': + this._detectOrientation(), + this.element + .removeClass('ui-slider-horizontal ui-slider-vertical') + .addClass('ui-slider-' + this.orientation), + this._refreshValue() + break + case 'value': + ;(this._animateOff = !0), + this._refreshValue(), + this._change(null, 0), + (this._animateOff = !1) + break + case 'values': + for ( + this._animateOff = !0, this._refreshValue(), d = 0; + d < e; + d += 1 + ) + this._change(null, d) + this._animateOff = !1 + break + case 'min': + case 'max': + ;(this._animateOff = !0), + this._refreshValue(), + (this._animateOff = !1) + break + case 'range': + ;(this._animateOff = !0), this._refresh(), (this._animateOff = !1) + } + }, + _value: function () { + var a = this.options.value + return (a = this._trimAlignValue(a)) + }, + _values: function (a) { + var b, c, d + if (arguments.length) + return (b = this.options.values[a]), (b = this._trimAlignValue(b)) + if (this.options.values && this.options.values.length) { + for (c = this.options.values.slice(), d = 0; d < c.length; d += 1) + c[d] = this._trimAlignValue(c[d]) + return c + } + return [] + }, + _trimAlignValue: function (a) { + if (a <= this._valueMin()) return this._valueMin() + if (a >= this._valueMax()) return this._valueMax() + var b = this.options.step > 0 ? this.options.step : 1, + c = (a - this._valueMin()) % b, + d = a - c + return ( + 2 * Math.abs(c) >= b && (d += c > 0 ? b : -b), + parseFloat(d.toFixed(5)) + ) + }, + _valueMin: function () { + return this.options.min + }, + _valueMax: function () { + return this.options.max + }, + _refreshValue: function () { + var b, + c, + d, + e, + f, + g = this.options.range, + h = this.options, + i = this, + j = !this._animateOff && h.animate, + k = {} + this.options.values && this.options.values.length + ? this.handles.each(function (d) { + ;(c = + ((i.values(d) - i._valueMin()) / + (i._valueMax() - i._valueMin())) * + 100), + (k['horizontal' === i.orientation ? 'left' : 'bottom'] = + c + '%'), + a(this).stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + i.options.range === !0 && + ('horizontal' === i.orientation + ? (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']({ left: c + '%' }, h.animate), + 1 === d && + i.range[j ? 'animate' : 'css']( + { width: c - b + '%' }, + { queue: !1, duration: h.animate } + )) + : (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']( + { bottom: c + '%' }, + h.animate + ), + 1 === d && + i.range[j ? 'animate' : 'css']( + { height: c - b + '%' }, + { queue: !1, duration: h.animate } + ))), + (b = c) + }) + : ((d = this.value()), + (e = this._valueMin()), + (f = this._valueMax()), + (c = f !== e ? ((d - e) / (f - e)) * 100 : 0), + (k['horizontal' === this.orientation ? 'left' : 'bottom'] = + c + '%'), + this.handle.stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + 'min' === g && + 'horizontal' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ width: c + '%' }, h.animate), + 'max' === g && + 'horizontal' === this.orientation && + this.range[j ? 'animate' : 'css']( + { width: 100 - c + '%' }, + { queue: !1, duration: h.animate } + ), + 'min' === g && + 'vertical' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ height: c + '%' }, h.animate), + 'max' === g && + 'vertical' === this.orientation && + this.range[j ? 'animate' : 'css']( + { height: 100 - c + '%' }, + { queue: !1, duration: h.animate } + )) + }, + _handleEvents: { + keydown: function (b) { + var d, + e, + f, + g, + h = a(b.target).data('ui-slider-handle-index') + switch (b.keyCode) { + case a.ui.keyCode.HOME: + case a.ui.keyCode.END: + case a.ui.keyCode.PAGE_UP: + case a.ui.keyCode.PAGE_DOWN: + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if ( + (b.preventDefault(), + !this._keySliding && + ((this._keySliding = !0), + a(b.target).addClass('ui-state-active'), + (d = this._start(b, h)), + d === !1)) + ) + return + } + switch ( + ((g = this.options.step), + (e = f = + this.options.values && this.options.values.length + ? this.values(h) + : this.value()), + b.keyCode) + ) { + case a.ui.keyCode.HOME: + f = this._valueMin() + break + case a.ui.keyCode.END: + f = this._valueMax() + break + case a.ui.keyCode.PAGE_UP: + f = this._trimAlignValue( + e + (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.PAGE_DOWN: + f = this._trimAlignValue( + e - (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + if (e === this._valueMax()) return + f = this._trimAlignValue(e + g) + break + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if (e === this._valueMin()) return + f = this._trimAlignValue(e - g) + } + this._slide(b, h, f) + }, + click: function (a) { + a.preventDefault() + }, + keyup: function (b) { + var c = a(b.target).data('ui-slider-handle-index') + this._keySliding && + ((this._keySliding = !1), + this._stop(b, c), + this._change(b, c), + a(b.target).removeClass('ui-state-active')) + }, + }, + }) + })(jQuery), + (function (a) { + function b(a) { + return function () { + var b = this.element.val() + a.apply(this, arguments), + this._refresh(), + b !== this.element.val() && this._trigger('change') + } + } + a.widget('ui.spinner', { + version: '1.10.3', + defaultElement: '', + widgetEventPrefix: 'spin', + options: { + culture: null, + icons: { down: 'ui-icon-triangle-1-s', up: 'ui-icon-triangle-1-n' }, + incremental: !0, + max: null, + min: null, + numberFormat: null, + page: 10, + step: 1, + change: null, + spin: null, + start: null, + stop: null, + }, + _create: function () { + this._setOption('max', this.options.max), + this._setOption('min', this.options.min), + this._setOption('step', this.options.step), + this._value(this.element.val(), !0), + this._draw(), + this._on(this._events), + this._refresh(), + this._on(this.window, { + beforeunload: function () { + this.element.removeAttr('autocomplete') + }, + }) + }, + _getCreateOptions: function () { + var b = {}, + c = this.element + return ( + a.each(['min', 'max', 'step'], function (a, d) { + var e = c.attr(d) + void 0 !== e && e.length && (b[d] = e) + }), + b + ) + }, + _events: { + keydown: function (a) { + this._start(a) && this._keydown(a) && a.preventDefault() + }, + keyup: '_stop', + focus: function () { + this.previous = this.element.val() + }, + blur: function (a) { + return this.cancelBlur + ? void delete this.cancelBlur + : (this._stop(), + this._refresh(), + void ( + this.previous !== this.element.val() && + this._trigger('change', a) + )) + }, + mousewheel: function (a, b) { + if (b) { + if (!this.spinning && !this._start(a)) return !1 + this._spin((b > 0 ? 1 : -1) * this.options.step, a), + clearTimeout(this.mousewheelTimer), + (this.mousewheelTimer = this._delay(function () { + this.spinning && this._stop(a) + }, 100)), + a.preventDefault() + } + }, + 'mousedown .ui-spinner-button': function (b) { + function d() { + var a = this.element[0] === this.document[0].activeElement + a || + (this.element.focus(), + (this.previous = c), + this._delay(function () { + this.previous = c + })) + } + var c + ;(c = + this.element[0] === this.document[0].activeElement + ? this.previous + : this.element.val()), + b.preventDefault(), + d.call(this), + (this.cancelBlur = !0), + this._delay(function () { + delete this.cancelBlur, d.call(this) + }), + this._start(b) !== !1 && + this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + }, + 'mouseup .ui-spinner-button': '_stop', + 'mouseenter .ui-spinner-button': function (b) { + if (a(b.currentTarget).hasClass('ui-state-active')) + return ( + this._start(b) !== !1 && + void this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + ) + }, + 'mouseleave .ui-spinner-button': '_stop', + }, + _draw: function () { + var a = (this.uiSpinner = this.element + .addClass('ui-spinner-input') + .attr('autocomplete', 'off') + .wrap(this._uiSpinnerHtml()) + .parent() + .append(this._buttonHtml())) + this.element.attr('role', 'spinbutton'), + (this.buttons = a + .find('.ui-spinner-button') + .attr('tabIndex', -1) + .button() + .removeClass('ui-corner-all')), + this.buttons.height() > Math.ceil(0.5 * a.height()) && + a.height() > 0 && + a.height(a.height()), + this.options.disabled && this.disable() + }, + _keydown: function (b) { + var c = this.options, + d = a.ui.keyCode + switch (b.keyCode) { + case d.UP: + return this._repeat(null, 1, b), !0 + case d.DOWN: + return this._repeat(null, -1, b), !0 + case d.PAGE_UP: + return this._repeat(null, c.page, b), !0 + case d.PAGE_DOWN: + return this._repeat(null, -c.page, b), !0 + } + return !1 + }, + _uiSpinnerHtml: function () { + return "" + }, + _buttonHtml: function () { + return ( + "" + ) + }, + _start: function (a) { + return ( + !(!this.spinning && this._trigger('start', a) === !1) && + (this.counter || (this.counter = 1), (this.spinning = !0), !0) + ) + }, + _repeat: function (a, b, c) { + ;(a = a || 500), + clearTimeout(this.timer), + (this.timer = this._delay(function () { + this._repeat(40, b, c) + }, a)), + this._spin(b * this.options.step, c) + }, + _spin: function (a, b) { + var c = this.value() || 0 + this.counter || (this.counter = 1), + (c = this._adjustValue(c + a * this._increment(this.counter))), + (this.spinning && this._trigger('spin', b, { value: c }) === !1) || + (this._value(c), this.counter++) + }, + _increment: function (b) { + var c = this.options.incremental + return c + ? a.isFunction(c) + ? c(b) + : Math.floor((b * b * b) / 5e4 - (b * b) / 500 + (17 * b) / 200 + 1) + : 1 + }, + _precision: function () { + var a = this._precisionOf(this.options.step) + return ( + null !== this.options.min && + (a = Math.max(a, this._precisionOf(this.options.min))), + a + ) + }, + _precisionOf: function (a) { + var b = a.toString(), + c = b.indexOf('.') + return c === -1 ? 0 : b.length - c - 1 + }, + _adjustValue: function (a) { + var b, + c, + d = this.options + return ( + (b = null !== d.min ? d.min : 0), + (c = a - b), + (c = Math.round(c / d.step) * d.step), + (a = b + c), + (a = parseFloat(a.toFixed(this._precision()))), + null !== d.max && a > d.max + ? d.max + : null !== d.min && a < d.min + ? d.min + : a + ) + }, + _stop: function (a) { + this.spinning && + (clearTimeout(this.timer), + clearTimeout(this.mousewheelTimer), + (this.counter = 0), + (this.spinning = !1), + this._trigger('stop', a)) + }, + _setOption: function (a, b) { + if ('culture' === a || 'numberFormat' === a) { + var c = this._parse(this.element.val()) + return (this.options[a] = b), void this.element.val(this._format(c)) + } + ;('max' !== a && 'min' !== a && 'step' !== a) || + ('string' == typeof b && (b = this._parse(b))), + 'icons' === a && + (this.buttons + .first() + .find('.ui-icon') + .removeClass(this.options.icons.up) + .addClass(b.up), + this.buttons + .last() + .find('.ui-icon') + .removeClass(this.options.icons.down) + .addClass(b.down)), + this._super(a, b), + 'disabled' === a && + (b + ? (this.element.prop('disabled', !0), + this.buttons.button('disable')) + : (this.element.prop('disabled', !1), + this.buttons.button('enable'))) + }, + _setOptions: b(function (a) { + this._super(a), this._value(this.element.val()) + }), + _parse: function (a) { + return ( + 'string' == typeof a && + '' !== a && + (a = + window.Globalize && this.options.numberFormat + ? Globalize.parseFloat(a, 10, this.options.culture) + : +a), + '' === a || isNaN(a) ? null : a + ) + }, + _format: function (a) { + return '' === a + ? '' + : window.Globalize && this.options.numberFormat + ? Globalize.format(a, this.options.numberFormat, this.options.culture) + : a + }, + _refresh: function () { + this.element.attr({ + 'aria-valuemin': this.options.min, + 'aria-valuemax': this.options.max, + 'aria-valuenow': this._parse(this.element.val()), + }) + }, + _value: function (a, b) { + var c + '' !== a && + ((c = this._parse(a)), + null !== c && + (b || (c = this._adjustValue(c)), (a = this._format(c)))), + this.element.val(a), + this._refresh() + }, + _destroy: function () { + this.element + .removeClass('ui-spinner-input') + .prop('disabled', !1) + .removeAttr('autocomplete') + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.uiSpinner.replaceWith(this.element) + }, + stepUp: b(function (a) { + this._stepUp(a) + }), + _stepUp: function (a) { + this._start() && + (this._spin((a || 1) * this.options.step), this._stop()) + }, + stepDown: b(function (a) { + this._stepDown(a) + }), + _stepDown: function (a) { + this._start() && + (this._spin((a || 1) * -this.options.step), this._stop()) + }, + pageUp: b(function (a) { + this._stepUp((a || 1) * this.options.page) + }), + pageDown: b(function (a) { + this._stepDown((a || 1) * this.options.page) + }), + value: function (a) { + return arguments.length + ? void b(this._value).call(this, a) + : this._parse(this.element.val()) + }, + widget: function () { + return this.uiSpinner + }, + }) + })(jQuery), + (function (a, b) { + function e() { + return ++c + } + function f(a) { + return ( + a.hash.length > 1 && + decodeURIComponent(a.href.replace(d, '')) === + decodeURIComponent(location.href.replace(d, '')) + ) + } + var c = 0, + d = /#.*$/ + a.widget('ui.tabs', { + version: '1.10.3', + delay: 300, + options: { + active: null, + collapsible: !1, + event: 'click', + heightStyle: 'content', + hide: null, + show: null, + activate: null, + beforeActivate: null, + beforeLoad: null, + load: null, + }, + _create: function () { + var b = this, + c = this.options + ;(this.running = !1), + this.element + .addClass('ui-tabs ui-widget ui-widget-content ui-corner-all') + .toggleClass('ui-tabs-collapsible', c.collapsible) + .delegate( + '.ui-tabs-nav > li', + 'mousedown' + this.eventNamespace, + function (b) { + a(this).is('.ui-state-disabled') && b.preventDefault() + } + ) + .delegate( + '.ui-tabs-anchor', + 'focus' + this.eventNamespace, + function () { + a(this).closest('li').is('.ui-state-disabled') && this.blur() + } + ), + this._processTabs(), + (c.active = this._initialActive()), + a.isArray(c.disabled) && + (c.disabled = a + .unique( + c.disabled.concat( + a.map(this.tabs.filter('.ui-state-disabled'), function (a) { + return b.tabs.index(a) + }) + ) + ) + .sort()), + this.options.active !== !1 && this.anchors.length + ? (this.active = this._findActive(c.active)) + : (this.active = a()), + this._refresh(), + this.active.length && this.load(c.active) + }, + _initialActive: function () { + var b = this.options.active, + c = this.options.collapsible, + d = location.hash.substring(1) + return ( + null === b && + (d && + this.tabs.each(function (c, e) { + if (a(e).attr('aria-controls') === d) return (b = c), !1 + }), + null === b && + (b = this.tabs.index(this.tabs.filter('.ui-tabs-active'))), + (null !== b && b !== -1) || (b = !!this.tabs.length && 0)), + b !== !1 && + ((b = this.tabs.index(this.tabs.eq(b))), b === -1 && (b = !c && 0)), + !c && b === !1 && this.anchors.length && (b = 0), + b + ) + }, + _getCreateEventData: function () { + return { + tab: this.active, + panel: this.active.length ? this._getPanelForTab(this.active) : a(), + } + }, + _tabKeydown: function (b) { + var c = a(this.document[0].activeElement).closest('li'), + d = this.tabs.index(c), + e = !0 + if (!this._handlePageNav(b)) { + switch (b.keyCode) { + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + d++ + break + case a.ui.keyCode.UP: + case a.ui.keyCode.LEFT: + ;(e = !1), d-- + break + case a.ui.keyCode.END: + d = this.anchors.length - 1 + break + case a.ui.keyCode.HOME: + d = 0 + break + case a.ui.keyCode.SPACE: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d) + ) + case a.ui.keyCode.ENTER: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d !== this.options.active && d) + ) + default: + return + } + b.preventDefault(), + clearTimeout(this.activating), + (d = this._focusNextTab(d, e)), + b.ctrlKey || + (c.attr('aria-selected', 'false'), + this.tabs.eq(d).attr('aria-selected', 'true'), + (this.activating = this._delay(function () { + this.option('active', d) + }, this.delay))) + } + }, + _panelKeydown: function (b) { + this._handlePageNav(b) || + (b.ctrlKey && + b.keyCode === a.ui.keyCode.UP && + (b.preventDefault(), this.active.focus())) + }, + _handlePageNav: function (b) { + return b.altKey && b.keyCode === a.ui.keyCode.PAGE_UP + ? (this._activate(this._focusNextTab(this.options.active - 1, !1)), + !0) + : b.altKey && b.keyCode === a.ui.keyCode.PAGE_DOWN + ? (this._activate(this._focusNextTab(this.options.active + 1, !0)), + !0) + : void 0 + }, + _findNextTab: function (b, c) { + function e() { + return b > d && (b = 0), b < 0 && (b = d), b + } + for ( + var d = this.tabs.length - 1; + a.inArray(e(), this.options.disabled) !== -1; + + ) + b = c ? b + 1 : b - 1 + return b + }, + _focusNextTab: function (a, b) { + return (a = this._findNextTab(a, b)), this.tabs.eq(a).focus(), a + }, + _setOption: function (a, b) { + return 'active' === a + ? void this._activate(b) + : 'disabled' === a + ? void this._setupDisabled(b) + : (this._super(a, b), + 'collapsible' === a && + (this.element.toggleClass('ui-tabs-collapsible', b), + b || this.options.active !== !1 || this._activate(0)), + 'event' === a && this._setupEvents(b), + void ('heightStyle' === a && this._setupHeightStyle(b))) + }, + _tabId: function (a) { + return a.attr('aria-controls') || 'ui-tabs-' + e() + }, + _sanitizeSelector: function (a) { + return a ? a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, '\\$&') : '' + }, + refresh: function () { + var b = this.options, + c = this.tablist.children(':has(a[href])') + ;(b.disabled = a.map(c.filter('.ui-state-disabled'), function (a) { + return c.index(a) + })), + this._processTabs(), + b.active !== !1 && this.anchors.length + ? this.active.length && !a.contains(this.tablist[0], this.active[0]) + ? this.tabs.length === b.disabled.length + ? ((b.active = !1), (this.active = a())) + : this._activate( + this._findNextTab(Math.max(0, b.active - 1), !1) + ) + : (b.active = this.tabs.index(this.active)) + : ((b.active = !1), (this.active = a())), + this._refresh() + }, + _refresh: function () { + this._setupDisabled(this.options.disabled), + this._setupEvents(this.options.event), + this._setupHeightStyle(this.options.heightStyle), + this.tabs + .not(this.active) + .attr({ 'aria-selected': 'false', tabIndex: -1 }), + this.panels + .not(this._getPanelForTab(this.active)) + .hide() + .attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + this.active.length + ? (this.active + .addClass('ui-tabs-active ui-state-active') + .attr({ 'aria-selected': 'true', tabIndex: 0 }), + this._getPanelForTab(this.active) + .show() + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' })) + : this.tabs.eq(0).attr('tabIndex', 0) + }, + _processTabs: function () { + var b = this + ;(this.tablist = this._getList() + .addClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .attr('role', 'tablist')), + (this.tabs = this.tablist + .find('> li:has(a[href])') + .addClass('ui-state-default ui-corner-top') + .attr({ role: 'tab', tabIndex: -1 })), + (this.anchors = this.tabs + .map(function () { + return a('a', this)[0] + }) + .addClass('ui-tabs-anchor') + .attr({ role: 'presentation', tabIndex: -1 })), + (this.panels = a()), + this.anchors.each(function (c, d) { + var e, + g, + h, + i = a(d).uniqueId().attr('id'), + j = a(d).closest('li'), + k = j.attr('aria-controls') + f(d) + ? ((e = d.hash), (g = b.element.find(b._sanitizeSelector(e)))) + : ((h = b._tabId(j)), + (e = '#' + h), + (g = b.element.find(e)), + g.length || + ((g = b._createPanel(h)), + g.insertAfter(b.panels[c - 1] || b.tablist)), + g.attr('aria-live', 'polite')), + g.length && (b.panels = b.panels.add(g)), + k && j.data('ui-tabs-aria-controls', k), + j.attr({ 'aria-controls': e.substring(1), 'aria-labelledby': i }), + g.attr('aria-labelledby', i) + }), + this.panels + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .attr('role', 'tabpanel') + }, + _getList: function () { + return this.element.find('ol,ul').eq(0) + }, + _createPanel: function (b) { + return a('
        ') + .attr('id', b) + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .data('ui-tabs-destroy', !0) + }, + _setupDisabled: function (b) { + a.isArray(b) && + (b.length ? b.length === this.anchors.length && (b = !0) : (b = !1)) + for (var d, c = 0; (d = this.tabs[c]); c++) + b === !0 || a.inArray(c, b) !== -1 + ? a(d).addClass('ui-state-disabled').attr('aria-disabled', 'true') + : a(d).removeClass('ui-state-disabled').removeAttr('aria-disabled') + this.options.disabled = b + }, + _setupEvents: function (b) { + var c = { + click: function (a) { + a.preventDefault() + }, + } + b && + a.each(b.split(' '), function (a, b) { + c[b] = '_eventHandler' + }), + this._off(this.anchors.add(this.tabs).add(this.panels)), + this._on(this.anchors, c), + this._on(this.tabs, { keydown: '_tabKeydown' }), + this._on(this.panels, { keydown: '_panelKeydown' }), + this._focusable(this.tabs), + this._hoverable(this.tabs) + }, + _setupHeightStyle: function (b) { + var c, + d = this.element.parent() + 'fill' === b + ? ((c = d.height()), + (c -= this.element.outerHeight() - this.element.height()), + this.element.siblings(':visible').each(function () { + var b = a(this), + d = b.css('position') + 'absolute' !== d && 'fixed' !== d && (c -= b.outerHeight(!0)) + }), + this.element + .children() + .not(this.panels) + .each(function () { + c -= a(this).outerHeight(!0) + }), + this.panels + .each(function () { + a(this).height( + Math.max(0, c - a(this).innerHeight() + a(this).height()) + ) + }) + .css('overflow', 'auto')) + : 'auto' === b && + ((c = 0), + this.panels + .each(function () { + c = Math.max(c, a(this).height('').height()) + }) + .height(c)) + }, + _eventHandler: function (b) { + var c = this.options, + d = this.active, + e = a(b.currentTarget), + f = e.closest('li'), + g = f[0] === d[0], + h = g && c.collapsible, + i = h ? a() : this._getPanelForTab(f), + j = d.length ? this._getPanelForTab(d) : a(), + k = { oldTab: d, oldPanel: j, newTab: h ? a() : f, newPanel: i } + b.preventDefault(), + f.hasClass('ui-state-disabled') || + f.hasClass('ui-tabs-loading') || + this.running || + (g && !c.collapsible) || + this._trigger('beforeActivate', b, k) === !1 || + ((c.active = !h && this.tabs.index(f)), + (this.active = g ? a() : f), + this.xhr && this.xhr.abort(), + j.length || + i.length || + a.error('jQuery UI Tabs: Mismatching fragment identifier.'), + i.length && this.load(this.tabs.index(f), b), + this._toggle(b, k)) + }, + _toggle: function (b, c) { + function g() { + ;(d.running = !1), d._trigger('activate', b, c) + } + function h() { + c.newTab.closest('li').addClass('ui-tabs-active ui-state-active'), + e.length && d.options.show + ? d._show(e, d.options.show, g) + : (e.show(), g()) + } + var d = this, + e = c.newPanel, + f = c.oldPanel + ;(this.running = !0), + f.length && this.options.hide + ? this._hide(f, this.options.hide, function () { + c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + h() + }) + : (c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + f.hide(), + h()), + f.attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + c.oldTab.attr('aria-selected', 'false'), + e.length && f.length + ? c.oldTab.attr('tabIndex', -1) + : e.length && + this.tabs + .filter(function () { + return 0 === a(this).attr('tabIndex') + }) + .attr('tabIndex', -1), + e.attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }), + c.newTab.attr({ 'aria-selected': 'true', tabIndex: 0 }) + }, + _activate: function (b) { + var c, + d = this._findActive(b) + d[0] !== this.active[0] && + (d.length || (d = this.active), + (c = d.find('.ui-tabs-anchor')[0]), + this._eventHandler({ + target: c, + currentTarget: c, + preventDefault: a.noop, + })) + }, + _findActive: function (b) { + return b === !1 ? a() : this.tabs.eq(b) + }, + _getIndex: function (a) { + return ( + 'string' == typeof a && + (a = this.anchors.index( + this.anchors.filter("[href$='" + a + "']") + )), + a + ) + }, + _destroy: function () { + this.xhr && this.xhr.abort(), + this.element.removeClass( + 'ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible' + ), + this.tablist + .removeClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .removeAttr('role'), + this.anchors + .removeClass('ui-tabs-anchor') + .removeAttr('role') + .removeAttr('tabIndex') + .removeUniqueId(), + this.tabs.add(this.panels).each(function () { + a.data(this, 'ui-tabs-destroy') + ? a(this).remove() + : a(this) + .removeClass( + 'ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel' + ) + .removeAttr('tabIndex') + .removeAttr('aria-live') + .removeAttr('aria-busy') + .removeAttr('aria-selected') + .removeAttr('aria-labelledby') + .removeAttr('aria-hidden') + .removeAttr('aria-expanded') + .removeAttr('role') + }), + this.tabs.each(function () { + var b = a(this), + c = b.data('ui-tabs-aria-controls') + c + ? b.attr('aria-controls', c).removeData('ui-tabs-aria-controls') + : b.removeAttr('aria-controls') + }), + this.panels.show(), + 'content' !== this.options.heightStyle && + this.panels.css('height', '') + }, + enable: function (c) { + var d = this.options.disabled + d !== !1 && + (c === b + ? (d = !1) + : ((c = this._getIndex(c)), + (d = a.isArray(d) + ? a.map(d, function (a) { + return a !== c ? a : null + }) + : a.map(this.tabs, function (a, b) { + return b !== c ? b : null + }))), + this._setupDisabled(d)) + }, + disable: function (c) { + var d = this.options.disabled + if (d !== !0) { + if (c === b) d = !0 + else { + if (((c = this._getIndex(c)), a.inArray(c, d) !== -1)) return + d = a.isArray(d) ? a.merge([c], d).sort() : [c] + } + this._setupDisabled(d) + } + }, + load: function (b, c) { + b = this._getIndex(b) + var d = this, + e = this.tabs.eq(b), + g = e.find('.ui-tabs-anchor'), + h = this._getPanelForTab(e), + i = { tab: e, panel: h } + f(g[0]) || + ((this.xhr = a.ajax(this._ajaxSettings(g, c, i))), + this.xhr && + 'canceled' !== this.xhr.statusText && + (e.addClass('ui-tabs-loading'), + h.attr('aria-busy', 'true'), + this.xhr + .success(function (a) { + setTimeout(function () { + h.html(a), d._trigger('load', c, i) + }, 1) + }) + .complete(function (a, b) { + setTimeout(function () { + 'abort' === b && d.panels.stop(!1, !0), + e.removeClass('ui-tabs-loading'), + h.removeAttr('aria-busy'), + a === d.xhr && delete d.xhr + }, 1) + }))) + }, + _ajaxSettings: function (b, c, d) { + var e = this + return { + url: b.attr('href'), + beforeSend: function (b, f) { + return e._trigger( + 'beforeLoad', + c, + a.extend({ jqXHR: b, ajaxSettings: f }, d) + ) + }, + } + }, + _getPanelForTab: function (b) { + var c = a(b).attr('aria-controls') + return this.element.find(this._sanitizeSelector('#' + c)) + }, + }) + })(jQuery), + (function (a) { + function c(b, c) { + var d = (b.attr('aria-describedby') || '').split(/\s+/) + d.push(c), + b.data('ui-tooltip-id', c).attr('aria-describedby', a.trim(d.join(' '))) + } + function d(b) { + var c = b.data('ui-tooltip-id'), + d = (b.attr('aria-describedby') || '').split(/\s+/), + e = a.inArray(c, d) + e !== -1 && d.splice(e, 1), + b.removeData('ui-tooltip-id'), + (d = a.trim(d.join(' '))), + d ? b.attr('aria-describedby', d) : b.removeAttr('aria-describedby') + } + var b = 0 + a.widget('ui.tooltip', { + version: '1.10.3', + options: { + content: function () { + var b = a(this).attr('title') || '' + return a('').text(b).html() + }, + hide: !0, + items: '[title]:not([disabled])', + position: { + my: 'left top+15', + at: 'left bottom', + collision: 'flipfit flip', + }, + show: !0, + tooltipClass: null, + track: !1, + close: null, + open: null, + }, + _create: function () { + this._on({ mouseover: 'open', focusin: 'open' }), + (this.tooltips = {}), + (this.parents = {}), + this.options.disabled && this._disable() + }, + _setOption: function (b, c) { + var d = this + return 'disabled' === b + ? (this[c ? '_disable' : '_enable'](), void (this.options[b] = c)) + : (this._super(b, c), + void ( + 'content' === b && + a.each(this.tooltips, function (a, b) { + d._updateContent(b) + }) + )) + }, + _disable: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), b.close(e, !0) + }), + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.is('[title]') && + b.data('ui-tooltip-title', b.attr('title')).attr('title', '') + }) + }, + _enable: function () { + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.data('ui-tooltip-title') && + b.attr('title', b.data('ui-tooltip-title')) + }) + }, + open: function (b) { + var c = this, + d = a(b ? b.target : this.element).closest(this.options.items) + d.length && + !d.data('ui-tooltip-id') && + (d.attr('title') && d.data('ui-tooltip-title', d.attr('title')), + d.data('ui-tooltip-open', !0), + b && + 'mouseover' === b.type && + d.parents().each(function () { + var d, + b = a(this) + b.data('ui-tooltip-open') && + ((d = a.Event('blur')), + (d.target = d.currentTarget = this), + c.close(d, !0)), + b.attr('title') && + (b.uniqueId(), + (c.parents[this.id] = { + element: this, + title: b.attr('title'), + }), + b.attr('title', '')) + }), + this._updateContent(d, b)) + }, + _updateContent: function (a, b) { + var c, + d = this.options.content, + e = this, + f = b ? b.type : null + return 'string' == typeof d + ? this._open(b, a, d) + : ((c = d.call(a[0], function (c) { + a.data('ui-tooltip-open') && + e._delay(function () { + b && (b.type = f), this._open(b, a, c) + }) + })), + void (c && this._open(b, a, c))) + }, + _open: function (b, d, e) { + function j(a) { + ;(i.of = a), f.is(':hidden') || f.position(i) + } + var f, + g, + h, + i = a.extend({}, this.options.position) + if (e) { + if (((f = this._find(d)), f.length)) + return void f.find('.ui-tooltip-content').html(e) + d.is('[title]') && + (b && 'mouseover' === b.type + ? d.attr('title', '') + : d.removeAttr('title')), + (f = this._tooltip(d)), + c(d, f.attr('id')), + f.find('.ui-tooltip-content').html(e), + this.options.track && b && /^mouse/.test(b.type) + ? (this._on(this.document, { mousemove: j }), j(b)) + : f.position(a.extend({ of: d }, this.options.position)), + f.hide(), + this._show(f, this.options.show), + this.options.show && + this.options.show.delay && + (h = this.delayedShow = + setInterval(function () { + f.is(':visible') && (j(i.of), clearInterval(h)) + }, a.fx.interval)), + this._trigger('open', b, { tooltip: f }), + (g = { + keyup: function (b) { + if (b.keyCode === a.ui.keyCode.ESCAPE) { + var c = a.Event(b) + ;(c.currentTarget = d[0]), this.close(c, !0) + } + }, + remove: function () { + this._removeTooltip(f) + }, + }), + (b && 'mouseover' !== b.type) || (g.mouseleave = 'close'), + (b && 'focusin' !== b.type) || (g.focusout = 'close'), + this._on(!0, d, g) + } + }, + close: function (b) { + var c = this, + e = a(b ? b.currentTarget : this.element), + f = this._find(e) + this.closing || + (clearInterval(this.delayedShow), + e.data('ui-tooltip-title') && + e.attr('title', e.data('ui-tooltip-title')), + d(e), + f.stop(!0), + this._hide(f, this.options.hide, function () { + c._removeTooltip(a(this)) + }), + e.removeData('ui-tooltip-open'), + this._off(e, 'mouseleave focusout keyup'), + e[0] !== this.element[0] && this._off(e, 'remove'), + this._off(this.document, 'mousemove'), + b && + 'mouseleave' === b.type && + a.each(this.parents, function (b, d) { + a(d.element).attr('title', d.title), delete c.parents[b] + }), + (this.closing = !0), + this._trigger('close', b, { tooltip: f }), + (this.closing = !1)) + }, + _tooltip: function (c) { + var d = 'ui-tooltip-' + b++, + e = a('
        ') + .attr({ id: d, role: 'tooltip' }) + .addClass( + 'ui-tooltip ui-widget ui-corner-all ui-widget-content ' + + (this.options.tooltipClass || '') + ) + return ( + a('
        ').addClass('ui-tooltip-content').appendTo(e), + e.appendTo(this.document[0].body), + (this.tooltips[d] = c), + e + ) + }, + _find: function (b) { + var c = b.data('ui-tooltip-id') + return c ? a('#' + c) : a() + }, + _removeTooltip: function (a) { + a.remove(), delete this.tooltips[a.attr('id')] + }, + _destroy: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), + b.close(e, !0), + a('#' + c).remove(), + d.data('ui-tooltip-title') && + (d.attr('title', d.data('ui-tooltip-title')), + d.removeData('ui-tooltip-title')) + }) + }, + }) + })( + jQuery + ) /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +;(function (r, G, f, v) { + var J = f('html'), + n = f(r), + p = f(G), + b = (f.fancybox = function () { + b.open.apply(this, arguments) + }), + I = navigator.userAgent.match(/msie/i), + B = null, + s = G.createTouch !== v, + t = function (a) { + return a && a.hasOwnProperty && a instanceof f + }, + q = function (a) { + return a && 'string' === f.type(a) + }, + E = function (a) { + return q(a) && 0 < a.indexOf('%') + }, + l = function (a, d) { + var e = parseInt(a, 10) || 0 + d && E(a) && (e *= b.getViewport()[d] / 100) + return Math.ceil(e) + }, + w = function (a, b) { + return l(a, b) + 'px' + } + f.extend(b, { + version: '2.1.5', + defaults: { + padding: 15, + margin: 20, + width: 800, + height: 600, + minWidth: 100, + minHeight: 100, + maxWidth: 9999, + maxHeight: 9999, + pixelRatio: 1, + autoSize: !0, + autoHeight: !1, + autoWidth: !1, + autoResize: !0, + autoCenter: !s, + fitToView: !0, + aspectRatio: !1, + topRatio: 0.5, + leftRatio: 0.5, + scrolling: 'auto', + wrapCSS: '', + arrows: !0, + closeBtn: !0, + closeClick: !1, + nextClick: !1, + mouseWheel: !0, + autoPlay: !1, + playSpeed: 3e3, + preload: 3, + modal: !1, + loop: !0, + ajax: { dataType: 'html', headers: { 'X-fancyBox': !0 } }, + iframe: { scrolling: 'auto', preload: !0 }, + swf: { + wmode: 'transparent', + allowfullscreen: 'true', + allowscriptaccess: 'always', + }, + keys: { + next: { 13: 'left', 34: 'up', 39: 'left', 40: 'up' }, + prev: { 8: 'right', 33: 'down', 37: 'right', 38: 'down' }, + close: [27], + play: [32], + toggle: [70], + }, + direction: { next: 'left', prev: 'right' }, + scrollOutside: !0, + index: 0, + type: null, + href: null, + content: null, + title: null, + tpl: { + wrap: '
        ', + image: '', + iframe: + '', + error: + '

        The requested content cannot be loaded.
        Please try again later.

        ', + closeBtn: + '
        ', + next: '', + prev: '', + }, + openEffect: 'fade', + openSpeed: 250, + openEasing: 'swing', + openOpacity: !0, + openMethod: 'zoomIn', + closeEffect: 'fade', + closeSpeed: 250, + closeEasing: 'swing', + closeOpacity: !0, + closeMethod: 'zoomOut', + nextEffect: 'elastic', + nextSpeed: 250, + nextEasing: 'swing', + nextMethod: 'changeIn', + prevEffect: 'elastic', + prevSpeed: 250, + prevEasing: 'swing', + prevMethod: 'changeOut', + helpers: { overlay: !0, title: !0 }, + onCancel: f.noop, + beforeLoad: f.noop, + afterLoad: f.noop, + beforeShow: f.noop, + afterShow: f.noop, + beforeChange: f.noop, + beforeClose: f.noop, + afterClose: f.noop, + }, + group: {}, + opts: {}, + previous: null, + coming: null, + current: null, + isActive: !1, + isOpen: !1, + isOpened: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + player: { timer: null, isActive: !1 }, + ajaxLoad: null, + imgPreload: null, + transitions: {}, + helpers: {}, + open: function (a, d) { + if (a && (f.isPlainObject(d) || (d = {}), !1 !== b.close(!0))) + return ( + f.isArray(a) || (a = t(a) ? f(a).get() : [a]), + f.each(a, function (e, c) { + var k = {}, + g, + h, + j, + m, + l + 'object' === f.type(c) && + (c.nodeType && (c = f(c)), + t(c) + ? ((k = { + href: c.data('fancybox-href') || c.attr('href'), + title: c.data('fancybox-title') || c.attr('title'), + isDom: !0, + element: c, + }), + f.metadata && f.extend(!0, k, c.metadata())) + : (k = c)) + g = d.href || k.href || (q(c) ? c : null) + h = d.title !== v ? d.title : k.title || '' + m = (j = d.content || k.content) ? 'html' : d.type || k.type + !m && + k.isDom && + ((m = c.data('fancybox-type')), + m || + (m = (m = c.prop('class').match(/fancybox\.(\w+)/)) + ? m[1] + : null)) + q(g) && + (m || + (b.isImage(g) + ? (m = 'image') + : b.isSWF(g) + ? (m = 'swf') + : '#' === g.charAt(0) + ? (m = 'inline') + : q(c) && ((m = 'html'), (j = c))), + 'ajax' === m && + ((l = g.split(/\s+/, 2)), (g = l.shift()), (l = l.shift()))) + j || + ('inline' === m + ? g + ? (j = f(q(g) ? g.replace(/.*(?=#[^\s]+$)/, '') : g)) + : k.isDom && (j = c) + : 'html' === m + ? (j = g) + : !m && !g && k.isDom && ((m = 'inline'), (j = c))) + f.extend(k, { href: g, type: m, content: j, title: h, selector: l }) + a[e] = k + }), + (b.opts = f.extend(!0, {}, b.defaults, d)), + d.keys !== v && + (b.opts.keys = d.keys ? f.extend({}, b.defaults.keys, d.keys) : !1), + (b.group = a), + b._start(b.opts.index) + ) + }, + cancel: function () { + var a = b.coming + a && + !1 !== b.trigger('onCancel') && + (b.hideLoading(), + b.ajaxLoad && b.ajaxLoad.abort(), + (b.ajaxLoad = null), + b.imgPreload && (b.imgPreload.onload = b.imgPreload.onerror = null), + a.wrap && a.wrap.stop(!0, !0).trigger('onReset').remove(), + (b.coming = null), + b.current || b._afterZoomOut(a)) + }, + close: function (a) { + b.cancel() + !1 !== b.trigger('beforeClose') && + (b.unbindEvents(), + b.isActive && + (!b.isOpen || !0 === a + ? (f('.fancybox-wrap').stop(!0).trigger('onReset').remove(), + b._afterZoomOut()) + : ((b.isOpen = b.isOpened = !1), + (b.isClosing = !0), + f('.fancybox-item, .fancybox-nav').remove(), + b.wrap.stop(!0, !0).removeClass('fancybox-opened'), + b.transitions[b.current.closeMethod]()))) + }, + play: function (a) { + var d = function () { + clearTimeout(b.player.timer) + }, + e = function () { + d() + b.current && + b.player.isActive && + (b.player.timer = setTimeout(b.next, b.current.playSpeed)) + }, + c = function () { + d() + p.unbind('.player') + b.player.isActive = !1 + b.trigger('onPlayEnd') + } + if (!0 === a || (!b.player.isActive && !1 !== a)) { + if ( + b.current && + (b.current.loop || b.current.index < b.group.length - 1) + ) + (b.player.isActive = !0), + p.bind({ + 'onCancel.player beforeClose.player': c, + 'onUpdate.player': e, + 'beforeLoad.player': d, + }), + e(), + b.trigger('onPlayStart') + } else c() + }, + next: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.next), b.jumpto(d.index + 1, a, 'next')) + }, + prev: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.prev), b.jumpto(d.index - 1, a, 'prev')) + }, + jumpto: function (a, d, e) { + var c = b.current + c && + ((a = l(a)), + (b.direction = d || c.direction[a >= c.index ? 'next' : 'prev']), + (b.router = e || 'jumpto'), + c.loop && + (0 > a && (a = c.group.length + (a % c.group.length)), + (a %= c.group.length)), + c.group[a] !== v && (b.cancel(), b._start(a))) + }, + reposition: function (a, d) { + var e = b.current, + c = e ? e.wrap : null, + k + c && + ((k = b._getPosition(d)), + a && 'scroll' === a.type + ? (delete k.position, c.stop(!0, !0).animate(k, 200)) + : (c.css(k), (e.pos = f.extend({}, e.dim, k)))) + }, + update: function (a) { + var d = a && a.type, + e = !d || 'orientationchange' === d + e && (clearTimeout(B), (B = null)) + b.isOpen && + !B && + (B = setTimeout( + function () { + var c = b.current + c && + !b.isClosing && + (b.wrap.removeClass('fancybox-tmp'), + (e || 'load' === d || ('resize' === d && c.autoResize)) && + b._setDimension(), + ('scroll' === d && c.canShrink) || b.reposition(a), + b.trigger('onUpdate'), + (B = null)) + }, + e && !s ? 0 : 300 + )) + }, + toggle: function (a) { + b.isOpen && + ((b.current.fitToView = + 'boolean' === f.type(a) ? a : !b.current.fitToView), + s && + (b.wrap.removeAttr('style').addClass('fancybox-tmp'), + b.trigger('onUpdate')), + b.update()) + }, + hideLoading: function () { + p.unbind('.loading') + f('#fancybox-loading').remove() + }, + showLoading: function () { + var a, d + b.hideLoading() + a = f('
        ') + .click(b.cancel) + .appendTo('body') + p.bind('keydown.loading', function (a) { + if (27 === (a.which || a.keyCode)) a.preventDefault(), b.cancel() + }) + b.defaults.fixed || + ((d = b.getViewport()), + a.css({ + position: 'absolute', + top: 0.5 * d.h + d.y, + left: 0.5 * d.w + d.x, + })) + }, + getViewport: function () { + var a = (b.current && b.current.locked) || !1, + d = { x: n.scrollLeft(), y: n.scrollTop() } + a + ? ((d.w = a[0].clientWidth), (d.h = a[0].clientHeight)) + : ((d.w = s && r.innerWidth ? r.innerWidth : n.width()), + (d.h = s && r.innerHeight ? r.innerHeight : n.height())) + return d + }, + unbindEvents: function () { + b.wrap && t(b.wrap) && b.wrap.unbind('.fb') + p.unbind('.fb') + n.unbind('.fb') + }, + bindEvents: function () { + var a = b.current, + d + a && + (n.bind( + 'orientationchange.fb' + + (s ? '' : ' resize.fb') + + (a.autoCenter && !a.locked ? ' scroll.fb' : ''), + b.update + ), + (d = a.keys) && + p.bind('keydown.fb', function (e) { + var c = e.which || e.keyCode, + k = e.target || e.srcElement + if (27 === c && b.coming) return !1 + !e.ctrlKey && + !e.altKey && + !e.shiftKey && + !e.metaKey && + (!k || (!k.type && !f(k).is('[contenteditable]'))) && + f.each(d, function (d, k) { + if (1 < a.group.length && k[c] !== v) + return b[d](k[c]), e.preventDefault(), !1 + if (-1 < f.inArray(c, k)) return b[d](), e.preventDefault(), !1 + }) + }), + f.fn.mousewheel && + a.mouseWheel && + b.wrap.bind('mousewheel.fb', function (d, c, k, g) { + for ( + var h = f(d.target || null), j = !1; + h.length && + !j && + !h.is('.fancybox-skin') && + !h.is('.fancybox-wrap'); + + ) + (j = + h[0] && + !(h[0].style.overflow && 'hidden' === h[0].style.overflow) && + ((h[0].clientWidth && h[0].scrollWidth > h[0].clientWidth) || + (h[0].clientHeight && + h[0].scrollHeight > h[0].clientHeight))), + (h = f(h).parent()) + if (0 !== c && !j && 1 < b.group.length && !a.canShrink) { + if (0 < g || 0 < k) b.prev(0 < g ? 'down' : 'left') + else if (0 > g || 0 > k) b.next(0 > g ? 'up' : 'right') + d.preventDefault() + } + })) + }, + trigger: function (a, d) { + var e, + c = d || b.coming || b.current + if (c) { + f.isFunction(c[a]) && + (e = c[a].apply(c, Array.prototype.slice.call(arguments, 1))) + if (!1 === e) return !1 + c.helpers && + f.each(c.helpers, function (d, e) { + if (e && b.helpers[d] && f.isFunction(b.helpers[d][a])) + b.helpers[d][a](f.extend(!0, {}, b.helpers[d].defaults, e), c) + }) + p.trigger(a) + } + }, + isImage: function (a) { + return ( + q(a) && + a.match( + /(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i + ) + ) + }, + isSWF: function (a) { + return q(a) && a.match(/\.(swf)((\?|#).*)?$/i) + }, + _start: function (a) { + var d = {}, + e, + c + a = l(a) + e = b.group[a] || null + if (!e) return !1 + d = f.extend(!0, {}, b.opts, e) + e = d.margin + c = d.padding + 'number' === f.type(e) && (d.margin = [e, e, e, e]) + 'number' === f.type(c) && (d.padding = [c, c, c, c]) + d.modal && + f.extend(!0, d, { + closeBtn: !1, + closeClick: !1, + nextClick: !1, + arrows: !1, + mouseWheel: !1, + keys: null, + helpers: { overlay: { closeClick: !1 } }, + }) + d.autoSize && (d.autoWidth = d.autoHeight = !0) + 'auto' === d.width && (d.autoWidth = !0) + 'auto' === d.height && (d.autoHeight = !0) + d.group = b.group + d.index = a + b.coming = d + if (!1 === b.trigger('beforeLoad')) b.coming = null + else { + c = d.type + e = d.href + if (!c) + return ( + (b.coming = null), + b.current && b.router && 'jumpto' !== b.router + ? ((b.current.index = a), b[b.router](b.direction)) + : !1 + ) + b.isActive = !0 + if ('image' === c || 'swf' === c) + (d.autoHeight = d.autoWidth = !1), (d.scrolling = 'visible') + 'image' === c && (d.aspectRatio = !0) + 'iframe' === c && s && (d.scrolling = 'scroll') + d.wrap = f(d.tpl.wrap) + .addClass( + 'fancybox-' + + (s ? 'mobile' : 'desktop') + + ' fancybox-type-' + + c + + ' fancybox-tmp ' + + d.wrapCSS + ) + .appendTo(d.parent || 'body') + f.extend(d, { + skin: f('.fancybox-skin', d.wrap), + outer: f('.fancybox-outer', d.wrap), + inner: f('.fancybox-inner', d.wrap), + }) + f.each(['Top', 'Right', 'Bottom', 'Left'], function (a, b) { + d.skin.css('padding' + b, w(d.padding[a])) + }) + b.trigger('onReady') + if ('inline' === c || 'html' === c) { + if (!d.content || !d.content.length) return b._error('content') + } else if (!e) return b._error('href') + 'image' === c + ? b._loadImage() + : 'ajax' === c + ? b._loadAjax() + : 'iframe' === c + ? b._loadIframe() + : b._afterLoad() + } + }, + _error: function (a) { + f.extend(b.coming, { + type: 'html', + autoWidth: !0, + autoHeight: !0, + minWidth: 0, + minHeight: 0, + scrolling: 'no', + hasError: a, + content: b.coming.tpl.error, + }) + b._afterLoad() + }, + _loadImage: function () { + var a = (b.imgPreload = new Image()) + a.onload = function () { + this.onload = this.onerror = null + b.coming.width = this.width / b.opts.pixelRatio + b.coming.height = this.height / b.opts.pixelRatio + b._afterLoad() + } + a.onerror = function () { + this.onload = this.onerror = null + b._error('image') + } + a.src = b.coming.href + !0 !== a.complete && b.showLoading() + }, + _loadAjax: function () { + var a = b.coming + b.showLoading() + b.ajaxLoad = f.ajax( + f.extend({}, a.ajax, { + url: a.href, + error: function (a, e) { + b.coming && 'abort' !== e ? b._error('ajax', a) : b.hideLoading() + }, + success: function (d, e) { + 'success' === e && ((a.content = d), b._afterLoad()) + }, + }) + ) + }, + _loadIframe: function () { + var a = b.coming, + d = f(a.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())) + .attr('scrolling', s ? 'auto' : a.iframe.scrolling) + .attr('src', a.href) + f(a.wrap).bind('onReset', function () { + try { + f(this) + .find('iframe') + .hide() + .attr('src', '//about:blank') + .end() + .empty() + } catch (a) {} + }) + a.iframe.preload && + (b.showLoading(), + d.one('load', function () { + f(this).data('ready', 1) + s || f(this).bind('load.fb', b.update) + f(this) + .parents('.fancybox-wrap') + .width('100%') + .removeClass('fancybox-tmp') + .show() + b._afterLoad() + })) + a.content = d.appendTo(a.inner) + a.iframe.preload || b._afterLoad() + }, + _preloadImages: function () { + var a = b.group, + d = b.current, + e = a.length, + c = d.preload ? Math.min(d.preload, e - 1) : 0, + f, + g + for (g = 1; g <= c; g += 1) + (f = a[(d.index + g) % e]), + 'image' === f.type && f.href && (new Image().src = f.href) + }, + _afterLoad: function () { + var a = b.coming, + d = b.current, + e, + c, + k, + g, + h + b.hideLoading() + if (a && !1 !== b.isActive) + if (!1 === b.trigger('afterLoad', a, d)) + a.wrap.stop(!0).trigger('onReset').remove(), (b.coming = null) + else { + d && + (b.trigger('beforeChange', d), + d.wrap + .stop(!0) + .removeClass('fancybox-opened') + .find('.fancybox-item, .fancybox-nav') + .remove()) + b.unbindEvents() + e = a.content + c = a.type + k = a.scrolling + f.extend(b, { + wrap: a.wrap, + skin: a.skin, + outer: a.outer, + inner: a.inner, + current: a, + previous: d, + }) + g = a.href + switch (c) { + case 'inline': + case 'ajax': + case 'html': + a.selector + ? (e = f('
        ').html(e).find(a.selector)) + : t(e) && + (e.data('fancybox-placeholder') || + e.data( + 'fancybox-placeholder', + f('
        ') + .insertAfter(e) + .hide() + ), + (e = e.show().detach()), + a.wrap.bind('onReset', function () { + f(this).find(e).length && + e + .hide() + .replaceAll(e.data('fancybox-placeholder')) + .data('fancybox-placeholder', !1) + })) + break + case 'image': + e = a.tpl.image.replace('{href}', g) + break + case 'swf': + ;(e = + ''), + (h = ''), + f.each(a.swf, function (a, b) { + e += '' + h += ' ' + a + '="' + b + '"' + }), + (e += + '') + } + ;(!t(e) || !e.parent().is(a.inner)) && a.inner.append(e) + b.trigger('beforeShow') + a.inner.css( + 'overflow', + 'yes' === k ? 'scroll' : 'no' === k ? 'hidden' : k + ) + b._setDimension() + b.reposition() + b.isOpen = !1 + b.coming = null + b.bindEvents() + if (b.isOpened) { + if (d.prevMethod) b.transitions[d.prevMethod]() + } else + f('.fancybox-wrap').not(a.wrap).stop(!0).trigger('onReset').remove() + b.transitions[b.isOpened ? a.nextMethod : a.openMethod]() + b._preloadImages() + } + }, + _setDimension: function () { + var a = b.getViewport(), + d = 0, + e = !1, + c = !1, + e = b.wrap, + k = b.skin, + g = b.inner, + h = b.current, + c = h.width, + j = h.height, + m = h.minWidth, + u = h.minHeight, + n = h.maxWidth, + p = h.maxHeight, + s = h.scrolling, + q = h.scrollOutside ? h.scrollbarWidth : 0, + x = h.margin, + y = l(x[1] + x[3]), + r = l(x[0] + x[2]), + v, + z, + t, + C, + A, + F, + B, + D, + H + e.add(k).add(g).width('auto').height('auto').removeClass('fancybox-tmp') + x = l(k.outerWidth(!0) - k.width()) + v = l(k.outerHeight(!0) - k.height()) + z = y + x + t = r + v + C = E(c) ? ((a.w - z) * l(c)) / 100 : c + A = E(j) ? ((a.h - t) * l(j)) / 100 : j + if ('iframe' === h.type) { + if (((H = h.content), h.autoHeight && 1 === H.data('ready'))) + try { + H[0].contentWindow.document.location && + (g.width(C).height(9999), + (F = H.contents().find('body')), + q && F.css('overflow-x', 'hidden'), + (A = F.outerHeight(!0))) + } catch (G) {} + } else if (h.autoWidth || h.autoHeight) + g.addClass('fancybox-tmp'), + h.autoWidth || g.width(C), + h.autoHeight || g.height(A), + h.autoWidth && (C = g.width()), + h.autoHeight && (A = g.height()), + g.removeClass('fancybox-tmp') + c = l(C) + j = l(A) + D = C / A + m = l(E(m) ? l(m, 'w') - z : m) + n = l(E(n) ? l(n, 'w') - z : n) + u = l(E(u) ? l(u, 'h') - t : u) + p = l(E(p) ? l(p, 'h') - t : p) + F = n + B = p + h.fitToView && ((n = Math.min(a.w - z, n)), (p = Math.min(a.h - t, p))) + z = a.w - y + r = a.h - r + h.aspectRatio + ? (c > n && ((c = n), (j = l(c / D))), + j > p && ((j = p), (c = l(j * D))), + c < m && ((c = m), (j = l(c / D))), + j < u && ((j = u), (c = l(j * D)))) + : ((c = Math.max(m, Math.min(c, n))), + h.autoHeight && 'iframe' !== h.type && (g.width(c), (j = g.height())), + (j = Math.max(u, Math.min(j, p)))) + if (h.fitToView) + if ( + (g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()), + h.aspectRatio) + ) + for (; (a > z || y > r) && c > m && j > u && !(19 < d++); ) + (j = Math.max(u, Math.min(p, j - 10))), + (c = l(j * D)), + c < m && ((c = m), (j = l(c / D))), + c > n && ((c = n), (j = l(c / D))), + g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()) + else + (c = Math.max(m, Math.min(c, c - (a - z)))), + (j = Math.max(u, Math.min(j, j - (y - r)))) + q && 'auto' === s && j < A && c + x + q < z && (c += q) + g.width(c).height(j) + e.width(c + x) + a = e.width() + y = e.height() + e = (a > z || y > r) && c > m && j > u + c = h.aspectRatio + ? c < F && j < B && c < C && j < A + : (c < F || j < B) && (c < C || j < A) + f.extend(h, { + dim: { width: w(a), height: w(y) }, + origWidth: C, + origHeight: A, + canShrink: e, + canExpand: c, + wPadding: x, + hPadding: v, + wrapSpace: y - k.outerHeight(!0), + skinSpace: k.height() - j, + }) + !H && h.autoHeight && j > u && j < p && !c && g.height('auto') + }, + _getPosition: function (a) { + var d = b.current, + e = b.getViewport(), + c = d.margin, + f = b.wrap.width() + c[1] + c[3], + g = b.wrap.height() + c[0] + c[2], + c = { position: 'absolute', top: c[0], left: c[3] } + d.autoCenter && d.fixed && !a && g <= e.h && f <= e.w + ? (c.position = 'fixed') + : d.locked || ((c.top += e.y), (c.left += e.x)) + c.top = w(Math.max(c.top, c.top + (e.h - g) * d.topRatio)) + c.left = w(Math.max(c.left, c.left + (e.w - f) * d.leftRatio)) + return c + }, + _afterZoomIn: function () { + var a = b.current + a && + ((b.isOpen = b.isOpened = !0), + b.wrap.css('overflow', 'visible').addClass('fancybox-opened'), + b.update(), + (a.closeClick || (a.nextClick && 1 < b.group.length)) && + b.inner.css('cursor', 'pointer').bind('click.fb', function (d) { + !f(d.target).is('a') && + !f(d.target).parent().is('a') && + (d.preventDefault(), b[a.closeClick ? 'close' : 'next']()) + }), + a.closeBtn && + f(a.tpl.closeBtn) + .appendTo(b.skin) + .bind('click.fb', function (a) { + a.preventDefault() + b.close() + }), + a.arrows && + 1 < b.group.length && + ((a.loop || 0 < a.index) && + f(a.tpl.prev).appendTo(b.outer).bind('click.fb', b.prev), + (a.loop || a.index < b.group.length - 1) && + f(a.tpl.next).appendTo(b.outer).bind('click.fb', b.next)), + b.trigger('afterShow'), + !a.loop && a.index === a.group.length - 1 + ? b.play(!1) + : b.opts.autoPlay && + !b.player.isActive && + ((b.opts.autoPlay = !1), b.play())) + }, + _afterZoomOut: function (a) { + a = a || b.current + f('.fancybox-wrap').trigger('onReset').remove() + f.extend(b, { + group: {}, + opts: {}, + router: !1, + current: null, + isActive: !1, + isOpened: !1, + isOpen: !1, + isClosing: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + }) + b.trigger('afterClose', a) + }, + }) + b.transitions = { + getOrigPosition: function () { + var a = b.current, + d = a.element, + e = a.orig, + c = {}, + f = 50, + g = 50, + h = a.hPadding, + j = a.wPadding, + m = b.getViewport() + !e && + a.isDom && + d.is(':visible') && + ((e = d.find('img:first')), e.length || (e = d)) + t(e) + ? ((c = e.offset()), + e.is('img') && ((f = e.outerWidth()), (g = e.outerHeight()))) + : ((c.top = m.y + (m.h - g) * a.topRatio), + (c.left = m.x + (m.w - f) * a.leftRatio)) + if ('fixed' === b.wrap.css('position') || a.locked) + (c.top -= m.y), (c.left -= m.x) + return (c = { + top: w(c.top - h * a.topRatio), + left: w(c.left - j * a.leftRatio), + width: w(f + j), + height: w(g + h), + }) + }, + step: function (a, d) { + var e, + c, + f = d.prop + c = b.current + var g = c.wrapSpace, + h = c.skinSpace + if ('width' === f || 'height' === f) + (e = d.end === d.start ? 1 : (a - d.start) / (d.end - d.start)), + b.isClosing && (e = 1 - e), + (c = 'width' === f ? c.wPadding : c.hPadding), + (c = a - c), + b.skin[f](l('width' === f ? c : c - g * e)), + b.inner[f](l('width' === f ? c : c - g * e - h * e)) + }, + zoomIn: function () { + var a = b.current, + d = a.pos, + e = a.openEffect, + c = 'elastic' === e, + k = f.extend({ opacity: 1 }, d) + delete k.position + c + ? ((d = this.getOrigPosition()), a.openOpacity && (d.opacity = 0.1)) + : 'fade' === e && (d.opacity = 0.1) + b.wrap + .css(d) + .animate(k, { + duration: 'none' === e ? 0 : a.openSpeed, + easing: a.openEasing, + step: c ? this.step : null, + complete: b._afterZoomIn, + }) + }, + zoomOut: function () { + var a = b.current, + d = a.closeEffect, + e = 'elastic' === d, + c = { opacity: 0.1 } + e && ((c = this.getOrigPosition()), a.closeOpacity && (c.opacity = 0.1)) + b.wrap.animate(c, { + duration: 'none' === d ? 0 : a.closeSpeed, + easing: a.closeEasing, + step: e ? this.step : null, + complete: b._afterZoomOut, + }) + }, + changeIn: function () { + var a = b.current, + d = a.nextEffect, + e = a.pos, + c = { opacity: 1 }, + f = b.direction, + g + e.opacity = 0.1 + 'elastic' === d && + ((g = 'down' === f || 'up' === f ? 'top' : 'left'), + 'down' === f || 'right' === f + ? ((e[g] = w(l(e[g]) - 200)), (c[g] = '+=200px')) + : ((e[g] = w(l(e[g]) + 200)), (c[g] = '-=200px'))) + 'none' === d + ? b._afterZoomIn() + : b.wrap + .css(e) + .animate(c, { + duration: a.nextSpeed, + easing: a.nextEasing, + complete: b._afterZoomIn, + }) + }, + changeOut: function () { + var a = b.previous, + d = a.prevEffect, + e = { opacity: 0.1 }, + c = b.direction + 'elastic' === d && + (e['down' === c || 'up' === c ? 'top' : 'left'] = + ('up' === c || 'left' === c ? '-' : '+') + '=200px') + a.wrap.animate(e, { + duration: 'none' === d ? 0 : a.prevSpeed, + easing: a.prevEasing, + complete: function () { + f(this).trigger('onReset').remove() + }, + }) + }, + } + b.helpers.overlay = { + defaults: { + closeClick: !0, + speedOut: 200, + showEarly: !0, + css: {}, + locked: !s, + fixed: !0, + }, + overlay: null, + fixed: !1, + el: f('html'), + create: function (a) { + a = f.extend({}, this.defaults, a) + this.overlay && this.close() + this.overlay = f('
        ').appendTo( + b.coming ? b.coming.parent : a.parent + ) + this.fixed = !1 + a.fixed && + b.defaults.fixed && + (this.overlay.addClass('fancybox-overlay-fixed'), (this.fixed = !0)) + }, + open: function (a) { + var d = this + a = f.extend({}, this.defaults, a) + this.overlay + ? this.overlay.unbind('.overlay').width('auto').height('auto') + : this.create(a) + this.fixed || + (n.bind('resize.overlay', f.proxy(this.update, this)), this.update()) + a.closeClick && + this.overlay.bind('click.overlay', function (a) { + if (f(a.target).hasClass('fancybox-overlay')) + return b.isActive ? b.close() : d.close(), !1 + }) + this.overlay.css(a.css).show() + }, + close: function () { + var a, b + n.unbind('resize.overlay') + this.el.hasClass('fancybox-lock') && + (f('.fancybox-margin').removeClass('fancybox-margin'), + (a = n.scrollTop()), + (b = n.scrollLeft()), + this.el.removeClass('fancybox-lock'), + n.scrollTop(a).scrollLeft(b)) + f('.fancybox-overlay').remove().hide() + f.extend(this, { overlay: null, fixed: !1 }) + }, + update: function () { + var a = '100%', + b + this.overlay.width(a).height('100%') + I + ? ((b = Math.max(G.documentElement.offsetWidth, G.body.offsetWidth)), + p.width() > b && (a = p.width())) + : p.width() > n.width() && (a = p.width()) + this.overlay.width(a).height(p.height()) + }, + onReady: function (a, b) { + var e = this.overlay + f('.fancybox-overlay').stop(!0, !0) + e || this.create(a) + a.locked && + this.fixed && + b.fixed && + (e || + (this.margin = + p.height() > n.height() + ? f('html').css('margin-right').replace('px', '') + : !1), + (b.locked = this.overlay.append(b.wrap)), + (b.fixed = !1)) + !0 === a.showEarly && this.beforeShow.apply(this, arguments) + }, + beforeShow: function (a, b) { + var e, c + b.locked && + (!1 !== this.margin && + (f('*') + .filter(function () { + return ( + 'fixed' === f(this).css('position') && + !f(this).hasClass('fancybox-overlay') && + !f(this).hasClass('fancybox-wrap') + ) + }) + .addClass('fancybox-margin'), + this.el.addClass('fancybox-margin')), + (e = n.scrollTop()), + (c = n.scrollLeft()), + this.el.addClass('fancybox-lock'), + n.scrollTop(e).scrollLeft(c)) + this.open(a) + }, + onUpdate: function () { + this.fixed || this.update() + }, + afterClose: function (a) { + this.overlay && + !b.coming && + this.overlay.fadeOut(a.speedOut, f.proxy(this.close, this)) + }, + } + b.helpers.title = { + defaults: { type: 'float', position: 'bottom' }, + beforeShow: function (a) { + var d = b.current, + e = d.title, + c = a.type + f.isFunction(e) && (e = e.call(d.element, d)) + if (q(e) && '' !== f.trim(e)) { + d = f( + '
        ' + + e + + '
        ' + ) + switch (c) { + case 'inside': + c = b.skin + break + case 'outside': + c = b.wrap + break + case 'over': + c = b.inner + break + default: + ;(c = b.skin), + d.appendTo('body'), + I && d.width(d.width()), + d.wrapInner(''), + (b.current.margin[2] += Math.abs(l(d.css('margin-bottom')))) + } + d['top' === a.position ? 'prependTo' : 'appendTo'](c) + } + }, + } + f.fn.fancybox = function (a) { + var d, + e = f(this), + c = this.selector || '', + k = function (g) { + var h = f(this).blur(), + j = d, + k, + l + !g.ctrlKey && + !g.altKey && + !g.shiftKey && + !g.metaKey && + !h.is('.fancybox-wrap') && + ((k = a.groupAttr || 'data-fancybox-group'), + (l = h.attr(k)), + l || ((k = 'rel'), (l = h.get(0)[k])), + l && + '' !== l && + 'nofollow' !== l && + ((h = c.length ? f(c) : e), + (h = h.filter('[' + k + '="' + l + '"]')), + (j = h.index(this))), + (a.index = j), + !1 !== b.open(h, a) && g.preventDefault()) + } + a = a || {} + d = a.index || 0 + !c || !1 === a.live + ? e.unbind('click.fb-start').bind('click.fb-start', k) + : p + .undelegate(c, 'click.fb-start') + .delegate( + c + ":not('.fancybox-item, .fancybox-nav')", + 'click.fb-start', + k + ) + this.filter('[data-fancybox-start=1]').trigger('click') + return this + } + p.ready(function () { + var a, d + f.scrollbarWidth === v && + (f.scrollbarWidth = function () { + var a = f( + '
        ' + ).appendTo('body'), + b = a.children(), + b = b.innerWidth() - b.height(99).innerWidth() + a.remove() + return b + }) + if (f.support.fixedPosition === v) { + a = f.support + d = f('
        ').appendTo('body') + var e = 20 === d[0].offsetTop || 15 === d[0].offsetTop + d.remove() + a.fixedPosition = e + } + f.extend(b.defaults, { + scrollbarWidth: f.scrollbarWidth(), + fixed: f.support.fixedPosition, + parent: f('body'), + }) + a = f(r).width() + J.addClass('fancybox-lock-test') + d = f(r).width() + J.removeClass('fancybox-lock-test') + f( + "' + ).appendTo('head') + }) +})(window, document, jQuery) +;(function () { + 'use strict' + var $, + Animation, + Growl, + __bind = function (fn, me) { + return function () { + return fn.apply(me, arguments) + } + } + $ = jQuery + Animation = (function () { + function Animation() {} + Animation.transitions = { + webkitTransition: 'webkitTransitionEnd', + mozTransition: 'mozTransitionEnd', + oTransition: 'oTransitionEnd', + transition: 'transitionend', + } + Animation.transition = function ($el) { + var el, result, type, _ref + el = $el[0] + _ref = this.transitions + for (type in _ref) { + result = _ref[type] + if (el.style[type] != null) { + return result + } + } + } + return Animation + })() + Growl = (function () { + Growl.settings = { + namespace: 'growl', + duration: 1000, + close: '×', + location: 'default', + style: 'default', + size: 'medium', + } + Growl.growl = function (settings) { + if (settings == null) { + settings = {} + } + this.initialize() + return new Growl(settings) + } + Growl.initialize = function () { + return $('body:not(:has(#growls))').append('
        ') + } + function Growl(settings) { + if (settings == null) { + settings = {} + } + this.html = __bind(this.html, this) + this.$growl = __bind(this.$growl, this) + this.$growls = __bind(this.$growls, this) + this.animate = __bind(this.animate, this) + this.remove = __bind(this.remove, this) + this.dismiss = __bind(this.dismiss, this) + this.present = __bind(this.present, this) + this.close = __bind(this.close, this) + this.cycle = __bind(this.cycle, this) + this.unbind = __bind(this.unbind, this) + this.bind = __bind(this.bind, this) + this.render = __bind(this.render, this) + this.settings = $.extend({}, Growl.settings, settings) + this.$growls().attr('class', this.settings.location) + this.render() + } + Growl.prototype.render = function () { + var $growl + $growl = this.$growl() + this.$growls().append($growl) + this.cycle($growl) + } + Growl.prototype.bind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + this.settings.namespace + '-close') + .on('click', this.close) + } + Growl.prototype.unbind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + (this.settings.namespace - close)) + .off('click', this.close) + } + Growl.prototype.cycle = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .queue(this.present) + .delay(this.settings.duration) + .queue(this.dismiss) + .queue(this.remove) + } + Growl.prototype.close = function (event) { + var $growl + event.preventDefault() + event.stopPropagation() + $growl = this.$growl() + return $growl.stop().queue(this.dismiss).queue(this.remove) + } + Growl.prototype.present = function (callback) { + var $growl + $growl = this.$growl() + this.bind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-incoming', + 'out', + callback + ) + } + Growl.prototype.dismiss = function (callback) { + var $growl + $growl = this.$growl() + this.unbind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-outgoing', + 'in', + callback + ) + } + Growl.prototype.remove = function (callback) { + this.$growl().remove() + return callback() + } + Growl.prototype.animate = function ($element, name, direction, callback) { + var transition + if (direction == null) { + direction = 'in' + } + transition = Animation.transition($element) + $element[direction === 'in' ? 'removeClass' : 'addClass'](name) + $element.offset().position + $element[direction === 'in' ? 'addClass' : 'removeClass'](name) + if (callback == null) { + return + } + if (transition != null) { + $element.one(transition, callback) + } else { + callback() + } + } + Growl.prototype.$growls = function () { + return this.$_growls != null + ? this.$_growls + : (this.$_growls = $('#growls')) + } + Growl.prototype.$growl = function () { + return this.$_growl != null + ? this.$_growl + : (this.$_growl = $(this.html())) + } + Growl.prototype.html = function () { + return ( + "
        \n
        " + + this.settings.close + + "
        \n
        " + + this.settings.title + + "
        \n
        " + + this.settings.message + + '
        \n
        ' + ) + } + return Growl + })() + $.growl = function (options) { + if (options == null) { + options = {} + } + return Growl.growl(options) + } + $.growl.error = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Error!', style: 'error' } + return $.growl($.extend(settings, options)) + } + $.growl.notice = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Notice!', style: 'notice' } + return $.growl($.extend(settings, options)) + } + $.growl.warning = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Warning!', style: 'warning' } + return $.growl($.extend(settings, options)) + } +}).call(this) +;(function (k) { + 'use strict' + k(['jquery'], function ($) { + var j = ($.scrollTo = function (a, b, c) { + return $(window).scrollTo(a, b, c) + }) + j.defaults = { axis: 'xy', duration: 0, limit: !0 } + j.window = function (a) { + return $(window)._scrollable() + } + $.fn._scrollable = function () { + return this.map(function () { + var a = this, + isWin = + !a.nodeName || + $.inArray(a.nodeName.toLowerCase(), [ + 'iframe', + '#document', + 'html', + 'body', + ]) != -1 + if (!isWin) return a + var b = (a.contentWindow || a).document || a.ownerDocument || a + return /webkit/i.test(navigator.userAgent) || + b.compatMode == 'BackCompat' + ? b.body + : b.documentElement + }) + } + $.fn.scrollTo = function (f, g, h) { + if (typeof g == 'object') { + h = g + g = 0 + } + if (typeof h == 'function') h = { onAfter: h } + if (f == 'max') f = 9e9 + h = $.extend({}, j.defaults, h) + g = g || h.duration + h.queue = h.queue && h.axis.length > 1 + if (h.queue) g /= 2 + h.offset = both(h.offset) + h.over = both(h.over) + return this._scrollable() + .each(function () { + if (f == null) return + var d = this, + $elem = $(d), + targ = f, + toff, + attr = {}, + win = $elem.is('html,body') + switch (typeof targ) { + case 'number': + case 'string': + if (/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)) { + targ = both(targ) + break + } + targ = win ? $(targ) : $(targ, this) + if (!targ.length) return + case 'object': + if (targ.is || targ.style) toff = (targ = $(targ)).offset() + } + var e = ($.isFunction(h.offset) && h.offset(d, targ)) || h.offset + $.each(h.axis.split(''), function (i, a) { + var b = a == 'x' ? 'Left' : 'Top', + pos = b.toLowerCase(), + key = 'scroll' + b, + old = d[key], + max = j.max(d, a) + if (toff) { + attr[key] = toff[pos] + (win ? 0 : old - $elem.offset()[pos]) + if (h.margin) { + attr[key] -= parseInt(targ.css('margin' + b)) || 0 + attr[key] -= parseInt(targ.css('border' + b + 'Width')) || 0 + } + attr[key] += e[pos] || 0 + if (h.over[pos]) + attr[key] += targ[a == 'x' ? 'width' : 'height']() * h.over[pos] + } else { + var c = targ[pos] + attr[key] = + c.slice && c.slice(-1) == '%' ? (parseFloat(c) / 100) * max : c + } + if (h.limit && /^\d+$/.test(attr[key])) + attr[key] = attr[key] <= 0 ? 0 : Math.min(attr[key], max) + if (!i && h.queue) { + if (old != attr[key]) animate(h.onAfterFirst) + delete attr[key] + } + }) + animate(h.onAfter) + function animate(a) { + $elem.animate( + attr, + g, + h.easing, + a && + function () { + a.call(this, targ, h) + } + ) + } + }) + .end() + } + j.max = function (a, b) { + var c = b == 'x' ? 'Width' : 'Height', + scroll = 'scroll' + c + if (!$(a).is('html,body')) return a[scroll] - $(a)[c.toLowerCase()]() + var d = 'client' + c, + html = a.ownerDocument.documentElement, + body = a.ownerDocument.body + return Math.max(html[scroll], body[scroll]) - Math.min(html[d], body[d]) + } + function both(a) { + return $.isFunction(a) || $.isPlainObject(a) ? a : { top: a, left: a } + } + return j + }) +})( + typeof define === 'function' && define.amd + ? define + : function (a, b) { + if (typeof module !== 'undefined' && module.exports) { + module.exports = b(require('jquery')) + } else { + b(jQuery) + } + } +) +;(function (a) { + var b = (a.serialScroll = function (c) { + return a(window).serialScroll(c) + }) + b.defaults = { + duration: 1e3, + axis: 'x', + event: 'click', + start: 0, + step: 1, + lock: !0, + cycle: !0, + constant: !0, + } + a.fn.serialScroll = function (c) { + return this.each(function () { + var t = a.extend({}, b.defaults, c), + s = t.event, + i = t.step, + r = t.lazy, + e = t.target ? this : document, + u = a(t.target || this, e), + p = u[0], + m = t.items, + h = t.start, + g = t.interval, + k = t.navigation, + l + if (!r) { + m = d() + } + if (t.force) { + f({}, h) + } + a(t.prev || [], e).bind(s, -i, q) + a(t.next || [], e).bind(s, i, q) + if (!p.ssbound) { + u.bind('prev.serialScroll', -i, q) + .bind('next.serialScroll', i, q) + .bind('goto.serialScroll', f) + } + if (g) { + u.bind('start.serialScroll', function (v) { + if (!g) { + o() + g = !0 + n() + } + }).bind('stop.serialScroll', function () { + o() + g = !1 + }) + } + u.bind('notify.serialScroll', function (x, w) { + var v = j(w) + if (v > -1) { + h = v + } + }) + p.ssbound = !0 + if (t.jump) { + ;(r ? u : d()).bind(s, function (v) { + f(v, j(v.target)) + }) + } + if (k) { + k = a(k, e).bind(s, function (v) { + v.data = Math.round(d().length / k.length) * k.index(this) + f(v, this) + }) + } + function q(v) { + v.data += h + f(v, this) + } + function f(B, z) { + if (!isNaN(z)) { + B.data = z + z = p + } + var C = B.data, + v, + D = B.type, + A = t.exclude ? d().slice(0, -t.exclude) : d(), + y = A.length, + w = A[C], + x = t.duration + if (D) { + B.preventDefault() + } + if (g) { + o() + l = setTimeout(n, t.interval) + } + if (!w) { + v = C < 0 ? 0 : y - 1 + if (h != v) { + C = v + } else { + if (!t.cycle) { + return + } else { + C = y - v - 1 + } + } + w = A[C] + } + if ( + !w || + (t.lock && u.is(':animated')) || + (D && t.onBefore && t.onBefore(B, w, u, d(), C) === !1) + ) { + return + } + if (t.stop) { + u.queue('fx', []).stop() + } + if (t.constant) { + x = Math.abs((x / i) * (h - C)) + } + u.scrollTo(w, x, t).trigger('notify.serialScroll', [C]) + } + function n() { + u.trigger('next.serialScroll') + } + function o() { + clearTimeout(l) + } + function d() { + return a(m, p) + } + function j(w) { + if (!isNaN(w)) { + return w + } + var x = d(), + v + while ((v = x.index(w)) == -1 && w != p) { + w = w.parentNode + } + return v + } + }) + } +})(jQuery) +/*! * jQuery Cookie Plugin * https://github.com/carhartl/jquery-cookie * @@ -1833,11 +96332,48 @@ settings={title:"Warning!",style:"warning"};return $.growl($.extend(settings,opt * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ -(function($){$.cookie=function(key,value,options){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(value))||value===null||value===undefined)){options=$.extend({},options);if(value===null||value===undefined){options.expires=-1} -if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days)} -value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))} -options=value||{};var decode=options.raw?function(s){return s}:decodeURIComponent;var pairs=document.cookie.split('; ');for(var i=0,pair;pair=pairs[i]&&pairs[i].split('=');i++){if(decode(pair[0])===key)return decode(pair[1]||'')} -return null}})(jQuery);/* +;(function ($) { + $.cookie = function (key, value, options) { + if ( + arguments.length > 1 && + (!/Object/.test(Object.prototype.toString.call(value)) || + value === null || + value === undefined) + ) { + options = $.extend({}, options) + if (value === null || value === undefined) { + options.expires = -1 + } + if (typeof options.expires === 'number') { + var days = options.expires, + t = (options.expires = new Date()) + t.setDate(t.getDate() + days) + } + value = String(value) + return (document.cookie = [ + encodeURIComponent(key), + '=', + options.raw ? value : encodeURIComponent(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '', + ].join('')) + } + options = value || {} + var decode = options.raw + ? function (s) { + return s + } + : decodeURIComponent + var pairs = document.cookie.split('; ') + for (var i = 0, pair; (pair = pairs[i] && pairs[i].split('=')); i++) { + if (decode(pair[0]) === key) return decode(pair[1] || '') + } + return null + } +})(jQuery) +/* * NOTICE OF LICENSE * * This product is licensed for one customer to use on one installation (test stores and multishop included). @@ -1856,371 +96392,11180 @@ return null}})(jQuery);/* * @copyright 2022 idnovate.com * @license See above */ -(function($,F){F.transitions.dropIn=function(){var endPos=F._getPosition(!0);endPos.top=(parseInt(endPos.top,10)-200)+'px';endPos.opacity=0;F.wrap.css(endPos).show().animate({top:'+=200px',opacity:1},{duration:F.current.openSpeed,complete:F._afterZoomIn})};F.transitions.dropOut=function(){F.wrap.removeClass('fancybox-opened').animate({top:'-=200px',opacity:0},{duration:F.current.closeSpeed,complete:F._afterZoomOut})};F.transitions.superscaleIn=function(){F.wrap.addClass('superscale');setTimeout(function(){F.wrap.addClass('superscale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.superscaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('superscale superscale-transitions');F._afterZoomOut()},300)} -F.transitions.fadescaleIn=function(){F.wrap.addClass('fadescale');setTimeout(function(){F.wrap.addClass('fadescale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fadescaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fadescale fadescale-transitions');F._afterZoomOut()},300)} -F.transitions.sliderightIn=function(){F.wrap.addClass('slideright');setTimeout(function(){F.wrap.addClass('slideright-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sliderightOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slideright slideright-transitions');F._afterZoomOut()},300)} -F.transitions.slidebottomIn=function(){F.wrap.addClass('slidebottom');setTimeout(function(){F.wrap.addClass('slidebottom-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slidebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slidebottom slidebottom-transitions');F._afterZoomOut()},300)} -F.transitions.newspaperIn=function(){F.wrap.addClass('newspaper');setTimeout(function(){F.wrap.addClass('newspaper-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.newspaperOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('newspaper newspaper-transitions');F._afterZoomOut()},300)} -F.transitions.fallIn=function(){F.wrap.addClass('fall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fall');F._afterZoomOut()},300)} -F.transitions.sidefallIn=function(){F.wrap.addClass('sidefall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sidefallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sidefall');F._afterZoomOut()},300)} -F.transitions.stickyupIn=function(){F.wrap.addClass('stickyup');setTimeout(function(){F.wrap.addClass('show stickyup-transitions');F._afterZoomIn()})} -F.transitions.stickyupOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('stickyup stickyup-transitions');F._afterZoomOut()},300)} -F.transitions.horizontalflipIn=function(){F.wrap.addClass('horizflip');setTimeout(function(){F.wrap.addClass('show horizflip-transitions');F._afterZoomIn()})} -F.transitions.horizontalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('horizflip horizflip-transitions');F._afterZoomOut()},300)} -F.transitions.verticalflipIn=function(){F.wrap.addClass('vertflip');setTimeout(function(){F.wrap.addClass('show vertflip-transitions');F._afterZoomIn()})} -F.transitions.verticalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('vertflip vertflip-transitions');F._afterZoomOut()},300)} -F.transitions.signIn=function(){F.wrap.addClass('sign');setTimeout(function(){F.wrap.addClass('show sign-transitions');F._afterZoomIn()})} -F.transitions.signOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sign sign-transitions');F._afterZoomOut()},300)} -F.transitions.slitIn=function(){F.wrap.addClass('slit');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slitOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slit');F._afterZoomOut()},300)} -F.transitions.rotatebottomIn=function(){F.wrap.addClass('rotatebottom');setTimeout(function(){F.wrap.addClass('show rotatebottom-transitions');F._afterZoomIn()})} -F.transitions.rotatebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotatebottom-transitions rotatebottom');F._afterZoomOut()},300)} -F.transitions.rotateleftIn=function(){F.wrap.addClass('rotateleft');setTimeout(function(){F.wrap.addClass('show rotateleft-transitions');F._afterZoomIn()})} -F.transitions.rotateleftOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotateleft-transitions rotateleft');F._afterZoomOut()},300)} -F.transitions.blurIn=function(){F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').addClass('blur-overlay');F.wrap.addClass('blur');setTimeout(function(){F.wrap.addClass('blur-transitions show');F._afterZoomIn()})} -F.transitions.blurOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('blur-transitions blur');F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').removeClass('blur-overlay');F._afterZoomOut()},300)}})(jQuery,jQuery.fancybox);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){return function(A){"use strict";var L=A.tablesorter={version:"2.32.0",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:null,ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssIconDisabled:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(t,r){var e,o,s,a;t&&t.tHead&&0!==t.tBodies.length&&!0!==t.hasInitialized?(e="",o=A(t),s=A.metadata,t.hasInitialized=!1,t.isProcessing=!0,t.config=r,A.data(t,"tablesorter",r),L.debug(r,"core")&&(console[console.group?"group":"log"]("Initializing tablesorter v"+L.version),A.data(t,"startoveralltimer",new Date)),r.supportsDataObject=((a=A.fn.jquery.split("."))[0]=parseInt(a[0],10),1':"",i.$headers=A(A.map(i.$table.find(i.selectorHeaders),function(e,t){var r,o,s,a,n=A(e);if(!L.getClosest(n,"tr").hasClass(i.cssIgnoreRow))return/(th|td)/i.test(e.nodeName)||(a=L.getClosest(n,"th, td"),n.attr("data-column",a.attr("data-column"))),r=L.getColumnData(i.table,i.headers,t,!0),i.headerContent[t]=n.html(),""===i.headerTemplate||n.find("."+L.css.headerIn).length||(s=i.headerTemplate.replace(L.regex.templateContent,n.html()).replace(L.regex.templateIcon,n.find("."+L.css.icon).length?"":l),i.onRenderTemplate&&(o=i.onRenderTemplate.apply(n,[t,s]))&&"string"==typeof o&&(s=o),n.html('
        '+s+"
        ")),i.onRenderHeader&&i.onRenderHeader.apply(n,[t,i,i.$table]),o=parseInt(n.attr("data-column"),10),e.column=o,a=L.getOrder(L.getData(n,r,"sortInitialOrder")||i.sortInitialOrder),i.sortVars[o]={count:-1,order:a?i.sortReset?[1,0,2]:[1,0]:i.sortReset?[0,1,2]:[0,1],lockedOrder:!1,sortedBy:""},void 0!==(a=L.getData(n,r,"lockedOrder")||!1)&&!1!==a&&(i.sortVars[o].lockedOrder=!0,i.sortVars[o].order=L.getOrder(a)?[1,1]:[0,0]),i.headerList[t]=e,n.addClass(L.css.header+" "+i.cssHeader),L.getClosest(n,"tr").addClass(L.css.headerRow+" "+i.cssHeaderRow).attr("role","row"),i.tabIndex&&n.attr("tabindex",0),e})),i.$headerIndexed=[],r=0;r'),t=e.$table.width(),s=(o=e.$tbodies.find("tr:first").children(":visible")).length,a=0;a").css("width",r));e.$table.prepend(n)}},getData:function(e,t,r){var o,s,a="",e=A(e);return e.length?(o=!!A.metadata&&e.metadata(),s=" "+(e.attr("class")||""),void 0!==e.data(r)||void 0!==e.data(r.toLowerCase())?a+=e.data(r)||e.data(r.toLowerCase()):o&&void 0!==o[r]?a+=o[r]:t&&void 0!==t[r]?a+=t[r]:" "!==s&&s.match(" "+r+"-")&&(a=s.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),A.trim(a)):""},getColumnData:function(e,t,r,o,s){if("object"!=typeof t||null===t)return t;var a,e=(e=A(e)[0]).config,s=s||e.$headers,n=e.$headerIndexed&&e.$headerIndexed[r]||s.find('[data-column="'+r+'"]:last');if(void 0!==t[r])return o?t[r]:t[s.index(n)];for(a in t)if("string"==typeof a&&n.filter(a).add(n.find(a)).length)return t[a]},isProcessing:function(e,t,r){var o=(e=A(e))[0].config,s=r||e.find("."+L.css.header);t?(void 0!==r&&0'),A.fn.detach?t.detach():t.remove();r=A(e).find("colgroup.tablesorter-savemyplace");t.insertAfter(r),r.remove(),e.isProcessing=!1},clearTableBody:function(e){A(e)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(e){var t,r="[",o=L.characterEquivalents;if(!L.characterRegex){for(t in L.characterRegexArray={},o)"string"==typeof t&&(r+=o[t],L.characterRegexArray[t]=new RegExp("["+o[t]+"]","g"));L.characterRegex=new RegExp(r+"]")}if(L.characterRegex.test(e))for(t in o)"string"==typeof t&&(e=e.replace(L.characterRegexArray[t],t));return e},validateOptions:function(e){var t,r,o,s,a="headers sortForce sortList sortAppend widgets".split(" "),n=e.originalSettings;if(n){for(t in L.debug(e,"core")&&(s=new Date),n)if("undefined"===(o=typeof L.defaults[t]))console.warn('Tablesorter Warning! "table.config.'+t+'" option not recognized');else if("object"===o)for(r in n[t])o=L.defaults[t]&&typeof L.defaults[t][r],A.inArray(t,a)<0&&"undefined"===o&&console.warn('Tablesorter Warning! "table.config.'+t+"."+r+'" option not recognized');L.debug(e,"core")&&console.log("validate options time:"+L.benchmark(s))}},restoreHeaders:function(e){for(var t,r=A(e)[0].config,o=r.$table.find(r.selectorHeaders),s=o.length,a=0;a tr").children("th, td"),!1===t&&0<=A.inArray("uitheme",s.widgets)&&(o.triggerHandler("applyWidgetId",["uitheme"]),o.triggerHandler("applyWidgetId",["zebra"])),a.find("tr").not(n).remove(),a="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(s.namespace+" "),o.removeData("tablesorter").unbind(a.replace(L.regex.spaces," ")),s.$headers.add(i).removeClass([L.css.header,s.cssHeader,s.cssAsc,s.cssDesc,L.css.sortAsc,L.css.sortDesc,L.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),n.find(s.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(s.namespace+" ").replace(L.regex.spaces," ")),L.restoreHeaders(e),o.toggleClass(L.css.table+" "+s.tableClass+" tablesorter-"+s.theme,!1===t),o.removeClass(s.namespace.slice(1)),e.hasInitialized=!1,delete e.config.cache,"function"==typeof r&&r(e),L.debug(s,"core"))&&console.log("tablesorter has been removed")}};A.fn.tablesorter=function(t){return this.each(function(){var e=A.extend(!0,{},L.defaults,t,L.instanceMethods);e.originalSettings=t,!this.hasInitialized&&L.buildTable&&"TABLE"!==this.nodeName?L.buildTable(this,e):L.setup(this,e)})},window.console&&window.console.log||(L.logs=[],(console={}).log=console.warn=console.error=console.table=function(){var e=1> Using",a?c:"cookies"),h.parseJSON&&(l=a?h.parseJSON(u[c][t]||"null")||{}:(i=p.cookie.split(/[;\s|=]/),0!==(n=h.inArray(t,i)+1)&&h.parseJSON(i[n]||"null")||{})),void 0===r||!u.JSON||!JSON.hasOwnProperty("stringify"))return l&&l[f]?l[f][e]:"";l[f]||(l[f]={}),l[f][e]=r,a?u[c][t]=JSON.stringify(l):((s=new Date).setTime(s.getTime()+31536e6),p.cookie=t+"="+JSON.stringify(l).replace(/\"/g,'"')+"; expires="+s.toGMTString()+"; path=/")}}(e,window,document),function(S){"use strict";var C=S.tablesorter||{};C.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"glyphicon glyphicon-chevron-up",iconSortDesc:"glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},S.extend(C.css,{wrapper:"tablesorter-wrapper"}),C.addWidget({id:"uitheme",priority:10,format:function(e,t,r){var i,a,l,s,n,o,c,d,f,h,u,p,g=C.themes,m=t.$table.add(S(t.namespace+"_extra_table")),b=t.$headers.add(S(t.namespace+"_extra_headers")),y=t.theme||"jui",_=g[y]||{},v=S.trim([_.sortNone,_.sortDesc,_.sortAsc,_.active].join(" ")),w=S.trim([_.iconSortNone,_.iconSortDesc,_.iconSortAsc].join(" ")),x=C.debug(t,"uitheme");for(x&&(n=new Date),m.hasClass("tablesorter-"+y)&&t.theme===t.appliedTheme&&r.uitheme_applied||(r.uitheme_applied=!0,h=g[t.appliedTheme]||{},g=(p=!S.isEmptyObject(h))?[h.sortNone,h.sortDesc,h.sortAsc,h.active].join(" "):"",u=p?[h.iconSortNone,h.iconSortDesc,h.iconSortAsc].join(" "):"",p&&(r.zebra[0]=S.trim(" "+r.zebra[0].replace(" "+h.even,"")),r.zebra[1]=S.trim(" "+r.zebra[1].replace(" "+h.odd,"")),t.$tbodies.children().removeClass([h.even,h.odd].join(" "))),_.even&&(r.zebra[0]+=" "+_.even),_.odd&&(r.zebra[1]+=" "+_.odd),m.children("caption").removeClass(h.caption||"").addClass(_.caption),d=m.removeClass((t.appliedTheme?"tablesorter-"+(t.appliedTheme||""):"")+" "+(h.table||"")).addClass("tablesorter-"+y+" "+(_.table||"")).children("tfoot"),t.appliedTheme=t.theme,d.length&&d.children("tr").removeClass(h.footerRow||"").addClass(_.footerRow).children("th, td").removeClass(h.footerCells||"").addClass(_.footerCells),b.removeClass((p?[h.header,h.hover,g].join(" "):"")||"").addClass(_.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(e){S(this)["mouseenter"===e.type?"addClass":"removeClass"](_.hover||"")}),b.each(function(){var e=S(this);e.find("."+C.css.wrapper).length||e.wrapInner('
        ')}),t.cssIcon&&b.find("."+C.css.icon).removeClass(p?[h.icons,u].join(" "):"").addClass(_.icons||""),C.hasWidget(t.table,"filter")&&(a=function(){m.children("thead").children("."+C.css.filterRow).removeClass(p&&h.filterRow||"").addClass(_.filterRow||"")},r.filter_initialized?a():m.one("filterInit",function(){a()}))),i=0;i> Applied "+y+" theme"+C.benchmark(n))},remove:function(e,t,r,i){var a,l,s,n,o;r.uitheme_applied&&(a=t.$table,t=t.appliedTheme||"jui",l=C.themes[t]||C.themes.jui,s=a.children("thead").children(),n=l.sortNone+" "+l.sortDesc+" "+l.sortAsc,o=l.iconSortNone+" "+l.iconSortDesc+" "+l.iconSortAsc,a.removeClass("tablesorter-"+t+" "+l.table),r.uitheme_applied=!1,i||(a.find(C.css.header).removeClass(l.header),s.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(l.hover+" "+n+" "+l.active).filter("."+C.css.filterRow).removeClass(l.filterRow),s.find("."+C.css.icon).removeClass(l.icons+" "+o)))}})}(e),function(m){"use strict";var b=m.tablesorter||{};b.addWidget({id:"columns",priority:65,options:{columns:["primary","secondary","tertiary"]},format:function(e,t,r){for(var i,a,l,s,n,o=t.$table,c=t.$tbodies,d=t.sortList,f=d.length,h=r&&r.columns||["primary","secondary","tertiary"],u=h.length-1,p=h.join(" "),g=0;g=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(e,t,r){if(!O.orTest.test(t.iFilter)&&!O.orSplit.test(t.filter)||O.regex.test(t.filter))return null;for(var i,a,l=A.extend({},t),s=t.filter.split(O.orSplit),n=t.iFilter.split(O.orSplit),o=s.length,c=0;c]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(l.data("placeholder")||l.attr("data-placeholder")||f.filter_placeholder.select||"")+"":"",0<=(a=n=i).indexOf(f.filter_selectSourceSeparator)&&(a=(n=i.split(f.filter_selectSourceSeparator))[1],n=n[0]),t+="");d.$table.find("thead").find("select."+g.filter+'[data-column="'+s+'"]').append(t),("function"==typeof(a=f.filter_selectSource)||E.getColumnData(r,a,s))&&I.buildSelect(d.table,s,"",!0,l.hasClass(f.filter_onlyAvail))}I.buildDefault(r,!0),I.bindSearch(r,d.$table.find("."+g.filter),!0),f.filter_external&&I.bindSearch(r,f.filter_external),f.filter_hideFilters&&I.hideFilters(d),d.showProcessing&&(a="filterStart filterEnd ".split(" ").join(d.namespace+"filter-sp "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(e,t){l=t?d.$table.find("."+g.header).filter("[data-column]").filter(function(){return""!==t[A(this).data("column")]}):"",E.isProcessing(r,"filterStart"===e.type,t?l:"")})),d.filteredRows=d.totalRows,a="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(d.namespace+"filter "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(){I.completeInit(this)}),d.pager&&d.pager.initialized&&!f.filter_initialized?(d.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){I.filterInitComplete(d)},100)):f.filter_initialized||I.completeInit(r)},completeInit:function(e){var t=e.config,r=t.widgetOptions,i=I.setDefaults(e,t,r)||[];!i.length||t.delayInit&&""===i.join("")||E.setFilters(e,i,!0),t.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){r.filter_initialized||I.filterInitComplete(t)},100)},formatterUpdated:function(e,t){e=e&&e.closest("table"),e=e.length&&e[0].config,e=e&&e.widgetOptions;e&&!e.filter_initialized&&(e.filter_formatterInit[t]=1)},filterInitComplete:function(e){function t(){a.filter_initialized=!0,e.lastSearch=e.$table.data("lastSearch"),e.$table.triggerHandler("filterInit",e),I.findRows(e.table,e.lastSearch||[]),E.debug(e,"filter")&&console.log("Filter >> Widget initialized")}var r,i,a=e.widgetOptions,l=0;if(A.isEmptyObject(a.filter_formatter))t();else{for(i=a.filter_formatterInit.length,r=0;r',p=0;p");for(t.$filters=A(u+="").appendTo(t.$table.children("thead").eq(0)).children("td"),p=0;p").appendTo(i):((o=E.getColumnData(e,r.filter_formatter,p))?(r.filter_formatterCount++,(u=(u=o(i,p))&&0===u.length?i.children("input"):u)&&(0===u.parent().length||u.parent().length&&u.parent()[0]!==i[0])&&i.append(u)):u=A('').appendTo(i),u&&(c=a.data("placeholder")||a.attr("data-placeholder")||r.filter_placeholder.search||"",u.attr("placeholder",c))),u)&&(n=(A.isArray(r.filter_cssFilter)?void 0!==r.filter_cssFilter[p]&&r.filter_cssFilter[p]||"":r.filter_cssFilter)||"",u.addClass(g.filter+" "+n),c=(n=r.filter_filterLabel).match(/{{([^}]+?)}}/g),A.each(c=c||["{{label}}"],function(e,t){var r=new RegExp(t,"g"),t=a.attr("data-"+t.replace(/{{|}}/g,"")),t=void 0===t?a.text():t;n=n.replace(r,A.trim(t))}),u.attr({"data-column":i.attr("data-column"),"aria-label":n}),s)&&(u.attr("placeholder","").addClass(g.filterDisabled)[0].disabled=!0)},bindSearch:function(a,e,t){var r,l,s,i,n;a=A(a)[0],(e=A(e)).length&&(l=a.config,s=l.widgetOptions,i=l.namespace+"filter",n=s.filter_$externalFilters,!0!==t&&(r=s.filter_anyColumnSelector+","+s.filter_multipleColumnSelector,s.filter_$anyMatch=e.filter(r),n&&n.length?s.filter_$externalFilters=s.filter_$externalFilters.add(e):s.filter_$externalFilters=e,E.setFilters(a,l.$table.data("lastSearch")||[],!1===t)),r="keypress keyup keydown search change input ".split(" ").join(i+" "),e.attr("data-lastSearchTime",(new Date).getTime()).unbind(r.replace(E.regex.spaces," ")).bind("keydown"+i,function(e){if(e.which===o.escape&&!a.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+i,function(e){s=a.config.widgetOptions;var t=parseInt(A(this).attr("data-column"),10),r="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);if(void 0===r&&(r=s.filter_liveSearch.fallback||!1),A(this).attr("data-lastSearchTime",(new Date).getTime()),e.which===o.escape)this.value=s.filter_resetOnEsc?"":l.lastSearch[t];else{if(""!==this.value&&("number"==typeof r&&this.value.length=o.left&&e.which<=o.down)))return;if(!1===r&&""!==this.value&&e.which!==o.enter)return}I.searching(a,!0,!0,t)}).bind("search change keypress input blur ".split(" ").join(i+" "),function(e){var t=parseInt(A(this).attr("data-column"),10),r=e.type,i="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);!a.config.widgetOptions.filter_initialized||e.which!==o.enter&&"search"!==r&&"blur"!==r&&("change"!==r&&"input"!==r||!0!==i&&(!0===i||"INPUT"===e.target.nodeName)||this.value===l.lastSearch[t])||(e.preventDefault(),A(this).attr("data-lastSearchTime",(new Date).getTime()),I.searching(a,"keypress"!==r||e.which===o.enter,!0,t))}))},searching:function(e,t,r,i){var a,l=e.config.widgetOptions;void 0===i?a=!1:void 0===(a="boolean"==typeof l.filter_liveSearch?l.filter_liveSearch:E.getColumnData(e,l.filter_liveSearch,i))&&(a=l.filter_liveSearch.fallback||!1),clearTimeout(l.filter_searchTimer),void 0===t||!0===t?l.filter_searchTimer=setTimeout(function(){I.checkFilters(e,t,r)},a?l.filter_searchDelay:10):I.checkFilters(e,t,r)},equalFilters:function(e,t,r){var i,a=[],l=[],s=e.columns+1;for(t=A.isArray(t)?t:[],r=A.isArray(r)?r:[],i=0;i=e.columns&&(s=e.columns-1);l<=s;l++)f[f.length]=l;t=t.replace(i[c],"")}if(!r&&/,/.test(t))for(d=(n=t.split(/\s*,\s*/)).length,o=0;o> Starting filter widget search",r),m=new Date),F.filteredRows=0,t=$||[],c=F.totalRows=0;c> Searching through "+(v&&_> Completed search"+E.benchmark(m)),R.filter_initialized&&(F.$table.triggerHandler("filterBeforeEnd",F),F.$table.triggerHandler("filterEnd",F)),setTimeout(function(){E.applyWidget(F.table)},0)}},getOptionSource:function(e,t,r){var i=(e=A(e)[0]).config,a=!1,l=i.widgetOptions.filter_selectSource,i=i.$table.data("lastSearch")||[],s="function"==typeof l||E.getColumnData(e,l,t);if(r&&""!==i[t]&&(r=!1),!0===s)a=l(e,t,r);else{if(s instanceof A||"string"===A.type(s)&&0<=s.indexOf(""))return s;if(A.isArray(s))a=s;else if("object"===A.type(l)&&s&&null===(a=s(e,t,r)))return null}return!1===a&&(a=I.getOptions(e,t,r)),I.processOptions(e,t,a)},processOptions:function(i,a,r){if(!A.isArray(r))return!1;var l,e,t,s,n,o=(i=A(i)[0]).config,c=null!=a&&0<=a&&a'+(h.data("placeholder")||h.attr("data-placeholder")||f.filter_placeholder.select||"")+"",h=d.$table.find("thead").find("select."+g.filter+'[data-column="'+t+'"]').val();if(void 0!==r&&""!==r||null!==(r=I.getOptionSource(e,t,a))){if(A.isArray(r)){for(l=0;l"}else""+c!="[object Object]"&&(0<=(s=n=c=(""+c).replace(O.quote,""")).indexOf(f.filter_selectSourceSeparator)&&(s=(o=n.split(f.filter_selectSourceSeparator))[0],n=o[1]),u+=""!==c?"":"");r=[]}e=(d.$filters||d.$table.children("thead")).find("."+g.filter),(a=(e=f.filter_$externalFilters?e&&e.length?e.add(f.filter_$externalFilters):f.filter_$externalFilters:e).filter('select[data-column="'+t+'"]')).length&&(a[i?"html":"append"](u),A.isArray(r)||a.append(r).val(h),a.val(h))}}},buildDefault:function(e,t){for(var r,i,a=e.config,l=a.widgetOptions,s=a.columns,n=0;n'),y=b.parent().addClass($.css.stickyHide).css({position:d.length?"absolute":"fixed",padding:parseInt(b.parent().parent().css("padding-left"),10),top:p+m,left:0,visibility:"hidden",zIndex:o.stickyHeaders_zIndex||2}),p=b.children("thead:first"),_="",v=function(e,t){for(var r,i,a,l=e.filter(":visible"),s=l.length,n=0;na.top&&i thead:gt(0), tr.sticky-false").hide(),b.find("> tbody, > tfoot").remove(),b.find("caption").toggle(o.stickyHeaders_includeCaption),l=p.children().children(),b.css({height:0,width:0,margin:0}),l.find("."+$.css.resizer).remove(),c.addClass("hasStickyHeaders").bind("pagerComplete"+s,function(){x()}),$.bindEvents(e,p.children().children("."+$.css.header)),o.stickyHeaders_appendTo?C(o.stickyHeaders_appendTo).append(y):c.after(y),t.onRenderHeader)for(i=(a=p.children("tr").children()).length,r=0;r";c("head").append(e)}),d.resizable={init:function(e,t){if(!e.$table.hasClass("hasResizable")){e.$table.addClass("hasResizable");var r,i,a,l=e.$table,s=l.parent(),n=parseInt(l.css("margin-top"),10),o=t.resizable_vars={useStorage:d.storage&&!1!==t.resizable,$wrap:s,mouseXPosition:0,$target:null,$next:null,overflow:"auto"===s.css("overflow")||"scroll"===s.css("overflow")||"auto"===s.css("overflow-x")||"scroll"===s.css("overflow-x"),storedSizes:[]};for(d.resizableReset(e.table,!0),o.tableWidth=l.width(),o.fullWidth=Math.abs(s.width()-o.tableWidth)<20,o.useStorage&&o.overflow&&(d.storage(e.table,"tablesorter-table-original-css-width",o.tableWidth),a=d.storage(e.table,"tablesorter-table-resized-width")||"auto",d.resizable.setWidth(l,a,!0)),t.resizable_vars.storedSizes=s=(o.useStorage?d.storage(e.table,d.css.resizableStorage):[])||[],d.resizable.setWidths(e,t,s),d.resizable.updateStoredSizes(e,t),t.$resizable_container=c('
        ').css({top:n}).insertBefore(l),i=0;i').appendTo(t.$resizable_container).attr({"data-column":i,unselectable:"on"}).data("header",r).bind("selectstart",!1);d.resizable.bindings(e,t)}},updateStoredSizes:function(e,t){var r,i,a=e.columns,l=t.resizable_vars;for(l.storedSizes=[],r=0;r> Saving last sort: "+e.sortList+o.benchmark(a)):(l.addClass("hasSaveSort"),s="",o.storage&&(s=c(e),n&&console.log('saveSort >> Last sort loaded: "'+s+'"'+o.benchmark(a)),l.bind("saveSortReset",function(e){e.stopPropagation(),o.storage(t,"tablesorter-savesort","")})),i&&s&&0 -* @copyright 2007-2014 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ -$(document).ready(function(){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons();$("#pdproductattributeslist table.table").tablesorter({theme:'default',headerTemplate:'{content} {icon}',widgets:["uitheme","columns"],});prestashop.on('updateProductList',function(params){if(typeof(params)!=='undefined'){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons()}})});let PdProductAttributesList={initFancyboxOnProductImages(){if(!!$.prototype.fancybox){$('.option_image a.fancybox').fancybox({'hideOnContentClick':!0,'openEffect':'elastic','closeEffect':'elastic','helpers':{overlay:{locked:!1}}})}},initTouchSpinOnProductQtyInputs(){if(!!$.prototype.TouchSpin){var max=parseInt($("#pdproductattributeslist input[name='qty']").data('max'));$("#pdproductattributeslist input[name='qty']").TouchSpin({min:0,max:max,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '});$("#pdproductattributeslist_grid input[name='qty']").TouchSpin({min:0,max:9999999999,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '})}},executeAddProductsToCart(products){$.ajax({type:'POST',url:pdproductattributeslist_ajax_link,dataType:"json",data:{'action':'addProductsToCart','products':products,'secure_key':pdproductattributeslist_secure_key,'ajax':1},success:function(resp){if(resp){prestashop.emit('updateCart',{reason:{cart:[]},resp:resp});Object.entries(resp).forEach(([k,v])=>{if(v.response){if(v.id_product_attribute>0){message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+' '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}else{message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}}else if(v.response==!1){if(v.id_product_attribute>0){message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}else{message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}}})}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error,duration:15000})}}})},initEventAddToCartToButtons(){$('body').on('click','button.add-to-cart-pdproductattributeslist',function(){var products_array=[];var tr_colection=$(this).parent().parent().parent().find('tr');$(tr_colection).each(function(index){elem=$(this).find('td.option_gty');qty=parseInt(elem.find('input.quantity').val());if(elem.length>0&&qty>0){var product={'id_product':parseInt(elem.data('id-product')),'id_product_attribute':parseInt(elem.data('id-product-attribute')),'quantity':qty,'id_customization':0};products_array.push(product)}});if(products_array.length>0){PdProductAttributesList.executeAddProductsToCart(products_array)}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error})}})}};;$(document).ready(function(){$.each(list_menu,function(index,value){if(value.type=="horizontal"){var megamenu_element=$('.cavas_menu[data-megamenu-id='+value.id+']');if($("body").attr("id")=="index")isHomeMenu=1;megamenu_element.find(".megamenu > li > a").each(function(){menuURL=$(this).attr("href").replace("https://","").replace("http://","").replace("www.","").replace(/#\w*/,"");if((currentURL==menuURL)||(currentURL.replace(current_link,"")==menuURL)||isHomeMenu){$(this).parent().addClass("active");return!1}});if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)} -if(value.show_cavas==1){$.fn.OffCavasmenu=function(opts){var config=$.extend({},{opt1:null,text_warning_select:text_warning_select_txt,text_confirm_remove:text_confirm_remove_txt,JSON:null},opts);this.each(function(){var $btn=megamenu_element.find('.navbar-toggler');var $nav=null;if(!$btn.length) -return;var $nav=$("
        ");var $menucontent=$($btn.data('target')).find('.megamenu').clone();$("body").append($nav);$('body main').append("
        ");$(".megamenu-overlay[data-megamenu-id="+value.id+"]").click(function(){$btn.trigger('click')});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").append($menucontent);$("html").addClass("off-canvas");$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find(".off-canvas-button-megamenu").click(function(){off_canvas_active()});if($btn.is(':visible')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")} -$btn.click(function(){off_canvas_active();$('.off-canvas-nav-megamenu').removeClass('active');if(!$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").hasClass('active')&&$('body').hasClass('off-canvas-active')){$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").addClass('active');auto_height(value.id)}})});return this} -megamenu_element.OffCavasmenu();megamenu_element.find('.navbar-toggler').click(function(){$('body,html').animate({scrollTop:0},0);return!1});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('.offcanvas-mainnav .caret').click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height(value.id)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height(value.id)});$(this).parent('li').addClass('open-sub')}});$(window).resize(function(){if($(window).width()>991){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else{auto_height(value.id)}})}else{var $bt=megamenu_element.find('.navbar-toggler');var $menu=megamenu_element.find('.leo-top-menu');$bt.click(function(){if($menu.hasClass('in')){megamenu_element.removeClass('active')}else{if(!megamenu_element.hasClass('active')){megamenu_element.addClass('active')}}});megamenu_element.find('.leo-top-menu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find(".leo-top-menu li a").each(function(){if((this).hasAttribute('data-toggle')){$(this).removeAttr('data-toggle')}});megamenu_element.find(".leo-top-menu li a.dropdown-toggle").click(function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}}) -megamenu_element.find(".leo-top-menu .caret").click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').addClass('open-sub')}});if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')} -auto_height_off(megamenu_element);$(window).resize(function(){auto_height_off(megamenu_element);if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')}})}}else{var megamenu_element=$('.leo-verticalmenu[data-megamenu-id='+value.id+']');megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".verticalmenu .dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr('data-toggle');megamenu_element.find(".verticalmenu .caret").click(function(){if($(this).parents('.verticalmenu').hasClass('active-button')){var $parent=$(this).parent('li');if($parent.hasClass('open-sub')){$parent.find('.dropdown-menu').first().slideUp('fast',function(){$parent.removeClass('open-sub')})}else{if($parent.siblings('.open-sub').length>0){$parent.siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast',function(){$parent.siblings('.open-sub').removeClass('open-sub')});$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}else{$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}} -return!1}});if($(window).width()>991){megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.find('.leo-verticalmenu').removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')} -$(window).resize(function(){if($(window).width()>991){megamenu_element.find('.verticalmenu .dropdown').removeClass('open-sub');megamenu_element.find('.verticalmenu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')}});scrollSliderBarMenu(megamenu_element)} -if(typeof value.list_tab!=='undefined'&&value.list_tab.length>0){$.each(value.list_tab,function(key,val){megamenu_element.find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();$(this).tab('show')}) -$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();if(!$(this).hasClass('active')){var wrapper_tab=$(this).closest('.panel-group');var tab_href=$(this).attr('href');wrapper_tab.find('.nav-link').removeClass('active');wrapper_tab.find('.nav-item').removeClass('active');wrapper_tab.find('.tab-pane').removeClass('active');$(this).addClass('active');$(this).parents('.nav-item').addClass('active');wrapper_tab.find(tab_href).addClass('active')}})})} -if(typeof value.level!=='undefined'&&typeof value.limit!=='undefined'){megamenu_element.find('.widget-category_image ul.level0').each(function(){$(this).find('ul').removeClass('dropdown-sub dropdown-menu')});megamenu_element.find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}})} -if(value.type=="horizontal"){$(window).resize(function(){if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)}})} -if(value.type=="horizontal"&&value.show_cavas==1){$(document.body).on('click','[data-toggle="dropdown"]',function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}})}}) -$('.dropdown-menu.level1').parent().removeClass('aligned-fullwidth');$(".fancybox").fancybox({openEffect:'none',closeEffect:'none'})}) -function auto_height_off(menu_object){wrapper_height=$("#page").innerHeight();ul_height=menu_object.find(".leo-top-menu ul").innerHeight();ul_offset_top=menu_object.find(".leo-top-menu ul").offset().top;if(ul_offset_top+ul_height>wrapper_height){if(!$("#page").hasClass('megamenu-autoheight')){$("#page").addClass('megamenu-autoheight')}}else{$("#page").removeClass('megamenu-autoheight')}} -function auto_height(menu_id){windowHeight=$(window).innerHeight();$(".off-canvas-nav-megamenu[data-megamenu-id="+menu_id+"] .offcanvas-mainnav").css('min-height',windowHeight)} -function off_canvas_active(){if($('body').hasClass('off-canvas-active')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else if($('body').hasClass('off-canvas-inactive')){$("body").removeClass("off-canvas-inactive").addClass("off-canvas-active")}else{$("body").addClass("off-canvas-active")}} -function set_target_blank(show,megamenu_element){if(show){megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('data-toggle');$(this).removeAttr('data-toggle');$(this).attr('remove-data-toggle',value)}})}else{megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('remove-data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('remove-data-toggle');$(this).removeAttr('remove-data-toggle');$(this).attr('data-toggle',value)}})}} -function scrollSliderBarMenu(megamenu_element){var menuElement=megamenu_element;var columnElement=null;var maxWindowSize=991;if($(columnElement).length&&$(window).width()>=maxWindowSize)showOrHideSliderBarMenu(columnElement,menuElement,1);megamenu_element.find(".verticalmenu-button").click(function(){if($(menuElement).hasClass('active')){showOrHideSliderBarMenu(columnElement,menuElement,0)}else{showOrHideSliderBarMenu(columnElement,menuElement,1)}});var lastWidth=$(window).width();$(window).resize(function(){if($(window).width()!=lastWidth){if($(window).width()=991) -columnElement.css('padding-top',($('.block_content',$(menuElement)).height())+'px')}else{$(menuElement).removeClass('active');if($(columnElement).length)columnElement.css('padding-top','')}};$(document).ready(function(){if(typeof enable_js_lang!='undefined'){$('ul#first-currencies li:not(.selected)').css('opacity',0.3);$('ul#first-currencies li:not(.selected)').hover(function(){$(this).css('opacity',1)},function(){$(this).css('opacity',0.3)})} -if(typeof enable_js_currency!='undefined'){$("#setCurrency").mouseover(function(){$(this).addClass("countries_hover");$(".currencies_ul").addClass("currencies_ul_hover")});$("#setCurrency").mouseout(function(){$(this).removeClass("countries_hover");$(".currencies_ul").removeClass("currencies_ul_hover")})} -if(typeof js_country!='undefined'){$("#countries").mouseover(function(){$(this).addClass("countries_hover");$(".countries_ul").addClass("countries_ul_hover")});$("#countries").mouseout(function(){$(this).removeClass("countries_hover");$(".countries_ul").removeClass("countries_ul_hover")})}}) -function setCurrency(id_currency){$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:prestashop.urls.base_url+'index.php'+'?rand='+new Date().getTime(),data:'controller=change-currency&id_currency='+parseInt(id_currency),success:function(msg){location.reload(!0)}})};var matched,browser;jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=!0;browser.version=matched.version} -if(browser.chrome){browser.webkit=!0}else if(browser.webkit){browser.safari=!0} -jQuery.browser=browser;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options)})},result:function(handler){return this.bind("result",handler)},search:function(handler){return this.trigger("search",[handler])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(options){return this.trigger("setOptions",[options])},unautocomplete:function(){return this.trigger("unautocomplete")}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var $loading=$input.parent().find('.leoproductsearch-loading');var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:!1};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=!1;return!1}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev()}else{onChange(0,!0)} -break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next()}else{onChange(0,!0)} -break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp()}else{onChange(0,!0)} -break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown()}else{onChange(0,!0)} -break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=!0;return!1} -break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break}}).focus(function(){hasFocus++}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults()}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,!0)}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i1){v=words.slice(0,words.length-1).join(options.multipleSeparator)+options.multipleSeparator+v} -v+=options.multipleSeparator} -$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return!0} -function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return} -var currentValue=$input.val();if(!skipPrevCheck&¤tValue==previousValue) -return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase) -currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow)}else{stopLoading();select.hide()}};function trimWords(value){if(!value){return[""]} -var words=value.split(options.multipleSeparator);var result=[];$.each(words,function(i,value){if($.trim(value)) -result[i]=$.trim(value)});return result} -function lastWord(value){if(!options.multiple) -return value;var words=trimWords(value);return words[words.length-1]} -function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$.Autocompleter.Selection(input,previousValue.length,previousValue.length+sValue.length)}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200)};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""))}else $input.val("")}})} -if(wasVisible) -$.Autocompleter.Selection(input,input.value.length,input.value.length)};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show()}else{hideResultsNow()}};function request(term,success,failure){$loading.show();if(!options.matchCase) -term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data)}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({cate:$('input[name="cate"]').val(),q:lastWord(term),limit:options.max},extraParams),success:function(data){var str='
        ';if(data.suggest.length){str+='
        ';str+='
        '+$("#leosearchtopbox").data('label-suggestion')+'
        ';str+='';str+='
        '} -if(data.category.length){str+='
        ';str+='
        '+$("#leosearchtopbox").data('search-for')+' "'+$("#leo_search_query_top").val()+'"
        ';if(data.category.length){str+=''} -str+='
        '} -if(data.products.length){str+='
        ';str+='
        '+$("#leosearchtopbox").data('products-for')+' "'+$("#leo_search_query_top").val()+'"
        ';str+='';str+='
        ';str+='
        ';str+=''}else{str+="
        Nie znaleziono żadnego produktu
        ";str+='
        '} -$(".leoproductsearch-result .ac_results").html(str);$(".leoproductsearch-result .ac_results").show();$(".suggest-item").click(function(){$("#leo_search_query_top").val($(this).attr('href'));onChange(0,!0);return!1});$loading.hide()}})}else{select.emptyList();failure(term)}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")},scroll:!0,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase) -s=s.toLowerCase();var i=s.indexOf(sub);if(i==-1)return!1;return i==0||options.matchContains};function add(q,cate,value){if(length>options.cacheLength){flush()} -if(!data[q]){length++} -data[q]=value} -function populate(){if(!options.data)return!1;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x)}})}} -return csub}else if(data[q]){return data[q]}else if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x}});return csub}}} -return null}}};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=!0,element,list;function init(){if(!needsInit) -return;element=$("
        ").hide().addClass(options.resultsClass).css("position","absolute").appendTo('.leoproductsearch-result');list=$("
        ").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE)}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return!1}).mousedown(function(){config.mouseDownOnSelect=!0}).mouseup(function(){config.mouseDownOnSelect=!1});if(options.width>0) -element.css("width",options.width);needsInit=!1} -function target(event){var element=event.target;while(element&&element.tagName!="LI") -element=element.parentNode;if(!element) -return[];return element} -function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight())}else if(offset=listItems.size()){active=0}} -function limitNumberOfItems(available){return options.max&&options.max").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i])} -listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0} -if($.fn.bgiframe) -list.bgiframe()} -return{display:function(d,q){init();data=d;term=q;fillList()},next:function(){moveSelect(1)},prev:function(){moveSelect(-1)},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active)}else{moveSelect(-8)}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active)}else{moveSelect(8)}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1},visible:function(){return element&&element.is(":visible")},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0])},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:($(input).width()+parseInt($(input).css('padding-left'))+parseInt($(input).css('padding-right'))+parseInt($(input).css('margin-left'))+parseInt($(input).css('margin-right'))),top:"100%",left:0}).show();if(options.scroll){list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")))}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data")},emptyList:function(){list&&list.empty()},unbind:function(){element&&element.remove()}}};$.Autocompleter.Selection=function(field,start,end){if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(!0);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select()}else if(field.setSelectionRange){field.setSelectionRange(start,end)}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end}} -field.focus()}})(jQuery);var instantSearchQueries=[];$(document).click(function(event){var $target=$(event.target);if(!$target.closest('.leoproductsearch-content').length){$(".leoproductsearch-result .ac_results").hide()}});$(document).ready(function(){$('#leo_search_query_top').click(function(){if($(this).val().length>2){$(".leoproductsearch-result .ac_results").show()}});if(typeof ajaxsearch!='undefined'&&ajaxsearch&&typeof blocksearch_type!=='undefined'&&blocksearch_type){var width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).autocomplete(leo_search_url,{minChars:3,max:numpro_display,width:(width_ac_results>0?width_ac_results:500),selectFirst:!1,scroll:!1,dataType:"json",formatItem:function(data,i,max,value,term){return value},extraParams:{ajaxSearch:1,id_lang:prestashop.language.id,leoproductsearch_static_token:leoproductsearch_static_token,leoproductsearch_token:leoproductsearch_token}}).result(function(event,data,formatted){$('#leo_search_query_'+blocksearch_type).val(data.name);document.location.href=data.url});$("#leo_search_query_"+blocksearch_type).click(function(){width_ac_results=$(this).outerWidth();$(this).setOptions({width:width_ac_results})})} -$('.cate-item').click(function(){if(!$(this).hasClass('active')){$('.cate-item.active').removeClass('active');var cate_id=$(this).data('cate-id');var cate_name=$(this).data('cate-name');$('#leosearch-cate-id').val(cate_id);$('#leosearchtop-cate-id').val(cate_id);$('#dropdownListCate span').text(cate_name);$('#dropdownListCateTop span').text(cate_name);$(this).addClass('active')} -$('#dropdownListCate').trigger('click');$('#dropdownListCateTop').trigger('click');var e=jQuery.Event("keydown");e.keyCode=40;$(this).parents('form').find('.search_query').focus().trigger(e);return!1});$('.search_query').click(function(){if($(this).val()!=''){}});$('.search_query').change(function(){if($(this).val()!=''){var e=jQuery.Event("keydown");e.keyCode=40;$(this).trigger(e)}})});$(window).resize(function(){updatePositionOfResult()});function updatePositionOfResult(){if($('.ac_results').length){width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).setOptions({width:width_ac_results});$('.ac_results').width(width_ac_results)}} -function tryToCloseInstantSearch(){if($('#old_center_column').length>0){$('#center_column').remove();$('#old_center_column').attr('id','center_column');$('#center_column').show();return!1}} -function stopInstantSearchQueries(){for(i=0;iPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3000,centerMode:!1,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('', + nextArrow: + '', + autoplay: !1, + autoplaySpeed: 3000, + centerMode: !1, + centerPadding: '50px', + cssEase: 'ease', + customPaging: function (slider, i) { + return $('") + .addClass(this._triggerClass) + .html( + f ? a('').attr({ src: f, alt: e, title: e }) : e + ) + )), + b[h ? 'before' : 'after'](c.trigger), + c.trigger.click(function () { + return ( + a.datepicker._datepickerShowing && + a.datepicker._lastInput === b[0] + ? a.datepicker._hideDatepicker() + : a.datepicker._datepickerShowing && + a.datepicker._lastInput !== b[0] + ? (a.datepicker._hideDatepicker(), + a.datepicker._showDatepicker(b[0])) + : a.datepicker._showDatepicker(b[0]), + !1 + ) + })) + }, + _autoSize: function (a) { + if (this._get(a, 'autoSize') && !a.inline) { + var b, + c, + d, + e, + f = new Date(2009, 11, 20), + g = this._get(a, 'dateFormat') + g.match(/[DM]/) && + ((b = function (a) { + for (c = 0, d = 0, e = 0; e < a.length; e++) + a[e].length > c && ((c = a[e].length), (d = e)) + return d + }), + f.setMonth( + b(this._get(a, g.match(/MM/) ? 'monthNames' : 'monthNamesShort')) + ), + f.setDate( + b(this._get(a, g.match(/DD/) ? 'dayNames' : 'dayNamesShort')) + + 20 - + f.getDay() + )), + a.input.attr('size', this._formatDate(a, f).length) + } + }, + _inlineDatepicker: function (b, d) { + var e = a(b) + e.hasClass(this.markerClassName) || + (e.addClass(this.markerClassName).append(d.dpDiv), + a.data(b, c, d), + this._setDate(d, this._getDefaultDate(d), !0), + this._updateDatepicker(d), + this._updateAlternate(d), + d.settings.disabled && this._disableDatepicker(b), + d.dpDiv.css('display', 'block')) + }, + _dialogDatepicker: function (b, d, e, f, h) { + var i, + j, + k, + l, + m, + n = this._dialogInst + return ( + n || + ((this.uuid += 1), + (i = 'dp' + this.uuid), + (this._dialogInput = a( + "" + )), + this._dialogInput.keydown(this._doKeyDown), + a('body').append(this._dialogInput), + (n = this._dialogInst = this._newInst(this._dialogInput, !1)), + (n.settings = {}), + a.data(this._dialogInput[0], c, n)), + g(n.settings, f || {}), + (d = d && d.constructor === Date ? this._formatDate(n, d) : d), + this._dialogInput.val(d), + (this._pos = h ? (h.length ? h : [h.pageX, h.pageY]) : null), + this._pos || + ((j = document.documentElement.clientWidth), + (k = document.documentElement.clientHeight), + (l = + document.documentElement.scrollLeft || document.body.scrollLeft), + (m = document.documentElement.scrollTop || document.body.scrollTop), + (this._pos = [j / 2 - 100 + l, k / 2 - 150 + m])), + this._dialogInput + .css('left', this._pos[0] + 20 + 'px') + .css('top', this._pos[1] + 'px'), + (n.settings.onSelect = e), + (this._inDialog = !0), + this.dpDiv.addClass(this._dialogClass), + this._showDatepicker(this._dialogInput[0]), + a.blockUI && a.blockUI(this.dpDiv), + a.data(this._dialogInput[0], c, n), + this + ) + }, + _destroyDatepicker: function (b) { + var d, + e = a(b), + f = a.data(b, c) + e.hasClass(this.markerClassName) && + ((d = b.nodeName.toLowerCase()), + a.removeData(b, c), + 'input' === d + ? (f.append.remove(), + f.trigger.remove(), + e + .removeClass(this.markerClassName) + .unbind('focus', this._showDatepicker) + .unbind('keydown', this._doKeyDown) + .unbind('keypress', this._doKeyPress) + .unbind('keyup', this._doKeyUp)) + : ('div' !== d && 'span' !== d) || + e.removeClass(this.markerClassName).empty()) + }, + _enableDatepicker: function (b) { + var d, + e, + f = a(b), + g = a.data(b, c) + f.hasClass(this.markerClassName) && + ((d = b.nodeName.toLowerCase()), + 'input' === d + ? ((b.disabled = !1), + g.trigger + .filter('button') + .each(function () { + this.disabled = !1 + }) + .end() + .filter('img') + .css({ opacity: '1.0', cursor: '' })) + : ('div' !== d && 'span' !== d) || + ((e = f.children('.' + this._inlineClass)), + e.children().removeClass('ui-state-disabled'), + e + .find('select.ui-datepicker-month, select.ui-datepicker-year') + .prop('disabled', !1)), + (this._disabledInputs = a.map(this._disabledInputs, function (a) { + return a === b ? null : a + }))) + }, + _disableDatepicker: function (b) { + var d, + e, + f = a(b), + g = a.data(b, c) + f.hasClass(this.markerClassName) && + ((d = b.nodeName.toLowerCase()), + 'input' === d + ? ((b.disabled = !0), + g.trigger + .filter('button') + .each(function () { + this.disabled = !0 + }) + .end() + .filter('img') + .css({ opacity: '0.5', cursor: 'default' })) + : ('div' !== d && 'span' !== d) || + ((e = f.children('.' + this._inlineClass)), + e.children().addClass('ui-state-disabled'), + e + .find('select.ui-datepicker-month, select.ui-datepicker-year') + .prop('disabled', !0)), + (this._disabledInputs = a.map(this._disabledInputs, function (a) { + return a === b ? null : a + })), + (this._disabledInputs[this._disabledInputs.length] = b)) + }, + _isDisabledDatepicker: function (a) { + if (!a) return !1 + for (var b = 0; b < this._disabledInputs.length; b++) + if (this._disabledInputs[b] === a) return !0 + return !1 + }, + _getInst: function (b) { + try { + return a.data(b, c) + } catch (a) { + throw 'Missing instance data for this datepicker' + } + }, + _optionDatepicker: function (c, d, e) { + var f, + h, + i, + j, + k = this._getInst(c) + return 2 === arguments.length && 'string' == typeof d + ? 'defaults' === d + ? a.extend({}, a.datepicker._defaults) + : k + ? 'all' === d + ? a.extend({}, k.settings) + : this._get(k, d) + : null + : ((f = d || {}), + 'string' == typeof d && ((f = {}), (f[d] = e)), + void ( + k && + (this._curInst === k && this._hideDatepicker(), + (h = this._getDateDatepicker(c, !0)), + (i = this._getMinMaxDate(k, 'min')), + (j = this._getMinMaxDate(k, 'max')), + g(k.settings, f), + null !== i && + f.dateFormat !== b && + f.minDate === b && + (k.settings.minDate = this._formatDate(k, i)), + null !== j && + f.dateFormat !== b && + f.maxDate === b && + (k.settings.maxDate = this._formatDate(k, j)), + 'disabled' in f && + (f.disabled + ? this._disableDatepicker(c) + : this._enableDatepicker(c)), + this._attachments(a(c), k), + this._autoSize(k), + this._setDate(k, h), + this._updateAlternate(k), + this._updateDatepicker(k)) + )) + }, + _changeDatepicker: function (a, b, c) { + this._optionDatepicker(a, b, c) + }, + _refreshDatepicker: function (a) { + var b = this._getInst(a) + b && this._updateDatepicker(b) + }, + _setDateDatepicker: function (a, b) { + var c = this._getInst(a) + c && + (this._setDate(c, b), + this._updateDatepicker(c), + this._updateAlternate(c)) + }, + _getDateDatepicker: function (a, b) { + var c = this._getInst(a) + return ( + c && !c.inline && this._setDateFromField(c, b), + c ? this._getDate(c) : null + ) + }, + _doKeyDown: function (b) { + var c, + d, + e, + f = a.datepicker._getInst(b.target), + g = !0, + h = f.dpDiv.is('.ui-datepicker-rtl') + if (((f._keyEvent = !0), a.datepicker._datepickerShowing)) + switch (b.keyCode) { + case 9: + a.datepicker._hideDatepicker(), (g = !1) + break + case 13: + return ( + (e = a( + 'td.' + + a.datepicker._dayOverClass + + ':not(.' + + a.datepicker._currentClass + + ')', + f.dpDiv + )), + e[0] && + a.datepicker._selectDay( + b.target, + f.selectedMonth, + f.selectedYear, + e[0] + ), + (c = a.datepicker._get(f, 'onSelect')), + c + ? ((d = a.datepicker._formatDate(f)), + c.apply(f.input ? f.input[0] : null, [d, f])) + : a.datepicker._hideDatepicker(), + !1 + ) + case 27: + a.datepicker._hideDatepicker() + break + case 33: + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? -a.datepicker._get(f, 'stepBigMonths') + : -a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 34: + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? +a.datepicker._get(f, 'stepBigMonths') + : +a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 35: + ;(b.ctrlKey || b.metaKey) && a.datepicker._clearDate(b.target), + (g = b.ctrlKey || b.metaKey) + break + case 36: + ;(b.ctrlKey || b.metaKey) && a.datepicker._gotoToday(b.target), + (g = b.ctrlKey || b.metaKey) + break + case 37: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, h ? 1 : -1, 'D'), + (g = b.ctrlKey || b.metaKey), + b.originalEvent.altKey && + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? -a.datepicker._get(f, 'stepBigMonths') + : -a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 38: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, -7, 'D'), + (g = b.ctrlKey || b.metaKey) + break + case 39: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, h ? -1 : 1, 'D'), + (g = b.ctrlKey || b.metaKey), + b.originalEvent.altKey && + a.datepicker._adjustDate( + b.target, + b.ctrlKey + ? +a.datepicker._get(f, 'stepBigMonths') + : +a.datepicker._get(f, 'stepMonths'), + 'M' + ) + break + case 40: + ;(b.ctrlKey || b.metaKey) && + a.datepicker._adjustDate(b.target, 7, 'D'), + (g = b.ctrlKey || b.metaKey) + break + default: + g = !1 + } + else + 36 === b.keyCode && b.ctrlKey + ? a.datepicker._showDatepicker(this) + : (g = !1) + g && (b.preventDefault(), b.stopPropagation()) + }, + _doKeyPress: function (b) { + var c, + d, + e = a.datepicker._getInst(b.target) + if (a.datepicker._get(e, 'constrainInput')) + return ( + (c = a.datepicker._possibleChars( + a.datepicker._get(e, 'dateFormat') + )), + (d = String.fromCharCode( + null == b.charCode ? b.keyCode : b.charCode + )), + b.ctrlKey || b.metaKey || d < ' ' || !c || c.indexOf(d) > -1 + ) + }, + _doKeyUp: function (b) { + var c, + d = a.datepicker._getInst(b.target) + if (d.input.val() !== d.lastVal) + try { + ;(c = a.datepicker.parseDate( + a.datepicker._get(d, 'dateFormat'), + d.input ? d.input.val() : null, + a.datepicker._getFormatConfig(d) + )), + c && + (a.datepicker._setDateFromField(d), + a.datepicker._updateAlternate(d), + a.datepicker._updateDatepicker(d)) + } catch (a) {} + return !0 + }, + _showDatepicker: function (b) { + if ( + ((b = b.target || b), + 'input' !== b.nodeName.toLowerCase() && + (b = a('input', b.parentNode)[0]), + !a.datepicker._isDisabledDatepicker(b) && + a.datepicker._lastInput !== b) + ) { + var c, d, e, f, h, i, j + ;(c = a.datepicker._getInst(b)), + a.datepicker._curInst && + a.datepicker._curInst !== c && + (a.datepicker._curInst.dpDiv.stop(!0, !0), + c && + a.datepicker._datepickerShowing && + a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])), + (d = a.datepicker._get(c, 'beforeShow')), + (e = d ? d.apply(b, [b, c]) : {}), + e !== !1 && + (g(c.settings, e), + (c.lastVal = null), + (a.datepicker._lastInput = b), + a.datepicker._setDateFromField(c), + a.datepicker._inDialog && (b.value = ''), + a.datepicker._pos || + ((a.datepicker._pos = a.datepicker._findPos(b)), + (a.datepicker._pos[1] += b.offsetHeight)), + (f = !1), + a(b) + .parents() + .each(function () { + return (f |= 'fixed' === a(this).css('position')), !f + }), + (h = { left: a.datepicker._pos[0], top: a.datepicker._pos[1] }), + (a.datepicker._pos = null), + c.dpDiv.empty(), + c.dpDiv.css({ + position: 'absolute', + display: 'block', + top: '-1000px', + }), + a.datepicker._updateDatepicker(c), + (h = a.datepicker._checkOffset(c, h, f)), + c.dpDiv.css({ + position: + a.datepicker._inDialog && a.blockUI + ? 'static' + : f + ? 'fixed' + : 'absolute', + display: 'none', + left: h.left + 'px', + top: h.top + 'px', + }), + c.inline || + ((i = a.datepicker._get(c, 'showAnim')), + (j = a.datepicker._get(c, 'duration')), + c.dpDiv.zIndex(a(b).zIndex() + 1), + (a.datepicker._datepickerShowing = !0), + a.effects && a.effects.effect[i] + ? c.dpDiv.show(i, a.datepicker._get(c, 'showOptions'), j) + : c.dpDiv[i || 'show'](i ? j : null), + a.datepicker._shouldFocusInput(c) && c.input.focus(), + (a.datepicker._curInst = c))) + } + }, + _updateDatepicker: function (b) { + ;(this.maxRows = 4), + (d = b), + b.dpDiv.empty().append(this._generateHTML(b)), + this._attachHandlers(b), + b.dpDiv.find('.' + this._dayOverClass + ' a').mouseover() + var c, + e = this._getNumberOfMonths(b), + f = e[1], + g = 17 + b.dpDiv + .removeClass( + 'ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4' + ) + .width(''), + f > 1 && + b.dpDiv + .addClass('ui-datepicker-multi-' + f) + .css('width', g * f + 'em'), + b.dpDiv[(1 !== e[0] || 1 !== e[1] ? 'add' : 'remove') + 'Class']( + 'ui-datepicker-multi' + ), + b.dpDiv[(this._get(b, 'isRTL') ? 'add' : 'remove') + 'Class']( + 'ui-datepicker-rtl' + ), + b === a.datepicker._curInst && + a.datepicker._datepickerShowing && + a.datepicker._shouldFocusInput(b) && + b.input.focus(), + b.yearshtml && + ((c = b.yearshtml), + setTimeout(function () { + c === b.yearshtml && + b.yearshtml && + b.dpDiv + .find('select.ui-datepicker-year:first') + .replaceWith(b.yearshtml), + (c = b.yearshtml = null) + }, 0)) + }, + _shouldFocusInput: function (a) { + return ( + a.input && + a.input.is(':visible') && + !a.input.is(':disabled') && + !a.input.is(':focus') + ) + }, + _checkOffset: function (b, c, d) { + var e = b.dpDiv.outerWidth(), + f = b.dpDiv.outerHeight(), + g = b.input ? b.input.outerWidth() : 0, + h = b.input ? b.input.outerHeight() : 0, + i = + document.documentElement.clientWidth + + (d ? 0 : a(document).scrollLeft()), + j = + document.documentElement.clientHeight + + (d ? 0 : a(document).scrollTop()) + return ( + (c.left -= this._get(b, 'isRTL') ? e - g : 0), + (c.left -= + d && c.left === b.input.offset().left + ? a(document).scrollLeft() + : 0), + (c.top -= + d && c.top === b.input.offset().top + h + ? a(document).scrollTop() + : 0), + (c.left -= Math.min( + c.left, + c.left + e > i && i > e ? Math.abs(c.left + e - i) : 0 + )), + (c.top -= Math.min( + c.top, + c.top + f > j && j > f ? Math.abs(f + h) : 0 + )), + c + ) + }, + _findPos: function (b) { + for ( + var c, d = this._getInst(b), e = this._get(d, 'isRTL'); + b && + ('hidden' === b.type || 1 !== b.nodeType || a.expr.filters.hidden(b)); + + ) + b = b[e ? 'previousSibling' : 'nextSibling'] + return (c = a(b).offset()), [c.left, c.top] + }, + _hideDatepicker: function (b) { + var d, + e, + f, + g, + h = this._curInst + !h || + (b && h !== a.data(b, c)) || + (this._datepickerShowing && + ((d = this._get(h, 'showAnim')), + (e = this._get(h, 'duration')), + (f = function () { + a.datepicker._tidyDialog(h) + }), + a.effects && (a.effects.effect[d] || a.effects[d]) + ? h.dpDiv.hide(d, a.datepicker._get(h, 'showOptions'), e, f) + : h.dpDiv[ + 'slideDown' === d + ? 'slideUp' + : 'fadeIn' === d + ? 'fadeOut' + : 'hide' + ](d ? e : null, f), + d || f(), + (this._datepickerShowing = !1), + (g = this._get(h, 'onClose')), + g && + g.apply(h.input ? h.input[0] : null, [ + h.input ? h.input.val() : '', + h, + ]), + (this._lastInput = null), + this._inDialog && + (this._dialogInput.css({ + position: 'absolute', + left: '0', + top: '-100px', + }), + a.blockUI && (a.unblockUI(), a('body').append(this.dpDiv))), + (this._inDialog = !1))) + }, + _tidyDialog: function (a) { + a.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar') + }, + _checkExternalClick: function (b) { + if (a.datepicker._curInst) { + var c = a(b.target), + d = a.datepicker._getInst(c[0]) + ;((c[0].id === a.datepicker._mainDivId || + 0 !== c.parents('#' + a.datepicker._mainDivId).length || + c.hasClass(a.datepicker.markerClassName) || + c.closest('.' + a.datepicker._triggerClass).length || + !a.datepicker._datepickerShowing || + (a.datepicker._inDialog && a.blockUI)) && + (!c.hasClass(a.datepicker.markerClassName) || + a.datepicker._curInst === d)) || + a.datepicker._hideDatepicker() + } + }, + _adjustDate: function (b, c, d) { + var e = a(b), + f = this._getInst(e[0]) + this._isDisabledDatepicker(e[0]) || + (this._adjustInstDate( + f, + c + ('M' === d ? this._get(f, 'showCurrentAtPos') : 0), + d + ), + this._updateDatepicker(f)) + }, + _gotoToday: function (b) { + var c, + d = a(b), + e = this._getInst(d[0]) + this._get(e, 'gotoCurrent') && e.currentDay + ? ((e.selectedDay = e.currentDay), + (e.drawMonth = e.selectedMonth = e.currentMonth), + (e.drawYear = e.selectedYear = e.currentYear)) + : ((c = new Date()), + (e.selectedDay = c.getDate()), + (e.drawMonth = e.selectedMonth = c.getMonth()), + (e.drawYear = e.selectedYear = c.getFullYear())), + this._notifyChange(e), + this._adjustDate(d) + }, + _selectMonthYear: function (b, c, d) { + var e = a(b), + f = this._getInst(e[0]) + ;(f['selected' + ('M' === d ? 'Month' : 'Year')] = f[ + 'draw' + ('M' === d ? 'Month' : 'Year') + ] = + parseInt(c.options[c.selectedIndex].value, 10)), + this._notifyChange(f), + this._adjustDate(e) + }, + _selectDay: function (b, c, d, e) { + var f, + g = a(b) + a(e).hasClass(this._unselectableClass) || + this._isDisabledDatepicker(g[0]) || + ((f = this._getInst(g[0])), + (f.selectedDay = f.currentDay = a('a', e).html()), + (f.selectedMonth = f.currentMonth = c), + (f.selectedYear = f.currentYear = d), + this._selectDate( + b, + this._formatDate(f, f.currentDay, f.currentMonth, f.currentYear) + )) + }, + _clearDate: function (b) { + var c = a(b) + this._selectDate(c, '') + }, + _selectDate: function (b, c) { + var d, + e = a(b), + f = this._getInst(e[0]) + ;(c = null != c ? c : this._formatDate(f)), + f.input && f.input.val(c), + this._updateAlternate(f), + (d = this._get(f, 'onSelect')), + d + ? d.apply(f.input ? f.input[0] : null, [c, f]) + : f.input && f.input.trigger('change'), + f.inline + ? this._updateDatepicker(f) + : (this._hideDatepicker(), + (this._lastInput = f.input[0]), + 'object' != typeof f.input[0] && f.input.focus(), + (this._lastInput = null)) + }, + _updateAlternate: function (b) { + var c, + d, + e, + f = this._get(b, 'altField') + f && + ((c = this._get(b, 'altFormat') || this._get(b, 'dateFormat')), + (d = this._getDate(b)), + (e = this.formatDate(c, d, this._getFormatConfig(b))), + a(f).each(function () { + a(this).val(e) + })) + }, + noWeekends: function (a) { + var b = a.getDay() + return [b > 0 && b < 6, ''] + }, + iso8601Week: function (a) { + var b, + c = new Date(a.getTime()) + return ( + c.setDate(c.getDate() + 4 - (c.getDay() || 7)), + (b = c.getTime()), + c.setMonth(0), + c.setDate(1), + Math.floor(Math.round((b - c) / 864e5) / 7) + 1 + ) + }, + parseDate: function (b, c, d) { + if (null == b || null == c) throw 'Invalid arguments' + if (((c = 'object' == typeof c ? c.toString() : c + ''), '' === c)) + return null + var e, + f, + g, + t, + h = 0, + i = (d ? d.shortYearCutoff : null) || this._defaults.shortYearCutoff, + j = + 'string' != typeof i + ? i + : (new Date().getFullYear() % 100) + parseInt(i, 10), + k = (d ? d.dayNamesShort : null) || this._defaults.dayNamesShort, + l = (d ? d.dayNames : null) || this._defaults.dayNames, + m = (d ? d.monthNamesShort : null) || this._defaults.monthNamesShort, + n = (d ? d.monthNames : null) || this._defaults.monthNames, + o = -1, + p = -1, + q = -1, + r = -1, + s = !1, + u = function (a) { + var c = e + 1 < b.length && b.charAt(e + 1) === a + return c && e++, c + }, + v = function (a) { + var b = u(a), + d = + '@' === a + ? 14 + : '!' === a + ? 20 + : 'y' === a && b + ? 4 + : 'o' === a + ? 3 + : 2, + e = new RegExp('^\\d{1,' + d + '}'), + f = c.substring(h).match(e) + if (!f) throw 'Missing number at position ' + h + return (h += f[0].length), parseInt(f[0], 10) + }, + w = function (b, d, e) { + var f = -1, + g = a + .map(u(b) ? e : d, function (a, b) { + return [[b, a]] + }) + .sort(function (a, b) { + return -(a[1].length - b[1].length) + }) + if ( + (a.each(g, function (a, b) { + var d = b[1] + if (c.substr(h, d.length).toLowerCase() === d.toLowerCase()) + return (f = b[0]), (h += d.length), !1 + }), + f !== -1) + ) + return f + 1 + throw 'Unknown name at position ' + h + }, + x = function () { + if (c.charAt(h) !== b.charAt(e)) + throw 'Unexpected literal at position ' + h + h++ + } + for (e = 0; e < b.length; e++) + if (s) "'" !== b.charAt(e) || u("'") ? x() : (s = !1) + else + switch (b.charAt(e)) { + case 'd': + q = v('d') + break + case 'D': + w('D', k, l) + break + case 'o': + r = v('o') + break + case 'm': + p = v('m') + break + case 'M': + p = w('M', m, n) + break + case 'y': + o = v('y') + break + case '@': + ;(t = new Date(v('@'))), + (o = t.getFullYear()), + (p = t.getMonth() + 1), + (q = t.getDate()) + break + case '!': + ;(t = new Date((v('!') - this._ticksTo1970) / 1e4)), + (o = t.getFullYear()), + (p = t.getMonth() + 1), + (q = t.getDate()) + break + case "'": + u("'") ? x() : (s = !0) + break + default: + x() + } + if (h < c.length && ((g = c.substr(h)), !/^\s+/.test(g))) + throw 'Extra/unparsed characters found in date: ' + g + if ( + (o === -1 + ? (o = new Date().getFullYear()) + : o < 100 && + (o += + new Date().getFullYear() - + (new Date().getFullYear() % 100) + + (o <= j ? 0 : -100)), + r > -1) + ) + for (p = 1, q = r; ; ) { + if (((f = this._getDaysInMonth(o, p - 1)), q <= f)) break + p++, (q -= f) + } + if ( + ((t = this._daylightSavingAdjust(new Date(o, p - 1, q))), + t.getFullYear() !== o || t.getMonth() + 1 !== p || t.getDate() !== q) + ) + throw 'Invalid date' + return t + }, + ATOM: 'yy-mm-dd', + COOKIE: 'D, dd M yy', + ISO_8601: 'yy-mm-dd', + RFC_822: 'D, d M y', + RFC_850: 'DD, dd-M-y', + RFC_1036: 'D, d M y', + RFC_1123: 'D, d M yy', + RFC_2822: 'D, d M yy', + RSS: 'D, d M y', + TICKS: '!', + TIMESTAMP: '@', + W3C: 'yy-mm-dd', + _ticksTo1970: + 24 * + (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)) * + 60 * + 60 * + 1e7, + formatDate: function (a, b, c) { + if (!b) return '' + var d, + e = (c ? c.dayNamesShort : null) || this._defaults.dayNamesShort, + f = (c ? c.dayNames : null) || this._defaults.dayNames, + g = (c ? c.monthNamesShort : null) || this._defaults.monthNamesShort, + h = (c ? c.monthNames : null) || this._defaults.monthNames, + i = function (b) { + var c = d + 1 < a.length && a.charAt(d + 1) === b + return c && d++, c + }, + j = function (a, b, c) { + var d = '' + b + if (i(a)) for (; d.length < c; ) d = '0' + d + return d + }, + k = function (a, b, c, d) { + return i(a) ? d[b] : c[b] + }, + l = '', + m = !1 + if (b) + for (d = 0; d < a.length; d++) + if (m) "'" !== a.charAt(d) || i("'") ? (l += a.charAt(d)) : (m = !1) + else + switch (a.charAt(d)) { + case 'd': + l += j('d', b.getDate(), 2) + break + case 'D': + l += k('D', b.getDay(), e, f) + break + case 'o': + l += j( + 'o', + Math.round( + (new Date( + b.getFullYear(), + b.getMonth(), + b.getDate() + ).getTime() - + new Date(b.getFullYear(), 0, 0).getTime()) / + 864e5 + ), + 3 + ) + break + case 'm': + l += j('m', b.getMonth() + 1, 2) + break + case 'M': + l += k('M', b.getMonth(), g, h) + break + case 'y': + l += i('y') + ? b.getFullYear() + : (b.getYear() % 100 < 10 ? '0' : '') + (b.getYear() % 100) + break + case '@': + l += b.getTime() + break + case '!': + l += 1e4 * b.getTime() + this._ticksTo1970 + break + case "'": + i("'") ? (l += "'") : (m = !0) + break + default: + l += a.charAt(d) + } + return l + }, + _possibleChars: function (a) { + var b, + c = '', + d = !1, + e = function (c) { + var d = b + 1 < a.length && a.charAt(b + 1) === c + return d && b++, d + } + for (b = 0; b < a.length; b++) + if (d) "'" !== a.charAt(b) || e("'") ? (c += a.charAt(b)) : (d = !1) + else + switch (a.charAt(b)) { + case 'd': + case 'm': + case 'y': + case '@': + c += '0123456789' + break + case 'D': + case 'M': + return null + case "'": + e("'") ? (c += "'") : (d = !0) + break + default: + c += a.charAt(b) + } + return c + }, + _get: function (a, c) { + return a.settings[c] !== b ? a.settings[c] : this._defaults[c] + }, + _setDateFromField: function (a, b) { + if (a.input.val() !== a.lastVal) { + var c = this._get(a, 'dateFormat'), + d = (a.lastVal = a.input ? a.input.val() : null), + e = this._getDefaultDate(a), + f = e, + g = this._getFormatConfig(a) + try { + f = this.parseDate(c, d, g) || e + } catch (a) { + d = b ? '' : d + } + ;(a.selectedDay = f.getDate()), + (a.drawMonth = a.selectedMonth = f.getMonth()), + (a.drawYear = a.selectedYear = f.getFullYear()), + (a.currentDay = d ? f.getDate() : 0), + (a.currentMonth = d ? f.getMonth() : 0), + (a.currentYear = d ? f.getFullYear() : 0), + this._adjustInstDate(a) + } + }, + _getDefaultDate: function (a) { + return this._restrictMinMax( + a, + this._determineDate(a, this._get(a, 'defaultDate'), new Date()) + ) + }, + _determineDate: function (b, c, d) { + var e = function (a) { + var b = new Date() + return b.setDate(b.getDate() + a), b + }, + f = function (c) { + try { + return a.datepicker.parseDate( + a.datepicker._get(b, 'dateFormat'), + c, + a.datepicker._getFormatConfig(b) + ) + } catch (a) {} + for ( + var d = + (c.toLowerCase().match(/^c/) + ? a.datepicker._getDate(b) + : null) || new Date(), + e = d.getFullYear(), + f = d.getMonth(), + g = d.getDate(), + h = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, + i = h.exec(c); + i; + + ) { + switch (i[2] || 'd') { + case 'd': + case 'D': + g += parseInt(i[1], 10) + break + case 'w': + case 'W': + g += 7 * parseInt(i[1], 10) + break + case 'm': + case 'M': + ;(f += parseInt(i[1], 10)), + (g = Math.min(g, a.datepicker._getDaysInMonth(e, f))) + break + case 'y': + case 'Y': + ;(e += parseInt(i[1], 10)), + (g = Math.min(g, a.datepicker._getDaysInMonth(e, f))) + } + i = h.exec(c) + } + return new Date(e, f, g) + }, + g = + null == c || '' === c + ? d + : 'string' == typeof c + ? f(c) + : 'number' == typeof c + ? isNaN(c) + ? d + : e(c) + : new Date(c.getTime()) + return ( + (g = g && 'Invalid Date' === g.toString() ? d : g), + g && + (g.setHours(0), + g.setMinutes(0), + g.setSeconds(0), + g.setMilliseconds(0)), + this._daylightSavingAdjust(g) + ) + }, + _daylightSavingAdjust: function (a) { + return a + ? (a.setHours(a.getHours() > 12 ? a.getHours() + 2 : 0), a) + : null + }, + _setDate: function (a, b, c) { + var d = !b, + e = a.selectedMonth, + f = a.selectedYear, + g = this._restrictMinMax(a, this._determineDate(a, b, new Date())) + ;(a.selectedDay = a.currentDay = g.getDate()), + (a.drawMonth = a.selectedMonth = a.currentMonth = g.getMonth()), + (a.drawYear = a.selectedYear = a.currentYear = g.getFullYear()), + (e === a.selectedMonth && f === a.selectedYear) || + c || + this._notifyChange(a), + this._adjustInstDate(a), + a.input && a.input.val(d ? '' : this._formatDate(a)) + }, + _getDate: function (a) { + var b = + !a.currentYear || (a.input && '' === a.input.val()) + ? null + : this._daylightSavingAdjust( + new Date(a.currentYear, a.currentMonth, a.currentDay) + ) + return b + }, + _attachHandlers: function (b) { + var c = this._get(b, 'stepMonths'), + d = '#' + b.id.replace(/\\\\/g, '\\') + b.dpDiv.find('[data-handler]').map(function () { + var b = { + prev: function () { + a.datepicker._adjustDate(d, -c, 'M') + }, + next: function () { + a.datepicker._adjustDate(d, +c, 'M') + }, + hide: function () { + a.datepicker._hideDatepicker() + }, + today: function () { + a.datepicker._gotoToday(d) + }, + selectDay: function () { + return ( + a.datepicker._selectDay( + d, + +this.getAttribute('data-month'), + +this.getAttribute('data-year'), + this + ), + !1 + ) + }, + selectMonth: function () { + return a.datepicker._selectMonthYear(d, this, 'M'), !1 + }, + selectYear: function () { + return a.datepicker._selectMonthYear(d, this, 'Y'), !1 + }, + } + a(this).bind( + this.getAttribute('data-event'), + b[this.getAttribute('data-handler')] + ) + }) + }, + _generateHTML: function (a) { + var b, + c, + d, + e, + f, + g, + h, + i, + j, + k, + l, + m, + n, + o, + p, + q, + r, + s, + t, + u, + v, + w, + x, + y, + z, + A, + B, + C, + D, + E, + F, + G, + H, + I, + J, + K, + L, + M, + N, + O = new Date(), + P = this._daylightSavingAdjust( + new Date(O.getFullYear(), O.getMonth(), O.getDate()) + ), + Q = this._get(a, 'isRTL'), + R = this._get(a, 'showButtonPanel'), + S = this._get(a, 'hideIfNoPrevNext'), + T = this._get(a, 'navigationAsDateFormat'), + U = this._getNumberOfMonths(a), + V = this._get(a, 'showCurrentAtPos'), + W = this._get(a, 'stepMonths'), + X = 1 !== U[0] || 1 !== U[1], + Y = this._daylightSavingAdjust( + a.currentDay + ? new Date(a.currentYear, a.currentMonth, a.currentDay) + : new Date(9999, 9, 9) + ), + Z = this._getMinMaxDate(a, 'min'), + $ = this._getMinMaxDate(a, 'max'), + _ = a.drawMonth - V, + aa = a.drawYear + if ((_ < 0 && ((_ += 12), aa--), $)) + for ( + b = this._daylightSavingAdjust( + new Date( + $.getFullYear(), + $.getMonth() - U[0] * U[1] + 1, + $.getDate() + ) + ), + b = Z && b < Z ? Z : b; + this._daylightSavingAdjust(new Date(aa, _, 1)) > b; + + ) + _--, _ < 0 && ((_ = 11), aa--) + for ( + a.drawMonth = _, + a.drawYear = aa, + c = this._get(a, 'prevText'), + c = T + ? this.formatDate( + c, + this._daylightSavingAdjust(new Date(aa, _ - W, 1)), + this._getFormatConfig(a) + ) + : c, + d = this._canAdjustMonth(a, -1, aa, _) + ? "" + + c + + '' + : S + ? '' + : "" + + c + + '', + e = this._get(a, 'nextText'), + e = T + ? this.formatDate( + e, + this._daylightSavingAdjust(new Date(aa, _ + W, 1)), + this._getFormatConfig(a) + ) + : e, + f = this._canAdjustMonth(a, 1, aa, _) + ? "" + + e + + '' + : S + ? '' + : "" + + e + + '', + g = this._get(a, 'currentText'), + h = this._get(a, 'gotoCurrent') && a.currentDay ? Y : P, + g = T ? this.formatDate(g, h, this._getFormatConfig(a)) : g, + i = a.inline + ? '' + : "', + j = R + ? "
        " + + (Q ? i : '') + + (this._isInRange(a, h) + ? "' + : '') + + (Q ? '' : i) + + '
        ' + : '', + k = parseInt(this._get(a, 'firstDay'), 10), + k = isNaN(k) ? 0 : k, + l = this._get(a, 'showWeek'), + m = this._get(a, 'dayNames'), + n = this._get(a, 'dayNamesMin'), + o = this._get(a, 'monthNames'), + p = this._get(a, 'monthNamesShort'), + q = this._get(a, 'beforeShowDay'), + r = this._get(a, 'showOtherMonths'), + s = this._get(a, 'selectOtherMonths'), + t = this._getDefaultDate(a), + u = '', + w = 0; + w < U[0]; + w++ + ) { + for (x = '', this.maxRows = 4, y = 0; y < U[1]; y++) { + if ( + ((z = this._daylightSavingAdjust(new Date(aa, _, a.selectedDay))), + (A = ' ui-corner-all'), + (B = ''), + X) + ) { + if (((B += "
        " + + (/all|left/.test(A) && 0 === w ? (Q ? f : d) : '') + + (/all|right/.test(A) && 0 === w ? (Q ? d : f) : '') + + this._generateMonthYearHeader( + a, + _, + aa, + Z, + $, + w > 0 || y > 0, + o, + p + ) + + "
        ", + C = l + ? "' + : '', + v = 0; + v < 7; + v++ + ) + (D = (v + k) % 7), + (C += + '= 5 + ? " class='ui-datepicker-week-end'" + : '') + + ">" + + n[D] + + '') + for ( + B += C + '', + E = this._getDaysInMonth(aa, _), + aa === a.selectedYear && + _ === a.selectedMonth && + (a.selectedDay = Math.min(a.selectedDay, E)), + F = (this._getFirstDayOfMonth(aa, _) - k + 7) % 7, + G = Math.ceil((F + E) / 7), + H = X && this.maxRows > G ? this.maxRows : G, + this.maxRows = H, + I = this._daylightSavingAdjust(new Date(aa, _, 1 - F)), + J = 0; + J < H; + J++ + ) { + for ( + B += '', + K = l + ? "' + : '', + v = 0; + v < 7; + v++ + ) + (L = q ? q.apply(a.input ? a.input[0] : null, [I]) : [!0, '']), + (M = I.getMonth() !== _), + (N = (M && !s) || !L[0] || (Z && I < Z) || ($ && I > $)), + (K += + "'), + I.setDate(I.getDate() + 1), + (I = this._daylightSavingAdjust(I)) + B += K + '' + } + _++, + _ > 11 && ((_ = 0), aa++), + (B += + '
        " + + this._get(a, 'weekHeader') + + '
        " + + this._get(a, 'calculateWeek')(I) + + '' + + (M && !r + ? ' ' + : N + ? "" + + I.getDate() + + '' + : "" + + I.getDate() + + '') + + '
        ' + + (X + ? '
        ' + + (U[0] > 0 && y === U[1] - 1 + ? "
        " + : '') + : '')), + (x += B) + } + u += x + } + return (u += j), (a._keyEvent = !1), u + }, + _generateMonthYearHeader: function (a, b, c, d, e, f, g, h) { + var i, + j, + k, + l, + m, + n, + o, + p, + q = this._get(a, 'changeMonth'), + r = this._get(a, 'changeYear'), + s = this._get(a, 'showMonthAfterYear'), + t = "
        ", + u = '' + if (f || !q) + u += "" + g[b] + '' + else { + for ( + i = d && d.getFullYear() === c, + j = e && e.getFullYear() === c, + u += + "' + } + if ((s || (t += u + (!f && q && r ? '' : ' ')), !a.yearshtml)) + if (((a.yearshtml = ''), f || !r)) + t += "" + c + '' + else { + for ( + l = this._get(a, 'yearRange').split(':'), + m = new Date().getFullYear(), + n = function (a) { + var b = a.match(/c[+\-].*/) + ? c + parseInt(a.substring(1), 10) + : a.match(/[+\-].*/) + ? m + parseInt(a, 10) + : parseInt(a, 10) + return isNaN(b) ? m : b + }, + o = n(l[0]), + p = Math.max(o, n(l[1] || '')), + o = d ? Math.max(o, d.getFullYear()) : o, + p = e ? Math.min(p, e.getFullYear()) : p, + a.yearshtml += + "'), + (t += a.yearshtml), + (a.yearshtml = null) + } + return ( + (t += this._get(a, 'yearSuffix')), + s && (t += (!f && q && r ? '' : ' ') + u), + (t += '
        ') + ) + }, + _adjustInstDate: function (a, b, c) { + var d = a.drawYear + ('Y' === c ? b : 0), + e = a.drawMonth + ('M' === c ? b : 0), + f = + Math.min(a.selectedDay, this._getDaysInMonth(d, e)) + + ('D' === c ? b : 0), + g = this._restrictMinMax( + a, + this._daylightSavingAdjust(new Date(d, e, f)) + ) + ;(a.selectedDay = g.getDate()), + (a.drawMonth = a.selectedMonth = g.getMonth()), + (a.drawYear = a.selectedYear = g.getFullYear()), + ('M' !== c && 'Y' !== c) || this._notifyChange(a) + }, + _restrictMinMax: function (a, b) { + var c = this._getMinMaxDate(a, 'min'), + d = this._getMinMaxDate(a, 'max'), + e = c && b < c ? c : b + return d && e > d ? d : e + }, + _notifyChange: function (a) { + var b = this._get(a, 'onChangeMonthYear') + b && + b.apply(a.input ? a.input[0] : null, [ + a.selectedYear, + a.selectedMonth + 1, + a, + ]) + }, + _getNumberOfMonths: function (a) { + var b = this._get(a, 'numberOfMonths') + return null == b ? [1, 1] : 'number' == typeof b ? [1, b] : b + }, + _getMinMaxDate: function (a, b) { + return this._determineDate(a, this._get(a, b + 'Date'), null) + }, + _getDaysInMonth: function (a, b) { + return 32 - this._daylightSavingAdjust(new Date(a, b, 32)).getDate() + }, + _getFirstDayOfMonth: function (a, b) { + return new Date(a, b, 1).getDay() + }, + _canAdjustMonth: function (a, b, c, d) { + var e = this._getNumberOfMonths(a), + f = this._daylightSavingAdjust( + new Date(c, d + (b < 0 ? b : e[0] * e[1]), 1) + ) + return ( + b < 0 && + f.setDate(this._getDaysInMonth(f.getFullYear(), f.getMonth())), + this._isInRange(a, f) + ) + }, + _isInRange: function (a, b) { + var c, + d, + e = this._getMinMaxDate(a, 'min'), + f = this._getMinMaxDate(a, 'max'), + g = null, + h = null, + i = this._get(a, 'yearRange') + return ( + i && + ((c = i.split(':')), + (d = new Date().getFullYear()), + (g = parseInt(c[0], 10)), + (h = parseInt(c[1], 10)), + c[0].match(/[+\-].*/) && (g += d), + c[1].match(/[+\-].*/) && (h += d)), + (!e || b.getTime() >= e.getTime()) && + (!f || b.getTime() <= f.getTime()) && + (!g || b.getFullYear() >= g) && + (!h || b.getFullYear() <= h) + ) + }, + _getFormatConfig: function (a) { + var b = this._get(a, 'shortYearCutoff') + return ( + (b = + 'string' != typeof b + ? b + : (new Date().getFullYear() % 100) + parseInt(b, 10)), + { + shortYearCutoff: b, + dayNamesShort: this._get(a, 'dayNamesShort'), + dayNames: this._get(a, 'dayNames'), + monthNamesShort: this._get(a, 'monthNamesShort'), + monthNames: this._get(a, 'monthNames'), + } + ) + }, + _formatDate: function (a, b, c, d) { + b || + ((a.currentDay = a.selectedDay), + (a.currentMonth = a.selectedMonth), + (a.currentYear = a.selectedYear)) + var e = b + ? 'object' == typeof b + ? b + : this._daylightSavingAdjust(new Date(d, c, b)) + : this._daylightSavingAdjust( + new Date(a.currentYear, a.currentMonth, a.currentDay) + ) + return this.formatDate( + this._get(a, 'dateFormat'), + e, + this._getFormatConfig(a) + ) + }, + }), + (a.fn.datepicker = function (b) { + if (!this.length) return this + a.datepicker.initialized || + (a(document).mousedown(a.datepicker._checkExternalClick), + (a.datepicker.initialized = !0)), + 0 === a('#' + a.datepicker._mainDivId).length && + a('body').append(a.datepicker.dpDiv) + var c = Array.prototype.slice.call(arguments, 1) + return 'string' != typeof b || + ('isDisabled' !== b && 'getDate' !== b && 'widget' !== b) + ? 'option' === b && + 2 === arguments.length && + 'string' == typeof arguments[1] + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + : this.each(function () { + 'string' == typeof b + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this].concat(c) + ) + : a.datepicker._attachDatepicker(this, b) + }) + : a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + }), + (a.datepicker = new e()), + (a.datepicker.initialized = !1), + (a.datepicker.uuid = new Date().getTime()), + (a.datepicker.version = '1.10.3') + })(jQuery), + (function (a, b) { + var c = { + buttons: !0, + height: !0, + maxHeight: !0, + maxWidth: !0, + minHeight: !0, + minWidth: !0, + width: !0, + }, + d = { maxHeight: !0, maxWidth: !0, minHeight: !0, minWidth: !0 } + a.widget('ui.dialog', { + version: '1.10.3', + options: { + appendTo: 'body', + autoOpen: !0, + buttons: [], + closeOnEscape: !0, + closeText: 'close', + dialogClass: '', + draggable: !0, + hide: null, + height: 'auto', + maxHeight: null, + maxWidth: null, + minHeight: 150, + minWidth: 150, + modal: !1, + position: { + my: 'center', + at: 'center', + of: window, + collision: 'fit', + using: function (b) { + var c = a(this).css(b).offset().top + c < 0 && a(this).css('top', b.top - c) + }, + }, + resizable: !0, + show: null, + title: null, + width: 300, + beforeClose: null, + close: null, + drag: null, + dragStart: null, + dragStop: null, + focus: null, + open: null, + resize: null, + resizeStart: null, + resizeStop: null, + }, + _create: function () { + ;(this.originalCss = { + display: this.element[0].style.display, + width: this.element[0].style.width, + minHeight: this.element[0].style.minHeight, + maxHeight: this.element[0].style.maxHeight, + height: this.element[0].style.height, + }), + (this.originalPosition = { + parent: this.element.parent(), + index: this.element.parent().children().index(this.element), + }), + (this.originalTitle = this.element.attr('title')), + (this.options.title = this.options.title || this.originalTitle), + this._createWrapper(), + this.element + .show() + .removeAttr('title') + .addClass('ui-dialog-content ui-widget-content') + .appendTo(this.uiDialog), + this._createTitlebar(), + this._createButtonPane(), + this.options.draggable && a.fn.draggable && this._makeDraggable(), + this.options.resizable && a.fn.resizable && this._makeResizable(), + (this._isOpen = !1) + }, + _init: function () { + this.options.autoOpen && this.open() + }, + _appendTo: function () { + var b = this.options.appendTo + return b && (b.jquery || b.nodeType) + ? a(b) + : this.document.find(b || 'body').eq(0) + }, + _destroy: function () { + var a, + b = this.originalPosition + this._destroyOverlay(), + this.element + .removeUniqueId() + .removeClass('ui-dialog-content ui-widget-content') + .css(this.originalCss) + .detach(), + this.uiDialog.stop(!0, !0).remove(), + this.originalTitle && this.element.attr('title', this.originalTitle), + (a = b.parent.children().eq(b.index)), + a.length && a[0] !== this.element[0] + ? a.before(this.element) + : b.parent.append(this.element) + }, + widget: function () { + return this.uiDialog + }, + disable: a.noop, + enable: a.noop, + close: function (b) { + var c = this + this._isOpen && + this._trigger('beforeClose', b) !== !1 && + ((this._isOpen = !1), + this._destroyOverlay(), + this.opener.filter(':focusable').focus().length || + a(this.document[0].activeElement).blur(), + this._hide(this.uiDialog, this.options.hide, function () { + c._trigger('close', b) + })) + }, + isOpen: function () { + return this._isOpen + }, + moveToTop: function () { + this._moveToTop() + }, + _moveToTop: function (a, b) { + var c = !!this.uiDialog.nextAll(':visible').insertBefore(this.uiDialog) + .length + return c && !b && this._trigger('focus', a), c + }, + open: function () { + var b = this + return this._isOpen + ? void (this._moveToTop() && this._focusTabbable()) + : ((this._isOpen = !0), + (this.opener = a(this.document[0].activeElement)), + this._size(), + this._position(), + this._createOverlay(), + this._moveToTop(null, !0), + this._show(this.uiDialog, this.options.show, function () { + b._focusTabbable(), b._trigger('focus') + }), + void this._trigger('open')) + }, + _focusTabbable: function () { + var a = this.element.find('[autofocus]') + a.length || (a = this.element.find(':tabbable')), + a.length || (a = this.uiDialogButtonPane.find(':tabbable')), + a.length || (a = this.uiDialogTitlebarClose.filter(':tabbable')), + a.length || (a = this.uiDialog), + a.eq(0).focus() + }, + _keepFocus: function (b) { + function c() { + var b = this.document[0].activeElement, + c = this.uiDialog[0] === b || a.contains(this.uiDialog[0], b) + c || this._focusTabbable() + } + b.preventDefault(), c.call(this), this._delay(c) + }, + _createWrapper: function () { + ;(this.uiDialog = a('
        ') + .addClass( + 'ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ' + + this.options.dialogClass + ) + .hide() + .attr({ tabIndex: -1, role: 'dialog' }) + .appendTo(this._appendTo())), + this._on(this.uiDialog, { + keydown: function (b) { + if ( + this.options.closeOnEscape && + !b.isDefaultPrevented() && + b.keyCode && + b.keyCode === a.ui.keyCode.ESCAPE + ) + return b.preventDefault(), void this.close(b) + if (b.keyCode === a.ui.keyCode.TAB) { + var c = this.uiDialog.find(':tabbable'), + d = c.filter(':first'), + e = c.filter(':last') + ;(b.target !== e[0] && b.target !== this.uiDialog[0]) || + b.shiftKey + ? (b.target !== d[0] && b.target !== this.uiDialog[0]) || + !b.shiftKey || + (e.focus(1), b.preventDefault()) + : (d.focus(1), b.preventDefault()) + } + }, + mousedown: function (a) { + this._moveToTop(a) && this._focusTabbable() + }, + }), + this.element.find('[aria-describedby]').length || + this.uiDialog.attr({ + 'aria-describedby': this.element.uniqueId().attr('id'), + }) + }, + _createTitlebar: function () { + var b + ;(this.uiDialogTitlebar = a('
        ') + .addClass( + 'ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix' + ) + .prependTo(this.uiDialog)), + this._on(this.uiDialogTitlebar, { + mousedown: function (b) { + a(b.target).closest('.ui-dialog-titlebar-close') || + this.uiDialog.focus() + }, + }), + (this.uiDialogTitlebarClose = a('') + .button({ + label: this.options.closeText, + icons: { primary: 'ui-icon-closethick' }, + text: !1, + }) + .addClass('ui-dialog-titlebar-close') + .appendTo(this.uiDialogTitlebar)), + this._on(this.uiDialogTitlebarClose, { + click: function (a) { + a.preventDefault(), this.close(a) + }, + }), + (b = a('') + .uniqueId() + .addClass('ui-dialog-title') + .prependTo(this.uiDialogTitlebar)), + this._title(b), + this.uiDialog.attr({ 'aria-labelledby': b.attr('id') }) + }, + _title: function (a) { + this.options.title || a.html(' '), a.text(this.options.title) + }, + _createButtonPane: function () { + ;(this.uiDialogButtonPane = a('
        ').addClass( + 'ui-dialog-buttonpane ui-widget-content ui-helper-clearfix' + )), + (this.uiButtonSet = a('
        ') + .addClass('ui-dialog-buttonset') + .appendTo(this.uiDialogButtonPane)), + this._createButtons() + }, + _createButtons: function () { + var b = this, + c = this.options.buttons + return ( + this.uiDialogButtonPane.remove(), + this.uiButtonSet.empty(), + a.isEmptyObject(c) || (a.isArray(c) && !c.length) + ? void this.uiDialog.removeClass('ui-dialog-buttons') + : (a.each(c, function (c, d) { + var e, f + ;(d = a.isFunction(d) ? { click: d, text: c } : d), + (d = a.extend({ type: 'button' }, d)), + (e = d.click), + (d.click = function () { + e.apply(b.element[0], arguments) + }), + (f = { icons: d.icons, text: d.showText }), + delete d.icons, + delete d.showText, + a('', d).button(f).appendTo(b.uiButtonSet) + }), + this.uiDialog.addClass('ui-dialog-buttons'), + void this.uiDialogButtonPane.appendTo(this.uiDialog)) + ) + }, + _makeDraggable: function () { + function d(a) { + return { position: a.position, offset: a.offset } + } + var b = this, + c = this.options + this.uiDialog.draggable({ + cancel: '.ui-dialog-content, .ui-dialog-titlebar-close', + handle: '.ui-dialog-titlebar', + containment: 'document', + start: function (c, e) { + a(this).addClass('ui-dialog-dragging'), + b._blockFrames(), + b._trigger('dragStart', c, d(e)) + }, + drag: function (a, c) { + b._trigger('drag', a, d(c)) + }, + stop: function (e, f) { + ;(c.position = [ + f.position.left - b.document.scrollLeft(), + f.position.top - b.document.scrollTop(), + ]), + a(this).removeClass('ui-dialog-dragging'), + b._unblockFrames(), + b._trigger('dragStop', e, d(f)) + }, + }) + }, + _makeResizable: function () { + function g(a) { + return { + originalPosition: a.originalPosition, + originalSize: a.originalSize, + position: a.position, + size: a.size, + } + } + var b = this, + c = this.options, + d = c.resizable, + e = this.uiDialog.css('position'), + f = 'string' == typeof d ? d : 'n,e,s,w,se,sw,ne,nw' + this.uiDialog + .resizable({ + cancel: '.ui-dialog-content', + containment: 'document', + alsoResize: this.element, + maxWidth: c.maxWidth, + maxHeight: c.maxHeight, + minWidth: c.minWidth, + minHeight: this._minHeight(), + handles: f, + start: function (c, d) { + a(this).addClass('ui-dialog-resizing'), + b._blockFrames(), + b._trigger('resizeStart', c, g(d)) + }, + resize: function (a, c) { + b._trigger('resize', a, g(c)) + }, + stop: function (d, e) { + ;(c.height = a(this).height()), + (c.width = a(this).width()), + a(this).removeClass('ui-dialog-resizing'), + b._unblockFrames(), + b._trigger('resizeStop', d, g(e)) + }, + }) + .css('position', e) + }, + _minHeight: function () { + var a = this.options + return 'auto' === a.height + ? a.minHeight + : Math.min(a.minHeight, a.height) + }, + _position: function () { + var a = this.uiDialog.is(':visible') + a || this.uiDialog.show(), + this.uiDialog.position(this.options.position), + a || this.uiDialog.hide() + }, + _setOptions: function (b) { + var e = this, + f = !1, + g = {} + a.each(b, function (a, b) { + e._setOption(a, b), a in c && (f = !0), a in d && (g[a] = b) + }), + f && (this._size(), this._position()), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', g) + }, + _setOption: function (a, b) { + var c, + d, + e = this.uiDialog + 'dialogClass' === a && + e.removeClass(this.options.dialogClass).addClass(b), + 'disabled' !== a && + (this._super(a, b), + 'appendTo' === a && this.uiDialog.appendTo(this._appendTo()), + 'buttons' === a && this._createButtons(), + 'closeText' === a && + this.uiDialogTitlebarClose.button({ label: '' + b }), + 'draggable' === a && + ((c = e.is(':data(ui-draggable)')), + c && !b && e.draggable('destroy'), + !c && b && this._makeDraggable()), + 'position' === a && this._position(), + 'resizable' === a && + ((d = e.is(':data(ui-resizable)')), + d && !b && e.resizable('destroy'), + d && 'string' == typeof b && e.resizable('option', 'handles', b), + d || b === !1 || this._makeResizable()), + 'title' === a && + this._title(this.uiDialogTitlebar.find('.ui-dialog-title'))) + }, + _size: function () { + var a, + b, + c, + d = this.options + this.element + .show() + .css({ width: 'auto', minHeight: 0, maxHeight: 'none', height: 0 }), + d.minWidth > d.width && (d.width = d.minWidth), + (a = this.uiDialog + .css({ height: 'auto', width: d.width }) + .outerHeight()), + (b = Math.max(0, d.minHeight - a)), + (c = + 'number' == typeof d.maxHeight + ? Math.max(0, d.maxHeight - a) + : 'none'), + 'auto' === d.height + ? this.element.css({ minHeight: b, maxHeight: c, height: 'auto' }) + : this.element.height(Math.max(0, d.height - a)), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', 'minHeight', this._minHeight()) + }, + _blockFrames: function () { + this.iframeBlocks = this.document.find('iframe').map(function () { + var b = a(this) + return a('
        ') + .css({ + position: 'absolute', + width: b.outerWidth(), + height: b.outerHeight(), + }) + .appendTo(b.parent()) + .offset(b.offset())[0] + }) + }, + _unblockFrames: function () { + this.iframeBlocks && + (this.iframeBlocks.remove(), delete this.iframeBlocks) + }, + _allowInteraction: function (b) { + return ( + !!a(b.target).closest('.ui-dialog').length || + !!a(b.target).closest('.ui-datepicker').length + ) + }, + _createOverlay: function () { + if (this.options.modal) { + var b = this, + c = this.widgetFullName + a.ui.dialog.overlayInstances || + this._delay(function () { + a.ui.dialog.overlayInstances && + this.document.bind('focusin.dialog', function (d) { + b._allowInteraction(d) || + (d.preventDefault(), + a('.ui-dialog:visible:last .ui-dialog-content') + .data(c) + ._focusTabbable()) + }) + }), + (this.overlay = a('
        ') + .addClass('ui-widget-overlay ui-front') + .appendTo(this._appendTo())), + this._on(this.overlay, { mousedown: '_keepFocus' }), + a.ui.dialog.overlayInstances++ + } + }, + _destroyOverlay: function () { + this.options.modal && + this.overlay && + (a.ui.dialog.overlayInstances--, + a.ui.dialog.overlayInstances || + this.document.unbind('focusin.dialog'), + this.overlay.remove(), + (this.overlay = null)) + }, + }), + (a.ui.dialog.overlayInstances = 0), + a.uiBackCompat !== !1 && + a.widget('ui.dialog', a.ui.dialog, { + _position: function () { + var e, + b = this.options.position, + c = [], + d = [0, 0] + b + ? (('string' == typeof b || ('object' == typeof b && '0' in b)) && + ((c = b.split ? b.split(' ') : [b[0], b[1]]), + 1 === c.length && (c[1] = c[0]), + a.each(['left', 'top'], function (a, b) { + ;+c[a] === c[a] && ((d[a] = c[a]), (c[a] = b)) + }), + (b = { + my: + c[0] + + (d[0] < 0 ? d[0] : '+' + d[0]) + + ' ' + + c[1] + + (d[1] < 0 ? d[1] : '+' + d[1]), + at: c.join(' '), + })), + (b = a.extend({}, a.ui.dialog.prototype.options.position, b))) + : (b = a.ui.dialog.prototype.options.position), + (e = this.uiDialog.is(':visible')), + e || this.uiDialog.show(), + this.uiDialog.position(b), + e || this.uiDialog.hide() + }, + }) + })(jQuery), + (function (a, b) { + var c = /up|down|vertical/, + d = /up|left|vertical|horizontal/ + a.effects.effect.blind = function (b, e) { + var p, + q, + r, + f = a(this), + g = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + h = a.effects.setMode(f, b.mode || 'hide'), + i = b.direction || 'up', + j = c.test(i), + k = j ? 'height' : 'width', + l = j ? 'top' : 'left', + m = d.test(i), + n = {}, + o = 'show' === h + f.parent().is('.ui-effects-wrapper') + ? a.effects.save(f.parent(), g) + : a.effects.save(f, g), + f.show(), + (p = a.effects.createWrapper(f).css({ overflow: 'hidden' })), + (q = p[k]()), + (r = parseFloat(p.css(l)) || 0), + (n[k] = o ? q : 0), + m || + (f + .css(j ? 'bottom' : 'right', 0) + .css(j ? 'top' : 'left', 'auto') + .css({ position: 'absolute' }), + (n[l] = o ? r : q + r)), + o && (p.css(k, 0), m || p.css(l, r + q)), + p.animate(n, { + duration: b.duration, + easing: b.easing, + queue: !1, + complete: function () { + 'hide' === h && f.hide(), + a.effects.restore(f, g), + a.effects.removeWrapper(f), + e() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.bounce = function (b, c) { + var q, + r, + s, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = 'hide' === f, + h = 'show' === f, + i = b.direction || 'up', + j = b.distance, + k = b.times || 5, + l = 2 * k + (h || g ? 1 : 0), + m = b.duration / l, + n = b.easing, + o = 'up' === i || 'down' === i ? 'top' : 'left', + p = 'up' === i || 'left' === i, + t = d.queue(), + u = t.length + for ( + (h || g) && e.push('opacity'), + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + j || (j = d['top' === o ? 'outerHeight' : 'outerWidth']() / 3), + h && + ((s = { opacity: 1 }), + (s[o] = 0), + d + .css('opacity', 0) + .css(o, p ? 2 * -j : 2 * j) + .animate(s, m, n)), + g && (j /= Math.pow(2, k - 1)), + s = {}, + s[o] = 0, + q = 0; + q < k; + q++ + ) + (r = {}), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n).animate(s, m, n), + (j = g ? 2 * j : j / 2) + g && + ((r = { opacity: 0 }), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n)), + d.queue(function () { + g && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + u > 1 && t.splice.apply(t, [1, 0].concat(t.splice(u, l + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.clip = function (b, c) { + var m, + n, + o, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'vertical', + i = 'vertical' === h, + j = i ? 'height' : 'width', + k = i ? 'top' : 'left', + l = {} + a.effects.save(d, e), + d.show(), + (m = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (n = 'IMG' === d[0].tagName ? m : d), + (o = n[j]()), + g && (n.css(j, 0), n.css(k, o / 2)), + (l[j] = g ? o : 0), + (l[k] = g ? 0 : o / 2), + n.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + g || d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.drop = function (b, c) { + var l, + d = a(this), + e = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'opacity', + 'height', + 'width', + ], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h ? 'pos' : 'neg', + k = { opacity: g ? 1 : 0 } + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + (l = + b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0) / 2), + g && d.css('opacity', 0).css(i, 'pos' === j ? -l : l), + (k[i] = + (g ? ('pos' === j ? '+=' : '-=') : 'pos' === j ? '-=' : '+=') + l), + d.animate(k, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.explode = function (b, c) { + function s() { + l.push(this), l.length === d * e && t() + } + function t() { + f.css({ visibility: 'visible' }), a(l).remove(), h || f.hide(), c() + } + var m, + n, + o, + p, + q, + r, + d = b.pieces ? Math.round(Math.sqrt(b.pieces)) : 3, + e = d, + f = a(this), + g = a.effects.setMode(f, b.mode || 'hide'), + h = 'show' === g, + i = f.show().css('visibility', 'hidden').offset(), + j = Math.ceil(f.outerWidth() / e), + k = Math.ceil(f.outerHeight() / d), + l = [] + for (m = 0; m < d; m++) + for (p = i.top + m * k, r = m - (d - 1) / 2, n = 0; n < e; n++) + (o = i.left + n * j), + (q = n - (e - 1) / 2), + f + .clone() + .appendTo('body') + .wrap('
        ') + .css({ + position: 'absolute', + visibility: 'visible', + left: -n * j, + top: -m * k, + }) + .parent() + .addClass('ui-effects-explode') + .css({ + position: 'absolute', + overflow: 'hidden', + width: j, + height: k, + left: o + (h ? q * j : 0), + top: p + (h ? r * k : 0), + opacity: h ? 0 : 1, + }) + .animate( + { + left: o + (h ? 0 : q * j), + top: p + (h ? 0 : r * k), + opacity: h ? 1 : 0, + }, + b.duration || 500, + b.easing, + s + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fade = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'toggle') + d.animate( + { opacity: e }, + { queue: !1, duration: b.duration, easing: b.easing, complete: c } + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fold = function (b, c) { + var o, + p, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = 'hide' === f, + i = b.size || 15, + j = /([0-9]+)%/.exec(i), + k = !!b.horizFirst, + l = g !== k, + m = l ? ['width', 'height'] : ['height', 'width'], + n = b.duration / 2, + q = {}, + r = {} + a.effects.save(d, e), + d.show(), + (o = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (p = l ? [o.width(), o.height()] : [o.height(), o.width()]), + j && (i = (parseInt(j[1], 10) / 100) * p[h ? 0 : 1]), + g && o.css(k ? { height: 0, width: i } : { height: i, width: 0 }), + (q[m[0]] = g ? p[0] : i), + (r[m[1]] = g ? p[1] : 0), + o.animate(q, n, b.easing).animate(r, n, b.easing, function () { + h && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.highlight = function (b, c) { + var d = a(this), + e = ['backgroundImage', 'backgroundColor', 'opacity'], + f = a.effects.setMode(d, b.mode || 'show'), + g = { backgroundColor: d.css('backgroundColor') } + 'hide' === f && (g.opacity = 0), + a.effects.save(d, e), + d + .show() + .css({ + backgroundImage: 'none', + backgroundColor: b.color || '#ffff99', + }) + .animate(g, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), a.effects.restore(d, e), c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.pulsate = function (b, c) { + var n, + d = a(this), + e = a.effects.setMode(d, b.mode || 'show'), + f = 'show' === e, + g = 'hide' === e, + h = f || 'hide' === e, + i = 2 * (b.times || 5) + (h ? 1 : 0), + j = b.duration / i, + k = 0, + l = d.queue(), + m = l.length + for ( + (!f && d.is(':visible')) || (d.css('opacity', 0).show(), (k = 1)), + n = 1; + n < i; + n++ + ) + d.animate({ opacity: k }, j, b.easing), (k = 1 - k) + d.animate({ opacity: k }, j, b.easing), + d.queue(function () { + g && d.hide(), c() + }), + m > 1 && l.splice.apply(l, [1, 0].concat(l.splice(m, i + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + ;(a.effects.effect.puff = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'hide'), + f = 'hide' === e, + g = parseInt(b.percent, 10) || 150, + h = g / 100, + i = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + } + a.extend(b, { + effect: 'scale', + queue: !1, + fade: !0, + mode: e, + complete: c, + percent: f ? g : 100, + from: f + ? i + : { + height: i.height * h, + width: i.width * h, + outerHeight: i.outerHeight * h, + outerWidth: i.outerWidth * h, + }, + }), + d.effect(b) + }), + (a.effects.effect.scale = function (b, c) { + var d = a(this), + e = a.extend(!0, {}, b), + f = a.effects.setMode(d, b.mode || 'effect'), + g = + parseInt(b.percent, 10) || + (0 === parseInt(b.percent, 10) ? 0 : 'hide' === f ? 0 : 100), + h = b.direction || 'both', + i = b.origin, + j = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + }, + k = { + y: 'horizontal' !== h ? g / 100 : 1, + x: 'vertical' !== h ? g / 100 : 1, + } + ;(e.effect = 'size'), + (e.queue = !1), + (e.complete = c), + 'effect' !== f && + ((e.origin = i || ['middle', 'center']), (e.restore = !0)), + (e.from = + b.from || + ('show' === f + ? { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + : j)), + (e.to = { + height: j.height * k.y, + width: j.width * k.x, + outerHeight: j.outerHeight * k.y, + outerWidth: j.outerWidth * k.x, + }), + e.fade && + ('show' === f && ((e.from.opacity = 0), (e.to.opacity = 1)), + 'hide' === f && ((e.from.opacity = 1), (e.to.opacity = 0))), + d.effect(e) + }), + (a.effects.effect.size = function (b, c) { + var d, + e, + f, + g = a(this), + h = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'width', + 'height', + 'overflow', + 'opacity', + ], + i = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'overflow', + 'opacity', + ], + j = ['width', 'height', 'overflow'], + k = ['fontSize'], + l = [ + 'borderTopWidth', + 'borderBottomWidth', + 'paddingTop', + 'paddingBottom', + ], + m = [ + 'borderLeftWidth', + 'borderRightWidth', + 'paddingLeft', + 'paddingRight', + ], + n = a.effects.setMode(g, b.mode || 'effect'), + o = b.restore || 'effect' !== n, + p = b.scale || 'both', + q = b.origin || ['middle', 'center'], + r = g.css('position'), + s = o ? h : i, + t = { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + 'show' === n && g.show(), + (d = { + height: g.height(), + width: g.width(), + outerHeight: g.outerHeight(), + outerWidth: g.outerWidth(), + }), + 'toggle' === b.mode && 'show' === n + ? ((g.from = b.to || t), (g.to = b.from || d)) + : ((g.from = b.from || ('show' === n ? t : d)), + (g.to = b.to || ('hide' === n ? t : d))), + (f = { + from: { y: g.from.height / d.height, x: g.from.width / d.width }, + to: { y: g.to.height / d.height, x: g.to.width / d.width }, + }), + ('box' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(l)), + (g.from = a.effects.setTransition(g, l, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, l, f.to.y, g.to))), + f.from.x !== f.to.x && + ((s = s.concat(m)), + (g.from = a.effects.setTransition(g, m, f.from.x, g.from)), + (g.to = a.effects.setTransition(g, m, f.to.x, g.to)))), + ('content' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(k).concat(j)), + (g.from = a.effects.setTransition(g, k, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, k, f.to.y, g.to)))), + a.effects.save(g, s), + g.show(), + a.effects.createWrapper(g), + g.css('overflow', 'hidden').css(g.from), + q && + ((e = a.effects.getBaseline(q, d)), + (g.from.top = (d.outerHeight - g.outerHeight()) * e.y), + (g.from.left = (d.outerWidth - g.outerWidth()) * e.x), + (g.to.top = (d.outerHeight - g.to.outerHeight) * e.y), + (g.to.left = (d.outerWidth - g.to.outerWidth) * e.x)), + g.css(g.from), + ('content' !== p && 'both' !== p) || + ((l = l.concat(['marginTop', 'marginBottom']).concat(k)), + (m = m.concat(['marginLeft', 'marginRight'])), + (j = h.concat(l).concat(m)), + g.find('*[width]').each(function () { + var c = a(this), + d = { + height: c.height(), + width: c.width(), + outerHeight: c.outerHeight(), + outerWidth: c.outerWidth(), + } + o && a.effects.save(c, j), + (c.from = { + height: d.height * f.from.y, + width: d.width * f.from.x, + outerHeight: d.outerHeight * f.from.y, + outerWidth: d.outerWidth * f.from.x, + }), + (c.to = { + height: d.height * f.to.y, + width: d.width * f.to.x, + outerHeight: d.height * f.to.y, + outerWidth: d.width * f.to.x, + }), + f.from.y !== f.to.y && + ((c.from = a.effects.setTransition(c, l, f.from.y, c.from)), + (c.to = a.effects.setTransition(c, l, f.to.y, c.to))), + f.from.x !== f.to.x && + ((c.from = a.effects.setTransition(c, m, f.from.x, c.from)), + (c.to = a.effects.setTransition(c, m, f.to.x, c.to))), + c.css(c.from), + c.animate(c.to, b.duration, b.easing, function () { + o && a.effects.restore(c, j) + }) + })), + g.animate(g.to, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 0 === g.to.opacity && g.css('opacity', g.from.opacity), + 'hide' === n && g.hide(), + a.effects.restore(g, s), + o || + ('static' === r + ? g.css({ + position: 'relative', + top: g.to.top, + left: g.to.left, + }) + : a.each(['top', 'left'], function (a, b) { + g.css(b, function (b, c) { + var d = parseInt(c, 10), + e = a ? g.to.left : g.to.top + return 'auto' === c ? e + 'px' : d + e + 'px' + }) + })), + a.effects.removeWrapper(g), + c() + }, + }) + }) + })(jQuery), + (function (a, b) { + a.effects.effect.shake = function (b, c) { + var q, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = b.direction || 'left', + h = b.distance || 20, + i = b.times || 3, + j = 2 * i + 1, + k = Math.round(b.duration / j), + l = 'up' === g || 'down' === g ? 'top' : 'left', + m = 'up' === g || 'left' === g, + n = {}, + o = {}, + p = {}, + r = d.queue(), + s = r.length + for ( + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + n[l] = (m ? '-=' : '+=') + h, + o[l] = (m ? '+=' : '-=') + 2 * h, + p[l] = (m ? '-=' : '+=') + 2 * h, + d.animate(n, k, b.easing), + q = 1; + q < i; + q++ + ) + d.animate(o, k, b.easing).animate(p, k, b.easing) + d + .animate(o, k, b.easing) + .animate(n, k / 2, b.easing) + .queue(function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + s > 1 && r.splice.apply(r, [1, 0].concat(r.splice(s, j + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.slide = function (b, c) { + var k, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'width', 'height'], + f = a.effects.setMode(d, b.mode || 'show'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h, + l = {} + a.effects.save(d, e), + d.show(), + (k = b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0)), + a.effects.createWrapper(d).css({ overflow: 'hidden' }), + g && d.css(i, j ? (isNaN(k) ? '-' + k : -k) : k), + (l[i] = (g ? (j ? '+=' : '-=') : j ? '-=' : '+=') + k), + d.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.transfer = function (b, c) { + var d = a(this), + e = a(b.to), + f = 'fixed' === e.css('position'), + g = a('body'), + h = f ? g.scrollTop() : 0, + i = f ? g.scrollLeft() : 0, + j = e.offset(), + k = { + top: j.top - h, + left: j.left - i, + height: e.innerHeight(), + width: e.innerWidth(), + }, + l = d.offset(), + m = a("
        ") + .appendTo(document.body) + .addClass(b.className) + .css({ + top: l.top - h, + left: l.left - i, + height: d.innerHeight(), + width: d.innerWidth(), + position: f ? 'fixed' : 'absolute', + }) + .animate(k, b.duration, b.easing, function () { + m.remove(), c() + }) + } + })(jQuery), + (function (a, b) { + a.widget('ui.menu', { + version: '1.10.3', + defaultElement: '
          ', + delay: 300, + options: { + icons: { submenu: 'ui-icon-carat-1-e' }, + menus: 'ul', + position: { my: 'left top', at: 'right top' }, + role: 'menu', + blur: null, + focus: null, + select: null, + }, + _create: function () { + ;(this.activeMenu = this.element), + (this.mouseHandled = !1), + this.element + .uniqueId() + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .toggleClass( + 'ui-menu-icons', + !!this.element.find('.ui-icon').length + ) + .attr({ role: this.options.role, tabIndex: 0 }) + .bind( + 'click' + this.eventNamespace, + a.proxy(function (a) { + this.options.disabled && a.preventDefault() + }, this) + ), + this.options.disabled && + this.element + .addClass('ui-state-disabled') + .attr('aria-disabled', 'true'), + this._on({ + 'mousedown .ui-menu-item > a': function (a) { + a.preventDefault() + }, + 'click .ui-state-disabled > a': function (a) { + a.preventDefault() + }, + 'click .ui-menu-item:has(a)': function (b) { + var c = a(b.target).closest('.ui-menu-item') + !this.mouseHandled && + c.not('.ui-state-disabled').length && + ((this.mouseHandled = !0), + this.select(b), + c.has('.ui-menu').length + ? this.expand(b) + : this.element.is(':focus') || + (this.element.trigger('focus', [!0]), + this.active && + 1 === this.active.parents('.ui-menu').length && + clearTimeout(this.timer))) + }, + 'mouseenter .ui-menu-item': function (b) { + var c = a(b.currentTarget) + c + .siblings() + .children('.ui-state-active') + .removeClass('ui-state-active'), + this.focus(b, c) + }, + mouseleave: 'collapseAll', + 'mouseleave .ui-menu': 'collapseAll', + focus: function (a, b) { + var c = + this.active || this.element.children('.ui-menu-item').eq(0) + b || this.focus(a, c) + }, + blur: function (b) { + this._delay(function () { + a.contains(this.element[0], this.document[0].activeElement) || + this.collapseAll(b) + }) + }, + keydown: '_keydown', + }), + this.refresh(), + this._on(this.document, { + click: function (b) { + a(b.target).closest('.ui-menu').length || this.collapseAll(b), + (this.mouseHandled = !1) + }, + }) + }, + _destroy: function () { + this.element + .removeAttr('aria-activedescendant') + .find('.ui-menu') + .addBack() + .removeClass( + 'ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons' + ) + .removeAttr('role') + .removeAttr('tabIndex') + .removeAttr('aria-labelledby') + .removeAttr('aria-expanded') + .removeAttr('aria-hidden') + .removeAttr('aria-disabled') + .removeUniqueId() + .show(), + this.element + .find('.ui-menu-item') + .removeClass('ui-menu-item') + .removeAttr('role') + .removeAttr('aria-disabled') + .children('a') + .removeUniqueId() + .removeClass('ui-corner-all ui-state-hover') + .removeAttr('tabIndex') + .removeAttr('role') + .removeAttr('aria-haspopup') + .children() + .each(function () { + var b = a(this) + b.data('ui-menu-submenu-carat') && b.remove() + }), + this.element + .find('.ui-menu-divider') + .removeClass('ui-menu-divider ui-widget-content') + }, + _keydown: function (b) { + function i(a) { + return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&') + } + var c, + d, + e, + f, + g, + h = !0 + switch (b.keyCode) { + case a.ui.keyCode.PAGE_UP: + this.previousPage(b) + break + case a.ui.keyCode.PAGE_DOWN: + this.nextPage(b) + break + case a.ui.keyCode.HOME: + this._move('first', 'first', b) + break + case a.ui.keyCode.END: + this._move('last', 'last', b) + break + case a.ui.keyCode.UP: + this.previous(b) + break + case a.ui.keyCode.DOWN: + this.next(b) + break + case a.ui.keyCode.LEFT: + this.collapse(b) + break + case a.ui.keyCode.RIGHT: + this.active && + !this.active.is('.ui-state-disabled') && + this.expand(b) + break + case a.ui.keyCode.ENTER: + case a.ui.keyCode.SPACE: + this._activate(b) + break + case a.ui.keyCode.ESCAPE: + this.collapse(b) + break + default: + ;(h = !1), + (d = this.previousFilter || ''), + (e = String.fromCharCode(b.keyCode)), + (f = !1), + clearTimeout(this.filterTimer), + e === d ? (f = !0) : (e = d + e), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + })), + (c = + f && c.index(this.active.next()) !== -1 + ? this.active.nextAll('.ui-menu-item') + : c), + c.length || + ((e = String.fromCharCode(b.keyCode)), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + }))), + c.length + ? (this.focus(b, c), + c.length > 1 + ? ((this.previousFilter = e), + (this.filterTimer = this._delay(function () { + delete this.previousFilter + }, 1e3))) + : delete this.previousFilter) + : delete this.previousFilter + } + h && b.preventDefault() + }, + _activate: function (a) { + this.active.is('.ui-state-disabled') || + (this.active.children("a[aria-haspopup='true']").length + ? this.expand(a) + : this.select(a)) + }, + refresh: function () { + var b, + c = this.options.icons.submenu, + d = this.element.find(this.options.menus) + d + .filter(':not(.ui-menu)') + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .hide() + .attr({ + role: this.options.role, + 'aria-hidden': 'true', + 'aria-expanded': 'false', + }) + .each(function () { + var b = a(this), + d = b.prev('a'), + e = a('') + .addClass('ui-menu-icon ui-icon ' + c) + .data('ui-menu-submenu-carat', !0) + d.attr('aria-haspopup', 'true').prepend(e), + b.attr('aria-labelledby', d.attr('id')) + }), + (b = d.add(this.element)), + b + .children(':not(.ui-menu-item):has(a)') + .addClass('ui-menu-item') + .attr('role', 'presentation') + .children('a') + .uniqueId() + .addClass('ui-corner-all') + .attr({ tabIndex: -1, role: this._itemRole() }), + b.children(':not(.ui-menu-item)').each(function () { + var b = a(this) + ;/[^\-\u2014\u2013\s]/.test(b.text()) || + b.addClass('ui-widget-content ui-menu-divider') + }), + b.children('.ui-state-disabled').attr('aria-disabled', 'true'), + this.active && + !a.contains(this.element[0], this.active[0]) && + this.blur() + }, + _itemRole: function () { + return { menu: 'menuitem', listbox: 'option' }[this.options.role] + }, + _setOption: function (a, b) { + 'icons' === a && + this.element + .find('.ui-menu-icon') + .removeClass(this.options.icons.submenu) + .addClass(b.submenu), + this._super(a, b) + }, + focus: function (a, b) { + var c, d + this.blur(a, a && 'focus' === a.type), + this._scrollIntoView(b), + (this.active = b.first()), + (d = this.active.children('a').addClass('ui-state-focus')), + this.options.role && + this.element.attr('aria-activedescendant', d.attr('id')), + this.active + .parent() + .closest('.ui-menu-item') + .children('a:first') + .addClass('ui-state-active'), + a && 'keydown' === a.type + ? this._close() + : (this.timer = this._delay(function () { + this._close() + }, this.delay)), + (c = b.children('.ui-menu')), + c.length && /^mouse/.test(a.type) && this._startOpening(c), + (this.activeMenu = b.parent()), + this._trigger('focus', a, { item: b }) + }, + _scrollIntoView: function (b) { + var c, d, e, f, g, h + this._hasScroll() && + ((c = parseFloat(a.css(this.activeMenu[0], 'borderTopWidth')) || 0), + (d = parseFloat(a.css(this.activeMenu[0], 'paddingTop')) || 0), + (e = b.offset().top - this.activeMenu.offset().top - c - d), + (f = this.activeMenu.scrollTop()), + (g = this.activeMenu.height()), + (h = b.height()), + e < 0 + ? this.activeMenu.scrollTop(f + e) + : e + h > g && this.activeMenu.scrollTop(f + e - g + h)) + }, + blur: function (a, b) { + b || clearTimeout(this.timer), + this.active && + (this.active.children('a').removeClass('ui-state-focus'), + (this.active = null), + this._trigger('blur', a, { item: this.active })) + }, + _startOpening: function (a) { + clearTimeout(this.timer), + 'true' === a.attr('aria-hidden') && + (this.timer = this._delay(function () { + this._close(), this._open(a) + }, this.delay)) + }, + _open: function (b) { + var c = a.extend({ of: this.active }, this.options.position) + clearTimeout(this.timer), + this.element + .find('.ui-menu') + .not(b.parents('.ui-menu')) + .hide() + .attr('aria-hidden', 'true'), + b + .show() + .removeAttr('aria-hidden') + .attr('aria-expanded', 'true') + .position(c) + }, + collapseAll: function (b, c) { + clearTimeout(this.timer), + (this.timer = this._delay(function () { + var d = c + ? this.element + : a(b && b.target).closest(this.element.find('.ui-menu')) + d.length || (d = this.element), + this._close(d), + this.blur(b), + (this.activeMenu = d) + }, this.delay)) + }, + _close: function (a) { + a || (a = this.active ? this.active.parent() : this.element), + a + .find('.ui-menu') + .hide() + .attr('aria-hidden', 'true') + .attr('aria-expanded', 'false') + .end() + .find('a.ui-state-active') + .removeClass('ui-state-active') + }, + collapse: function (a) { + var b = + this.active && + this.active.parent().closest('.ui-menu-item', this.element) + b && b.length && (this._close(), this.focus(a, b)) + }, + expand: function (a) { + var b = + this.active && + this.active.children('.ui-menu ').children('.ui-menu-item').first() + b && + b.length && + (this._open(b.parent()), + this._delay(function () { + this.focus(a, b) + })) + }, + next: function (a) { + this._move('next', 'first', a) + }, + previous: function (a) { + this._move('prev', 'last', a) + }, + isFirstItem: function () { + return this.active && !this.active.prevAll('.ui-menu-item').length + }, + isLastItem: function () { + return this.active && !this.active.nextAll('.ui-menu-item').length + }, + _move: function (a, b, c) { + var d + this.active && + (d = + 'first' === a || 'last' === a + ? this.active['first' === a ? 'prevAll' : 'nextAll']( + '.ui-menu-item' + ).eq(-1) + : this.active[a + 'All']('.ui-menu-item').eq(0)), + (d && d.length && this.active) || + (d = this.activeMenu.children('.ui-menu-item')[b]()), + this.focus(c, d) + }, + nextPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isLastItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.nextAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d - e < 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu + .children('.ui-menu-item') + [this.active ? 'last' : 'first']() + )) + ) + : void this.next(b) + }, + previousPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isFirstItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.prevAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d + e > 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu.children('.ui-menu-item').first() + )) + ) + : void this.next(b) + }, + _hasScroll: function () { + return this.element.outerHeight() < this.element.prop('scrollHeight') + }, + select: function (b) { + this.active = this.active || a(b.target).closest('.ui-menu-item') + var c = { item: this.active } + this.active.has('.ui-menu').length || this.collapseAll(b, !0), + this._trigger('select', b, c) + }, + }) + })(jQuery), + (function (a, b) { + function m(a, b, c) { + return [ + parseFloat(a[0]) * (k.test(a[0]) ? b / 100 : 1), + parseFloat(a[1]) * (k.test(a[1]) ? c / 100 : 1), + ] + } + function n(b, c) { + return parseInt(a.css(b, c), 10) || 0 + } + function o(b) { + var c = b[0] + return 9 === c.nodeType + ? { width: b.width(), height: b.height(), offset: { top: 0, left: 0 } } + : a.isWindow(c) + ? { + width: b.width(), + height: b.height(), + offset: { top: b.scrollTop(), left: b.scrollLeft() }, + } + : c.preventDefault + ? { width: 0, height: 0, offset: { top: c.pageY, left: c.pageX } } + : { width: b.outerWidth(), height: b.outerHeight(), offset: b.offset() } + } + a.ui = a.ui || {} + var c, + d = Math.max, + e = Math.abs, + f = Math.round, + g = /left|center|right/, + h = /top|center|bottom/, + i = /[\+\-]\d+(\.[\d]+)?%?/, + j = /^\w+/, + k = /%$/, + l = a.fn.position + ;(a.position = { + scrollbarWidth: function () { + if (c !== b) return c + var d, + e, + f = a( + "
          " + ), + g = f.children()[0] + return ( + a('body').append(f), + (d = g.offsetWidth), + f.css('overflow', 'scroll'), + (e = g.offsetWidth), + d === e && (e = f[0].clientWidth), + f.remove(), + (c = d - e) + ) + }, + getScrollInfo: function (b) { + var c = b.isWindow ? '' : b.element.css('overflow-x'), + d = b.isWindow ? '' : b.element.css('overflow-y'), + e = + 'scroll' === c || + ('auto' === c && b.width < b.element[0].scrollWidth), + f = + 'scroll' === d || + ('auto' === d && b.height < b.element[0].scrollHeight) + return { + width: f ? a.position.scrollbarWidth() : 0, + height: e ? a.position.scrollbarWidth() : 0, + } + }, + getWithinInfo: function (b) { + var c = a(b || window), + d = a.isWindow(c[0]) + return { + element: c, + isWindow: d, + offset: c.offset() || { left: 0, top: 0 }, + scrollLeft: c.scrollLeft(), + scrollTop: c.scrollTop(), + width: d ? c.width() : c.outerWidth(), + height: d ? c.height() : c.outerHeight(), + } + }, + }), + (a.fn.position = function (b) { + if (!b || !b.of) return l.apply(this, arguments) + b = a.extend({}, b) + var c, + k, + p, + q, + r, + s, + t = a(b.of), + u = a.position.getWithinInfo(b.within), + v = a.position.getScrollInfo(u), + w = (b.collision || 'flip').split(' '), + x = {} + return ( + (s = o(t)), + t[0].preventDefault && (b.at = 'left top'), + (k = s.width), + (p = s.height), + (q = s.offset), + (r = a.extend({}, q)), + a.each(['my', 'at'], function () { + var c, + d, + a = (b[this] || '').split(' ') + 1 === a.length && + (a = g.test(a[0]) + ? a.concat(['center']) + : h.test(a[0]) + ? ['center'].concat(a) + : ['center', 'center']), + (a[0] = g.test(a[0]) ? a[0] : 'center'), + (a[1] = h.test(a[1]) ? a[1] : 'center'), + (c = i.exec(a[0])), + (d = i.exec(a[1])), + (x[this] = [c ? c[0] : 0, d ? d[0] : 0]), + (b[this] = [j.exec(a[0])[0], j.exec(a[1])[0]]) + }), + 1 === w.length && (w[1] = w[0]), + 'right' === b.at[0] + ? (r.left += k) + : 'center' === b.at[0] && (r.left += k / 2), + 'bottom' === b.at[1] + ? (r.top += p) + : 'center' === b.at[1] && (r.top += p / 2), + (c = m(x.at, k, p)), + (r.left += c[0]), + (r.top += c[1]), + this.each(function () { + var g, + h, + i = a(this), + j = i.outerWidth(), + l = i.outerHeight(), + o = n(this, 'marginLeft'), + s = n(this, 'marginTop'), + y = j + o + n(this, 'marginRight') + v.width, + z = l + s + n(this, 'marginBottom') + v.height, + A = a.extend({}, r), + B = m(x.my, i.outerWidth(), i.outerHeight()) + 'right' === b.my[0] + ? (A.left -= j) + : 'center' === b.my[0] && (A.left -= j / 2), + 'bottom' === b.my[1] + ? (A.top -= l) + : 'center' === b.my[1] && (A.top -= l / 2), + (A.left += B[0]), + (A.top += B[1]), + a.support.offsetFractions || + ((A.left = f(A.left)), (A.top = f(A.top))), + (g = { marginLeft: o, marginTop: s }), + a.each(['left', 'top'], function (d, e) { + a.ui.position[w[d]] && + a.ui.position[w[d]][e](A, { + targetWidth: k, + targetHeight: p, + elemWidth: j, + elemHeight: l, + collisionPosition: g, + collisionWidth: y, + collisionHeight: z, + offset: [c[0] + B[0], c[1] + B[1]], + my: b.my, + at: b.at, + within: u, + elem: i, + }) + }), + b.using && + (h = function (a) { + var c = q.left - A.left, + f = c + k - j, + g = q.top - A.top, + h = g + p - l, + m = { + target: { + element: t, + left: q.left, + top: q.top, + width: k, + height: p, + }, + element: { + element: i, + left: A.left, + top: A.top, + width: j, + height: l, + }, + horizontal: f < 0 ? 'left' : c > 0 ? 'right' : 'center', + vertical: h < 0 ? 'top' : g > 0 ? 'bottom' : 'middle', + } + k < j && e(c + f) < k && (m.horizontal = 'center'), + p < l && e(g + h) < p && (m.vertical = 'middle'), + d(e(c), e(f)) > d(e(g), e(h)) + ? (m.important = 'horizontal') + : (m.important = 'vertical'), + b.using.call(this, a, m) + }), + i.offset(a.extend(A, { using: h })) + }) + ) + }), + (a.ui.position = { + fit: { + left: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollLeft : c.offset.left, + f = c.width, + g = a.left - b.collisionPosition.marginLeft, + h = e - g, + i = g + b.collisionWidth - f - e + b.collisionWidth > f + ? h > 0 && i <= 0 + ? ((j = a.left + h + b.collisionWidth - f - e), + (a.left += h - j)) + : i > 0 && h <= 0 + ? (a.left = e) + : h > i + ? (a.left = e + f - b.collisionWidth) + : (a.left = e) + : h > 0 + ? (a.left += h) + : i > 0 + ? (a.left -= i) + : (a.left = d(a.left - g, a.left)) + }, + top: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollTop : c.offset.top, + f = b.within.height, + g = a.top - b.collisionPosition.marginTop, + h = e - g, + i = g + b.collisionHeight - f - e + b.collisionHeight > f + ? h > 0 && i <= 0 + ? ((j = a.top + h + b.collisionHeight - f - e), + (a.top += h - j)) + : i > 0 && h <= 0 + ? (a.top = e) + : h > i + ? (a.top = e + f - b.collisionHeight) + : (a.top = e) + : h > 0 + ? (a.top += h) + : i > 0 + ? (a.top -= i) + : (a.top = d(a.top - g, a.top)) + }, + }, + flip: { + left: function (a, b) { + var n, + o, + c = b.within, + d = c.offset.left + c.scrollLeft, + f = c.width, + g = c.isWindow ? c.scrollLeft : c.offset.left, + h = a.left - b.collisionPosition.marginLeft, + i = h - g, + j = h + b.collisionWidth - f - g, + k = + 'left' === b.my[0] + ? -b.elemWidth + : 'right' === b.my[0] + ? b.elemWidth + : 0, + l = + 'left' === b.at[0] + ? b.targetWidth + : 'right' === b.at[0] + ? -b.targetWidth + : 0, + m = -2 * b.offset[0] + i < 0 + ? ((n = a.left + k + l + m + b.collisionWidth - f - d), + (n < 0 || n < e(i)) && (a.left += k + l + m)) + : j > 0 && + ((o = a.left - b.collisionPosition.marginLeft + k + l + m - g), + (o > 0 || e(o) < j) && (a.left += k + l + m)) + }, + top: function (a, b) { + var o, + p, + c = b.within, + d = c.offset.top + c.scrollTop, + f = c.height, + g = c.isWindow ? c.scrollTop : c.offset.top, + h = a.top - b.collisionPosition.marginTop, + i = h - g, + j = h + b.collisionHeight - f - g, + k = 'top' === b.my[1], + l = k ? -b.elemHeight : 'bottom' === b.my[1] ? b.elemHeight : 0, + m = + 'top' === b.at[1] + ? b.targetHeight + : 'bottom' === b.at[1] + ? -b.targetHeight + : 0, + n = -2 * b.offset[1] + i < 0 + ? ((p = a.top + l + m + n + b.collisionHeight - f - d), + a.top + l + m + n > i && + (p < 0 || p < e(i)) && + (a.top += l + m + n)) + : j > 0 && + ((o = a.top - b.collisionPosition.marginTop + l + m + n - g), + a.top + l + m + n > j && + (o > 0 || e(o) < j) && + (a.top += l + m + n)) + }, + }, + flipfit: { + left: function () { + a.ui.position.flip.left.apply(this, arguments), + a.ui.position.fit.left.apply(this, arguments) + }, + top: function () { + a.ui.position.flip.top.apply(this, arguments), + a.ui.position.fit.top.apply(this, arguments) + }, + }, + }), + (function () { + var b, + c, + d, + e, + f, + g = document.getElementsByTagName('body')[0], + h = document.createElement('div') + ;(b = document.createElement(g ? 'div' : 'body')), + (d = { + visibility: 'hidden', + width: 0, + height: 0, + border: 0, + margin: 0, + background: 'none', + }), + g && + a.extend(d, { + position: 'absolute', + left: '-1000px', + top: '-1000px', + }) + for (f in d) b.style[f] = d[f] + b.appendChild(h), + (c = g || document.documentElement), + c.insertBefore(b, c.firstChild), + (h.style.cssText = 'position: absolute; left: 10.7432222px;'), + (e = a(h).offset().left), + (a.support.offsetFractions = e > 10 && e < 11), + (b.innerHTML = ''), + c.removeChild(b) + })() + })(jQuery), + (function (a, b) { + a.widget('ui.progressbar', { + version: '1.10.3', + options: { max: 100, value: 0, change: null, complete: null }, + min: 0, + _create: function () { + ;(this.oldValue = this.options.value = this._constrainedValue()), + this.element + .addClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .attr({ role: 'progressbar', 'aria-valuemin': this.min }), + (this.valueDiv = a( + "
          " + ).appendTo(this.element)), + this._refreshValue() + }, + _destroy: function () { + this.element + .removeClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.valueDiv.remove() + }, + value: function (a) { + return a === b + ? this.options.value + : ((this.options.value = this._constrainedValue(a)), + void this._refreshValue()) + }, + _constrainedValue: function (a) { + return ( + a === b && (a = this.options.value), + (this.indeterminate = a === !1), + 'number' != typeof a && (a = 0), + !this.indeterminate && + Math.min(this.options.max, Math.max(this.min, a)) + ) + }, + _setOptions: function (a) { + var b = a.value + delete a.value, + this._super(a), + (this.options.value = this._constrainedValue(b)), + this._refreshValue() + }, + _setOption: function (a, b) { + 'max' === a && (b = Math.max(this.min, b)), this._super(a, b) + }, + _percentage: function () { + return this.indeterminate + ? 100 + : (100 * (this.options.value - this.min)) / + (this.options.max - this.min) + }, + _refreshValue: function () { + var b = this.options.value, + c = this._percentage() + this.valueDiv + .toggle(this.indeterminate || b > this.min) + .toggleClass('ui-corner-right', b === this.options.max) + .width(c.toFixed(0) + '%'), + this.element.toggleClass( + 'ui-progressbar-indeterminate', + this.indeterminate + ), + this.indeterminate + ? (this.element.removeAttr('aria-valuenow'), + this.overlayDiv || + (this.overlayDiv = a( + "
          " + ).appendTo(this.valueDiv))) + : (this.element.attr({ + 'aria-valuemax': this.options.max, + 'aria-valuenow': b, + }), + this.overlayDiv && + (this.overlayDiv.remove(), (this.overlayDiv = null))), + this.oldValue !== b && ((this.oldValue = b), this._trigger('change')), + b === this.options.max && this._trigger('complete') + }, + }) + })(jQuery), + (function (a, b) { + var c = 5 + a.widget('ui.slider', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'slide', + options: { + animate: !1, + distance: 0, + max: 100, + min: 0, + orientation: 'horizontal', + range: !1, + step: 1, + value: 0, + values: null, + change: null, + slide: null, + start: null, + stop: null, + }, + _create: function () { + ;(this._keySliding = !1), + (this._mouseSliding = !1), + (this._animateOff = !0), + (this._handleIndex = null), + this._detectOrientation(), + this._mouseInit(), + this.element.addClass( + 'ui-slider ui-slider-' + + this.orientation + + ' ui-widget ui-widget-content ui-corner-all' + ), + this._refresh(), + this._setOption('disabled', this.options.disabled), + (this._animateOff = !1) + }, + _refresh: function () { + this._createRange(), + this._createHandles(), + this._setupEvents(), + this._refreshValue() + }, + _createHandles: function () { + var b, + c, + d = this.options, + e = this.element + .find('.ui-slider-handle') + .addClass('ui-state-default ui-corner-all'), + f = + "", + g = [] + for ( + c = (d.values && d.values.length) || 1, + e.length > c && (e.slice(c).remove(), (e = e.slice(0, c))), + b = e.length; + b < c; + b++ + ) + g.push(f) + ;(this.handles = e.add(a(g.join('')).appendTo(this.element))), + (this.handle = this.handles.eq(0)), + this.handles.each(function (b) { + a(this).data('ui-slider-handle-index', b) + }) + }, + _createRange: function () { + var b = this.options, + c = '' + b.range + ? (b.range === !0 && + (b.values + ? b.values.length && 2 !== b.values.length + ? (b.values = [b.values[0], b.values[0]]) + : a.isArray(b.values) && (b.values = b.values.slice(0)) + : (b.values = [this._valueMin(), this._valueMin()])), + this.range && this.range.length + ? this.range + .removeClass('ui-slider-range-min ui-slider-range-max') + .css({ left: '', bottom: '' }) + : ((this.range = a('
          ').appendTo(this.element)), + (c = 'ui-slider-range ui-widget-header ui-corner-all')), + this.range.addClass( + c + + ('min' === b.range || 'max' === b.range + ? ' ui-slider-range-' + b.range + : '') + )) + : (this.range = a([])) + }, + _setupEvents: function () { + var a = this.handles.add(this.range).filter('a') + this._off(a), + this._on(a, this._handleEvents), + this._hoverable(a), + this._focusable(a) + }, + _destroy: function () { + this.handles.remove(), + this.range.remove(), + this.element.removeClass( + 'ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all' + ), + this._mouseDestroy() + }, + _mouseCapture: function (b) { + var c, + d, + e, + f, + g, + h, + i, + j, + k = this, + l = this.options + return ( + !l.disabled && + ((this.elementSize = { + width: this.element.outerWidth(), + height: this.element.outerHeight(), + }), + (this.elementOffset = this.element.offset()), + (c = { x: b.pageX, y: b.pageY }), + (d = this._normValueFromMouse(c)), + (e = this._valueMax() - this._valueMin() + 1), + this.handles.each(function (b) { + var c = Math.abs(d - k.values(b)) + ;(e > c || + (e === c && + (b === k._lastChangedValue || k.values(b) === l.min))) && + ((e = c), (f = a(this)), (g = b)) + }), + (h = this._start(b, g)), + h !== !1 && + ((this._mouseSliding = !0), + (this._handleIndex = g), + f.addClass('ui-state-active').focus(), + (i = f.offset()), + (j = !a(b.target).parents().addBack().is('.ui-slider-handle')), + (this._clickOffset = j + ? { left: 0, top: 0 } + : { + left: b.pageX - i.left - f.width() / 2, + top: + b.pageY - + i.top - + f.height() / 2 - + (parseInt(f.css('borderTopWidth'), 10) || 0) - + (parseInt(f.css('borderBottomWidth'), 10) || 0) + + (parseInt(f.css('marginTop'), 10) || 0), + }), + this.handles.hasClass('ui-state-hover') || this._slide(b, g, d), + (this._animateOff = !0), + !0)) + ) + }, + _mouseStart: function () { + return !0 + }, + _mouseDrag: function (a) { + var b = { x: a.pageX, y: a.pageY }, + c = this._normValueFromMouse(b) + return this._slide(a, this._handleIndex, c), !1 + }, + _mouseStop: function (a) { + return ( + this.handles.removeClass('ui-state-active'), + (this._mouseSliding = !1), + this._stop(a, this._handleIndex), + this._change(a, this._handleIndex), + (this._handleIndex = null), + (this._clickOffset = null), + (this._animateOff = !1), + !1 + ) + }, + _detectOrientation: function () { + this.orientation = + 'vertical' === this.options.orientation ? 'vertical' : 'horizontal' + }, + _normValueFromMouse: function (a) { + var b, c, d, e, f + return ( + 'horizontal' === this.orientation + ? ((b = this.elementSize.width), + (c = + a.x - + this.elementOffset.left - + (this._clickOffset ? this._clickOffset.left : 0))) + : ((b = this.elementSize.height), + (c = + a.y - + this.elementOffset.top - + (this._clickOffset ? this._clickOffset.top : 0))), + (d = c / b), + d > 1 && (d = 1), + d < 0 && (d = 0), + 'vertical' === this.orientation && (d = 1 - d), + (e = this._valueMax() - this._valueMin()), + (f = this._valueMin() + d * e), + this._trimAlignValue(f) + ) + }, + _start: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + return ( + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('start', a, c) + ) + }, + _slide: function (a, b, c) { + var d, e, f + this.options.values && this.options.values.length + ? ((d = this.values(b ? 0 : 1)), + 2 === this.options.values.length && + this.options.range === !0 && + ((0 === b && c > d) || (1 === b && c < d)) && + (c = d), + c !== this.values(b) && + ((e = this.values()), + (e[b] = c), + (f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + values: e, + })), + (d = this.values(b ? 0 : 1)), + f !== !1 && this.values(b, c, !0))) + : c !== this.value() && + ((f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + })), + f !== !1 && this.value(c)) + }, + _stop: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('stop', a, c) + }, + _change: function (a, b) { + if (!this._keySliding && !this._mouseSliding) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + (this._lastChangedValue = b), + this._trigger('change', a, c) + } + }, + value: function (a) { + return arguments.length + ? ((this.options.value = this._trimAlignValue(a)), + this._refreshValue(), + void this._change(null, 0)) + : this._value() + }, + values: function (b, c) { + var d, e, f + if (arguments.length > 1) + return ( + (this.options.values[b] = this._trimAlignValue(c)), + this._refreshValue(), + void this._change(null, b) + ) + if (!arguments.length) return this._values() + if (!a.isArray(arguments[0])) + return this.options.values && this.options.values.length + ? this._values(b) + : this.value() + for ( + d = this.options.values, e = arguments[0], f = 0; + f < d.length; + f += 1 + ) + (d[f] = this._trimAlignValue(e[f])), this._change(null, f) + this._refreshValue() + }, + _setOption: function (b, c) { + var d, + e = 0 + switch ( + ('range' === b && + this.options.range === !0 && + ('min' === c + ? ((this.options.value = this._values(0)), + (this.options.values = null)) + : 'max' === c && + ((this.options.value = this._values( + this.options.values.length - 1 + )), + (this.options.values = null))), + a.isArray(this.options.values) && (e = this.options.values.length), + a.Widget.prototype._setOption.apply(this, arguments), + b) + ) { + case 'orientation': + this._detectOrientation(), + this.element + .removeClass('ui-slider-horizontal ui-slider-vertical') + .addClass('ui-slider-' + this.orientation), + this._refreshValue() + break + case 'value': + ;(this._animateOff = !0), + this._refreshValue(), + this._change(null, 0), + (this._animateOff = !1) + break + case 'values': + for ( + this._animateOff = !0, this._refreshValue(), d = 0; + d < e; + d += 1 + ) + this._change(null, d) + this._animateOff = !1 + break + case 'min': + case 'max': + ;(this._animateOff = !0), + this._refreshValue(), + (this._animateOff = !1) + break + case 'range': + ;(this._animateOff = !0), this._refresh(), (this._animateOff = !1) + } + }, + _value: function () { + var a = this.options.value + return (a = this._trimAlignValue(a)) + }, + _values: function (a) { + var b, c, d + if (arguments.length) + return (b = this.options.values[a]), (b = this._trimAlignValue(b)) + if (this.options.values && this.options.values.length) { + for (c = this.options.values.slice(), d = 0; d < c.length; d += 1) + c[d] = this._trimAlignValue(c[d]) + return c + } + return [] + }, + _trimAlignValue: function (a) { + if (a <= this._valueMin()) return this._valueMin() + if (a >= this._valueMax()) return this._valueMax() + var b = this.options.step > 0 ? this.options.step : 1, + c = (a - this._valueMin()) % b, + d = a - c + return ( + 2 * Math.abs(c) >= b && (d += c > 0 ? b : -b), + parseFloat(d.toFixed(5)) + ) + }, + _valueMin: function () { + return this.options.min + }, + _valueMax: function () { + return this.options.max + }, + _refreshValue: function () { + var b, + c, + d, + e, + f, + g = this.options.range, + h = this.options, + i = this, + j = !this._animateOff && h.animate, + k = {} + this.options.values && this.options.values.length + ? this.handles.each(function (d) { + ;(c = + ((i.values(d) - i._valueMin()) / + (i._valueMax() - i._valueMin())) * + 100), + (k['horizontal' === i.orientation ? 'left' : 'bottom'] = + c + '%'), + a(this).stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + i.options.range === !0 && + ('horizontal' === i.orientation + ? (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']({ left: c + '%' }, h.animate), + 1 === d && + i.range[j ? 'animate' : 'css']( + { width: c - b + '%' }, + { queue: !1, duration: h.animate } + )) + : (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']( + { bottom: c + '%' }, + h.animate + ), + 1 === d && + i.range[j ? 'animate' : 'css']( + { height: c - b + '%' }, + { queue: !1, duration: h.animate } + ))), + (b = c) + }) + : ((d = this.value()), + (e = this._valueMin()), + (f = this._valueMax()), + (c = f !== e ? ((d - e) / (f - e)) * 100 : 0), + (k['horizontal' === this.orientation ? 'left' : 'bottom'] = + c + '%'), + this.handle.stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + 'min' === g && + 'horizontal' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ width: c + '%' }, h.animate), + 'max' === g && + 'horizontal' === this.orientation && + this.range[j ? 'animate' : 'css']( + { width: 100 - c + '%' }, + { queue: !1, duration: h.animate } + ), + 'min' === g && + 'vertical' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ height: c + '%' }, h.animate), + 'max' === g && + 'vertical' === this.orientation && + this.range[j ? 'animate' : 'css']( + { height: 100 - c + '%' }, + { queue: !1, duration: h.animate } + )) + }, + _handleEvents: { + keydown: function (b) { + var d, + e, + f, + g, + h = a(b.target).data('ui-slider-handle-index') + switch (b.keyCode) { + case a.ui.keyCode.HOME: + case a.ui.keyCode.END: + case a.ui.keyCode.PAGE_UP: + case a.ui.keyCode.PAGE_DOWN: + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if ( + (b.preventDefault(), + !this._keySliding && + ((this._keySliding = !0), + a(b.target).addClass('ui-state-active'), + (d = this._start(b, h)), + d === !1)) + ) + return + } + switch ( + ((g = this.options.step), + (e = f = + this.options.values && this.options.values.length + ? this.values(h) + : this.value()), + b.keyCode) + ) { + case a.ui.keyCode.HOME: + f = this._valueMin() + break + case a.ui.keyCode.END: + f = this._valueMax() + break + case a.ui.keyCode.PAGE_UP: + f = this._trimAlignValue( + e + (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.PAGE_DOWN: + f = this._trimAlignValue( + e - (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + if (e === this._valueMax()) return + f = this._trimAlignValue(e + g) + break + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if (e === this._valueMin()) return + f = this._trimAlignValue(e - g) + } + this._slide(b, h, f) + }, + click: function (a) { + a.preventDefault() + }, + keyup: function (b) { + var c = a(b.target).data('ui-slider-handle-index') + this._keySliding && + ((this._keySliding = !1), + this._stop(b, c), + this._change(b, c), + a(b.target).removeClass('ui-state-active')) + }, + }, + }) + })(jQuery), + (function (a) { + function b(a) { + return function () { + var b = this.element.val() + a.apply(this, arguments), + this._refresh(), + b !== this.element.val() && this._trigger('change') + } + } + a.widget('ui.spinner', { + version: '1.10.3', + defaultElement: '', + widgetEventPrefix: 'spin', + options: { + culture: null, + icons: { down: 'ui-icon-triangle-1-s', up: 'ui-icon-triangle-1-n' }, + incremental: !0, + max: null, + min: null, + numberFormat: null, + page: 10, + step: 1, + change: null, + spin: null, + start: null, + stop: null, + }, + _create: function () { + this._setOption('max', this.options.max), + this._setOption('min', this.options.min), + this._setOption('step', this.options.step), + this._value(this.element.val(), !0), + this._draw(), + this._on(this._events), + this._refresh(), + this._on(this.window, { + beforeunload: function () { + this.element.removeAttr('autocomplete') + }, + }) + }, + _getCreateOptions: function () { + var b = {}, + c = this.element + return ( + a.each(['min', 'max', 'step'], function (a, d) { + var e = c.attr(d) + void 0 !== e && e.length && (b[d] = e) + }), + b + ) + }, + _events: { + keydown: function (a) { + this._start(a) && this._keydown(a) && a.preventDefault() + }, + keyup: '_stop', + focus: function () { + this.previous = this.element.val() + }, + blur: function (a) { + return this.cancelBlur + ? void delete this.cancelBlur + : (this._stop(), + this._refresh(), + void ( + this.previous !== this.element.val() && + this._trigger('change', a) + )) + }, + mousewheel: function (a, b) { + if (b) { + if (!this.spinning && !this._start(a)) return !1 + this._spin((b > 0 ? 1 : -1) * this.options.step, a), + clearTimeout(this.mousewheelTimer), + (this.mousewheelTimer = this._delay(function () { + this.spinning && this._stop(a) + }, 100)), + a.preventDefault() + } + }, + 'mousedown .ui-spinner-button': function (b) { + function d() { + var a = this.element[0] === this.document[0].activeElement + a || + (this.element.focus(), + (this.previous = c), + this._delay(function () { + this.previous = c + })) + } + var c + ;(c = + this.element[0] === this.document[0].activeElement + ? this.previous + : this.element.val()), + b.preventDefault(), + d.call(this), + (this.cancelBlur = !0), + this._delay(function () { + delete this.cancelBlur, d.call(this) + }), + this._start(b) !== !1 && + this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + }, + 'mouseup .ui-spinner-button': '_stop', + 'mouseenter .ui-spinner-button': function (b) { + if (a(b.currentTarget).hasClass('ui-state-active')) + return ( + this._start(b) !== !1 && + void this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + ) + }, + 'mouseleave .ui-spinner-button': '_stop', + }, + _draw: function () { + var a = (this.uiSpinner = this.element + .addClass('ui-spinner-input') + .attr('autocomplete', 'off') + .wrap(this._uiSpinnerHtml()) + .parent() + .append(this._buttonHtml())) + this.element.attr('role', 'spinbutton'), + (this.buttons = a + .find('.ui-spinner-button') + .attr('tabIndex', -1) + .button() + .removeClass('ui-corner-all')), + this.buttons.height() > Math.ceil(0.5 * a.height()) && + a.height() > 0 && + a.height(a.height()), + this.options.disabled && this.disable() + }, + _keydown: function (b) { + var c = this.options, + d = a.ui.keyCode + switch (b.keyCode) { + case d.UP: + return this._repeat(null, 1, b), !0 + case d.DOWN: + return this._repeat(null, -1, b), !0 + case d.PAGE_UP: + return this._repeat(null, c.page, b), !0 + case d.PAGE_DOWN: + return this._repeat(null, -c.page, b), !0 + } + return !1 + }, + _uiSpinnerHtml: function () { + return "" + }, + _buttonHtml: function () { + return ( + "" + ) + }, + _start: function (a) { + return ( + !(!this.spinning && this._trigger('start', a) === !1) && + (this.counter || (this.counter = 1), (this.spinning = !0), !0) + ) + }, + _repeat: function (a, b, c) { + ;(a = a || 500), + clearTimeout(this.timer), + (this.timer = this._delay(function () { + this._repeat(40, b, c) + }, a)), + this._spin(b * this.options.step, c) + }, + _spin: function (a, b) { + var c = this.value() || 0 + this.counter || (this.counter = 1), + (c = this._adjustValue(c + a * this._increment(this.counter))), + (this.spinning && this._trigger('spin', b, { value: c }) === !1) || + (this._value(c), this.counter++) + }, + _increment: function (b) { + var c = this.options.incremental + return c + ? a.isFunction(c) + ? c(b) + : Math.floor((b * b * b) / 5e4 - (b * b) / 500 + (17 * b) / 200 + 1) + : 1 + }, + _precision: function () { + var a = this._precisionOf(this.options.step) + return ( + null !== this.options.min && + (a = Math.max(a, this._precisionOf(this.options.min))), + a + ) + }, + _precisionOf: function (a) { + var b = a.toString(), + c = b.indexOf('.') + return c === -1 ? 0 : b.length - c - 1 + }, + _adjustValue: function (a) { + var b, + c, + d = this.options + return ( + (b = null !== d.min ? d.min : 0), + (c = a - b), + (c = Math.round(c / d.step) * d.step), + (a = b + c), + (a = parseFloat(a.toFixed(this._precision()))), + null !== d.max && a > d.max + ? d.max + : null !== d.min && a < d.min + ? d.min + : a + ) + }, + _stop: function (a) { + this.spinning && + (clearTimeout(this.timer), + clearTimeout(this.mousewheelTimer), + (this.counter = 0), + (this.spinning = !1), + this._trigger('stop', a)) + }, + _setOption: function (a, b) { + if ('culture' === a || 'numberFormat' === a) { + var c = this._parse(this.element.val()) + return (this.options[a] = b), void this.element.val(this._format(c)) + } + ;('max' !== a && 'min' !== a && 'step' !== a) || + ('string' == typeof b && (b = this._parse(b))), + 'icons' === a && + (this.buttons + .first() + .find('.ui-icon') + .removeClass(this.options.icons.up) + .addClass(b.up), + this.buttons + .last() + .find('.ui-icon') + .removeClass(this.options.icons.down) + .addClass(b.down)), + this._super(a, b), + 'disabled' === a && + (b + ? (this.element.prop('disabled', !0), + this.buttons.button('disable')) + : (this.element.prop('disabled', !1), + this.buttons.button('enable'))) + }, + _setOptions: b(function (a) { + this._super(a), this._value(this.element.val()) + }), + _parse: function (a) { + return ( + 'string' == typeof a && + '' !== a && + (a = + window.Globalize && this.options.numberFormat + ? Globalize.parseFloat(a, 10, this.options.culture) + : +a), + '' === a || isNaN(a) ? null : a + ) + }, + _format: function (a) { + return '' === a + ? '' + : window.Globalize && this.options.numberFormat + ? Globalize.format(a, this.options.numberFormat, this.options.culture) + : a + }, + _refresh: function () { + this.element.attr({ + 'aria-valuemin': this.options.min, + 'aria-valuemax': this.options.max, + 'aria-valuenow': this._parse(this.element.val()), + }) + }, + _value: function (a, b) { + var c + '' !== a && + ((c = this._parse(a)), + null !== c && + (b || (c = this._adjustValue(c)), (a = this._format(c)))), + this.element.val(a), + this._refresh() + }, + _destroy: function () { + this.element + .removeClass('ui-spinner-input') + .prop('disabled', !1) + .removeAttr('autocomplete') + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.uiSpinner.replaceWith(this.element) + }, + stepUp: b(function (a) { + this._stepUp(a) + }), + _stepUp: function (a) { + this._start() && + (this._spin((a || 1) * this.options.step), this._stop()) + }, + stepDown: b(function (a) { + this._stepDown(a) + }), + _stepDown: function (a) { + this._start() && + (this._spin((a || 1) * -this.options.step), this._stop()) + }, + pageUp: b(function (a) { + this._stepUp((a || 1) * this.options.page) + }), + pageDown: b(function (a) { + this._stepDown((a || 1) * this.options.page) + }), + value: function (a) { + return arguments.length + ? void b(this._value).call(this, a) + : this._parse(this.element.val()) + }, + widget: function () { + return this.uiSpinner + }, + }) + })(jQuery), + (function (a, b) { + function e() { + return ++c + } + function f(a) { + return ( + a.hash.length > 1 && + decodeURIComponent(a.href.replace(d, '')) === + decodeURIComponent(location.href.replace(d, '')) + ) + } + var c = 0, + d = /#.*$/ + a.widget('ui.tabs', { + version: '1.10.3', + delay: 300, + options: { + active: null, + collapsible: !1, + event: 'click', + heightStyle: 'content', + hide: null, + show: null, + activate: null, + beforeActivate: null, + beforeLoad: null, + load: null, + }, + _create: function () { + var b = this, + c = this.options + ;(this.running = !1), + this.element + .addClass('ui-tabs ui-widget ui-widget-content ui-corner-all') + .toggleClass('ui-tabs-collapsible', c.collapsible) + .delegate( + '.ui-tabs-nav > li', + 'mousedown' + this.eventNamespace, + function (b) { + a(this).is('.ui-state-disabled') && b.preventDefault() + } + ) + .delegate( + '.ui-tabs-anchor', + 'focus' + this.eventNamespace, + function () { + a(this).closest('li').is('.ui-state-disabled') && this.blur() + } + ), + this._processTabs(), + (c.active = this._initialActive()), + a.isArray(c.disabled) && + (c.disabled = a + .unique( + c.disabled.concat( + a.map(this.tabs.filter('.ui-state-disabled'), function (a) { + return b.tabs.index(a) + }) + ) + ) + .sort()), + this.options.active !== !1 && this.anchors.length + ? (this.active = this._findActive(c.active)) + : (this.active = a()), + this._refresh(), + this.active.length && this.load(c.active) + }, + _initialActive: function () { + var b = this.options.active, + c = this.options.collapsible, + d = location.hash.substring(1) + return ( + null === b && + (d && + this.tabs.each(function (c, e) { + if (a(e).attr('aria-controls') === d) return (b = c), !1 + }), + null === b && + (b = this.tabs.index(this.tabs.filter('.ui-tabs-active'))), + (null !== b && b !== -1) || (b = !!this.tabs.length && 0)), + b !== !1 && + ((b = this.tabs.index(this.tabs.eq(b))), b === -1 && (b = !c && 0)), + !c && b === !1 && this.anchors.length && (b = 0), + b + ) + }, + _getCreateEventData: function () { + return { + tab: this.active, + panel: this.active.length ? this._getPanelForTab(this.active) : a(), + } + }, + _tabKeydown: function (b) { + var c = a(this.document[0].activeElement).closest('li'), + d = this.tabs.index(c), + e = !0 + if (!this._handlePageNav(b)) { + switch (b.keyCode) { + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + d++ + break + case a.ui.keyCode.UP: + case a.ui.keyCode.LEFT: + ;(e = !1), d-- + break + case a.ui.keyCode.END: + d = this.anchors.length - 1 + break + case a.ui.keyCode.HOME: + d = 0 + break + case a.ui.keyCode.SPACE: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d) + ) + case a.ui.keyCode.ENTER: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d !== this.options.active && d) + ) + default: + return + } + b.preventDefault(), + clearTimeout(this.activating), + (d = this._focusNextTab(d, e)), + b.ctrlKey || + (c.attr('aria-selected', 'false'), + this.tabs.eq(d).attr('aria-selected', 'true'), + (this.activating = this._delay(function () { + this.option('active', d) + }, this.delay))) + } + }, + _panelKeydown: function (b) { + this._handlePageNav(b) || + (b.ctrlKey && + b.keyCode === a.ui.keyCode.UP && + (b.preventDefault(), this.active.focus())) + }, + _handlePageNav: function (b) { + return b.altKey && b.keyCode === a.ui.keyCode.PAGE_UP + ? (this._activate(this._focusNextTab(this.options.active - 1, !1)), + !0) + : b.altKey && b.keyCode === a.ui.keyCode.PAGE_DOWN + ? (this._activate(this._focusNextTab(this.options.active + 1, !0)), + !0) + : void 0 + }, + _findNextTab: function (b, c) { + function e() { + return b > d && (b = 0), b < 0 && (b = d), b + } + for ( + var d = this.tabs.length - 1; + a.inArray(e(), this.options.disabled) !== -1; + + ) + b = c ? b + 1 : b - 1 + return b + }, + _focusNextTab: function (a, b) { + return (a = this._findNextTab(a, b)), this.tabs.eq(a).focus(), a + }, + _setOption: function (a, b) { + return 'active' === a + ? void this._activate(b) + : 'disabled' === a + ? void this._setupDisabled(b) + : (this._super(a, b), + 'collapsible' === a && + (this.element.toggleClass('ui-tabs-collapsible', b), + b || this.options.active !== !1 || this._activate(0)), + 'event' === a && this._setupEvents(b), + void ('heightStyle' === a && this._setupHeightStyle(b))) + }, + _tabId: function (a) { + return a.attr('aria-controls') || 'ui-tabs-' + e() + }, + _sanitizeSelector: function (a) { + return a ? a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, '\\$&') : '' + }, + refresh: function () { + var b = this.options, + c = this.tablist.children(':has(a[href])') + ;(b.disabled = a.map(c.filter('.ui-state-disabled'), function (a) { + return c.index(a) + })), + this._processTabs(), + b.active !== !1 && this.anchors.length + ? this.active.length && !a.contains(this.tablist[0], this.active[0]) + ? this.tabs.length === b.disabled.length + ? ((b.active = !1), (this.active = a())) + : this._activate( + this._findNextTab(Math.max(0, b.active - 1), !1) + ) + : (b.active = this.tabs.index(this.active)) + : ((b.active = !1), (this.active = a())), + this._refresh() + }, + _refresh: function () { + this._setupDisabled(this.options.disabled), + this._setupEvents(this.options.event), + this._setupHeightStyle(this.options.heightStyle), + this.tabs + .not(this.active) + .attr({ 'aria-selected': 'false', tabIndex: -1 }), + this.panels + .not(this._getPanelForTab(this.active)) + .hide() + .attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + this.active.length + ? (this.active + .addClass('ui-tabs-active ui-state-active') + .attr({ 'aria-selected': 'true', tabIndex: 0 }), + this._getPanelForTab(this.active) + .show() + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' })) + : this.tabs.eq(0).attr('tabIndex', 0) + }, + _processTabs: function () { + var b = this + ;(this.tablist = this._getList() + .addClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .attr('role', 'tablist')), + (this.tabs = this.tablist + .find('> li:has(a[href])') + .addClass('ui-state-default ui-corner-top') + .attr({ role: 'tab', tabIndex: -1 })), + (this.anchors = this.tabs + .map(function () { + return a('a', this)[0] + }) + .addClass('ui-tabs-anchor') + .attr({ role: 'presentation', tabIndex: -1 })), + (this.panels = a()), + this.anchors.each(function (c, d) { + var e, + g, + h, + i = a(d).uniqueId().attr('id'), + j = a(d).closest('li'), + k = j.attr('aria-controls') + f(d) + ? ((e = d.hash), (g = b.element.find(b._sanitizeSelector(e)))) + : ((h = b._tabId(j)), + (e = '#' + h), + (g = b.element.find(e)), + g.length || + ((g = b._createPanel(h)), + g.insertAfter(b.panels[c - 1] || b.tablist)), + g.attr('aria-live', 'polite')), + g.length && (b.panels = b.panels.add(g)), + k && j.data('ui-tabs-aria-controls', k), + j.attr({ 'aria-controls': e.substring(1), 'aria-labelledby': i }), + g.attr('aria-labelledby', i) + }), + this.panels + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .attr('role', 'tabpanel') + }, + _getList: function () { + return this.element.find('ol,ul').eq(0) + }, + _createPanel: function (b) { + return a('
          ') + .attr('id', b) + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .data('ui-tabs-destroy', !0) + }, + _setupDisabled: function (b) { + a.isArray(b) && + (b.length ? b.length === this.anchors.length && (b = !0) : (b = !1)) + for (var d, c = 0; (d = this.tabs[c]); c++) + b === !0 || a.inArray(c, b) !== -1 + ? a(d).addClass('ui-state-disabled').attr('aria-disabled', 'true') + : a(d).removeClass('ui-state-disabled').removeAttr('aria-disabled') + this.options.disabled = b + }, + _setupEvents: function (b) { + var c = { + click: function (a) { + a.preventDefault() + }, + } + b && + a.each(b.split(' '), function (a, b) { + c[b] = '_eventHandler' + }), + this._off(this.anchors.add(this.tabs).add(this.panels)), + this._on(this.anchors, c), + this._on(this.tabs, { keydown: '_tabKeydown' }), + this._on(this.panels, { keydown: '_panelKeydown' }), + this._focusable(this.tabs), + this._hoverable(this.tabs) + }, + _setupHeightStyle: function (b) { + var c, + d = this.element.parent() + 'fill' === b + ? ((c = d.height()), + (c -= this.element.outerHeight() - this.element.height()), + this.element.siblings(':visible').each(function () { + var b = a(this), + d = b.css('position') + 'absolute' !== d && 'fixed' !== d && (c -= b.outerHeight(!0)) + }), + this.element + .children() + .not(this.panels) + .each(function () { + c -= a(this).outerHeight(!0) + }), + this.panels + .each(function () { + a(this).height( + Math.max(0, c - a(this).innerHeight() + a(this).height()) + ) + }) + .css('overflow', 'auto')) + : 'auto' === b && + ((c = 0), + this.panels + .each(function () { + c = Math.max(c, a(this).height('').height()) + }) + .height(c)) + }, + _eventHandler: function (b) { + var c = this.options, + d = this.active, + e = a(b.currentTarget), + f = e.closest('li'), + g = f[0] === d[0], + h = g && c.collapsible, + i = h ? a() : this._getPanelForTab(f), + j = d.length ? this._getPanelForTab(d) : a(), + k = { oldTab: d, oldPanel: j, newTab: h ? a() : f, newPanel: i } + b.preventDefault(), + f.hasClass('ui-state-disabled') || + f.hasClass('ui-tabs-loading') || + this.running || + (g && !c.collapsible) || + this._trigger('beforeActivate', b, k) === !1 || + ((c.active = !h && this.tabs.index(f)), + (this.active = g ? a() : f), + this.xhr && this.xhr.abort(), + j.length || + i.length || + a.error('jQuery UI Tabs: Mismatching fragment identifier.'), + i.length && this.load(this.tabs.index(f), b), + this._toggle(b, k)) + }, + _toggle: function (b, c) { + function g() { + ;(d.running = !1), d._trigger('activate', b, c) + } + function h() { + c.newTab.closest('li').addClass('ui-tabs-active ui-state-active'), + e.length && d.options.show + ? d._show(e, d.options.show, g) + : (e.show(), g()) + } + var d = this, + e = c.newPanel, + f = c.oldPanel + ;(this.running = !0), + f.length && this.options.hide + ? this._hide(f, this.options.hide, function () { + c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + h() + }) + : (c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + f.hide(), + h()), + f.attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + c.oldTab.attr('aria-selected', 'false'), + e.length && f.length + ? c.oldTab.attr('tabIndex', -1) + : e.length && + this.tabs + .filter(function () { + return 0 === a(this).attr('tabIndex') + }) + .attr('tabIndex', -1), + e.attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }), + c.newTab.attr({ 'aria-selected': 'true', tabIndex: 0 }) + }, + _activate: function (b) { + var c, + d = this._findActive(b) + d[0] !== this.active[0] && + (d.length || (d = this.active), + (c = d.find('.ui-tabs-anchor')[0]), + this._eventHandler({ + target: c, + currentTarget: c, + preventDefault: a.noop, + })) + }, + _findActive: function (b) { + return b === !1 ? a() : this.tabs.eq(b) + }, + _getIndex: function (a) { + return ( + 'string' == typeof a && + (a = this.anchors.index( + this.anchors.filter("[href$='" + a + "']") + )), + a + ) + }, + _destroy: function () { + this.xhr && this.xhr.abort(), + this.element.removeClass( + 'ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible' + ), + this.tablist + .removeClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .removeAttr('role'), + this.anchors + .removeClass('ui-tabs-anchor') + .removeAttr('role') + .removeAttr('tabIndex') + .removeUniqueId(), + this.tabs.add(this.panels).each(function () { + a.data(this, 'ui-tabs-destroy') + ? a(this).remove() + : a(this) + .removeClass( + 'ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel' + ) + .removeAttr('tabIndex') + .removeAttr('aria-live') + .removeAttr('aria-busy') + .removeAttr('aria-selected') + .removeAttr('aria-labelledby') + .removeAttr('aria-hidden') + .removeAttr('aria-expanded') + .removeAttr('role') + }), + this.tabs.each(function () { + var b = a(this), + c = b.data('ui-tabs-aria-controls') + c + ? b.attr('aria-controls', c).removeData('ui-tabs-aria-controls') + : b.removeAttr('aria-controls') + }), + this.panels.show(), + 'content' !== this.options.heightStyle && + this.panels.css('height', '') + }, + enable: function (c) { + var d = this.options.disabled + d !== !1 && + (c === b + ? (d = !1) + : ((c = this._getIndex(c)), + (d = a.isArray(d) + ? a.map(d, function (a) { + return a !== c ? a : null + }) + : a.map(this.tabs, function (a, b) { + return b !== c ? b : null + }))), + this._setupDisabled(d)) + }, + disable: function (c) { + var d = this.options.disabled + if (d !== !0) { + if (c === b) d = !0 + else { + if (((c = this._getIndex(c)), a.inArray(c, d) !== -1)) return + d = a.isArray(d) ? a.merge([c], d).sort() : [c] + } + this._setupDisabled(d) + } + }, + load: function (b, c) { + b = this._getIndex(b) + var d = this, + e = this.tabs.eq(b), + g = e.find('.ui-tabs-anchor'), + h = this._getPanelForTab(e), + i = { tab: e, panel: h } + f(g[0]) || + ((this.xhr = a.ajax(this._ajaxSettings(g, c, i))), + this.xhr && + 'canceled' !== this.xhr.statusText && + (e.addClass('ui-tabs-loading'), + h.attr('aria-busy', 'true'), + this.xhr + .success(function (a) { + setTimeout(function () { + h.html(a), d._trigger('load', c, i) + }, 1) + }) + .complete(function (a, b) { + setTimeout(function () { + 'abort' === b && d.panels.stop(!1, !0), + e.removeClass('ui-tabs-loading'), + h.removeAttr('aria-busy'), + a === d.xhr && delete d.xhr + }, 1) + }))) + }, + _ajaxSettings: function (b, c, d) { + var e = this + return { + url: b.attr('href'), + beforeSend: function (b, f) { + return e._trigger( + 'beforeLoad', + c, + a.extend({ jqXHR: b, ajaxSettings: f }, d) + ) + }, + } + }, + _getPanelForTab: function (b) { + var c = a(b).attr('aria-controls') + return this.element.find(this._sanitizeSelector('#' + c)) + }, + }) + })(jQuery), + (function (a) { + function c(b, c) { + var d = (b.attr('aria-describedby') || '').split(/\s+/) + d.push(c), + b.data('ui-tooltip-id', c).attr('aria-describedby', a.trim(d.join(' '))) + } + function d(b) { + var c = b.data('ui-tooltip-id'), + d = (b.attr('aria-describedby') || '').split(/\s+/), + e = a.inArray(c, d) + e !== -1 && d.splice(e, 1), + b.removeData('ui-tooltip-id'), + (d = a.trim(d.join(' '))), + d ? b.attr('aria-describedby', d) : b.removeAttr('aria-describedby') + } + var b = 0 + a.widget('ui.tooltip', { + version: '1.10.3', + options: { + content: function () { + var b = a(this).attr('title') || '' + return a('').text(b).html() + }, + hide: !0, + items: '[title]:not([disabled])', + position: { + my: 'left top+15', + at: 'left bottom', + collision: 'flipfit flip', + }, + show: !0, + tooltipClass: null, + track: !1, + close: null, + open: null, + }, + _create: function () { + this._on({ mouseover: 'open', focusin: 'open' }), + (this.tooltips = {}), + (this.parents = {}), + this.options.disabled && this._disable() + }, + _setOption: function (b, c) { + var d = this + return 'disabled' === b + ? (this[c ? '_disable' : '_enable'](), void (this.options[b] = c)) + : (this._super(b, c), + void ( + 'content' === b && + a.each(this.tooltips, function (a, b) { + d._updateContent(b) + }) + )) + }, + _disable: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), b.close(e, !0) + }), + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.is('[title]') && + b.data('ui-tooltip-title', b.attr('title')).attr('title', '') + }) + }, + _enable: function () { + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.data('ui-tooltip-title') && + b.attr('title', b.data('ui-tooltip-title')) + }) + }, + open: function (b) { + var c = this, + d = a(b ? b.target : this.element).closest(this.options.items) + d.length && + !d.data('ui-tooltip-id') && + (d.attr('title') && d.data('ui-tooltip-title', d.attr('title')), + d.data('ui-tooltip-open', !0), + b && + 'mouseover' === b.type && + d.parents().each(function () { + var d, + b = a(this) + b.data('ui-tooltip-open') && + ((d = a.Event('blur')), + (d.target = d.currentTarget = this), + c.close(d, !0)), + b.attr('title') && + (b.uniqueId(), + (c.parents[this.id] = { + element: this, + title: b.attr('title'), + }), + b.attr('title', '')) + }), + this._updateContent(d, b)) + }, + _updateContent: function (a, b) { + var c, + d = this.options.content, + e = this, + f = b ? b.type : null + return 'string' == typeof d + ? this._open(b, a, d) + : ((c = d.call(a[0], function (c) { + a.data('ui-tooltip-open') && + e._delay(function () { + b && (b.type = f), this._open(b, a, c) + }) + })), + void (c && this._open(b, a, c))) + }, + _open: function (b, d, e) { + function j(a) { + ;(i.of = a), f.is(':hidden') || f.position(i) + } + var f, + g, + h, + i = a.extend({}, this.options.position) + if (e) { + if (((f = this._find(d)), f.length)) + return void f.find('.ui-tooltip-content').html(e) + d.is('[title]') && + (b && 'mouseover' === b.type + ? d.attr('title', '') + : d.removeAttr('title')), + (f = this._tooltip(d)), + c(d, f.attr('id')), + f.find('.ui-tooltip-content').html(e), + this.options.track && b && /^mouse/.test(b.type) + ? (this._on(this.document, { mousemove: j }), j(b)) + : f.position(a.extend({ of: d }, this.options.position)), + f.hide(), + this._show(f, this.options.show), + this.options.show && + this.options.show.delay && + (h = this.delayedShow = + setInterval(function () { + f.is(':visible') && (j(i.of), clearInterval(h)) + }, a.fx.interval)), + this._trigger('open', b, { tooltip: f }), + (g = { + keyup: function (b) { + if (b.keyCode === a.ui.keyCode.ESCAPE) { + var c = a.Event(b) + ;(c.currentTarget = d[0]), this.close(c, !0) + } + }, + remove: function () { + this._removeTooltip(f) + }, + }), + (b && 'mouseover' !== b.type) || (g.mouseleave = 'close'), + (b && 'focusin' !== b.type) || (g.focusout = 'close'), + this._on(!0, d, g) + } + }, + close: function (b) { + var c = this, + e = a(b ? b.currentTarget : this.element), + f = this._find(e) + this.closing || + (clearInterval(this.delayedShow), + e.data('ui-tooltip-title') && + e.attr('title', e.data('ui-tooltip-title')), + d(e), + f.stop(!0), + this._hide(f, this.options.hide, function () { + c._removeTooltip(a(this)) + }), + e.removeData('ui-tooltip-open'), + this._off(e, 'mouseleave focusout keyup'), + e[0] !== this.element[0] && this._off(e, 'remove'), + this._off(this.document, 'mousemove'), + b && + 'mouseleave' === b.type && + a.each(this.parents, function (b, d) { + a(d.element).attr('title', d.title), delete c.parents[b] + }), + (this.closing = !0), + this._trigger('close', b, { tooltip: f }), + (this.closing = !1)) + }, + _tooltip: function (c) { + var d = 'ui-tooltip-' + b++, + e = a('
          ') + .attr({ id: d, role: 'tooltip' }) + .addClass( + 'ui-tooltip ui-widget ui-corner-all ui-widget-content ' + + (this.options.tooltipClass || '') + ) + return ( + a('
          ').addClass('ui-tooltip-content').appendTo(e), + e.appendTo(this.document[0].body), + (this.tooltips[d] = c), + e + ) + }, + _find: function (b) { + var c = b.data('ui-tooltip-id') + return c ? a('#' + c) : a() + }, + _removeTooltip: function (a) { + a.remove(), delete this.tooltips[a.attr('id')] + }, + _destroy: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), + b.close(e, !0), + a('#' + c).remove(), + d.data('ui-tooltip-title') && + (d.attr('title', d.data('ui-tooltip-title')), + d.removeData('ui-tooltip-title')) + }) + }, + }) + })( + jQuery + ) /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +;(function (r, G, f, v) { + var J = f('html'), + n = f(r), + p = f(G), + b = (f.fancybox = function () { + b.open.apply(this, arguments) + }), + I = navigator.userAgent.match(/msie/i), + B = null, + s = G.createTouch !== v, + t = function (a) { + return a && a.hasOwnProperty && a instanceof f + }, + q = function (a) { + return a && 'string' === f.type(a) + }, + E = function (a) { + return q(a) && 0 < a.indexOf('%') + }, + l = function (a, d) { + var e = parseInt(a, 10) || 0 + d && E(a) && (e *= b.getViewport()[d] / 100) + return Math.ceil(e) + }, + w = function (a, b) { + return l(a, b) + 'px' + } + f.extend(b, { + version: '2.1.5', + defaults: { + padding: 15, + margin: 20, + width: 800, + height: 600, + minWidth: 100, + minHeight: 100, + maxWidth: 9999, + maxHeight: 9999, + pixelRatio: 1, + autoSize: !0, + autoHeight: !1, + autoWidth: !1, + autoResize: !0, + autoCenter: !s, + fitToView: !0, + aspectRatio: !1, + topRatio: 0.5, + leftRatio: 0.5, + scrolling: 'auto', + wrapCSS: '', + arrows: !0, + closeBtn: !0, + closeClick: !1, + nextClick: !1, + mouseWheel: !0, + autoPlay: !1, + playSpeed: 3e3, + preload: 3, + modal: !1, + loop: !0, + ajax: { dataType: 'html', headers: { 'X-fancyBox': !0 } }, + iframe: { scrolling: 'auto', preload: !0 }, + swf: { + wmode: 'transparent', + allowfullscreen: 'true', + allowscriptaccess: 'always', + }, + keys: { + next: { 13: 'left', 34: 'up', 39: 'left', 40: 'up' }, + prev: { 8: 'right', 33: 'down', 37: 'right', 38: 'down' }, + close: [27], + play: [32], + toggle: [70], + }, + direction: { next: 'left', prev: 'right' }, + scrollOutside: !0, + index: 0, + type: null, + href: null, + content: null, + title: null, + tpl: { + wrap: '
          ', + image: '', + iframe: + '', + error: + '

          The requested content cannot be loaded.
          Please try again later.

          ', + closeBtn: + '
          ', + next: '', + prev: '', + }, + openEffect: 'fade', + openSpeed: 250, + openEasing: 'swing', + openOpacity: !0, + openMethod: 'zoomIn', + closeEffect: 'fade', + closeSpeed: 250, + closeEasing: 'swing', + closeOpacity: !0, + closeMethod: 'zoomOut', + nextEffect: 'elastic', + nextSpeed: 250, + nextEasing: 'swing', + nextMethod: 'changeIn', + prevEffect: 'elastic', + prevSpeed: 250, + prevEasing: 'swing', + prevMethod: 'changeOut', + helpers: { overlay: !0, title: !0 }, + onCancel: f.noop, + beforeLoad: f.noop, + afterLoad: f.noop, + beforeShow: f.noop, + afterShow: f.noop, + beforeChange: f.noop, + beforeClose: f.noop, + afterClose: f.noop, + }, + group: {}, + opts: {}, + previous: null, + coming: null, + current: null, + isActive: !1, + isOpen: !1, + isOpened: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + player: { timer: null, isActive: !1 }, + ajaxLoad: null, + imgPreload: null, + transitions: {}, + helpers: {}, + open: function (a, d) { + if (a && (f.isPlainObject(d) || (d = {}), !1 !== b.close(!0))) + return ( + f.isArray(a) || (a = t(a) ? f(a).get() : [a]), + f.each(a, function (e, c) { + var k = {}, + g, + h, + j, + m, + l + 'object' === f.type(c) && + (c.nodeType && (c = f(c)), + t(c) + ? ((k = { + href: c.data('fancybox-href') || c.attr('href'), + title: c.data('fancybox-title') || c.attr('title'), + isDom: !0, + element: c, + }), + f.metadata && f.extend(!0, k, c.metadata())) + : (k = c)) + g = d.href || k.href || (q(c) ? c : null) + h = d.title !== v ? d.title : k.title || '' + m = (j = d.content || k.content) ? 'html' : d.type || k.type + !m && + k.isDom && + ((m = c.data('fancybox-type')), + m || + (m = (m = c.prop('class').match(/fancybox\.(\w+)/)) + ? m[1] + : null)) + q(g) && + (m || + (b.isImage(g) + ? (m = 'image') + : b.isSWF(g) + ? (m = 'swf') + : '#' === g.charAt(0) + ? (m = 'inline') + : q(c) && ((m = 'html'), (j = c))), + 'ajax' === m && + ((l = g.split(/\s+/, 2)), (g = l.shift()), (l = l.shift()))) + j || + ('inline' === m + ? g + ? (j = f(q(g) ? g.replace(/.*(?=#[^\s]+$)/, '') : g)) + : k.isDom && (j = c) + : 'html' === m + ? (j = g) + : !m && !g && k.isDom && ((m = 'inline'), (j = c))) + f.extend(k, { href: g, type: m, content: j, title: h, selector: l }) + a[e] = k + }), + (b.opts = f.extend(!0, {}, b.defaults, d)), + d.keys !== v && + (b.opts.keys = d.keys ? f.extend({}, b.defaults.keys, d.keys) : !1), + (b.group = a), + b._start(b.opts.index) + ) + }, + cancel: function () { + var a = b.coming + a && + !1 !== b.trigger('onCancel') && + (b.hideLoading(), + b.ajaxLoad && b.ajaxLoad.abort(), + (b.ajaxLoad = null), + b.imgPreload && (b.imgPreload.onload = b.imgPreload.onerror = null), + a.wrap && a.wrap.stop(!0, !0).trigger('onReset').remove(), + (b.coming = null), + b.current || b._afterZoomOut(a)) + }, + close: function (a) { + b.cancel() + !1 !== b.trigger('beforeClose') && + (b.unbindEvents(), + b.isActive && + (!b.isOpen || !0 === a + ? (f('.fancybox-wrap').stop(!0).trigger('onReset').remove(), + b._afterZoomOut()) + : ((b.isOpen = b.isOpened = !1), + (b.isClosing = !0), + f('.fancybox-item, .fancybox-nav').remove(), + b.wrap.stop(!0, !0).removeClass('fancybox-opened'), + b.transitions[b.current.closeMethod]()))) + }, + play: function (a) { + var d = function () { + clearTimeout(b.player.timer) + }, + e = function () { + d() + b.current && + b.player.isActive && + (b.player.timer = setTimeout(b.next, b.current.playSpeed)) + }, + c = function () { + d() + p.unbind('.player') + b.player.isActive = !1 + b.trigger('onPlayEnd') + } + if (!0 === a || (!b.player.isActive && !1 !== a)) { + if ( + b.current && + (b.current.loop || b.current.index < b.group.length - 1) + ) + (b.player.isActive = !0), + p.bind({ + 'onCancel.player beforeClose.player': c, + 'onUpdate.player': e, + 'beforeLoad.player': d, + }), + e(), + b.trigger('onPlayStart') + } else c() + }, + next: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.next), b.jumpto(d.index + 1, a, 'next')) + }, + prev: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.prev), b.jumpto(d.index - 1, a, 'prev')) + }, + jumpto: function (a, d, e) { + var c = b.current + c && + ((a = l(a)), + (b.direction = d || c.direction[a >= c.index ? 'next' : 'prev']), + (b.router = e || 'jumpto'), + c.loop && + (0 > a && (a = c.group.length + (a % c.group.length)), + (a %= c.group.length)), + c.group[a] !== v && (b.cancel(), b._start(a))) + }, + reposition: function (a, d) { + var e = b.current, + c = e ? e.wrap : null, + k + c && + ((k = b._getPosition(d)), + a && 'scroll' === a.type + ? (delete k.position, c.stop(!0, !0).animate(k, 200)) + : (c.css(k), (e.pos = f.extend({}, e.dim, k)))) + }, + update: function (a) { + var d = a && a.type, + e = !d || 'orientationchange' === d + e && (clearTimeout(B), (B = null)) + b.isOpen && + !B && + (B = setTimeout( + function () { + var c = b.current + c && + !b.isClosing && + (b.wrap.removeClass('fancybox-tmp'), + (e || 'load' === d || ('resize' === d && c.autoResize)) && + b._setDimension(), + ('scroll' === d && c.canShrink) || b.reposition(a), + b.trigger('onUpdate'), + (B = null)) + }, + e && !s ? 0 : 300 + )) + }, + toggle: function (a) { + b.isOpen && + ((b.current.fitToView = + 'boolean' === f.type(a) ? a : !b.current.fitToView), + s && + (b.wrap.removeAttr('style').addClass('fancybox-tmp'), + b.trigger('onUpdate')), + b.update()) + }, + hideLoading: function () { + p.unbind('.loading') + f('#fancybox-loading').remove() + }, + showLoading: function () { + var a, d + b.hideLoading() + a = f('
          ') + .click(b.cancel) + .appendTo('body') + p.bind('keydown.loading', function (a) { + if (27 === (a.which || a.keyCode)) a.preventDefault(), b.cancel() + }) + b.defaults.fixed || + ((d = b.getViewport()), + a.css({ + position: 'absolute', + top: 0.5 * d.h + d.y, + left: 0.5 * d.w + d.x, + })) + }, + getViewport: function () { + var a = (b.current && b.current.locked) || !1, + d = { x: n.scrollLeft(), y: n.scrollTop() } + a + ? ((d.w = a[0].clientWidth), (d.h = a[0].clientHeight)) + : ((d.w = s && r.innerWidth ? r.innerWidth : n.width()), + (d.h = s && r.innerHeight ? r.innerHeight : n.height())) + return d + }, + unbindEvents: function () { + b.wrap && t(b.wrap) && b.wrap.unbind('.fb') + p.unbind('.fb') + n.unbind('.fb') + }, + bindEvents: function () { + var a = b.current, + d + a && + (n.bind( + 'orientationchange.fb' + + (s ? '' : ' resize.fb') + + (a.autoCenter && !a.locked ? ' scroll.fb' : ''), + b.update + ), + (d = a.keys) && + p.bind('keydown.fb', function (e) { + var c = e.which || e.keyCode, + k = e.target || e.srcElement + if (27 === c && b.coming) return !1 + !e.ctrlKey && + !e.altKey && + !e.shiftKey && + !e.metaKey && + (!k || (!k.type && !f(k).is('[contenteditable]'))) && + f.each(d, function (d, k) { + if (1 < a.group.length && k[c] !== v) + return b[d](k[c]), e.preventDefault(), !1 + if (-1 < f.inArray(c, k)) return b[d](), e.preventDefault(), !1 + }) + }), + f.fn.mousewheel && + a.mouseWheel && + b.wrap.bind('mousewheel.fb', function (d, c, k, g) { + for ( + var h = f(d.target || null), j = !1; + h.length && + !j && + !h.is('.fancybox-skin') && + !h.is('.fancybox-wrap'); + + ) + (j = + h[0] && + !(h[0].style.overflow && 'hidden' === h[0].style.overflow) && + ((h[0].clientWidth && h[0].scrollWidth > h[0].clientWidth) || + (h[0].clientHeight && + h[0].scrollHeight > h[0].clientHeight))), + (h = f(h).parent()) + if (0 !== c && !j && 1 < b.group.length && !a.canShrink) { + if (0 < g || 0 < k) b.prev(0 < g ? 'down' : 'left') + else if (0 > g || 0 > k) b.next(0 > g ? 'up' : 'right') + d.preventDefault() + } + })) + }, + trigger: function (a, d) { + var e, + c = d || b.coming || b.current + if (c) { + f.isFunction(c[a]) && + (e = c[a].apply(c, Array.prototype.slice.call(arguments, 1))) + if (!1 === e) return !1 + c.helpers && + f.each(c.helpers, function (d, e) { + if (e && b.helpers[d] && f.isFunction(b.helpers[d][a])) + b.helpers[d][a](f.extend(!0, {}, b.helpers[d].defaults, e), c) + }) + p.trigger(a) + } + }, + isImage: function (a) { + return ( + q(a) && + a.match( + /(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i + ) + ) + }, + isSWF: function (a) { + return q(a) && a.match(/\.(swf)((\?|#).*)?$/i) + }, + _start: function (a) { + var d = {}, + e, + c + a = l(a) + e = b.group[a] || null + if (!e) return !1 + d = f.extend(!0, {}, b.opts, e) + e = d.margin + c = d.padding + 'number' === f.type(e) && (d.margin = [e, e, e, e]) + 'number' === f.type(c) && (d.padding = [c, c, c, c]) + d.modal && + f.extend(!0, d, { + closeBtn: !1, + closeClick: !1, + nextClick: !1, + arrows: !1, + mouseWheel: !1, + keys: null, + helpers: { overlay: { closeClick: !1 } }, + }) + d.autoSize && (d.autoWidth = d.autoHeight = !0) + 'auto' === d.width && (d.autoWidth = !0) + 'auto' === d.height && (d.autoHeight = !0) + d.group = b.group + d.index = a + b.coming = d + if (!1 === b.trigger('beforeLoad')) b.coming = null + else { + c = d.type + e = d.href + if (!c) + return ( + (b.coming = null), + b.current && b.router && 'jumpto' !== b.router + ? ((b.current.index = a), b[b.router](b.direction)) + : !1 + ) + b.isActive = !0 + if ('image' === c || 'swf' === c) + (d.autoHeight = d.autoWidth = !1), (d.scrolling = 'visible') + 'image' === c && (d.aspectRatio = !0) + 'iframe' === c && s && (d.scrolling = 'scroll') + d.wrap = f(d.tpl.wrap) + .addClass( + 'fancybox-' + + (s ? 'mobile' : 'desktop') + + ' fancybox-type-' + + c + + ' fancybox-tmp ' + + d.wrapCSS + ) + .appendTo(d.parent || 'body') + f.extend(d, { + skin: f('.fancybox-skin', d.wrap), + outer: f('.fancybox-outer', d.wrap), + inner: f('.fancybox-inner', d.wrap), + }) + f.each(['Top', 'Right', 'Bottom', 'Left'], function (a, b) { + d.skin.css('padding' + b, w(d.padding[a])) + }) + b.trigger('onReady') + if ('inline' === c || 'html' === c) { + if (!d.content || !d.content.length) return b._error('content') + } else if (!e) return b._error('href') + 'image' === c + ? b._loadImage() + : 'ajax' === c + ? b._loadAjax() + : 'iframe' === c + ? b._loadIframe() + : b._afterLoad() + } + }, + _error: function (a) { + f.extend(b.coming, { + type: 'html', + autoWidth: !0, + autoHeight: !0, + minWidth: 0, + minHeight: 0, + scrolling: 'no', + hasError: a, + content: b.coming.tpl.error, + }) + b._afterLoad() + }, + _loadImage: function () { + var a = (b.imgPreload = new Image()) + a.onload = function () { + this.onload = this.onerror = null + b.coming.width = this.width / b.opts.pixelRatio + b.coming.height = this.height / b.opts.pixelRatio + b._afterLoad() + } + a.onerror = function () { + this.onload = this.onerror = null + b._error('image') + } + a.src = b.coming.href + !0 !== a.complete && b.showLoading() + }, + _loadAjax: function () { + var a = b.coming + b.showLoading() + b.ajaxLoad = f.ajax( + f.extend({}, a.ajax, { + url: a.href, + error: function (a, e) { + b.coming && 'abort' !== e ? b._error('ajax', a) : b.hideLoading() + }, + success: function (d, e) { + 'success' === e && ((a.content = d), b._afterLoad()) + }, + }) + ) + }, + _loadIframe: function () { + var a = b.coming, + d = f(a.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())) + .attr('scrolling', s ? 'auto' : a.iframe.scrolling) + .attr('src', a.href) + f(a.wrap).bind('onReset', function () { + try { + f(this) + .find('iframe') + .hide() + .attr('src', '//about:blank') + .end() + .empty() + } catch (a) {} + }) + a.iframe.preload && + (b.showLoading(), + d.one('load', function () { + f(this).data('ready', 1) + s || f(this).bind('load.fb', b.update) + f(this) + .parents('.fancybox-wrap') + .width('100%') + .removeClass('fancybox-tmp') + .show() + b._afterLoad() + })) + a.content = d.appendTo(a.inner) + a.iframe.preload || b._afterLoad() + }, + _preloadImages: function () { + var a = b.group, + d = b.current, + e = a.length, + c = d.preload ? Math.min(d.preload, e - 1) : 0, + f, + g + for (g = 1; g <= c; g += 1) + (f = a[(d.index + g) % e]), + 'image' === f.type && f.href && (new Image().src = f.href) + }, + _afterLoad: function () { + var a = b.coming, + d = b.current, + e, + c, + k, + g, + h + b.hideLoading() + if (a && !1 !== b.isActive) + if (!1 === b.trigger('afterLoad', a, d)) + a.wrap.stop(!0).trigger('onReset').remove(), (b.coming = null) + else { + d && + (b.trigger('beforeChange', d), + d.wrap + .stop(!0) + .removeClass('fancybox-opened') + .find('.fancybox-item, .fancybox-nav') + .remove()) + b.unbindEvents() + e = a.content + c = a.type + k = a.scrolling + f.extend(b, { + wrap: a.wrap, + skin: a.skin, + outer: a.outer, + inner: a.inner, + current: a, + previous: d, + }) + g = a.href + switch (c) { + case 'inline': + case 'ajax': + case 'html': + a.selector + ? (e = f('
          ').html(e).find(a.selector)) + : t(e) && + (e.data('fancybox-placeholder') || + e.data( + 'fancybox-placeholder', + f('
          ') + .insertAfter(e) + .hide() + ), + (e = e.show().detach()), + a.wrap.bind('onReset', function () { + f(this).find(e).length && + e + .hide() + .replaceAll(e.data('fancybox-placeholder')) + .data('fancybox-placeholder', !1) + })) + break + case 'image': + e = a.tpl.image.replace('{href}', g) + break + case 'swf': + ;(e = + ''), + (h = ''), + f.each(a.swf, function (a, b) { + e += '' + h += ' ' + a + '="' + b + '"' + }), + (e += + '') + } + ;(!t(e) || !e.parent().is(a.inner)) && a.inner.append(e) + b.trigger('beforeShow') + a.inner.css( + 'overflow', + 'yes' === k ? 'scroll' : 'no' === k ? 'hidden' : k + ) + b._setDimension() + b.reposition() + b.isOpen = !1 + b.coming = null + b.bindEvents() + if (b.isOpened) { + if (d.prevMethod) b.transitions[d.prevMethod]() + } else + f('.fancybox-wrap').not(a.wrap).stop(!0).trigger('onReset').remove() + b.transitions[b.isOpened ? a.nextMethod : a.openMethod]() + b._preloadImages() + } + }, + _setDimension: function () { + var a = b.getViewport(), + d = 0, + e = !1, + c = !1, + e = b.wrap, + k = b.skin, + g = b.inner, + h = b.current, + c = h.width, + j = h.height, + m = h.minWidth, + u = h.minHeight, + n = h.maxWidth, + p = h.maxHeight, + s = h.scrolling, + q = h.scrollOutside ? h.scrollbarWidth : 0, + x = h.margin, + y = l(x[1] + x[3]), + r = l(x[0] + x[2]), + v, + z, + t, + C, + A, + F, + B, + D, + H + e.add(k).add(g).width('auto').height('auto').removeClass('fancybox-tmp') + x = l(k.outerWidth(!0) - k.width()) + v = l(k.outerHeight(!0) - k.height()) + z = y + x + t = r + v + C = E(c) ? ((a.w - z) * l(c)) / 100 : c + A = E(j) ? ((a.h - t) * l(j)) / 100 : j + if ('iframe' === h.type) { + if (((H = h.content), h.autoHeight && 1 === H.data('ready'))) + try { + H[0].contentWindow.document.location && + (g.width(C).height(9999), + (F = H.contents().find('body')), + q && F.css('overflow-x', 'hidden'), + (A = F.outerHeight(!0))) + } catch (G) {} + } else if (h.autoWidth || h.autoHeight) + g.addClass('fancybox-tmp'), + h.autoWidth || g.width(C), + h.autoHeight || g.height(A), + h.autoWidth && (C = g.width()), + h.autoHeight && (A = g.height()), + g.removeClass('fancybox-tmp') + c = l(C) + j = l(A) + D = C / A + m = l(E(m) ? l(m, 'w') - z : m) + n = l(E(n) ? l(n, 'w') - z : n) + u = l(E(u) ? l(u, 'h') - t : u) + p = l(E(p) ? l(p, 'h') - t : p) + F = n + B = p + h.fitToView && ((n = Math.min(a.w - z, n)), (p = Math.min(a.h - t, p))) + z = a.w - y + r = a.h - r + h.aspectRatio + ? (c > n && ((c = n), (j = l(c / D))), + j > p && ((j = p), (c = l(j * D))), + c < m && ((c = m), (j = l(c / D))), + j < u && ((j = u), (c = l(j * D)))) + : ((c = Math.max(m, Math.min(c, n))), + h.autoHeight && 'iframe' !== h.type && (g.width(c), (j = g.height())), + (j = Math.max(u, Math.min(j, p)))) + if (h.fitToView) + if ( + (g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()), + h.aspectRatio) + ) + for (; (a > z || y > r) && c > m && j > u && !(19 < d++); ) + (j = Math.max(u, Math.min(p, j - 10))), + (c = l(j * D)), + c < m && ((c = m), (j = l(c / D))), + c > n && ((c = n), (j = l(c / D))), + g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()) + else + (c = Math.max(m, Math.min(c, c - (a - z)))), + (j = Math.max(u, Math.min(j, j - (y - r)))) + q && 'auto' === s && j < A && c + x + q < z && (c += q) + g.width(c).height(j) + e.width(c + x) + a = e.width() + y = e.height() + e = (a > z || y > r) && c > m && j > u + c = h.aspectRatio + ? c < F && j < B && c < C && j < A + : (c < F || j < B) && (c < C || j < A) + f.extend(h, { + dim: { width: w(a), height: w(y) }, + origWidth: C, + origHeight: A, + canShrink: e, + canExpand: c, + wPadding: x, + hPadding: v, + wrapSpace: y - k.outerHeight(!0), + skinSpace: k.height() - j, + }) + !H && h.autoHeight && j > u && j < p && !c && g.height('auto') + }, + _getPosition: function (a) { + var d = b.current, + e = b.getViewport(), + c = d.margin, + f = b.wrap.width() + c[1] + c[3], + g = b.wrap.height() + c[0] + c[2], + c = { position: 'absolute', top: c[0], left: c[3] } + d.autoCenter && d.fixed && !a && g <= e.h && f <= e.w + ? (c.position = 'fixed') + : d.locked || ((c.top += e.y), (c.left += e.x)) + c.top = w(Math.max(c.top, c.top + (e.h - g) * d.topRatio)) + c.left = w(Math.max(c.left, c.left + (e.w - f) * d.leftRatio)) + return c + }, + _afterZoomIn: function () { + var a = b.current + a && + ((b.isOpen = b.isOpened = !0), + b.wrap.css('overflow', 'visible').addClass('fancybox-opened'), + b.update(), + (a.closeClick || (a.nextClick && 1 < b.group.length)) && + b.inner.css('cursor', 'pointer').bind('click.fb', function (d) { + !f(d.target).is('a') && + !f(d.target).parent().is('a') && + (d.preventDefault(), b[a.closeClick ? 'close' : 'next']()) + }), + a.closeBtn && + f(a.tpl.closeBtn) + .appendTo(b.skin) + .bind('click.fb', function (a) { + a.preventDefault() + b.close() + }), + a.arrows && + 1 < b.group.length && + ((a.loop || 0 < a.index) && + f(a.tpl.prev).appendTo(b.outer).bind('click.fb', b.prev), + (a.loop || a.index < b.group.length - 1) && + f(a.tpl.next).appendTo(b.outer).bind('click.fb', b.next)), + b.trigger('afterShow'), + !a.loop && a.index === a.group.length - 1 + ? b.play(!1) + : b.opts.autoPlay && + !b.player.isActive && + ((b.opts.autoPlay = !1), b.play())) + }, + _afterZoomOut: function (a) { + a = a || b.current + f('.fancybox-wrap').trigger('onReset').remove() + f.extend(b, { + group: {}, + opts: {}, + router: !1, + current: null, + isActive: !1, + isOpened: !1, + isOpen: !1, + isClosing: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + }) + b.trigger('afterClose', a) + }, + }) + b.transitions = { + getOrigPosition: function () { + var a = b.current, + d = a.element, + e = a.orig, + c = {}, + f = 50, + g = 50, + h = a.hPadding, + j = a.wPadding, + m = b.getViewport() + !e && + a.isDom && + d.is(':visible') && + ((e = d.find('img:first')), e.length || (e = d)) + t(e) + ? ((c = e.offset()), + e.is('img') && ((f = e.outerWidth()), (g = e.outerHeight()))) + : ((c.top = m.y + (m.h - g) * a.topRatio), + (c.left = m.x + (m.w - f) * a.leftRatio)) + if ('fixed' === b.wrap.css('position') || a.locked) + (c.top -= m.y), (c.left -= m.x) + return (c = { + top: w(c.top - h * a.topRatio), + left: w(c.left - j * a.leftRatio), + width: w(f + j), + height: w(g + h), + }) + }, + step: function (a, d) { + var e, + c, + f = d.prop + c = b.current + var g = c.wrapSpace, + h = c.skinSpace + if ('width' === f || 'height' === f) + (e = d.end === d.start ? 1 : (a - d.start) / (d.end - d.start)), + b.isClosing && (e = 1 - e), + (c = 'width' === f ? c.wPadding : c.hPadding), + (c = a - c), + b.skin[f](l('width' === f ? c : c - g * e)), + b.inner[f](l('width' === f ? c : c - g * e - h * e)) + }, + zoomIn: function () { + var a = b.current, + d = a.pos, + e = a.openEffect, + c = 'elastic' === e, + k = f.extend({ opacity: 1 }, d) + delete k.position + c + ? ((d = this.getOrigPosition()), a.openOpacity && (d.opacity = 0.1)) + : 'fade' === e && (d.opacity = 0.1) + b.wrap + .css(d) + .animate(k, { + duration: 'none' === e ? 0 : a.openSpeed, + easing: a.openEasing, + step: c ? this.step : null, + complete: b._afterZoomIn, + }) + }, + zoomOut: function () { + var a = b.current, + d = a.closeEffect, + e = 'elastic' === d, + c = { opacity: 0.1 } + e && ((c = this.getOrigPosition()), a.closeOpacity && (c.opacity = 0.1)) + b.wrap.animate(c, { + duration: 'none' === d ? 0 : a.closeSpeed, + easing: a.closeEasing, + step: e ? this.step : null, + complete: b._afterZoomOut, + }) + }, + changeIn: function () { + var a = b.current, + d = a.nextEffect, + e = a.pos, + c = { opacity: 1 }, + f = b.direction, + g + e.opacity = 0.1 + 'elastic' === d && + ((g = 'down' === f || 'up' === f ? 'top' : 'left'), + 'down' === f || 'right' === f + ? ((e[g] = w(l(e[g]) - 200)), (c[g] = '+=200px')) + : ((e[g] = w(l(e[g]) + 200)), (c[g] = '-=200px'))) + 'none' === d + ? b._afterZoomIn() + : b.wrap + .css(e) + .animate(c, { + duration: a.nextSpeed, + easing: a.nextEasing, + complete: b._afterZoomIn, + }) + }, + changeOut: function () { + var a = b.previous, + d = a.prevEffect, + e = { opacity: 0.1 }, + c = b.direction + 'elastic' === d && + (e['down' === c || 'up' === c ? 'top' : 'left'] = + ('up' === c || 'left' === c ? '-' : '+') + '=200px') + a.wrap.animate(e, { + duration: 'none' === d ? 0 : a.prevSpeed, + easing: a.prevEasing, + complete: function () { + f(this).trigger('onReset').remove() + }, + }) + }, + } + b.helpers.overlay = { + defaults: { + closeClick: !0, + speedOut: 200, + showEarly: !0, + css: {}, + locked: !s, + fixed: !0, + }, + overlay: null, + fixed: !1, + el: f('html'), + create: function (a) { + a = f.extend({}, this.defaults, a) + this.overlay && this.close() + this.overlay = f('
          ').appendTo( + b.coming ? b.coming.parent : a.parent + ) + this.fixed = !1 + a.fixed && + b.defaults.fixed && + (this.overlay.addClass('fancybox-overlay-fixed'), (this.fixed = !0)) + }, + open: function (a) { + var d = this + a = f.extend({}, this.defaults, a) + this.overlay + ? this.overlay.unbind('.overlay').width('auto').height('auto') + : this.create(a) + this.fixed || + (n.bind('resize.overlay', f.proxy(this.update, this)), this.update()) + a.closeClick && + this.overlay.bind('click.overlay', function (a) { + if (f(a.target).hasClass('fancybox-overlay')) + return b.isActive ? b.close() : d.close(), !1 + }) + this.overlay.css(a.css).show() + }, + close: function () { + var a, b + n.unbind('resize.overlay') + this.el.hasClass('fancybox-lock') && + (f('.fancybox-margin').removeClass('fancybox-margin'), + (a = n.scrollTop()), + (b = n.scrollLeft()), + this.el.removeClass('fancybox-lock'), + n.scrollTop(a).scrollLeft(b)) + f('.fancybox-overlay').remove().hide() + f.extend(this, { overlay: null, fixed: !1 }) + }, + update: function () { + var a = '100%', + b + this.overlay.width(a).height('100%') + I + ? ((b = Math.max(G.documentElement.offsetWidth, G.body.offsetWidth)), + p.width() > b && (a = p.width())) + : p.width() > n.width() && (a = p.width()) + this.overlay.width(a).height(p.height()) + }, + onReady: function (a, b) { + var e = this.overlay + f('.fancybox-overlay').stop(!0, !0) + e || this.create(a) + a.locked && + this.fixed && + b.fixed && + (e || + (this.margin = + p.height() > n.height() + ? f('html').css('margin-right').replace('px', '') + : !1), + (b.locked = this.overlay.append(b.wrap)), + (b.fixed = !1)) + !0 === a.showEarly && this.beforeShow.apply(this, arguments) + }, + beforeShow: function (a, b) { + var e, c + b.locked && + (!1 !== this.margin && + (f('*') + .filter(function () { + return ( + 'fixed' === f(this).css('position') && + !f(this).hasClass('fancybox-overlay') && + !f(this).hasClass('fancybox-wrap') + ) + }) + .addClass('fancybox-margin'), + this.el.addClass('fancybox-margin')), + (e = n.scrollTop()), + (c = n.scrollLeft()), + this.el.addClass('fancybox-lock'), + n.scrollTop(e).scrollLeft(c)) + this.open(a) + }, + onUpdate: function () { + this.fixed || this.update() + }, + afterClose: function (a) { + this.overlay && + !b.coming && + this.overlay.fadeOut(a.speedOut, f.proxy(this.close, this)) + }, + } + b.helpers.title = { + defaults: { type: 'float', position: 'bottom' }, + beforeShow: function (a) { + var d = b.current, + e = d.title, + c = a.type + f.isFunction(e) && (e = e.call(d.element, d)) + if (q(e) && '' !== f.trim(e)) { + d = f( + '
          ' + + e + + '
          ' + ) + switch (c) { + case 'inside': + c = b.skin + break + case 'outside': + c = b.wrap + break + case 'over': + c = b.inner + break + default: + ;(c = b.skin), + d.appendTo('body'), + I && d.width(d.width()), + d.wrapInner(''), + (b.current.margin[2] += Math.abs(l(d.css('margin-bottom')))) + } + d['top' === a.position ? 'prependTo' : 'appendTo'](c) + } + }, + } + f.fn.fancybox = function (a) { + var d, + e = f(this), + c = this.selector || '', + k = function (g) { + var h = f(this).blur(), + j = d, + k, + l + !g.ctrlKey && + !g.altKey && + !g.shiftKey && + !g.metaKey && + !h.is('.fancybox-wrap') && + ((k = a.groupAttr || 'data-fancybox-group'), + (l = h.attr(k)), + l || ((k = 'rel'), (l = h.get(0)[k])), + l && + '' !== l && + 'nofollow' !== l && + ((h = c.length ? f(c) : e), + (h = h.filter('[' + k + '="' + l + '"]')), + (j = h.index(this))), + (a.index = j), + !1 !== b.open(h, a) && g.preventDefault()) + } + a = a || {} + d = a.index || 0 + !c || !1 === a.live + ? e.unbind('click.fb-start').bind('click.fb-start', k) + : p + .undelegate(c, 'click.fb-start') + .delegate( + c + ":not('.fancybox-item, .fancybox-nav')", + 'click.fb-start', + k + ) + this.filter('[data-fancybox-start=1]').trigger('click') + return this + } + p.ready(function () { + var a, d + f.scrollbarWidth === v && + (f.scrollbarWidth = function () { + var a = f( + '
          ' + ).appendTo('body'), + b = a.children(), + b = b.innerWidth() - b.height(99).innerWidth() + a.remove() + return b + }) + if (f.support.fixedPosition === v) { + a = f.support + d = f('
          ').appendTo('body') + var e = 20 === d[0].offsetTop || 15 === d[0].offsetTop + d.remove() + a.fixedPosition = e + } + f.extend(b.defaults, { + scrollbarWidth: f.scrollbarWidth(), + fixed: f.support.fixedPosition, + parent: f('body'), + }) + a = f(r).width() + J.addClass('fancybox-lock-test') + d = f(r).width() + J.removeClass('fancybox-lock-test') + f( + "' + ).appendTo('head') + }) +})(window, document, jQuery) +;(function () { + 'use strict' + var $, + Animation, + Growl, + __bind = function (fn, me) { + return function () { + return fn.apply(me, arguments) + } + } + $ = jQuery + Animation = (function () { + function Animation() {} + Animation.transitions = { + webkitTransition: 'webkitTransitionEnd', + mozTransition: 'mozTransitionEnd', + oTransition: 'oTransitionEnd', + transition: 'transitionend', + } + Animation.transition = function ($el) { + var el, result, type, _ref + el = $el[0] + _ref = this.transitions + for (type in _ref) { + result = _ref[type] + if (el.style[type] != null) { + return result + } + } + } + return Animation + })() + Growl = (function () { + Growl.settings = { + namespace: 'growl', + duration: 1000, + close: '×', + location: 'default', + style: 'default', + size: 'medium', + } + Growl.growl = function (settings) { + if (settings == null) { + settings = {} + } + this.initialize() + return new Growl(settings) + } + Growl.initialize = function () { + return $('body:not(:has(#growls))').append('
          ') + } + function Growl(settings) { + if (settings == null) { + settings = {} + } + this.html = __bind(this.html, this) + this.$growl = __bind(this.$growl, this) + this.$growls = __bind(this.$growls, this) + this.animate = __bind(this.animate, this) + this.remove = __bind(this.remove, this) + this.dismiss = __bind(this.dismiss, this) + this.present = __bind(this.present, this) + this.close = __bind(this.close, this) + this.cycle = __bind(this.cycle, this) + this.unbind = __bind(this.unbind, this) + this.bind = __bind(this.bind, this) + this.render = __bind(this.render, this) + this.settings = $.extend({}, Growl.settings, settings) + this.$growls().attr('class', this.settings.location) + this.render() + } + Growl.prototype.render = function () { + var $growl + $growl = this.$growl() + this.$growls().append($growl) + this.cycle($growl) + } + Growl.prototype.bind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + this.settings.namespace + '-close') + .on('click', this.close) + } + Growl.prototype.unbind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + (this.settings.namespace - close)) + .off('click', this.close) + } + Growl.prototype.cycle = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .queue(this.present) + .delay(this.settings.duration) + .queue(this.dismiss) + .queue(this.remove) + } + Growl.prototype.close = function (event) { + var $growl + event.preventDefault() + event.stopPropagation() + $growl = this.$growl() + return $growl.stop().queue(this.dismiss).queue(this.remove) + } + Growl.prototype.present = function (callback) { + var $growl + $growl = this.$growl() + this.bind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-incoming', + 'out', + callback + ) + } + Growl.prototype.dismiss = function (callback) { + var $growl + $growl = this.$growl() + this.unbind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-outgoing', + 'in', + callback + ) + } + Growl.prototype.remove = function (callback) { + this.$growl().remove() + return callback() + } + Growl.prototype.animate = function ($element, name, direction, callback) { + var transition + if (direction == null) { + direction = 'in' + } + transition = Animation.transition($element) + $element[direction === 'in' ? 'removeClass' : 'addClass'](name) + $element.offset().position + $element[direction === 'in' ? 'addClass' : 'removeClass'](name) + if (callback == null) { + return + } + if (transition != null) { + $element.one(transition, callback) + } else { + callback() + } + } + Growl.prototype.$growls = function () { + return this.$_growls != null + ? this.$_growls + : (this.$_growls = $('#growls')) + } + Growl.prototype.$growl = function () { + return this.$_growl != null + ? this.$_growl + : (this.$_growl = $(this.html())) + } + Growl.prototype.html = function () { + return ( + "
          \n
          " + + this.settings.close + + "
          \n
          " + + this.settings.title + + "
          \n
          " + + this.settings.message + + '
          \n
          ' + ) + } + return Growl + })() + $.growl = function (options) { + if (options == null) { + options = {} + } + return Growl.growl(options) + } + $.growl.error = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Error!', style: 'error' } + return $.growl($.extend(settings, options)) + } + $.growl.notice = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Notice!', style: 'notice' } + return $.growl($.extend(settings, options)) + } + $.growl.warning = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Warning!', style: 'warning' } + return $.growl($.extend(settings, options)) + } +}).call(this) +;(function (k) { + 'use strict' + k(['jquery'], function ($) { + var j = ($.scrollTo = function (a, b, c) { + return $(window).scrollTo(a, b, c) + }) + j.defaults = { axis: 'xy', duration: 0, limit: !0 } + j.window = function (a) { + return $(window)._scrollable() + } + $.fn._scrollable = function () { + return this.map(function () { + var a = this, + isWin = + !a.nodeName || + $.inArray(a.nodeName.toLowerCase(), [ + 'iframe', + '#document', + 'html', + 'body', + ]) != -1 + if (!isWin) return a + var b = (a.contentWindow || a).document || a.ownerDocument || a + return /webkit/i.test(navigator.userAgent) || + b.compatMode == 'BackCompat' + ? b.body + : b.documentElement + }) + } + $.fn.scrollTo = function (f, g, h) { + if (typeof g == 'object') { + h = g + g = 0 + } + if (typeof h == 'function') h = { onAfter: h } + if (f == 'max') f = 9e9 + h = $.extend({}, j.defaults, h) + g = g || h.duration + h.queue = h.queue && h.axis.length > 1 + if (h.queue) g /= 2 + h.offset = both(h.offset) + h.over = both(h.over) + return this._scrollable() + .each(function () { + if (f == null) return + var d = this, + $elem = $(d), + targ = f, + toff, + attr = {}, + win = $elem.is('html,body') + switch (typeof targ) { + case 'number': + case 'string': + if (/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)) { + targ = both(targ) + break + } + targ = win ? $(targ) : $(targ, this) + if (!targ.length) return + case 'object': + if (targ.is || targ.style) toff = (targ = $(targ)).offset() + } + var e = ($.isFunction(h.offset) && h.offset(d, targ)) || h.offset + $.each(h.axis.split(''), function (i, a) { + var b = a == 'x' ? 'Left' : 'Top', + pos = b.toLowerCase(), + key = 'scroll' + b, + old = d[key], + max = j.max(d, a) + if (toff) { + attr[key] = toff[pos] + (win ? 0 : old - $elem.offset()[pos]) + if (h.margin) { + attr[key] -= parseInt(targ.css('margin' + b)) || 0 + attr[key] -= parseInt(targ.css('border' + b + 'Width')) || 0 + } + attr[key] += e[pos] || 0 + if (h.over[pos]) + attr[key] += targ[a == 'x' ? 'width' : 'height']() * h.over[pos] + } else { + var c = targ[pos] + attr[key] = + c.slice && c.slice(-1) == '%' ? (parseFloat(c) / 100) * max : c + } + if (h.limit && /^\d+$/.test(attr[key])) + attr[key] = attr[key] <= 0 ? 0 : Math.min(attr[key], max) + if (!i && h.queue) { + if (old != attr[key]) animate(h.onAfterFirst) + delete attr[key] + } + }) + animate(h.onAfter) + function animate(a) { + $elem.animate( + attr, + g, + h.easing, + a && + function () { + a.call(this, targ, h) + } + ) + } + }) + .end() + } + j.max = function (a, b) { + var c = b == 'x' ? 'Width' : 'Height', + scroll = 'scroll' + c + if (!$(a).is('html,body')) return a[scroll] - $(a)[c.toLowerCase()]() + var d = 'client' + c, + html = a.ownerDocument.documentElement, + body = a.ownerDocument.body + return Math.max(html[scroll], body[scroll]) - Math.min(html[d], body[d]) + } + function both(a) { + return $.isFunction(a) || $.isPlainObject(a) ? a : { top: a, left: a } + } + return j + }) +})( + typeof define === 'function' && define.amd + ? define + : function (a, b) { + if (typeof module !== 'undefined' && module.exports) { + module.exports = b(require('jquery')) + } else { + b(jQuery) + } + } +) +;(function (a) { + var b = (a.serialScroll = function (c) { + return a(window).serialScroll(c) + }) + b.defaults = { + duration: 1e3, + axis: 'x', + event: 'click', + start: 0, + step: 1, + lock: !0, + cycle: !0, + constant: !0, + } + a.fn.serialScroll = function (c) { + return this.each(function () { + var t = a.extend({}, b.defaults, c), + s = t.event, + i = t.step, + r = t.lazy, + e = t.target ? this : document, + u = a(t.target || this, e), + p = u[0], + m = t.items, + h = t.start, + g = t.interval, + k = t.navigation, + l + if (!r) { + m = d() + } + if (t.force) { + f({}, h) + } + a(t.prev || [], e).bind(s, -i, q) + a(t.next || [], e).bind(s, i, q) + if (!p.ssbound) { + u.bind('prev.serialScroll', -i, q) + .bind('next.serialScroll', i, q) + .bind('goto.serialScroll', f) + } + if (g) { + u.bind('start.serialScroll', function (v) { + if (!g) { + o() + g = !0 + n() + } + }).bind('stop.serialScroll', function () { + o() + g = !1 + }) + } + u.bind('notify.serialScroll', function (x, w) { + var v = j(w) + if (v > -1) { + h = v + } + }) + p.ssbound = !0 + if (t.jump) { + ;(r ? u : d()).bind(s, function (v) { + f(v, j(v.target)) + }) + } + if (k) { + k = a(k, e).bind(s, function (v) { + v.data = Math.round(d().length / k.length) * k.index(this) + f(v, this) + }) + } + function q(v) { + v.data += h + f(v, this) + } + function f(B, z) { + if (!isNaN(z)) { + B.data = z + z = p + } + var C = B.data, + v, + D = B.type, + A = t.exclude ? d().slice(0, -t.exclude) : d(), + y = A.length, + w = A[C], + x = t.duration + if (D) { + B.preventDefault() + } + if (g) { + o() + l = setTimeout(n, t.interval) + } + if (!w) { + v = C < 0 ? 0 : y - 1 + if (h != v) { + C = v + } else { + if (!t.cycle) { + return + } else { + C = y - v - 1 + } + } + w = A[C] + } + if ( + !w || + (t.lock && u.is(':animated')) || + (D && t.onBefore && t.onBefore(B, w, u, d(), C) === !1) + ) { + return + } + if (t.stop) { + u.queue('fx', []).stop() + } + if (t.constant) { + x = Math.abs((x / i) * (h - C)) + } + u.scrollTo(w, x, t).trigger('notify.serialScroll', [C]) + } + function n() { + u.trigger('next.serialScroll') + } + function o() { + clearTimeout(l) + } + function d() { + return a(m, p) + } + function j(w) { + if (!isNaN(w)) { + return w + } + var x = d(), + v + while ((v = x.index(w)) == -1 && w != p) { + w = w.parentNode + } + return v + } + }) + } +})(jQuery) +/*! * jQuery Cookie Plugin * https://github.com/carhartl/jquery-cookie * @@ -1824,11 +96213,48 @@ settings={title:"Warning!",style:"warning"};return $.growl($.extend(settings,opt * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ -(function($){$.cookie=function(key,value,options){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(value))||value===null||value===undefined)){options=$.extend({},options);if(value===null||value===undefined){options.expires=-1} -if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days)} -value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))} -options=value||{};var decode=options.raw?function(s){return s}:decodeURIComponent;var pairs=document.cookie.split('; ');for(var i=0,pair;pair=pairs[i]&&pairs[i].split('=');i++){if(decode(pair[0])===key)return decode(pair[1]||'')} -return null}})(jQuery);/* +;(function ($) { + $.cookie = function (key, value, options) { + if ( + arguments.length > 1 && + (!/Object/.test(Object.prototype.toString.call(value)) || + value === null || + value === undefined) + ) { + options = $.extend({}, options) + if (value === null || value === undefined) { + options.expires = -1 + } + if (typeof options.expires === 'number') { + var days = options.expires, + t = (options.expires = new Date()) + t.setDate(t.getDate() + days) + } + value = String(value) + return (document.cookie = [ + encodeURIComponent(key), + '=', + options.raw ? value : encodeURIComponent(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '', + ].join('')) + } + options = value || {} + var decode = options.raw + ? function (s) { + return s + } + : decodeURIComponent + var pairs = document.cookie.split('; ') + for (var i = 0, pair; (pair = pairs[i] && pairs[i].split('=')); i++) { + if (decode(pair[0]) === key) return decode(pair[1] || '') + } + return null + } +})(jQuery) +/* * NOTICE OF LICENSE * * This product is licensed for one customer to use on one installation (test stores and multishop included). @@ -1847,371 +96273,11180 @@ return null}})(jQuery);/* * @copyright 2022 idnovate.com * @license See above */ -(function($,F){F.transitions.dropIn=function(){var endPos=F._getPosition(!0);endPos.top=(parseInt(endPos.top,10)-200)+'px';endPos.opacity=0;F.wrap.css(endPos).show().animate({top:'+=200px',opacity:1},{duration:F.current.openSpeed,complete:F._afterZoomIn})};F.transitions.dropOut=function(){F.wrap.removeClass('fancybox-opened').animate({top:'-=200px',opacity:0},{duration:F.current.closeSpeed,complete:F._afterZoomOut})};F.transitions.superscaleIn=function(){F.wrap.addClass('superscale');setTimeout(function(){F.wrap.addClass('superscale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.superscaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('superscale superscale-transitions');F._afterZoomOut()},300)} -F.transitions.fadescaleIn=function(){F.wrap.addClass('fadescale');setTimeout(function(){F.wrap.addClass('fadescale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fadescaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fadescale fadescale-transitions');F._afterZoomOut()},300)} -F.transitions.sliderightIn=function(){F.wrap.addClass('slideright');setTimeout(function(){F.wrap.addClass('slideright-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sliderightOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slideright slideright-transitions');F._afterZoomOut()},300)} -F.transitions.slidebottomIn=function(){F.wrap.addClass('slidebottom');setTimeout(function(){F.wrap.addClass('slidebottom-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slidebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slidebottom slidebottom-transitions');F._afterZoomOut()},300)} -F.transitions.newspaperIn=function(){F.wrap.addClass('newspaper');setTimeout(function(){F.wrap.addClass('newspaper-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.newspaperOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('newspaper newspaper-transitions');F._afterZoomOut()},300)} -F.transitions.fallIn=function(){F.wrap.addClass('fall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fall');F._afterZoomOut()},300)} -F.transitions.sidefallIn=function(){F.wrap.addClass('sidefall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sidefallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sidefall');F._afterZoomOut()},300)} -F.transitions.stickyupIn=function(){F.wrap.addClass('stickyup');setTimeout(function(){F.wrap.addClass('show stickyup-transitions');F._afterZoomIn()})} -F.transitions.stickyupOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('stickyup stickyup-transitions');F._afterZoomOut()},300)} -F.transitions.horizontalflipIn=function(){F.wrap.addClass('horizflip');setTimeout(function(){F.wrap.addClass('show horizflip-transitions');F._afterZoomIn()})} -F.transitions.horizontalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('horizflip horizflip-transitions');F._afterZoomOut()},300)} -F.transitions.verticalflipIn=function(){F.wrap.addClass('vertflip');setTimeout(function(){F.wrap.addClass('show vertflip-transitions');F._afterZoomIn()})} -F.transitions.verticalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('vertflip vertflip-transitions');F._afterZoomOut()},300)} -F.transitions.signIn=function(){F.wrap.addClass('sign');setTimeout(function(){F.wrap.addClass('show sign-transitions');F._afterZoomIn()})} -F.transitions.signOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sign sign-transitions');F._afterZoomOut()},300)} -F.transitions.slitIn=function(){F.wrap.addClass('slit');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slitOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slit');F._afterZoomOut()},300)} -F.transitions.rotatebottomIn=function(){F.wrap.addClass('rotatebottom');setTimeout(function(){F.wrap.addClass('show rotatebottom-transitions');F._afterZoomIn()})} -F.transitions.rotatebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotatebottom-transitions rotatebottom');F._afterZoomOut()},300)} -F.transitions.rotateleftIn=function(){F.wrap.addClass('rotateleft');setTimeout(function(){F.wrap.addClass('show rotateleft-transitions');F._afterZoomIn()})} -F.transitions.rotateleftOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotateleft-transitions rotateleft');F._afterZoomOut()},300)} -F.transitions.blurIn=function(){F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').addClass('blur-overlay');F.wrap.addClass('blur');setTimeout(function(){F.wrap.addClass('blur-transitions show');F._afterZoomIn()})} -F.transitions.blurOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('blur-transitions blur');F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').removeClass('blur-overlay');F._afterZoomOut()},300)}})(jQuery,jQuery.fancybox);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){return function(A){"use strict";var L=A.tablesorter={version:"2.32.0",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:null,ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssIconDisabled:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(t,r){var e,o,s,a;t&&t.tHead&&0!==t.tBodies.length&&!0!==t.hasInitialized?(e="",o=A(t),s=A.metadata,t.hasInitialized=!1,t.isProcessing=!0,t.config=r,A.data(t,"tablesorter",r),L.debug(r,"core")&&(console[console.group?"group":"log"]("Initializing tablesorter v"+L.version),A.data(t,"startoveralltimer",new Date)),r.supportsDataObject=((a=A.fn.jquery.split("."))[0]=parseInt(a[0],10),1':"",i.$headers=A(A.map(i.$table.find(i.selectorHeaders),function(e,t){var r,o,s,a,n=A(e);if(!L.getClosest(n,"tr").hasClass(i.cssIgnoreRow))return/(th|td)/i.test(e.nodeName)||(a=L.getClosest(n,"th, td"),n.attr("data-column",a.attr("data-column"))),r=L.getColumnData(i.table,i.headers,t,!0),i.headerContent[t]=n.html(),""===i.headerTemplate||n.find("."+L.css.headerIn).length||(s=i.headerTemplate.replace(L.regex.templateContent,n.html()).replace(L.regex.templateIcon,n.find("."+L.css.icon).length?"":l),i.onRenderTemplate&&(o=i.onRenderTemplate.apply(n,[t,s]))&&"string"==typeof o&&(s=o),n.html('
          '+s+"
          ")),i.onRenderHeader&&i.onRenderHeader.apply(n,[t,i,i.$table]),o=parseInt(n.attr("data-column"),10),e.column=o,a=L.getOrder(L.getData(n,r,"sortInitialOrder")||i.sortInitialOrder),i.sortVars[o]={count:-1,order:a?i.sortReset?[1,0,2]:[1,0]:i.sortReset?[0,1,2]:[0,1],lockedOrder:!1,sortedBy:""},void 0!==(a=L.getData(n,r,"lockedOrder")||!1)&&!1!==a&&(i.sortVars[o].lockedOrder=!0,i.sortVars[o].order=L.getOrder(a)?[1,1]:[0,0]),i.headerList[t]=e,n.addClass(L.css.header+" "+i.cssHeader),L.getClosest(n,"tr").addClass(L.css.headerRow+" "+i.cssHeaderRow).attr("role","row"),i.tabIndex&&n.attr("tabindex",0),e})),i.$headerIndexed=[],r=0;r'),t=e.$table.width(),s=(o=e.$tbodies.find("tr:first").children(":visible")).length,a=0;a").css("width",r));e.$table.prepend(n)}},getData:function(e,t,r){var o,s,a="",e=A(e);return e.length?(o=!!A.metadata&&e.metadata(),s=" "+(e.attr("class")||""),void 0!==e.data(r)||void 0!==e.data(r.toLowerCase())?a+=e.data(r)||e.data(r.toLowerCase()):o&&void 0!==o[r]?a+=o[r]:t&&void 0!==t[r]?a+=t[r]:" "!==s&&s.match(" "+r+"-")&&(a=s.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),A.trim(a)):""},getColumnData:function(e,t,r,o,s){if("object"!=typeof t||null===t)return t;var a,e=(e=A(e)[0]).config,s=s||e.$headers,n=e.$headerIndexed&&e.$headerIndexed[r]||s.find('[data-column="'+r+'"]:last');if(void 0!==t[r])return o?t[r]:t[s.index(n)];for(a in t)if("string"==typeof a&&n.filter(a).add(n.find(a)).length)return t[a]},isProcessing:function(e,t,r){var o=(e=A(e))[0].config,s=r||e.find("."+L.css.header);t?(void 0!==r&&0'),A.fn.detach?t.detach():t.remove();r=A(e).find("colgroup.tablesorter-savemyplace");t.insertAfter(r),r.remove(),e.isProcessing=!1},clearTableBody:function(e){A(e)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(e){var t,r="[",o=L.characterEquivalents;if(!L.characterRegex){for(t in L.characterRegexArray={},o)"string"==typeof t&&(r+=o[t],L.characterRegexArray[t]=new RegExp("["+o[t]+"]","g"));L.characterRegex=new RegExp(r+"]")}if(L.characterRegex.test(e))for(t in o)"string"==typeof t&&(e=e.replace(L.characterRegexArray[t],t));return e},validateOptions:function(e){var t,r,o,s,a="headers sortForce sortList sortAppend widgets".split(" "),n=e.originalSettings;if(n){for(t in L.debug(e,"core")&&(s=new Date),n)if("undefined"===(o=typeof L.defaults[t]))console.warn('Tablesorter Warning! "table.config.'+t+'" option not recognized');else if("object"===o)for(r in n[t])o=L.defaults[t]&&typeof L.defaults[t][r],A.inArray(t,a)<0&&"undefined"===o&&console.warn('Tablesorter Warning! "table.config.'+t+"."+r+'" option not recognized');L.debug(e,"core")&&console.log("validate options time:"+L.benchmark(s))}},restoreHeaders:function(e){for(var t,r=A(e)[0].config,o=r.$table.find(r.selectorHeaders),s=o.length,a=0;a tr").children("th, td"),!1===t&&0<=A.inArray("uitheme",s.widgets)&&(o.triggerHandler("applyWidgetId",["uitheme"]),o.triggerHandler("applyWidgetId",["zebra"])),a.find("tr").not(n).remove(),a="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(s.namespace+" "),o.removeData("tablesorter").unbind(a.replace(L.regex.spaces," ")),s.$headers.add(i).removeClass([L.css.header,s.cssHeader,s.cssAsc,s.cssDesc,L.css.sortAsc,L.css.sortDesc,L.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),n.find(s.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(s.namespace+" ").replace(L.regex.spaces," ")),L.restoreHeaders(e),o.toggleClass(L.css.table+" "+s.tableClass+" tablesorter-"+s.theme,!1===t),o.removeClass(s.namespace.slice(1)),e.hasInitialized=!1,delete e.config.cache,"function"==typeof r&&r(e),L.debug(s,"core"))&&console.log("tablesorter has been removed")}};A.fn.tablesorter=function(t){return this.each(function(){var e=A.extend(!0,{},L.defaults,t,L.instanceMethods);e.originalSettings=t,!this.hasInitialized&&L.buildTable&&"TABLE"!==this.nodeName?L.buildTable(this,e):L.setup(this,e)})},window.console&&window.console.log||(L.logs=[],(console={}).log=console.warn=console.error=console.table=function(){var e=1> Using",a?c:"cookies"),h.parseJSON&&(l=a?h.parseJSON(u[c][t]||"null")||{}:(i=p.cookie.split(/[;\s|=]/),0!==(n=h.inArray(t,i)+1)&&h.parseJSON(i[n]||"null")||{})),void 0===r||!u.JSON||!JSON.hasOwnProperty("stringify"))return l&&l[f]?l[f][e]:"";l[f]||(l[f]={}),l[f][e]=r,a?u[c][t]=JSON.stringify(l):((s=new Date).setTime(s.getTime()+31536e6),p.cookie=t+"="+JSON.stringify(l).replace(/\"/g,'"')+"; expires="+s.toGMTString()+"; path=/")}}(e,window,document),function(S){"use strict";var C=S.tablesorter||{};C.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"glyphicon glyphicon-chevron-up",iconSortDesc:"glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},S.extend(C.css,{wrapper:"tablesorter-wrapper"}),C.addWidget({id:"uitheme",priority:10,format:function(e,t,r){var i,a,l,s,n,o,c,d,f,h,u,p,g=C.themes,m=t.$table.add(S(t.namespace+"_extra_table")),b=t.$headers.add(S(t.namespace+"_extra_headers")),y=t.theme||"jui",_=g[y]||{},v=S.trim([_.sortNone,_.sortDesc,_.sortAsc,_.active].join(" ")),w=S.trim([_.iconSortNone,_.iconSortDesc,_.iconSortAsc].join(" ")),x=C.debug(t,"uitheme");for(x&&(n=new Date),m.hasClass("tablesorter-"+y)&&t.theme===t.appliedTheme&&r.uitheme_applied||(r.uitheme_applied=!0,h=g[t.appliedTheme]||{},g=(p=!S.isEmptyObject(h))?[h.sortNone,h.sortDesc,h.sortAsc,h.active].join(" "):"",u=p?[h.iconSortNone,h.iconSortDesc,h.iconSortAsc].join(" "):"",p&&(r.zebra[0]=S.trim(" "+r.zebra[0].replace(" "+h.even,"")),r.zebra[1]=S.trim(" "+r.zebra[1].replace(" "+h.odd,"")),t.$tbodies.children().removeClass([h.even,h.odd].join(" "))),_.even&&(r.zebra[0]+=" "+_.even),_.odd&&(r.zebra[1]+=" "+_.odd),m.children("caption").removeClass(h.caption||"").addClass(_.caption),d=m.removeClass((t.appliedTheme?"tablesorter-"+(t.appliedTheme||""):"")+" "+(h.table||"")).addClass("tablesorter-"+y+" "+(_.table||"")).children("tfoot"),t.appliedTheme=t.theme,d.length&&d.children("tr").removeClass(h.footerRow||"").addClass(_.footerRow).children("th, td").removeClass(h.footerCells||"").addClass(_.footerCells),b.removeClass((p?[h.header,h.hover,g].join(" "):"")||"").addClass(_.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(e){S(this)["mouseenter"===e.type?"addClass":"removeClass"](_.hover||"")}),b.each(function(){var e=S(this);e.find("."+C.css.wrapper).length||e.wrapInner('
          ')}),t.cssIcon&&b.find("."+C.css.icon).removeClass(p?[h.icons,u].join(" "):"").addClass(_.icons||""),C.hasWidget(t.table,"filter")&&(a=function(){m.children("thead").children("."+C.css.filterRow).removeClass(p&&h.filterRow||"").addClass(_.filterRow||"")},r.filter_initialized?a():m.one("filterInit",function(){a()}))),i=0;i> Applied "+y+" theme"+C.benchmark(n))},remove:function(e,t,r,i){var a,l,s,n,o;r.uitheme_applied&&(a=t.$table,t=t.appliedTheme||"jui",l=C.themes[t]||C.themes.jui,s=a.children("thead").children(),n=l.sortNone+" "+l.sortDesc+" "+l.sortAsc,o=l.iconSortNone+" "+l.iconSortDesc+" "+l.iconSortAsc,a.removeClass("tablesorter-"+t+" "+l.table),r.uitheme_applied=!1,i||(a.find(C.css.header).removeClass(l.header),s.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(l.hover+" "+n+" "+l.active).filter("."+C.css.filterRow).removeClass(l.filterRow),s.find("."+C.css.icon).removeClass(l.icons+" "+o)))}})}(e),function(m){"use strict";var b=m.tablesorter||{};b.addWidget({id:"columns",priority:65,options:{columns:["primary","secondary","tertiary"]},format:function(e,t,r){for(var i,a,l,s,n,o=t.$table,c=t.$tbodies,d=t.sortList,f=d.length,h=r&&r.columns||["primary","secondary","tertiary"],u=h.length-1,p=h.join(" "),g=0;g=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(e,t,r){if(!O.orTest.test(t.iFilter)&&!O.orSplit.test(t.filter)||O.regex.test(t.filter))return null;for(var i,a,l=A.extend({},t),s=t.filter.split(O.orSplit),n=t.iFilter.split(O.orSplit),o=s.length,c=0;c]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(l.data("placeholder")||l.attr("data-placeholder")||f.filter_placeholder.select||"")+"":"",0<=(a=n=i).indexOf(f.filter_selectSourceSeparator)&&(a=(n=i.split(f.filter_selectSourceSeparator))[1],n=n[0]),t+="");d.$table.find("thead").find("select."+g.filter+'[data-column="'+s+'"]').append(t),("function"==typeof(a=f.filter_selectSource)||E.getColumnData(r,a,s))&&I.buildSelect(d.table,s,"",!0,l.hasClass(f.filter_onlyAvail))}I.buildDefault(r,!0),I.bindSearch(r,d.$table.find("."+g.filter),!0),f.filter_external&&I.bindSearch(r,f.filter_external),f.filter_hideFilters&&I.hideFilters(d),d.showProcessing&&(a="filterStart filterEnd ".split(" ").join(d.namespace+"filter-sp "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(e,t){l=t?d.$table.find("."+g.header).filter("[data-column]").filter(function(){return""!==t[A(this).data("column")]}):"",E.isProcessing(r,"filterStart"===e.type,t?l:"")})),d.filteredRows=d.totalRows,a="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(d.namespace+"filter "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(){I.completeInit(this)}),d.pager&&d.pager.initialized&&!f.filter_initialized?(d.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){I.filterInitComplete(d)},100)):f.filter_initialized||I.completeInit(r)},completeInit:function(e){var t=e.config,r=t.widgetOptions,i=I.setDefaults(e,t,r)||[];!i.length||t.delayInit&&""===i.join("")||E.setFilters(e,i,!0),t.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){r.filter_initialized||I.filterInitComplete(t)},100)},formatterUpdated:function(e,t){e=e&&e.closest("table"),e=e.length&&e[0].config,e=e&&e.widgetOptions;e&&!e.filter_initialized&&(e.filter_formatterInit[t]=1)},filterInitComplete:function(e){function t(){a.filter_initialized=!0,e.lastSearch=e.$table.data("lastSearch"),e.$table.triggerHandler("filterInit",e),I.findRows(e.table,e.lastSearch||[]),E.debug(e,"filter")&&console.log("Filter >> Widget initialized")}var r,i,a=e.widgetOptions,l=0;if(A.isEmptyObject(a.filter_formatter))t();else{for(i=a.filter_formatterInit.length,r=0;r',p=0;p");for(t.$filters=A(u+="").appendTo(t.$table.children("thead").eq(0)).children("td"),p=0;p").appendTo(i):((o=E.getColumnData(e,r.filter_formatter,p))?(r.filter_formatterCount++,(u=(u=o(i,p))&&0===u.length?i.children("input"):u)&&(0===u.parent().length||u.parent().length&&u.parent()[0]!==i[0])&&i.append(u)):u=A('').appendTo(i),u&&(c=a.data("placeholder")||a.attr("data-placeholder")||r.filter_placeholder.search||"",u.attr("placeholder",c))),u)&&(n=(A.isArray(r.filter_cssFilter)?void 0!==r.filter_cssFilter[p]&&r.filter_cssFilter[p]||"":r.filter_cssFilter)||"",u.addClass(g.filter+" "+n),c=(n=r.filter_filterLabel).match(/{{([^}]+?)}}/g),A.each(c=c||["{{label}}"],function(e,t){var r=new RegExp(t,"g"),t=a.attr("data-"+t.replace(/{{|}}/g,"")),t=void 0===t?a.text():t;n=n.replace(r,A.trim(t))}),u.attr({"data-column":i.attr("data-column"),"aria-label":n}),s)&&(u.attr("placeholder","").addClass(g.filterDisabled)[0].disabled=!0)},bindSearch:function(a,e,t){var r,l,s,i,n;a=A(a)[0],(e=A(e)).length&&(l=a.config,s=l.widgetOptions,i=l.namespace+"filter",n=s.filter_$externalFilters,!0!==t&&(r=s.filter_anyColumnSelector+","+s.filter_multipleColumnSelector,s.filter_$anyMatch=e.filter(r),n&&n.length?s.filter_$externalFilters=s.filter_$externalFilters.add(e):s.filter_$externalFilters=e,E.setFilters(a,l.$table.data("lastSearch")||[],!1===t)),r="keypress keyup keydown search change input ".split(" ").join(i+" "),e.attr("data-lastSearchTime",(new Date).getTime()).unbind(r.replace(E.regex.spaces," ")).bind("keydown"+i,function(e){if(e.which===o.escape&&!a.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+i,function(e){s=a.config.widgetOptions;var t=parseInt(A(this).attr("data-column"),10),r="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);if(void 0===r&&(r=s.filter_liveSearch.fallback||!1),A(this).attr("data-lastSearchTime",(new Date).getTime()),e.which===o.escape)this.value=s.filter_resetOnEsc?"":l.lastSearch[t];else{if(""!==this.value&&("number"==typeof r&&this.value.length=o.left&&e.which<=o.down)))return;if(!1===r&&""!==this.value&&e.which!==o.enter)return}I.searching(a,!0,!0,t)}).bind("search change keypress input blur ".split(" ").join(i+" "),function(e){var t=parseInt(A(this).attr("data-column"),10),r=e.type,i="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);!a.config.widgetOptions.filter_initialized||e.which!==o.enter&&"search"!==r&&"blur"!==r&&("change"!==r&&"input"!==r||!0!==i&&(!0===i||"INPUT"===e.target.nodeName)||this.value===l.lastSearch[t])||(e.preventDefault(),A(this).attr("data-lastSearchTime",(new Date).getTime()),I.searching(a,"keypress"!==r||e.which===o.enter,!0,t))}))},searching:function(e,t,r,i){var a,l=e.config.widgetOptions;void 0===i?a=!1:void 0===(a="boolean"==typeof l.filter_liveSearch?l.filter_liveSearch:E.getColumnData(e,l.filter_liveSearch,i))&&(a=l.filter_liveSearch.fallback||!1),clearTimeout(l.filter_searchTimer),void 0===t||!0===t?l.filter_searchTimer=setTimeout(function(){I.checkFilters(e,t,r)},a?l.filter_searchDelay:10):I.checkFilters(e,t,r)},equalFilters:function(e,t,r){var i,a=[],l=[],s=e.columns+1;for(t=A.isArray(t)?t:[],r=A.isArray(r)?r:[],i=0;i=e.columns&&(s=e.columns-1);l<=s;l++)f[f.length]=l;t=t.replace(i[c],"")}if(!r&&/,/.test(t))for(d=(n=t.split(/\s*,\s*/)).length,o=0;o> Starting filter widget search",r),m=new Date),F.filteredRows=0,t=$||[],c=F.totalRows=0;c> Searching through "+(v&&_> Completed search"+E.benchmark(m)),R.filter_initialized&&(F.$table.triggerHandler("filterBeforeEnd",F),F.$table.triggerHandler("filterEnd",F)),setTimeout(function(){E.applyWidget(F.table)},0)}},getOptionSource:function(e,t,r){var i=(e=A(e)[0]).config,a=!1,l=i.widgetOptions.filter_selectSource,i=i.$table.data("lastSearch")||[],s="function"==typeof l||E.getColumnData(e,l,t);if(r&&""!==i[t]&&(r=!1),!0===s)a=l(e,t,r);else{if(s instanceof A||"string"===A.type(s)&&0<=s.indexOf(""))return s;if(A.isArray(s))a=s;else if("object"===A.type(l)&&s&&null===(a=s(e,t,r)))return null}return!1===a&&(a=I.getOptions(e,t,r)),I.processOptions(e,t,a)},processOptions:function(i,a,r){if(!A.isArray(r))return!1;var l,e,t,s,n,o=(i=A(i)[0]).config,c=null!=a&&0<=a&&a'+(h.data("placeholder")||h.attr("data-placeholder")||f.filter_placeholder.select||"")+"",h=d.$table.find("thead").find("select."+g.filter+'[data-column="'+t+'"]').val();if(void 0!==r&&""!==r||null!==(r=I.getOptionSource(e,t,a))){if(A.isArray(r)){for(l=0;l"}else""+c!="[object Object]"&&(0<=(s=n=c=(""+c).replace(O.quote,""")).indexOf(f.filter_selectSourceSeparator)&&(s=(o=n.split(f.filter_selectSourceSeparator))[0],n=o[1]),u+=""!==c?"":"");r=[]}e=(d.$filters||d.$table.children("thead")).find("."+g.filter),(a=(e=f.filter_$externalFilters?e&&e.length?e.add(f.filter_$externalFilters):f.filter_$externalFilters:e).filter('select[data-column="'+t+'"]')).length&&(a[i?"html":"append"](u),A.isArray(r)||a.append(r).val(h),a.val(h))}}},buildDefault:function(e,t){for(var r,i,a=e.config,l=a.widgetOptions,s=a.columns,n=0;n'),y=b.parent().addClass($.css.stickyHide).css({position:d.length?"absolute":"fixed",padding:parseInt(b.parent().parent().css("padding-left"),10),top:p+m,left:0,visibility:"hidden",zIndex:o.stickyHeaders_zIndex||2}),p=b.children("thead:first"),_="",v=function(e,t){for(var r,i,a,l=e.filter(":visible"),s=l.length,n=0;na.top&&i thead:gt(0), tr.sticky-false").hide(),b.find("> tbody, > tfoot").remove(),b.find("caption").toggle(o.stickyHeaders_includeCaption),l=p.children().children(),b.css({height:0,width:0,margin:0}),l.find("."+$.css.resizer).remove(),c.addClass("hasStickyHeaders").bind("pagerComplete"+s,function(){x()}),$.bindEvents(e,p.children().children("."+$.css.header)),o.stickyHeaders_appendTo?C(o.stickyHeaders_appendTo).append(y):c.after(y),t.onRenderHeader)for(i=(a=p.children("tr").children()).length,r=0;r";c("head").append(e)}),d.resizable={init:function(e,t){if(!e.$table.hasClass("hasResizable")){e.$table.addClass("hasResizable");var r,i,a,l=e.$table,s=l.parent(),n=parseInt(l.css("margin-top"),10),o=t.resizable_vars={useStorage:d.storage&&!1!==t.resizable,$wrap:s,mouseXPosition:0,$target:null,$next:null,overflow:"auto"===s.css("overflow")||"scroll"===s.css("overflow")||"auto"===s.css("overflow-x")||"scroll"===s.css("overflow-x"),storedSizes:[]};for(d.resizableReset(e.table,!0),o.tableWidth=l.width(),o.fullWidth=Math.abs(s.width()-o.tableWidth)<20,o.useStorage&&o.overflow&&(d.storage(e.table,"tablesorter-table-original-css-width",o.tableWidth),a=d.storage(e.table,"tablesorter-table-resized-width")||"auto",d.resizable.setWidth(l,a,!0)),t.resizable_vars.storedSizes=s=(o.useStorage?d.storage(e.table,d.css.resizableStorage):[])||[],d.resizable.setWidths(e,t,s),d.resizable.updateStoredSizes(e,t),t.$resizable_container=c('
          ').css({top:n}).insertBefore(l),i=0;i').appendTo(t.$resizable_container).attr({"data-column":i,unselectable:"on"}).data("header",r).bind("selectstart",!1);d.resizable.bindings(e,t)}},updateStoredSizes:function(e,t){var r,i,a=e.columns,l=t.resizable_vars;for(l.storedSizes=[],r=0;r> Saving last sort: "+e.sortList+o.benchmark(a)):(l.addClass("hasSaveSort"),s="",o.storage&&(s=c(e),n&&console.log('saveSort >> Last sort loaded: "'+s+'"'+o.benchmark(a)),l.bind("saveSortReset",function(e){e.stopPropagation(),o.storage(t,"tablesorter-savesort","")})),i&&s&&0 -* @copyright 2007-2014 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ -$(document).ready(function(){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons();$("#pdproductattributeslist table.table").tablesorter({theme:'default',headerTemplate:'{content} {icon}',widgets:["uitheme","columns"],});prestashop.on('updateProductList',function(params){if(typeof(params)!=='undefined'){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons()}})});let PdProductAttributesList={initFancyboxOnProductImages(){if(!!$.prototype.fancybox){$('.option_image a.fancybox').fancybox({'hideOnContentClick':!0,'openEffect':'elastic','closeEffect':'elastic','helpers':{overlay:{locked:!1}}})}},initTouchSpinOnProductQtyInputs(){if(!!$.prototype.TouchSpin){var max=parseInt($("#pdproductattributeslist input[name='qty']").data('max'));$("#pdproductattributeslist input[name='qty']").TouchSpin({min:0,max:max,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '});$("#pdproductattributeslist_grid input[name='qty']").TouchSpin({min:0,max:9999999999,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '})}},executeAddProductsToCart(products){$.ajax({type:'POST',url:pdproductattributeslist_ajax_link,dataType:"json",data:{'action':'addProductsToCart','products':products,'secure_key':pdproductattributeslist_secure_key,'ajax':1},success:function(resp){if(resp){prestashop.emit('updateCart',{reason:{cart:[]},resp:resp});Object.entries(resp).forEach(([k,v])=>{if(v.response){if(v.id_product_attribute>0){message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+' '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}else{message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}}else if(v.response==!1){if(v.id_product_attribute>0){message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}else{message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}}})}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error,duration:15000})}}})},initEventAddToCartToButtons(){$('body').on('click','button.add-to-cart-pdproductattributeslist',function(){var products_array=[];var tr_colection=$(this).parent().parent().parent().find('tr');$(tr_colection).each(function(index){elem=$(this).find('td.option_gty');qty=parseInt(elem.find('input.quantity').val());if(elem.length>0&&qty>0){var product={'id_product':parseInt(elem.data('id-product')),'id_product_attribute':parseInt(elem.data('id-product-attribute')),'quantity':qty,'id_customization':0};products_array.push(product)}});if(products_array.length>0){PdProductAttributesList.executeAddProductsToCart(products_array)}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error})}})}};;$(document).ready(function(){$.each(list_menu,function(index,value){if(value.type=="horizontal"){var megamenu_element=$('.cavas_menu[data-megamenu-id='+value.id+']');if($("body").attr("id")=="index")isHomeMenu=1;megamenu_element.find(".megamenu > li > a").each(function(){menuURL=$(this).attr("href").replace("https://","").replace("http://","").replace("www.","").replace(/#\w*/,"");if((currentURL==menuURL)||(currentURL.replace(current_link,"")==menuURL)||isHomeMenu){$(this).parent().addClass("active");return!1}});if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)} -if(value.show_cavas==1){$.fn.OffCavasmenu=function(opts){var config=$.extend({},{opt1:null,text_warning_select:text_warning_select_txt,text_confirm_remove:text_confirm_remove_txt,JSON:null},opts);this.each(function(){var $btn=megamenu_element.find('.navbar-toggler');var $nav=null;if(!$btn.length) -return;var $nav=$("
          ");var $menucontent=$($btn.data('target')).find('.megamenu').clone();$("body").append($nav);$('body main').append("
          ");$(".megamenu-overlay[data-megamenu-id="+value.id+"]").click(function(){$btn.trigger('click')});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").append($menucontent);$("html").addClass("off-canvas");$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find(".off-canvas-button-megamenu").click(function(){off_canvas_active()});if($btn.is(':visible')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")} -$btn.click(function(){off_canvas_active();$('.off-canvas-nav-megamenu').removeClass('active');if(!$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").hasClass('active')&&$('body').hasClass('off-canvas-active')){$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").addClass('active');auto_height(value.id)}})});return this} -megamenu_element.OffCavasmenu();megamenu_element.find('.navbar-toggler').click(function(){$('body,html').animate({scrollTop:0},0);return!1});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('.offcanvas-mainnav .caret').click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height(value.id)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height(value.id)});$(this).parent('li').addClass('open-sub')}});$(window).resize(function(){if($(window).width()>991){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else{auto_height(value.id)}})}else{var $bt=megamenu_element.find('.navbar-toggler');var $menu=megamenu_element.find('.leo-top-menu');$bt.click(function(){if($menu.hasClass('in')){megamenu_element.removeClass('active')}else{if(!megamenu_element.hasClass('active')){megamenu_element.addClass('active')}}});megamenu_element.find('.leo-top-menu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find(".leo-top-menu li a").each(function(){if((this).hasAttribute('data-toggle')){$(this).removeAttr('data-toggle')}});megamenu_element.find(".leo-top-menu li a.dropdown-toggle").click(function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}}) -megamenu_element.find(".leo-top-menu .caret").click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').addClass('open-sub')}});if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')} -auto_height_off(megamenu_element);$(window).resize(function(){auto_height_off(megamenu_element);if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')}})}}else{var megamenu_element=$('.leo-verticalmenu[data-megamenu-id='+value.id+']');megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".verticalmenu .dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr('data-toggle');megamenu_element.find(".verticalmenu .caret").click(function(){if($(this).parents('.verticalmenu').hasClass('active-button')){var $parent=$(this).parent('li');if($parent.hasClass('open-sub')){$parent.find('.dropdown-menu').first().slideUp('fast',function(){$parent.removeClass('open-sub')})}else{if($parent.siblings('.open-sub').length>0){$parent.siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast',function(){$parent.siblings('.open-sub').removeClass('open-sub')});$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}else{$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}} -return!1}});if($(window).width()>991){megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.find('.leo-verticalmenu').removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')} -$(window).resize(function(){if($(window).width()>991){megamenu_element.find('.verticalmenu .dropdown').removeClass('open-sub');megamenu_element.find('.verticalmenu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')}});scrollSliderBarMenu(megamenu_element)} -if(typeof value.list_tab!=='undefined'&&value.list_tab.length>0){$.each(value.list_tab,function(key,val){megamenu_element.find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();$(this).tab('show')}) -$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();if(!$(this).hasClass('active')){var wrapper_tab=$(this).closest('.panel-group');var tab_href=$(this).attr('href');wrapper_tab.find('.nav-link').removeClass('active');wrapper_tab.find('.nav-item').removeClass('active');wrapper_tab.find('.tab-pane').removeClass('active');$(this).addClass('active');$(this).parents('.nav-item').addClass('active');wrapper_tab.find(tab_href).addClass('active')}})})} -if(typeof value.level!=='undefined'&&typeof value.limit!=='undefined'){megamenu_element.find('.widget-category_image ul.level0').each(function(){$(this).find('ul').removeClass('dropdown-sub dropdown-menu')});megamenu_element.find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}})} -if(value.type=="horizontal"){$(window).resize(function(){if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)}})} -if(value.type=="horizontal"&&value.show_cavas==1){$(document.body).on('click','[data-toggle="dropdown"]',function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}})}}) -$('.dropdown-menu.level1').parent().removeClass('aligned-fullwidth');$(".fancybox").fancybox({openEffect:'none',closeEffect:'none'})}) -function auto_height_off(menu_object){wrapper_height=$("#page").innerHeight();ul_height=menu_object.find(".leo-top-menu ul").innerHeight();ul_offset_top=menu_object.find(".leo-top-menu ul").offset().top;if(ul_offset_top+ul_height>wrapper_height){if(!$("#page").hasClass('megamenu-autoheight')){$("#page").addClass('megamenu-autoheight')}}else{$("#page").removeClass('megamenu-autoheight')}} -function auto_height(menu_id){windowHeight=$(window).innerHeight();$(".off-canvas-nav-megamenu[data-megamenu-id="+menu_id+"] .offcanvas-mainnav").css('min-height',windowHeight)} -function off_canvas_active(){if($('body').hasClass('off-canvas-active')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else if($('body').hasClass('off-canvas-inactive')){$("body").removeClass("off-canvas-inactive").addClass("off-canvas-active")}else{$("body").addClass("off-canvas-active")}} -function set_target_blank(show,megamenu_element){if(show){megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('data-toggle');$(this).removeAttr('data-toggle');$(this).attr('remove-data-toggle',value)}})}else{megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('remove-data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('remove-data-toggle');$(this).removeAttr('remove-data-toggle');$(this).attr('data-toggle',value)}})}} -function scrollSliderBarMenu(megamenu_element){var menuElement=megamenu_element;var columnElement=null;var maxWindowSize=991;if($(columnElement).length&&$(window).width()>=maxWindowSize)showOrHideSliderBarMenu(columnElement,menuElement,1);megamenu_element.find(".verticalmenu-button").click(function(){if($(menuElement).hasClass('active')){showOrHideSliderBarMenu(columnElement,menuElement,0)}else{showOrHideSliderBarMenu(columnElement,menuElement,1)}});var lastWidth=$(window).width();$(window).resize(function(){if($(window).width()!=lastWidth){if($(window).width()=991) -columnElement.css('padding-top',($('.block_content',$(menuElement)).height())+'px')}else{$(menuElement).removeClass('active');if($(columnElement).length)columnElement.css('padding-top','')}};$(document).ready(function(){if(typeof enable_js_lang!='undefined'){$('ul#first-currencies li:not(.selected)').css('opacity',0.3);$('ul#first-currencies li:not(.selected)').hover(function(){$(this).css('opacity',1)},function(){$(this).css('opacity',0.3)})} -if(typeof enable_js_currency!='undefined'){$("#setCurrency").mouseover(function(){$(this).addClass("countries_hover");$(".currencies_ul").addClass("currencies_ul_hover")});$("#setCurrency").mouseout(function(){$(this).removeClass("countries_hover");$(".currencies_ul").removeClass("currencies_ul_hover")})} -if(typeof js_country!='undefined'){$("#countries").mouseover(function(){$(this).addClass("countries_hover");$(".countries_ul").addClass("countries_ul_hover")});$("#countries").mouseout(function(){$(this).removeClass("countries_hover");$(".countries_ul").removeClass("countries_ul_hover")})}}) -function setCurrency(id_currency){$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:prestashop.urls.base_url+'index.php'+'?rand='+new Date().getTime(),data:'controller=change-currency&id_currency='+parseInt(id_currency),success:function(msg){location.reload(!0)}})};var matched,browser;jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=!0;browser.version=matched.version} -if(browser.chrome){browser.webkit=!0}else if(browser.webkit){browser.safari=!0} -jQuery.browser=browser;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options)})},result:function(handler){return this.bind("result",handler)},search:function(handler){return this.trigger("search",[handler])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(options){return this.trigger("setOptions",[options])},unautocomplete:function(){return this.trigger("unautocomplete")}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var $loading=$input.parent().find('.leoproductsearch-loading');var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:!1};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=!1;return!1}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev()}else{onChange(0,!0)} -break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next()}else{onChange(0,!0)} -break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp()}else{onChange(0,!0)} -break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown()}else{onChange(0,!0)} -break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=!0;return!1} -break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break}}).focus(function(){hasFocus++}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults()}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,!0)}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i1){v=words.slice(0,words.length-1).join(options.multipleSeparator)+options.multipleSeparator+v} -v+=options.multipleSeparator} -$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return!0} -function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return} -var currentValue=$input.val();if(!skipPrevCheck&¤tValue==previousValue) -return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase) -currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow)}else{stopLoading();select.hide()}};function trimWords(value){if(!value){return[""]} -var words=value.split(options.multipleSeparator);var result=[];$.each(words,function(i,value){if($.trim(value)) -result[i]=$.trim(value)});return result} -function lastWord(value){if(!options.multiple) -return value;var words=trimWords(value);return words[words.length-1]} -function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$.Autocompleter.Selection(input,previousValue.length,previousValue.length+sValue.length)}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200)};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""))}else $input.val("")}})} -if(wasVisible) -$.Autocompleter.Selection(input,input.value.length,input.value.length)};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show()}else{hideResultsNow()}};function request(term,success,failure){$loading.show();if(!options.matchCase) -term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data)}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({cate:$('input[name="cate"]').val(),q:lastWord(term),limit:options.max},extraParams),success:function(data){var str='
          ';if(data.suggest.length){str+='
          ';str+='
          '+$("#leosearchtopbox").data('label-suggestion')+'
          ';str+='';str+='
          '} -if(data.category.length){str+='
          ';str+='
          '+$("#leosearchtopbox").data('search-for')+' "'+$("#leo_search_query_top").val()+'"
          ';if(data.category.length){str+=''} -str+='
          '} -if(data.products.length){str+='
          ';str+='
          '+$("#leosearchtopbox").data('products-for')+' "'+$("#leo_search_query_top").val()+'"
          ';str+='';str+='
          ';str+='
          ';str+=''}else{str+="
          Nie znaleziono żadnego produktu
          ";str+='
          '} -$(".leoproductsearch-result .ac_results").html(str);$(".leoproductsearch-result .ac_results").show();$(".suggest-item").click(function(){$("#leo_search_query_top").val($(this).attr('href'));onChange(0,!0);return!1});$loading.hide()}})}else{select.emptyList();failure(term)}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")},scroll:!0,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase) -s=s.toLowerCase();var i=s.indexOf(sub);if(i==-1)return!1;return i==0||options.matchContains};function add(q,cate,value){if(length>options.cacheLength){flush()} -if(!data[q]){length++} -data[q]=value} -function populate(){if(!options.data)return!1;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x)}})}} -return csub}else if(data[q]){return data[q]}else if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x}});return csub}}} -return null}}};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=!0,element,list;function init(){if(!needsInit) -return;element=$("
          ").hide().addClass(options.resultsClass).css("position","absolute").appendTo('.leoproductsearch-result');list=$("
          ").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE)}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return!1}).mousedown(function(){config.mouseDownOnSelect=!0}).mouseup(function(){config.mouseDownOnSelect=!1});if(options.width>0) -element.css("width",options.width);needsInit=!1} -function target(event){var element=event.target;while(element&&element.tagName!="LI") -element=element.parentNode;if(!element) -return[];return element} -function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight())}else if(offset=listItems.size()){active=0}} -function limitNumberOfItems(available){return options.max&&options.max").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i])} -listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0} -if($.fn.bgiframe) -list.bgiframe()} -return{display:function(d,q){init();data=d;term=q;fillList()},next:function(){moveSelect(1)},prev:function(){moveSelect(-1)},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active)}else{moveSelect(-8)}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active)}else{moveSelect(8)}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1},visible:function(){return element&&element.is(":visible")},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0])},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:($(input).width()+parseInt($(input).css('padding-left'))+parseInt($(input).css('padding-right'))+parseInt($(input).css('margin-left'))+parseInt($(input).css('margin-right'))),top:"100%",left:0}).show();if(options.scroll){list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")))}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data")},emptyList:function(){list&&list.empty()},unbind:function(){element&&element.remove()}}};$.Autocompleter.Selection=function(field,start,end){if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(!0);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select()}else if(field.setSelectionRange){field.setSelectionRange(start,end)}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end}} -field.focus()}})(jQuery);var instantSearchQueries=[];$(document).click(function(event){var $target=$(event.target);if(!$target.closest('.leoproductsearch-content').length){$(".leoproductsearch-result .ac_results").hide()}});$(document).ready(function(){$('#leo_search_query_top').click(function(){if($(this).val().length>2){$(".leoproductsearch-result .ac_results").show()}});if(typeof ajaxsearch!='undefined'&&ajaxsearch&&typeof blocksearch_type!=='undefined'&&blocksearch_type){var width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).autocomplete(leo_search_url,{minChars:3,max:numpro_display,width:(width_ac_results>0?width_ac_results:500),selectFirst:!1,scroll:!1,dataType:"json",formatItem:function(data,i,max,value,term){return value},extraParams:{ajaxSearch:1,id_lang:prestashop.language.id,leoproductsearch_static_token:leoproductsearch_static_token,leoproductsearch_token:leoproductsearch_token}}).result(function(event,data,formatted){$('#leo_search_query_'+blocksearch_type).val(data.name);document.location.href=data.url});$("#leo_search_query_"+blocksearch_type).click(function(){width_ac_results=$(this).outerWidth();$(this).setOptions({width:width_ac_results})})} -$('.cate-item').click(function(){if(!$(this).hasClass('active')){$('.cate-item.active').removeClass('active');var cate_id=$(this).data('cate-id');var cate_name=$(this).data('cate-name');$('#leosearch-cate-id').val(cate_id);$('#leosearchtop-cate-id').val(cate_id);$('#dropdownListCate span').text(cate_name);$('#dropdownListCateTop span').text(cate_name);$(this).addClass('active')} -$('#dropdownListCate').trigger('click');$('#dropdownListCateTop').trigger('click');var e=jQuery.Event("keydown");e.keyCode=40;$(this).parents('form').find('.search_query').focus().trigger(e);return!1});$('.search_query').click(function(){if($(this).val()!=''){}});$('.search_query').change(function(){if($(this).val()!=''){var e=jQuery.Event("keydown");e.keyCode=40;$(this).trigger(e)}})});$(window).resize(function(){updatePositionOfResult()});function updatePositionOfResult(){if($('.ac_results').length){width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).setOptions({width:width_ac_results});$('.ac_results').width(width_ac_results)}} -function tryToCloseInstantSearch(){if($('#old_center_column').length>0){$('#center_column').remove();$('#old_center_column').attr('id','center_column');$('#center_column').show();return!1}} -function stopInstantSearchQueries(){for(i=0;iPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3000,centerMode:!1,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('', + nextArrow: + '', + autoplay: !1, + autoplaySpeed: 3000, + centerMode: !1, + centerPadding: '50px', + cssEase: 'ease', + customPaging: function (slider, i) { + return $('").addClass(this._triggerClass).html(f?a("").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;ec&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,d){var e=a(b);e.hasClass(this.markerClassName)||(e.addClass(this.markerClassName).append(d.dpDiv),a.data(b,c,d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.settings.disabled&&this._disableDatepicker(b),d.dpDiv.css("display","block"))},_dialogDatepicker:function(b,d,e,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a(""),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],c,n)),g(n.settings,f||{}),d=d&&d.constructor===Date?this._formatDate(n,d):d,this._dialogInput.val(d),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=e,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],c,n),this},_destroyDatepicker:function(b){var d,e=a(b),f=a.data(b,c);e.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),a.removeData(b,c),"input"===d?(f.append.remove(),f.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==d&&"span"!==d||e.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!1,g.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!0,g.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(a){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,e,f,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),e=d?d.apply(b,[b,c]):{},e!==!1&&(g(c.settings,e),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),f=!1,a(b).parents().each(function(){return f|="fixed"===a(this).css("position"),!f}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,f),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,d=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,e=this._getNumberOfMonths(b),f=e[1],g=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),b.dpDiv[(1!==e[0]||1!==e[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var d,e,f,g,h=this._curInst;!h||b&&h!==a.data(b,c)||this._datepickerShowing&&(d=this._get(h,"showAnim"),e=this._get(h,"duration"),f=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[d]||a.effects[d])?h.dpDiv.hide(d,a.datepicker._get(h,"showOptions"),e,f):h.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?e:null,f),d||f(),this._datepickerShowing=!1,g=this._get(h,"onClose"),g&&g.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,t,h=0,i=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,j="string"!=typeof i?i:(new Date).getFullYear()%100+parseInt(i,10),k=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,n=(d?d.monthNames:null)||this._defaults.monthNames,o=-1,p=-1,q=-1,r=-1,s=!1,u=function(a){var c=e+1-1)for(p=1,q=r;;){if(f=this._getDaysInMonth(o,p-1),q<=f)break;p++,q-=f}if(t=this._daylightSavingAdjust(new Date(o,p-1,q)),t.getFullYear()!==o||t.getMonth()+1!==p||t.getDate()!==q)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+112?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&bb;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?""+c+"":S?"":""+c+"",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?""+e+"":S?"":""+e+"",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"",j=R?"
          "+(Q?i:"")+(this._isInRange(a,h)?"":"")+(Q?"":i)+"
          ":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="
          "+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"
          ",C=l?"":"",v=0;v<7;v++)D=(v+k)%7,C+="=5?" class='ui-datepicker-week-end'":"")+">"+n[D]+"";for(B+=C+"",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J",K=l?"":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I$,K+="",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+""}_++,_>11&&(_=0,aa++),B+="
          "+this._get(a,"weekHeader")+"
          "+this._get(a,"calculateWeek")(I)+""+(M&&!r?" ":N?""+I.getDate()+"":""+I.getDate()+"")+"
          "+(X?"
          "+(U[0]>0&&y===U[1]-1?"
          ":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="
          ",u="";if(f||!q)u+=""+g[b]+"";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+=""}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+=""+c+"";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="
          "},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&bd?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new e,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.3"}(jQuery),function(a,b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},d={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&this._trigger("beforeClose",b)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,b){var c=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return c&&!b&&this._trigger("focus",a),c},open:function(){var b=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).focus()},_keepFocus:function(b){function c(){var b=this.document[0].activeElement,c=this.uiDialog[0]===b||a.contains(this.uiDialog[0],b);c||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("
          ").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(e.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("
          ").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(b),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html(" "),a.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("
          ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("
          ").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,d.click=function(){e.apply(b.element[0],arguments)},f={icons:d.icons,text:d.showText},delete d.icons,delete d.showText,a("",d).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function d(a){return{position:a.position,offset:a.offset}}var b=this,c=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,e){a(this).addClass("ui-dialog-dragging"),b._blockFrames(),b._trigger("dragStart",c,d(e))},drag:function(a,c){b._trigger("drag",a,d(c))},stop:function(e,f){c.position=[f.position.left-b.document.scrollLeft(),f.position.top-b.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),b._unblockFrames(),b._trigger("dragStop",e,d(f))}})},_makeResizable:function(){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var b=this,c=this.options,d=c.resizable,e=this.uiDialog.css("position"),f="string"==typeof d?d:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:f,start:function(c,d){a(this).addClass("ui-dialog-resizing"),b._blockFrames(),b._trigger("resizeStart",c,g(d))},resize:function(a,c){b._trigger("resize",a,g(c))},stop:function(d,e){c.height=a(this).height(),c.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),b._unblockFrames(),b._trigger("resizeStop",d,g(e))}}).css("position",e)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var e=this,f=!1,g={};a.each(b,function(a,b){e._setOption(a,b),a in c&&(f=!0),a in d&&(g[a]=b)}),f&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(a,b){var c,d,e=this.uiDialog;"dialogClass"===a&&e.removeClass(this.options.dialogClass).addClass(b),"disabled"!==a&&(this._super(a,b),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+b}),"draggable"===a&&(c=e.is(":data(ui-draggable)"),c&&!b&&e.draggable("destroy"),!c&&b&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&(d=e.is(":data(ui-resizable)"),d&&!b&&e.resizable("destroy"),d&&"string"==typeof b&&e.resizable("option","handles",b),d||b===!1||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("
          ").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})}),this.overlay=a("
          ").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,a.uiBackCompat!==!1&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var e,b=this.options.position,c=[],d=[0,0];b?(("string"==typeof b||"object"==typeof b&&"0"in b)&&(c=b.split?b.split(" "):[b[0],b[1]],1===c.length&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c[0]+(d[0]<0?d[0]:"+"+d[0])+" "+c[1]+(d[1]<0?d[1]:"+"+d[1]),at:c.join(" ")}),b=a.extend({},a.ui.dialog.prototype.options.position,b)):b=a.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(b),e||this.uiDialog.hide()}})}(jQuery),function(a,b){var c=/up|down|vertical/,d=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var p,q,r,f=a(this),g=["position","top","bottom","left","right","height","width"],h=a.effects.setMode(f,b.mode||"hide"),i=b.direction||"up",j=c.test(i),k=j?"height":"width",l=j?"top":"left",m=d.test(i),n={},o="show"===h;f.parent().is(".ui-effects-wrapper")?a.effects.save(f.parent(),g):a.effects.save(f,g),f.show(),p=a.effects.createWrapper(f).css({overflow:"hidden"}),q=p[k](),r=parseFloat(p.css(l))||0,n[k]=o?q:0,m||(f.css(j?"bottom":"right",0).css(j?"top":"left","auto").css({position:"absolute"}),n[l]=o?r:q+r),o&&(p.css(k,0),m||p.css(l,r+q)),p.animate(n,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===h&&f.hide(),a.effects.restore(f,g),a.effects.removeWrapper(f),e()}})}}(jQuery),function(a,b){a.effects.effect.bounce=function(b,c){var q,r,s,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g="hide"===f,h="show"===f,i=b.direction||"up",j=b.distance,k=b.times||5,l=2*k+(h||g?1:0),m=b.duration/l,n=b.easing,o="up"===i||"down"===i?"top":"left",p="up"===i||"left"===i,t=d.queue(),u=t.length;for((h||g)&&e.push("opacity"),a.effects.save(d,e),d.show(),a.effects.createWrapper(d),j||(j=d["top"===o?"outerHeight":"outerWidth"]()/3),h&&(s={opacity:1},s[o]=0,d.css("opacity",0).css(o,p?2*-j:2*j).animate(s,m,n)),g&&(j/=Math.pow(2,k-1)),s={},s[o]=0,q=0;q1&&t.splice.apply(t,[1,0].concat(t.splice(u,l+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.clip=function(b,c){var m,n,o,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"vertical",i="vertical"===h,j=i?"height":"width",k=i?"top":"left",l={};a.effects.save(d,e),d.show(),m=a.effects.createWrapper(d).css({overflow:"hidden"}),n="IMG"===d[0].tagName?m:d,o=n[j](),g&&(n.css(j,0),n.css(k,o/2)),l[j]=g?o:0,l[k]=g?0:o/2,n.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){g||d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.drop=function(b,c){var l,d=a(this),e=["position","top","bottom","left","right","opacity","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h?"pos":"neg",k={opacity:g?1:0};a.effects.save(d,e),d.show(),a.effects.createWrapper(d),l=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0)/2,g&&d.css("opacity",0).css(i,"pos"===j?-l:l),k[i]=(g?"pos"===j?"+=":"-=":"pos"===j?"-=":"+=")+l,d.animate(k,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.explode=function(b,c){function s(){l.push(this),l.length===d*e&&t()}function t(){f.css({visibility:"visible"}),a(l).remove(),h||f.hide(),c()}var m,n,o,p,q,r,d=b.pieces?Math.round(Math.sqrt(b.pieces)):3,e=d,f=a(this),g=a.effects.setMode(f,b.mode||"hide"),h="show"===g,i=f.show().css("visibility","hidden").offset(),j=Math.ceil(f.outerWidth()/e),k=Math.ceil(f.outerHeight()/d),l=[];for(m=0;m
          ").css({position:"absolute",visibility:"visible",left:-n*j,top:-m*k}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:k,left:o+(h?q*j:0),top:p+(h?r*k:0),opacity:h?0:1}).animate({left:o+(h?0:q*j),top:p+(h?0:r*k),opacity:h?1:0},b.duration||500,b.easing,s)}}(jQuery),function(a,b){a.effects.effect.fade=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"toggle");d.animate({opacity:e},{queue:!1,duration:b.duration,easing:b.easing,complete:c})}}(jQuery),function(a,b){a.effects.effect.fold=function(b,c){var o,p,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h="hide"===f,i=b.size||15,j=/([0-9]+)%/.exec(i),k=!!b.horizFirst,l=g!==k,m=l?["width","height"]:["height","width"],n=b.duration/2,q={},r={};a.effects.save(d,e),d.show(),o=a.effects.createWrapper(d).css({overflow:"hidden"}),p=l?[o.width(),o.height()]:[o.height(),o.width()],j&&(i=parseInt(j[1],10)/100*p[h?0:1]),g&&o.css(k?{height:0,width:i}:{height:i,width:0}),q[m[0]]=g?p[0]:i,r[m[1]]=g?p[1]:0,o.animate(q,n,b.easing).animate(r,n,b.easing,function(){h&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()})}}(jQuery),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),function(a,b){a.effects.effect.pulsate=function(b,c){var n,d=a(this),e=a.effects.setMode(d,b.mode||"show"),f="show"===e,g="hide"===e,h=f||"hide"===e,i=2*(b.times||5)+(h?1:0),j=b.duration/i,k=0,l=d.queue(),m=l.length;for(!f&&d.is(":visible")||(d.css("opacity",0).show(),k=1),n=1;n1&&l.splice.apply(l,[1,0].concat(l.splice(m,i+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.puff=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"hide"),f="hide"===e,g=parseInt(b.percent,10)||150,h=g/100,i={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:f?g:100,from:f?i:{height:i.height*h,width:i.width*h,outerHeight:i.outerHeight*h,outerWidth:i.outerWidth*h}}),d.effect(b)},a.effects.effect.scale=function(b,c){var d=a(this),e=a.extend(!0,{},b),f=a.effects.setMode(d,b.mode||"effect"),g=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===f?0:100),h=b.direction||"both",i=b.origin,j={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()},k={y:"horizontal"!==h?g/100:1,x:"vertical"!==h?g/100:1};e.effect="size",e.queue=!1,e.complete=c,"effect"!==f&&(e.origin=i||["middle","center"],e.restore=!0),e.from=b.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:j),e.to={height:j.height*k.y,width:j.width*k.x,outerHeight:j.outerHeight*k.y,outerWidth:j.outerWidth*k.x},e.fade&&("show"===f&&(e.from.opacity=0,e.to.opacity=1),"hide"===f&&(e.from.opacity=1,e.to.opacity=0)),d.effect(e)},a.effects.effect.size=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],i=["position","top","bottom","left","right","overflow","opacity"],j=["width","height","overflow"],k=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=a.effects.setMode(g,b.mode||"effect"),o=b.restore||"effect"!==n,p=b.scale||"both",q=b.origin||["middle","center"],r=g.css("position"),s=o?h:i,t={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&g.show(),d={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===b.mode&&"show"===n?(g.from=b.to||t,g.to=b.from||d):(g.from=b.from||("show"===n?t:d),g.to=b.to||("hide"===n?t:d)),f={from:{y:g.from.height/d.height,x:g.from.width/d.width},to:{y:g.to.height/d.height,x:g.to.width/d.width}},"box"!==p&&"both"!==p||(f.from.y!==f.to.y&&(s=s.concat(l),g.from=a.effects.setTransition(g,l,f.from.y,g.from),g.to=a.effects.setTransition(g,l,f.to.y,g.to)),f.from.x!==f.to.x&&(s=s.concat(m),g.from=a.effects.setTransition(g,m,f.from.x,g.from),g.to=a.effects.setTransition(g,m,f.to.x,g.to))),"content"!==p&&"both"!==p||f.from.y!==f.to.y&&(s=s.concat(k).concat(j),g.from=a.effects.setTransition(g,k,f.from.y,g.from),g.to=a.effects.setTransition(g,k,f.to.y,g.to)),a.effects.save(g,s),g.show(),a.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),q&&(e=a.effects.getBaseline(q,d),g.from.top=(d.outerHeight-g.outerHeight())*e.y,g.from.left=(d.outerWidth-g.outerWidth())*e.x,g.to.top=(d.outerHeight-g.to.outerHeight)*e.y,g.to.left=(d.outerWidth-g.to.outerWidth)*e.x),g.css(g.from),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(k),m=m.concat(["marginLeft","marginRight"]),j=h.concat(l).concat(m),g.find("*[width]").each(function(){var c=a(this),d={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()};o&&a.effects.save(c,j),c.from={height:d.height*f.from.y,width:d.width*f.from.x,outerHeight:d.outerHeight*f.from.y,outerWidth:d.outerWidth*f.from.x},c.to={height:d.height*f.to.y,width:d.width*f.to.x,outerHeight:d.height*f.to.y,outerWidth:d.width*f.to.x},f.from.y!==f.to.y&&(c.from=a.effects.setTransition(c,l,f.from.y,c.from),c.to=a.effects.setTransition(c,l,f.to.y,c.to)),f.from.x!==f.to.x&&(c.from=a.effects.setTransition(c,m,f.from.x,c.from),c.to=a.effects.setTransition(c,m,f.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.easing,function(){o&&a.effects.restore(c,j)})})),g.animate(g.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===n&&g.hide(),a.effects.restore(g,s),o||("static"===r?g.css({position:"relative",top:g.to.top,left:g.to.left}):a.each(["top","left"],function(a,b){g.css(b,function(b,c){var d=parseInt(c,10),e=a?g.to.left:g.to.top;return"auto"===c?e+"px":d+e+"px"})})),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.shake=function(b,c){var q,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g=b.direction||"left",h=b.distance||20,i=b.times||3,j=2*i+1,k=Math.round(b.duration/j),l="up"===g||"down"===g?"top":"left",m="up"===g||"left"===g,n={},o={},p={},r=d.queue(),s=r.length;for(a.effects.save(d,e),d.show(),a.effects.createWrapper(d),n[l]=(m?"-=":"+=")+h,o[l]=(m?"+=":"-=")+2*h,p[l]=(m?"-=":"+=")+2*h,d.animate(n,k,b.easing),q=1;q1&&r.splice.apply(r,[1,0].concat(r.splice(s,j+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.slide=function(b,c){var k,d=a(this),e=["position","top","bottom","left","right","width","height"],f=a.effects.setMode(d,b.mode||"show"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h,l={};a.effects.save(d,e),d.show(),k=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(d).css({overflow:"hidden"}),g&&d.css(i,j?isNaN(k)?"-"+k:-k:k),l[i]=(g?j?"+=":"-=":j?"-=":"+=")+k,d.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.transfer=function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("
          ").appendTo(document.body).addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),c()})}}(jQuery),function(a,b){a.widget("ui.menu",{version:"1.10.3",defaultElement:"
            ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(b),c.has(".ui-menu").length?this.expand(b):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function i(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var c,d,e,f,g,h=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:h=!1,d=this.previousFilter||"",e=String.fromCharCode(b.keyCode),f=!1,clearTimeout(this.filterTimer),e===d?f=!0:e=d+e,g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),c=f&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c,c.length||(e=String.fromCharCode(b.keyCode),g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),c.length?(this.focus(b,c),c.length>1?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&b.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var b=a(this),d=b.prev("a"),e=a("").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e),b.attr("aria-labelledby",d.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(a,b)},focus:function(a,b){var c,d;this.blur(a,a&&"focus"===a.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&/^mouse/.test(a.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var c,d,e,f,g,h;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=b.offset().top-this.activeMenu.offset().top-c-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=b.height(),e<0?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,d,e;return this.active?void(this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d-e<0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(b)},previousPage:function(b){var c,d,e;return this.active?void(this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d+e>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first()))):void this.next(b)},_hasScroll:function(){return this.element.outerHeight()
          "),g=f.children()[0];return a("body").append(f),d=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,d===e&&(e=f[0].clientWidth),f.remove(),c=d-e},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width0?"right":"center",vertical:h<0?"top":g>0?"bottom":"middle"};kd(e(g),e(h))?m.important="horizontal":m.important="vertical",b.using.call(this,a,m)}),i.offset(a.extend(A,{using:h}))})},a.ui.position={fit:{left:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollLeft:c.offset.left,f=c.width,g=a.left-b.collisionPosition.marginLeft,h=e-g,i=g+b.collisionWidth-f-e;b.collisionWidth>f?h>0&&i<=0?(j=a.left+h+b.collisionWidth-f-e,a.left+=h-j):i>0&&h<=0?a.left=e:h>i?a.left=e+f-b.collisionWidth:a.left=e:h>0?a.left+=h:i>0?a.left-=i:a.left=d(a.left-g,a.left)},top:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollTop:c.offset.top,f=b.within.height,g=a.top-b.collisionPosition.marginTop,h=e-g,i=g+b.collisionHeight-f-e;b.collisionHeight>f?h>0&&i<=0?(j=a.top+h+b.collisionHeight-f-e,a.top+=h-j):i>0&&h<=0?a.top=e:h>i?a.top=e+f-b.collisionHeight:a.top=e:h>0?a.top+=h:i>0?a.top-=i:a.top=d(a.top-g,a.top)}},flip:{left:function(a,b){var n,o,c=b.within,d=c.offset.left+c.scrollLeft,f=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,i=h-g,j=h+b.collisionWidth-f-g,k="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,l="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*b.offset[0];i<0?(n=a.left+k+l+m+b.collisionWidth-f-d,(n<0||n0&&(o=a.left-b.collisionPosition.marginLeft+k+l+m-g,(o>0||e(o)i&&(p<0||p0&&(o=a.top-b.collisionPosition.marginTop+l+m+n-g,a.top+l+m+n>j&&(o>0||e(o)10&&e<11,b.innerHTML="",c.removeChild(b)}()}(jQuery),function(a,b){a.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=a("
          ").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(a){return a===b?this.options.value:(this.options.value=this._constrainedValue(a),void this._refreshValue())},_constrainedValue:function(a){return a===b&&(a=this.options.value),this.indeterminate=a===!1,"number"!=typeof a&&(a=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(b),this._refreshValue()},_setOption:function(a,b){"max"===a&&(b=Math.max(this.min,b)),this._super(a,b)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var b=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("
          ").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":b}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==b&&(this.oldValue=b,this._trigger("change")),b===this.options.max&&this._trigger("complete")}})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="",g=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b
          ").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):this.range=a([])},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a),this._on(a,this._handleEvents),this._hoverable(a),this._focusable(a)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));(e>c||e===c&&(b===k._lastChangedValue||k.values(b)===l.min))&&(e=c,f=a(this),g=b)}),h=this._start(b,g),h!==!1&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&c1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var d,e,f,g,h=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,h),d===!1))return}switch(g=this.options.step,e=f=this.options.values&&this.options.values.length?this.values(h):this.value(),b.keyCode){case a.ui.keyCode.HOME:f=this._valueMin();break;case a.ui.keyCode.END:f=this._valueMax();break;case a.ui.keyCode.PAGE_UP:f=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:f=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===this._valueMax())return;f=this._trimAlignValue(e+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===this._valueMin())return;f=this._trimAlignValue(e-g)}this._slide(b,h,f)},click:function(a){a.preventDefault()},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})}(jQuery),function(a){function b(a){return function(){var b=this.element.val();a.apply(this,arguments),this._refresh(),b!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var b={},c=this.element;return a.each(["min","max","step"],function(a,d){var e=c.attr(d);void 0!==e&&e.length&&(b[d]=e)}),b},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",a)))},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return!1;this._spin((b>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(b){function d(){var a=this.element[0]===this.document[0].activeElement;a||(this.element.focus(),this.previous=c,this._delay(function(){this.previous=c}))}var c;c=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),b.preventDefault(),d.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,d.call(this)}),this._start(b)!==!1&&this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(b){if(a(b.currentTarget).hasClass("ui-state-active"))return this._start(b)!==!1&&void this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*a.height())&&a.height()>0&&a.height(a.height()),this.options.disabled&&this.disable()},_keydown:function(b){var c=this.options,d=a.ui.keyCode;switch(b.keyCode){case d.UP:return this._repeat(null,1,b),!0;case d.DOWN:return this._repeat(null,-1,b),!0;case d.PAGE_UP:return this._repeat(null,c.page,b),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,b),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""},_start:function(a){return!(!this.spinning&&this._trigger("start",a)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(a,b,c){a=a||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,b,c)},a),this._spin(b*this.options.step,c)},_spin:function(a,b){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+a*this._increment(this.counter)),this.spinning&&this._trigger("spin",b,{value:c})===!1||(this._value(c),this.counter++)},_increment:function(b){var c=this.options.incremental;return c?a.isFunction(c)?c(b):Math.floor(b*b*b/5e4-b*b/500+17*b/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return c===-1?0:b.length-c-1},_adjustValue:function(a){var b,c,d=this.options;return b=null!==d.min?d.min:0,c=a-b,c=Math.round(c/d.step)*d.step,a=b+c,a=parseFloat(a.toFixed(this._precision())),null!==d.max&&a>d.max?d.max:null!==d.min&&a1&&decodeURIComponent(a.href.replace(d,""))===decodeURIComponent(location.href.replace(d,""))}var c=0,d=/#.*$/;a.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&b!==-1||(b=!!this.tabs.length&&0)),b!==!1&&(b=this.tabs.index(this.tabs.eq(b)),b===-1&&(b=!c&&0)),!c&&b===!1&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function e(){return b>d&&(b=0),b<0&&(b=d),b}for(var d=this.tabs.length-1;a.inArray(e(),this.options.disabled)!==-1;)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+e()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),b.active!==!1&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,d){var e,g,h,i=a(d).uniqueId().attr("id"),j=a(d).closest("li"),k=j.attr("aria-controls");f(d)?(e=d.hash,g=b.element.find(b._sanitizeSelector(e))):(h=b._tabId(j),e="#"+h,g=b.element.find(e),g.length||(g=b._createPanel(h),g.insertAfter(b.panels[c-1]||b.tablist)),g.attr("aria-live","polite")),g.length&&(b.panels=b.panels.add(g)),k&&j.data("ui-tabs-aria-controls",k),j.attr({"aria-controls":e.substring(1),"aria-labelledby":i}),g.attr("aria-labelledby",i)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("
          ").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var d,c=0;d=this.tabs[c];c++)b===!0||a.inArray(c,b)!==-1?a(d).addClass("ui-state-disabled").attr("aria-disabled","true"):a(d).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function g(){d.running=!1,d._trigger("activate",b,c)}function h(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),e.length&&d.options.show?d._show(e,d.options.show,g):(e.show(),g())}var d=this,e=c.newPanel,f=c.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),h()),f.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),e.length&&f.length?c.oldTab.attr("tabIndex",-1):e.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;d!==!1&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(d!==!0){if(c===b)d=!0;else{if(c=this._getIndex(c),a.inArray(c,d)!==-1)return;d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),g=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),i={tab:e,panel:h};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),d._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function c(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function d(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var b=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||"";return a("").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;return"disabled"===b?(this[c?"_disable":"_enable"](),void(this.options[b]=c)):(this._super(b,c),void("content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d,b=a(this);b.data("ui-tooltip-open")&&(d=a.Event("blur"),d.target=d.currentTarget=this,c.close(d,!0)),b.attr("title")&&(b.uniqueId(),c.parents[this.id]={element:this,title:b.attr("title")},b.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d?this._open(b,a,d):(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}),void(c&&this._open(b,a,c)))},_open:function(b,d,e){function j(a){i.of=a,f.is(":hidden")||f.position(i)}var f,g,h,i=a.extend({},this.options.position);if(e){if(f=this._find(d),f.length)return void f.find(".ui-tooltip-content").html(e);d.is("[title]")&&(b&&"mouseover"===b.type?d.attr("title",""):d.removeAttr("title")),f=this._tooltip(d),c(d,f.attr("id")),f.find(".ui-tooltip-content").html(e),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:j}),j(b)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(j(i.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:f}),g={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(f)}},b&&"mouseover"!==b.type||(g.mouseleave="close"),b&&"focusin"!==b.type||(g.focusout="close"),this._on(!0,d,g)}},close:function(b){var c=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),d(e),f.stop(!0),this._hide(f,this.options.hide,function(){c._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,d){a(d.element).attr("title",d.title),delete c.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(c){var d="ui-tooltip-"+b++,e=a("
          ").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("
          ").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[d]=c,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery);/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ (function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0
          ',image:'',iframe:'",error:'

          The requested content cannot be loaded.
          Please try again later.

          ',closeBtn:'
          ',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('
          ').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
          ").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
          ').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),cz||y>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectRatio?cu&&j
          ').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('
          '+e+"
          ");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('
          ').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('
          ').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery);(function(){"use strict";var $,Animation,Growl,__bind=function(fn,me){return function(){return fn.apply(me,arguments)}};$=jQuery;Animation=(function(){function Animation(){} -Animation.transitions={"webkitTransition":"webkitTransitionEnd","mozTransition":"mozTransitionEnd","oTransition":"oTransitionEnd","transition":"transitionend"};Animation.transition=function($el){var el,result,type,_ref;el=$el[0];_ref=this.transitions;for(type in _ref){result=_ref[type];if(el.style[type]!=null){return result}}};return Animation})();Growl=(function(){Growl.settings={namespace:'growl',duration:3200,close:"×",location:"default",style:"default",size:"medium"};Growl.growl=function(settings){if(settings==null){settings={}} +Animation.transitions={"webkitTransition":"webkitTransitionEnd","mozTransition":"mozTransitionEnd","oTransition":"oTransitionEnd","transition":"transitionend"};Animation.transition=function($el){var el,result,type,_ref;el=$el[0];_ref=this.transitions;for(type in _ref){result=_ref[type];if(el.style[type]!=null){return result}}};return Animation})();Growl=(function(){Growl.settings={namespace:'growl',duration:1000,close:"×",location:"default",style:"default",size:"medium"};Growl.growl=function(settings){if(settings==null){settings={}} this.initialize();return new Growl(settings)};Growl.initialize=function(){return $("body:not(:has(#growls))").append('
          ')};function Growl(settings){if(settings==null){settings={}} this.html=__bind(this.html,this);this.$growl=__bind(this.$growl,this);this.$growls=__bind(this.$growls,this);this.animate=__bind(this.animate,this);this.remove=__bind(this.remove,this);this.dismiss=__bind(this.dismiss,this);this.present=__bind(this.present,this);this.close=__bind(this.close,this);this.cycle=__bind(this.cycle,this);this.unbind=__bind(this.unbind,this);this.bind=__bind(this.bind,this);this.render=__bind(this.render,this);this.settings=$.extend({},Growl.settings,settings);this.$growls().attr('class',this.settings.location);this.render()} Growl.prototype.render=function(){var $growl;$growl=this.$growl();this.$growls().append($growl);this.cycle($growl)};Growl.prototype.bind=function($growl){if($growl==null){$growl=this.$growl()} diff --git a/themes/at_movic/assets/cache/bottom-e2a33c904.js b/themes/at_movic/assets/cache/bottom-e2a33c904.js index cee7fdd9..715e7d6b 100644 --- a/themes/at_movic/assets/cache/bottom-e2a33c904.js +++ b/themes/at_movic/assets/cache/bottom-e2a33c904.js @@ -1,896 +1,17517 @@ -!(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=(t[r]={i:r,l:!1,exports:{}});return e[r].call(i.exports,i,i.exports,n),(i.l=!0),i.exports}(n.m=e),(n.c=t),(n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})}),(n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}),(n.t=function(e,t){if((1&t&&(e=n(e)),8&t))return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if((n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)) -for(var i in e) -n.d(r,i,function(t){return e[t]}.bind(null,i));return r}),(n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t}),(n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}),(n.p=""),n((n.s=3))})([function(e,t,n){"use strict";(function(e){var n;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}/*! - * jQuery JavaScript Library v2.2.4 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2016-05-20T17:23Z - */ -/*! - * jQuery JavaScript Library v2.2.4 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2016-05-20T17:23Z - */ -!(function(t,n){"object"===r(e)&&"object"===r(e.exports)?(e.exports=t.document?n(t,!0):function(e){if(!e.document) -throw new Error("jQuery requires a window with a document");return n(e)}):n(t)})("undefined"!=typeof window?window:void 0,function(i,o){var a=[],s=i.document,u=a.slice,l=a.concat,c=a.push,d=a.indexOf,f={},p=f.toString,h=f.hasOwnProperty,v={},m=function e(t,n){return new e.fn.init(t,n)},g=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,b=/-([\da-z])/gi,x=function(e,t){return t.toUpperCase()};function w(e){var t=!!e&&"length" in e&&e.length,n=m.type(e);return("function"!==n&&!m.isWindow(e)&&("array"===n||0===t||("number"==typeof t&&t>0&&t-1 in e)))}(m.fn=m.prototype={jquery:"2.2.4",constructor:m,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return(t.prevObject=this),(t.context=this.context),t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},isPlainObject:function(e){var t;if("object"!==m.type(e)||e.nodeType||m.isWindow(e)) -return!1;if(e.constructor&&!h.call(e,"constructor")&&!h.call(e.constructor.prototype||{},"isPrototypeOf")) -return!1;for(t in e);return void 0===t||h.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"===r(e)||"function"==typeof e?f[p.call(e)]||"object":r(e)},globalEval:function(e){var t,n=eval;(e=m.trim(e))&&(1===e.indexOf("use strict")?(((t=s.createElement("script")).text=e),s.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(b,x)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(w(e)) -for(n=e.length;r+~]|"+M+")"+M+"*"),X=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),U=new RegExp(R),V=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i"),},Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode((r>>10)|55296,(1023&r)|56320)},re=function(){f()};try{L.apply((A=P.call(w.childNodes)),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;(e[n++]=t[r++]););e.length=n-1},}} -function ie(e,t,r,i){var o,s,l,c,d,h,g,y,T=t&&t.ownerDocument,C=t?t.nodeType:9;if(((r=r||[]),"string"!=typeof e||!e||(1!==C&&9!==C&&11!==C))) -return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&f(t),(t=t||p),v)){if(11!==C&&(h=K.exec(e))) -if((o=h[1])){if(9===C){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(T&&(l=T.getElementById(o))&&b(t,l)&&l.id===o) -return r.push(l),r}else{if(h[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName) -return L.apply(r,t.getElementsByClassName(o)),r} -if(n.qsa&&!j[e+" "]&&(!m||!m.test(e))){if(1!==C)(T=t),(y=e);else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?(c=c.replace(ee,"\\$&")):t.setAttribute("id",(c=x)),s=(g=a(e)).length,d=V.test(c)?"#"+c:"[id='"+c+"']";s--;) -g[s]=d+" "+ve(g[s]);(y=g.join(",")),(T=(Z.test(e)&&pe(t.parentNode))||t)} -if(y) -try{return L.apply(r,T.querySelectorAll(y)),r}catch(e){}finally{c===x&&t.removeAttribute("id")}}} -return u(e.replace($,"$1"),t,r,i)} -function oe(){var e=[];return function t(n,i){return(e.push(n+" ")>r.cacheLength&&delete t[e.shift()],(t[n+" "]=i))}} -function ae(e){return(e[x]=!0),e} -function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),(t=null)}} -function ue(e,t){for(var n=e.split("|"),i=n.length;i--;) -r.attrHandle[n[i]]=t} -function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||E)-(~e.sourceIndex||E);if(r)return r;if(n)for(;(n=n.nextSibling);)if(n===t)return-1;return e?1:-1} -function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}} -function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}} -function fe(e){return ae(function(t){return((t=+t),ae(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;) -n[(i=o[a])]&&(n[i]=!(r[i]=n[i]));}))})} -function pe(e){return e&&void 0!==e.getElementsByTagName&&e} -for(t in((n=ie.support={}),(o=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName}),(f=ie.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?((h=(p=a).documentElement),(v=!o(p)),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),(n.attributes=se(function(e){return(e.className="i"),!e.getAttribute("className")})),(n.getElementsByTagName=se(function(e){return(e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length)})),(n.getElementsByClassName=J.test(p.getElementsByClassName)),(n.getById=se(function(e){return((h.appendChild(e).id=x),!p.getElementsByName||!p.getElementsByName(x).length)})),n.getById?((r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}),(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}})):(delete r.find.ID,(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}})),(r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;(n=o[i++]);)1===n.nodeType&&r.push(n);return r} -return o}),(r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v) -return t.getElementsByClassName(e)}),(g=[]),(m=[]),(n.qsa=J.test(p.querySelectorAll))&&(se(function(e){(h.appendChild(e).innerHTML=""),e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),se(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test((y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector)))&&se(function(e){(n.disconnectedMatch=y.call(e,"div")),y.call(e,"[s!='']:x"),g.push("!=",R)}),(m=m.length&&new RegExp(m.join("|"))),(g=g.length&&new RegExp(g.join("|"))),(t=J.test(h.compareDocumentPosition)),(b=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return(e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r))))}:function(e,t){if(t) -for(;(t=t.parentNode);)if(t===e)return!0;return!1}),(_=t?function(e,t){if(e===t)return(d=!0),0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return(r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||(!n.sortDetached&&t.compareDocumentPosition(e)===r)?e===p||(e.ownerDocument===w&&b(w,e))?-1:t===p||(t.ownerDocument===w&&b(w,t))?1:c?O(c,e)-O(c,t):0:4&r?-1:1))}:function(e,t){if(e===t)return(d=!0),0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o) -return e===p?-1:t===p?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return le(e,t);for(n=e;(n=n.parentNode);)a.unshift(n);for(n=t;(n=n.parentNode);)s.unshift(n);for(;a[r]===s[r];)r++;return r?le(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0}),p):p}),(ie.matches=function(e,t){return ie(e,null,null,t)}),(ie.matchesSelector=function(e,t){if(((e.ownerDocument||e)!==p&&f(e),(t=t.replace(X,"='$1']")),n.matchesSelector&&v&&!j[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))) -try{var r=y.call(e,t);if(r||n.disconnectedMatch||(e.document&&11!==e.document.nodeType)) -return r}catch(e){} -return ie(t,p,null,[e]).length>0}),(ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)}),(ie.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==o?o:n.attributes||!v?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null}),(ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)}),(ie.uniqueSort=function(e){var t,r=[],i=0,o=0;if(((d=!n.detectDuplicates),(c=!n.sortStable&&e.slice(0)),e.sort(_),d)){for(;(t=e[o++]);)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1);} -return(c=null),e}),(i=ie.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e);}else if(3===o||4===o)return e.nodeValue}else for(;(t=e[r++]);)n+=i(t);return n}),((r=ie.selectors={cacheLength:50,createPseudo:ae,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"},},preFilter:{ATTR:function(e){return((e[1]=e[1].replace(te,ne)),(e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne)),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4))},CHILD:function(e){return((e[1]=e[1].toLowerCase()),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),(e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3]))),(e[5]=+(e[7]+e[8]||"odd"===e[3]))):e[3]&&ie.error(e[0]),e)},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?(e[2]=e[4]||e[5]||""):n&&U.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&((e[0]=e[0].slice(0,t)),(e[2]=n.slice(0,t))),e.slice(0,3))},},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return(t||((t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&k(e,function(e){return t.test(("string"==typeof e.className&&e.className)||(void 0!==e.getAttribute&&e.getAttribute("class"))||"")})))},ATTR:function(e,t,n){return function(r){var i=ie.attr(r,e);return null==i?"!="===t:!t||((i+=""),"="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(I," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,f,p,h,v=o!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(m){if(o){for(;v;){for(f=t;(f=f[v]);) -if(s?f.nodeName.toLowerCase()===g:1===f.nodeType) -return!1;h=v="only"===e&&!h&&"nextSibling"} -return!0} -if(((h=[a?m.firstChild:m.lastChild]),a&&y)){for(b=(p=(l=(c=(d=(f=m)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],f=p&&m.childNodes[p];(f=(++p&&f&&f[v])||(b=p=0)||h.pop());) -if(1===f.nodeType&&++b&&f===t){c[e]=[T,p,b];break}}else if((y&&(b=p=(l=(c=(d=(f=t)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===b)) -for(;(f=(++p&&f&&f[v])||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++b||(y&&((c=(d=f[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[T,b]),f!==t)););return(b-=i)===r||(b%r==0&&b/r>=0)}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?((n=[e,e,"",t]),r.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var r,o=i(e,t),a=o.length;a--;) -e[(r=O(e,o[a]))]=!(n[r]=o[a]);}):function(e){return i(e,0,n)}):i},},pseudos:{not:ae(function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[x]?ae(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o));}):function(e,i,o){return((t[0]=e),r(t,null,o,n),(t[0]=null),!n.pop())}}),has:ae(function(e){return function(t){return ie(e,t).length>0}}),contains:ae(function(e){return((e=e.replace(te,ne)),function(t){return((t.textContent||t.innerText||i(t)).indexOf(e)>-1)})}),lang:ae(function(e){return(V.test(e||"")||ie.error("unsupported lang: "+e),(e=e.replace(te,ne).toLowerCase()),function(t){var n;do{if((n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))) -return((n=n.toLowerCase())===e||0===n.indexOf(e+"-"))}while((t=t.parentNode)&&1===t.nodeType);return!1})}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return(e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex))},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return(("input"===t&&!!e.checked)||("option"===t&&!!e.selected))},selected:function(e){return(e.parentNode&&e.parentNode.selectedIndex,!0===e.selected)},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling) -if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return(("input"===t&&"button"===e.type)||"button"===t)},text:function(e){var t;return("input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase()))},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,n){return[n<0?n+t:n]}),even:fe(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:fe(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]} -function ye(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s-1&&(o[l]=!(a[l]=d));}}else(g=ye(g===a?g.splice(h,g.length):g)),i?i(null,a,g,u):L.apply(a,g)}))} -function xe(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),d=me(function(e){return O(t,e)>-1},s,!0),f=[function(e,n,r){var i=(!a&&(r||n!==l))||((t=n).nodeType?c(e,n,r):d(e,n,r));return(t=null),i},];u1&&ge(f),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace($,"$1"),n,u0,i=e.length>0,o=function(o,a,s,u,c){var d,h,m,g=0,y="0",b=o&&[],x=[],w=l,C=o||(i&&r.find.TAG("*",c)),k=(T+=null==w?1:Math.random()||0.1),S=C.length;for(c&&(l=a===p||a||c);y!==S&&null!=(d=C[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument===p||(f(d),(s=!v));(m=e[h++]);) -if(m(d,a||p,s)){u.push(d);break} -c&&(T=k)} -n&&((d=!m&&d)&&g--,o&&b.push(d))} -if(((g+=y),n&&y!==g)){for(h=0;(m=t[h++]);)m(b,x,a,s);if(o){if(g>0) -for(;y--;) -b[y]||x[y]||(x[y]=D.call(u));x=ye(x)} -L.apply(u,x),c&&!o&&x.length>0&&g+t.length>1&&ie.uniqueSort(u)} -return c&&((T=k),(l=w)),b};return n?ae(o):o})(o,i))).selector=e} -return s}),(u=ie.select=function(e,t,i,o){var u,l,c,d,f,p="function"==typeof e&&e,h=!o&&a((e=p.selector||e));if(((i=i||[]),1===h.length)){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0])) -return i;p&&(t=t.parentNode),(e=e.slice(l.shift().value.length))} -for(u=G.needsContext.test(e)?0:l.length;u--&&((c=l[u]),!r.relative[(d=c.type)]);) -if((f=r.find[d])&&(o=f(c.matches[0].replace(te,ne),(Z.test(l[0].type)&&pe(t.parentNode))||t))){if((l.splice(u,1),!(e=o.length&&ve(l)))) -return L.apply(i,o),i;break}} -return((p||s(e,h))(o,t,!v,i,!t||(Z.test(e)&&pe(t.parentNode))||t),i)}),(n.sortStable=x.split("").sort(_).join("")===x),(n.detectDuplicates=!!d),f(),(n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),se(function(e){return((e.innerHTML=""),"#"===e.firstChild.getAttribute("href"))})||ue("type|href|height|width",function(e,t,n){if(!n) -return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),(n.attributes&&se(function(e){return((e.innerHTML=""),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value"))}))||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase()) -return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(H,function(e,t,n){var r;if(!n) -return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie)})(i);(m.find=T),(m.expr=T.selectors),(m.expr[":"]=m.expr.pseudos),(m.uniqueSort=m.unique=T.uniqueSort),(m.text=T.getText),(m.isXMLDoc=T.isXML),(m.contains=T.contains);var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;) -if(1===e.nodeType){if(i&&m(e).is(n))break;r.push(e)} -return r},k=function(e,t){for(var n=[];e;e=e.nextSibling) -1===e.nodeType&&e!==t&&n.push(e);return n},S=m.expr.match.needsContext,j=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_=/^.[^:#\[\.,]*$/;function E(e,t,n){if(m.isFunction(t)) -return m.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType) -return m.grep(e,function(e){return(e===t)!==n});if("string"==typeof t){if(_.test(t))return m.filter(t,e,n);t=m.filter(t,e)} -return m.grep(e,function(e){return d.call(t,e)>-1!==n})}(m.filter=function(e,t,n){var r=t[0];return(n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType})))}),m.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e) -return this.pushStack(m(e).filter(function(){for(t=0;t1?m.unique(r):r)).selector=this.selector?this.selector+" "+e:e),r)},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&S.test(e)?m(e):e||[],!1).length},});var N,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;((m.fn.init=function(e,t,n){var r,i;if(!e)return this;if(((n=n||N),"string"==typeof e)){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||(!r[1]&&t)) -return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(((t=t instanceof m?t[0]:t),m.merge(this,m.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),j.test(r[1])&&m.isPlainObject(t))) -for(r in t) -m.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this} -return((i=s.getElementById(r[2]))&&i.parentNode&&((this.length=1),(this[0]=i)),(this.context=s),(this.selector=e),this);} -return e.nodeType?((this.context=this[0]=e),(this.length=1),this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):(void 0!==e.selector&&((this.selector=e.selector),(this.context=e.context)),m.makeArray(e,this))}).prototype=m.fn),(N=m(s));var D=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e} -m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&m.find.matchesSelector(n,e))){o.push(n);break} -return this.pushStack(o.length>1?m.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(m(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))},}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)},},function(e,t){m.fn[e]=function(n,r){var i=m.map(this,t,n);return("Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=m.filter(r,i)),this.length>1&&(q[e]||m.uniqueSort(i),D.test(e)&&i.reverse()),this.pushStack(i))}});var P,O=/\S+/g;function H(){s.removeEventListener("DOMContentLoaded",H),i.removeEventListener("load",H),m.ready()}(m.Callbacks=function(e){e="string"==typeof e?(function(e){var t={};return(m.each(e.match(O)||[],function(e,n){t[n]=!0}),t)})(e):m.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=e.once,r=t=!0;a.length;s=-1) -for(n=a.shift();++s-1;) -o.splice(n,1),n<=s&&s--}),this)},has:function(e){return e?m.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return(i=a=[]),(o=n=""),this},disabled:function(){return!o},lock:function(){return(i=a=[]),n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return(i||((n=[e,(n=n||[]).slice?n.slice():n]),a.push(n),t||u()),this)},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r},};return l}),m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")],],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){m.each(t,function(t,o){var a=m.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),(e=null)}).promise()},promise:function(e){return null!=e?m.extend(e,r):r},},i={};return((r.pipe=r.then),m.each(t,function(e,o){var a=o[2],s=o[3];(r[o[1]]=a.add),s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),(i[o[0]]=function(){return(i[o[0]+"With"](this===i?r:this,arguments),this)}),(i[o[0]+"With"]=a.fireWith)}),r.promise(i),e&&e.call(i,i),i)},when:function(e){var t,n,r,i=0,o=u.call(arguments),a=o.length,s=1!==a||(e&&m.isFunction(e.promise))?a:0,l=1===s?e:m.Deferred(),c=function(e,n,r){return function(i){(n[e]=this),(r[e]=arguments.length>1?u.call(arguments):i),r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1) -for(t=new Array(a),n=new Array(a),r=new Array(a);i0)||(P.resolveWith(s,[m]),m.fn.triggerHandler&&(m(s).triggerHandler("ready"),m(s).off("ready"))))},}),(m.ready.promise=function(e){return(P||((P=m.Deferred()),"complete"===s.readyState||("loading"!==s.readyState&&!s.documentElement.doScroll)?i.setTimeout(m.ready):(s.addEventListener("DOMContentLoaded",H),i.addEventListener("load",H))),P.promise(e))}),m.ready.promise();var M=function e(t,n,r,i,o,a,s){var u=0,l=t.length,c=null==r;if("object"===m.type(r)) -for(u in((o=!0),r))e(t,n,u,r[u],!0,a,s);else if(void 0!==i&&((o=!0),m.isFunction(i)||(s=!0),c&&(s?(n.call(t,i),(n=null)):((c=n),(n=function(e,t,n){return c.call(m(e),n)}))),n)) -for(;u-1&&void 0!==n&&I.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){I.remove(this,e)})},}),m.extend({queue:function(e,t,n){var r;if(e) -return((t=(t||"fx")+"queue"),(r=R.get(e,t)),n&&(!r||m.isArray(n)?(r=R.access(e,t,m.makeArray(n))):r.push(n)),r||[])},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,i=n.shift(),o=m._queueHooks(e,t);"inprogress"===i&&((i=n.shift()),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){m.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return(R.get(e,n)||R.access(e,n,{empty:m.Callbacks("once memory").add(function(){R.remove(e,[t+"queue",n])}),}))},}),m.fn.extend({queue:function(e,t){var n=2;return("string"!=typeof e&&((t=e),(e="fx"),n--),arguments.length",""],thead:[1,"","
          "],col:[2,"","
          "],tr:[2,"","
          "],td:[3,"","
          "],_default:[0,"",""],};function ee(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||(t&&m.nodeName(e,t))?m.merge([e],n):n} -function te(e,t){for(var n=0,r=e.length;n-1)i&&i.push(o);else if(((l=m.contains(o.ownerDocument,o)),(a=ee(d.appendChild(o),"script")),l&&te(a),n)) -for(c=0;(o=a[c++]);)K.test(o.type||"")&&n.push(o);return d} -!(function(){var e=s.createDocumentFragment().appendChild(s.createElement("div")),t=s.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),(v.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked),(e.innerHTML=""),(v.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue)})();var ie=/^key/,oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ae=/^([^.]*)(?:\.(.+)|)/;function se(){return!0} -function ue(){return!1} -function le(){try{return s.activeElement}catch(e){}} -function ce(e,t,n,i,o,a){var s,u;if("object"===r(t)){for(u in("string"!=typeof n&&((i=i||n),(n=void 0)),t)) -ce(e,u,n,i,t[u],a);return e} -if((null==i&&null==o?((o=n),(i=n=void 0)):null==o&&("string"==typeof n?((o=i),(i=void 0)):((o=i),(i=n),(n=void 0))),!1===o)) -o=ue;else if(!o)return e;return(1===a&&((s=o),((o=function(e){return m().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=m.guid++))),e.each(function(){m.event.add(this,t,o,i,n)}))}(m.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,v,g=R.get(e);if(g) -for(n.handler&&((n=(o=n).handler),(i=o.selector)),n.guid||(n.guid=m.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)(p=v=(s=ae.exec(t[l])||[])[1]),(h=(s[2]||"").split(".").sort()),p&&((d=m.event.special[p]||{}),(p=(i?d.delegateType:d.bindType)||p),(d=m.event.special[p]||{}),(c=m.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&m.expr.match.needsContext.test(i),namespace:h.join("."),},o)),(f=u[p])||(((f=u[p]=[]).delegateCount=0),(d.setup&&!1!==d.setup.call(e,r,h,a))||(e.addEventListener&&e.addEventListener(p,a))),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),(m.event.global[p]=!0))},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,v,g=R.hasData(e)&&R.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;) -if(((p=v=(s=ae.exec(t[l])||[])[1]),(h=(s[2]||"").split(".").sort()),p)){for(d=m.event.special[p]||{},f=u[(p=(r?d.delegateType:d.bindType)||p)]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)(c=f[o]),(!i&&v!==c.origType)||(n&&n.guid!==c.guid)||(s&&!s.test(c.namespace))||(r&&r!==c.selector&&("**"!==r||!c.selector))||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&((d.teardown&&!1!==d.teardown.call(e,h,g.handle))||m.removeEvent(e,p,g.handle),delete u[p])}else for(p in u)m.event.remove(e,p+t[l],n,r,!0);m.isEmptyObject(u)&&R.remove(e,"handle events")}},dispatch:function(e){e=m.event.fix(e);var t,n,r,i,o,a,s=u.call(arguments),l=(R.get(this,"events")||{})[e.type]||[],c=m.event.special[e.type]||{};if(((s[0]=e),(e.delegateTarget=this),!c.preDispatch||!1!==c.preDispatch.call(this,e))){for(a=m.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();) -for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)(e.rnamespace&&!e.rnamespace.test(o.namespace))||((e.handleObj=o),(e.data=o.data),void 0!==(r=((m.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1)) -for(;u!==this;u=u.parentNode||this) -if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n-1:m.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})} -return(s]*)\/>/gi,fe=/\s*$/g;function me(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e} -function ge(e){return(e.type=(null!==e.getAttribute("type"))+"/"+e.type),e} -function ye(e){var t=he.exec(e.type);return t?(e.type=t[1]):e.removeAttribute("type"),e} -function be(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(R.hasData(e)&&((o=R.access(e)),(a=R.set(t,o)),(l=o.events))) -for(i in(delete a.handle,(a.events={}),l)) -for(n=0,r=l[i].length;n1&&"string"==typeof h&&!v.checkClone&&pe.test(h))) -return e.each(function(i){var o=e.eq(i);g&&(t[0]=h.call(this,i,o.html())),we(o,t,n,r)});if(f&&((o=(i=re(t,e[0].ownerDocument,!1,e,r)).firstChild),1===i.childNodes.length&&(i=o),o||r)){for(s=(a=m.map(ee(i,"script"),ge)).length;d")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=m.contains(e.ownerDocument,e);if(!(v.noCloneChecked||(1!==e.nodeType&&11!==e.nodeType)||m.isXMLDoc(e))) -for(a=ee(s),r=0,i=(o=ee(e)).length;r0&&te(a,!u&&ee(e,"script")),s)},cleanData:function(e){for(var t,n,r,i=m.event.special,o=0;void 0!==(n=e[o]);o++) -if(F(n)){if((t=n[R.expando])){if(t.events) -for(r in t.events) -i[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[R.expando]=void 0} -n[I.expando]&&(n[I.expando]=void 0);}},}),m.fn.extend({domManip:we,detach:function(e){return Te(this,e,!0)},remove:function(e){return Te(this,e)},text:function(e){return M(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){(1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType)||(this.textContent=e)})},null,e,arguments.length)},append:function(){return we(this,arguments,function(e){(1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType)||me(this,e).appendChild(e)})},prepend:function(){return we(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++) -1===e.nodeType&&(m.cleanData(ee(e,!1)),(e.textContent=""));return this},clone:function(e,t){return((e=null!=e&&e),(t=null==t?e:t),this.map(function(){return m.clone(this,e,t)}))},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!fe.test(e)&&!Z[(J.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),(n=Se(e,t)),Ce.detach()),(ke[e]=n)),n)} -var _e=/^margin/,Ee=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Ne=function(e){var t=e.ownerDocument.defaultView;return(t&&t.opener)||(t=i),t.getComputedStyle(e)},Ae=function(e,t,n,r){var i,o,a={};for(o in t)(a[o]=e.style[o]),(e.style[o]=t[o]);for(o in((i=n.apply(e,r||[])),t))e.style[o]=a[o];return i},De=s.documentElement;function qe(e,t,n){var r,i,o,a,s=e.style;return((""!==(a=(n=n||Ne(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a)||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),n&&!v.pixelMarginRight()&&Ee.test(a)&&_e.test(t)&&((r=s.width),(i=s.minWidth),(o=s.maxWidth),(s.minWidth=s.maxWidth=s.width=a),(a=n.width),(s.width=r),(s.minWidth=i),(s.maxWidth=o)),void 0!==a?a+"":a)} -function Le(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get},}} -!(function(){var e,t,n,r,o=s.createElement("div"),a=s.createElement("div");function u(){(a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%"),(a.innerHTML=""),De.appendChild(o);var s=i.getComputedStyle(a);(e="1%"!==s.top),(r="2px"===s.marginLeft),(t="4px"===s.width),(a.style.marginRight="50%"),(n="4px"===s.marginRight),De.removeChild(o)} -a.style&&((a.style.backgroundClip="content-box"),(a.cloneNode(!0).style.backgroundClip=""),(v.clearCloneStyle="content-box"===a.style.backgroundClip),(o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute"),o.appendChild(a),m.extend(v,{pixelPosition:function(){return u(),e},boxSizingReliable:function(){return null==t&&u(),t},pixelMarginRight:function(){return null==t&&u(),n},reliableMarginLeft:function(){return null==t&&u(),r},reliableMarginRight:function(){var e,t=a.appendChild(s.createElement("div"));return((t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0"),(t.style.marginRight=t.style.width="0"),(a.style.width="1px"),De.appendChild(o),(e=!parseFloat(i.getComputedStyle(t).marginRight)),De.removeChild(o),a.removeChild(t),e)},}))})();var Pe=/^(none|table(?!-c[ea]).+)/,Oe={position:"absolute",visibility:"hidden",display:"block"},He={letterSpacing:"0",fontWeight:"400"},Me=["Webkit","O","Moz","ms"],Fe=s.createElement("div").style;function We(e){if(e in Fe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Me.length;n--;) -if((e=Me[n]+t)in Fe)return e} -function Re(e,t,n){var r=U.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t} -function Ie(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2) -"margin"===n&&(a+=m.css(e,n+V[o],!0,i)),r?("content"===n&&(a-=m.css(e,"padding"+V[o],!0,i)),"margin"!==n&&(a-=m.css(e,"border"+V[o]+"Width",!0,i))):((a+=m.css(e,"padding"+V[o],!0,i)),"padding"!==n&&(a+=m.css(e,"border"+V[o]+"Width",!0,i)));return a} -function $e(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ne(e),a="border-box"===m.css(e,"boxSizing",!1,o);if(i<=0||null==i){if((((i=qe(e,t,o))<0||null==i)&&(i=e.style[t]),Ee.test(i))) -return i;(r=a&&(v.boxSizingReliable()||i===e.style[t])),(i=parseFloat(i)||0)} -return i+Ie(e,t,n||(a?"border":"content"),r,o)+"px"} -function Be(e,t){for(var n,r,i,o=[],a=0,s=e.length;a1)},show:function(){return Be(this,!0)},hide:function(){return Be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){G(this)?m(this).show():m(this).hide()})},}),(m.Tween=ze),(ze.prototype={constructor:ze,init:function(e,t,n,r,i,o){(this.elem=e),(this.prop=n),(this.easing=i||m.easing._default),(this.options=t),(this.start=this.now=this.cur()),(this.end=r),(this.unit=o||(m.cssNumber[n]?"":"px"))},cur:function(){var e=ze.propHooks[this.prop];return e&&e.get?e.get(this):ze.propHooks._default.get(this)},run:function(e){var t,n=ze.propHooks[this.prop];return(this.options.duration?(this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration)):(this.pos=t=e),(this.now=(this.end-this.start)*t+this.start),this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ze.propHooks._default.set(this),this)},}),(ze.prototype.init.prototype=ze.prototype),(ze.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||(null!=e.elem[e.prop]&&null==e.elem.style[e.prop])?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||(null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop])?(e.elem[e.prop]=e.now):m.style(e.elem,e.prop,e.now+e.unit)},},}),(ze.propHooks.scrollTop=ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)},}),(m.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2},_default:"swing",}),(m.fx=ze.prototype.init),(m.fx.step={});var Xe,Ue,Ve=/^(?:toggle|show|hide)$/,Ge=/queueHooks$/;function Ye(){return(i.setTimeout(function(){Xe=void 0}),(Xe=m.now()))} -function Qe(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t) -i["margin"+(n=V[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i} -function Je(e,t,n){for(var r,i=(Ke.tweeners[t]||[]).concat(Ke.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})},}),m.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o) -return void 0===e.getAttribute?m.prop(e,t,n):((1===o&&m.isXMLDoc(e))||((t=t.toLowerCase()),(i=m.attrHooks[t]||(m.expr.match.bool.test(t)?Ze:void 0))),void 0!==n?null===n?void m.removeAttr(e,t):i&&"set" in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get" in i&&null!==(r=i.get(e,t))?r:null==(r=m.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}},},},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(O);if(o&&1===e.nodeType) -for(;(n=o[i++]);)(r=m.propFix[n]||n),m.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n);},}),(Ze={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n},}),m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=et[t]||m.find.attr;et[t]=function(e,t,r){var i,o;return(r||((o=et[t]),(et[t]=i),(i=null!=n(e,t,r)?t.toLowerCase():null),(et[t]=o)),i)}});var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;m.fn.extend({prop:function(e,t){return M(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})},}),m.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o) -return((1===o&&m.isXMLDoc(e))||((t=m.propFix[t]||t),(i=m.propHooks[t])),void 0!==n?i&&"set" in i&&void 0!==(r=i.set(e,n,t))?r:(e[t]=n):i&&"get" in i&&null!==(r=i.get(e,t))?r:e[t])},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||(nt.test(e.nodeName)&&e.href)?0:-1},},},propFix:{for:"htmlFor",class:"className"},}),v.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)},}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable",],function(){m.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;function it(e){return(e.getAttribute&&e.getAttribute("class"))||""} -m.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e)) -return this.each(function(t){m(this).addClass(e.call(this,t,it(this)))});if("string"==typeof e&&e) -for(t=e.match(O)||[];(n=this[u++]);) -if(((i=it(n)),(r=1===n.nodeType&&(" "+i+" ").replace(rt," ")))){for(a=0;(o=t[a++]);) -r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=m.trim(r))&&n.setAttribute("class",s)} -return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e)) -return this.each(function(t){m(this).removeClass(e.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e) -for(t=e.match(O)||[];(n=this[u++]);) -if(((i=it(n)),(r=1===n.nodeType&&(" "+i+" ").replace(rt," ")))){for(a=0;(o=t[a++]);) -for(;r.indexOf(" "+o+" ")>-1;) -r=r.replace(" "+o+" "," ");i!==(s=m.trim(r))&&n.setAttribute("class",s)} -return this},toggleClass:function(e,t){var n=r(e);return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,it(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n) -for(r=0,i=m(this),o=e.match(O)||[];(t=o[r++]);) -i.hasClass(t)?i.removeClass(t):i.addClass(t);else(void 0!==e&&"boolean"!==n)||((t=it(this))&&R.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":R.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";(n=this[r++]);) -if(1===n.nodeType&&(" "+it(n)+" ").replace(rt," ").indexOf(t)>-1) -return!0;return!1},});var ot=/\r/g,at=/[\x20\t\r\n\f]+/g;m.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?((r=m.isFunction(e)),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,m(this).val()):e)?(i=""):"number"==typeof i?(i+=""):m.isArray(i)&&(i=m.map(i,function(e){return null==e?"":e+""})),((t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set" in t&&void 0!==t.set(this,i,"value"))||(this.value=i))})):i?(t=m.valHooks[i.type]||m.valHooks[i.nodeName.toLowerCase()])&&"get" in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ot,""):null==n?"":n:void 0},}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:m.trim(m.text(e)).replace(at," ")},},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u-1)&&(n=!0);return n||(e.selectedIndex=-1),o},},},}),m.each(["radio","checkbox"],function(){(m.valHooks[this]={set:function(e,t){if(m.isArray(t)) -return(e.checked=m.inArray(m(e).val(),t)>-1)},}),v.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var st=/^(?:focusinfocus|focusoutblur)$/;m.extend(m.event,{trigger:function(e,t,n,o){var a,u,l,c,d,f,p,v=[n||s],g=h.call(e,"type")?e.type:e,y=h.call(e,"namespace")?e.namespace.split("."):[];if(((u=l=n=n||s),3!==n.nodeType&&8!==n.nodeType&&!st.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&((g=(y=g.split(".")).shift()),y.sort()),(d=g.indexOf(":")<0&&"on"+g),((e=e[m.expando]?e:new m.Event(g,"object"===r(e)&&e)).isTrigger=o?2:3),(e.namespace=y.join(".")),(e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null),(e.result=void 0),e.target||(e.target=n),(t=null==t?[e]:m.makeArray(t,[e])),(p=m.event.special[g]||{}),o||!p.trigger||!1!==p.trigger.apply(n,t)))){if(!o&&!p.noBubble&&!m.isWindow(n)){for(c=p.delegateType||g,st.test(c+g)||(u=u.parentNode);u;u=u.parentNode) -v.push(u),(l=u);l===(n.ownerDocument||s)&&v.push(l.defaultView||l.parentWindow||i)} -for(a=0;(u=v[a++])&&!e.isPropagationStopped();)(e.type=a>1?c:p.bindType||g),(f=(R.get(u,"events")||{})[e.type]&&R.get(u,"handle"))&&f.apply(u,t),(f=d&&u[d])&&f.apply&&F(u)&&((e.result=f.apply(u,t)),!1===e.result&&e.preventDefault());return((e.type=g),o||e.isDefaultPrevented()||(p._default&&!1!==p._default.apply(v.pop(),t))||!F(n)||(d&&m.isFunction(n[g])&&!m.isWindow(n)&&((l=n[d])&&(n[d]=null),(m.event.triggered=g),n[g](),(m.event.triggered=void 0),l&&(n[d]=l))),e.result)}},simulate:function(e,t,n){var r=m.extend(new m.Event(),n,{type:e,isSimulated:!0});m.event.trigger(r,null,t)},}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)},}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},}),(v.focusin="onfocusin" in i),v.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=R.access(r,t);i||r.addEventListener(e,n,!0),R.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=R.access(r,t)-1;i?R.access(r,t,i):(r.removeEventListener(e,n,!0),R.remove(r,t))},}});var ut=i.location,lt=m.now(),ct=/\?/;(m.parseJSON=function(e){return JSON.parse(e+"")}),(m.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=new i.DOMParser().parseFromString(e,"text/xml")}catch(e){t=void 0} -return((t&&!t.getElementsByTagName("parsererror").length)||m.error("Invalid XML: "+e),t)});var dt=/#.*$/,ft=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:GET|HEAD)$/,vt=/^\/\//,mt={},gt={},yt="*/".concat("*"),bt=s.createElement("a");function xt(e){return function(t,n){"string"!=typeof t&&((n=t),(t="*"));var r,i=0,o=t.toLowerCase().match(O)||[];if(m.isFunction(n)) -for(;(r=o[i++]);) -"+"===r[0]?((r=r.slice(1)||"*"),(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n);}} -function wt(e,t,n,r){var i={},o=e===gt;function a(s){var u;return((i[s]=!0),m.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u)} -return a(t.dataTypes[0])||(!i["*"]&&a("*"))} -function Tt(e,t){var n,r,i=m.ajaxSettings.flatOptions||{};for(n in t) -void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&m.extend(!0,e,r),e}(bt.href=ut.href),m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ut.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON",},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML,},flatOptions:{url:!0,context:!0},},ajaxSetup:function(e,t){return t?Tt(Tt(e,m.ajaxSettings),t):Tt(m.ajaxSettings,e)},ajaxPrefilter:xt(mt),ajaxTransport:xt(gt),ajax:function(e,t){"object"===r(e)&&((t=e),(e=void 0)),(t=t||{});var n,o,a,u,l,c,d,f,p=m.ajaxSetup({},t),h=p.context||p,v=p.context&&(h.nodeType||h.jquery)?m(h):m.event,g=m.Deferred(),y=m.Callbacks("once memory"),b=p.statusCode||{},x={},w={},T=0,C="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===T){if(!u) -for(u={};(t=pt.exec(a));) -u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]} -return null==t?null:t},getAllResponseHeaders:function(){return 2===T?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return T||((e=w[n]=w[n]||e),(x[e]=t)),this},overrideMimeType:function(e){return T||(p.mimeType=e),this},statusCode:function(e){var t;if(e) -if(T<2)for(t in e)b[t]=[b[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||C;return n&&n.abort(t),S(0,t),this},};if(((g.promise(k).complete=y.add),(k.success=k.done),(k.error=k.fail),(p.url=((e||p.url||ut.href)+"").replace(dt,"").replace(vt,ut.protocol+"//")),(p.type=t.method||t.type||p.method||p.type),(p.dataTypes=m.trim(p.dataType||"*").toLowerCase().match(O)||[""]),null==p.crossDomain)){c=s.createElement("a");try{(c.href=p.url),(c.href=c.href),(p.crossDomain=bt.protocol+"//"+bt.host!=c.protocol+"//"+c.host)}catch(e){p.crossDomain=!0}} -if((p.data&&p.processData&&"string"!=typeof p.data&&(p.data=m.param(p.data,p.traditional)),wt(mt,p,t,k),2===T)) -return k;for(f in((d=m.event&&p.global)&&0==m.active++&&m.event.trigger("ajaxStart"),(p.type=p.type.toUpperCase()),(p.hasContent=!ht.test(p.type)),(o=p.url),p.hasContent||(p.data&&((o=p.url+=(ct.test(o)?"&":"?")+p.data),delete p.data),!1===p.cache&&(p.url=ft.test(o)?o.replace(ft,"$1_="+lt++):o+(ct.test(o)?"&":"?")+"_="+lt++)),p.ifModified&&(m.lastModified[o]&&k.setRequestHeader("If-Modified-Since",m.lastModified[o]),m.etag[o]&&k.setRequestHeader("If-None-Match",m.etag[o])),((p.data&&p.hasContent&&!1!==p.contentType)||t.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+yt+"; q=0.01":""):p.accepts["*"]),p.headers)) -k.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(h,k,p)||2===T)) -return k.abort();for(f in((C="abort"),{success:1,error:1,complete:1})) -k[f](p[f]);if((n=wt(gt,p,t,k))){if(((k.readyState=1),d&&v.trigger("ajaxSend",[k,p]),2===T)) -return k;p.async&&p.timeout>0&&(l=i.setTimeout(function(){k.abort("timeout")},p.timeout));try{(T=1),n.send(x,S)}catch(e){if(!(T<2))throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,r,s){var u,c,f,x,w,C=t;2!==T&&((T=2),l&&i.clearTimeout(l),(n=void 0),(a=s||""),(k.readyState=e>0?4:0),(u=(e>=200&&e<300)||304===e),r&&(x=(function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];) -u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r) -for(i in s) -if(s[i]&&s[i].test(r)){u.unshift(i);break} -if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break} -a||(a=i)} -o=o||a} -if(o)return o!==u[0]&&u.unshift(o),n[o]})(p,k,r)),(x=(function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1]) -for(a in e.converters) -l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;) -if((e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),(u=o),(o=c.shift()))) -if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o])) -for(i in l) -if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?(a=l[i]):!0!==l[i]&&((o=s[0]),c.unshift(s[1]));break} -if(!0!==a) -if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o,}}} -return{state:"success",data:t}})(p,x,k,u)),u?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(m.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(m.etag[o]=w)),204===e||"HEAD"===p.type?(C="nocontent"):304===e?(C="notmodified"):((C=x.state),(c=x.data),(u=!(f=x.error)))):((f=C),(!e&&C)||((C="error"),e<0&&(e=0))),(k.status=e),(k.statusText=(t||C)+""),u?g.resolveWith(h,[c,C,k]):g.rejectWith(h,[k,C,f]),k.statusCode(b),(b=void 0),d&&v.trigger(u?"ajaxSuccess":"ajaxError",[k,p,u?c:f,]),y.fireWith(h,[k,C]),d&&(v.trigger("ajaxComplete",[k,p]),--m.active||m.event.trigger("ajaxStop")))} -return k},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")},}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,i){return(m.isFunction(n)&&((i=i||r),(r=n),(n=void 0)),m.ajax(m.extend({url:e,type:t,dataType:i,data:n,success:r},m.isPlainObject(e)&&e)))}}),(m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0,})}),m.fn.extend({wrapAll:function(e){var t;return m.isFunction(e)?this.each(function(t){m(this).wrapAll(e.call(this,t))}):(this[0]&&((t=m(e,this[0].ownerDocument).eq(0).clone(!0)),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;) -e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()},}),(m.expr.filters.hidden=function(e){return!m.expr.filters.visible(e)}),(m.expr.filters.visible=function(e){return(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)});var Ct=/%20/g,kt=/\[\]$/,St=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,_t=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,i){var o;if(m.isArray(t)) -m.each(t,function(t,o){n||kt.test(e)?i(e,o):Et(e+"["+("object"===r(o)&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==m.type(t))i(e,t);else for(o in t)Et(e+"["+o+"]",t[o],n,i);}(m.param=function(e,t){var n,r=[],i=function(e,t){(t=m.isFunction(t)?t():null==t?"":t),(r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t))};if((void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||(e.jquery&&!m.isPlainObject(e)))) -m.each(e,function(){i(this.name,this.value)});else for(n in e)Et(n,e[n],t,i);return r.join("&").replace(Ct,"+")}),m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return(this.name&&!m(this).is(":disabled")&&_t.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Q.test(e)))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()},}),(m.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest()}catch(e){}});var Nt={0:200,1223:204},At=m.ajaxSettings.xhr();(v.cors=!!At&&"withCredentials" in At),(v.ajax=At=!!At),m.ajaxTransport(function(e){var t,n;if(v.cors||(At&&!e.crossDomain)) -return{send:function(r,o){var a,s=e.xhr();if((s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)) -for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in(e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)) -s.setRequestHeader(a,r[a]);(t=function(e){return function(){t&&((t=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null),"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Nt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}}),(s.onload=t()),(n=s.onerror=t("error")),void 0!==s.onabort?(s.onabort=n):(s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){t&&n()})}),(t=t("abort"));try{s.send((e.hasContent&&e.data)||null)}catch(e){if(t)throw e}},abort:function(){t&&t()},}}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e},},}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){var t,n;if(e.crossDomain) -return{send:function(r,i){(t=m("'), + (e = e.removeChild(e.firstChild))) + : 'string' == typeof r.is + ? (e = u.createElement(i, { is: r.is })) + : ((e = u.createElement(i)), + 'select' === i && + ((u = e), + r.multiple + ? (u.multiple = !0) + : r.size && (u.size = r.size))) + : (e = u.createElementNS(e, i)), + (e[En] = t), + (e[Sn] = r), + qa(e, t), + (t.stateNode = e), + (u = an(i, r)), + i) + ) { + case 'iframe': + case 'object': + case 'embed': + Qt('load', e), (s = r) + break + case 'video': + case 'audio': + for (s = 0; s < Ye.length; s++) Qt(Ye[s], e) + s = r + break + case 'source': + Qt('error', e), (s = r) + break + case 'img': + case 'image': + case 'link': + Qt('error', e), Qt('load', e), (s = r) + break + case 'form': + Qt('reset', e), Qt('submit', e), (s = r) + break + case 'details': + Qt('toggle', e), (s = r) + break + case 'input': + Te(e, r), (s = ke(e, r)), Qt('invalid', e), un(n, 'onChange') + break + case 'option': + s = Ne(e, r) + break + case 'select': + ;(e._wrapperState = { wasMultiple: !!r.multiple }), + (s = o({}, r, { value: void 0 })), + Qt('invalid', e), + un(n, 'onChange') + break + case 'textarea': + je(e, r), (s = Oe(e, r)), Qt('invalid', e), un(n, 'onChange') + break + default: + s = r + } + on(i, s) + var c = s + for (l in c) + if (c.hasOwnProperty(l)) { + var f = c[l] + 'style' === l + ? nn(e, f) + : 'dangerouslySetInnerHTML' === l + ? null != (f = f ? f.__html : void 0) && ze(e, f) + : 'children' === l + ? 'string' == typeof f + ? ('textarea' !== i || '' !== f) && qe(e, f) + : 'number' == typeof f && qe(e, '' + f) + : 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + 'autoFocus' !== l && + (E.hasOwnProperty(l) + ? null != f && un(n, l) + : null != f && G(e, l, f, u)) + } + switch (i) { + case 'input': + we(e), Ce(e, r, !1) + break + case 'textarea': + we(e), Ae(e) + break + case 'option': + null != r.value && e.setAttribute('value', '' + ge(r.value)) + break + case 'select': + ;(e.multiple = !!r.multiple), + null != (n = r.value) + ? _e(e, !!r.multiple, n, !1) + : null != r.defaultValue && + _e(e, !!r.multiple, r.defaultValue, !0) + break + default: + 'function' == typeof s.onClick && (e.onclick = sn) + } + yn(i, r) && (t.effectTag |= 4) + } + null !== t.ref && (t.effectTag |= 128) + } + return null + case 6: + if (e && null != t.stateNode) Wa(0, t, e.memoizedProps, r) + else { + if ('string' != typeof r && null === t.stateNode) + throw Error(a(166)) + ;(n = ji(Oi.current)), + ji(Ni.current), + Pa(t) + ? ((n = t.stateNode), + (r = t.memoizedProps), + (n[En] = t), + n.nodeValue !== r && (t.effectTag |= 4)) + : (((n = ( + 9 === n.nodeType ? n : n.ownerDocument + ).createTextNode(r))[En] = t), + (t.stateNode = n)) + } + return null + case 13: + return ( + uo(Ri), + (r = t.memoizedState), + 0 != (64 & t.effectTag) + ? ((t.expirationTime = n), t) + : ((n = null !== r), + (r = !1), + null === e + ? void 0 !== t.memoizedProps.fallback && Pa(t) + : ((r = null !== (i = e.memoizedState)), + n || + null === i || + (null !== (i = e.child.sibling) && + (null !== (l = t.firstEffect) + ? ((t.firstEffect = i), (i.nextEffect = l)) + : ((t.firstEffect = t.lastEffect = i), + (i.nextEffect = null)), + (i.effectTag = 8)))), + n && + !r && + 0 != (2 & t.mode) && + ((null === e && + !0 !== t.memoizedProps.unstable_avoidThisFallback) || + 0 != (1 & Ri.current) + ? Pl === wl && (Pl = xl) + : ((Pl !== wl && Pl !== xl) || (Pl = kl), + 0 !== Dl && null !== El && (Au(El, Cl), Lu(El, Dl)))), + (n || r) && (t.effectTag |= 4), + null) + ) + case 4: + return Ai(), null + case 10: + return ti(t), null + case 17: + return vo(t.type) && yo(), null + case 19: + if ((uo(Ri), null === (r = t.memoizedState))) return null + if (((i = 0 != (64 & t.effectTag)), null === (l = r.rendering))) { + if (i) Xa(r, !1) + else if (Pl !== wl || (null !== e && 0 != (64 & e.effectTag))) + for (l = t.child; null !== l; ) { + if (null !== (e = Mi(l))) { + for ( + t.effectTag |= 64, + Xa(r, !1), + null !== (i = e.updateQueue) && + ((t.updateQueue = i), (t.effectTag |= 4)), + null === r.lastEffect && (t.firstEffect = null), + t.lastEffect = r.lastEffect, + r = t.child; + null !== r; + + ) + (l = n), + ((i = r).effectTag &= 2), + (i.nextEffect = null), + (i.firstEffect = null), + (i.lastEffect = null), + null === (e = i.alternate) + ? ((i.childExpirationTime = 0), + (i.expirationTime = l), + (i.child = null), + (i.memoizedProps = null), + (i.memoizedState = null), + (i.updateQueue = null), + (i.dependencies = null)) + : ((i.childExpirationTime = e.childExpirationTime), + (i.expirationTime = e.expirationTime), + (i.child = e.child), + (i.memoizedProps = e.memoizedProps), + (i.memoizedState = e.memoizedState), + (i.updateQueue = e.updateQueue), + (l = e.dependencies), + (i.dependencies = + null === l + ? null + : { + expirationTime: l.expirationTime, + firstContext: l.firstContext, + responders: l.responders, + })), + (r = r.sibling) + return so(Ri, (1 & Ri.current) | 2), t.child + } + l = l.sibling + } + } else { + if (!i) + if (null !== (e = Mi(l))) { + if ( + ((t.effectTag |= 64), + (i = !0), + null !== (n = e.updateQueue) && + ((t.updateQueue = n), (t.effectTag |= 4)), + Xa(r, !0), + null === r.tail && 'hidden' === r.tailMode && !l.alternate) + ) + return ( + null !== (t = t.lastEffect = r.lastEffect) && + (t.nextEffect = null), + null + ) + } else + 2 * qo() - r.renderingStartTime > r.tailExpiration && + 1 < n && + ((t.effectTag |= 64), + (i = !0), + Xa(r, !1), + (t.expirationTime = t.childExpirationTime = n - 1)) + r.isBackwards + ? ((l.sibling = t.child), (t.child = l)) + : (null !== (n = r.last) ? (n.sibling = l) : (t.child = l), + (r.last = l)) + } + return null !== r.tail + ? (0 === r.tailExpiration && (r.tailExpiration = qo() + 500), + (n = r.tail), + (r.rendering = n), + (r.tail = n.sibling), + (r.lastEffect = t.lastEffect), + (r.renderingStartTime = qo()), + (n.sibling = null), + (t = Ri.current), + so(Ri, i ? (1 & t) | 2 : 1 & t), + n) + : null + } + throw Error(a(156, t.tag)) + } + function Ga(e) { + switch (e.tag) { + case 1: + vo(e.type) && yo() + var t = e.effectTag + return 4096 & t ? ((e.effectTag = (-4097 & t) | 64), e) : null + case 3: + if ((Ai(), uo(po), uo(fo), 0 != (64 & (t = e.effectTag)))) + throw Error(a(285)) + return (e.effectTag = (-4097 & t) | 64), e + case 5: + return Ii(e), null + case 13: + return ( + uo(Ri), + 4096 & (t = e.effectTag) + ? ((e.effectTag = (-4097 & t) | 64), e) + : null + ) + case 19: + return uo(Ri), null + case 4: + return Ai(), null + case 10: + return ti(e), null + default: + return null + } + } + function Ja(e, t) { + return { value: e, source: t, stack: ye(t) } + } + ;(qa = function (e, t) { + for (var n = t.child; null !== n; ) { + if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode) + else if (4 !== n.tag && null !== n.child) { + ;(n.child.return = n), (n = n.child) + continue + } + if (n === t) break + for (; null === n.sibling; ) { + if (null === n.return || n.return === t) return + n = n.return + } + ;(n.sibling.return = n.return), (n = n.sibling) + } + }), + (Ha = function (e, t, n, r, i) { + var a = e.memoizedProps + if (a !== r) { + var l, + u, + s = t.stateNode + switch ((ji(Ni.current), (e = null), n)) { + case 'input': + ;(a = ke(s, a)), (r = ke(s, r)), (e = []) + break + case 'option': + ;(a = Ne(s, a)), (r = Ne(s, r)), (e = []) + break + case 'select': + ;(a = o({}, a, { value: void 0 })), + (r = o({}, r, { value: void 0 })), + (e = []) + break + case 'textarea': + ;(a = Oe(s, a)), (r = Oe(s, r)), (e = []) + break + default: + 'function' != typeof a.onClick && + 'function' == typeof r.onClick && + (s.onclick = sn) + } + for (l in (on(n, r), (n = null), a)) + if (!r.hasOwnProperty(l) && a.hasOwnProperty(l) && null != a[l]) + if ('style' === l) + for (u in (s = a[l])) + s.hasOwnProperty(u) && (n || (n = {}), (n[u] = '')) + else + 'dangerouslySetInnerHTML' !== l && + 'children' !== l && + 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + 'autoFocus' !== l && + (E.hasOwnProperty(l) + ? e || (e = []) + : (e = e || []).push(l, null)) + for (l in r) { + var c = r[l] + if ( + ((s = null != a ? a[l] : void 0), + r.hasOwnProperty(l) && c !== s && (null != c || null != s)) + ) + if ('style' === l) + if (s) { + for (u in s) + !s.hasOwnProperty(u) || + (c && c.hasOwnProperty(u)) || + (n || (n = {}), (n[u] = '')) + for (u in c) + c.hasOwnProperty(u) && + s[u] !== c[u] && + (n || (n = {}), (n[u] = c[u])) + } else n || (e || (e = []), e.push(l, n)), (n = c) + else + 'dangerouslySetInnerHTML' === l + ? ((c = c ? c.__html : void 0), + (s = s ? s.__html : void 0), + null != c && s !== c && (e = e || []).push(l, c)) + : 'children' === l + ? s === c || + ('string' != typeof c && 'number' != typeof c) || + (e = e || []).push(l, '' + c) + : 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + (E.hasOwnProperty(l) + ? (null != c && un(i, l), e || s === c || (e = [])) + : (e = e || []).push(l, c)) + } + n && (e = e || []).push('style', n), + (i = e), + (t.updateQueue = i) && (t.effectTag |= 4) + } + }), + (Wa = function (e, t, n, r) { + n !== r && (t.effectTag |= 4) + }) + var Za = 'function' == typeof WeakSet ? WeakSet : Set + function el(e, t) { + var n = t.source, + r = t.stack + null === r && null !== n && (r = ye(n)), + null !== n && ve(n.type), + (t = t.value), + null !== e && 1 === e.tag && ve(e.type) + try { + console.error(t) + } catch (e) { + setTimeout(function () { + throw e + }) + } + } + function tl(e) { + var t = e.ref + if (null !== t) + if ('function' == typeof t) + try { + t(null) + } catch (t) { + gu(e, t) + } + else t.current = null + } + function nl(e, t) { + switch (t.tag) { + case 0: + case 11: + case 15: + case 22: + return + case 1: + if (256 & t.effectTag && null !== e) { + var n = e.memoizedProps, + r = e.memoizedState + ;(t = (e = t.stateNode).getSnapshotBeforeUpdate( + t.elementType === t.type ? n : Xo(t.type, n), + r + )), + (e.__reactInternalSnapshotBeforeUpdate = t) + } + return + case 3: + case 5: + case 6: + case 4: + case 17: + return + } + throw Error(a(163)) + } + function rl(e, t) { + if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { + var n = (t = t.next) + do { + if ((n.tag & e) === e) { + var r = n.destroy + ;(n.destroy = void 0), void 0 !== r && r() + } + n = n.next + } while (n !== t) + } + } + function ol(e, t) { + if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { + var n = (t = t.next) + do { + if ((n.tag & e) === e) { + var r = n.create + n.destroy = r() + } + n = n.next + } while (n !== t) + } + } + function il(e, t, n) { + switch (n.tag) { + case 0: + case 11: + case 15: + case 22: + return void ol(3, n) + case 1: + if (((e = n.stateNode), 4 & n.effectTag)) + if (null === t) e.componentDidMount() + else { + var r = + n.elementType === n.type + ? t.memoizedProps + : Xo(n.type, t.memoizedProps) + e.componentDidUpdate( + r, + t.memoizedState, + e.__reactInternalSnapshotBeforeUpdate + ) + } + return void (null !== (t = n.updateQueue) && di(n, t, e)) + case 3: + if (null !== (t = n.updateQueue)) { + if (((e = null), null !== n.child)) + switch (n.child.tag) { + case 5: + e = n.child.stateNode + break + case 1: + e = n.child.stateNode + } + di(n, t, e) + } + return + case 5: + return ( + (e = n.stateNode), + void ( + null === t && + 4 & n.effectTag && + yn(n.type, n.memoizedProps) && + e.focus() + ) + ) + case 6: + case 4: + case 12: + return + case 13: + return void ( + null === n.memoizedState && + ((n = n.alternate), + null !== n && + ((n = n.memoizedState), + null !== n && ((n = n.dehydrated), null !== n && Rt(n)))) + ) + case 19: + case 17: + case 20: + case 21: + return + } + throw Error(a(163)) + } + function al(e, t, n) { + switch (('function' == typeof ku && ku(t), t.tag)) { + case 0: + case 11: + case 14: + case 15: + case 22: + if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) { + var r = e.next + Uo(97 < n ? 97 : n, function () { + var e = r + do { + var n = e.destroy + if (void 0 !== n) { + var o = t + try { + n() + } catch (e) { + gu(o, e) + } + } + e = e.next + } while (e !== r) + }) + } + break + case 1: + tl(t), + 'function' == typeof (n = t.stateNode).componentWillUnmount && + (function (e, t) { + try { + ;(t.props = e.memoizedProps), + (t.state = e.memoizedState), + t.componentWillUnmount() + } catch (t) { + gu(e, t) + } + })(t, n) + break + case 5: + tl(t) + break + case 4: + cl(e, t, n) + } + } + function ll(e) { + var t = e.alternate + ;(e.return = null), + (e.child = null), + (e.memoizedState = null), + (e.updateQueue = null), + (e.dependencies = null), + (e.alternate = null), + (e.firstEffect = null), + (e.lastEffect = null), + (e.pendingProps = null), + (e.memoizedProps = null), + (e.stateNode = null), + null !== t && ll(t) + } + function ul(e) { + return 5 === e.tag || 3 === e.tag || 4 === e.tag + } + function sl(e) { + e: { + for (var t = e.return; null !== t; ) { + if (ul(t)) { + var n = t + break e + } + t = t.return + } + throw Error(a(160)) + } + switch (((t = n.stateNode), n.tag)) { + case 5: + var r = !1 + break + case 3: + case 4: + ;(t = t.containerInfo), (r = !0) + break + default: + throw Error(a(161)) + } + 16 & n.effectTag && (qe(t, ''), (n.effectTag &= -17)) + e: t: for (n = e; ; ) { + for (; null === n.sibling; ) { + if (null === n.return || ul(n.return)) { + n = null + break e + } + n = n.return + } + for ( + n.sibling.return = n.return, n = n.sibling; + 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; + + ) { + if (2 & n.effectTag) continue t + if (null === n.child || 4 === n.tag) continue t + ;(n.child.return = n), (n = n.child) + } + if (!(2 & n.effectTag)) { + n = n.stateNode + break e + } + } + r + ? (function e(t, n, r) { + var o = t.tag, + i = 5 === o || 6 === o + if (i) + (t = i ? t.stateNode : t.stateNode.instance), + n + ? 8 === r.nodeType + ? r.parentNode.insertBefore(t, n) + : r.insertBefore(t, n) + : (8 === r.nodeType + ? (n = r.parentNode).insertBefore(t, r) + : (n = r).appendChild(t), + (null !== (r = r._reactRootContainer) && void 0 !== r) || + null !== n.onclick || + (n.onclick = sn)) + else if (4 !== o && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t; ) + e(t, n, r), (t = t.sibling) + })(e, n, t) + : (function e(t, n, r) { + var o = t.tag, + i = 5 === o || 6 === o + if (i) + (t = i ? t.stateNode : t.stateNode.instance), + n ? r.insertBefore(t, n) : r.appendChild(t) + else if (4 !== o && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t; ) + e(t, n, r), (t = t.sibling) + })(e, n, t) + } + function cl(e, t, n) { + for (var r, o, i = t, l = !1; ; ) { + if (!l) { + l = i.return + e: for (;;) { + if (null === l) throw Error(a(160)) + switch (((r = l.stateNode), l.tag)) { + case 5: + o = !1 + break e + case 3: + case 4: + ;(r = r.containerInfo), (o = !0) + break e + } + l = l.return + } + l = !0 + } + if (5 === i.tag || 6 === i.tag) { + e: for (var u = e, s = i, c = n, f = s; ; ) + if ((al(u, f, c), null !== f.child && 4 !== f.tag)) + (f.child.return = f), (f = f.child) + else { + if (f === s) break e + for (; null === f.sibling; ) { + if (null === f.return || f.return === s) break e + f = f.return + } + ;(f.sibling.return = f.return), (f = f.sibling) + } + o + ? ((u = r), + (s = i.stateNode), + 8 === u.nodeType ? u.parentNode.removeChild(s) : u.removeChild(s)) + : r.removeChild(i.stateNode) + } else if (4 === i.tag) { + if (null !== i.child) { + ;(r = i.stateNode.containerInfo), + (o = !0), + (i.child.return = i), + (i = i.child) + continue + } + } else if ((al(e, i, n), null !== i.child)) { + ;(i.child.return = i), (i = i.child) + continue + } + if (i === t) break + for (; null === i.sibling; ) { + if (null === i.return || i.return === t) return + 4 === (i = i.return).tag && (l = !1) + } + ;(i.sibling.return = i.return), (i = i.sibling) + } + } + function fl(e, t) { + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + case 22: + return void rl(3, t) + case 1: + return + case 5: + var n = t.stateNode + if (null != n) { + var r = t.memoizedProps, + o = null !== e ? e.memoizedProps : r + e = t.type + var i = t.updateQueue + if (((t.updateQueue = null), null !== i)) { + for ( + n[Sn] = r, + 'input' === e && + 'radio' === r.type && + null != r.name && + Ee(n, r), + an(e, o), + t = an(e, r), + o = 0; + o < i.length; + o += 2 + ) { + var l = i[o], + u = i[o + 1] + 'style' === l + ? nn(n, u) + : 'dangerouslySetInnerHTML' === l + ? ze(n, u) + : 'children' === l + ? qe(n, u) + : G(n, l, u, t) + } + switch (e) { + case 'input': + Se(n, r) + break + case 'textarea': + De(n, r) + break + case 'select': + ;(t = n._wrapperState.wasMultiple), + (n._wrapperState.wasMultiple = !!r.multiple), + null != (e = r.value) + ? _e(n, !!r.multiple, e, !1) + : t !== !!r.multiple && + (null != r.defaultValue + ? _e(n, !!r.multiple, r.defaultValue, !0) + : _e(n, !!r.multiple, r.multiple ? [] : '', !1)) + } + } + } + return + case 6: + if (null === t.stateNode) throw Error(a(162)) + return void (t.stateNode.nodeValue = t.memoizedProps) + case 3: + return void ( + (t = t.stateNode).hydrate && ((t.hydrate = !1), Rt(t.containerInfo)) + ) + case 12: + return + case 13: + if ( + ((n = t), + null === t.memoizedState + ? (r = !1) + : ((r = !0), (n = t.child), (Ll = qo())), + null !== n) + ) + e: for (e = n; ; ) { + if (5 === e.tag) + (i = e.stateNode), + r + ? 'function' == typeof (i = i.style).setProperty + ? i.setProperty('display', 'none', 'important') + : (i.display = 'none') + : ((i = e.stateNode), + (o = + null != (o = e.memoizedProps.style) && + o.hasOwnProperty('display') + ? o.display + : null), + (i.style.display = tn('display', o))) + else if (6 === e.tag) + e.stateNode.nodeValue = r ? '' : e.memoizedProps + else { + if ( + 13 === e.tag && + null !== e.memoizedState && + null === e.memoizedState.dehydrated + ) { + ;((i = e.child.sibling).return = e), (e = i) + continue + } + if (null !== e.child) { + ;(e.child.return = e), (e = e.child) + continue + } + } + if (e === n) break + for (; null === e.sibling; ) { + if (null === e.return || e.return === n) break e + e = e.return + } + ;(e.sibling.return = e.return), (e = e.sibling) + } + return void dl(t) + case 19: + return void dl(t) + case 17: + return + } + throw Error(a(163)) + } + function dl(e) { + var t = e.updateQueue + if (null !== t) { + e.updateQueue = null + var n = e.stateNode + null === n && (n = e.stateNode = new Za()), + t.forEach(function (t) { + var r = wu.bind(null, e, t) + n.has(t) || (n.add(t), t.then(r, r)) + }) + } + } + var pl = 'function' == typeof WeakMap ? WeakMap : Map + function hl(e, t, n) { + ;((n = ui(n, null)).tag = 3), (n.payload = { element: null }) + var r = t.value + return ( + (n.callback = function () { + Rl || ((Rl = !0), (Ml = r)), el(e, t) + }), + n + ) + } + function ml(e, t, n) { + ;(n = ui(n, null)).tag = 3 + var r = e.type.getDerivedStateFromError + if ('function' == typeof r) { + var o = t.value + n.payload = function () { + return el(e, t), r(o) + } + } + var i = e.stateNode + return ( + null !== i && + 'function' == typeof i.componentDidCatch && + (n.callback = function () { + 'function' != typeof r && + (null === Fl ? (Fl = new Set([this])) : Fl.add(this), el(e, t)) + var n = t.stack + this.componentDidCatch(t.value, { + componentStack: null !== n ? n : '', + }) + }), + n + ) + } + var vl, + yl = Math.ceil, + gl = Y.ReactCurrentDispatcher, + bl = Y.ReactCurrentOwner, + wl = 0, + xl = 3, + kl = 4, + Tl = 0, + El = null, + Sl = null, + Cl = 0, + Pl = wl, + Nl = null, + _l = 1073741823, + Ol = 1073741823, + jl = null, + Dl = 0, + Al = !1, + Ll = 0, + Il = null, + Rl = !1, + Ml = null, + Fl = null, + zl = !1, + ql = null, + Hl = 90, + Wl = null, + Ul = 0, + $l = null, + Bl = 0 + function Vl() { + return 0 != (48 & Tl) + ? 1073741821 - ((qo() / 10) | 0) + : 0 !== Bl + ? Bl + : (Bl = 1073741821 - ((qo() / 10) | 0)) + } + function Ql(e, t, n) { + if (0 == (2 & (t = t.mode))) return 1073741823 + var r = Ho() + if (0 == (4 & t)) return 99 === r ? 1073741823 : 1073741822 + if (0 != (16 & Tl)) return Cl + if (null !== n) e = Ko(e, 0 | n.timeoutMs || 5e3, 250) + else + switch (r) { + case 99: + e = 1073741823 + break + case 98: + e = Ko(e, 150, 100) + break + case 97: + case 96: + e = Ko(e, 5e3, 250) + break + case 95: + e = 2 + break + default: + throw Error(a(326)) + } + return null !== El && e === Cl && --e, e + } + function Kl(e, t) { + if (50 < Ul) throw ((Ul = 0), ($l = null), Error(a(185))) + if (null !== (e = Xl(e, t))) { + var n = Ho() + 1073741823 === t + ? 0 != (8 & Tl) && 0 == (48 & Tl) + ? Zl(e) + : (Gl(e), 0 === Tl && Vo()) + : Gl(e), + 0 == (4 & Tl) || + (98 !== n && 99 !== n) || + (null === Wl + ? (Wl = new Map([[e, t]])) + : (void 0 === (n = Wl.get(e)) || n > t) && Wl.set(e, t)) + } + } + function Xl(e, t) { + e.expirationTime < t && (e.expirationTime = t) + var n = e.alternate + null !== n && n.expirationTime < t && (n.expirationTime = t) + var r = e.return, + o = null + if (null === r && 3 === e.tag) o = e.stateNode + else + for (; null !== r; ) { + if ( + ((n = r.alternate), + r.childExpirationTime < t && (r.childExpirationTime = t), + null !== n && + n.childExpirationTime < t && + (n.childExpirationTime = t), + null === r.return && 3 === r.tag) + ) { + o = r.stateNode + break + } + r = r.return + } + return ( + null !== o && (El === o && (au(t), Pl === kl && Au(o, Cl)), Lu(o, t)), o + ) + } + function Yl(e) { + var t = e.lastExpiredTime + if (0 !== t) return t + if (!Du(e, (t = e.firstPendingTime))) return t + var n = e.lastPingedTime + return 2 >= (e = n > (e = e.nextKnownPendingLevel) ? n : e) && t !== e + ? 0 + : e + } + function Gl(e) { + if (0 !== e.lastExpiredTime) + (e.callbackExpirationTime = 1073741823), + (e.callbackPriority = 99), + (e.callbackNode = Bo(Zl.bind(null, e))) + else { + var t = Yl(e), + n = e.callbackNode + if (0 === t) + null !== n && + ((e.callbackNode = null), + (e.callbackExpirationTime = 0), + (e.callbackPriority = 90)) + else { + var r = Vl() + if ( + (1073741823 === t + ? (r = 99) + : 1 === t || 2 === t + ? (r = 95) + : (r = + 0 >= (r = 10 * (1073741821 - t) - 10 * (1073741821 - r)) + ? 99 + : 250 >= r + ? 98 + : 5250 >= r + ? 97 + : 95), + null !== n) + ) { + var o = e.callbackPriority + if (e.callbackExpirationTime === t && o >= r) return + n !== Ao && Eo(n) + } + ;(e.callbackExpirationTime = t), + (e.callbackPriority = r), + (t = + 1073741823 === t + ? Bo(Zl.bind(null, e)) + : $o(r, Jl.bind(null, e), { + timeout: 10 * (1073741821 - t) - qo(), + })), + (e.callbackNode = t) + } + } + } + function Jl(e, t) { + if (((Bl = 0), t)) return Iu(e, (t = Vl())), Gl(e), null + var n = Yl(e) + if (0 !== n) { + if (((t = e.callbackNode), 0 != (48 & Tl))) throw Error(a(327)) + if ((mu(), (e === El && n === Cl) || nu(e, n), null !== Sl)) { + var r = Tl + Tl |= 16 + for (var o = ou(); ; ) + try { + uu() + break + } catch (t) { + ru(e, t) + } + if ((ei(), (Tl = r), (gl.current = o), 1 === Pl)) + throw ((t = Nl), nu(e, n), Au(e, n), Gl(e), t) + if (null === Sl) + switch ( + ((o = e.finishedWork = e.current.alternate), + (e.finishedExpirationTime = n), + (r = Pl), + (El = null), + r) + ) { + case wl: + case 1: + throw Error(a(345)) + case 2: + Iu(e, 2 < n ? 2 : n) + break + case xl: + if ( + (Au(e, n), + n === (r = e.lastSuspendedTime) && + (e.nextKnownPendingLevel = fu(o)), + 1073741823 === _l && 10 < (o = Ll + 500 - qo())) + ) { + if (Al) { + var i = e.lastPingedTime + if (0 === i || i >= n) { + ;(e.lastPingedTime = n), nu(e, n) + break + } + } + if (0 !== (i = Yl(e)) && i !== n) break + if (0 !== r && r !== n) { + e.lastPingedTime = r + break + } + e.timeoutHandle = bn(du.bind(null, e), o) + break + } + du(e) + break + case kl: + if ( + (Au(e, n), + n === (r = e.lastSuspendedTime) && + (e.nextKnownPendingLevel = fu(o)), + Al && (0 === (o = e.lastPingedTime) || o >= n)) + ) { + ;(e.lastPingedTime = n), nu(e, n) + break + } + if (0 !== (o = Yl(e)) && o !== n) break + if (0 !== r && r !== n) { + e.lastPingedTime = r + break + } + if ( + (1073741823 !== Ol + ? (r = 10 * (1073741821 - Ol) - qo()) + : 1073741823 === _l + ? (r = 0) + : ((r = 10 * (1073741821 - _l) - 5e3), + 0 > (r = (o = qo()) - r) && (r = 0), + (n = 10 * (1073741821 - n) - o) < + (r = + (120 > r + ? 120 + : 480 > r + ? 480 + : 1080 > r + ? 1080 + : 1920 > r + ? 1920 + : 3e3 > r + ? 3e3 + : 4320 > r + ? 4320 + : 1960 * yl(r / 1960)) - r) && (r = n)), + 10 < r) + ) { + e.timeoutHandle = bn(du.bind(null, e), r) + break + } + du(e) + break + case 5: + if (1073741823 !== _l && null !== jl) { + i = _l + var l = jl + if ( + (0 >= (r = 0 | l.busyMinDurationMs) + ? (r = 0) + : ((o = 0 | l.busyDelayMs), + (r = + (i = + qo() - + (10 * (1073741821 - i) - + (0 | l.timeoutMs || 5e3))) <= o + ? 0 + : o + r - i)), + 10 < r) + ) { + Au(e, n), (e.timeoutHandle = bn(du.bind(null, e), r)) + break + } + } + du(e) + break + default: + throw Error(a(329)) + } + if ((Gl(e), e.callbackNode === t)) return Jl.bind(null, e) + } + } + return null + } + function Zl(e) { + var t = e.lastExpiredTime + if (((t = 0 !== t ? t : 1073741823), 0 != (48 & Tl))) throw Error(a(327)) + if ((mu(), (e === El && t === Cl) || nu(e, t), null !== Sl)) { + var n = Tl + Tl |= 16 + for (var r = ou(); ; ) + try { + lu() + break + } catch (t) { + ru(e, t) + } + if ((ei(), (Tl = n), (gl.current = r), 1 === Pl)) + throw ((n = Nl), nu(e, t), Au(e, t), Gl(e), n) + if (null !== Sl) throw Error(a(261)) + ;(e.finishedWork = e.current.alternate), + (e.finishedExpirationTime = t), + (El = null), + du(e), + Gl(e) + } + return null + } + function eu(e, t) { + var n = Tl + Tl |= 1 + try { + return e(t) + } finally { + 0 === (Tl = n) && Vo() + } + } + function tu(e, t) { + var n = Tl + ;(Tl &= -2), (Tl |= 8) + try { + return e(t) + } finally { + 0 === (Tl = n) && Vo() + } + } + function nu(e, t) { + ;(e.finishedWork = null), (e.finishedExpirationTime = 0) + var n = e.timeoutHandle + if ((-1 !== n && ((e.timeoutHandle = -1), wn(n)), null !== Sl)) + for (n = Sl.return; null !== n; ) { + var r = n + switch (r.tag) { + case 1: + null != (r = r.type.childContextTypes) && yo() + break + case 3: + Ai(), uo(po), uo(fo) + break + case 5: + Ii(r) + break + case 4: + Ai() + break + case 13: + case 19: + uo(Ri) + break + case 10: + ti(r) + } + n = n.return + } + ;(El = e), + (Sl = Cu(e.current, null)), + (Cl = t), + (Pl = wl), + (Nl = null), + (Ol = _l = 1073741823), + (jl = null), + (Dl = 0), + (Al = !1) + } + function ru(e, t) { + while (!0) { + try { + if ((ei(), (zi.current = va), Bi)) + for (var n = Wi.memoizedState; null !== n; ) { + var r = n.queue + null !== r && (r.pending = null), (n = n.next) + } + if ( + ((Hi = 0), + ($i = Ui = Wi = null), + (Bi = !1), + null === Sl || null === Sl.return) + ) + return (Pl = 1), (Nl = t), (Sl = null) + e: { + var o = e, + i = Sl.return, + a = Sl, + l = t + if ( + ((t = Cl), + (a.effectTag |= 2048), + (a.firstEffect = a.lastEffect = null), + null !== l && 'object' == typeof l && 'function' == typeof l.then) + ) { + var u = l + if (0 == (2 & a.mode)) { + var s = a.alternate + s + ? ((a.updateQueue = s.updateQueue), + (a.memoizedState = s.memoizedState), + (a.expirationTime = s.expirationTime)) + : ((a.updateQueue = null), (a.memoizedState = null)) + } + var c = 0 != (1 & Ri.current), + f = i + do { + var d + if ((d = 13 === f.tag)) { + var p = f.memoizedState + if (null !== p) d = null !== p.dehydrated + else { + var h = f.memoizedProps + d = + void 0 !== h.fallback && + (!0 !== h.unstable_avoidThisFallback || !c) + } + } + if (d) { + var m = f.updateQueue + if (null === m) { + var v = new Set() + v.add(u), (f.updateQueue = v) + } else m.add(u) + if (0 == (2 & f.mode)) { + if ( + ((f.effectTag |= 64), (a.effectTag &= -2981), 1 === a.tag) + ) + if (null === a.alternate) a.tag = 17 + else { + var y = ui(1073741823, null) + ;(y.tag = 2), si(a, y) + } + a.expirationTime = 1073741823 + break e + } + ;(l = void 0), (a = t) + var g = o.pingCache + if ( + (null === g + ? ((g = o.pingCache = new pl()), + (l = new Set()), + g.set(u, l)) + : void 0 === (l = g.get(u)) && + ((l = new Set()), g.set(u, l)), + !l.has(a)) + ) { + l.add(a) + var b = bu.bind(null, o, u, a) + u.then(b, b) + } + ;(f.effectTag |= 4096), (f.expirationTime = t) + break e + } + f = f.return + } while (null !== f) + l = Error( + (ve(a.type) || 'A React component') + + ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.' + + ye(a) + ) + } + 5 !== Pl && (Pl = 2), (l = Ja(l, a)), (f = i) + do { + switch (f.tag) { + case 3: + ;(u = l), + (f.effectTag |= 4096), + (f.expirationTime = t), + ci(f, hl(f, u, t)) + break e + case 1: + u = l + var w = f.type, + x = f.stateNode + if ( + 0 == (64 & f.effectTag) && + ('function' == typeof w.getDerivedStateFromError || + (null !== x && + 'function' == typeof x.componentDidCatch && + (null === Fl || !Fl.has(x)))) + ) { + ;(f.effectTag |= 4096), + (f.expirationTime = t), + ci(f, ml(f, u, t)) + break e + } + } + f = f.return + } while (null !== f) + } + Sl = cu(Sl) + } catch (e) { + t = e + continue + } + break + } + } + function ou() { + var e = gl.current + return (gl.current = va), null === e ? va : e + } + function iu(e, t) { + e < _l && 2 < e && (_l = e), + null !== t && e < Ol && 2 < e && ((Ol = e), (jl = t)) + } + function au(e) { + e > Dl && (Dl = e) + } + function lu() { + for (; null !== Sl; ) Sl = su(Sl) + } + function uu() { + for (; null !== Sl && !Lo(); ) Sl = su(Sl) + } + function su(e) { + var t = vl(e.alternate, e, Cl) + return ( + (e.memoizedProps = e.pendingProps), + null === t && (t = cu(e)), + (bl.current = null), + t + ) + } + function cu(e) { + Sl = e + do { + var t = Sl.alternate + if (((e = Sl.return), 0 == (2048 & Sl.effectTag))) { + if (((t = Ya(t, Sl, Cl)), 1 === Cl || 1 !== Sl.childExpirationTime)) { + for (var n = 0, r = Sl.child; null !== r; ) { + var o = r.expirationTime, + i = r.childExpirationTime + o > n && (n = o), i > n && (n = i), (r = r.sibling) + } + Sl.childExpirationTime = n + } + if (null !== t) return t + null !== e && + 0 == (2048 & e.effectTag) && + (null === e.firstEffect && (e.firstEffect = Sl.firstEffect), + null !== Sl.lastEffect && + (null !== e.lastEffect && + (e.lastEffect.nextEffect = Sl.firstEffect), + (e.lastEffect = Sl.lastEffect)), + 1 < Sl.effectTag && + (null !== e.lastEffect + ? (e.lastEffect.nextEffect = Sl) + : (e.firstEffect = Sl), + (e.lastEffect = Sl))) + } else { + if (null !== (t = Ga(Sl))) return (t.effectTag &= 2047), t + null !== e && + ((e.firstEffect = e.lastEffect = null), (e.effectTag |= 2048)) + } + if (null !== (t = Sl.sibling)) return t + Sl = e + } while (null !== Sl) + return Pl === wl && (Pl = 5), null + } + function fu(e) { + var t = e.expirationTime + return t > (e = e.childExpirationTime) ? t : e + } + function du(e) { + var t = Ho() + return Uo(99, pu.bind(null, e, t)), null + } + function pu(e, t) { + do { + mu() + } while (null !== ql) + if (0 != (48 & Tl)) throw Error(a(327)) + var n = e.finishedWork, + r = e.finishedExpirationTime + if (null === n) return null + if ( + ((e.finishedWork = null), + (e.finishedExpirationTime = 0), + n === e.current) + ) + throw Error(a(177)) + ;(e.callbackNode = null), + (e.callbackExpirationTime = 0), + (e.callbackPriority = 90), + (e.nextKnownPendingLevel = 0) + var o = fu(n) + if ( + ((e.firstPendingTime = o), + r <= e.lastSuspendedTime + ? (e.firstSuspendedTime = + e.lastSuspendedTime = + e.nextKnownPendingLevel = + 0) + : r <= e.firstSuspendedTime && (e.firstSuspendedTime = r - 1), + r <= e.lastPingedTime && (e.lastPingedTime = 0), + r <= e.lastExpiredTime && (e.lastExpiredTime = 0), + e === El && ((Sl = El = null), (Cl = 0)), + 1 < n.effectTag + ? null !== n.lastEffect + ? ((n.lastEffect.nextEffect = n), (o = n.firstEffect)) + : (o = n) + : (o = n.firstEffect), + null !== o) + ) { + var i = Tl + ;(Tl |= 32), (bl.current = null), (mn = Vt) + var l = pn() + if (hn(l)) { + if ('selectionStart' in l) + var u = { start: l.selectionStart, end: l.selectionEnd } + else + e: { + var s = + (u = ((u = l.ownerDocument) && u.defaultView) || window) + .getSelection && u.getSelection() + if (s && 0 !== s.rangeCount) { + u = s.anchorNode + var c = s.anchorOffset, + f = s.focusNode + s = s.focusOffset + try { + u.nodeType, f.nodeType + } catch (e) { + u = null + break e + } + var d = 0, + p = -1, + h = -1, + m = 0, + v = 0, + y = l, + g = null + t: while (!0) { + for ( + var b; + y !== u || (0 !== c && 3 !== y.nodeType) || (p = d + c), + y !== f || (0 !== s && 3 !== y.nodeType) || (h = d + s), + 3 === y.nodeType && (d += y.nodeValue.length), + null !== (b = y.firstChild); + + ) + (g = y), (y = b) + while (!0) { + if (y === l) break t + if ( + (g === u && ++m === c && (p = d), + g === f && ++v === s && (h = d), + null !== (b = y.nextSibling)) + ) + break + g = (y = g).parentNode + } + y = b + } + u = -1 === p || -1 === h ? null : { start: p, end: h } + } else u = null + } + u = u || { start: 0, end: 0 } + } else u = null + ;(vn = { + activeElementDetached: null, + focusedElem: l, + selectionRange: u, + }), + (Vt = !1), + (Il = o) + do { + try { + hu() + } catch (e) { + if (null === Il) throw Error(a(330)) + gu(Il, e), (Il = Il.nextEffect) + } + } while (null !== Il) + Il = o + do { + try { + for (l = e, u = t; null !== Il; ) { + var w = Il.effectTag + if ((16 & w && qe(Il.stateNode, ''), 128 & w)) { + var x = Il.alternate + if (null !== x) { + var k = x.ref + null !== k && + ('function' == typeof k ? k(null) : (k.current = null)) + } + } + switch (1038 & w) { + case 2: + sl(Il), (Il.effectTag &= -3) + break + case 6: + sl(Il), (Il.effectTag &= -3), fl(Il.alternate, Il) + break + case 1024: + Il.effectTag &= -1025 + break + case 1028: + ;(Il.effectTag &= -1025), fl(Il.alternate, Il) + break + case 4: + fl(Il.alternate, Il) + break + case 8: + cl(l, (c = Il), u), ll(c) + } + Il = Il.nextEffect + } + } catch (e) { + if (null === Il) throw Error(a(330)) + gu(Il, e), (Il = Il.nextEffect) + } + } while (null !== Il) + if ( + ((k = vn), + (x = pn()), + (w = k.focusedElem), + (u = k.selectionRange), + x !== w && + w && + w.ownerDocument && + (function e(t, n) { + return ( + !(!t || !n) && + (t === n || + ((!t || 3 !== t.nodeType) && + (n && 3 === n.nodeType + ? e(t, n.parentNode) + : 'contains' in t + ? t.contains(n) + : !!t.compareDocumentPosition && + !!(16 & t.compareDocumentPosition(n))))) + ) + })(w.ownerDocument.documentElement, w)) + ) { + null !== u && + hn(w) && + ((x = u.start), + void 0 === (k = u.end) && (k = x), + 'selectionStart' in w + ? ((w.selectionStart = x), + (w.selectionEnd = Math.min(k, w.value.length))) + : (k = + ((x = w.ownerDocument || document) && x.defaultView) || + window).getSelection && + ((k = k.getSelection()), + (c = w.textContent.length), + (l = Math.min(u.start, c)), + (u = void 0 === u.end ? l : Math.min(u.end, c)), + !k.extend && l > u && ((c = u), (u = l), (l = c)), + (c = dn(w, l)), + (f = dn(w, u)), + c && + f && + (1 !== k.rangeCount || + k.anchorNode !== c.node || + k.anchorOffset !== c.offset || + k.focusNode !== f.node || + k.focusOffset !== f.offset) && + ((x = x.createRange()).setStart(c.node, c.offset), + k.removeAllRanges(), + l > u + ? (k.addRange(x), k.extend(f.node, f.offset)) + : (x.setEnd(f.node, f.offset), k.addRange(x))))), + (x = []) + for (k = w; (k = k.parentNode); ) + 1 === k.nodeType && + x.push({ element: k, left: k.scrollLeft, top: k.scrollTop }) + for ( + 'function' == typeof w.focus && w.focus(), w = 0; + w < x.length; + w++ + ) + ((k = x[w]).element.scrollLeft = k.left), + (k.element.scrollTop = k.top) + } + ;(Vt = !!mn), (vn = mn = null), (e.current = n), (Il = o) + do { + try { + for (w = e; null !== Il; ) { + var T = Il.effectTag + if ((36 & T && il(w, Il.alternate, Il), 128 & T)) { + x = void 0 + var E = Il.ref + if (null !== E) { + var S = Il.stateNode + switch (Il.tag) { + case 5: + x = S + break + default: + x = S + } + 'function' == typeof E ? E(x) : (E.current = x) + } + } + Il = Il.nextEffect + } + } catch (e) { + if (null === Il) throw Error(a(330)) + gu(Il, e), (Il = Il.nextEffect) + } + } while (null !== Il) + ;(Il = null), Io(), (Tl = i) + } else e.current = n + if (zl) (zl = !1), (ql = e), (Hl = t) + else + for (Il = o; null !== Il; ) + (t = Il.nextEffect), (Il.nextEffect = null), (Il = t) + if ( + (0 === (t = e.firstPendingTime) && (Fl = null), + 1073741823 === t ? (e === $l ? Ul++ : ((Ul = 0), ($l = e))) : (Ul = 0), + 'function' == typeof xu && xu(n.stateNode, r), + Gl(e), + Rl) + ) + throw ((Rl = !1), (e = Ml), (Ml = null), e) + return 0 != (8 & Tl) || Vo(), null + } + function hu() { + for (; null !== Il; ) { + var e = Il.effectTag + 0 != (256 & e) && nl(Il.alternate, Il), + 0 == (512 & e) || + zl || + ((zl = !0), + $o(97, function () { + return mu(), null + })), + (Il = Il.nextEffect) + } + } + function mu() { + if (90 !== Hl) { + var e = 97 < Hl ? 97 : Hl + return (Hl = 90), Uo(e, vu) + } + } + function vu() { + if (null === ql) return !1 + var e = ql + if (((ql = null), 0 != (48 & Tl))) throw Error(a(331)) + var t = Tl + for (Tl |= 32, e = e.current.firstEffect; null !== e; ) { + try { + var n = e + if (0 != (512 & n.effectTag)) + switch (n.tag) { + case 0: + case 11: + case 15: + case 22: + rl(5, n), ol(5, n) + } + } catch (t) { + if (null === e) throw Error(a(330)) + gu(e, t) + } + ;(n = e.nextEffect), (e.nextEffect = null), (e = n) + } + return (Tl = t), Vo(), !0 + } + function yu(e, t, n) { + si(e, (t = hl(e, (t = Ja(n, t)), 1073741823))), + null !== (e = Xl(e, 1073741823)) && Gl(e) + } + function gu(e, t) { + if (3 === e.tag) yu(e, e, t) + else + for (var n = e.return; null !== n; ) { + if (3 === n.tag) { + yu(n, e, t) + break + } + if (1 === n.tag) { + var r = n.stateNode + if ( + 'function' == typeof n.type.getDerivedStateFromError || + ('function' == typeof r.componentDidCatch && + (null === Fl || !Fl.has(r))) + ) { + si(n, (e = ml(n, (e = Ja(t, e)), 1073741823))), + null !== (n = Xl(n, 1073741823)) && Gl(n) + break + } + } + n = n.return + } + } + function bu(e, t, n) { + var r = e.pingCache + null !== r && r.delete(t), + El === e && Cl === n + ? Pl === kl || (Pl === xl && 1073741823 === _l && qo() - Ll < 500) + ? nu(e, Cl) + : (Al = !0) + : Du(e, n) && + ((0 !== (t = e.lastPingedTime) && t < n) || + ((e.lastPingedTime = n), Gl(e))) + } + function wu(e, t) { + var n = e.stateNode + null !== n && n.delete(t), + 0 === (t = 0) && (t = Ql((t = Vl()), e, null)), + null !== (e = Xl(e, t)) && Gl(e) + } + vl = function (e, t, n) { + var r = t.expirationTime + if (null !== e) { + var o = t.pendingProps + if (e.memoizedProps !== o || po.current) Oa = !0 + else { + if (r < n) { + switch (((Oa = !1), t.tag)) { + case 3: + za(t), Na() + break + case 5: + if ((Li(t), 4 & t.mode && 1 !== n && o.hidden)) + return (t.expirationTime = t.childExpirationTime = 1), null + break + case 1: + vo(t.type) && wo(t) + break + case 4: + Di(t, t.stateNode.containerInfo) + break + case 10: + ;(r = t.memoizedProps.value), + (o = t.type._context), + so(Yo, o._currentValue), + (o._currentValue = r) + break + case 13: + if (null !== t.memoizedState) + return 0 !== (r = t.child.childExpirationTime) && r >= n + ? $a(e, t, n) + : (so(Ri, 1 & Ri.current), + null !== (t = Ka(e, t, n)) ? t.sibling : null) + so(Ri, 1 & Ri.current) + break + case 19: + if ( + ((r = t.childExpirationTime >= n), 0 != (64 & e.effectTag)) + ) { + if (r) return Qa(e, t, n) + t.effectTag |= 64 + } + if ( + (null !== (o = t.memoizedState) && + ((o.rendering = null), (o.tail = null)), + so(Ri, Ri.current), + !r) + ) + return null + } + return Ka(e, t, n) + } + Oa = !1 + } + } else Oa = !1 + switch (((t.expirationTime = 0), t.tag)) { + case 2: + if ( + ((r = t.type), + null !== e && + ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)), + (e = t.pendingProps), + (o = mo(t, fo.current)), + ri(t, n), + (o = Ki(null, t, r, e, o, n)), + (t.effectTag |= 1), + 'object' == typeof o && + null !== o && + 'function' == typeof o.render && + void 0 === o.$$typeof) + ) { + if ( + ((t.tag = 1), + (t.memoizedState = null), + (t.updateQueue = null), + vo(r)) + ) { + var i = !0 + wo(t) + } else i = !1 + ;(t.memoizedState = + null !== o.state && void 0 !== o.state ? o.state : null), + ai(t) + var l = r.getDerivedStateFromProps + 'function' == typeof l && mi(t, r, l, e), + (o.updater = vi), + (t.stateNode = o), + (o._reactInternalFiber = t), + wi(t, r, e, n), + (t = Fa(null, t, r, !0, i, n)) + } else (t.tag = 0), ja(null, t, o, n), (t = t.child) + return t + case 16: + e: { + if ( + ((o = t.elementType), + null !== e && + ((e.alternate = null), + (t.alternate = null), + (t.effectTag |= 2)), + (e = t.pendingProps), + (function (e) { + if (-1 === e._status) { + e._status = 0 + var t = e._ctor + ;(t = t()), + (e._result = t), + t.then( + function (t) { + 0 === e._status && + ((t = t.default), (e._status = 1), (e._result = t)) + }, + function (t) { + 0 === e._status && ((e._status = 2), (e._result = t)) + } + ) + } + })(o), + 1 !== o._status) + ) + throw o._result + switch ( + ((o = o._result), + (t.type = o), + (i = t.tag = + (function (e) { + if ('function' == typeof e) return Su(e) ? 1 : 0 + if (null != e) { + if ((e = e.$$typeof) === ue) return 11 + if (e === fe) return 14 + } + return 2 + })(o)), + (e = Xo(o, e)), + i) + ) { + case 0: + t = Ra(null, t, o, e, n) + break e + case 1: + t = Ma(null, t, o, e, n) + break e + case 11: + t = Da(null, t, o, e, n) + break e + case 14: + t = Aa(null, t, o, Xo(o.type, e), r, n) + break e + } + throw Error(a(306, o, '')) + } + return t + case 0: + return ( + (r = t.type), + (o = t.pendingProps), + Ra(e, t, r, (o = t.elementType === r ? o : Xo(r, o)), n) + ) + case 1: + return ( + (r = t.type), + (o = t.pendingProps), + Ma(e, t, r, (o = t.elementType === r ? o : Xo(r, o)), n) + ) + case 3: + if ((za(t), (r = t.updateQueue), null === e || null === r)) + throw Error(a(282)) + if ( + ((r = t.pendingProps), + (o = null !== (o = t.memoizedState) ? o.element : null), + li(e, t), + fi(t, r, null, n), + (r = t.memoizedState.element) === o) + ) + Na(), (t = Ka(e, t, n)) + else { + if ( + ((o = t.stateNode.hydrate) && + ((xa = xn(t.stateNode.containerInfo.firstChild)), + (wa = t), + (o = ka = !0)), + o) + ) + for (n = Ci(t, null, r, n), t.child = n; n; ) + (n.effectTag = (-3 & n.effectTag) | 1024), (n = n.sibling) + else ja(e, t, r, n), Na() + t = t.child + } + return t + case 5: + return ( + Li(t), + null === e && Sa(t), + (r = t.type), + (o = t.pendingProps), + (i = null !== e ? e.memoizedProps : null), + (l = o.children), + gn(r, o) + ? (l = null) + : null !== i && gn(r, i) && (t.effectTag |= 16), + Ia(e, t), + 4 & t.mode && 1 !== n && o.hidden + ? ((t.expirationTime = t.childExpirationTime = 1), (t = null)) + : (ja(e, t, l, n), (t = t.child)), + t + ) + case 6: + return null === e && Sa(t), null + case 13: + return $a(e, t, n) + case 4: + return ( + Di(t, t.stateNode.containerInfo), + (r = t.pendingProps), + null === e ? (t.child = Si(t, null, r, n)) : ja(e, t, r, n), + t.child + ) + case 11: + return ( + (r = t.type), + (o = t.pendingProps), + Da(e, t, r, (o = t.elementType === r ? o : Xo(r, o)), n) + ) + case 7: + return ja(e, t, t.pendingProps, n), t.child + case 8: + case 12: + return ja(e, t, t.pendingProps.children, n), t.child + case 10: + e: { + ;(r = t.type._context), + (o = t.pendingProps), + (l = t.memoizedProps), + (i = o.value) + var u = t.type._context + if ((so(Yo, u._currentValue), (u._currentValue = i), null !== l)) + if ( + ((u = l.value), + 0 === + (i = Mr(u, i) + ? 0 + : 0 | + ('function' == typeof r._calculateChangedBits + ? r._calculateChangedBits(u, i) + : 1073741823))) + ) { + if (l.children === o.children && !po.current) { + t = Ka(e, t, n) + break e + } + } else + for (null !== (u = t.child) && (u.return = t); null !== u; ) { + var s = u.dependencies + if (null !== s) { + l = u.child + for (var c = s.firstContext; null !== c; ) { + if (c.context === r && 0 != (c.observedBits & i)) { + 1 === u.tag && (((c = ui(n, null)).tag = 2), si(u, c)), + u.expirationTime < n && (u.expirationTime = n), + null !== (c = u.alternate) && + c.expirationTime < n && + (c.expirationTime = n), + ni(u.return, n), + s.expirationTime < n && (s.expirationTime = n) + break + } + c = c.next + } + } else l = 10 === u.tag && u.type === t.type ? null : u.child + if (null !== l) l.return = u + else + for (l = u; null !== l; ) { + if (l === t) { + l = null + break + } + if (null !== (u = l.sibling)) { + ;(u.return = l.return), (l = u) + break + } + l = l.return + } + u = l + } + ja(e, t, o.children, n), (t = t.child) + } + return t + case 9: + return ( + (o = t.type), + (r = (i = t.pendingProps).children), + ri(t, n), + (r = r((o = oi(o, i.unstable_observedBits)))), + (t.effectTag |= 1), + ja(e, t, r, n), + t.child + ) + case 14: + return ( + (i = Xo((o = t.type), t.pendingProps)), + Aa(e, t, o, (i = Xo(o.type, i)), r, n) + ) + case 15: + return La(e, t, t.type, t.pendingProps, r, n) + case 17: + return ( + (r = t.type), + (o = t.pendingProps), + (o = t.elementType === r ? o : Xo(r, o)), + null !== e && + ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)), + (t.tag = 1), + vo(r) ? ((e = !0), wo(t)) : (e = !1), + ri(t, n), + gi(t, r, o), + wi(t, r, o, n), + Fa(null, t, r, !0, e, n) + ) + case 19: + return Qa(e, t, n) + } + throw Error(a(156, t.tag)) + } + var xu = null, + ku = null + function Tu(e, t, n, r) { + ;(this.tag = e), + (this.key = n), + (this.sibling = + this.child = + this.return = + this.stateNode = + this.type = + this.elementType = + null), + (this.index = 0), + (this.ref = null), + (this.pendingProps = t), + (this.dependencies = + this.memoizedState = + this.updateQueue = + this.memoizedProps = + null), + (this.mode = r), + (this.effectTag = 0), + (this.lastEffect = this.firstEffect = this.nextEffect = null), + (this.childExpirationTime = this.expirationTime = 0), + (this.alternate = null) + } + function Eu(e, t, n, r) { + return new Tu(e, t, n, r) + } + function Su(e) { + return !(!(e = e.prototype) || !e.isReactComponent) + } + function Cu(e, t) { + var n = e.alternate + return ( + null === n + ? (((n = Eu(e.tag, t, e.key, e.mode)).elementType = e.elementType), + (n.type = e.type), + (n.stateNode = e.stateNode), + (n.alternate = e), + (e.alternate = n)) + : ((n.pendingProps = t), + (n.effectTag = 0), + (n.nextEffect = null), + (n.firstEffect = null), + (n.lastEffect = null)), + (n.childExpirationTime = e.childExpirationTime), + (n.expirationTime = e.expirationTime), + (n.child = e.child), + (n.memoizedProps = e.memoizedProps), + (n.memoizedState = e.memoizedState), + (n.updateQueue = e.updateQueue), + (t = e.dependencies), + (n.dependencies = + null === t + ? null + : { + expirationTime: t.expirationTime, + firstContext: t.firstContext, + responders: t.responders, + }), + (n.sibling = e.sibling), + (n.index = e.index), + (n.ref = e.ref), + n + ) + } + function Pu(e, t, n, r, o, i) { + var l = 2 + if (((r = e), 'function' == typeof e)) Su(e) && (l = 1) + else if ('string' == typeof e) l = 5 + else + e: switch (e) { + case ne: + return Nu(n.children, o, i, t) + case le: + ;(l = 8), (o |= 7) + break + case re: + ;(l = 8), (o |= 1) + break + case oe: + return ( + ((e = Eu(12, n, t, 8 | o)).elementType = oe), + (e.type = oe), + (e.expirationTime = i), + e + ) + case se: + return ( + ((e = Eu(13, n, t, o)).type = se), + (e.elementType = se), + (e.expirationTime = i), + e + ) + case ce: + return ( + ((e = Eu(19, n, t, o)).elementType = ce), + (e.expirationTime = i), + e + ) + default: + if ('object' == typeof e && null !== e) + switch (e.$$typeof) { + case ie: + l = 10 + break e + case ae: + l = 9 + break e + case ue: + l = 11 + break e + case fe: + l = 14 + break e + case de: + ;(l = 16), (r = null) + break e + case pe: + l = 22 + break e + } + throw Error(a(130, null == e ? e : typeof e, '')) + } + return ( + ((t = Eu(l, n, t, o)).elementType = e), + (t.type = r), + (t.expirationTime = i), + t + ) + } + function Nu(e, t, n, r) { + return ((e = Eu(7, e, r, t)).expirationTime = n), e + } + function _u(e, t, n) { + return ((e = Eu(6, e, null, t)).expirationTime = n), e + } + function Ou(e, t, n) { + return ( + ((t = Eu( + 4, + null !== e.children ? e.children : [], + e.key, + t + )).expirationTime = n), + (t.stateNode = { + containerInfo: e.containerInfo, + pendingChildren: null, + implementation: e.implementation, + }), + t + ) + } + function ju(e, t, n) { + ;(this.tag = t), + (this.current = null), + (this.containerInfo = e), + (this.pingCache = this.pendingChildren = null), + (this.finishedExpirationTime = 0), + (this.finishedWork = null), + (this.timeoutHandle = -1), + (this.pendingContext = this.context = null), + (this.hydrate = n), + (this.callbackNode = null), + (this.callbackPriority = 90), + (this.lastExpiredTime = + this.lastPingedTime = + this.nextKnownPendingLevel = + this.lastSuspendedTime = + this.firstSuspendedTime = + this.firstPendingTime = + 0) + } + function Du(e, t) { + var n = e.firstSuspendedTime + return (e = e.lastSuspendedTime), 0 !== n && n >= t && e <= t + } + function Au(e, t) { + var n = e.firstSuspendedTime, + r = e.lastSuspendedTime + n < t && (e.firstSuspendedTime = t), + (r > t || 0 === n) && (e.lastSuspendedTime = t), + t <= e.lastPingedTime && (e.lastPingedTime = 0), + t <= e.lastExpiredTime && (e.lastExpiredTime = 0) + } + function Lu(e, t) { + t > e.firstPendingTime && (e.firstPendingTime = t) + var n = e.firstSuspendedTime + 0 !== n && + (t >= n + ? (e.firstSuspendedTime = + e.lastSuspendedTime = + e.nextKnownPendingLevel = + 0) + : t >= e.lastSuspendedTime && (e.lastSuspendedTime = t + 1), + t > e.nextKnownPendingLevel && (e.nextKnownPendingLevel = t)) + } + function Iu(e, t) { + var n = e.lastExpiredTime + ;(0 === n || n > t) && (e.lastExpiredTime = t) + } + function Ru(e, t, n, r) { + var o = t.current, + i = Vl(), + l = pi.suspense + i = Ql(i, o, l) + e: if (n) { + t: { + if (Ze((n = n._reactInternalFiber)) !== n || 1 !== n.tag) + throw Error(a(170)) + var u = n + do { + switch (u.tag) { + case 3: + u = u.stateNode.context + break t + case 1: + if (vo(u.type)) { + u = u.stateNode.__reactInternalMemoizedMergedChildContext + break t + } + } + u = u.return + } while (null !== u) + throw Error(a(171)) + } + if (1 === n.tag) { + var s = n.type + if (vo(s)) { + n = bo(n, s, u) + break e + } + } + n = u + } else n = co + return ( + null === t.context ? (t.context = n) : (t.pendingContext = n), + ((t = ui(i, l)).payload = { element: e }), + null !== (r = void 0 === r ? null : r) && (t.callback = r), + si(o, t), + Kl(o, i), + i + ) + } + function Mu(e) { + if (!(e = e.current).child) return null + switch (e.child.tag) { + case 5: + default: + return e.child.stateNode + } + } + function Fu(e, t) { + null !== (e = e.memoizedState) && + null !== e.dehydrated && + e.retryTime < t && + (e.retryTime = t) + } + function zu(e, t) { + Fu(e, t), (e = e.alternate) && Fu(e, t) + } + function qu(e, t, n) { + var r = new ju(e, t, (n = null != n && !0 === n.hydrate)), + o = Eu(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0) + ;(r.current = o), + (o.stateNode = r), + ai(o), + (e[Cn] = r.current), + n && + 0 !== t && + (function (e, t) { + var n = Je(t) + Ct.forEach(function (e) { + ht(e, t, n) + }), + Pt.forEach(function (e) { + ht(e, t, n) + }) + })(0, 9 === e.nodeType ? e : e.ownerDocument), + (this._internalRoot = r) + } + function Hu(e) { + return !( + !e || + (1 !== e.nodeType && + 9 !== e.nodeType && + 11 !== e.nodeType && + (8 !== e.nodeType || ' react-mount-point-unstable ' !== e.nodeValue)) + ) + } + function Wu(e, t, n, r, o) { + var i = n._reactRootContainer + if (i) { + var a = i._internalRoot + if ('function' == typeof o) { + var l = o + o = function () { + var e = Mu(a) + l.call(e) + } + } + Ru(t, a, e, o) + } else { + if ( + ((i = n._reactRootContainer = + (function (e, t) { + if ( + (t || + (t = !( + !(t = e + ? 9 === e.nodeType + ? e.documentElement + : e.firstChild + : null) || + 1 !== t.nodeType || + !t.hasAttribute('data-reactroot') + )), + !t) + ) + for (var n; (n = e.lastChild); ) e.removeChild(n) + return new qu(e, 0, t ? { hydrate: !0 } : void 0) + })(n, r)), + (a = i._internalRoot), + 'function' == typeof o) + ) { + var u = o + o = function () { + var e = Mu(a) + u.call(e) + } + } + tu(function () { + Ru(t, a, e, o) + }) + } + return Mu(a) + } + function Uu(e, t, n) { + var r = + 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null + return { + $$typeof: te, + key: null == r ? null : '' + r, + children: e, + containerInfo: t, + implementation: n, + } + } + function $u(e, t) { + var n = + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null + if (!Hu(t)) throw Error(a(200)) + return Uu(e, t, null, n) + } + ;(qu.prototype.render = function (e) { + Ru(e, this._internalRoot, null, null) + }), + (qu.prototype.unmount = function () { + var e = this._internalRoot, + t = e.containerInfo + Ru(null, e, null, function () { + t[Cn] = null + }) + }), + (mt = function (e) { + if (13 === e.tag) { + var t = Ko(Vl(), 150, 100) + Kl(e, t), zu(e, t) + } + }), + (vt = function (e) { + 13 === e.tag && (Kl(e, 3), zu(e, 3)) + }), + (yt = function (e) { + if (13 === e.tag) { + var t = Vl() + Kl(e, (t = Ql(t, e, null))), zu(e, t) + } + }), + (N = function (e, t, n) { + switch (t) { + case 'input': + if ((Se(e, n), (t = n.name), 'radio' === n.type && null != t)) { + for (n = e; n.parentNode; ) n = n.parentNode + for ( + n = n.querySelectorAll( + 'input[name=' + JSON.stringify('' + t) + '][type="radio"]' + ), + t = 0; + t < n.length; + t++ + ) { + var r = n[t] + if (r !== e && r.form === e.form) { + var o = On(r) + if (!o) throw Error(a(90)) + xe(r), Se(r, o) + } + } + } + break + case 'textarea': + De(e, n) + break + case 'select': + null != (t = n.value) && _e(e, !!n.multiple, t, !1) + } + }), + (L = eu), + (I = function (e, t, n, r, o) { + var i = Tl + Tl |= 4 + try { + return Uo(98, e.bind(null, t, n, r, o)) + } finally { + 0 === (Tl = i) && Vo() + } + }), + (R = function () { + 0 == (49 & Tl) && + ((function () { + if (null !== Wl) { + var e = Wl + ;(Wl = null), + e.forEach(function (e, t) { + Iu(t, e), Gl(t) + }), + Vo() + } + })(), + mu()) + }), + (M = function (e, t) { + var n = Tl + Tl |= 2 + try { + return e(t) + } finally { + 0 === (Tl = n) && Vo() + } + }) + var Bu, + Vu, + Qu = { + Events: [ + Nn, + _n, + On, + C, + T, + Mn, + function (e) { + ot(e, Rn) + }, + D, + A, + Gt, + lt, + mu, + { current: !1 }, + ], + } + ;(Vu = (Bu = { + findFiberByHostInstance: Pn, + bundleType: 0, + version: '16.14.0', + rendererPackageName: 'react-dom', + }).findFiberByHostInstance), + (function (e) { + if ('undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1 + var t = __REACT_DEVTOOLS_GLOBAL_HOOK__ + if (t.isDisabled || !t.supportsFiber) return !0 + try { + var n = t.inject(e) + ;(xu = function (e) { + try { + t.onCommitFiberRoot( + n, + e, + void 0, + 64 == (64 & e.current.effectTag) + ) + } catch (e) {} + }), + (ku = function (e) { + try { + t.onCommitFiberUnmount(n, e) + } catch (e) {} + }) + } catch (e) {} + })( + o({}, Bu, { + overrideHookState: null, + overrideProps: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: Y.ReactCurrentDispatcher, + findHostInstanceByFiber: function (e) { + return null === (e = nt(e)) ? null : e.stateNode + }, + findFiberByHostInstance: function (e) { + return Vu ? Vu(e) : null + }, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + }) + ), + (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Qu), + (t.createPortal = $u), + (t.findDOMNode = function (e) { + if (null == e) return null + if (1 === e.nodeType) return e + var t = e._reactInternalFiber + if (void 0 === t) { + if ('function' == typeof e.render) throw Error(a(188)) + throw Error(a(268, Object.keys(e))) + } + return (e = null === (e = nt(t)) ? null : e.stateNode) + }), + (t.flushSync = function (e, t) { + if (0 != (48 & Tl)) throw Error(a(187)) + var n = Tl + Tl |= 1 + try { + return Uo(99, e.bind(null, t)) + } finally { + ;(Tl = n), Vo() + } + }), + (t.hydrate = function (e, t, n) { + if (!Hu(t)) throw Error(a(200)) + return Wu(null, e, t, !0, n) + }), + (t.render = function (e, t, n) { + if (!Hu(t)) throw Error(a(200)) + return Wu(null, e, t, !1, n) + }), + (t.unmountComponentAtNode = function (e) { + if (!Hu(e)) throw Error(a(40)) + return ( + !!e._reactRootContainer && + (tu(function () { + Wu(null, null, e, !1, function () { + ;(e._reactRootContainer = null), (e[Cn] = null) + }) + }), + !0) + ) + }), + (t.unstable_batchedUpdates = eu), + (t.unstable_createPortal = function (e, t) { + return $u( + e, + t, + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null + ) + }), + (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { + if (!Hu(n)) throw Error(a(200)) + if (null == e || void 0 === e._reactInternalFiber) throw Error(a(38)) + return Wu(e, t, n, !1, r) + }), + (t.version = '16.14.0') + }, + 321: function (e, t, n) { + 'use strict' + e.exports = n(322) + }, + 322: function (e, t, n) { + 'use strict' + /** @license React v0.19.1 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var r, o, i, a, l + if ('undefined' == typeof window || 'function' != typeof MessageChannel) { + var u = null, + s = null, + c = function () { + if (null !== u) + try { + var e = t.unstable_now() + u(!0, e), (u = null) + } catch (e) { + throw (setTimeout(c, 0), e) + } + }, + f = Date.now() + ;(t.unstable_now = function () { + return Date.now() - f + }), + (r = function (e) { + null !== u ? setTimeout(r, 0, e) : ((u = e), setTimeout(c, 0)) + }), + (o = function (e, t) { + s = setTimeout(e, t) + }), + (i = function () { + clearTimeout(s) + }), + (a = function () { + return !1 + }), + (l = t.unstable_forceFrameRate = function () {}) + } else { + var d = window.performance, + p = window.Date, + h = window.setTimeout, + m = window.clearTimeout + if ('undefined' != typeof console) { + var v = window.cancelAnimationFrame + 'function' != typeof window.requestAnimationFrame && + console.error( + "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + ), + 'function' != typeof v && + console.error( + "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + ) + } + if ('object' == typeof d && 'function' == typeof d.now) + t.unstable_now = function () { + return d.now() + } + else { + var y = p.now() + t.unstable_now = function () { + return p.now() - y + } + } + var g = !1, + b = null, + w = -1, + x = 5, + k = 0 + ;(a = function () { + return t.unstable_now() >= k + }), + (l = function () {}), + (t.unstable_forceFrameRate = function (e) { + 0 > e || 125 < e + ? console.error( + 'forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported' + ) + : (x = 0 < e ? Math.floor(1e3 / e) : 5) + }) + var T = new MessageChannel(), + E = T.port2 + ;(T.port1.onmessage = function () { + if (null !== b) { + var e = t.unstable_now() + k = e + x + try { + b(!0, e) ? E.postMessage(null) : ((g = !1), (b = null)) + } catch (e) { + throw (E.postMessage(null), e) + } + } else g = !1 + }), + (r = function (e) { + ;(b = e), g || ((g = !0), E.postMessage(null)) + }), + (o = function (e, n) { + w = h(function () { + e(t.unstable_now()) + }, n) + }), + (i = function () { + m(w), (w = -1) + }) + } + function S(e, t) { + var n = e.length + e.push(t) + e: while (!0) { + var r = (n - 1) >>> 1, + o = e[r] + if (!(void 0 !== o && 0 < N(o, t))) break e + ;(e[r] = t), (e[n] = o), (n = r) + } + } + function C(e) { + return void 0 === (e = e[0]) ? null : e + } + function P(e) { + var t = e[0] + if (void 0 !== t) { + var n = e.pop() + if (n !== t) { + e[0] = n + e: for (var r = 0, o = e.length; r < o; ) { + var i = 2 * (r + 1) - 1, + a = e[i], + l = i + 1, + u = e[l] + if (void 0 !== a && 0 > N(a, n)) + void 0 !== u && 0 > N(u, a) + ? ((e[r] = u), (e[l] = n), (r = l)) + : ((e[r] = a), (e[i] = n), (r = i)) + else { + if (!(void 0 !== u && 0 > N(u, n))) break e + ;(e[r] = u), (e[l] = n), (r = l) + } + } + } + return t + } + return null + } + function N(e, t) { + var n = e.sortIndex - t.sortIndex + return 0 !== n ? n : e.id - t.id + } + var _ = [], + O = [], + j = 1, + D = null, + A = 3, + L = !1, + I = !1, + R = !1 + function M(e) { + for (var t = C(O); null !== t; ) { + if (null === t.callback) P(O) + else { + if (!(t.startTime <= e)) break + P(O), (t.sortIndex = t.expirationTime), S(_, t) + } + t = C(O) + } + } + function F(e) { + if (((R = !1), M(e), !I)) + if (null !== C(_)) (I = !0), r(z) + else { + var t = C(O) + null !== t && o(F, t.startTime - e) + } + } + function z(e, n) { + ;(I = !1), R && ((R = !1), i()), (L = !0) + var r = A + try { + for ( + M(n), D = C(_); + null !== D && (!(D.expirationTime > n) || (e && !a())); + + ) { + var l = D.callback + if (null !== l) { + ;(D.callback = null), (A = D.priorityLevel) + var u = l(D.expirationTime <= n) + ;(n = t.unstable_now()), + 'function' == typeof u ? (D.callback = u) : D === C(_) && P(_), + M(n) + } else P(_) + D = C(_) + } + if (null !== D) var s = !0 + else { + var c = C(O) + null !== c && o(F, c.startTime - n), (s = !1) + } + return s + } finally { + ;(D = null), (A = r), (L = !1) + } + } + function q(e) { + switch (e) { + case 1: + return -1 + case 2: + return 250 + case 5: + return 1073741823 + case 4: + return 1e4 + default: + return 5e3 + } + } + var H = l + ;(t.unstable_IdlePriority = 5), + (t.unstable_ImmediatePriority = 1), + (t.unstable_LowPriority = 4), + (t.unstable_NormalPriority = 3), + (t.unstable_Profiling = null), + (t.unstable_UserBlockingPriority = 2), + (t.unstable_cancelCallback = function (e) { + e.callback = null + }), + (t.unstable_continueExecution = function () { + I || L || ((I = !0), r(z)) + }), + (t.unstable_getCurrentPriorityLevel = function () { + return A + }), + (t.unstable_getFirstCallbackNode = function () { + return C(_) + }), + (t.unstable_next = function (e) { + switch (A) { + case 1: + case 2: + case 3: + var t = 3 + break + default: + t = A + } + var n = A + A = t + try { + return e() + } finally { + A = n + } + }), + (t.unstable_pauseExecution = function () {}), + (t.unstable_requestPaint = H), + (t.unstable_runWithPriority = function (e, t) { + switch (e) { + case 1: + case 2: + case 3: + case 4: + case 5: + break + default: + e = 3 + } + var n = A + A = e + try { + return t() + } finally { + A = n + } + }), + (t.unstable_scheduleCallback = function (e, n, a) { + var l = t.unstable_now() + if ('object' == typeof a && null !== a) { + var u = a.delay + ;(u = 'number' == typeof u && 0 < u ? l + u : l), + (a = 'number' == typeof a.timeout ? a.timeout : q(e)) + } else (a = q(e)), (u = l) + return ( + (e = { + id: j++, + callback: n, + priorityLevel: e, + startTime: u, + expirationTime: (a = u + a), + sortIndex: -1, + }), + u > l + ? ((e.sortIndex = u), + S(O, e), + null === C(_) && e === C(O) && (R ? i() : (R = !0), o(F, u - l))) + : ((e.sortIndex = a), S(_, e), I || L || ((I = !0), r(z))), + e + ) + }), + (t.unstable_shouldYield = function () { + var e = t.unstable_now() + M(e) + var n = C(_) + return ( + (n !== D && + null !== D && + null !== n && + null !== n.callback && + n.startTime <= e && + n.expirationTime < D.expirationTime) || + a() + ) + }), + (t.unstable_wrapCallback = function (e) { + var t = A + return function () { + var n = A + A = t + try { + return e.apply(this, arguments) + } finally { + A = n + } + } + }) + }, + 337: function (e, t) {}, + 339: function (e, t) {}, + 341: function (e, t) {}, + 343: function (e, t) {}, + 4: function (e, t, n) { + 'use strict' + e.exports = n(319) + }, + 5: function (e, t, n) { + 'use strict' + ;(function (e) { + function r(e) { + return (r = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function (e) { + return typeof e + } + : function (e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e + })(e) + } + n.d(t, 'a', function () { + return o + }) + var o = new (n(9).a)() + 'object' === r(window.NewsletterProAppTranslate) && + o.setObject(window.NewsletterProAppTranslate, !0), + e(document).ready(function () { + 0 === o.length() && o.setObject(window.NewsletterProAppTranslate, !0) + }) + }).call(this, n(2)) + }, + 6: function (e, t, n) { + 'use strict' + function r(e) { + return ( + (function (e) { + if (Array.isArray(e)) return a(e) + })(e) || + (function (e) { + if ( + ('undefined' != typeof Symbol && null != e[Symbol.iterator]) || + null != e['@@iterator'] + ) + return Array.from(e) + })(e) || + i(e) || + (function () { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })() + ) + } + function o(e, t) { + var n = + ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator'] + if (!n) { + if ( + Array.isArray(e) || + (n = i(e)) || + (t && e && 'number' == typeof e.length) + ) { + n && (e = n) + var r = 0, + o = function () {} + return { + s: o, + n: function () { + return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] } + }, + e: function (e) { + throw e + }, + f: o, + } + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + } + var a, + l = !0, + u = !1 + return { + s: function () { + n = n.call(e) + }, + n: function () { + var e = n.next() + return (l = e.done), e + }, + e: function (e) { + ;(u = !0), (a = e) + }, + f: function () { + try { + l || null == n.return || n.return() + } finally { + if (u) throw a + } + }, + } + } + function i(e, t) { + if (e) { + if ('string' == typeof e) return a(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + return ( + 'Object' === n && e.constructor && (n = e.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(e) + : 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? a(e, t) + : void 0 + ) + } + } + function a(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] + return r + } + n.d(t, 'c', function () { + return s + }), + n.d(t, 'd', function () { + return c + }), + n.d(t, 'b', function () { + return f + }), + n.d(t, 'a', function () { + return d + }) + var l = window.MutationObserver || window.WebKitMutationObserver, + u = window.addEventListener + var s = function (e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : void 0, + n = + arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null + return function (i, a) { + if (!i) return e + if ((void 0 === a && (a = t), !e)) return n ? n(a) : a + var l = i.split('.') + l.length + return (function e(t, i) { + var a, + l = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : void 0, + u = i.length, + s = o(i) + try { + for (s.s(); !(a = s.n()).done; ) { + var c = a.value + if (c in t && t[c]) { + if (1 === u) return n ? n(t[c]) : t[c] + if (t[c] instanceof Object) { + var f = r(i) + return f.shift(), e(t[c], f, l) + } + } + } + } catch (e) { + s.e(e) + } finally { + s.f() + } + return n ? n(l) : l + })(e, l, a) + } + } + function c(e, t) { + l + ? new l(function (e, n) { + ;(e[0].addedNodes.length || e[0].removedNodes.length) && t() + }).observe(e, { childList: !0, subtree: !0 }) + : u && + (e.addEventListener('DOMNodeInserted', t, !1), + e.addEventListener('DOMNodeRemoved', t, !1)) + } + function f(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = e.serializeArray() + for (var r in t) t.hasOwnProperty(r) && n.push({ name: r, value: t[r] }) + return n + } + function d(e) { + return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + } + }, + 7: function (e, t, n) { + 'use strict' + var r, + o = 'object' == typeof Reflect ? Reflect : null, + i = + o && 'function' == typeof o.apply + ? o.apply + : function (e, t, n) { + return Function.prototype.apply.call(e, t, n) + } + r = + o && 'function' == typeof o.ownKeys + ? o.ownKeys + : Object.getOwnPropertySymbols + ? function (e) { + return Object.getOwnPropertyNames(e).concat( + Object.getOwnPropertySymbols(e) + ) + } + : function (e) { + return Object.getOwnPropertyNames(e) + } + var a = + Number.isNaN || + function (e) { + return e != e + } + function l() { + l.init.call(this) + } + ;(e.exports = l), + (e.exports.once = function (e, t) { + return new Promise(function (n, r) { + function o(n) { + e.removeListener(t, i), r(n) + } + function i() { + 'function' == typeof e.removeListener && + e.removeListener('error', o), + n([].slice.call(arguments)) + } + y(e, t, i, { once: !0 }), + 'error' !== t && + (function (e, t, n) { + 'function' == typeof e.on && y(e, 'error', t, n) + })(e, o, { once: !0 }) + }) + }), + (l.EventEmitter = l), + (l.prototype._events = void 0), + (l.prototype._eventsCount = 0), + (l.prototype._maxListeners = void 0) + var u = 10 + function s(e) { + if ('function' != typeof e) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof e + ) + } + function c(e) { + return void 0 === e._maxListeners + ? l.defaultMaxListeners + : e._maxListeners + } + function f(e, t, n, r) { + var o, i, a, l + if ( + (s(n), + void 0 === (i = e._events) + ? ((i = e._events = Object.create(null)), (e._eventsCount = 0)) + : (void 0 !== i.newListener && + (e.emit('newListener', t, n.listener ? n.listener : n), + (i = e._events)), + (a = i[t])), + void 0 === a) + ) + (a = i[t] = n), ++e._eventsCount + else if ( + ('function' == typeof a + ? (a = i[t] = r ? [n, a] : [a, n]) + : r + ? a.unshift(n) + : a.push(n), + (o = c(e)) > 0 && a.length > o && !a.warned) + ) { + a.warned = !0 + var u = new Error( + 'Possible EventEmitter memory leak detected. ' + + a.length + + ' ' + + String(t) + + ' listeners added. Use emitter.setMaxListeners() to increase limit' + ) + ;(u.name = 'MaxListenersExceededWarning'), + (u.emitter = e), + (u.type = t), + (u.count = a.length), + (l = u), + console && console.warn && console.warn(l) + } + return e + } + function d() { + if (!this.fired) + return ( + this.target.removeListener(this.type, this.wrapFn), + (this.fired = !0), + 0 === arguments.length + ? this.listener.call(this.target) + : this.listener.apply(this.target, arguments) + ) + } + function p(e, t, n) { + var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, + o = d.bind(r) + return (o.listener = n), (r.wrapFn = o), o + } + function h(e, t, n) { + var r = e._events + if (void 0 === r) return [] + var o = r[t] + return void 0 === o + ? [] + : 'function' == typeof o + ? n + ? [o.listener || o] + : [o] + : n + ? (function (e) { + for (var t = new Array(e.length), n = 0; n < t.length; ++n) + t[n] = e[n].listener || e[n] + return t + })(o) + : v(o, o.length) + } + function m(e) { + var t = this._events + if (void 0 !== t) { + var n = t[e] + if ('function' == typeof n) return 1 + if (void 0 !== n) return n.length + } + return 0 + } + function v(e, t) { + for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r] + return n + } + function y(e, t, n, r) { + if ('function' == typeof e.on) r.once ? e.once(t, n) : e.on(t, n) + else { + if ('function' != typeof e.addEventListener) + throw new TypeError( + 'The "emitter" argument must be of type EventEmitter. Received type ' + + typeof e + ) + e.addEventListener(t, function o(i) { + r.once && e.removeEventListener(t, o), n(i) + }) + } + } + Object.defineProperty(l, 'defaultMaxListeners', { + enumerable: !0, + get: function () { + return u + }, + set: function (e) { + if ('number' != typeof e || e < 0 || a(e)) + throw new RangeError( + 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + + e + + '.' + ) + u = e + }, + }), + (l.init = function () { + ;(void 0 !== this._events && + this._events !== Object.getPrototypeOf(this)._events) || + ((this._events = Object.create(null)), (this._eventsCount = 0)), + (this._maxListeners = this._maxListeners || void 0) + }), + (l.prototype.setMaxListeners = function (e) { + if ('number' != typeof e || e < 0 || a(e)) + throw new RangeError( + 'The value of "n" is out of range. It must be a non-negative number. Received ' + + e + + '.' + ) + return (this._maxListeners = e), this + }), + (l.prototype.getMaxListeners = function () { + return c(this) + }), + (l.prototype.emit = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]) + var r = 'error' === e, + o = this._events + if (void 0 !== o) r = r && void 0 === o.error + else if (!r) return !1 + if (r) { + var a + if ((t.length > 0 && (a = t[0]), a instanceof Error)) throw a + var l = new Error( + 'Unhandled error.' + (a ? ' (' + a.message + ')' : '') + ) + throw ((l.context = a), l) + } + var u = o[e] + if (void 0 === u) return !1 + if ('function' == typeof u) i(u, this, t) + else { + var s = u.length, + c = v(u, s) + for (n = 0; n < s; ++n) i(c[n], this, t) + } + return !0 + }), + (l.prototype.addListener = function (e, t) { + return f(this, e, t, !1) + }), + (l.prototype.on = l.prototype.addListener), + (l.prototype.prependListener = function (e, t) { + return f(this, e, t, !0) + }), + (l.prototype.once = function (e, t) { + return s(t), this.on(e, p(this, e, t)), this + }), + (l.prototype.prependOnceListener = function (e, t) { + return s(t), this.prependListener(e, p(this, e, t)), this + }), + (l.prototype.removeListener = function (e, t) { + var n, r, o, i, a + if ((s(t), void 0 === (r = this._events))) return this + if (void 0 === (n = r[e])) return this + if (n === t || n.listener === t) + 0 == --this._eventsCount + ? (this._events = Object.create(null)) + : (delete r[e], + r.removeListener && + this.emit('removeListener', e, n.listener || t)) + else if ('function' != typeof n) { + for (o = -1, i = n.length - 1; i >= 0; i--) + if (n[i] === t || n[i].listener === t) { + ;(a = n[i].listener), (o = i) + break + } + if (o < 0) return this + 0 === o + ? n.shift() + : (function (e, t) { + for (; t + 1 < e.length; t++) e[t] = e[t + 1] + e.pop() + })(n, o), + 1 === n.length && (r[e] = n[0]), + void 0 !== r.removeListener && + this.emit('removeListener', e, a || t) + } + return this + }), + (l.prototype.off = l.prototype.removeListener), + (l.prototype.removeAllListeners = function (e) { + var t, n, r + if (void 0 === (n = this._events)) return this + if (void 0 === n.removeListener) + return ( + 0 === arguments.length + ? ((this._events = Object.create(null)), (this._eventsCount = 0)) + : void 0 !== n[e] && + (0 == --this._eventsCount + ? (this._events = Object.create(null)) + : delete n[e]), + this + ) + if (0 === arguments.length) { + var o, + i = Object.keys(n) + for (r = 0; r < i.length; ++r) + 'removeListener' !== (o = i[r]) && this.removeAllListeners(o) + return ( + this.removeAllListeners('removeListener'), + (this._events = Object.create(null)), + (this._eventsCount = 0), + this + ) + } + if ('function' == typeof (t = n[e])) this.removeListener(e, t) + else if (void 0 !== t) + for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]) + return this + }), + (l.prototype.listeners = function (e) { + return h(this, e, !0) + }), + (l.prototype.rawListeners = function (e) { + return h(this, e, !1) + }), + (l.listenerCount = function (e, t) { + return 'function' == typeof e.listenerCount + ? e.listenerCount(t) + : m.call(e, t) + }), + (l.prototype.listenerCount = m), + (l.prototype.eventNames = function () { + return this._eventsCount > 0 ? r(this._events) : [] + }) + }, + 8: function (e, t, n) { + 'use strict' + ;(function (e) { + n.d(t, 'a', function () { + return f + }), + n.d(t, 'b', function () { + return s + }) + var r = n(4), + o = n(11), + i = n(13), + a = n(14) + function l(e, t) { + var n = + ('undefined' != typeof Symbol && e[Symbol.iterator]) || + e['@@iterator'] + if (!n) { + if ( + Array.isArray(e) || + (n = (function (e, t) { + if (!e) return + if ('string' == typeof e) return u(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + 'Object' === n && e.constructor && (n = e.constructor.name) + if ('Map' === n || 'Set' === n) return Array.from(e) + if ( + 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ) + return u(e, t) + })(e)) || + (t && e && 'number' == typeof e.length) + ) { + n && (e = n) + var r = 0, + o = function () {} + return { + s: o, + n: function () { + return r >= e.length + ? { done: !0 } + : { done: !1, value: e[r++] } + }, + e: function (e) { + throw e + }, + f: o, + } + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + } + var i, + a = !0, + l = !1 + return { + s: function () { + n = n.call(e) + }, + n: function () { + var e = n.next() + return (a = e.done), e + }, + e: function (e) { + ;(l = !0), (i = e) + }, + f: function () { + try { + a || null == n.return || n.return() + } finally { + if (l) throw i + } + }, + } + } + function u(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] + return r + } + var s = null, + c = [] + function f(t) { + return new a.a(function (n, a) { + e(document).ready(function () { + if ( + (e(document.body).append('
          '), + (s = o.render( + r.createElement(i.b, null), + document.getElementById('pqnp-win') + )), + n(s), + t(s), + c.length > 0) + ) { + var a, + u = l(c) + try { + for (u.s(); !(a = u.n()).done; ) { + ;(0, a.value)(s) + } + } catch (e) { + u.e(e) + } finally { + u.f() + } + } + }) + }) + } + }).call(this, n(2)) + }, + 9: function (e, t, n) { + 'use strict' + n.d(t, 'a', function () { + return s + }) + var r = n(7) + function o(e, t) { + var n = + ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator'] + if (!n) { + if ( + Array.isArray(e) || + (n = (function (e, t) { + if (!e) return + if ('string' == typeof e) return i(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + 'Object' === n && e.constructor && (n = e.constructor.name) + if ('Map' === n || 'Set' === n) return Array.from(e) + if ( + 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ) + return i(e, t) + })(e)) || + (t && e && 'number' == typeof e.length) + ) { + n && (e = n) + var r = 0, + o = function () {} + return { + s: o, + n: function () { + return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] } + }, + e: function (e) { + throw e + }, + f: o, + } + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + } + var a, + l = !0, + u = !1 + return { + s: function () { + n = n.call(e) + }, + n: function () { + var e = n.next() + return (l = e.done), e + }, + e: function (e) { + ;(u = !0), (a = e) + }, + f: function () { + try { + l || null == n.return || n.return() + } finally { + if (u) throw a + } + }, + } + } + function i(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] + return r + } + function a(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r) + } + } + function l(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (e[t] = n), + e + ) + } + var u = new r.EventEmitter(), + s = (function () { + function e() { + !(function (e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function') + })(this, e), + l(this, 'data', {}), + l(this, 'cache', {}), + l(this, 'on', function (e, t) { + u.on(e, t) + }) + } + var t, n, r + return ( + (t = e), + (n = [ + { + key: 'setObject', + value: function (e) { + for ( + var t = + arguments.length > 1 && + void 0 !== arguments[1] && + arguments[1], + n = 0, + r = Object.keys(e); + n < r.length; + n++ + ) { + var o = r[n] + this.data[o] = e[o] + } + t && u.emit('ready', this) + }, + }, + { + key: 'source', + value: function (e) { + var t, + n, + r = this, + i = this.data, + a = o((t = e.split('.'))) + try { + for (a.s(); !(n = a.n()).done; ) { + var l = n.value + if (!i.hasOwnProperty(l)) + return ( + console.error( + 'Invalid translation path "' + .concat(t, '" - "') + .concat(l, '"') + ), + function (e) { + return e + } + ) + i = i[l] + } + } catch (e) { + a.e(e) + } finally { + a.f() + } + return function (e) { + if (i.hasOwnProperty(e)) return i[e].replace(/\"/g, '"') + var n = 'The translation does not exist >>>' + .concat(e, '<<< in "') + .concat(t, '"') + return ( + void 0 === r.cache[n] && + ((r.cache[n] = !0), console.log(n)), + e + ) + } + }, + }, + { + key: 'length', + value: function () { + return Object.keys(this.data).length + }, + }, + { + key: 'set', + value: function (e, t) { + var n = this + this.length() > 0 + ? (e.l = this.source(t)) + : this.on('ready', function () { + e.l = n.source(t) + }) + }, + }, + ]) && a(t.prototype, n), + r && a(t, r), + e + ) + })() + }, +}) +/*! jQuery UI - v1.10.3 - 2013-05-03 + * http://jqueryui.com + * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js + * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ +!(function (a, b) { + function e(b, c) { + var d, + e, + g, + h = b.nodeName.toLowerCase() + return 'area' === h + ? ((d = b.parentNode), + (e = d.name), + !(!b.href || !e || 'map' !== d.nodeName.toLowerCase()) && + ((g = a('img[usemap=#' + e + ']')[0]), !!g && f(g))) + : (/input|select|textarea|button|object/.test(h) + ? !b.disabled + : 'a' === h + ? b.href || c + : c) && f(b) + } + function f(b) { + return ( + a.expr.filters.visible(b) && + !a(b) + .parents() + .addBack() + .filter(function () { + return 'hidden' === a.css(this, 'visibility') + }).length + ) + } + var c = 0, + d = /^ui-id-\d+$/ + ;(a.ui = a.ui || {}), + a.extend(a.ui, { + version: '1.10.3', + keyCode: { + BACKSPACE: 8, + COMMA: 188, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + LEFT: 37, + NUMPAD_ADD: 107, + NUMPAD_DECIMAL: 110, + NUMPAD_DIVIDE: 111, + NUMPAD_ENTER: 108, + NUMPAD_MULTIPLY: 106, + NUMPAD_SUBTRACT: 109, + PAGE_DOWN: 34, + PAGE_UP: 33, + PERIOD: 190, + RIGHT: 39, + SPACE: 32, + TAB: 9, + UP: 38, + }, + }), + a.fn.extend({ + focus: (function (b) { + return function (c, d) { + return 'number' == typeof c + ? this.each(function () { + var b = this + setTimeout(function () { + a(b).focus(), d && d.call(b) + }, c) + }) + : b.apply(this, arguments) + } + })(a.fn.focus), + scrollParent: function () { + var b + return ( + (b = + (a.ui.ie && /(static|relative)/.test(this.css('position'))) || + /absolute/.test(this.css('position')) + ? this.parents() + .filter(function () { + return ( + /(relative|absolute|fixed)/.test( + a.css(this, 'position') + ) && + /(auto|scroll)/.test( + a.css(this, 'overflow') + + a.css(this, 'overflow-y') + + a.css(this, 'overflow-x') + ) + ) + }) + .eq(0) + : this.parents() + .filter(function () { + return /(auto|scroll)/.test( + a.css(this, 'overflow') + + a.css(this, 'overflow-y') + + a.css(this, 'overflow-x') + ) + }) + .eq(0)), + /fixed/.test(this.css('position')) || !b.length ? a(document) : b + ) + }, + zIndex: function (c) { + if (c !== b) return this.css('zIndex', c) + if (this.length) + for (var e, f, d = a(this[0]); d.length && d[0] !== document; ) { + if ( + ((e = d.css('position')), + ('absolute' === e || 'relative' === e || 'fixed' === e) && + ((f = parseInt(d.css('zIndex'), 10)), !isNaN(f) && 0 !== f)) + ) + return f + d = d.parent() + } + return 0 + }, + uniqueId: function () { + return this.each(function () { + this.id || (this.id = 'ui-id-' + ++c) + }) + }, + removeUniqueId: function () { + return this.each(function () { + d.test(this.id) && a(this).removeAttr('id') + }) + }, + }), + 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 (b) { + return e(b, !isNaN(a.attr(b, 'tabindex'))) + }, + tabbable: function (b) { + var c = a.attr(b, 'tabindex'), + d = isNaN(c) + return (d || c >= 0) && e(b, !d) + }, + }), + a('').outerWidth(1).jquery || + a.each(['Width', 'Height'], function (c, d) { + function h(b, c, d, f) { + return ( + a.each(e, function () { + ;(c -= parseFloat(a.css(b, 'padding' + this)) || 0), + d && + (c -= parseFloat(a.css(b, 'border' + this + 'Width')) || 0), + f && (c -= parseFloat(a.css(b, 'margin' + this)) || 0) + }), + c + ) + } + var e = 'Width' === d ? ['Left', 'Right'] : ['Top', 'Bottom'], + f = d.toLowerCase(), + g = { + innerWidth: a.fn.innerWidth, + innerHeight: a.fn.innerHeight, + outerWidth: a.fn.outerWidth, + outerHeight: a.fn.outerHeight, + } + ;(a.fn['inner' + d] = function (c) { + return c === b + ? g['inner' + d].call(this) + : this.each(function () { + a(this).css(f, h(this, c) + 'px') + }) + }), + (a.fn['outer' + d] = function (b, c) { + return 'number' != typeof b + ? g['outer' + d].call(this, b) + : this.each(function () { + a(this).css(f, h(this, b, !0, c) + 'px') + }) + }) + }), + a.fn.addBack || + (a.fn.addBack = function (a) { + return this.add(null == a ? this.prevObject : this.prevObject.filter(a)) + }), + a('').data('a-b', 'a').removeData('a-b').data('a-b') && + (a.fn.removeData = (function (b) { + return function (c) { + return arguments.length ? b.call(this, a.camelCase(c)) : b.call(this) + } + })(a.fn.removeData)), + (a.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())), + (a.support.selectstart = 'onselectstart' in document.createElement('div')), + a.fn.extend({ + disableSelection: function () { + return this.bind( + (a.support.selectstart ? 'selectstart' : 'mousedown') + + '.ui-disableSelection', + function (a) { + a.preventDefault() + } + ) + }, + enableSelection: function () { + return this.unbind('.ui-disableSelection') + }, + }), + a.extend(a.ui, { + plugin: { + add: function (b, c, d) { + var e, + f = a.ui[b].prototype + for (e in d) + (f.plugins[e] = f.plugins[e] || []), f.plugins[e].push([c, d[e]]) + }, + call: function (a, b, c) { + var d, + e = a.plugins[b] + if ( + e && + a.element[0].parentNode && + 11 !== a.element[0].parentNode.nodeType + ) + for (d = 0; d < e.length; d++) + a.options[e[d][0]] && e[d][1].apply(a.element, c) + }, + }, + hasScroll: function (b, c) { + if ('hidden' === a(b).css('overflow')) return !1 + var d = c && 'left' === c ? 'scrollLeft' : 'scrollTop', + e = !1 + return b[d] > 0 || ((b[d] = 1), (e = b[d] > 0), (b[d] = 0), e) + }, + }) +})(jQuery), + (function (a, b) { + var c = 0, + d = Array.prototype.slice, + e = a.cleanData + ;(a.cleanData = function (b) { + for (var d, c = 0; null != (d = b[c]); c++) + try { + a(d).triggerHandler('remove') + } catch (a) {} + e(b) + }), + (a.widget = function (b, c, d) { + var e, + f, + g, + h, + i = {}, + j = b.split('.')[0] + ;(b = b.split('.')[1]), + (e = j + '-' + b), + d || ((d = c), (c = a.Widget)), + (a.expr[':'][e.toLowerCase()] = function (b) { + return !!a.data(b, e) + }), + (a[j] = a[j] || {}), + (f = a[j][b]), + (g = a[j][b] = + function (a, b) { + return this._createWidget + ? void (arguments.length && this._createWidget(a, b)) + : new g(a, b) + }), + a.extend(g, f, { + version: d.version, + _proto: a.extend({}, d), + _childConstructors: [], + }), + (h = new c()), + (h.options = a.widget.extend({}, h.options)), + a.each(d, function (b, d) { + return a.isFunction(d) + ? void (i[b] = (function () { + var a = function () { + return c.prototype[b].apply(this, arguments) + }, + e = function (a) { + return c.prototype[b].apply(this, a) + } + return function () { + var f, + b = this._super, + c = this._superApply + return ( + (this._super = a), + (this._superApply = e), + (f = d.apply(this, arguments)), + (this._super = b), + (this._superApply = c), + f + ) + } + })()) + : void (i[b] = d) + }), + (g.prototype = a.widget.extend( + h, + { widgetEventPrefix: f ? h.widgetEventPrefix : b }, + i, + { constructor: g, namespace: j, widgetName: b, widgetFullName: e } + )), + f + ? (a.each(f._childConstructors, function (b, c) { + var d = c.prototype + a.widget(d.namespace + '.' + d.widgetName, g, c._proto) + }), + delete f._childConstructors) + : c._childConstructors.push(g), + a.widget.bridge(b, g) + }), + (a.widget.extend = function (c) { + for ( + var h, i, e = d.call(arguments, 1), f = 0, g = e.length; + f < g; + f++ + ) + for (h in e[f]) + (i = e[f][h]), + e[f].hasOwnProperty(h) && + i !== b && + (a.isPlainObject(i) + ? (c[h] = a.isPlainObject(c[h]) + ? a.widget.extend({}, c[h], i) + : a.widget.extend({}, i)) + : (c[h] = i)) + return c + }), + (a.widget.bridge = function (c, e) { + var f = e.prototype.widgetFullName || c + a.fn[c] = function (g) { + var h = 'string' == typeof g, + i = d.call(arguments, 1), + j = this + return ( + (g = + !h && i.length ? a.widget.extend.apply(null, [g].concat(i)) : g), + h + ? this.each(function () { + var d, + e = a.data(this, f) + return e + ? a.isFunction(e[g]) && '_' !== g.charAt(0) + ? ((d = e[g].apply(e, i)), + d !== e && d !== b + ? ((j = d && d.jquery ? j.pushStack(d.get()) : d), !1) + : void 0) + : a.error( + "no such method '" + + g + + "' for " + + c + + ' widget instance' + ) + : a.error( + 'cannot call methods on ' + + c + + " prior to initialization; attempted to call method '" + + g + + "'" + ) + }) + : this.each(function () { + var b = a.data(this, f) + b + ? b.option(g || {})._init() + : a.data(this, f, new e(g, this)) + }), + j + ) + } + }), + (a.Widget = function () {}), + (a.Widget._childConstructors = []), + (a.Widget.prototype = { + widgetName: 'widget', + widgetEventPrefix: '', + defaultElement: '
          ', + options: { disabled: !1, create: null }, + _createWidget: function (b, d) { + ;(d = a(d || this.defaultElement || this)[0]), + (this.element = a(d)), + (this.uuid = c++), + (this.eventNamespace = '.' + this.widgetName + this.uuid), + (this.options = a.widget.extend( + {}, + this.options, + this._getCreateOptions(), + b + )), + (this.bindings = a()), + (this.hoverable = a()), + (this.focusable = a()), + d !== this && + (a.data(d, this.widgetFullName, this), + this._on(!0, this.element, { + remove: function (a) { + a.target === d && this.destroy() + }, + }), + (this.document = a(d.style ? d.ownerDocument : d.document || d)), + (this.window = a( + this.document[0].defaultView || this.document[0].parentWindow + ))), + this._create(), + this._trigger('create', null, this._getCreateEventData()), + this._init() + }, + _getCreateOptions: a.noop, + _getCreateEventData: a.noop, + _create: a.noop, + _init: a.noop, + destroy: function () { + this._destroy(), + this.element + .unbind(this.eventNamespace) + .removeData(this.widgetName) + .removeData(this.widgetFullName) + .removeData(a.camelCase(this.widgetFullName)), + this.widget() + .unbind(this.eventNamespace) + .removeAttr('aria-disabled') + .removeClass(this.widgetFullName + '-disabled ui-state-disabled'), + this.bindings.unbind(this.eventNamespace), + this.hoverable.removeClass('ui-state-hover'), + this.focusable.removeClass('ui-state-focus') + }, + _destroy: a.noop, + widget: function () { + return this.element + }, + option: function (c, d) { + var f, + g, + h, + e = c + if (0 === arguments.length) return a.widget.extend({}, this.options) + if ('string' == typeof c) + if (((e = {}), (f = c.split('.')), (c = f.shift()), f.length)) { + for ( + g = e[c] = a.widget.extend({}, this.options[c]), h = 0; + h < f.length - 1; + h++ + ) + (g[f[h]] = g[f[h]] || {}), (g = g[f[h]]) + if (((c = f.pop()), d === b)) return g[c] === b ? null : g[c] + g[c] = d + } else { + if (d === b) return this.options[c] === b ? null : this.options[c] + e[c] = d + } + return this._setOptions(e), this + }, + _setOptions: function (a) { + var b + for (b in a) this._setOption(b, a[b]) + return this + }, + _setOption: function (a, b) { + return ( + (this.options[a] = b), + 'disabled' === a && + (this.widget() + .toggleClass( + this.widgetFullName + '-disabled ui-state-disabled', + !!b + ) + .attr('aria-disabled', b), + this.hoverable.removeClass('ui-state-hover'), + this.focusable.removeClass('ui-state-focus')), + this + ) + }, + enable: function () { + return this._setOption('disabled', !1) + }, + disable: function () { + return this._setOption('disabled', !0) + }, + _on: function (b, c, d) { + var e, + f = this + 'boolean' != typeof b && ((d = c), (c = b), (b = !1)), + d + ? ((c = e = a(c)), (this.bindings = this.bindings.add(c))) + : ((d = c), (c = this.element), (e = this.widget())), + a.each(d, function (d, g) { + function h() { + if ( + b || + (f.options.disabled !== !0 && + !a(this).hasClass('ui-state-disabled')) + ) + return ('string' == typeof g ? f[g] : g).apply(f, arguments) + } + 'string' != typeof g && + (h.guid = g.guid = g.guid || h.guid || a.guid++) + var i = d.match(/^(\w+)\s*(.*)$/), + j = i[1] + f.eventNamespace, + k = i[2] + k ? e.delegate(k, j, h) : c.bind(j, h) + }) + }, + _off: function (a, b) { + ;(b = + (b || '').split(' ').join(this.eventNamespace + ' ') + + this.eventNamespace), + a.unbind(b).undelegate(b) + }, + _delay: function (a, b) { + function c() { + return ('string' == typeof a ? d[a] : a).apply(d, arguments) + } + var d = this + return setTimeout(c, b || 0) + }, + _hoverable: function (b) { + ;(this.hoverable = this.hoverable.add(b)), + this._on(b, { + mouseenter: function (b) { + a(b.currentTarget).addClass('ui-state-hover') + }, + mouseleave: function (b) { + a(b.currentTarget).removeClass('ui-state-hover') + }, + }) + }, + _focusable: function (b) { + ;(this.focusable = this.focusable.add(b)), + this._on(b, { + focusin: function (b) { + a(b.currentTarget).addClass('ui-state-focus') + }, + focusout: function (b) { + a(b.currentTarget).removeClass('ui-state-focus') + }, + }) + }, + _trigger: function (b, c, d) { + var e, + f, + g = this.options[b] + if ( + ((d = d || {}), + (c = a.Event(c)), + (c.type = ( + b === this.widgetEventPrefix ? b : this.widgetEventPrefix + b + ).toLowerCase()), + (c.target = this.element[0]), + (f = c.originalEvent)) + ) + for (e in f) e in c || (c[e] = f[e]) + return ( + this.element.trigger(c, d), + !( + (a.isFunction(g) && + g.apply(this.element[0], [c].concat(d)) === !1) || + c.isDefaultPrevented() + ) + ) + }, + }), + a.each({ show: 'fadeIn', hide: 'fadeOut' }, function (b, c) { + a.Widget.prototype['_' + b] = function (d, e, f) { + 'string' == typeof e && (e = { effect: e }) + var g, + h = e ? (e === !0 || 'number' == typeof e ? c : e.effect || c) : b + ;(e = e || {}), + 'number' == typeof e && (e = { duration: e }), + (g = !a.isEmptyObject(e)), + (e.complete = f), + e.delay && d.delay(e.delay), + g && a.effects && a.effects.effect[h] + ? d[b](e) + : h !== b && d[h] + ? d[h](e.duration, e.easing, f) + : d.queue(function (c) { + a(this)[b](), f && f.call(d[0]), c() + }) + } + }) + })(jQuery), + (function (a, b) { + var c = !1 + a(document).mouseup(function () { + c = !1 + }), + a.widget('ui.mouse', { + version: '1.10.3', + options: { + cancel: 'input,textarea,button,select,option', + distance: 1, + delay: 0, + }, + _mouseInit: function () { + var b = this + this.element + .bind('mousedown.' + this.widgetName, function (a) { + return b._mouseDown(a) + }) + .bind('click.' + this.widgetName, function (c) { + if (!0 === a.data(c.target, b.widgetName + '.preventClickEvent')) + return ( + a.removeData(c.target, b.widgetName + '.preventClickEvent'), + c.stopImmediatePropagation(), + !1 + ) + }), + (this.started = !1) + }, + _mouseDestroy: function () { + this.element.unbind('.' + this.widgetName), + this._mouseMoveDelegate && + a(document) + .unbind('mousemove.' + this.widgetName, this._mouseMoveDelegate) + .unbind('mouseup.' + this.widgetName, this._mouseUpDelegate) + }, + _mouseDown: function (b) { + if (!c) { + this._mouseStarted && this._mouseUp(b), (this._mouseDownEvent = b) + var d = this, + e = 1 === b.which, + f = + !( + 'string' != typeof this.options.cancel || !b.target.nodeName + ) && a(b.target).closest(this.options.cancel).length + return ( + !(e && !f && this._mouseCapture(b)) || + ((this.mouseDelayMet = !this.options.delay), + this.mouseDelayMet || + (this._mouseDelayTimer = setTimeout(function () { + d.mouseDelayMet = !0 + }, this.options.delay)), + this._mouseDistanceMet(b) && + this._mouseDelayMet(b) && + ((this._mouseStarted = this._mouseStart(b) !== !1), + !this._mouseStarted) + ? (b.preventDefault(), !0) + : (!0 === + a.data(b.target, this.widgetName + '.preventClickEvent') && + a.removeData( + b.target, + this.widgetName + '.preventClickEvent' + ), + (this._mouseMoveDelegate = function (a) { + return d._mouseMove(a) + }), + (this._mouseUpDelegate = function (a) { + return d._mouseUp(a) + }), + a(document) + .bind( + 'mousemove.' + this.widgetName, + this._mouseMoveDelegate + ) + .bind('mouseup.' + this.widgetName, this._mouseUpDelegate), + b.preventDefault(), + (c = !0), + !0)) + ) + } + }, + _mouseMove: function (b) { + return a.ui.ie && + (!document.documentMode || document.documentMode < 9) && + !b.button + ? this._mouseUp(b) + : this._mouseStarted + ? (this._mouseDrag(b), b.preventDefault()) + : (this._mouseDistanceMet(b) && + this._mouseDelayMet(b) && + ((this._mouseStarted = + this._mouseStart(this._mouseDownEvent, b) !== !1), + this._mouseStarted ? this._mouseDrag(b) : this._mouseUp(b)), + !this._mouseStarted) + }, + _mouseUp: function (b) { + return ( + a(document) + .unbind('mousemove.' + this.widgetName, this._mouseMoveDelegate) + .unbind('mouseup.' + this.widgetName, this._mouseUpDelegate), + this._mouseStarted && + ((this._mouseStarted = !1), + b.target === this._mouseDownEvent.target && + a.data(b.target, this.widgetName + '.preventClickEvent', !0), + this._mouseStop(b)), + !1 + ) + }, + _mouseDistanceMet: function (a) { + return ( + Math.max( + Math.abs(this._mouseDownEvent.pageX - a.pageX), + Math.abs(this._mouseDownEvent.pageY - a.pageY) + ) >= this.options.distance + ) + }, + _mouseDelayMet: function () { + return this.mouseDelayMet + }, + _mouseStart: function () {}, + _mouseDrag: function () {}, + _mouseStop: function () {}, + _mouseCapture: function () { + return !0 + }, + }) + })(jQuery), + (function (a, b) { + a.widget('ui.draggable', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'drag', + options: { + addClasses: !0, + appendTo: 'parent', + axis: !1, + connectToSortable: !1, + containment: !1, + cursor: 'auto', + cursorAt: !1, + grid: !1, + handle: !1, + helper: 'original', + iframeFix: !1, + opacity: !1, + refreshPositions: !1, + revert: !1, + revertDuration: 500, + scope: 'default', + scroll: !0, + scrollSensitivity: 20, + scrollSpeed: 20, + snap: !1, + snapMode: 'both', + snapTolerance: 20, + stack: !1, + zIndex: !1, + drag: null, + start: null, + stop: null, + }, + _create: function () { + 'original' !== this.options.helper || + /^(?:r|a|f)/.test(this.element.css('position')) || + (this.element[0].style.position = 'relative'), + this.options.addClasses && this.element.addClass('ui-draggable'), + this.options.disabled && + this.element.addClass('ui-draggable-disabled'), + this._mouseInit() + }, + _destroy: function () { + this.element.removeClass( + 'ui-draggable ui-draggable-dragging ui-draggable-disabled' + ), + this._mouseDestroy() + }, + _mouseCapture: function (b) { + var c = this.options + return ( + !( + this.helper || + c.disabled || + a(b.target).closest('.ui-resizable-handle').length > 0 + ) && + ((this.handle = this._getHandle(b)), + !!this.handle && + (a(c.iframeFix === !0 ? 'iframe' : c.iframeFix).each(function () { + a( + "
          " + ) + .css({ + width: this.offsetWidth + 'px', + height: this.offsetHeight + 'px', + position: 'absolute', + opacity: '0.001', + zIndex: 1e3, + }) + .css(a(this).offset()) + .appendTo('body') + }), + !0)) + ) + }, + _mouseStart: function (b) { + var c = this.options + return ( + (this.helper = this._createHelper(b)), + this.helper.addClass('ui-draggable-dragging'), + this._cacheHelperProportions(), + a.ui.ddmanager && (a.ui.ddmanager.current = this), + this._cacheMargins(), + (this.cssPosition = this.helper.css('position')), + (this.scrollParent = this.helper.scrollParent()), + (this.offsetParent = this.helper.offsetParent()), + (this.offsetParentCssPosition = this.offsetParent.css('position')), + (this.offset = this.positionAbs = this.element.offset()), + (this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left, + }), + (this.offset.scroll = !1), + a.extend(this.offset, { + click: { + left: b.pageX - this.offset.left, + top: b.pageY - this.offset.top, + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset(), + }), + (this.originalPosition = this.position = this._generatePosition(b)), + (this.originalPageX = b.pageX), + (this.originalPageY = b.pageY), + c.cursorAt && this._adjustOffsetFromHelper(c.cursorAt), + this._setContainment(), + this._trigger('start', b) === !1 + ? (this._clear(), !1) + : (this._cacheHelperProportions(), + a.ui.ddmanager && + !c.dropBehaviour && + a.ui.ddmanager.prepareOffsets(this, b), + this._mouseDrag(b, !0), + a.ui.ddmanager && a.ui.ddmanager.dragStart(this, b), + !0) + ) + }, + _mouseDrag: function (b, c) { + if ( + ('fixed' === this.offsetParentCssPosition && + (this.offset.parent = this._getParentOffset()), + (this.position = this._generatePosition(b)), + (this.positionAbs = this._convertPositionTo('absolute')), + !c) + ) { + var d = this._uiHash() + if (this._trigger('drag', b, d) === !1) return this._mouseUp({}), !1 + this.position = d.position + } + return ( + (this.options.axis && 'y' === this.options.axis) || + (this.helper[0].style.left = this.position.left + 'px'), + (this.options.axis && 'x' === this.options.axis) || + (this.helper[0].style.top = this.position.top + 'px'), + a.ui.ddmanager && a.ui.ddmanager.drag(this, b), + !1 + ) + }, + _mouseStop: function (b) { + var c = this, + d = !1 + return ( + a.ui.ddmanager && + !this.options.dropBehaviour && + (d = a.ui.ddmanager.drop(this, b)), + this.dropped && ((d = this.dropped), (this.dropped = !1)), + !( + 'original' === this.options.helper && + !a.contains(this.element[0].ownerDocument, this.element[0]) + ) && + (('invalid' === this.options.revert && !d) || + ('valid' === this.options.revert && d) || + this.options.revert === !0 || + (a.isFunction(this.options.revert) && + this.options.revert.call(this.element, d)) + ? a(this.helper).animate( + this.originalPosition, + parseInt(this.options.revertDuration, 10), + function () { + c._trigger('stop', b) !== !1 && c._clear() + } + ) + : this._trigger('stop', b) !== !1 && this._clear(), + !1) + ) + }, + _mouseUp: function (b) { + return ( + a('div.ui-draggable-iframeFix').each(function () { + this.parentNode.removeChild(this) + }), + a.ui.ddmanager && a.ui.ddmanager.dragStop(this, b), + a.ui.mouse.prototype._mouseUp.call(this, b) + ) + }, + cancel: function () { + return ( + this.helper.is('.ui-draggable-dragging') + ? this._mouseUp({}) + : this._clear(), + this + ) + }, + _getHandle: function (b) { + return ( + !this.options.handle || + !!a(b.target).closest(this.element.find(this.options.handle)).length + ) + }, + _createHelper: function (b) { + var c = this.options, + d = a.isFunction(c.helper) + ? a(c.helper.apply(this.element[0], [b])) + : 'clone' === c.helper + ? this.element.clone().removeAttr('id') + : this.element + return ( + d.parents('body').length || + d.appendTo( + 'parent' === c.appendTo ? this.element[0].parentNode : c.appendTo + ), + d[0] === this.element[0] || + /(fixed|absolute)/.test(d.css('position')) || + d.css('position', 'absolute'), + d + ) + }, + _adjustOffsetFromHelper: function (b) { + 'string' == typeof b && (b = b.split(' ')), + a.isArray(b) && (b = { left: +b[0], top: +b[1] || 0 }), + 'left' in b && (this.offset.click.left = b.left + this.margins.left), + 'right' in b && + (this.offset.click.left = + this.helperProportions.width - b.right + this.margins.left), + 'top' in b && (this.offset.click.top = b.top + this.margins.top), + 'bottom' in b && + (this.offset.click.top = + this.helperProportions.height - b.bottom + this.margins.top) + }, + _getParentOffset: function () { + var b = this.offsetParent.offset() + return ( + 'absolute' === this.cssPosition && + this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0]) && + ((b.left += this.scrollParent.scrollLeft()), + (b.top += this.scrollParent.scrollTop())), + (this.offsetParent[0] === document.body || + (this.offsetParent[0].tagName && + 'html' === this.offsetParent[0].tagName.toLowerCase() && + a.ui.ie)) && + (b = { top: 0, left: 0 }), + { + top: + b.top + + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), + left: + b.left + + (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), + } + ) + }, + _getRelativeOffset: function () { + if ('relative' === this.cssPosition) { + var a = this.element.position() + return { + top: + a.top - + (parseInt(this.helper.css('top'), 10) || 0) + + this.scrollParent.scrollTop(), + left: + a.left - + (parseInt(this.helper.css('left'), 10) || 0) + + this.scrollParent.scrollLeft(), + } + } + return { top: 0, left: 0 } + }, + _cacheMargins: function () { + this.margins = { + left: parseInt(this.element.css('marginLeft'), 10) || 0, + top: parseInt(this.element.css('marginTop'), 10) || 0, + right: parseInt(this.element.css('marginRight'), 10) || 0, + bottom: parseInt(this.element.css('marginBottom'), 10) || 0, + } + }, + _cacheHelperProportions: function () { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight(), + } + }, + _setContainment: function () { + var b, + c, + d, + e = this.options + return e.containment + ? 'window' === e.containment + ? void (this.containment = [ + a(window).scrollLeft() - + this.offset.relative.left - + this.offset.parent.left, + a(window).scrollTop() - + this.offset.relative.top - + this.offset.parent.top, + a(window).scrollLeft() + + a(window).width() - + this.helperProportions.width - + this.margins.left, + a(window).scrollTop() + + (a(window).height() || + document.body.parentNode.scrollHeight) - + this.helperProportions.height - + this.margins.top, + ]) + : 'document' === e.containment + ? void (this.containment = [ + 0, + 0, + a(document).width() - + this.helperProportions.width - + this.margins.left, + (a(document).height() || + document.body.parentNode.scrollHeight) - + this.helperProportions.height - + this.margins.top, + ]) + : e.containment.constructor === Array + ? void (this.containment = e.containment) + : ('parent' === e.containment && + (e.containment = this.helper[0].parentNode), + (c = a(e.containment)), + (d = c[0]), + void ( + d && + ((b = 'hidden' !== c.css('overflow')), + (this.containment = [ + (parseInt(c.css('borderLeftWidth'), 10) || 0) + + (parseInt(c.css('paddingLeft'), 10) || 0), + (parseInt(c.css('borderTopWidth'), 10) || 0) + + (parseInt(c.css('paddingTop'), 10) || 0), + (b ? Math.max(d.scrollWidth, d.offsetWidth) : d.offsetWidth) - + (parseInt(c.css('borderRightWidth'), 10) || 0) - + (parseInt(c.css('paddingRight'), 10) || 0) - + this.helperProportions.width - + this.margins.left - + this.margins.right, + (b + ? Math.max(d.scrollHeight, d.offsetHeight) + : d.offsetHeight) - + (parseInt(c.css('borderBottomWidth'), 10) || 0) - + (parseInt(c.css('paddingBottom'), 10) || 0) - + this.helperProportions.height - + this.margins.top - + this.margins.bottom, + ]), + (this.relative_container = c)) + )) + : void (this.containment = null) + }, + _convertPositionTo: function (b, c) { + c || (c = this.position) + var d = 'absolute' === b ? 1 : -1, + e = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent + return ( + this.offset.scroll || + (this.offset.scroll = { top: e.scrollTop(), left: e.scrollLeft() }), + { + top: + c.top + + this.offset.relative.top * d + + this.offset.parent.top * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : this.offset.scroll.top) * + d, + left: + c.left + + this.offset.relative.left * d + + this.offset.parent.left * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : this.offset.scroll.left) * + d, + } + ) + }, + _generatePosition: function (b) { + var c, + d, + e, + f, + g = this.options, + h = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent, + i = b.pageX, + j = b.pageY + return ( + this.offset.scroll || + (this.offset.scroll = { top: h.scrollTop(), left: h.scrollLeft() }), + this.originalPosition && + (this.containment && + (this.relative_container + ? ((d = this.relative_container.offset()), + (c = [ + this.containment[0] + d.left, + this.containment[1] + d.top, + this.containment[2] + d.left, + this.containment[3] + d.top, + ])) + : (c = this.containment), + b.pageX - this.offset.click.left < c[0] && + (i = c[0] + this.offset.click.left), + b.pageY - this.offset.click.top < c[1] && + (j = c[1] + this.offset.click.top), + b.pageX - this.offset.click.left > c[2] && + (i = c[2] + this.offset.click.left), + b.pageY - this.offset.click.top > c[3] && + (j = c[3] + this.offset.click.top)), + g.grid && + ((e = g.grid[1] + ? this.originalPageY + + Math.round((j - this.originalPageY) / g.grid[1]) * g.grid[1] + : this.originalPageY), + (j = c + ? e - this.offset.click.top >= c[1] || + e - this.offset.click.top > c[3] + ? e + : e - this.offset.click.top >= c[1] + ? e - g.grid[1] + : e + g.grid[1] + : e), + (f = g.grid[0] + ? this.originalPageX + + Math.round((i - this.originalPageX) / g.grid[0]) * g.grid[0] + : this.originalPageX), + (i = c + ? f - this.offset.click.left >= c[0] || + f - this.offset.click.left > c[2] + ? f + : f - this.offset.click.left >= c[0] + ? f - g.grid[0] + : f + g.grid[0] + : f))), + { + top: + j - + this.offset.click.top - + this.offset.relative.top - + this.offset.parent.top + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : this.offset.scroll.top), + left: + i - + this.offset.click.left - + this.offset.relative.left - + this.offset.parent.left + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : this.offset.scroll.left), + } + ) + }, + _clear: function () { + this.helper.removeClass('ui-draggable-dragging'), + this.helper[0] === this.element[0] || + this.cancelHelperRemoval || + this.helper.remove(), + (this.helper = null), + (this.cancelHelperRemoval = !1) + }, + _trigger: function (b, c, d) { + return ( + (d = d || this._uiHash()), + a.ui.plugin.call(this, b, [c, d]), + 'drag' === b && + (this.positionAbs = this._convertPositionTo('absolute')), + a.Widget.prototype._trigger.call(this, b, c, d) + ) + }, + plugins: {}, + _uiHash: function () { + return { + helper: this.helper, + position: this.position, + originalPosition: this.originalPosition, + offset: this.positionAbs, + } + }, + }), + a.ui.plugin.add('draggable', 'connectToSortable', { + start: function (b, c) { + var d = a(this).data('ui-draggable'), + e = d.options, + f = a.extend({}, c, { item: d.element }) + ;(d.sortables = []), + a(e.connectToSortable).each(function () { + var c = a.data(this, 'ui-sortable') + c && + !c.options.disabled && + (d.sortables.push({ + instance: c, + shouldRevert: c.options.revert, + }), + c.refreshPositions(), + c._trigger('activate', b, f)) + }) + }, + stop: function (b, c) { + var d = a(this).data('ui-draggable'), + e = a.extend({}, c, { item: d.element }) + a.each(d.sortables, function () { + this.instance.isOver + ? ((this.instance.isOver = 0), + (d.cancelHelperRemoval = !0), + (this.instance.cancelHelperRemoval = !1), + this.shouldRevert && + (this.instance.options.revert = this.shouldRevert), + this.instance._mouseStop(b), + (this.instance.options.helper = this.instance.options._helper), + 'original' === d.options.helper && + this.instance.currentItem.css({ top: 'auto', left: 'auto' })) + : ((this.instance.cancelHelperRemoval = !1), + this.instance._trigger('deactivate', b, e)) + }) + }, + drag: function (b, c) { + var d = a(this).data('ui-draggable'), + e = this + a.each(d.sortables, function () { + var f = !1, + g = this + ;(this.instance.positionAbs = d.positionAbs), + (this.instance.helperProportions = d.helperProportions), + (this.instance.offset.click = d.offset.click), + this.instance._intersectsWith(this.instance.containerCache) && + ((f = !0), + a.each(d.sortables, function () { + return ( + (this.instance.positionAbs = d.positionAbs), + (this.instance.helperProportions = d.helperProportions), + (this.instance.offset.click = d.offset.click), + this !== g && + this.instance._intersectsWith( + this.instance.containerCache + ) && + a.contains( + g.instance.element[0], + this.instance.element[0] + ) && + (f = !1), + f + ) + })), + f + ? (this.instance.isOver || + ((this.instance.isOver = 1), + (this.instance.currentItem = a(e) + .clone() + .removeAttr('id') + .appendTo(this.instance.element) + .data('ui-sortable-item', !0)), + (this.instance.options._helper = + this.instance.options.helper), + (this.instance.options.helper = function () { + return c.helper[0] + }), + (b.target = this.instance.currentItem[0]), + this.instance._mouseCapture(b, !0), + this.instance._mouseStart(b, !0, !0), + (this.instance.offset.click.top = d.offset.click.top), + (this.instance.offset.click.left = d.offset.click.left), + (this.instance.offset.parent.left -= + d.offset.parent.left - this.instance.offset.parent.left), + (this.instance.offset.parent.top -= + d.offset.parent.top - this.instance.offset.parent.top), + d._trigger('toSortable', b), + (d.dropped = this.instance.element), + (d.currentItem = d.element), + (this.instance.fromOutside = d)), + this.instance.currentItem && this.instance._mouseDrag(b)) + : this.instance.isOver && + ((this.instance.isOver = 0), + (this.instance.cancelHelperRemoval = !0), + (this.instance.options.revert = !1), + this.instance._trigger( + 'out', + b, + this.instance._uiHash(this.instance) + ), + this.instance._mouseStop(b, !0), + (this.instance.options.helper = + this.instance.options._helper), + this.instance.currentItem.remove(), + this.instance.placeholder && + this.instance.placeholder.remove(), + d._trigger('fromSortable', b), + (d.dropped = !1)) + }) + }, + }), + a.ui.plugin.add('draggable', 'cursor', { + start: function () { + var b = a('body'), + c = a(this).data('ui-draggable').options + b.css('cursor') && (c._cursor = b.css('cursor')), + b.css('cursor', c.cursor) + }, + stop: function () { + var b = a(this).data('ui-draggable').options + b._cursor && a('body').css('cursor', b._cursor) + }, + }), + a.ui.plugin.add('draggable', 'opacity', { + start: function (b, c) { + var d = a(c.helper), + e = a(this).data('ui-draggable').options + d.css('opacity') && (e._opacity = d.css('opacity')), + d.css('opacity', e.opacity) + }, + stop: function (b, c) { + var d = a(this).data('ui-draggable').options + d._opacity && a(c.helper).css('opacity', d._opacity) + }, + }), + a.ui.plugin.add('draggable', 'scroll', { + start: function () { + var b = a(this).data('ui-draggable') + b.scrollParent[0] !== document && + 'HTML' !== b.scrollParent[0].tagName && + (b.overflowOffset = b.scrollParent.offset()) + }, + drag: function (b) { + var c = a(this).data('ui-draggable'), + d = c.options, + e = !1 + c.scrollParent[0] !== document && 'HTML' !== c.scrollParent[0].tagName + ? ((d.axis && 'x' === d.axis) || + (c.overflowOffset.top + + c.scrollParent[0].offsetHeight - + b.pageY < + d.scrollSensitivity + ? (c.scrollParent[0].scrollTop = e = + c.scrollParent[0].scrollTop + d.scrollSpeed) + : b.pageY - c.overflowOffset.top < d.scrollSensitivity && + (c.scrollParent[0].scrollTop = e = + c.scrollParent[0].scrollTop - d.scrollSpeed)), + (d.axis && 'y' === d.axis) || + (c.overflowOffset.left + + c.scrollParent[0].offsetWidth - + b.pageX < + d.scrollSensitivity + ? (c.scrollParent[0].scrollLeft = e = + c.scrollParent[0].scrollLeft + d.scrollSpeed) + : b.pageX - c.overflowOffset.left < d.scrollSensitivity && + (c.scrollParent[0].scrollLeft = e = + c.scrollParent[0].scrollLeft - d.scrollSpeed))) + : ((d.axis && 'x' === d.axis) || + (b.pageY - a(document).scrollTop() < d.scrollSensitivity + ? (e = a(document).scrollTop( + a(document).scrollTop() - d.scrollSpeed + )) + : a(window).height() - (b.pageY - a(document).scrollTop()) < + d.scrollSensitivity && + (e = a(document).scrollTop( + a(document).scrollTop() + d.scrollSpeed + ))), + (d.axis && 'y' === d.axis) || + (b.pageX - a(document).scrollLeft() < d.scrollSensitivity + ? (e = a(document).scrollLeft( + a(document).scrollLeft() - d.scrollSpeed + )) + : a(window).width() - (b.pageX - a(document).scrollLeft()) < + d.scrollSensitivity && + (e = a(document).scrollLeft( + a(document).scrollLeft() + d.scrollSpeed + )))), + e !== !1 && + a.ui.ddmanager && + !d.dropBehaviour && + a.ui.ddmanager.prepareOffsets(c, b) + }, + }), + a.ui.plugin.add('draggable', 'snap', { + start: function () { + var b = a(this).data('ui-draggable'), + c = b.options + ;(b.snapElements = []), + a( + c.snap.constructor !== String + ? c.snap.items || ':data(ui-draggable)' + : c.snap + ).each(function () { + var c = a(this), + d = c.offset() + this !== b.element[0] && + b.snapElements.push({ + item: this, + width: c.outerWidth(), + height: c.outerHeight(), + top: d.top, + left: d.left, + }) + }) + }, + drag: function (b, c) { + var d, + e, + f, + g, + h, + i, + j, + k, + l, + m, + n = a(this).data('ui-draggable'), + o = n.options, + p = o.snapTolerance, + q = c.offset.left, + r = q + n.helperProportions.width, + s = c.offset.top, + t = s + n.helperProportions.height + for (l = n.snapElements.length - 1; l >= 0; l--) + (h = n.snapElements[l].left), + (i = h + n.snapElements[l].width), + (j = n.snapElements[l].top), + (k = j + n.snapElements[l].height), + r < h - p || + q > i + p || + t < j - p || + s > k + p || + !a.contains( + n.snapElements[l].item.ownerDocument, + n.snapElements[l].item + ) + ? (n.snapElements[l].snapping && + n.options.snap.release && + n.options.snap.release.call( + n.element, + b, + a.extend(n._uiHash(), { + snapItem: n.snapElements[l].item, + }) + ), + (n.snapElements[l].snapping = !1)) + : ('inner' !== o.snapMode && + ((d = Math.abs(j - t) <= p), + (e = Math.abs(k - s) <= p), + (f = Math.abs(h - r) <= p), + (g = Math.abs(i - q) <= p), + d && + (c.position.top = + n._convertPositionTo('relative', { + top: j - n.helperProportions.height, + left: 0, + }).top - n.margins.top), + e && + (c.position.top = + n._convertPositionTo('relative', { top: k, left: 0 }) + .top - n.margins.top), + f && + (c.position.left = + n._convertPositionTo('relative', { + top: 0, + left: h - n.helperProportions.width, + }).left - n.margins.left), + g && + (c.position.left = + n._convertPositionTo('relative', { top: 0, left: i }) + .left - n.margins.left)), + (m = d || e || f || g), + 'outer' !== o.snapMode && + ((d = Math.abs(j - s) <= p), + (e = Math.abs(k - t) <= p), + (f = Math.abs(h - q) <= p), + (g = Math.abs(i - r) <= p), + d && + (c.position.top = + n._convertPositionTo('relative', { top: j, left: 0 }) + .top - n.margins.top), + e && + (c.position.top = + n._convertPositionTo('relative', { + top: k - n.helperProportions.height, + left: 0, + }).top - n.margins.top), + f && + (c.position.left = + n._convertPositionTo('relative', { top: 0, left: h }) + .left - n.margins.left), + g && + (c.position.left = + n._convertPositionTo('relative', { + top: 0, + left: i - n.helperProportions.width, + }).left - n.margins.left)), + !n.snapElements[l].snapping && + (d || e || f || g || m) && + n.options.snap.snap && + n.options.snap.snap.call( + n.element, + b, + a.extend(n._uiHash(), { + snapItem: n.snapElements[l].item, + }) + ), + (n.snapElements[l].snapping = d || e || f || g || m)) + }, + }), + a.ui.plugin.add('draggable', 'stack', { + start: function () { + var b, + c = this.data('ui-draggable').options, + d = a.makeArray(a(c.stack)).sort(function (b, c) { + return ( + (parseInt(a(b).css('zIndex'), 10) || 0) - + (parseInt(a(c).css('zIndex'), 10) || 0) + ) + }) + d.length && + ((b = parseInt(a(d[0]).css('zIndex'), 10) || 0), + a(d).each(function (c) { + a(this).css('zIndex', b + c) + }), + this.css('zIndex', b + d.length)) + }, + }), + a.ui.plugin.add('draggable', 'zIndex', { + start: function (b, c) { + var d = a(c.helper), + e = a(this).data('ui-draggable').options + d.css('zIndex') && (e._zIndex = d.css('zIndex')), + d.css('zIndex', e.zIndex) + }, + stop: function (b, c) { + var d = a(this).data('ui-draggable').options + d._zIndex && a(c.helper).css('zIndex', d._zIndex) + }, + }) + })(jQuery), + (function (a, b) { + function c(a, b, c) { + return a > b && a < b + c + } + a.widget('ui.droppable', { + version: '1.10.3', + widgetEventPrefix: 'drop', + options: { + accept: '*', + activeClass: !1, + addClasses: !0, + greedy: !1, + hoverClass: !1, + scope: 'default', + tolerance: 'intersect', + activate: null, + deactivate: null, + drop: null, + out: null, + over: null, + }, + _create: function () { + var b = this.options, + c = b.accept + ;(this.isover = !1), + (this.isout = !0), + (this.accept = a.isFunction(c) + ? c + : function (a) { + return a.is(c) + }), + (this.proportions = { + width: this.element[0].offsetWidth, + height: this.element[0].offsetHeight, + }), + (a.ui.ddmanager.droppables[b.scope] = + a.ui.ddmanager.droppables[b.scope] || []), + a.ui.ddmanager.droppables[b.scope].push(this), + b.addClasses && this.element.addClass('ui-droppable') + }, + _destroy: function () { + for ( + var b = 0, c = a.ui.ddmanager.droppables[this.options.scope]; + b < c.length; + b++ + ) + c[b] === this && c.splice(b, 1) + this.element.removeClass('ui-droppable ui-droppable-disabled') + }, + _setOption: function (b, c) { + 'accept' === b && + (this.accept = a.isFunction(c) + ? c + : function (a) { + return a.is(c) + }), + a.Widget.prototype._setOption.apply(this, arguments) + }, + _activate: function (b) { + var c = a.ui.ddmanager.current + this.options.activeClass && + this.element.addClass(this.options.activeClass), + c && this._trigger('activate', b, this.ui(c)) + }, + _deactivate: function (b) { + var c = a.ui.ddmanager.current + this.options.activeClass && + this.element.removeClass(this.options.activeClass), + c && this._trigger('deactivate', b, this.ui(c)) + }, + _over: function (b) { + var c = a.ui.ddmanager.current + c && + (c.currentItem || c.element)[0] !== this.element[0] && + this.accept.call(this.element[0], c.currentItem || c.element) && + (this.options.hoverClass && + this.element.addClass(this.options.hoverClass), + this._trigger('over', b, this.ui(c))) + }, + _out: function (b) { + var c = a.ui.ddmanager.current + c && + (c.currentItem || c.element)[0] !== this.element[0] && + this.accept.call(this.element[0], c.currentItem || c.element) && + (this.options.hoverClass && + this.element.removeClass(this.options.hoverClass), + this._trigger('out', b, this.ui(c))) + }, + _drop: function (b, c) { + var d = c || a.ui.ddmanager.current, + e = !1 + return ( + !(!d || (d.currentItem || d.element)[0] === this.element[0]) && + (this.element + .find(':data(ui-droppable)') + .not('.ui-draggable-dragging') + .each(function () { + var b = a.data(this, 'ui-droppable') + if ( + b.options.greedy && + !b.options.disabled && + b.options.scope === d.options.scope && + b.accept.call(b.element[0], d.currentItem || d.element) && + a.ui.intersect( + d, + a.extend(b, { offset: b.element.offset() }), + b.options.tolerance + ) + ) + return (e = !0), !1 + }), + !e && + !!this.accept.call(this.element[0], d.currentItem || d.element) && + (this.options.activeClass && + this.element.removeClass(this.options.activeClass), + this.options.hoverClass && + this.element.removeClass(this.options.hoverClass), + this._trigger('drop', b, this.ui(d)), + this.element)) + ) + }, + ui: function (a) { + return { + draggable: a.currentItem || a.element, + helper: a.helper, + position: a.position, + offset: a.positionAbs, + } + }, + }), + (a.ui.intersect = function (a, b, d) { + if (!b.offset) return !1 + var e, + f, + g = (a.positionAbs || a.position.absolute).left, + h = g + a.helperProportions.width, + i = (a.positionAbs || a.position.absolute).top, + j = i + a.helperProportions.height, + k = b.offset.left, + l = k + b.proportions.width, + m = b.offset.top, + n = m + b.proportions.height + switch (d) { + case 'fit': + return k <= g && h <= l && m <= i && j <= n + case 'intersect': + return ( + k < g + a.helperProportions.width / 2 && + h - a.helperProportions.width / 2 < l && + m < i + a.helperProportions.height / 2 && + j - a.helperProportions.height / 2 < n + ) + case 'pointer': + return ( + (e = + (a.positionAbs || a.position.absolute).left + + (a.clickOffset || a.offset.click).left), + (f = + (a.positionAbs || a.position.absolute).top + + (a.clickOffset || a.offset.click).top), + c(f, m, b.proportions.height) && c(e, k, b.proportions.width) + ) + case 'touch': + return ( + ((i >= m && i <= n) || (j >= m && j <= n) || (i < m && j > n)) && + ((g >= k && g <= l) || (h >= k && h <= l) || (g < k && h > l)) + ) + default: + return !1 + } + }), + (a.ui.ddmanager = { + current: null, + droppables: { default: [] }, + prepareOffsets: function (b, c) { + var d, + e, + f = a.ui.ddmanager.droppables[b.options.scope] || [], + g = c ? c.type : null, + h = (b.currentItem || b.element) + .find(':data(ui-droppable)') + .addBack() + a: for (d = 0; d < f.length; d++) + if ( + !( + f[d].options.disabled || + (b && + !f[d].accept.call( + f[d].element[0], + b.currentItem || b.element + )) + ) + ) { + for (e = 0; e < h.length; e++) + if (h[e] === f[d].element[0]) { + f[d].proportions.height = 0 + continue a + } + ;(f[d].visible = 'none' !== f[d].element.css('display')), + f[d].visible && + ('mousedown' === g && f[d]._activate.call(f[d], c), + (f[d].offset = f[d].element.offset()), + (f[d].proportions = { + width: f[d].element[0].offsetWidth, + height: f[d].element[0].offsetHeight, + })) + } + }, + drop: function (b, c) { + var d = !1 + return ( + a.each( + (a.ui.ddmanager.droppables[b.options.scope] || []).slice(), + function () { + this.options && + (!this.options.disabled && + this.visible && + a.ui.intersect(b, this, this.options.tolerance) && + (d = this._drop.call(this, c) || d), + !this.options.disabled && + this.visible && + this.accept.call( + this.element[0], + b.currentItem || b.element + ) && + ((this.isout = !0), + (this.isover = !1), + this._deactivate.call(this, c))) + } + ), + d + ) + }, + dragStart: function (b, c) { + b.element.parentsUntil('body').bind('scroll.droppable', function () { + b.options.refreshPositions || a.ui.ddmanager.prepareOffsets(b, c) + }) + }, + drag: function (b, c) { + b.options.refreshPositions && a.ui.ddmanager.prepareOffsets(b, c), + a.each( + a.ui.ddmanager.droppables[b.options.scope] || [], + function () { + if ( + !this.options.disabled && + !this.greedyChild && + this.visible + ) { + var d, + e, + f, + g = a.ui.intersect(b, this, this.options.tolerance), + h = + !g && this.isover + ? 'isout' + : g && !this.isover + ? 'isover' + : null + h && + (this.options.greedy && + ((e = this.options.scope), + (f = this.element + .parents(':data(ui-droppable)') + .filter(function () { + return ( + a.data(this, 'ui-droppable').options.scope === e + ) + })), + f.length && + ((d = a.data(f[0], 'ui-droppable')), + (d.greedyChild = 'isover' === h))), + d && + 'isover' === h && + ((d.isover = !1), (d.isout = !0), d._out.call(d, c)), + (this[h] = !0), + (this['isout' === h ? 'isover' : 'isout'] = !1), + this['isover' === h ? '_over' : '_out'].call(this, c), + d && + 'isout' === h && + ((d.isout = !1), (d.isover = !0), d._over.call(d, c))) + } + } + ) + }, + dragStop: function (b, c) { + b.element.parentsUntil('body').unbind('scroll.droppable'), + b.options.refreshPositions || a.ui.ddmanager.prepareOffsets(b, c) + }, + }) + })(jQuery), + (function (a, b) { + function c(a) { + return parseInt(a, 10) || 0 + } + function d(a) { + return !isNaN(parseInt(a, 10)) + } + a.widget('ui.resizable', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'resize', + options: { + alsoResize: !1, + animate: !1, + animateDuration: 'slow', + animateEasing: 'swing', + aspectRatio: !1, + autoHide: !1, + containment: !1, + ghost: !1, + grid: !1, + handles: 'e,s,se', + helper: !1, + maxHeight: null, + maxWidth: null, + minHeight: 10, + minWidth: 10, + zIndex: 90, + resize: null, + start: null, + stop: null, + }, + _create: function () { + var b, + c, + d, + e, + f, + g = this, + h = this.options + if ( + (this.element.addClass('ui-resizable'), + a.extend(this, { + _aspectRatio: !!h.aspectRatio, + aspectRatio: h.aspectRatio, + originalElement: this.element, + _proportionallyResizeElements: [], + _helper: + h.helper || h.ghost || h.animate + ? h.helper || 'ui-resizable-helper' + : null, + }), + this.element[0].nodeName.match( + /canvas|textarea|input|select|button|img/i + ) && + (this.element.wrap( + a("
          ").css( + { + position: this.element.css('position'), + width: this.element.outerWidth(), + height: this.element.outerHeight(), + top: this.element.css('top'), + left: this.element.css('left'), + } + ) + ), + (this.element = this.element + .parent() + .data('ui-resizable', this.element.data('ui-resizable'))), + (this.elementIsWrapper = !0), + this.element.css({ + marginLeft: this.originalElement.css('marginLeft'), + marginTop: this.originalElement.css('marginTop'), + marginRight: this.originalElement.css('marginRight'), + marginBottom: this.originalElement.css('marginBottom'), + }), + this.originalElement.css({ + marginLeft: 0, + marginTop: 0, + marginRight: 0, + marginBottom: 0, + }), + (this.originalResizeStyle = this.originalElement.css('resize')), + this.originalElement.css('resize', 'none'), + this._proportionallyResizeElements.push( + this.originalElement.css({ + position: 'static', + zoom: 1, + display: 'block', + }) + ), + this.originalElement.css({ + margin: this.originalElement.css('margin'), + }), + this._proportionallyResize()), + (this.handles = + h.handles || + (a('.ui-resizable-handle', this.element).length + ? { + n: '.ui-resizable-n', + e: '.ui-resizable-e', + s: '.ui-resizable-s', + w: '.ui-resizable-w', + se: '.ui-resizable-se', + sw: '.ui-resizable-sw', + ne: '.ui-resizable-ne', + nw: '.ui-resizable-nw', + } + : 'e,s,se')), + this.handles.constructor === String) + ) + for ( + 'all' === this.handles && (this.handles = 'n,e,s,w,se,sw,ne,nw'), + b = this.handles.split(','), + this.handles = {}, + c = 0; + c < b.length; + c++ + ) + (d = a.trim(b[c])), + (f = 'ui-resizable-' + d), + (e = a("
          ")), + e.css({ zIndex: h.zIndex }), + 'se' === d && e.addClass('ui-icon ui-icon-gripsmall-diagonal-se'), + (this.handles[d] = '.ui-resizable-' + d), + this.element.append(e) + ;(this._renderAxis = function (b) { + var c, d, e, f + b = b || this.element + for (c in this.handles) + this.handles[c].constructor === String && + (this.handles[c] = a(this.handles[c], this.element).show()), + this.elementIsWrapper && + this.originalElement[0].nodeName.match( + /textarea|input|select|button/i + ) && + ((d = a(this.handles[c], this.element)), + (f = /sw|ne|nw|se|n|s/.test(c) + ? d.outerHeight() + : d.outerWidth()), + (e = [ + 'padding', + /ne|nw|n/.test(c) + ? 'Top' + : /se|sw|s/.test(c) + ? 'Bottom' + : /^e$/.test(c) + ? 'Right' + : 'Left', + ].join('')), + b.css(e, f), + this._proportionallyResize()), + a(this.handles[c]).length + }), + this._renderAxis(this.element), + (this._handles = a( + '.ui-resizable-handle', + this.element + ).disableSelection()), + this._handles.mouseover(function () { + g.resizing || + (this.className && + (e = this.className.match( + /ui-resizable-(se|sw|ne|nw|n|e|s|w)/i + )), + (g.axis = e && e[1] ? e[1] : 'se')) + }), + h.autoHide && + (this._handles.hide(), + a(this.element) + .addClass('ui-resizable-autohide') + .mouseenter(function () { + h.disabled || + (a(this).removeClass('ui-resizable-autohide'), + g._handles.show()) + }) + .mouseleave(function () { + h.disabled || + g.resizing || + (a(this).addClass('ui-resizable-autohide'), g._handles.hide()) + })), + this._mouseInit() + }, + _destroy: function () { + this._mouseDestroy() + var b, + c = function (b) { + a(b) + .removeClass( + 'ui-resizable ui-resizable-disabled ui-resizable-resizing' + ) + .removeData('resizable') + .removeData('ui-resizable') + .unbind('.resizable') + .find('.ui-resizable-handle') + .remove() + } + return ( + this.elementIsWrapper && + (c(this.element), + (b = this.element), + this.originalElement + .css({ + position: b.css('position'), + width: b.outerWidth(), + height: b.outerHeight(), + top: b.css('top'), + left: b.css('left'), + }) + .insertAfter(b), + b.remove()), + this.originalElement.css('resize', this.originalResizeStyle), + c(this.originalElement), + this + ) + }, + _mouseCapture: function (b) { + var c, + d, + e = !1 + for (c in this.handles) + (d = a(this.handles[c])[0]), + (d === b.target || a.contains(d, b.target)) && (e = !0) + return !this.options.disabled && e + }, + _mouseStart: function (b) { + var d, + e, + f, + g = this.options, + h = this.element.position(), + i = this.element + return ( + (this.resizing = !0), + /absolute/.test(i.css('position')) + ? i.css({ + position: 'absolute', + top: i.css('top'), + left: i.css('left'), + }) + : i.is('.ui-draggable') && + i.css({ position: 'absolute', top: h.top, left: h.left }), + this._renderProxy(), + (d = c(this.helper.css('left'))), + (e = c(this.helper.css('top'))), + g.containment && + ((d += a(g.containment).scrollLeft() || 0), + (e += a(g.containment).scrollTop() || 0)), + (this.offset = this.helper.offset()), + (this.position = { left: d, top: e }), + (this.size = this._helper + ? { width: i.outerWidth(), height: i.outerHeight() } + : { width: i.width(), height: i.height() }), + (this.originalSize = this._helper + ? { width: i.outerWidth(), height: i.outerHeight() } + : { width: i.width(), height: i.height() }), + (this.originalPosition = { left: d, top: e }), + (this.sizeDiff = { + width: i.outerWidth() - i.width(), + height: i.outerHeight() - i.height(), + }), + (this.originalMousePosition = { left: b.pageX, top: b.pageY }), + (this.aspectRatio = + 'number' == typeof g.aspectRatio + ? g.aspectRatio + : this.originalSize.width / this.originalSize.height || 1), + (f = a('.ui-resizable-' + this.axis).css('cursor')), + a('body').css('cursor', 'auto' === f ? this.axis + '-resize' : f), + i.addClass('ui-resizable-resizing'), + this._propagate('start', b), + !0 + ) + }, + _mouseDrag: function (b) { + var c, + d = this.helper, + e = {}, + f = this.originalMousePosition, + g = this.axis, + h = this.position.top, + i = this.position.left, + j = this.size.width, + k = this.size.height, + l = b.pageX - f.left || 0, + m = b.pageY - f.top || 0, + n = this._change[g] + return ( + !!n && + ((c = n.apply(this, [b, l, m])), + this._updateVirtualBoundaries(b.shiftKey), + (this._aspectRatio || b.shiftKey) && (c = this._updateRatio(c, b)), + (c = this._respectSize(c, b)), + this._updateCache(c), + this._propagate('resize', b), + this.position.top !== h && (e.top = this.position.top + 'px'), + this.position.left !== i && (e.left = this.position.left + 'px'), + this.size.width !== j && (e.width = this.size.width + 'px'), + this.size.height !== k && (e.height = this.size.height + 'px'), + d.css(e), + !this._helper && + this._proportionallyResizeElements.length && + this._proportionallyResize(), + a.isEmptyObject(e) || this._trigger('resize', b, this.ui()), + !1) + ) + }, + _mouseStop: function (b) { + this.resizing = !1 + var c, + d, + e, + f, + g, + h, + i, + j = this.options, + k = this + return ( + this._helper && + ((c = this._proportionallyResizeElements), + (d = c.length && /textarea/i.test(c[0].nodeName)), + (e = d && a.ui.hasScroll(c[0], 'left') ? 0 : k.sizeDiff.height), + (f = d ? 0 : k.sizeDiff.width), + (g = { + width: k.helper.width() - f, + height: k.helper.height() - e, + }), + (h = + parseInt(k.element.css('left'), 10) + + (k.position.left - k.originalPosition.left) || null), + (i = + parseInt(k.element.css('top'), 10) + + (k.position.top - k.originalPosition.top) || null), + j.animate || this.element.css(a.extend(g, { top: i, left: h })), + k.helper.height(k.size.height), + k.helper.width(k.size.width), + this._helper && !j.animate && this._proportionallyResize()), + a('body').css('cursor', 'auto'), + this.element.removeClass('ui-resizable-resizing'), + this._propagate('stop', b), + this._helper && this.helper.remove(), + !1 + ) + }, + _updateVirtualBoundaries: function (a) { + var b, + c, + e, + f, + g, + h = this.options + ;(g = { + minWidth: d(h.minWidth) ? h.minWidth : 0, + maxWidth: d(h.maxWidth) ? h.maxWidth : 1 / 0, + minHeight: d(h.minHeight) ? h.minHeight : 0, + maxHeight: d(h.maxHeight) ? h.maxHeight : 1 / 0, + }), + (this._aspectRatio || a) && + ((b = g.minHeight * this.aspectRatio), + (e = g.minWidth / this.aspectRatio), + (c = g.maxHeight * this.aspectRatio), + (f = g.maxWidth / this.aspectRatio), + b > g.minWidth && (g.minWidth = b), + e > g.minHeight && (g.minHeight = e), + c < g.maxWidth && (g.maxWidth = c), + f < g.maxHeight && (g.maxHeight = f)), + (this._vBoundaries = g) + }, + _updateCache: function (a) { + ;(this.offset = this.helper.offset()), + d(a.left) && (this.position.left = a.left), + d(a.top) && (this.position.top = a.top), + d(a.height) && (this.size.height = a.height), + d(a.width) && (this.size.width = a.width) + }, + _updateRatio: function (a) { + var b = this.position, + c = this.size, + e = this.axis + return ( + d(a.height) + ? (a.width = a.height * this.aspectRatio) + : d(a.width) && (a.height = a.width / this.aspectRatio), + 'sw' === e && + ((a.left = b.left + (c.width - a.width)), (a.top = null)), + 'nw' === e && + ((a.top = b.top + (c.height - a.height)), + (a.left = b.left + (c.width - a.width))), + a + ) + }, + _respectSize: function (a) { + var b = this._vBoundaries, + c = this.axis, + e = d(a.width) && b.maxWidth && b.maxWidth < a.width, + f = d(a.height) && b.maxHeight && b.maxHeight < a.height, + g = d(a.width) && b.minWidth && b.minWidth > a.width, + h = d(a.height) && b.minHeight && b.minHeight > a.height, + i = this.originalPosition.left + this.originalSize.width, + j = this.position.top + this.size.height, + k = /sw|nw|w/.test(c), + l = /nw|ne|n/.test(c) + return ( + g && (a.width = b.minWidth), + h && (a.height = b.minHeight), + e && (a.width = b.maxWidth), + f && (a.height = b.maxHeight), + g && k && (a.left = i - b.minWidth), + e && k && (a.left = i - b.maxWidth), + h && l && (a.top = j - b.minHeight), + f && l && (a.top = j - b.maxHeight), + a.width || a.height || a.left || !a.top + ? a.width || a.height || a.top || !a.left || (a.left = null) + : (a.top = null), + a + ) + }, + _proportionallyResize: function () { + if (this._proportionallyResizeElements.length) { + var a, + b, + c, + d, + e, + f = this.helper || this.element + for (a = 0; a < this._proportionallyResizeElements.length; a++) { + if (((e = this._proportionallyResizeElements[a]), !this.borderDif)) + for ( + this.borderDif = [], + c = [ + e.css('borderTopWidth'), + e.css('borderRightWidth'), + e.css('borderBottomWidth'), + e.css('borderLeftWidth'), + ], + d = [ + e.css('paddingTop'), + e.css('paddingRight'), + e.css('paddingBottom'), + e.css('paddingLeft'), + ], + b = 0; + b < c.length; + b++ + ) + this.borderDif[b] = + (parseInt(c[b], 10) || 0) + (parseInt(d[b], 10) || 0) + e.css({ + height: f.height() - this.borderDif[0] - this.borderDif[2] || 0, + width: f.width() - this.borderDif[1] - this.borderDif[3] || 0, + }) + } + } + }, + _renderProxy: function () { + var b = this.element, + c = this.options + ;(this.elementOffset = b.offset()), + this._helper + ? ((this.helper = + this.helper || a("
          ")), + this.helper + .addClass(this._helper) + .css({ + width: this.element.outerWidth() - 1, + height: this.element.outerHeight() - 1, + position: 'absolute', + left: this.elementOffset.left + 'px', + top: this.elementOffset.top + 'px', + zIndex: ++c.zIndex, + }), + this.helper.appendTo('body').disableSelection()) + : (this.helper = this.element) + }, + _change: { + e: function (a, b) { + return { width: this.originalSize.width + b } + }, + w: function (a, b) { + var c = this.originalSize, + d = this.originalPosition + return { left: d.left + b, width: c.width - b } + }, + n: function (a, b, c) { + var d = this.originalSize, + e = this.originalPosition + return { top: e.top + c, height: d.height - c } + }, + s: function (a, b, c) { + return { height: this.originalSize.height + c } + }, + se: function (b, c, d) { + return a.extend( + this._change.s.apply(this, arguments), + this._change.e.apply(this, [b, c, d]) + ) + }, + sw: function (b, c, d) { + return a.extend( + this._change.s.apply(this, arguments), + this._change.w.apply(this, [b, c, d]) + ) + }, + ne: function (b, c, d) { + return a.extend( + this._change.n.apply(this, arguments), + this._change.e.apply(this, [b, c, d]) + ) + }, + nw: function (b, c, d) { + return a.extend( + this._change.n.apply(this, arguments), + this._change.w.apply(this, [b, c, d]) + ) + }, + }, + _propagate: function (b, c) { + a.ui.plugin.call(this, b, [c, this.ui()]), + 'resize' !== b && this._trigger(b, c, this.ui()) + }, + plugins: {}, + ui: function () { + return { + originalElement: this.originalElement, + element: this.element, + helper: this.helper, + position: this.position, + size: this.size, + originalSize: this.originalSize, + originalPosition: this.originalPosition, + } + }, + }), + a.ui.plugin.add('resizable', 'animate', { + stop: function (b) { + var c = a(this).data('ui-resizable'), + d = c.options, + e = c._proportionallyResizeElements, + f = e.length && /textarea/i.test(e[0].nodeName), + g = f && a.ui.hasScroll(e[0], 'left') ? 0 : c.sizeDiff.height, + h = f ? 0 : c.sizeDiff.width, + i = { width: c.size.width - h, height: c.size.height - g }, + j = + parseInt(c.element.css('left'), 10) + + (c.position.left - c.originalPosition.left) || null, + k = + parseInt(c.element.css('top'), 10) + + (c.position.top - c.originalPosition.top) || null + c.element.animate(a.extend(i, k && j ? { top: k, left: j } : {}), { + duration: d.animateDuration, + easing: d.animateEasing, + step: function () { + var d = { + width: parseInt(c.element.css('width'), 10), + height: parseInt(c.element.css('height'), 10), + top: parseInt(c.element.css('top'), 10), + left: parseInt(c.element.css('left'), 10), + } + e && + e.length && + a(e[0]).css({ width: d.width, height: d.height }), + c._updateCache(d), + c._propagate('resize', b) + }, + }) + }, + }), + a.ui.plugin.add('resizable', 'containment', { + start: function () { + var b, + d, + e, + f, + g, + h, + i, + j = a(this).data('ui-resizable'), + k = j.options, + l = j.element, + m = k.containment, + n = + m instanceof a + ? m.get(0) + : /parent/.test(m) + ? l.parent().get(0) + : m + n && + ((j.containerElement = a(n)), + /document/.test(m) || m === document + ? ((j.containerOffset = { left: 0, top: 0 }), + (j.containerPosition = { left: 0, top: 0 }), + (j.parentData = { + element: a(document), + left: 0, + top: 0, + width: a(document).width(), + height: + a(document).height() || + document.body.parentNode.scrollHeight, + })) + : ((b = a(n)), + (d = []), + a(['Top', 'Right', 'Left', 'Bottom']).each(function (a, e) { + d[a] = c(b.css('padding' + e)) + }), + (j.containerOffset = b.offset()), + (j.containerPosition = b.position()), + (j.containerSize = { + height: b.innerHeight() - d[3], + width: b.innerWidth() - d[1], + }), + (e = j.containerOffset), + (f = j.containerSize.height), + (g = j.containerSize.width), + (h = a.ui.hasScroll(n, 'left') ? n.scrollWidth : g), + (i = a.ui.hasScroll(n) ? n.scrollHeight : f), + (j.parentData = { + element: n, + left: e.left, + top: e.top, + width: h, + height: i, + }))) + }, + resize: function (b) { + var c, + d, + e, + f, + g = a(this).data('ui-resizable'), + h = g.options, + i = g.containerOffset, + j = g.position, + k = g._aspectRatio || b.shiftKey, + l = { top: 0, left: 0 }, + m = g.containerElement + m[0] !== document && /static/.test(m.css('position')) && (l = i), + j.left < (g._helper ? i.left : 0) && + ((g.size.width = + g.size.width + + (g._helper + ? g.position.left - i.left + : g.position.left - l.left)), + k && (g.size.height = g.size.width / g.aspectRatio), + (g.position.left = h.helper ? i.left : 0)), + j.top < (g._helper ? i.top : 0) && + ((g.size.height = + g.size.height + + (g._helper ? g.position.top - i.top : g.position.top)), + k && (g.size.width = g.size.height * g.aspectRatio), + (g.position.top = g._helper ? i.top : 0)), + (g.offset.left = g.parentData.left + g.position.left), + (g.offset.top = g.parentData.top + g.position.top), + (c = Math.abs( + (g._helper ? g.offset.left - l.left : g.offset.left - l.left) + + g.sizeDiff.width + )), + (d = Math.abs( + (g._helper ? g.offset.top - l.top : g.offset.top - i.top) + + g.sizeDiff.height + )), + (e = g.containerElement.get(0) === g.element.parent().get(0)), + (f = /relative|absolute/.test(g.containerElement.css('position'))), + e && f && (c -= g.parentData.left), + c + g.size.width >= g.parentData.width && + ((g.size.width = g.parentData.width - c), + k && (g.size.height = g.size.width / g.aspectRatio)), + d + g.size.height >= g.parentData.height && + ((g.size.height = g.parentData.height - d), + k && (g.size.width = g.size.height * g.aspectRatio)) + }, + stop: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = b.containerOffset, + e = b.containerPosition, + f = b.containerElement, + g = a(b.helper), + h = g.offset(), + i = g.outerWidth() - b.sizeDiff.width, + j = g.outerHeight() - b.sizeDiff.height + b._helper && + !c.animate && + /relative/.test(f.css('position')) && + a(this).css({ + left: h.left - e.left - d.left, + width: i, + height: j, + }), + b._helper && + !c.animate && + /static/.test(f.css('position')) && + a(this).css({ + left: h.left - e.left - d.left, + width: i, + height: j, + }) + }, + }), + a.ui.plugin.add('resizable', 'alsoResize', { + start: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = function (b) { + a(b).each(function () { + var b = a(this) + b.data('ui-resizable-alsoresize', { + width: parseInt(b.width(), 10), + height: parseInt(b.height(), 10), + left: parseInt(b.css('left'), 10), + top: parseInt(b.css('top'), 10), + }) + }) + } + 'object' != typeof c.alsoResize || c.alsoResize.parentNode + ? d(c.alsoResize) + : c.alsoResize.length + ? ((c.alsoResize = c.alsoResize[0]), d(c.alsoResize)) + : a.each(c.alsoResize, function (a) { + d(a) + }) + }, + resize: function (b, c) { + var d = a(this).data('ui-resizable'), + e = d.options, + f = d.originalSize, + g = d.originalPosition, + h = { + height: d.size.height - f.height || 0, + width: d.size.width - f.width || 0, + top: d.position.top - g.top || 0, + left: d.position.left - g.left || 0, + }, + i = function (b, d) { + a(b).each(function () { + var b = a(this), + e = a(this).data('ui-resizable-alsoresize'), + f = {}, + g = + d && d.length + ? d + : b.parents(c.originalElement[0]).length + ? ['width', 'height'] + : ['width', 'height', 'top', 'left'] + a.each(g, function (a, b) { + var c = (e[b] || 0) + (h[b] || 0) + c && c >= 0 && (f[b] = c || null) + }), + b.css(f) + }) + } + 'object' != typeof e.alsoResize || e.alsoResize.nodeType + ? i(e.alsoResize) + : a.each(e.alsoResize, function (a, b) { + i(a, b) + }) + }, + stop: function () { + a(this).removeData('resizable-alsoresize') + }, + }), + a.ui.plugin.add('resizable', 'ghost', { + start: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = b.size + ;(b.ghost = b.originalElement.clone()), + b.ghost + .css({ + opacity: 0.25, + display: 'block', + position: 'relative', + height: d.height, + width: d.width, + margin: 0, + left: 0, + top: 0, + }) + .addClass('ui-resizable-ghost') + .addClass('string' == typeof c.ghost ? c.ghost : ''), + b.ghost.appendTo(b.helper) + }, + resize: function () { + var b = a(this).data('ui-resizable') + b.ghost && + b.ghost.css({ + position: 'relative', + height: b.size.height, + width: b.size.width, + }) + }, + stop: function () { + var b = a(this).data('ui-resizable') + b.ghost && b.helper && b.helper.get(0).removeChild(b.ghost.get(0)) + }, + }), + a.ui.plugin.add('resizable', 'grid', { + resize: function () { + var b = a(this).data('ui-resizable'), + c = b.options, + d = b.size, + e = b.originalSize, + f = b.originalPosition, + g = b.axis, + h = 'number' == typeof c.grid ? [c.grid, c.grid] : c.grid, + i = h[0] || 1, + j = h[1] || 1, + k = Math.round((d.width - e.width) / i) * i, + l = Math.round((d.height - e.height) / j) * j, + m = e.width + k, + n = e.height + l, + o = c.maxWidth && c.maxWidth < m, + p = c.maxHeight && c.maxHeight < n, + q = c.minWidth && c.minWidth > m, + r = c.minHeight && c.minHeight > n + ;(c.grid = h), + q && (m += i), + r && (n += j), + o && (m -= i), + p && (n -= j), + /^(se|s|e)$/.test(g) + ? ((b.size.width = m), (b.size.height = n)) + : /^(ne)$/.test(g) + ? ((b.size.width = m), + (b.size.height = n), + (b.position.top = f.top - l)) + : /^(sw)$/.test(g) + ? ((b.size.width = m), + (b.size.height = n), + (b.position.left = f.left - k)) + : ((b.size.width = m), + (b.size.height = n), + (b.position.top = f.top - l), + (b.position.left = f.left - k)) + }, + }) + })(jQuery), + (function (a, b) { + a.widget('ui.selectable', a.ui.mouse, { + version: '1.10.3', + options: { + appendTo: 'body', + autoRefresh: !0, + distance: 0, + filter: '*', + tolerance: 'touch', + selected: null, + selecting: null, + start: null, + stop: null, + unselected: null, + unselecting: null, + }, + _create: function () { + var b, + c = this + this.element.addClass('ui-selectable'), + (this.dragged = !1), + (this.refresh = function () { + ;(b = a(c.options.filter, c.element[0])), + b.addClass('ui-selectee'), + b.each(function () { + var b = a(this), + c = b.offset() + a.data(this, 'selectable-item', { + element: this, + $element: b, + left: c.left, + top: c.top, + right: c.left + b.outerWidth(), + bottom: c.top + b.outerHeight(), + startselected: !1, + selected: b.hasClass('ui-selected'), + selecting: b.hasClass('ui-selecting'), + unselecting: b.hasClass('ui-unselecting'), + }) + }) + }), + this.refresh(), + (this.selectees = b.addClass('ui-selectee')), + this._mouseInit(), + (this.helper = a("
          ")) + }, + _destroy: function () { + this.selectees.removeClass('ui-selectee').removeData('selectable-item'), + this.element.removeClass('ui-selectable ui-selectable-disabled'), + this._mouseDestroy() + }, + _mouseStart: function (b) { + var c = this, + d = this.options + ;(this.opos = [b.pageX, b.pageY]), + this.options.disabled || + ((this.selectees = a(d.filter, this.element[0])), + this._trigger('start', b), + a(d.appendTo).append(this.helper), + this.helper.css({ + left: b.pageX, + top: b.pageY, + width: 0, + height: 0, + }), + d.autoRefresh && this.refresh(), + this.selectees.filter('.ui-selected').each(function () { + var d = a.data(this, 'selectable-item') + ;(d.startselected = !0), + b.metaKey || + b.ctrlKey || + (d.$element.removeClass('ui-selected'), + (d.selected = !1), + d.$element.addClass('ui-unselecting'), + (d.unselecting = !0), + c._trigger('unselecting', b, { unselecting: d.element })) + }), + a(b.target) + .parents() + .addBack() + .each(function () { + var d, + e = a.data(this, 'selectable-item') + if (e) + return ( + (d = + (!b.metaKey && !b.ctrlKey) || + !e.$element.hasClass('ui-selected')), + e.$element + .removeClass(d ? 'ui-unselecting' : 'ui-selected') + .addClass(d ? 'ui-selecting' : 'ui-unselecting'), + (e.unselecting = !d), + (e.selecting = d), + (e.selected = d), + d + ? c._trigger('selecting', b, { selecting: e.element }) + : c._trigger('unselecting', b, { + unselecting: e.element, + }), + !1 + ) + })) + }, + _mouseDrag: function (b) { + if (((this.dragged = !0), !this.options.disabled)) { + var c, + d = this, + e = this.options, + f = this.opos[0], + g = this.opos[1], + h = b.pageX, + i = b.pageY + return ( + f > h && ((c = h), (h = f), (f = c)), + g > i && ((c = i), (i = g), (g = c)), + this.helper.css({ left: f, top: g, width: h - f, height: i - g }), + this.selectees.each(function () { + var c = a.data(this, 'selectable-item'), + j = !1 + c && + c.element !== d.element[0] && + ('touch' === e.tolerance + ? (j = !( + c.left > h || + c.right < f || + c.top > i || + c.bottom < g + )) + : 'fit' === e.tolerance && + (j = + c.left > f && c.right < h && c.top > g && c.bottom < i), + j + ? (c.selected && + (c.$element.removeClass('ui-selected'), + (c.selected = !1)), + c.unselecting && + (c.$element.removeClass('ui-unselecting'), + (c.unselecting = !1)), + c.selecting || + (c.$element.addClass('ui-selecting'), + (c.selecting = !0), + d._trigger('selecting', b, { selecting: c.element }))) + : (c.selecting && + ((b.metaKey || b.ctrlKey) && c.startselected + ? (c.$element.removeClass('ui-selecting'), + (c.selecting = !1), + c.$element.addClass('ui-selected'), + (c.selected = !0)) + : (c.$element.removeClass('ui-selecting'), + (c.selecting = !1), + c.startselected && + (c.$element.addClass('ui-unselecting'), + (c.unselecting = !0)), + d._trigger('unselecting', b, { + unselecting: c.element, + }))), + c.selected && + (b.metaKey || + b.ctrlKey || + c.startselected || + (c.$element.removeClass('ui-selected'), + (c.selected = !1), + c.$element.addClass('ui-unselecting'), + (c.unselecting = !0), + d._trigger('unselecting', b, { + unselecting: c.element, + }))))) + }), + !1 + ) + } + }, + _mouseStop: function (b) { + var c = this + return ( + (this.dragged = !1), + a('.ui-unselecting', this.element[0]).each(function () { + var d = a.data(this, 'selectable-item') + d.$element.removeClass('ui-unselecting'), + (d.unselecting = !1), + (d.startselected = !1), + c._trigger('unselected', b, { unselected: d.element }) + }), + a('.ui-selecting', this.element[0]).each(function () { + var d = a.data(this, 'selectable-item') + d.$element.removeClass('ui-selecting').addClass('ui-selected'), + (d.selecting = !1), + (d.selected = !0), + (d.startselected = !0), + c._trigger('selected', b, { selected: d.element }) + }), + this._trigger('stop', b), + this.helper.remove(), + !1 + ) + }, + }) + })(jQuery), + (function (a, b) { + function c(a, b, c) { + return a > b && a < b + c + } + function d(a) { + return ( + /left|right/.test(a.css('float')) || + /inline|table-cell/.test(a.css('display')) + ) + } + a.widget('ui.sortable', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'sort', + ready: !1, + options: { + appendTo: 'parent', + axis: !1, + connectWith: !1, + containment: !1, + cursor: 'auto', + cursorAt: !1, + dropOnEmpty: !0, + forcePlaceholderSize: !1, + forceHelperSize: !1, + grid: !1, + handle: !1, + helper: 'original', + items: '> *', + opacity: !1, + placeholder: !1, + revert: !1, + scroll: !0, + scrollSensitivity: 20, + scrollSpeed: 20, + scope: 'default', + tolerance: 'intersect', + zIndex: 1e3, + activate: null, + beforeStop: null, + change: null, + deactivate: null, + out: null, + over: null, + receive: null, + remove: null, + sort: null, + start: null, + stop: null, + update: null, + }, + _create: function () { + var a = this.options + ;(this.containerCache = {}), + this.element.addClass('ui-sortable'), + this.refresh(), + (this.floating = + !!this.items.length && ('x' === a.axis || d(this.items[0].item))), + (this.offset = this.element.offset()), + this._mouseInit(), + (this.ready = !0) + }, + _destroy: function () { + this.element.removeClass('ui-sortable ui-sortable-disabled'), + this._mouseDestroy() + for (var a = this.items.length - 1; a >= 0; a--) + this.items[a].item.removeData(this.widgetName + '-item') + return this + }, + _setOption: function (b, c) { + 'disabled' === b + ? ((this.options[b] = c), + this.widget().toggleClass('ui-sortable-disabled', !!c)) + : a.Widget.prototype._setOption.apply(this, arguments) + }, + _mouseCapture: function (b, c) { + var d = null, + e = !1, + f = this + return ( + !this.reverting && + !this.options.disabled && + 'static' !== this.options.type && + (this._refreshItems(b), + a(b.target) + .parents() + .each(function () { + if (a.data(this, f.widgetName + '-item') === f) + return (d = a(this)), !1 + }), + a.data(b.target, f.widgetName + '-item') === f && (d = a(b.target)), + !!d && + !( + this.options.handle && + !c && + (a(this.options.handle, d) + .find('*') + .addBack() + .each(function () { + this === b.target && (e = !0) + }), + !e) + ) && + ((this.currentItem = d), this._removeCurrentsFromItems(), !0)) + ) + }, + _mouseStart: function (b, c, d) { + var e, + f, + g = this.options + if ( + ((this.currentContainer = this), + this.refreshPositions(), + (this.helper = this._createHelper(b)), + this._cacheHelperProportions(), + this._cacheMargins(), + (this.scrollParent = this.helper.scrollParent()), + (this.offset = this.currentItem.offset()), + (this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left, + }), + a.extend(this.offset, { + click: { + left: b.pageX - this.offset.left, + top: b.pageY - this.offset.top, + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset(), + }), + this.helper.css('position', 'absolute'), + (this.cssPosition = this.helper.css('position')), + (this.originalPosition = this._generatePosition(b)), + (this.originalPageX = b.pageX), + (this.originalPageY = b.pageY), + g.cursorAt && this._adjustOffsetFromHelper(g.cursorAt), + (this.domPosition = { + prev: this.currentItem.prev()[0], + parent: this.currentItem.parent()[0], + }), + this.helper[0] !== this.currentItem[0] && this.currentItem.hide(), + this._createPlaceholder(), + g.containment && this._setContainment(), + g.cursor && + 'auto' !== g.cursor && + ((f = this.document.find('body')), + (this.storedCursor = f.css('cursor')), + f.css('cursor', g.cursor), + (this.storedStylesheet = a( + '' + ).appendTo(f))), + g.opacity && + (this.helper.css('opacity') && + (this._storedOpacity = this.helper.css('opacity')), + this.helper.css('opacity', g.opacity)), + g.zIndex && + (this.helper.css('zIndex') && + (this._storedZIndex = this.helper.css('zIndex')), + this.helper.css('zIndex', g.zIndex)), + this.scrollParent[0] !== document && + 'HTML' !== this.scrollParent[0].tagName && + (this.overflowOffset = this.scrollParent.offset()), + this._trigger('start', b, this._uiHash()), + this._preserveHelperProportions || this._cacheHelperProportions(), + !d) + ) + for (e = this.containers.length - 1; e >= 0; e--) + this.containers[e]._trigger('activate', b, this._uiHash(this)) + return ( + a.ui.ddmanager && (a.ui.ddmanager.current = this), + a.ui.ddmanager && + !g.dropBehaviour && + a.ui.ddmanager.prepareOffsets(this, b), + (this.dragging = !0), + this.helper.addClass('ui-sortable-helper'), + this._mouseDrag(b), + !0 + ) + }, + _mouseDrag: function (b) { + var c, + d, + e, + f, + g = this.options, + h = !1 + for ( + this.position = this._generatePosition(b), + this.positionAbs = this._convertPositionTo('absolute'), + this.lastPositionAbs || (this.lastPositionAbs = this.positionAbs), + this.options.scroll && + (this.scrollParent[0] !== document && + 'HTML' !== this.scrollParent[0].tagName + ? (this.overflowOffset.top + + this.scrollParent[0].offsetHeight - + b.pageY < + g.scrollSensitivity + ? (this.scrollParent[0].scrollTop = h = + this.scrollParent[0].scrollTop + g.scrollSpeed) + : b.pageY - this.overflowOffset.top < g.scrollSensitivity && + (this.scrollParent[0].scrollTop = h = + this.scrollParent[0].scrollTop - g.scrollSpeed), + this.overflowOffset.left + + this.scrollParent[0].offsetWidth - + b.pageX < + g.scrollSensitivity + ? (this.scrollParent[0].scrollLeft = h = + this.scrollParent[0].scrollLeft + g.scrollSpeed) + : b.pageX - this.overflowOffset.left < + g.scrollSensitivity && + (this.scrollParent[0].scrollLeft = h = + this.scrollParent[0].scrollLeft - g.scrollSpeed)) + : (b.pageY - a(document).scrollTop() < g.scrollSensitivity + ? (h = a(document).scrollTop( + a(document).scrollTop() - g.scrollSpeed + )) + : a(window).height() - (b.pageY - a(document).scrollTop()) < + g.scrollSensitivity && + (h = a(document).scrollTop( + a(document).scrollTop() + g.scrollSpeed + )), + b.pageX - a(document).scrollLeft() < g.scrollSensitivity + ? (h = a(document).scrollLeft( + a(document).scrollLeft() - g.scrollSpeed + )) + : a(window).width() - (b.pageX - a(document).scrollLeft()) < + g.scrollSensitivity && + (h = a(document).scrollLeft( + a(document).scrollLeft() + g.scrollSpeed + ))), + h !== !1 && + a.ui.ddmanager && + !g.dropBehaviour && + a.ui.ddmanager.prepareOffsets(this, b)), + this.positionAbs = this._convertPositionTo('absolute'), + (this.options.axis && 'y' === this.options.axis) || + (this.helper[0].style.left = this.position.left + 'px'), + (this.options.axis && 'x' === this.options.axis) || + (this.helper[0].style.top = this.position.top + 'px'), + c = this.items.length - 1; + c >= 0; + c-- + ) + if ( + ((d = this.items[c]), + (e = d.item[0]), + (f = this._intersectsWithPointer(d)), + f && + d.instance === this.currentContainer && + !( + e === this.currentItem[0] || + this.placeholder[1 === f ? 'next' : 'prev']()[0] === e || + a.contains(this.placeholder[0], e) || + ('semi-dynamic' === this.options.type && + a.contains(this.element[0], e)) + )) + ) { + if ( + ((this.direction = 1 === f ? 'down' : 'up'), + 'pointer' !== this.options.tolerance && + !this._intersectsWithSides(d)) + ) + break + this._rearrange(b, d), this._trigger('change', b, this._uiHash()) + break + } + return ( + this._contactContainers(b), + a.ui.ddmanager && a.ui.ddmanager.drag(this, b), + this._trigger('sort', b, this._uiHash()), + (this.lastPositionAbs = this.positionAbs), + !1 + ) + }, + _mouseStop: function (b, c) { + if (b) { + if ( + (a.ui.ddmanager && + !this.options.dropBehaviour && + a.ui.ddmanager.drop(this, b), + this.options.revert) + ) { + var d = this, + e = this.placeholder.offset(), + f = this.options.axis, + g = {} + ;(f && 'x' !== f) || + (g.left = + e.left - + this.offset.parent.left - + this.margins.left + + (this.offsetParent[0] === document.body + ? 0 + : this.offsetParent[0].scrollLeft)), + (f && 'y' !== f) || + (g.top = + e.top - + this.offset.parent.top - + this.margins.top + + (this.offsetParent[0] === document.body + ? 0 + : this.offsetParent[0].scrollTop)), + (this.reverting = !0), + a(this.helper).animate( + g, + parseInt(this.options.revert, 10) || 500, + function () { + d._clear(b) + } + ) + } else this._clear(b, c) + return !1 + } + }, + cancel: function () { + if (this.dragging) { + this._mouseUp({ target: null }), + 'original' === this.options.helper + ? this.currentItem + .css(this._storedCSS) + .removeClass('ui-sortable-helper') + : this.currentItem.show() + for (var b = this.containers.length - 1; b >= 0; b--) + this.containers[b]._trigger('deactivate', null, this._uiHash(this)), + this.containers[b].containerCache.over && + (this.containers[b]._trigger('out', null, this._uiHash(this)), + (this.containers[b].containerCache.over = 0)) + } + return ( + this.placeholder && + (this.placeholder[0].parentNode && + this.placeholder[0].parentNode.removeChild(this.placeholder[0]), + 'original' !== this.options.helper && + this.helper && + this.helper[0].parentNode && + this.helper.remove(), + a.extend(this, { + helper: null, + dragging: !1, + reverting: !1, + _noFinalSort: null, + }), + this.domPosition.prev + ? a(this.domPosition.prev).after(this.currentItem) + : a(this.domPosition.parent).prepend(this.currentItem)), + this + ) + }, + serialize: function (b) { + var c = this._getItemsAsjQuery(b && b.connected), + d = [] + return ( + (b = b || {}), + a(c).each(function () { + var c = (a(b.item || this).attr(b.attribute || 'id') || '').match( + b.expression || /(.+)[\-=_](.+)/ + ) + c && + d.push( + (b.key || c[1] + '[]') + + '=' + + (b.key && b.expression ? c[1] : c[2]) + ) + }), + !d.length && b.key && d.push(b.key + '='), + d.join('&') + ) + }, + toArray: function (b) { + var c = this._getItemsAsjQuery(b && b.connected), + d = [] + return ( + (b = b || {}), + c.each(function () { + d.push(a(b.item || this).attr(b.attribute || 'id') || '') + }), + d + ) + }, + _intersectsWith: function (a) { + var b = this.positionAbs.left, + c = b + this.helperProportions.width, + d = this.positionAbs.top, + e = d + this.helperProportions.height, + f = a.left, + g = f + a.width, + h = a.top, + i = h + a.height, + j = this.offset.click.top, + k = this.offset.click.left, + l = 'x' === this.options.axis || (d + j > h && d + j < i), + m = 'y' === this.options.axis || (b + k > f && b + k < g), + n = l && m + return 'pointer' === this.options.tolerance || + this.options.forcePointerForContainers || + ('pointer' !== this.options.tolerance && + this.helperProportions[this.floating ? 'width' : 'height'] > + a[this.floating ? 'width' : 'height']) + ? n + : f < b + this.helperProportions.width / 2 && + c - this.helperProportions.width / 2 < g && + h < d + this.helperProportions.height / 2 && + e - this.helperProportions.height / 2 < i + }, + _intersectsWithPointer: function (a) { + var b = + 'x' === this.options.axis || + c(this.positionAbs.top + this.offset.click.top, a.top, a.height), + d = + 'y' === this.options.axis || + c(this.positionAbs.left + this.offset.click.left, a.left, a.width), + e = b && d, + f = this._getDragVerticalDirection(), + g = this._getDragHorizontalDirection() + return ( + !!e && + (this.floating + ? (g && 'right' === g) || 'down' === f + ? 2 + : 1 + : f && ('down' === f ? 2 : 1)) + ) + }, + _intersectsWithSides: function (a) { + var b = c( + this.positionAbs.top + this.offset.click.top, + a.top + a.height / 2, + a.height + ), + d = c( + this.positionAbs.left + this.offset.click.left, + a.left + a.width / 2, + a.width + ), + e = this._getDragVerticalDirection(), + f = this._getDragHorizontalDirection() + return this.floating && f + ? ('right' === f && d) || ('left' === f && !d) + : e && (('down' === e && b) || ('up' === e && !b)) + }, + _getDragVerticalDirection: function () { + var a = this.positionAbs.top - this.lastPositionAbs.top + return 0 !== a && (a > 0 ? 'down' : 'up') + }, + _getDragHorizontalDirection: function () { + var a = this.positionAbs.left - this.lastPositionAbs.left + return 0 !== a && (a > 0 ? 'right' : 'left') + }, + refresh: function (a) { + return this._refreshItems(a), this.refreshPositions(), this + }, + _connectWith: function () { + var a = this.options + return a.connectWith.constructor === String + ? [a.connectWith] + : a.connectWith + }, + _getItemsAsjQuery: function (b) { + var c, + d, + e, + f, + g = [], + h = [], + i = this._connectWith() + if (i && b) + for (c = i.length - 1; c >= 0; c--) + for (e = a(i[c]), d = e.length - 1; d >= 0; d--) + (f = a.data(e[d], this.widgetFullName)), + f && + f !== this && + !f.options.disabled && + h.push([ + a.isFunction(f.options.items) + ? f.options.items.call(f.element) + : a(f.options.items, f.element) + .not('.ui-sortable-helper') + .not('.ui-sortable-placeholder'), + f, + ]) + for ( + h.push([ + a.isFunction(this.options.items) + ? this.options.items.call(this.element, null, { + options: this.options, + item: this.currentItem, + }) + : a(this.options.items, this.element) + .not('.ui-sortable-helper') + .not('.ui-sortable-placeholder'), + this, + ]), + c = h.length - 1; + c >= 0; + c-- + ) + h[c][0].each(function () { + g.push(this) + }) + return a(g) + }, + _removeCurrentsFromItems: function () { + var b = this.currentItem.find(':data(' + this.widgetName + '-item)') + this.items = a.grep(this.items, function (a) { + for (var c = 0; c < b.length; c++) if (b[c] === a.item[0]) return !1 + return !0 + }) + }, + _refreshItems: function (b) { + ;(this.items = []), (this.containers = [this]) + var c, + d, + e, + f, + g, + h, + i, + j, + k = this.items, + l = [ + [ + a.isFunction(this.options.items) + ? this.options.items.call(this.element[0], b, { + item: this.currentItem, + }) + : a(this.options.items, this.element), + this, + ], + ], + m = this._connectWith() + if (m && this.ready) + for (c = m.length - 1; c >= 0; c--) + for (e = a(m[c]), d = e.length - 1; d >= 0; d--) + (f = a.data(e[d], this.widgetFullName)), + f && + f !== this && + !f.options.disabled && + (l.push([ + a.isFunction(f.options.items) + ? f.options.items.call(f.element[0], b, { + item: this.currentItem, + }) + : a(f.options.items, f.element), + f, + ]), + this.containers.push(f)) + for (c = l.length - 1; c >= 0; c--) + for (g = l[c][1], h = l[c][0], d = 0, j = h.length; d < j; d++) + (i = a(h[d])), + i.data(this.widgetName + '-item', g), + k.push({ + item: i, + instance: g, + width: 0, + height: 0, + left: 0, + top: 0, + }) + }, + refreshPositions: function (b) { + this.offsetParent && + this.helper && + (this.offset.parent = this._getParentOffset()) + var c, d, e, f + for (c = this.items.length - 1; c >= 0; c--) + (d = this.items[c]), + (d.instance !== this.currentContainer && + this.currentContainer && + d.item[0] !== this.currentItem[0]) || + ((e = this.options.toleranceElement + ? a(this.options.toleranceElement, d.item) + : d.item), + b || ((d.width = e.outerWidth()), (d.height = e.outerHeight())), + (f = e.offset()), + (d.left = f.left), + (d.top = f.top)) + if (this.options.custom && this.options.custom.refreshContainers) + this.options.custom.refreshContainers.call(this) + else + for (c = this.containers.length - 1; c >= 0; c--) + (f = this.containers[c].element.offset()), + (this.containers[c].containerCache.left = f.left), + (this.containers[c].containerCache.top = f.top), + (this.containers[c].containerCache.width = + this.containers[c].element.outerWidth()), + (this.containers[c].containerCache.height = + this.containers[c].element.outerHeight()) + return this + }, + _createPlaceholder: function (b) { + b = b || this + var c, + d = b.options + ;(d.placeholder && d.placeholder.constructor !== String) || + ((c = d.placeholder), + (d.placeholder = { + element: function () { + var d = b.currentItem[0].nodeName.toLowerCase(), + e = a('<' + d + '>', b.document[0]) + .addClass( + c || b.currentItem[0].className + ' ui-sortable-placeholder' + ) + .removeClass('ui-sortable-helper') + return ( + 'tr' === d + ? b.currentItem.children().each(function () { + a(' ', b.document[0]) + .attr('colspan', a(this).attr('colspan') || 1) + .appendTo(e) + }) + : 'img' === d && e.attr('src', b.currentItem.attr('src')), + c || e.css('visibility', 'hidden'), + e + ) + }, + update: function (a, e) { + ;(c && !d.forcePlaceholderSize) || + (e.height() || + e.height( + b.currentItem.innerHeight() - + parseInt(b.currentItem.css('paddingTop') || 0, 10) - + parseInt(b.currentItem.css('paddingBottom') || 0, 10) + ), + e.width() || + e.width( + b.currentItem.innerWidth() - + parseInt(b.currentItem.css('paddingLeft') || 0, 10) - + parseInt(b.currentItem.css('paddingRight') || 0, 10) + )) + }, + })), + (b.placeholder = a( + d.placeholder.element.call(b.element, b.currentItem) + )), + b.currentItem.after(b.placeholder), + d.placeholder.update(b, b.placeholder) + }, + _contactContainers: function (b) { + var e, + f, + g, + h, + i, + j, + k, + l, + m, + n, + o = null, + p = null + for (e = this.containers.length - 1; e >= 0; e--) + if (!a.contains(this.currentItem[0], this.containers[e].element[0])) + if (this._intersectsWith(this.containers[e].containerCache)) { + if (o && a.contains(this.containers[e].element[0], o.element[0])) + continue + ;(o = this.containers[e]), (p = e) + } else + this.containers[e].containerCache.over && + (this.containers[e]._trigger('out', b, this._uiHash(this)), + (this.containers[e].containerCache.over = 0)) + if (o) + if (1 === this.containers.length) + this.containers[p].containerCache.over || + (this.containers[p]._trigger('over', b, this._uiHash(this)), + (this.containers[p].containerCache.over = 1)) + else { + for ( + g = 1e4, + h = null, + n = o.floating || d(this.currentItem), + i = n ? 'left' : 'top', + j = n ? 'width' : 'height', + k = this.positionAbs[i] + this.offset.click[i], + f = this.items.length - 1; + f >= 0; + f-- + ) + a.contains( + this.containers[p].element[0], + this.items[f].item[0] + ) && + this.items[f].item[0] !== this.currentItem[0] && + ((n && + !c( + this.positionAbs.top + this.offset.click.top, + this.items[f].top, + this.items[f].height + )) || + ((l = this.items[f].item.offset()[i]), + (m = !1), + Math.abs(l - k) > Math.abs(l + this.items[f][j] - k) && + ((m = !0), (l += this.items[f][j])), + Math.abs(l - k) < g && + ((g = Math.abs(l - k)), + (h = this.items[f]), + (this.direction = m ? 'up' : 'down')))) + if (!h && !this.options.dropOnEmpty) return + if (this.currentContainer === this.containers[p]) return + h + ? this._rearrange(b, h, null, !0) + : this._rearrange(b, null, this.containers[p].element, !0), + this._trigger('change', b, this._uiHash()), + this.containers[p]._trigger('change', b, this._uiHash(this)), + (this.currentContainer = this.containers[p]), + this.options.placeholder.update( + this.currentContainer, + this.placeholder + ), + this.containers[p]._trigger('over', b, this._uiHash(this)), + (this.containers[p].containerCache.over = 1) + } + }, + _createHelper: function (b) { + var c = this.options, + d = a.isFunction(c.helper) + ? a(c.helper.apply(this.element[0], [b, this.currentItem])) + : 'clone' === c.helper + ? this.currentItem.clone() + : this.currentItem + return ( + d.parents('body').length || + a( + 'parent' !== c.appendTo + ? c.appendTo + : this.currentItem[0].parentNode + )[0].appendChild(d[0]), + d[0] === this.currentItem[0] && + (this._storedCSS = { + width: this.currentItem[0].style.width, + height: this.currentItem[0].style.height, + position: this.currentItem.css('position'), + top: this.currentItem.css('top'), + left: this.currentItem.css('left'), + }), + (d[0].style.width && !c.forceHelperSize) || + d.width(this.currentItem.width()), + (d[0].style.height && !c.forceHelperSize) || + d.height(this.currentItem.height()), + d + ) + }, + _adjustOffsetFromHelper: function (b) { + 'string' == typeof b && (b = b.split(' ')), + a.isArray(b) && (b = { left: +b[0], top: +b[1] || 0 }), + 'left' in b && (this.offset.click.left = b.left + this.margins.left), + 'right' in b && + (this.offset.click.left = + this.helperProportions.width - b.right + this.margins.left), + 'top' in b && (this.offset.click.top = b.top + this.margins.top), + 'bottom' in b && + (this.offset.click.top = + this.helperProportions.height - b.bottom + this.margins.top) + }, + _getParentOffset: function () { + this.offsetParent = this.helper.offsetParent() + var b = this.offsetParent.offset() + return ( + 'absolute' === this.cssPosition && + this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0]) && + ((b.left += this.scrollParent.scrollLeft()), + (b.top += this.scrollParent.scrollTop())), + (this.offsetParent[0] === document.body || + (this.offsetParent[0].tagName && + 'html' === this.offsetParent[0].tagName.toLowerCase() && + a.ui.ie)) && + (b = { top: 0, left: 0 }), + { + top: + b.top + + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), + left: + b.left + + (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), + } + ) + }, + _getRelativeOffset: function () { + if ('relative' === this.cssPosition) { + var a = this.currentItem.position() + return { + top: + a.top - + (parseInt(this.helper.css('top'), 10) || 0) + + this.scrollParent.scrollTop(), + left: + a.left - + (parseInt(this.helper.css('left'), 10) || 0) + + this.scrollParent.scrollLeft(), + } + } + return { top: 0, left: 0 } + }, + _cacheMargins: function () { + this.margins = { + left: parseInt(this.currentItem.css('marginLeft'), 10) || 0, + top: parseInt(this.currentItem.css('marginTop'), 10) || 0, + } + }, + _cacheHelperProportions: function () { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight(), + } + }, + _setContainment: function () { + var b, + c, + d, + e = this.options + 'parent' === e.containment && + (e.containment = this.helper[0].parentNode), + ('document' !== e.containment && 'window' !== e.containment) || + (this.containment = [ + 0 - this.offset.relative.left - this.offset.parent.left, + 0 - this.offset.relative.top - this.offset.parent.top, + a('document' === e.containment ? document : window).width() - + this.helperProportions.width - + this.margins.left, + (a('document' === e.containment ? document : window).height() || + document.body.parentNode.scrollHeight) - + this.helperProportions.height - + this.margins.top, + ]), + /^(document|window|parent)$/.test(e.containment) || + ((b = a(e.containment)[0]), + (c = a(e.containment).offset()), + (d = 'hidden' !== a(b).css('overflow')), + (this.containment = [ + c.left + + (parseInt(a(b).css('borderLeftWidth'), 10) || 0) + + (parseInt(a(b).css('paddingLeft'), 10) || 0) - + this.margins.left, + c.top + + (parseInt(a(b).css('borderTopWidth'), 10) || 0) + + (parseInt(a(b).css('paddingTop'), 10) || 0) - + this.margins.top, + c.left + + (d ? Math.max(b.scrollWidth, b.offsetWidth) : b.offsetWidth) - + (parseInt(a(b).css('borderLeftWidth'), 10) || 0) - + (parseInt(a(b).css('paddingRight'), 10) || 0) - + this.helperProportions.width - + this.margins.left, + c.top + + (d + ? Math.max(b.scrollHeight, b.offsetHeight) + : b.offsetHeight) - + (parseInt(a(b).css('borderTopWidth'), 10) || 0) - + (parseInt(a(b).css('paddingBottom'), 10) || 0) - + this.helperProportions.height - + this.margins.top, + ])) + }, + _convertPositionTo: function (b, c) { + c || (c = this.position) + var d = 'absolute' === b ? 1 : -1, + e = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent, + f = /(html|body)/i.test(e[0].tagName) + return { + top: + c.top + + this.offset.relative.top * d + + this.offset.parent.top * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : f + ? 0 + : e.scrollTop()) * + d, + left: + c.left + + this.offset.relative.left * d + + this.offset.parent.left * d - + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : f + ? 0 + : e.scrollLeft()) * + d, + } + }, + _generatePosition: function (b) { + var c, + d, + e = this.options, + f = b.pageX, + g = b.pageY, + h = + 'absolute' !== this.cssPosition || + (this.scrollParent[0] !== document && + a.contains(this.scrollParent[0], this.offsetParent[0])) + ? this.scrollParent + : this.offsetParent, + i = /(html|body)/i.test(h[0].tagName) + return ( + 'relative' !== this.cssPosition || + (this.scrollParent[0] !== document && + this.scrollParent[0] !== this.offsetParent[0]) || + (this.offset.relative = this._getRelativeOffset()), + this.originalPosition && + (this.containment && + (b.pageX - this.offset.click.left < this.containment[0] && + (f = this.containment[0] + this.offset.click.left), + b.pageY - this.offset.click.top < this.containment[1] && + (g = this.containment[1] + this.offset.click.top), + b.pageX - this.offset.click.left > this.containment[2] && + (f = this.containment[2] + this.offset.click.left), + b.pageY - this.offset.click.top > this.containment[3] && + (g = this.containment[3] + this.offset.click.top)), + e.grid && + ((c = + this.originalPageY + + Math.round((g - this.originalPageY) / e.grid[1]) * e.grid[1]), + (g = this.containment + ? c - this.offset.click.top >= this.containment[1] && + c - this.offset.click.top <= this.containment[3] + ? c + : c - this.offset.click.top >= this.containment[1] + ? c - e.grid[1] + : c + e.grid[1] + : c), + (d = + this.originalPageX + + Math.round((f - this.originalPageX) / e.grid[0]) * e.grid[0]), + (f = this.containment + ? d - this.offset.click.left >= this.containment[0] && + d - this.offset.click.left <= this.containment[2] + ? d + : d - this.offset.click.left >= this.containment[0] + ? d - e.grid[0] + : d + e.grid[0] + : d))), + { + top: + g - + this.offset.click.top - + this.offset.relative.top - + this.offset.parent.top + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollTop() + : i + ? 0 + : h.scrollTop()), + left: + f - + this.offset.click.left - + this.offset.relative.left - + this.offset.parent.left + + ('fixed' === this.cssPosition + ? -this.scrollParent.scrollLeft() + : i + ? 0 + : h.scrollLeft()), + } + ) + }, + _rearrange: function (a, b, c, d) { + c + ? c[0].appendChild(this.placeholder[0]) + : b.item[0].parentNode.insertBefore( + this.placeholder[0], + 'down' === this.direction ? b.item[0] : b.item[0].nextSibling + ), + (this.counter = this.counter ? ++this.counter : 1) + var e = this.counter + this._delay(function () { + e === this.counter && this.refreshPositions(!d) + }) + }, + _clear: function (a, b) { + this.reverting = !1 + var c, + d = [] + if ( + (!this._noFinalSort && + this.currentItem.parent().length && + this.placeholder.before(this.currentItem), + (this._noFinalSort = null), + this.helper[0] === this.currentItem[0]) + ) { + for (c in this._storedCSS) + ('auto' !== this._storedCSS[c] && + 'static' !== this._storedCSS[c]) || + (this._storedCSS[c] = '') + this.currentItem + .css(this._storedCSS) + .removeClass('ui-sortable-helper') + } else this.currentItem.show() + for ( + this.fromOutside && + !b && + d.push(function (a) { + this._trigger('receive', a, this._uiHash(this.fromOutside)) + }), + (!this.fromOutside && + this.domPosition.prev === + this.currentItem.prev().not('.ui-sortable-helper')[0] && + this.domPosition.parent === this.currentItem.parent()[0]) || + b || + d.push(function (a) { + this._trigger('update', a, this._uiHash()) + }), + this !== this.currentContainer && + (b || + (d.push(function (a) { + this._trigger('remove', a, this._uiHash()) + }), + d.push( + function (a) { + return function (b) { + a._trigger('receive', b, this._uiHash(this)) + } + }.call(this, this.currentContainer) + ), + d.push( + function (a) { + return function (b) { + a._trigger('update', b, this._uiHash(this)) + } + }.call(this, this.currentContainer) + ))), + c = this.containers.length - 1; + c >= 0; + c-- + ) + b || + d.push( + function (a) { + return function (b) { + a._trigger('deactivate', b, this._uiHash(this)) + } + }.call(this, this.containers[c]) + ), + this.containers[c].containerCache.over && + (d.push( + function (a) { + return function (b) { + a._trigger('out', b, this._uiHash(this)) + } + }.call(this, this.containers[c]) + ), + (this.containers[c].containerCache.over = 0)) + if ( + (this.storedCursor && + (this.document.find('body').css('cursor', this.storedCursor), + this.storedStylesheet.remove()), + this._storedOpacity && + this.helper.css('opacity', this._storedOpacity), + this._storedZIndex && + this.helper.css( + 'zIndex', + 'auto' === this._storedZIndex ? '' : this._storedZIndex + ), + (this.dragging = !1), + this.cancelHelperRemoval) + ) { + if (!b) { + for ( + this._trigger('beforeStop', a, this._uiHash()), c = 0; + c < d.length; + c++ + ) + d[c].call(this, a) + this._trigger('stop', a, this._uiHash()) + } + return (this.fromOutside = !1), !1 + } + if ( + (b || this._trigger('beforeStop', a, this._uiHash()), + this.placeholder[0].parentNode.removeChild(this.placeholder[0]), + this.helper[0] !== this.currentItem[0] && this.helper.remove(), + (this.helper = null), + !b) + ) { + for (c = 0; c < d.length; c++) d[c].call(this, a) + this._trigger('stop', a, this._uiHash()) + } + return (this.fromOutside = !1), !0 + }, + _trigger: function () { + a.Widget.prototype._trigger.apply(this, arguments) === !1 && + this.cancel() + }, + _uiHash: function (b) { + var c = b || this + return { + helper: c.helper, + placeholder: c.placeholder || a([]), + position: c.position, + originalPosition: c.originalPosition, + offset: c.positionAbs, + item: c.currentItem, + sender: b ? b.element : null, + } + }, + }) + })(jQuery), + (function (a, b) { + var c = 'ui-effects-' + ;(a.effects = { effect: {} }), + (function (a, b) { + function m(a, b, c) { + var d = h[b.type] || {} + return null == a + ? c || !b.def + ? null + : b.def + : ((a = d.floor ? ~~a : parseFloat(a)), + isNaN(a) + ? b.def + : d.mod + ? (a + d.mod) % d.mod + : 0 > a + ? 0 + : d.max < a + ? d.max + : a) + } + function n(b) { + var c = f(), + d = (c._rgba = []) + return ( + (b = b.toLowerCase()), + l(e, function (a, e) { + var f, + h = e.re.exec(b), + i = h && e.parse(h), + j = e.space || 'rgba' + if (i) + return ( + (f = c[j](i)), + (c[g[j].cache] = f[g[j].cache]), + (d = c._rgba = f._rgba), + !1 + ) + }), + d.length + ? ('0,0,0,0' === d.join() && a.extend(d, k.transparent), c) + : k[b] + ) + } + function o(a, b, c) { + return ( + (c = (c + 1) % 1), + 6 * c < 1 + ? a + (b - a) * c * 6 + : 2 * c < 1 + ? b + : 3 * c < 2 + ? a + (b - a) * (2 / 3 - c) * 6 + : a + ) + } + var k, + c = + 'backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor', + d = /^([\-+])=\s*(\d+\.?\d*)/, + e = [ + { + re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function (a) { + return [a[1], a[2], a[3], a[4]] + }, + }, + { + re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function (a) { + return [2.55 * a[1], 2.55 * a[2], 2.55 * a[3], a[4]] + }, + }, + { + re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, + parse: function (a) { + return [ + parseInt(a[1], 16), + parseInt(a[2], 16), + parseInt(a[3], 16), + ] + }, + }, + { + re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, + parse: function (a) { + return [ + parseInt(a[1] + a[1], 16), + parseInt(a[2] + a[2], 16), + parseInt(a[3] + a[3], 16), + ] + }, + }, + { + re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + space: 'hsla', + parse: function (a) { + return [a[1], a[2] / 100, a[3] / 100, a[4]] + }, + }, + ], + f = (a.Color = function (b, c, d, e) { + return new a.Color.fn.parse(b, c, d, e) + }), + g = { + rgba: { + props: { + red: { idx: 0, type: 'byte' }, + green: { idx: 1, type: 'byte' }, + blue: { idx: 2, type: 'byte' }, + }, + }, + hsla: { + props: { + hue: { idx: 0, type: 'degrees' }, + saturation: { idx: 1, type: 'percent' }, + lightness: { idx: 2, type: 'percent' }, + }, + }, + }, + h = { + byte: { floor: !0, max: 255 }, + percent: { max: 1 }, + degrees: { mod: 360, floor: !0 }, + }, + i = (f.support = {}), + j = a('

          ')[0], + l = a.each + ;(j.style.cssText = 'background-color:rgba(1,1,1,.5)'), + (i.rgba = j.style.backgroundColor.indexOf('rgba') > -1), + l(g, function (a, b) { + ;(b.cache = '_' + a), + (b.props.alpha = { idx: 3, type: 'percent', def: 1 }) + }), + (f.fn = a.extend(f.prototype, { + parse: function (c, d, e, h) { + if (c === b) return (this._rgba = [null, null, null, null]), this + ;(c.jquery || c.nodeType) && ((c = a(c).css(d)), (d = b)) + var i = this, + j = a.type(c), + o = (this._rgba = []) + return ( + d !== b && ((c = [c, d, e, h]), (j = 'array')), + 'string' === j + ? this.parse(n(c) || k._default) + : 'array' === j + ? (l(g.rgba.props, function (a, b) { + o[b.idx] = m(c[b.idx], b) + }), + this) + : 'object' === j + ? (c instanceof f + ? l(g, function (a, b) { + c[b.cache] && (i[b.cache] = c[b.cache].slice()) + }) + : l(g, function (b, d) { + var e = d.cache + l(d.props, function (a, b) { + if (!i[e] && d.to) { + if ('alpha' === a || null == c[a]) return + i[e] = d.to(i._rgba) + } + i[e][b.idx] = m(c[a], b, !0) + }), + i[e] && + a.inArray(null, i[e].slice(0, 3)) < 0 && + ((i[e][3] = 1), + d.from && (i._rgba = d.from(i[e]))) + }), + this) + : void 0 + ) + }, + is: function (a) { + var b = f(a), + c = !0, + d = this + return ( + l(g, function (a, e) { + var f, + g = b[e.cache] + return ( + g && + ((f = d[e.cache] || (e.to && e.to(d._rgba)) || []), + l(e.props, function (a, b) { + if (null != g[b.idx]) return (c = g[b.idx] === f[b.idx]) + })), + c + ) + }), + c + ) + }, + _space: function () { + var a = [], + b = this + return ( + l(g, function (c, d) { + b[d.cache] && a.push(c) + }), + a.pop() + ) + }, + transition: function (a, b) { + var c = f(a), + d = c._space(), + e = g[d], + i = 0 === this.alpha() ? f('transparent') : this, + j = i[e.cache] || e.to(i._rgba), + k = j.slice() + return ( + (c = c[e.cache]), + l(e.props, function (a, d) { + var e = d.idx, + f = j[e], + g = c[e], + i = h[d.type] || {} + null !== g && + (null === f + ? (k[e] = g) + : (i.mod && + (g - f > i.mod / 2 + ? (f += i.mod) + : f - g > i.mod / 2 && (f -= i.mod)), + (k[e] = m((g - f) * b + f, d)))) + }), + this[d](k) + ) + }, + blend: function (b) { + if (1 === this._rgba[3]) return this + var c = this._rgba.slice(), + d = c.pop(), + e = f(b)._rgba + return f( + a.map(c, function (a, b) { + return (1 - d) * e[b] + d * a + }) + ) + }, + toRgbaString: function () { + var b = 'rgba(', + c = a.map(this._rgba, function (a, b) { + return null == a ? (b > 2 ? 1 : 0) : a + }) + return 1 === c[3] && (c.pop(), (b = 'rgb(')), b + c.join() + ')' + }, + toHslaString: function () { + var b = 'hsla(', + c = a.map(this.hsla(), function (a, b) { + return ( + null == a && (a = b > 2 ? 1 : 0), + b && b < 3 && (a = Math.round(100 * a) + '%'), + a + ) + }) + return 1 === c[3] && (c.pop(), (b = 'hsl(')), b + c.join() + ')' + }, + toHexString: function (b) { + var c = this._rgba.slice(), + d = c.pop() + return ( + b && c.push(~~(255 * d)), + '#' + + a + .map(c, function (a) { + return ( + (a = (a || 0).toString(16)), + 1 === a.length ? '0' + a : a + ) + }) + .join('') + ) + }, + toString: function () { + return 0 === this._rgba[3] ? 'transparent' : this.toRgbaString() + }, + })), + (f.fn.parse.prototype = f.fn), + (g.hsla.to = function (a) { + if (null == a[0] || null == a[1] || null == a[2]) + return [null, null, null, a[3]] + var k, + l, + b = a[0] / 255, + c = a[1] / 255, + d = a[2] / 255, + e = a[3], + f = Math.max(b, c, d), + g = Math.min(b, c, d), + h = f - g, + i = f + g, + j = 0.5 * i + return ( + (k = + g === f + ? 0 + : b === f + ? (60 * (c - d)) / h + 360 + : c === f + ? (60 * (d - b)) / h + 120 + : (60 * (b - c)) / h + 240), + (l = 0 === h ? 0 : j <= 0.5 ? h / i : h / (2 - i)), + [Math.round(k) % 360, l, j, null == e ? 1 : e] + ) + }), + (g.hsla.from = function (a) { + if (null == a[0] || null == a[1] || null == a[2]) + return [null, null, null, a[3]] + var b = a[0] / 360, + c = a[1], + d = a[2], + e = a[3], + f = d <= 0.5 ? d * (1 + c) : d + c - d * c, + g = 2 * d - f + return [ + Math.round(255 * o(g, f, b + 1 / 3)), + Math.round(255 * o(g, f, b)), + Math.round(255 * o(g, f, b - 1 / 3)), + e, + ] + }), + l(g, function (c, e) { + var g = e.props, + h = e.cache, + i = e.to, + j = e.from + ;(f.fn[c] = function (c) { + if ((i && !this[h] && (this[h] = i(this._rgba)), c === b)) + return this[h].slice() + var d, + e = a.type(c), + k = 'array' === e || 'object' === e ? c : arguments, + n = this[h].slice() + return ( + l(g, function (a, b) { + var c = k['object' === e ? a : b.idx] + null == c && (c = n[b.idx]), (n[b.idx] = m(c, b)) + }), + j ? ((d = f(j(n))), (d[h] = n), d) : f(n) + ) + }), + l(g, function (b, e) { + f.fn[b] || + (f.fn[b] = function (f) { + var k, + g = a.type(f), + h = 'alpha' === b ? (this._hsla ? 'hsla' : 'rgba') : c, + i = this[h](), + j = i[e.idx] + return 'undefined' === g + ? j + : ('function' === g && + ((f = f.call(this, j)), (g = a.type(f))), + null == f && e.empty + ? this + : ('string' === g && + ((k = d.exec(f)), + k && + (f = + j + + parseFloat(k[2]) * ('+' === k[1] ? 1 : -1))), + (i[e.idx] = f), + this[h](i))) + }) + }) + }), + (f.hook = function (b) { + var c = b.split(' ') + l(c, function (b, c) { + ;(a.cssHooks[c] = { + set: function (b, d) { + var e, + g, + h = '' + if ( + 'transparent' !== d && + ('string' !== a.type(d) || (e = n(d))) + ) { + if (((d = f(e || d)), !i.rgba && 1 !== d._rgba[3])) { + for ( + g = 'backgroundColor' === c ? b.parentNode : b; + ('' === h || 'transparent' === h) && g && g.style; + + ) + try { + ;(h = a.css(g, 'backgroundColor')), (g = g.parentNode) + } catch (a) {} + d = d.blend(h && 'transparent' !== h ? h : '_default') + } + d = d.toRgbaString() + } + try { + b.style[c] = d + } catch (a) {} + }, + }), + (a.fx.step[c] = function (b) { + b.colorInit || + ((b.start = f(b.elem, c)), + (b.end = f(b.end)), + (b.colorInit = !0)), + a.cssHooks[c].set(b.elem, b.start.transition(b.end, b.pos)) + }) + }) + }), + f.hook(c), + (a.cssHooks.borderColor = { + expand: function (a) { + var b = {} + return ( + l(['Top', 'Right', 'Bottom', 'Left'], function (c, d) { + b['border' + d + 'Color'] = a + }), + b + ) + }, + }), + (k = a.Color.names = + { + aqua: '#00ffff', + black: '#000000', + blue: '#0000ff', + fuchsia: '#ff00ff', + gray: '#808080', + green: '#008000', + lime: '#00ff00', + maroon: '#800000', + navy: '#000080', + olive: '#808000', + purple: '#800080', + red: '#ff0000', + silver: '#c0c0c0', + teal: '#008080', + white: '#ffffff', + yellow: '#ffff00', + transparent: [null, null, null, 0], + _default: '#ffffff', + }) + })(jQuery), + (function () { + function e(b) { + var c, + d, + e = b.ownerDocument.defaultView + ? b.ownerDocument.defaultView.getComputedStyle(b, null) + : b.currentStyle, + f = {} + if (e && e.length && e[0] && e[e[0]]) + for (d = e.length; d--; ) + (c = e[d]), 'string' == typeof e[c] && (f[a.camelCase(c)] = e[c]) + else for (c in e) 'string' == typeof e[c] && (f[c] = e[c]) + return f + } + function f(b, c) { + var f, + g, + e = {} + for (f in c) + (g = c[f]), + b[f] !== g && + (d[f] || (!a.fx.step[f] && isNaN(parseFloat(g))) || (e[f] = g)) + return e + } + var c = ['add', 'remove', 'toggle'], + d = { + border: 1, + borderBottom: 1, + borderColor: 1, + borderLeft: 1, + borderRight: 1, + borderTop: 1, + borderWidth: 1, + margin: 1, + padding: 1, + } + a.each( + [ + 'borderLeftStyle', + 'borderRightStyle', + 'borderBottomStyle', + 'borderTopStyle', + ], + function (b, c) { + a.fx.step[c] = function (a) { + ;(('none' !== a.end && !a.setAttr) || + (1 === a.pos && !a.setAttr)) && + (jQuery.style(a.elem, c, a.end), (a.setAttr = !0)) + } + } + ), + a.fn.addBack || + (a.fn.addBack = function (a) { + return this.add( + null == a ? this.prevObject : this.prevObject.filter(a) + ) + }), + (a.effects.animateClass = function (b, d, g, h) { + var i = a.speed(d, g, h) + return this.queue(function () { + var h, + d = a(this), + g = d.attr('class') || '', + j = i.children ? d.find('*').addBack() : d + ;(j = j.map(function () { + var b = a(this) + return { el: b, start: e(this) } + })), + (h = function () { + a.each(c, function (a, c) { + b[c] && d[c + 'Class'](b[c]) + }) + }), + h(), + (j = j.map(function () { + return ( + (this.end = e(this.el[0])), + (this.diff = f(this.start, this.end)), + this + ) + })), + d.attr('class', g), + (j = j.map(function () { + var b = this, + c = a.Deferred(), + d = a.extend({}, i, { + queue: !1, + complete: function () { + c.resolve(b) + }, + }) + return this.el.animate(this.diff, d), c.promise() + })), + a.when.apply(a, j.get()).done(function () { + h(), + a.each(arguments, function () { + var b = this.el + a.each(this.diff, function (a) { + b.css(a, '') + }) + }), + i.complete.call(d[0]) + }) + }) + }), + a.fn.extend({ + addClass: (function (b) { + return function (c, d, e, f) { + return d + ? a.effects.animateClass.call(this, { add: c }, d, e, f) + : b.apply(this, arguments) + } + })(a.fn.addClass), + removeClass: (function (b) { + return function (c, d, e, f) { + return arguments.length > 1 + ? a.effects.animateClass.call(this, { remove: c }, d, e, f) + : b.apply(this, arguments) + } + })(a.fn.removeClass), + toggleClass: (function (c) { + return function (d, e, f, g, h) { + return 'boolean' == typeof e || e === b + ? f + ? a.effects.animateClass.call( + this, + e ? { add: d } : { remove: d }, + f, + g, + h + ) + : c.apply(this, arguments) + : a.effects.animateClass.call(this, { toggle: d }, e, f, g) + } + })(a.fn.toggleClass), + switchClass: function (b, c, d, e, f) { + return a.effects.animateClass.call( + this, + { add: c, remove: b }, + d, + e, + f + ) + }, + }) + })(), + (function () { + function d(b, c, d, e) { + return ( + a.isPlainObject(b) && ((c = b), (b = b.effect)), + (b = { effect: b }), + null == c && (c = {}), + a.isFunction(c) && ((e = c), (d = null), (c = {})), + ('number' == typeof c || a.fx.speeds[c]) && + ((e = d), (d = c), (c = {})), + a.isFunction(d) && ((e = d), (d = null)), + c && a.extend(b, c), + (d = d || c.duration), + (b.duration = a.fx.off + ? 0 + : 'number' == typeof d + ? d + : d in a.fx.speeds + ? a.fx.speeds[d] + : a.fx.speeds._default), + (b.complete = e || c.complete), + b + ) + } + function e(b) { + return ( + !(b && 'number' != typeof b && !a.fx.speeds[b]) || + ('string' == typeof b && !a.effects.effect[b]) || + !!a.isFunction(b) || + ('object' == typeof b && !b.effect) + ) + } + a.extend(a.effects, { + version: '1.10.3', + save: function (a, b) { + for (var d = 0; d < b.length; d++) + null !== b[d] && a.data(c + b[d], a[0].style[b[d]]) + }, + restore: function (a, d) { + var e, f + for (f = 0; f < d.length; f++) + null !== d[f] && + ((e = a.data(c + d[f])), e === b && (e = ''), a.css(d[f], e)) + }, + setMode: function (a, b) { + return 'toggle' === b && (b = a.is(':hidden') ? 'show' : 'hide'), b + }, + getBaseline: function (a, b) { + var c, d + switch (a[0]) { + case 'top': + c = 0 + break + case 'middle': + c = 0.5 + break + case 'bottom': + c = 1 + break + default: + c = a[0] / b.height + } + switch (a[1]) { + case 'left': + d = 0 + break + case 'center': + d = 0.5 + break + case 'right': + d = 1 + break + default: + d = a[1] / b.width + } + return { x: d, y: c } + }, + createWrapper: function (b) { + if (b.parent().is('.ui-effects-wrapper')) return b.parent() + var c = { + width: b.outerWidth(!0), + height: b.outerHeight(!0), + float: b.css('float'), + }, + d = a('

          ') + .addClass('ui-effects-wrapper') + .css({ + fontSize: '100%', + background: 'transparent', + border: 'none', + margin: 0, + padding: 0, + }), + e = { width: b.width(), height: b.height() }, + f = document.activeElement + try { + f.id + } catch (a) { + f = document.body + } + return ( + b.wrap(d), + (b[0] === f || a.contains(b[0], f)) && a(f).focus(), + (d = b.parent()), + 'static' === b.css('position') + ? (d.css({ position: 'relative' }), + b.css({ position: 'relative' })) + : (a.extend(c, { + position: b.css('position'), + zIndex: b.css('z-index'), + }), + a.each(['top', 'left', 'bottom', 'right'], function (a, d) { + ;(c[d] = b.css(d)), + isNaN(parseInt(c[d], 10)) && (c[d] = 'auto') + }), + b.css({ + position: 'relative', + top: 0, + left: 0, + right: 'auto', + bottom: 'auto', + })), + b.css(e), + d.css(c).show() + ) + }, + removeWrapper: function (b) { + var c = document.activeElement + return ( + b.parent().is('.ui-effects-wrapper') && + (b.parent().replaceWith(b), + (b[0] === c || a.contains(b[0], c)) && a(c).focus()), + b + ) + }, + setTransition: function (b, c, d, e) { + return ( + (e = e || {}), + a.each(c, function (a, c) { + var f = b.cssUnit(c) + f[0] > 0 && (e[c] = f[0] * d + f[1]) + }), + e + ) + }, + }), + a.fn.extend({ + effect: function () { + function g(c) { + function h() { + a.isFunction(e) && e.call(d[0]), a.isFunction(c) && c() + } + var d = a(this), + e = b.complete, + g = b.mode + ;(d.is(':hidden') ? 'hide' === g : 'show' === g) + ? (d[g](), h()) + : f.call(d[0], b, h) + } + var b = d.apply(this, arguments), + c = b.mode, + e = b.queue, + f = a.effects.effect[b.effect] + return a.fx.off || !f + ? c + ? this[c](b.duration, b.complete) + : this.each(function () { + b.complete && b.complete.call(this) + }) + : e === !1 + ? this.each(g) + : this.queue(e || 'fx', g) + }, + show: (function (a) { + return function (b) { + if (e(b)) return a.apply(this, arguments) + var c = d.apply(this, arguments) + return (c.mode = 'show'), this.effect.call(this, c) + } + })(a.fn.show), + hide: (function (a) { + return function (b) { + if (e(b)) return a.apply(this, arguments) + var c = d.apply(this, arguments) + return (c.mode = 'hide'), this.effect.call(this, c) + } + })(a.fn.hide), + toggle: (function (a) { + return function (b) { + if (e(b) || 'boolean' == typeof b) + return a.apply(this, arguments) + var c = d.apply(this, arguments) + return (c.mode = 'toggle'), this.effect.call(this, c) + } + })(a.fn.toggle), + cssUnit: function (b) { + var c = this.css(b), + d = [] + return ( + a.each(['em', 'px', '%', 'pt'], function (a, b) { + c.indexOf(b) > 0 && (d = [parseFloat(c), b]) + }), + d + ) + }, + }) + })(), + (function () { + var b = {} + a.each(['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'], function (a, c) { + b[c] = function (b) { + return Math.pow(b, a + 2) + } + }), + a.extend(b, { + Sine: function (a) { + return 1 - Math.cos((a * Math.PI) / 2) + }, + Circ: function (a) { + return 1 - Math.sqrt(1 - a * a) + }, + Elastic: function (a) { + return 0 === a || 1 === a + ? a + : -Math.pow(2, 8 * (a - 1)) * + Math.sin(((80 * (a - 1) - 7.5) * Math.PI) / 15) + }, + Back: function (a) { + return a * a * (3 * a - 2) + }, + Bounce: function (a) { + for (var b, c = 4; a < ((b = Math.pow(2, --c)) - 1) / 11; ); + return ( + 1 / Math.pow(4, 3 - c) - + 7.5625 * Math.pow((3 * b - 2) / 22 - a, 2) + ) + }, + }), + a.each(b, function (b, c) { + ;(a.easing['easeIn' + b] = c), + (a.easing['easeOut' + b] = function (a) { + return 1 - c(1 - a) + }), + (a.easing['easeInOut' + b] = function (a) { + return a < 0.5 ? c(2 * a) / 2 : 1 - c(a * -2 + 2) / 2 + }) + }) + })() + })(jQuery), + (function (a, b) { + var c = 0, + d = {}, + e = {} + ;(d.height = + d.paddingTop = + d.paddingBottom = + d.borderTopWidth = + d.borderBottomWidth = + 'hide'), + (e.height = + e.paddingTop = + e.paddingBottom = + e.borderTopWidth = + e.borderBottomWidth = + 'show'), + a.widget('ui.accordion', { + version: '1.10.3', + options: { + active: 0, + animate: {}, + collapsible: !1, + event: 'click', + header: '> li > :first-child,> :not(li):even', + heightStyle: 'auto', + icons: { + activeHeader: 'ui-icon-triangle-1-s', + header: 'ui-icon-triangle-1-e', + }, + activate: null, + beforeActivate: null, + }, + _create: function () { + var b = this.options + ;(this.prevShow = this.prevHide = a()), + this.element + .addClass('ui-accordion ui-widget ui-helper-reset') + .attr('role', 'tablist'), + b.collapsible || + (b.active !== !1 && null != b.active) || + (b.active = 0), + this._processPanels(), + b.active < 0 && (b.active += this.headers.length), + this._refresh() + }, + _getCreateEventData: function () { + return { + header: this.active, + panel: this.active.length ? this.active.next() : a(), + content: this.active.length ? this.active.next() : a(), + } + }, + _createIcons: function () { + var b = this.options.icons + b && + (a('') + .addClass('ui-accordion-header-icon ui-icon ' + b.header) + .prependTo(this.headers), + this.active + .children('.ui-accordion-header-icon') + .removeClass(b.header) + .addClass(b.activeHeader), + this.headers.addClass('ui-accordion-icons')) + }, + _destroyIcons: function () { + this.headers + .removeClass('ui-accordion-icons') + .children('.ui-accordion-header-icon') + .remove() + }, + _destroy: function () { + var a + this.element + .removeClass('ui-accordion ui-widget ui-helper-reset') + .removeAttr('role'), + this.headers + .removeClass( + 'ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top' + ) + .removeAttr('role') + .removeAttr('aria-selected') + .removeAttr('aria-controls') + .removeAttr('tabIndex') + .each(function () { + ;/^ui-accordion/.test(this.id) && this.removeAttribute('id') + }), + this._destroyIcons(), + (a = this.headers + .next() + .css('display', '') + .removeAttr('role') + .removeAttr('aria-expanded') + .removeAttr('aria-hidden') + .removeAttr('aria-labelledby') + .removeClass( + 'ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled' + ) + .each(function () { + ;/^ui-accordion/.test(this.id) && this.removeAttribute('id') + })), + 'content' !== this.options.heightStyle && a.css('height', '') + }, + _setOption: function (a, b) { + return 'active' === a + ? void this._activate(b) + : ('event' === a && + (this.options.event && + this._off(this.headers, this.options.event), + this._setupEvents(b)), + this._super(a, b), + 'collapsible' !== a || + b || + this.options.active !== !1 || + this._activate(0), + 'icons' === a && (this._destroyIcons(), b && this._createIcons()), + void ( + 'disabled' === a && + this.headers + .add(this.headers.next()) + .toggleClass('ui-state-disabled', !!b) + )) + }, + _keydown: function (b) { + if (!b.altKey && !b.ctrlKey) { + var c = a.ui.keyCode, + d = this.headers.length, + e = this.headers.index(b.target), + f = !1 + switch (b.keyCode) { + case c.RIGHT: + case c.DOWN: + f = this.headers[(e + 1) % d] + break + case c.LEFT: + case c.UP: + f = this.headers[(e - 1 + d) % d] + break + case c.SPACE: + case c.ENTER: + this._eventHandler(b) + break + case c.HOME: + f = this.headers[0] + break + case c.END: + f = this.headers[d - 1] + } + f && + (a(b.target).attr('tabIndex', -1), + a(f).attr('tabIndex', 0), + f.focus(), + b.preventDefault()) + } + }, + _panelKeyDown: function (b) { + b.keyCode === a.ui.keyCode.UP && + b.ctrlKey && + a(b.currentTarget).prev().focus() + }, + refresh: function () { + var b = this.options + this._processPanels(), + (b.active === !1 && b.collapsible === !0) || !this.headers.length + ? ((b.active = !1), (this.active = a())) + : b.active === !1 + ? this._activate(0) + : this.active.length && + !a.contains(this.element[0], this.active[0]) + ? this.headers.length === + this.headers.find('.ui-state-disabled').length + ? ((b.active = !1), (this.active = a())) + : this._activate(Math.max(0, b.active - 1)) + : (b.active = this.headers.index(this.active)), + this._destroyIcons(), + this._refresh() + }, + _processPanels: function () { + ;(this.headers = this.element + .find(this.options.header) + .addClass( + 'ui-accordion-header ui-helper-reset ui-state-default ui-corner-all' + )), + this.headers + .next() + .addClass( + 'ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom' + ) + .filter(':not(.ui-accordion-content-active)') + .hide() + }, + _refresh: function () { + var b, + d = this.options, + e = d.heightStyle, + f = this.element.parent(), + g = (this.accordionId = + 'ui-accordion-' + (this.element.attr('id') || ++c)) + ;(this.active = this._findActive(d.active) + .addClass( + 'ui-accordion-header-active ui-state-active ui-corner-top' + ) + .removeClass('ui-corner-all')), + this.active.next().addClass('ui-accordion-content-active').show(), + this.headers + .attr('role', 'tab') + .each(function (b) { + var c = a(this), + d = c.attr('id'), + e = c.next(), + f = e.attr('id') + d || ((d = g + '-header-' + b), c.attr('id', d)), + f || ((f = g + '-panel-' + b), e.attr('id', f)), + c.attr('aria-controls', f), + e.attr('aria-labelledby', d) + }) + .next() + .attr('role', 'tabpanel'), + this.headers + .not(this.active) + .attr({ 'aria-selected': 'false', tabIndex: -1 }) + .next() + .attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }) + .hide(), + this.active.length + ? this.active + .attr({ 'aria-selected': 'true', tabIndex: 0 }) + .next() + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }) + : this.headers.eq(0).attr('tabIndex', 0), + this._createIcons(), + this._setupEvents(d.event), + 'fill' === e + ? ((b = f.height()), + this.element.siblings(':visible').each(function () { + var c = a(this), + d = c.css('position') + 'absolute' !== d && 'fixed' !== d && (b -= c.outerHeight(!0)) + }), + this.headers.each(function () { + b -= a(this).outerHeight(!0) + }), + this.headers + .next() + .each(function () { + a(this).height( + Math.max(0, b - a(this).innerHeight() + a(this).height()) + ) + }) + .css('overflow', 'auto')) + : 'auto' === e && + ((b = 0), + this.headers + .next() + .each(function () { + b = Math.max(b, a(this).css('height', '').height()) + }) + .height(b)) + }, + _activate: function (b) { + var c = this._findActive(b)[0] + c !== this.active[0] && + ((c = c || this.active[0]), + this._eventHandler({ + target: c, + currentTarget: c, + preventDefault: a.noop, + })) + }, + _findActive: function (b) { + return 'number' == typeof b ? this.headers.eq(b) : a() + }, + _setupEvents: function (b) { + var c = { keydown: '_keydown' } + b && + a.each(b.split(' '), function (a, b) { + c[b] = '_eventHandler' + }), + this._off(this.headers.add(this.headers.next())), + this._on(this.headers, c), + this._on(this.headers.next(), { keydown: '_panelKeyDown' }), + this._hoverable(this.headers), + this._focusable(this.headers) + }, + _eventHandler: function (b) { + var c = this.options, + d = this.active, + e = a(b.currentTarget), + f = e[0] === d[0], + g = f && c.collapsible, + h = g ? a() : e.next(), + i = d.next(), + j = { + oldHeader: d, + oldPanel: i, + newHeader: g ? a() : e, + newPanel: h, + } + b.preventDefault(), + (f && !c.collapsible) || + this._trigger('beforeActivate', b, j) === !1 || + ((c.active = !g && this.headers.index(e)), + (this.active = f ? a() : e), + this._toggle(j), + d.removeClass('ui-accordion-header-active ui-state-active'), + c.icons && + d + .children('.ui-accordion-header-icon') + .removeClass(c.icons.activeHeader) + .addClass(c.icons.header), + f || + (e + .removeClass('ui-corner-all') + .addClass( + 'ui-accordion-header-active ui-state-active ui-corner-top' + ), + c.icons && + e + .children('.ui-accordion-header-icon') + .removeClass(c.icons.header) + .addClass(c.icons.activeHeader), + e.next().addClass('ui-accordion-content-active'))) + }, + _toggle: function (b) { + var c = b.newPanel, + d = this.prevShow.length ? this.prevShow : b.oldPanel + this.prevShow.add(this.prevHide).stop(!0, !0), + (this.prevShow = c), + (this.prevHide = d), + this.options.animate + ? this._animate(c, d, b) + : (d.hide(), c.show(), this._toggleComplete(b)), + d.attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + d.prev().attr('aria-selected', 'false'), + c.length && d.length + ? d.prev().attr('tabIndex', -1) + : c.length && + this.headers + .filter(function () { + return 0 === a(this).attr('tabIndex') + }) + .attr('tabIndex', -1), + c + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }) + .prev() + .attr({ 'aria-selected': 'true', tabIndex: 0 }) + }, + _animate: function (a, b, c) { + var f, + g, + h, + i = this, + j = 0, + k = a.length && (!b.length || a.index() < b.index()), + l = this.options.animate || {}, + m = (k && l.down) || l, + n = function () { + i._toggleComplete(c) + } + return ( + 'number' == typeof m && (h = m), + 'string' == typeof m && (g = m), + (g = g || m.easing || l.easing), + (h = h || m.duration || l.duration), + b.length + ? a.length + ? ((f = a.show().outerHeight()), + b.animate(d, { + duration: h, + easing: g, + step: function (a, b) { + b.now = Math.round(a) + }, + }), + void a.hide().animate(e, { + duration: h, + easing: g, + complete: n, + step: function (a, c) { + ;(c.now = Math.round(a)), + 'height' !== c.prop + ? (j += c.now) + : 'content' !== i.options.heightStyle && + ((c.now = Math.round(f - b.outerHeight() - j)), + (j = 0)) + }, + })) + : b.animate(d, h, g, n) + : a.animate(e, h, g, n) + ) + }, + _toggleComplete: function (a) { + var b = a.oldPanel + b + .removeClass('ui-accordion-content-active') + .prev() + .removeClass('ui-corner-top') + .addClass('ui-corner-all'), + b.length && (b.parent()[0].className = b.parent()[0].className), + this._trigger('activate', null, a) + }, + }) + })(jQuery), + (function (a, b) { + var c = 0 + a.widget('ui.autocomplete', { + version: '1.10.3', + defaultElement: '', + options: { + appendTo: null, + autoFocus: !1, + delay: 300, + minLength: 1, + position: { my: 'left top', at: 'left bottom', collision: 'none' }, + source: null, + change: null, + close: null, + focus: null, + open: null, + response: null, + search: null, + select: null, + }, + pending: 0, + _create: function () { + var b, + c, + d, + e = this.element[0].nodeName.toLowerCase(), + f = 'textarea' === e, + g = 'input' === e + ;(this.isMultiLine = + !!f || (!g && this.element.prop('isContentEditable'))), + (this.valueMethod = this.element[f || g ? 'val' : 'text']), + (this.isNewMenu = !0), + this.element + .addClass('ui-autocomplete-input') + .attr('autocomplete', 'off'), + this._on(this.element, { + keydown: function (e) { + if (this.element.prop('readOnly')) + return (b = !0), (d = !0), void (c = !0) + ;(b = !1), (d = !1), (c = !1) + var f = a.ui.keyCode + switch (e.keyCode) { + case f.PAGE_UP: + ;(b = !0), this._move('previousPage', e) + break + case f.PAGE_DOWN: + ;(b = !0), this._move('nextPage', e) + break + case f.UP: + ;(b = !0), this._keyEvent('previous', e) + break + case f.DOWN: + ;(b = !0), this._keyEvent('next', e) + break + case f.ENTER: + case f.NUMPAD_ENTER: + this.menu.active && + ((b = !0), e.preventDefault(), this.menu.select(e)) + break + case f.TAB: + this.menu.active && this.menu.select(e) + break + case f.ESCAPE: + this.menu.element.is(':visible') && + (this._value(this.term), this.close(e), e.preventDefault()) + break + default: + ;(c = !0), this._searchTimeout(e) + } + }, + keypress: function (d) { + if (b) + return ( + (b = !1), + void ( + (this.isMultiLine && !this.menu.element.is(':visible')) || + d.preventDefault() + ) + ) + if (!c) { + var e = a.ui.keyCode + switch (d.keyCode) { + case e.PAGE_UP: + this._move('previousPage', d) + break + case e.PAGE_DOWN: + this._move('nextPage', d) + break + case e.UP: + this._keyEvent('previous', d) + break + case e.DOWN: + this._keyEvent('next', d) + } + } + }, + input: function (a) { + return d + ? ((d = !1), void a.preventDefault()) + : void this._searchTimeout(a) + }, + focus: function () { + ;(this.selectedItem = null), (this.previous = this._value()) + }, + blur: function (a) { + return this.cancelBlur + ? void delete this.cancelBlur + : (clearTimeout(this.searching), + this.close(a), + void this._change(a)) + }, + }), + this._initSource(), + (this.menu = a('
          ' + + (U[0] > 0 && y === U[1] - 1 + ? "
          " + : '') + : '')), + (x += B) + } + u += x + } + return (u += j), (a._keyEvent = !1), u + }, + _generateMonthYearHeader: function (a, b, c, d, e, f, g, h) { + var i, + j, + k, + l, + m, + n, + o, + p, + q = this._get(a, 'changeMonth'), + r = this._get(a, 'changeYear'), + s = this._get(a, 'showMonthAfterYear'), + t = "
          ", + u = '' + if (f || !q) + u += "" + g[b] + '' + else { + for ( + i = d && d.getFullYear() === c, + j = e && e.getFullYear() === c, + u += + "' + } + if ((s || (t += u + (!f && q && r ? '' : ' ')), !a.yearshtml)) + if (((a.yearshtml = ''), f || !r)) + t += "" + c + '' + else { + for ( + l = this._get(a, 'yearRange').split(':'), + m = new Date().getFullYear(), + n = function (a) { + var b = a.match(/c[+\-].*/) + ? c + parseInt(a.substring(1), 10) + : a.match(/[+\-].*/) + ? m + parseInt(a, 10) + : parseInt(a, 10) + return isNaN(b) ? m : b + }, + o = n(l[0]), + p = Math.max(o, n(l[1] || '')), + o = d ? Math.max(o, d.getFullYear()) : o, + p = e ? Math.min(p, e.getFullYear()) : p, + a.yearshtml += + "'), + (t += a.yearshtml), + (a.yearshtml = null) + } + return ( + (t += this._get(a, 'yearSuffix')), + s && (t += (!f && q && r ? '' : ' ') + u), + (t += '
          ') + ) + }, + _adjustInstDate: function (a, b, c) { + var d = a.drawYear + ('Y' === c ? b : 0), + e = a.drawMonth + ('M' === c ? b : 0), + f = + Math.min(a.selectedDay, this._getDaysInMonth(d, e)) + + ('D' === c ? b : 0), + g = this._restrictMinMax( + a, + this._daylightSavingAdjust(new Date(d, e, f)) + ) + ;(a.selectedDay = g.getDate()), + (a.drawMonth = a.selectedMonth = g.getMonth()), + (a.drawYear = a.selectedYear = g.getFullYear()), + ('M' !== c && 'Y' !== c) || this._notifyChange(a) + }, + _restrictMinMax: function (a, b) { + var c = this._getMinMaxDate(a, 'min'), + d = this._getMinMaxDate(a, 'max'), + e = c && b < c ? c : b + return d && e > d ? d : e + }, + _notifyChange: function (a) { + var b = this._get(a, 'onChangeMonthYear') + b && + b.apply(a.input ? a.input[0] : null, [ + a.selectedYear, + a.selectedMonth + 1, + a, + ]) + }, + _getNumberOfMonths: function (a) { + var b = this._get(a, 'numberOfMonths') + return null == b ? [1, 1] : 'number' == typeof b ? [1, b] : b + }, + _getMinMaxDate: function (a, b) { + return this._determineDate(a, this._get(a, b + 'Date'), null) + }, + _getDaysInMonth: function (a, b) { + return 32 - this._daylightSavingAdjust(new Date(a, b, 32)).getDate() + }, + _getFirstDayOfMonth: function (a, b) { + return new Date(a, b, 1).getDay() + }, + _canAdjustMonth: function (a, b, c, d) { + var e = this._getNumberOfMonths(a), + f = this._daylightSavingAdjust( + new Date(c, d + (b < 0 ? b : e[0] * e[1]), 1) + ) + return ( + b < 0 && + f.setDate(this._getDaysInMonth(f.getFullYear(), f.getMonth())), + this._isInRange(a, f) + ) + }, + _isInRange: function (a, b) { + var c, + d, + e = this._getMinMaxDate(a, 'min'), + f = this._getMinMaxDate(a, 'max'), + g = null, + h = null, + i = this._get(a, 'yearRange') + return ( + i && + ((c = i.split(':')), + (d = new Date().getFullYear()), + (g = parseInt(c[0], 10)), + (h = parseInt(c[1], 10)), + c[0].match(/[+\-].*/) && (g += d), + c[1].match(/[+\-].*/) && (h += d)), + (!e || b.getTime() >= e.getTime()) && + (!f || b.getTime() <= f.getTime()) && + (!g || b.getFullYear() >= g) && + (!h || b.getFullYear() <= h) + ) + }, + _getFormatConfig: function (a) { + var b = this._get(a, 'shortYearCutoff') + return ( + (b = + 'string' != typeof b + ? b + : (new Date().getFullYear() % 100) + parseInt(b, 10)), + { + shortYearCutoff: b, + dayNamesShort: this._get(a, 'dayNamesShort'), + dayNames: this._get(a, 'dayNames'), + monthNamesShort: this._get(a, 'monthNamesShort'), + monthNames: this._get(a, 'monthNames'), + } + ) + }, + _formatDate: function (a, b, c, d) { + b || + ((a.currentDay = a.selectedDay), + (a.currentMonth = a.selectedMonth), + (a.currentYear = a.selectedYear)) + var e = b + ? 'object' == typeof b + ? b + : this._daylightSavingAdjust(new Date(d, c, b)) + : this._daylightSavingAdjust( + new Date(a.currentYear, a.currentMonth, a.currentDay) + ) + return this.formatDate( + this._get(a, 'dateFormat'), + e, + this._getFormatConfig(a) + ) + }, + }), + (a.fn.datepicker = function (b) { + if (!this.length) return this + a.datepicker.initialized || + (a(document).mousedown(a.datepicker._checkExternalClick), + (a.datepicker.initialized = !0)), + 0 === a('#' + a.datepicker._mainDivId).length && + a('body').append(a.datepicker.dpDiv) + var c = Array.prototype.slice.call(arguments, 1) + return 'string' != typeof b || + ('isDisabled' !== b && 'getDate' !== b && 'widget' !== b) + ? 'option' === b && + 2 === arguments.length && + 'string' == typeof arguments[1] + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + : this.each(function () { + 'string' == typeof b + ? a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this].concat(c) + ) + : a.datepicker._attachDatepicker(this, b) + }) + : a.datepicker['_' + b + 'Datepicker'].apply( + a.datepicker, + [this[0]].concat(c) + ) + }), + (a.datepicker = new e()), + (a.datepicker.initialized = !1), + (a.datepicker.uuid = new Date().getTime()), + (a.datepicker.version = '1.10.3') + })(jQuery), + (function (a, b) { + var c = { + buttons: !0, + height: !0, + maxHeight: !0, + maxWidth: !0, + minHeight: !0, + minWidth: !0, + width: !0, + }, + d = { maxHeight: !0, maxWidth: !0, minHeight: !0, minWidth: !0 } + a.widget('ui.dialog', { + version: '1.10.3', + options: { + appendTo: 'body', + autoOpen: !0, + buttons: [], + closeOnEscape: !0, + closeText: 'close', + dialogClass: '', + draggable: !0, + hide: null, + height: 'auto', + maxHeight: null, + maxWidth: null, + minHeight: 150, + minWidth: 150, + modal: !1, + position: { + my: 'center', + at: 'center', + of: window, + collision: 'fit', + using: function (b) { + var c = a(this).css(b).offset().top + c < 0 && a(this).css('top', b.top - c) + }, + }, + resizable: !0, + show: null, + title: null, + width: 300, + beforeClose: null, + close: null, + drag: null, + dragStart: null, + dragStop: null, + focus: null, + open: null, + resize: null, + resizeStart: null, + resizeStop: null, + }, + _create: function () { + ;(this.originalCss = { + display: this.element[0].style.display, + width: this.element[0].style.width, + minHeight: this.element[0].style.minHeight, + maxHeight: this.element[0].style.maxHeight, + height: this.element[0].style.height, + }), + (this.originalPosition = { + parent: this.element.parent(), + index: this.element.parent().children().index(this.element), + }), + (this.originalTitle = this.element.attr('title')), + (this.options.title = this.options.title || this.originalTitle), + this._createWrapper(), + this.element + .show() + .removeAttr('title') + .addClass('ui-dialog-content ui-widget-content') + .appendTo(this.uiDialog), + this._createTitlebar(), + this._createButtonPane(), + this.options.draggable && a.fn.draggable && this._makeDraggable(), + this.options.resizable && a.fn.resizable && this._makeResizable(), + (this._isOpen = !1) + }, + _init: function () { + this.options.autoOpen && this.open() + }, + _appendTo: function () { + var b = this.options.appendTo + return b && (b.jquery || b.nodeType) + ? a(b) + : this.document.find(b || 'body').eq(0) + }, + _destroy: function () { + var a, + b = this.originalPosition + this._destroyOverlay(), + this.element + .removeUniqueId() + .removeClass('ui-dialog-content ui-widget-content') + .css(this.originalCss) + .detach(), + this.uiDialog.stop(!0, !0).remove(), + this.originalTitle && this.element.attr('title', this.originalTitle), + (a = b.parent.children().eq(b.index)), + a.length && a[0] !== this.element[0] + ? a.before(this.element) + : b.parent.append(this.element) + }, + widget: function () { + return this.uiDialog + }, + disable: a.noop, + enable: a.noop, + close: function (b) { + var c = this + this._isOpen && + this._trigger('beforeClose', b) !== !1 && + ((this._isOpen = !1), + this._destroyOverlay(), + this.opener.filter(':focusable').focus().length || + a(this.document[0].activeElement).blur(), + this._hide(this.uiDialog, this.options.hide, function () { + c._trigger('close', b) + })) + }, + isOpen: function () { + return this._isOpen + }, + moveToTop: function () { + this._moveToTop() + }, + _moveToTop: function (a, b) { + var c = !!this.uiDialog.nextAll(':visible').insertBefore(this.uiDialog) + .length + return c && !b && this._trigger('focus', a), c + }, + open: function () { + var b = this + return this._isOpen + ? void (this._moveToTop() && this._focusTabbable()) + : ((this._isOpen = !0), + (this.opener = a(this.document[0].activeElement)), + this._size(), + this._position(), + this._createOverlay(), + this._moveToTop(null, !0), + this._show(this.uiDialog, this.options.show, function () { + b._focusTabbable(), b._trigger('focus') + }), + void this._trigger('open')) + }, + _focusTabbable: function () { + var a = this.element.find('[autofocus]') + a.length || (a = this.element.find(':tabbable')), + a.length || (a = this.uiDialogButtonPane.find(':tabbable')), + a.length || (a = this.uiDialogTitlebarClose.filter(':tabbable')), + a.length || (a = this.uiDialog), + a.eq(0).focus() + }, + _keepFocus: function (b) { + function c() { + var b = this.document[0].activeElement, + c = this.uiDialog[0] === b || a.contains(this.uiDialog[0], b) + c || this._focusTabbable() + } + b.preventDefault(), c.call(this), this._delay(c) + }, + _createWrapper: function () { + ;(this.uiDialog = a('
          ') + .addClass( + 'ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ' + + this.options.dialogClass + ) + .hide() + .attr({ tabIndex: -1, role: 'dialog' }) + .appendTo(this._appendTo())), + this._on(this.uiDialog, { + keydown: function (b) { + if ( + this.options.closeOnEscape && + !b.isDefaultPrevented() && + b.keyCode && + b.keyCode === a.ui.keyCode.ESCAPE + ) + return b.preventDefault(), void this.close(b) + if (b.keyCode === a.ui.keyCode.TAB) { + var c = this.uiDialog.find(':tabbable'), + d = c.filter(':first'), + e = c.filter(':last') + ;(b.target !== e[0] && b.target !== this.uiDialog[0]) || + b.shiftKey + ? (b.target !== d[0] && b.target !== this.uiDialog[0]) || + !b.shiftKey || + (e.focus(1), b.preventDefault()) + : (d.focus(1), b.preventDefault()) + } + }, + mousedown: function (a) { + this._moveToTop(a) && this._focusTabbable() + }, + }), + this.element.find('[aria-describedby]').length || + this.uiDialog.attr({ + 'aria-describedby': this.element.uniqueId().attr('id'), + }) + }, + _createTitlebar: function () { + var b + ;(this.uiDialogTitlebar = a('
          ') + .addClass( + 'ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix' + ) + .prependTo(this.uiDialog)), + this._on(this.uiDialogTitlebar, { + mousedown: function (b) { + a(b.target).closest('.ui-dialog-titlebar-close') || + this.uiDialog.focus() + }, + }), + (this.uiDialogTitlebarClose = a('') + .button({ + label: this.options.closeText, + icons: { primary: 'ui-icon-closethick' }, + text: !1, + }) + .addClass('ui-dialog-titlebar-close') + .appendTo(this.uiDialogTitlebar)), + this._on(this.uiDialogTitlebarClose, { + click: function (a) { + a.preventDefault(), this.close(a) + }, + }), + (b = a('') + .uniqueId() + .addClass('ui-dialog-title') + .prependTo(this.uiDialogTitlebar)), + this._title(b), + this.uiDialog.attr({ 'aria-labelledby': b.attr('id') }) + }, + _title: function (a) { + this.options.title || a.html(' '), a.text(this.options.title) + }, + _createButtonPane: function () { + ;(this.uiDialogButtonPane = a('
          ').addClass( + 'ui-dialog-buttonpane ui-widget-content ui-helper-clearfix' + )), + (this.uiButtonSet = a('
          ') + .addClass('ui-dialog-buttonset') + .appendTo(this.uiDialogButtonPane)), + this._createButtons() + }, + _createButtons: function () { + var b = this, + c = this.options.buttons + return ( + this.uiDialogButtonPane.remove(), + this.uiButtonSet.empty(), + a.isEmptyObject(c) || (a.isArray(c) && !c.length) + ? void this.uiDialog.removeClass('ui-dialog-buttons') + : (a.each(c, function (c, d) { + var e, f + ;(d = a.isFunction(d) ? { click: d, text: c } : d), + (d = a.extend({ type: 'button' }, d)), + (e = d.click), + (d.click = function () { + e.apply(b.element[0], arguments) + }), + (f = { icons: d.icons, text: d.showText }), + delete d.icons, + delete d.showText, + a('', d).button(f).appendTo(b.uiButtonSet) + }), + this.uiDialog.addClass('ui-dialog-buttons'), + void this.uiDialogButtonPane.appendTo(this.uiDialog)) + ) + }, + _makeDraggable: function () { + function d(a) { + return { position: a.position, offset: a.offset } + } + var b = this, + c = this.options + this.uiDialog.draggable({ + cancel: '.ui-dialog-content, .ui-dialog-titlebar-close', + handle: '.ui-dialog-titlebar', + containment: 'document', + start: function (c, e) { + a(this).addClass('ui-dialog-dragging'), + b._blockFrames(), + b._trigger('dragStart', c, d(e)) + }, + drag: function (a, c) { + b._trigger('drag', a, d(c)) + }, + stop: function (e, f) { + ;(c.position = [ + f.position.left - b.document.scrollLeft(), + f.position.top - b.document.scrollTop(), + ]), + a(this).removeClass('ui-dialog-dragging'), + b._unblockFrames(), + b._trigger('dragStop', e, d(f)) + }, + }) + }, + _makeResizable: function () { + function g(a) { + return { + originalPosition: a.originalPosition, + originalSize: a.originalSize, + position: a.position, + size: a.size, + } + } + var b = this, + c = this.options, + d = c.resizable, + e = this.uiDialog.css('position'), + f = 'string' == typeof d ? d : 'n,e,s,w,se,sw,ne,nw' + this.uiDialog + .resizable({ + cancel: '.ui-dialog-content', + containment: 'document', + alsoResize: this.element, + maxWidth: c.maxWidth, + maxHeight: c.maxHeight, + minWidth: c.minWidth, + minHeight: this._minHeight(), + handles: f, + start: function (c, d) { + a(this).addClass('ui-dialog-resizing'), + b._blockFrames(), + b._trigger('resizeStart', c, g(d)) + }, + resize: function (a, c) { + b._trigger('resize', a, g(c)) + }, + stop: function (d, e) { + ;(c.height = a(this).height()), + (c.width = a(this).width()), + a(this).removeClass('ui-dialog-resizing'), + b._unblockFrames(), + b._trigger('resizeStop', d, g(e)) + }, + }) + .css('position', e) + }, + _minHeight: function () { + var a = this.options + return 'auto' === a.height + ? a.minHeight + : Math.min(a.minHeight, a.height) + }, + _position: function () { + var a = this.uiDialog.is(':visible') + a || this.uiDialog.show(), + this.uiDialog.position(this.options.position), + a || this.uiDialog.hide() + }, + _setOptions: function (b) { + var e = this, + f = !1, + g = {} + a.each(b, function (a, b) { + e._setOption(a, b), a in c && (f = !0), a in d && (g[a] = b) + }), + f && (this._size(), this._position()), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', g) + }, + _setOption: function (a, b) { + var c, + d, + e = this.uiDialog + 'dialogClass' === a && + e.removeClass(this.options.dialogClass).addClass(b), + 'disabled' !== a && + (this._super(a, b), + 'appendTo' === a && this.uiDialog.appendTo(this._appendTo()), + 'buttons' === a && this._createButtons(), + 'closeText' === a && + this.uiDialogTitlebarClose.button({ label: '' + b }), + 'draggable' === a && + ((c = e.is(':data(ui-draggable)')), + c && !b && e.draggable('destroy'), + !c && b && this._makeDraggable()), + 'position' === a && this._position(), + 'resizable' === a && + ((d = e.is(':data(ui-resizable)')), + d && !b && e.resizable('destroy'), + d && 'string' == typeof b && e.resizable('option', 'handles', b), + d || b === !1 || this._makeResizable()), + 'title' === a && + this._title(this.uiDialogTitlebar.find('.ui-dialog-title'))) + }, + _size: function () { + var a, + b, + c, + d = this.options + this.element + .show() + .css({ width: 'auto', minHeight: 0, maxHeight: 'none', height: 0 }), + d.minWidth > d.width && (d.width = d.minWidth), + (a = this.uiDialog + .css({ height: 'auto', width: d.width }) + .outerHeight()), + (b = Math.max(0, d.minHeight - a)), + (c = + 'number' == typeof d.maxHeight + ? Math.max(0, d.maxHeight - a) + : 'none'), + 'auto' === d.height + ? this.element.css({ minHeight: b, maxHeight: c, height: 'auto' }) + : this.element.height(Math.max(0, d.height - a)), + this.uiDialog.is(':data(ui-resizable)') && + this.uiDialog.resizable('option', 'minHeight', this._minHeight()) + }, + _blockFrames: function () { + this.iframeBlocks = this.document.find('iframe').map(function () { + var b = a(this) + return a('
          ') + .css({ + position: 'absolute', + width: b.outerWidth(), + height: b.outerHeight(), + }) + .appendTo(b.parent()) + .offset(b.offset())[0] + }) + }, + _unblockFrames: function () { + this.iframeBlocks && + (this.iframeBlocks.remove(), delete this.iframeBlocks) + }, + _allowInteraction: function (b) { + return ( + !!a(b.target).closest('.ui-dialog').length || + !!a(b.target).closest('.ui-datepicker').length + ) + }, + _createOverlay: function () { + if (this.options.modal) { + var b = this, + c = this.widgetFullName + a.ui.dialog.overlayInstances || + this._delay(function () { + a.ui.dialog.overlayInstances && + this.document.bind('focusin.dialog', function (d) { + b._allowInteraction(d) || + (d.preventDefault(), + a('.ui-dialog:visible:last .ui-dialog-content') + .data(c) + ._focusTabbable()) + }) + }), + (this.overlay = a('
          ') + .addClass('ui-widget-overlay ui-front') + .appendTo(this._appendTo())), + this._on(this.overlay, { mousedown: '_keepFocus' }), + a.ui.dialog.overlayInstances++ + } + }, + _destroyOverlay: function () { + this.options.modal && + this.overlay && + (a.ui.dialog.overlayInstances--, + a.ui.dialog.overlayInstances || + this.document.unbind('focusin.dialog'), + this.overlay.remove(), + (this.overlay = null)) + }, + }), + (a.ui.dialog.overlayInstances = 0), + a.uiBackCompat !== !1 && + a.widget('ui.dialog', a.ui.dialog, { + _position: function () { + var e, + b = this.options.position, + c = [], + d = [0, 0] + b + ? (('string' == typeof b || ('object' == typeof b && '0' in b)) && + ((c = b.split ? b.split(' ') : [b[0], b[1]]), + 1 === c.length && (c[1] = c[0]), + a.each(['left', 'top'], function (a, b) { + ;+c[a] === c[a] && ((d[a] = c[a]), (c[a] = b)) + }), + (b = { + my: + c[0] + + (d[0] < 0 ? d[0] : '+' + d[0]) + + ' ' + + c[1] + + (d[1] < 0 ? d[1] : '+' + d[1]), + at: c.join(' '), + })), + (b = a.extend({}, a.ui.dialog.prototype.options.position, b))) + : (b = a.ui.dialog.prototype.options.position), + (e = this.uiDialog.is(':visible')), + e || this.uiDialog.show(), + this.uiDialog.position(b), + e || this.uiDialog.hide() + }, + }) + })(jQuery), + (function (a, b) { + var c = /up|down|vertical/, + d = /up|left|vertical|horizontal/ + a.effects.effect.blind = function (b, e) { + var p, + q, + r, + f = a(this), + g = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + h = a.effects.setMode(f, b.mode || 'hide'), + i = b.direction || 'up', + j = c.test(i), + k = j ? 'height' : 'width', + l = j ? 'top' : 'left', + m = d.test(i), + n = {}, + o = 'show' === h + f.parent().is('.ui-effects-wrapper') + ? a.effects.save(f.parent(), g) + : a.effects.save(f, g), + f.show(), + (p = a.effects.createWrapper(f).css({ overflow: 'hidden' })), + (q = p[k]()), + (r = parseFloat(p.css(l)) || 0), + (n[k] = o ? q : 0), + m || + (f + .css(j ? 'bottom' : 'right', 0) + .css(j ? 'top' : 'left', 'auto') + .css({ position: 'absolute' }), + (n[l] = o ? r : q + r)), + o && (p.css(k, 0), m || p.css(l, r + q)), + p.animate(n, { + duration: b.duration, + easing: b.easing, + queue: !1, + complete: function () { + 'hide' === h && f.hide(), + a.effects.restore(f, g), + a.effects.removeWrapper(f), + e() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.bounce = function (b, c) { + var q, + r, + s, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = 'hide' === f, + h = 'show' === f, + i = b.direction || 'up', + j = b.distance, + k = b.times || 5, + l = 2 * k + (h || g ? 1 : 0), + m = b.duration / l, + n = b.easing, + o = 'up' === i || 'down' === i ? 'top' : 'left', + p = 'up' === i || 'left' === i, + t = d.queue(), + u = t.length + for ( + (h || g) && e.push('opacity'), + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + j || (j = d['top' === o ? 'outerHeight' : 'outerWidth']() / 3), + h && + ((s = { opacity: 1 }), + (s[o] = 0), + d + .css('opacity', 0) + .css(o, p ? 2 * -j : 2 * j) + .animate(s, m, n)), + g && (j /= Math.pow(2, k - 1)), + s = {}, + s[o] = 0, + q = 0; + q < k; + q++ + ) + (r = {}), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n).animate(s, m, n), + (j = g ? 2 * j : j / 2) + g && + ((r = { opacity: 0 }), + (r[o] = (p ? '-=' : '+=') + j), + d.animate(r, m, n)), + d.queue(function () { + g && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + u > 1 && t.splice.apply(t, [1, 0].concat(t.splice(u, l + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.clip = function (b, c) { + var m, + n, + o, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'vertical', + i = 'vertical' === h, + j = i ? 'height' : 'width', + k = i ? 'top' : 'left', + l = {} + a.effects.save(d, e), + d.show(), + (m = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (n = 'IMG' === d[0].tagName ? m : d), + (o = n[j]()), + g && (n.css(j, 0), n.css(k, o / 2)), + (l[j] = g ? o : 0), + (l[k] = g ? 0 : o / 2), + n.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + g || d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.drop = function (b, c) { + var l, + d = a(this), + e = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'opacity', + 'height', + 'width', + ], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h ? 'pos' : 'neg', + k = { opacity: g ? 1 : 0 } + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + (l = + b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0) / 2), + g && d.css('opacity', 0).css(i, 'pos' === j ? -l : l), + (k[i] = + (g ? ('pos' === j ? '+=' : '-=') : 'pos' === j ? '-=' : '+=') + l), + d.animate(k, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.explode = function (b, c) { + function s() { + l.push(this), l.length === d * e && t() + } + function t() { + f.css({ visibility: 'visible' }), a(l).remove(), h || f.hide(), c() + } + var m, + n, + o, + p, + q, + r, + d = b.pieces ? Math.round(Math.sqrt(b.pieces)) : 3, + e = d, + f = a(this), + g = a.effects.setMode(f, b.mode || 'hide'), + h = 'show' === g, + i = f.show().css('visibility', 'hidden').offset(), + j = Math.ceil(f.outerWidth() / e), + k = Math.ceil(f.outerHeight() / d), + l = [] + for (m = 0; m < d; m++) + for (p = i.top + m * k, r = m - (d - 1) / 2, n = 0; n < e; n++) + (o = i.left + n * j), + (q = n - (e - 1) / 2), + f + .clone() + .appendTo('body') + .wrap('
          ') + .css({ + position: 'absolute', + visibility: 'visible', + left: -n * j, + top: -m * k, + }) + .parent() + .addClass('ui-effects-explode') + .css({ + position: 'absolute', + overflow: 'hidden', + width: j, + height: k, + left: o + (h ? q * j : 0), + top: p + (h ? r * k : 0), + opacity: h ? 0 : 1, + }) + .animate( + { + left: o + (h ? 0 : q * j), + top: p + (h ? 0 : r * k), + opacity: h ? 1 : 0, + }, + b.duration || 500, + b.easing, + s + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fade = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'toggle') + d.animate( + { opacity: e }, + { queue: !1, duration: b.duration, easing: b.easing, complete: c } + ) + } + })(jQuery), + (function (a, b) { + a.effects.effect.fold = function (b, c) { + var o, + p, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'hide'), + g = 'show' === f, + h = 'hide' === f, + i = b.size || 15, + j = /([0-9]+)%/.exec(i), + k = !!b.horizFirst, + l = g !== k, + m = l ? ['width', 'height'] : ['height', 'width'], + n = b.duration / 2, + q = {}, + r = {} + a.effects.save(d, e), + d.show(), + (o = a.effects.createWrapper(d).css({ overflow: 'hidden' })), + (p = l ? [o.width(), o.height()] : [o.height(), o.width()]), + j && (i = (parseInt(j[1], 10) / 100) * p[h ? 0 : 1]), + g && o.css(k ? { height: 0, width: i } : { height: i, width: 0 }), + (q[m[0]] = g ? p[0] : i), + (r[m[1]] = g ? p[1] : 0), + o.animate(q, n, b.easing).animate(r, n, b.easing, function () { + h && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.highlight = function (b, c) { + var d = a(this), + e = ['backgroundImage', 'backgroundColor', 'opacity'], + f = a.effects.setMode(d, b.mode || 'show'), + g = { backgroundColor: d.css('backgroundColor') } + 'hide' === f && (g.opacity = 0), + a.effects.save(d, e), + d + .show() + .css({ + backgroundImage: 'none', + backgroundColor: b.color || '#ffff99', + }) + .animate(g, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), a.effects.restore(d, e), c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.pulsate = function (b, c) { + var n, + d = a(this), + e = a.effects.setMode(d, b.mode || 'show'), + f = 'show' === e, + g = 'hide' === e, + h = f || 'hide' === e, + i = 2 * (b.times || 5) + (h ? 1 : 0), + j = b.duration / i, + k = 0, + l = d.queue(), + m = l.length + for ( + (!f && d.is(':visible')) || (d.css('opacity', 0).show(), (k = 1)), + n = 1; + n < i; + n++ + ) + d.animate({ opacity: k }, j, b.easing), (k = 1 - k) + d.animate({ opacity: k }, j, b.easing), + d.queue(function () { + g && d.hide(), c() + }), + m > 1 && l.splice.apply(l, [1, 0].concat(l.splice(m, i + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + ;(a.effects.effect.puff = function (b, c) { + var d = a(this), + e = a.effects.setMode(d, b.mode || 'hide'), + f = 'hide' === e, + g = parseInt(b.percent, 10) || 150, + h = g / 100, + i = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + } + a.extend(b, { + effect: 'scale', + queue: !1, + fade: !0, + mode: e, + complete: c, + percent: f ? g : 100, + from: f + ? i + : { + height: i.height * h, + width: i.width * h, + outerHeight: i.outerHeight * h, + outerWidth: i.outerWidth * h, + }, + }), + d.effect(b) + }), + (a.effects.effect.scale = function (b, c) { + var d = a(this), + e = a.extend(!0, {}, b), + f = a.effects.setMode(d, b.mode || 'effect'), + g = + parseInt(b.percent, 10) || + (0 === parseInt(b.percent, 10) ? 0 : 'hide' === f ? 0 : 100), + h = b.direction || 'both', + i = b.origin, + j = { + height: d.height(), + width: d.width(), + outerHeight: d.outerHeight(), + outerWidth: d.outerWidth(), + }, + k = { + y: 'horizontal' !== h ? g / 100 : 1, + x: 'vertical' !== h ? g / 100 : 1, + } + ;(e.effect = 'size'), + (e.queue = !1), + (e.complete = c), + 'effect' !== f && + ((e.origin = i || ['middle', 'center']), (e.restore = !0)), + (e.from = + b.from || + ('show' === f + ? { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + : j)), + (e.to = { + height: j.height * k.y, + width: j.width * k.x, + outerHeight: j.outerHeight * k.y, + outerWidth: j.outerWidth * k.x, + }), + e.fade && + ('show' === f && ((e.from.opacity = 0), (e.to.opacity = 1)), + 'hide' === f && ((e.from.opacity = 1), (e.to.opacity = 0))), + d.effect(e) + }), + (a.effects.effect.size = function (b, c) { + var d, + e, + f, + g = a(this), + h = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'width', + 'height', + 'overflow', + 'opacity', + ], + i = [ + 'position', + 'top', + 'bottom', + 'left', + 'right', + 'overflow', + 'opacity', + ], + j = ['width', 'height', 'overflow'], + k = ['fontSize'], + l = [ + 'borderTopWidth', + 'borderBottomWidth', + 'paddingTop', + 'paddingBottom', + ], + m = [ + 'borderLeftWidth', + 'borderRightWidth', + 'paddingLeft', + 'paddingRight', + ], + n = a.effects.setMode(g, b.mode || 'effect'), + o = b.restore || 'effect' !== n, + p = b.scale || 'both', + q = b.origin || ['middle', 'center'], + r = g.css('position'), + s = o ? h : i, + t = { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } + 'show' === n && g.show(), + (d = { + height: g.height(), + width: g.width(), + outerHeight: g.outerHeight(), + outerWidth: g.outerWidth(), + }), + 'toggle' === b.mode && 'show' === n + ? ((g.from = b.to || t), (g.to = b.from || d)) + : ((g.from = b.from || ('show' === n ? t : d)), + (g.to = b.to || ('hide' === n ? t : d))), + (f = { + from: { y: g.from.height / d.height, x: g.from.width / d.width }, + to: { y: g.to.height / d.height, x: g.to.width / d.width }, + }), + ('box' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(l)), + (g.from = a.effects.setTransition(g, l, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, l, f.to.y, g.to))), + f.from.x !== f.to.x && + ((s = s.concat(m)), + (g.from = a.effects.setTransition(g, m, f.from.x, g.from)), + (g.to = a.effects.setTransition(g, m, f.to.x, g.to)))), + ('content' !== p && 'both' !== p) || + (f.from.y !== f.to.y && + ((s = s.concat(k).concat(j)), + (g.from = a.effects.setTransition(g, k, f.from.y, g.from)), + (g.to = a.effects.setTransition(g, k, f.to.y, g.to)))), + a.effects.save(g, s), + g.show(), + a.effects.createWrapper(g), + g.css('overflow', 'hidden').css(g.from), + q && + ((e = a.effects.getBaseline(q, d)), + (g.from.top = (d.outerHeight - g.outerHeight()) * e.y), + (g.from.left = (d.outerWidth - g.outerWidth()) * e.x), + (g.to.top = (d.outerHeight - g.to.outerHeight) * e.y), + (g.to.left = (d.outerWidth - g.to.outerWidth) * e.x)), + g.css(g.from), + ('content' !== p && 'both' !== p) || + ((l = l.concat(['marginTop', 'marginBottom']).concat(k)), + (m = m.concat(['marginLeft', 'marginRight'])), + (j = h.concat(l).concat(m)), + g.find('*[width]').each(function () { + var c = a(this), + d = { + height: c.height(), + width: c.width(), + outerHeight: c.outerHeight(), + outerWidth: c.outerWidth(), + } + o && a.effects.save(c, j), + (c.from = { + height: d.height * f.from.y, + width: d.width * f.from.x, + outerHeight: d.outerHeight * f.from.y, + outerWidth: d.outerWidth * f.from.x, + }), + (c.to = { + height: d.height * f.to.y, + width: d.width * f.to.x, + outerHeight: d.height * f.to.y, + outerWidth: d.width * f.to.x, + }), + f.from.y !== f.to.y && + ((c.from = a.effects.setTransition(c, l, f.from.y, c.from)), + (c.to = a.effects.setTransition(c, l, f.to.y, c.to))), + f.from.x !== f.to.x && + ((c.from = a.effects.setTransition(c, m, f.from.x, c.from)), + (c.to = a.effects.setTransition(c, m, f.to.x, c.to))), + c.css(c.from), + c.animate(c.to, b.duration, b.easing, function () { + o && a.effects.restore(c, j) + }) + })), + g.animate(g.to, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 0 === g.to.opacity && g.css('opacity', g.from.opacity), + 'hide' === n && g.hide(), + a.effects.restore(g, s), + o || + ('static' === r + ? g.css({ + position: 'relative', + top: g.to.top, + left: g.to.left, + }) + : a.each(['top', 'left'], function (a, b) { + g.css(b, function (b, c) { + var d = parseInt(c, 10), + e = a ? g.to.left : g.to.top + return 'auto' === c ? e + 'px' : d + e + 'px' + }) + })), + a.effects.removeWrapper(g), + c() + }, + }) + }) + })(jQuery), + (function (a, b) { + a.effects.effect.shake = function (b, c) { + var q, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'height', 'width'], + f = a.effects.setMode(d, b.mode || 'effect'), + g = b.direction || 'left', + h = b.distance || 20, + i = b.times || 3, + j = 2 * i + 1, + k = Math.round(b.duration / j), + l = 'up' === g || 'down' === g ? 'top' : 'left', + m = 'up' === g || 'left' === g, + n = {}, + o = {}, + p = {}, + r = d.queue(), + s = r.length + for ( + a.effects.save(d, e), + d.show(), + a.effects.createWrapper(d), + n[l] = (m ? '-=' : '+=') + h, + o[l] = (m ? '+=' : '-=') + 2 * h, + p[l] = (m ? '-=' : '+=') + 2 * h, + d.animate(n, k, b.easing), + q = 1; + q < i; + q++ + ) + d.animate(o, k, b.easing).animate(p, k, b.easing) + d + .animate(o, k, b.easing) + .animate(n, k / 2, b.easing) + .queue(function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }), + s > 1 && r.splice.apply(r, [1, 0].concat(r.splice(s, j + 1))), + d.dequeue() + } + })(jQuery), + (function (a, b) { + a.effects.effect.slide = function (b, c) { + var k, + d = a(this), + e = ['position', 'top', 'bottom', 'left', 'right', 'width', 'height'], + f = a.effects.setMode(d, b.mode || 'show'), + g = 'show' === f, + h = b.direction || 'left', + i = 'up' === h || 'down' === h ? 'top' : 'left', + j = 'up' === h || 'left' === h, + l = {} + a.effects.save(d, e), + d.show(), + (k = b.distance || d['top' === i ? 'outerHeight' : 'outerWidth'](!0)), + a.effects.createWrapper(d).css({ overflow: 'hidden' }), + g && d.css(i, j ? (isNaN(k) ? '-' + k : -k) : k), + (l[i] = (g ? (j ? '+=' : '-=') : j ? '-=' : '+=') + k), + d.animate(l, { + queue: !1, + duration: b.duration, + easing: b.easing, + complete: function () { + 'hide' === f && d.hide(), + a.effects.restore(d, e), + a.effects.removeWrapper(d), + c() + }, + }) + } + })(jQuery), + (function (a, b) { + a.effects.effect.transfer = function (b, c) { + var d = a(this), + e = a(b.to), + f = 'fixed' === e.css('position'), + g = a('body'), + h = f ? g.scrollTop() : 0, + i = f ? g.scrollLeft() : 0, + j = e.offset(), + k = { + top: j.top - h, + left: j.left - i, + height: e.innerHeight(), + width: e.innerWidth(), + }, + l = d.offset(), + m = a("
          ") + .appendTo(document.body) + .addClass(b.className) + .css({ + top: l.top - h, + left: l.left - i, + height: d.innerHeight(), + width: d.innerWidth(), + position: f ? 'fixed' : 'absolute', + }) + .animate(k, b.duration, b.easing, function () { + m.remove(), c() + }) + } + })(jQuery), + (function (a, b) { + a.widget('ui.menu', { + version: '1.10.3', + defaultElement: '
            ', + delay: 300, + options: { + icons: { submenu: 'ui-icon-carat-1-e' }, + menus: 'ul', + position: { my: 'left top', at: 'right top' }, + role: 'menu', + blur: null, + focus: null, + select: null, + }, + _create: function () { + ;(this.activeMenu = this.element), + (this.mouseHandled = !1), + this.element + .uniqueId() + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .toggleClass( + 'ui-menu-icons', + !!this.element.find('.ui-icon').length + ) + .attr({ role: this.options.role, tabIndex: 0 }) + .bind( + 'click' + this.eventNamespace, + a.proxy(function (a) { + this.options.disabled && a.preventDefault() + }, this) + ), + this.options.disabled && + this.element + .addClass('ui-state-disabled') + .attr('aria-disabled', 'true'), + this._on({ + 'mousedown .ui-menu-item > a': function (a) { + a.preventDefault() + }, + 'click .ui-state-disabled > a': function (a) { + a.preventDefault() + }, + 'click .ui-menu-item:has(a)': function (b) { + var c = a(b.target).closest('.ui-menu-item') + !this.mouseHandled && + c.not('.ui-state-disabled').length && + ((this.mouseHandled = !0), + this.select(b), + c.has('.ui-menu').length + ? this.expand(b) + : this.element.is(':focus') || + (this.element.trigger('focus', [!0]), + this.active && + 1 === this.active.parents('.ui-menu').length && + clearTimeout(this.timer))) + }, + 'mouseenter .ui-menu-item': function (b) { + var c = a(b.currentTarget) + c + .siblings() + .children('.ui-state-active') + .removeClass('ui-state-active'), + this.focus(b, c) + }, + mouseleave: 'collapseAll', + 'mouseleave .ui-menu': 'collapseAll', + focus: function (a, b) { + var c = + this.active || this.element.children('.ui-menu-item').eq(0) + b || this.focus(a, c) + }, + blur: function (b) { + this._delay(function () { + a.contains(this.element[0], this.document[0].activeElement) || + this.collapseAll(b) + }) + }, + keydown: '_keydown', + }), + this.refresh(), + this._on(this.document, { + click: function (b) { + a(b.target).closest('.ui-menu').length || this.collapseAll(b), + (this.mouseHandled = !1) + }, + }) + }, + _destroy: function () { + this.element + .removeAttr('aria-activedescendant') + .find('.ui-menu') + .addBack() + .removeClass( + 'ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons' + ) + .removeAttr('role') + .removeAttr('tabIndex') + .removeAttr('aria-labelledby') + .removeAttr('aria-expanded') + .removeAttr('aria-hidden') + .removeAttr('aria-disabled') + .removeUniqueId() + .show(), + this.element + .find('.ui-menu-item') + .removeClass('ui-menu-item') + .removeAttr('role') + .removeAttr('aria-disabled') + .children('a') + .removeUniqueId() + .removeClass('ui-corner-all ui-state-hover') + .removeAttr('tabIndex') + .removeAttr('role') + .removeAttr('aria-haspopup') + .children() + .each(function () { + var b = a(this) + b.data('ui-menu-submenu-carat') && b.remove() + }), + this.element + .find('.ui-menu-divider') + .removeClass('ui-menu-divider ui-widget-content') + }, + _keydown: function (b) { + function i(a) { + return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&') + } + var c, + d, + e, + f, + g, + h = !0 + switch (b.keyCode) { + case a.ui.keyCode.PAGE_UP: + this.previousPage(b) + break + case a.ui.keyCode.PAGE_DOWN: + this.nextPage(b) + break + case a.ui.keyCode.HOME: + this._move('first', 'first', b) + break + case a.ui.keyCode.END: + this._move('last', 'last', b) + break + case a.ui.keyCode.UP: + this.previous(b) + break + case a.ui.keyCode.DOWN: + this.next(b) + break + case a.ui.keyCode.LEFT: + this.collapse(b) + break + case a.ui.keyCode.RIGHT: + this.active && + !this.active.is('.ui-state-disabled') && + this.expand(b) + break + case a.ui.keyCode.ENTER: + case a.ui.keyCode.SPACE: + this._activate(b) + break + case a.ui.keyCode.ESCAPE: + this.collapse(b) + break + default: + ;(h = !1), + (d = this.previousFilter || ''), + (e = String.fromCharCode(b.keyCode)), + (f = !1), + clearTimeout(this.filterTimer), + e === d ? (f = !0) : (e = d + e), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + })), + (c = + f && c.index(this.active.next()) !== -1 + ? this.active.nextAll('.ui-menu-item') + : c), + c.length || + ((e = String.fromCharCode(b.keyCode)), + (g = new RegExp('^' + i(e), 'i')), + (c = this.activeMenu + .children('.ui-menu-item') + .filter(function () { + return g.test(a(this).children('a').text()) + }))), + c.length + ? (this.focus(b, c), + c.length > 1 + ? ((this.previousFilter = e), + (this.filterTimer = this._delay(function () { + delete this.previousFilter + }, 1e3))) + : delete this.previousFilter) + : delete this.previousFilter + } + h && b.preventDefault() + }, + _activate: function (a) { + this.active.is('.ui-state-disabled') || + (this.active.children("a[aria-haspopup='true']").length + ? this.expand(a) + : this.select(a)) + }, + refresh: function () { + var b, + c = this.options.icons.submenu, + d = this.element.find(this.options.menus) + d + .filter(':not(.ui-menu)') + .addClass('ui-menu ui-widget ui-widget-content ui-corner-all') + .hide() + .attr({ + role: this.options.role, + 'aria-hidden': 'true', + 'aria-expanded': 'false', + }) + .each(function () { + var b = a(this), + d = b.prev('a'), + e = a('') + .addClass('ui-menu-icon ui-icon ' + c) + .data('ui-menu-submenu-carat', !0) + d.attr('aria-haspopup', 'true').prepend(e), + b.attr('aria-labelledby', d.attr('id')) + }), + (b = d.add(this.element)), + b + .children(':not(.ui-menu-item):has(a)') + .addClass('ui-menu-item') + .attr('role', 'presentation') + .children('a') + .uniqueId() + .addClass('ui-corner-all') + .attr({ tabIndex: -1, role: this._itemRole() }), + b.children(':not(.ui-menu-item)').each(function () { + var b = a(this) + ;/[^\-\u2014\u2013\s]/.test(b.text()) || + b.addClass('ui-widget-content ui-menu-divider') + }), + b.children('.ui-state-disabled').attr('aria-disabled', 'true'), + this.active && + !a.contains(this.element[0], this.active[0]) && + this.blur() + }, + _itemRole: function () { + return { menu: 'menuitem', listbox: 'option' }[this.options.role] + }, + _setOption: function (a, b) { + 'icons' === a && + this.element + .find('.ui-menu-icon') + .removeClass(this.options.icons.submenu) + .addClass(b.submenu), + this._super(a, b) + }, + focus: function (a, b) { + var c, d + this.blur(a, a && 'focus' === a.type), + this._scrollIntoView(b), + (this.active = b.first()), + (d = this.active.children('a').addClass('ui-state-focus')), + this.options.role && + this.element.attr('aria-activedescendant', d.attr('id')), + this.active + .parent() + .closest('.ui-menu-item') + .children('a:first') + .addClass('ui-state-active'), + a && 'keydown' === a.type + ? this._close() + : (this.timer = this._delay(function () { + this._close() + }, this.delay)), + (c = b.children('.ui-menu')), + c.length && /^mouse/.test(a.type) && this._startOpening(c), + (this.activeMenu = b.parent()), + this._trigger('focus', a, { item: b }) + }, + _scrollIntoView: function (b) { + var c, d, e, f, g, h + this._hasScroll() && + ((c = parseFloat(a.css(this.activeMenu[0], 'borderTopWidth')) || 0), + (d = parseFloat(a.css(this.activeMenu[0], 'paddingTop')) || 0), + (e = b.offset().top - this.activeMenu.offset().top - c - d), + (f = this.activeMenu.scrollTop()), + (g = this.activeMenu.height()), + (h = b.height()), + e < 0 + ? this.activeMenu.scrollTop(f + e) + : e + h > g && this.activeMenu.scrollTop(f + e - g + h)) + }, + blur: function (a, b) { + b || clearTimeout(this.timer), + this.active && + (this.active.children('a').removeClass('ui-state-focus'), + (this.active = null), + this._trigger('blur', a, { item: this.active })) + }, + _startOpening: function (a) { + clearTimeout(this.timer), + 'true' === a.attr('aria-hidden') && + (this.timer = this._delay(function () { + this._close(), this._open(a) + }, this.delay)) + }, + _open: function (b) { + var c = a.extend({ of: this.active }, this.options.position) + clearTimeout(this.timer), + this.element + .find('.ui-menu') + .not(b.parents('.ui-menu')) + .hide() + .attr('aria-hidden', 'true'), + b + .show() + .removeAttr('aria-hidden') + .attr('aria-expanded', 'true') + .position(c) + }, + collapseAll: function (b, c) { + clearTimeout(this.timer), + (this.timer = this._delay(function () { + var d = c + ? this.element + : a(b && b.target).closest(this.element.find('.ui-menu')) + d.length || (d = this.element), + this._close(d), + this.blur(b), + (this.activeMenu = d) + }, this.delay)) + }, + _close: function (a) { + a || (a = this.active ? this.active.parent() : this.element), + a + .find('.ui-menu') + .hide() + .attr('aria-hidden', 'true') + .attr('aria-expanded', 'false') + .end() + .find('a.ui-state-active') + .removeClass('ui-state-active') + }, + collapse: function (a) { + var b = + this.active && + this.active.parent().closest('.ui-menu-item', this.element) + b && b.length && (this._close(), this.focus(a, b)) + }, + expand: function (a) { + var b = + this.active && + this.active.children('.ui-menu ').children('.ui-menu-item').first() + b && + b.length && + (this._open(b.parent()), + this._delay(function () { + this.focus(a, b) + })) + }, + next: function (a) { + this._move('next', 'first', a) + }, + previous: function (a) { + this._move('prev', 'last', a) + }, + isFirstItem: function () { + return this.active && !this.active.prevAll('.ui-menu-item').length + }, + isLastItem: function () { + return this.active && !this.active.nextAll('.ui-menu-item').length + }, + _move: function (a, b, c) { + var d + this.active && + (d = + 'first' === a || 'last' === a + ? this.active['first' === a ? 'prevAll' : 'nextAll']( + '.ui-menu-item' + ).eq(-1) + : this.active[a + 'All']('.ui-menu-item').eq(0)), + (d && d.length && this.active) || + (d = this.activeMenu.children('.ui-menu-item')[b]()), + this.focus(c, d) + }, + nextPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isLastItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.nextAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d - e < 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu + .children('.ui-menu-item') + [this.active ? 'last' : 'first']() + )) + ) + : void this.next(b) + }, + previousPage: function (b) { + var c, d, e + return this.active + ? void ( + this.isFirstItem() || + (this._hasScroll() + ? ((d = this.active.offset().top), + (e = this.element.height()), + this.active.prevAll('.ui-menu-item').each(function () { + return (c = a(this)), c.offset().top - d + e > 0 + }), + this.focus(b, c)) + : this.focus( + b, + this.activeMenu.children('.ui-menu-item').first() + )) + ) + : void this.next(b) + }, + _hasScroll: function () { + return this.element.outerHeight() < this.element.prop('scrollHeight') + }, + select: function (b) { + this.active = this.active || a(b.target).closest('.ui-menu-item') + var c = { item: this.active } + this.active.has('.ui-menu').length || this.collapseAll(b, !0), + this._trigger('select', b, c) + }, + }) + })(jQuery), + (function (a, b) { + function m(a, b, c) { + return [ + parseFloat(a[0]) * (k.test(a[0]) ? b / 100 : 1), + parseFloat(a[1]) * (k.test(a[1]) ? c / 100 : 1), + ] + } + function n(b, c) { + return parseInt(a.css(b, c), 10) || 0 + } + function o(b) { + var c = b[0] + return 9 === c.nodeType + ? { width: b.width(), height: b.height(), offset: { top: 0, left: 0 } } + : a.isWindow(c) + ? { + width: b.width(), + height: b.height(), + offset: { top: b.scrollTop(), left: b.scrollLeft() }, + } + : c.preventDefault + ? { width: 0, height: 0, offset: { top: c.pageY, left: c.pageX } } + : { width: b.outerWidth(), height: b.outerHeight(), offset: b.offset() } + } + a.ui = a.ui || {} + var c, + d = Math.max, + e = Math.abs, + f = Math.round, + g = /left|center|right/, + h = /top|center|bottom/, + i = /[\+\-]\d+(\.[\d]+)?%?/, + j = /^\w+/, + k = /%$/, + l = a.fn.position + ;(a.position = { + scrollbarWidth: function () { + if (c !== b) return c + var d, + e, + f = a( + "
            " + ), + g = f.children()[0] + return ( + a('body').append(f), + (d = g.offsetWidth), + f.css('overflow', 'scroll'), + (e = g.offsetWidth), + d === e && (e = f[0].clientWidth), + f.remove(), + (c = d - e) + ) + }, + getScrollInfo: function (b) { + var c = b.isWindow ? '' : b.element.css('overflow-x'), + d = b.isWindow ? '' : b.element.css('overflow-y'), + e = + 'scroll' === c || + ('auto' === c && b.width < b.element[0].scrollWidth), + f = + 'scroll' === d || + ('auto' === d && b.height < b.element[0].scrollHeight) + return { + width: f ? a.position.scrollbarWidth() : 0, + height: e ? a.position.scrollbarWidth() : 0, + } + }, + getWithinInfo: function (b) { + var c = a(b || window), + d = a.isWindow(c[0]) + return { + element: c, + isWindow: d, + offset: c.offset() || { left: 0, top: 0 }, + scrollLeft: c.scrollLeft(), + scrollTop: c.scrollTop(), + width: d ? c.width() : c.outerWidth(), + height: d ? c.height() : c.outerHeight(), + } + }, + }), + (a.fn.position = function (b) { + if (!b || !b.of) return l.apply(this, arguments) + b = a.extend({}, b) + var c, + k, + p, + q, + r, + s, + t = a(b.of), + u = a.position.getWithinInfo(b.within), + v = a.position.getScrollInfo(u), + w = (b.collision || 'flip').split(' '), + x = {} + return ( + (s = o(t)), + t[0].preventDefault && (b.at = 'left top'), + (k = s.width), + (p = s.height), + (q = s.offset), + (r = a.extend({}, q)), + a.each(['my', 'at'], function () { + var c, + d, + a = (b[this] || '').split(' ') + 1 === a.length && + (a = g.test(a[0]) + ? a.concat(['center']) + : h.test(a[0]) + ? ['center'].concat(a) + : ['center', 'center']), + (a[0] = g.test(a[0]) ? a[0] : 'center'), + (a[1] = h.test(a[1]) ? a[1] : 'center'), + (c = i.exec(a[0])), + (d = i.exec(a[1])), + (x[this] = [c ? c[0] : 0, d ? d[0] : 0]), + (b[this] = [j.exec(a[0])[0], j.exec(a[1])[0]]) + }), + 1 === w.length && (w[1] = w[0]), + 'right' === b.at[0] + ? (r.left += k) + : 'center' === b.at[0] && (r.left += k / 2), + 'bottom' === b.at[1] + ? (r.top += p) + : 'center' === b.at[1] && (r.top += p / 2), + (c = m(x.at, k, p)), + (r.left += c[0]), + (r.top += c[1]), + this.each(function () { + var g, + h, + i = a(this), + j = i.outerWidth(), + l = i.outerHeight(), + o = n(this, 'marginLeft'), + s = n(this, 'marginTop'), + y = j + o + n(this, 'marginRight') + v.width, + z = l + s + n(this, 'marginBottom') + v.height, + A = a.extend({}, r), + B = m(x.my, i.outerWidth(), i.outerHeight()) + 'right' === b.my[0] + ? (A.left -= j) + : 'center' === b.my[0] && (A.left -= j / 2), + 'bottom' === b.my[1] + ? (A.top -= l) + : 'center' === b.my[1] && (A.top -= l / 2), + (A.left += B[0]), + (A.top += B[1]), + a.support.offsetFractions || + ((A.left = f(A.left)), (A.top = f(A.top))), + (g = { marginLeft: o, marginTop: s }), + a.each(['left', 'top'], function (d, e) { + a.ui.position[w[d]] && + a.ui.position[w[d]][e](A, { + targetWidth: k, + targetHeight: p, + elemWidth: j, + elemHeight: l, + collisionPosition: g, + collisionWidth: y, + collisionHeight: z, + offset: [c[0] + B[0], c[1] + B[1]], + my: b.my, + at: b.at, + within: u, + elem: i, + }) + }), + b.using && + (h = function (a) { + var c = q.left - A.left, + f = c + k - j, + g = q.top - A.top, + h = g + p - l, + m = { + target: { + element: t, + left: q.left, + top: q.top, + width: k, + height: p, + }, + element: { + element: i, + left: A.left, + top: A.top, + width: j, + height: l, + }, + horizontal: f < 0 ? 'left' : c > 0 ? 'right' : 'center', + vertical: h < 0 ? 'top' : g > 0 ? 'bottom' : 'middle', + } + k < j && e(c + f) < k && (m.horizontal = 'center'), + p < l && e(g + h) < p && (m.vertical = 'middle'), + d(e(c), e(f)) > d(e(g), e(h)) + ? (m.important = 'horizontal') + : (m.important = 'vertical'), + b.using.call(this, a, m) + }), + i.offset(a.extend(A, { using: h })) + }) + ) + }), + (a.ui.position = { + fit: { + left: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollLeft : c.offset.left, + f = c.width, + g = a.left - b.collisionPosition.marginLeft, + h = e - g, + i = g + b.collisionWidth - f - e + b.collisionWidth > f + ? h > 0 && i <= 0 + ? ((j = a.left + h + b.collisionWidth - f - e), + (a.left += h - j)) + : i > 0 && h <= 0 + ? (a.left = e) + : h > i + ? (a.left = e + f - b.collisionWidth) + : (a.left = e) + : h > 0 + ? (a.left += h) + : i > 0 + ? (a.left -= i) + : (a.left = d(a.left - g, a.left)) + }, + top: function (a, b) { + var j, + c = b.within, + e = c.isWindow ? c.scrollTop : c.offset.top, + f = b.within.height, + g = a.top - b.collisionPosition.marginTop, + h = e - g, + i = g + b.collisionHeight - f - e + b.collisionHeight > f + ? h > 0 && i <= 0 + ? ((j = a.top + h + b.collisionHeight - f - e), + (a.top += h - j)) + : i > 0 && h <= 0 + ? (a.top = e) + : h > i + ? (a.top = e + f - b.collisionHeight) + : (a.top = e) + : h > 0 + ? (a.top += h) + : i > 0 + ? (a.top -= i) + : (a.top = d(a.top - g, a.top)) + }, + }, + flip: { + left: function (a, b) { + var n, + o, + c = b.within, + d = c.offset.left + c.scrollLeft, + f = c.width, + g = c.isWindow ? c.scrollLeft : c.offset.left, + h = a.left - b.collisionPosition.marginLeft, + i = h - g, + j = h + b.collisionWidth - f - g, + k = + 'left' === b.my[0] + ? -b.elemWidth + : 'right' === b.my[0] + ? b.elemWidth + : 0, + l = + 'left' === b.at[0] + ? b.targetWidth + : 'right' === b.at[0] + ? -b.targetWidth + : 0, + m = -2 * b.offset[0] + i < 0 + ? ((n = a.left + k + l + m + b.collisionWidth - f - d), + (n < 0 || n < e(i)) && (a.left += k + l + m)) + : j > 0 && + ((o = a.left - b.collisionPosition.marginLeft + k + l + m - g), + (o > 0 || e(o) < j) && (a.left += k + l + m)) + }, + top: function (a, b) { + var o, + p, + c = b.within, + d = c.offset.top + c.scrollTop, + f = c.height, + g = c.isWindow ? c.scrollTop : c.offset.top, + h = a.top - b.collisionPosition.marginTop, + i = h - g, + j = h + b.collisionHeight - f - g, + k = 'top' === b.my[1], + l = k ? -b.elemHeight : 'bottom' === b.my[1] ? b.elemHeight : 0, + m = + 'top' === b.at[1] + ? b.targetHeight + : 'bottom' === b.at[1] + ? -b.targetHeight + : 0, + n = -2 * b.offset[1] + i < 0 + ? ((p = a.top + l + m + n + b.collisionHeight - f - d), + a.top + l + m + n > i && + (p < 0 || p < e(i)) && + (a.top += l + m + n)) + : j > 0 && + ((o = a.top - b.collisionPosition.marginTop + l + m + n - g), + a.top + l + m + n > j && + (o > 0 || e(o) < j) && + (a.top += l + m + n)) + }, + }, + flipfit: { + left: function () { + a.ui.position.flip.left.apply(this, arguments), + a.ui.position.fit.left.apply(this, arguments) + }, + top: function () { + a.ui.position.flip.top.apply(this, arguments), + a.ui.position.fit.top.apply(this, arguments) + }, + }, + }), + (function () { + var b, + c, + d, + e, + f, + g = document.getElementsByTagName('body')[0], + h = document.createElement('div') + ;(b = document.createElement(g ? 'div' : 'body')), + (d = { + visibility: 'hidden', + width: 0, + height: 0, + border: 0, + margin: 0, + background: 'none', + }), + g && + a.extend(d, { + position: 'absolute', + left: '-1000px', + top: '-1000px', + }) + for (f in d) b.style[f] = d[f] + b.appendChild(h), + (c = g || document.documentElement), + c.insertBefore(b, c.firstChild), + (h.style.cssText = 'position: absolute; left: 10.7432222px;'), + (e = a(h).offset().left), + (a.support.offsetFractions = e > 10 && e < 11), + (b.innerHTML = ''), + c.removeChild(b) + })() + })(jQuery), + (function (a, b) { + a.widget('ui.progressbar', { + version: '1.10.3', + options: { max: 100, value: 0, change: null, complete: null }, + min: 0, + _create: function () { + ;(this.oldValue = this.options.value = this._constrainedValue()), + this.element + .addClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .attr({ role: 'progressbar', 'aria-valuemin': this.min }), + (this.valueDiv = a( + "
            " + ).appendTo(this.element)), + this._refreshValue() + }, + _destroy: function () { + this.element + .removeClass( + 'ui-progressbar ui-widget ui-widget-content ui-corner-all' + ) + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.valueDiv.remove() + }, + value: function (a) { + return a === b + ? this.options.value + : ((this.options.value = this._constrainedValue(a)), + void this._refreshValue()) + }, + _constrainedValue: function (a) { + return ( + a === b && (a = this.options.value), + (this.indeterminate = a === !1), + 'number' != typeof a && (a = 0), + !this.indeterminate && + Math.min(this.options.max, Math.max(this.min, a)) + ) + }, + _setOptions: function (a) { + var b = a.value + delete a.value, + this._super(a), + (this.options.value = this._constrainedValue(b)), + this._refreshValue() + }, + _setOption: function (a, b) { + 'max' === a && (b = Math.max(this.min, b)), this._super(a, b) + }, + _percentage: function () { + return this.indeterminate + ? 100 + : (100 * (this.options.value - this.min)) / + (this.options.max - this.min) + }, + _refreshValue: function () { + var b = this.options.value, + c = this._percentage() + this.valueDiv + .toggle(this.indeterminate || b > this.min) + .toggleClass('ui-corner-right', b === this.options.max) + .width(c.toFixed(0) + '%'), + this.element.toggleClass( + 'ui-progressbar-indeterminate', + this.indeterminate + ), + this.indeterminate + ? (this.element.removeAttr('aria-valuenow'), + this.overlayDiv || + (this.overlayDiv = a( + "
            " + ).appendTo(this.valueDiv))) + : (this.element.attr({ + 'aria-valuemax': this.options.max, + 'aria-valuenow': b, + }), + this.overlayDiv && + (this.overlayDiv.remove(), (this.overlayDiv = null))), + this.oldValue !== b && ((this.oldValue = b), this._trigger('change')), + b === this.options.max && this._trigger('complete') + }, + }) + })(jQuery), + (function (a, b) { + var c = 5 + a.widget('ui.slider', a.ui.mouse, { + version: '1.10.3', + widgetEventPrefix: 'slide', + options: { + animate: !1, + distance: 0, + max: 100, + min: 0, + orientation: 'horizontal', + range: !1, + step: 1, + value: 0, + values: null, + change: null, + slide: null, + start: null, + stop: null, + }, + _create: function () { + ;(this._keySliding = !1), + (this._mouseSliding = !1), + (this._animateOff = !0), + (this._handleIndex = null), + this._detectOrientation(), + this._mouseInit(), + this.element.addClass( + 'ui-slider ui-slider-' + + this.orientation + + ' ui-widget ui-widget-content ui-corner-all' + ), + this._refresh(), + this._setOption('disabled', this.options.disabled), + (this._animateOff = !1) + }, + _refresh: function () { + this._createRange(), + this._createHandles(), + this._setupEvents(), + this._refreshValue() + }, + _createHandles: function () { + var b, + c, + d = this.options, + e = this.element + .find('.ui-slider-handle') + .addClass('ui-state-default ui-corner-all'), + f = + "", + g = [] + for ( + c = (d.values && d.values.length) || 1, + e.length > c && (e.slice(c).remove(), (e = e.slice(0, c))), + b = e.length; + b < c; + b++ + ) + g.push(f) + ;(this.handles = e.add(a(g.join('')).appendTo(this.element))), + (this.handle = this.handles.eq(0)), + this.handles.each(function (b) { + a(this).data('ui-slider-handle-index', b) + }) + }, + _createRange: function () { + var b = this.options, + c = '' + b.range + ? (b.range === !0 && + (b.values + ? b.values.length && 2 !== b.values.length + ? (b.values = [b.values[0], b.values[0]]) + : a.isArray(b.values) && (b.values = b.values.slice(0)) + : (b.values = [this._valueMin(), this._valueMin()])), + this.range && this.range.length + ? this.range + .removeClass('ui-slider-range-min ui-slider-range-max') + .css({ left: '', bottom: '' }) + : ((this.range = a('
            ').appendTo(this.element)), + (c = 'ui-slider-range ui-widget-header ui-corner-all')), + this.range.addClass( + c + + ('min' === b.range || 'max' === b.range + ? ' ui-slider-range-' + b.range + : '') + )) + : (this.range = a([])) + }, + _setupEvents: function () { + var a = this.handles.add(this.range).filter('a') + this._off(a), + this._on(a, this._handleEvents), + this._hoverable(a), + this._focusable(a) + }, + _destroy: function () { + this.handles.remove(), + this.range.remove(), + this.element.removeClass( + 'ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all' + ), + this._mouseDestroy() + }, + _mouseCapture: function (b) { + var c, + d, + e, + f, + g, + h, + i, + j, + k = this, + l = this.options + return ( + !l.disabled && + ((this.elementSize = { + width: this.element.outerWidth(), + height: this.element.outerHeight(), + }), + (this.elementOffset = this.element.offset()), + (c = { x: b.pageX, y: b.pageY }), + (d = this._normValueFromMouse(c)), + (e = this._valueMax() - this._valueMin() + 1), + this.handles.each(function (b) { + var c = Math.abs(d - k.values(b)) + ;(e > c || + (e === c && + (b === k._lastChangedValue || k.values(b) === l.min))) && + ((e = c), (f = a(this)), (g = b)) + }), + (h = this._start(b, g)), + h !== !1 && + ((this._mouseSliding = !0), + (this._handleIndex = g), + f.addClass('ui-state-active').focus(), + (i = f.offset()), + (j = !a(b.target).parents().addBack().is('.ui-slider-handle')), + (this._clickOffset = j + ? { left: 0, top: 0 } + : { + left: b.pageX - i.left - f.width() / 2, + top: + b.pageY - + i.top - + f.height() / 2 - + (parseInt(f.css('borderTopWidth'), 10) || 0) - + (parseInt(f.css('borderBottomWidth'), 10) || 0) + + (parseInt(f.css('marginTop'), 10) || 0), + }), + this.handles.hasClass('ui-state-hover') || this._slide(b, g, d), + (this._animateOff = !0), + !0)) + ) + }, + _mouseStart: function () { + return !0 + }, + _mouseDrag: function (a) { + var b = { x: a.pageX, y: a.pageY }, + c = this._normValueFromMouse(b) + return this._slide(a, this._handleIndex, c), !1 + }, + _mouseStop: function (a) { + return ( + this.handles.removeClass('ui-state-active'), + (this._mouseSliding = !1), + this._stop(a, this._handleIndex), + this._change(a, this._handleIndex), + (this._handleIndex = null), + (this._clickOffset = null), + (this._animateOff = !1), + !1 + ) + }, + _detectOrientation: function () { + this.orientation = + 'vertical' === this.options.orientation ? 'vertical' : 'horizontal' + }, + _normValueFromMouse: function (a) { + var b, c, d, e, f + return ( + 'horizontal' === this.orientation + ? ((b = this.elementSize.width), + (c = + a.x - + this.elementOffset.left - + (this._clickOffset ? this._clickOffset.left : 0))) + : ((b = this.elementSize.height), + (c = + a.y - + this.elementOffset.top - + (this._clickOffset ? this._clickOffset.top : 0))), + (d = c / b), + d > 1 && (d = 1), + d < 0 && (d = 0), + 'vertical' === this.orientation && (d = 1 - d), + (e = this._valueMax() - this._valueMin()), + (f = this._valueMin() + d * e), + this._trimAlignValue(f) + ) + }, + _start: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + return ( + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('start', a, c) + ) + }, + _slide: function (a, b, c) { + var d, e, f + this.options.values && this.options.values.length + ? ((d = this.values(b ? 0 : 1)), + 2 === this.options.values.length && + this.options.range === !0 && + ((0 === b && c > d) || (1 === b && c < d)) && + (c = d), + c !== this.values(b) && + ((e = this.values()), + (e[b] = c), + (f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + values: e, + })), + (d = this.values(b ? 0 : 1)), + f !== !1 && this.values(b, c, !0))) + : c !== this.value() && + ((f = this._trigger('slide', a, { + handle: this.handles[b], + value: c, + })), + f !== !1 && this.value(c)) + }, + _stop: function (a, b) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + this._trigger('stop', a, c) + }, + _change: function (a, b) { + if (!this._keySliding && !this._mouseSliding) { + var c = { handle: this.handles[b], value: this.value() } + this.options.values && + this.options.values.length && + ((c.value = this.values(b)), (c.values = this.values())), + (this._lastChangedValue = b), + this._trigger('change', a, c) + } + }, + value: function (a) { + return arguments.length + ? ((this.options.value = this._trimAlignValue(a)), + this._refreshValue(), + void this._change(null, 0)) + : this._value() + }, + values: function (b, c) { + var d, e, f + if (arguments.length > 1) + return ( + (this.options.values[b] = this._trimAlignValue(c)), + this._refreshValue(), + void this._change(null, b) + ) + if (!arguments.length) return this._values() + if (!a.isArray(arguments[0])) + return this.options.values && this.options.values.length + ? this._values(b) + : this.value() + for ( + d = this.options.values, e = arguments[0], f = 0; + f < d.length; + f += 1 + ) + (d[f] = this._trimAlignValue(e[f])), this._change(null, f) + this._refreshValue() + }, + _setOption: function (b, c) { + var d, + e = 0 + switch ( + ('range' === b && + this.options.range === !0 && + ('min' === c + ? ((this.options.value = this._values(0)), + (this.options.values = null)) + : 'max' === c && + ((this.options.value = this._values( + this.options.values.length - 1 + )), + (this.options.values = null))), + a.isArray(this.options.values) && (e = this.options.values.length), + a.Widget.prototype._setOption.apply(this, arguments), + b) + ) { + case 'orientation': + this._detectOrientation(), + this.element + .removeClass('ui-slider-horizontal ui-slider-vertical') + .addClass('ui-slider-' + this.orientation), + this._refreshValue() + break + case 'value': + ;(this._animateOff = !0), + this._refreshValue(), + this._change(null, 0), + (this._animateOff = !1) + break + case 'values': + for ( + this._animateOff = !0, this._refreshValue(), d = 0; + d < e; + d += 1 + ) + this._change(null, d) + this._animateOff = !1 + break + case 'min': + case 'max': + ;(this._animateOff = !0), + this._refreshValue(), + (this._animateOff = !1) + break + case 'range': + ;(this._animateOff = !0), this._refresh(), (this._animateOff = !1) + } + }, + _value: function () { + var a = this.options.value + return (a = this._trimAlignValue(a)) + }, + _values: function (a) { + var b, c, d + if (arguments.length) + return (b = this.options.values[a]), (b = this._trimAlignValue(b)) + if (this.options.values && this.options.values.length) { + for (c = this.options.values.slice(), d = 0; d < c.length; d += 1) + c[d] = this._trimAlignValue(c[d]) + return c + } + return [] + }, + _trimAlignValue: function (a) { + if (a <= this._valueMin()) return this._valueMin() + if (a >= this._valueMax()) return this._valueMax() + var b = this.options.step > 0 ? this.options.step : 1, + c = (a - this._valueMin()) % b, + d = a - c + return ( + 2 * Math.abs(c) >= b && (d += c > 0 ? b : -b), + parseFloat(d.toFixed(5)) + ) + }, + _valueMin: function () { + return this.options.min + }, + _valueMax: function () { + return this.options.max + }, + _refreshValue: function () { + var b, + c, + d, + e, + f, + g = this.options.range, + h = this.options, + i = this, + j = !this._animateOff && h.animate, + k = {} + this.options.values && this.options.values.length + ? this.handles.each(function (d) { + ;(c = + ((i.values(d) - i._valueMin()) / + (i._valueMax() - i._valueMin())) * + 100), + (k['horizontal' === i.orientation ? 'left' : 'bottom'] = + c + '%'), + a(this).stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + i.options.range === !0 && + ('horizontal' === i.orientation + ? (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']({ left: c + '%' }, h.animate), + 1 === d && + i.range[j ? 'animate' : 'css']( + { width: c - b + '%' }, + { queue: !1, duration: h.animate } + )) + : (0 === d && + i.range + .stop(1, 1) + [j ? 'animate' : 'css']( + { bottom: c + '%' }, + h.animate + ), + 1 === d && + i.range[j ? 'animate' : 'css']( + { height: c - b + '%' }, + { queue: !1, duration: h.animate } + ))), + (b = c) + }) + : ((d = this.value()), + (e = this._valueMin()), + (f = this._valueMax()), + (c = f !== e ? ((d - e) / (f - e)) * 100 : 0), + (k['horizontal' === this.orientation ? 'left' : 'bottom'] = + c + '%'), + this.handle.stop(1, 1)[j ? 'animate' : 'css'](k, h.animate), + 'min' === g && + 'horizontal' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ width: c + '%' }, h.animate), + 'max' === g && + 'horizontal' === this.orientation && + this.range[j ? 'animate' : 'css']( + { width: 100 - c + '%' }, + { queue: !1, duration: h.animate } + ), + 'min' === g && + 'vertical' === this.orientation && + this.range + .stop(1, 1) + [j ? 'animate' : 'css']({ height: c + '%' }, h.animate), + 'max' === g && + 'vertical' === this.orientation && + this.range[j ? 'animate' : 'css']( + { height: 100 - c + '%' }, + { queue: !1, duration: h.animate } + )) + }, + _handleEvents: { + keydown: function (b) { + var d, + e, + f, + g, + h = a(b.target).data('ui-slider-handle-index') + switch (b.keyCode) { + case a.ui.keyCode.HOME: + case a.ui.keyCode.END: + case a.ui.keyCode.PAGE_UP: + case a.ui.keyCode.PAGE_DOWN: + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if ( + (b.preventDefault(), + !this._keySliding && + ((this._keySliding = !0), + a(b.target).addClass('ui-state-active'), + (d = this._start(b, h)), + d === !1)) + ) + return + } + switch ( + ((g = this.options.step), + (e = f = + this.options.values && this.options.values.length + ? this.values(h) + : this.value()), + b.keyCode) + ) { + case a.ui.keyCode.HOME: + f = this._valueMin() + break + case a.ui.keyCode.END: + f = this._valueMax() + break + case a.ui.keyCode.PAGE_UP: + f = this._trimAlignValue( + e + (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.PAGE_DOWN: + f = this._trimAlignValue( + e - (this._valueMax() - this._valueMin()) / c + ) + break + case a.ui.keyCode.UP: + case a.ui.keyCode.RIGHT: + if (e === this._valueMax()) return + f = this._trimAlignValue(e + g) + break + case a.ui.keyCode.DOWN: + case a.ui.keyCode.LEFT: + if (e === this._valueMin()) return + f = this._trimAlignValue(e - g) + } + this._slide(b, h, f) + }, + click: function (a) { + a.preventDefault() + }, + keyup: function (b) { + var c = a(b.target).data('ui-slider-handle-index') + this._keySliding && + ((this._keySliding = !1), + this._stop(b, c), + this._change(b, c), + a(b.target).removeClass('ui-state-active')) + }, + }, + }) + })(jQuery), + (function (a) { + function b(a) { + return function () { + var b = this.element.val() + a.apply(this, arguments), + this._refresh(), + b !== this.element.val() && this._trigger('change') + } + } + a.widget('ui.spinner', { + version: '1.10.3', + defaultElement: '', + widgetEventPrefix: 'spin', + options: { + culture: null, + icons: { down: 'ui-icon-triangle-1-s', up: 'ui-icon-triangle-1-n' }, + incremental: !0, + max: null, + min: null, + numberFormat: null, + page: 10, + step: 1, + change: null, + spin: null, + start: null, + stop: null, + }, + _create: function () { + this._setOption('max', this.options.max), + this._setOption('min', this.options.min), + this._setOption('step', this.options.step), + this._value(this.element.val(), !0), + this._draw(), + this._on(this._events), + this._refresh(), + this._on(this.window, { + beforeunload: function () { + this.element.removeAttr('autocomplete') + }, + }) + }, + _getCreateOptions: function () { + var b = {}, + c = this.element + return ( + a.each(['min', 'max', 'step'], function (a, d) { + var e = c.attr(d) + void 0 !== e && e.length && (b[d] = e) + }), + b + ) + }, + _events: { + keydown: function (a) { + this._start(a) && this._keydown(a) && a.preventDefault() + }, + keyup: '_stop', + focus: function () { + this.previous = this.element.val() + }, + blur: function (a) { + return this.cancelBlur + ? void delete this.cancelBlur + : (this._stop(), + this._refresh(), + void ( + this.previous !== this.element.val() && + this._trigger('change', a) + )) + }, + mousewheel: function (a, b) { + if (b) { + if (!this.spinning && !this._start(a)) return !1 + this._spin((b > 0 ? 1 : -1) * this.options.step, a), + clearTimeout(this.mousewheelTimer), + (this.mousewheelTimer = this._delay(function () { + this.spinning && this._stop(a) + }, 100)), + a.preventDefault() + } + }, + 'mousedown .ui-spinner-button': function (b) { + function d() { + var a = this.element[0] === this.document[0].activeElement + a || + (this.element.focus(), + (this.previous = c), + this._delay(function () { + this.previous = c + })) + } + var c + ;(c = + this.element[0] === this.document[0].activeElement + ? this.previous + : this.element.val()), + b.preventDefault(), + d.call(this), + (this.cancelBlur = !0), + this._delay(function () { + delete this.cancelBlur, d.call(this) + }), + this._start(b) !== !1 && + this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + }, + 'mouseup .ui-spinner-button': '_stop', + 'mouseenter .ui-spinner-button': function (b) { + if (a(b.currentTarget).hasClass('ui-state-active')) + return ( + this._start(b) !== !1 && + void this._repeat( + null, + a(b.currentTarget).hasClass('ui-spinner-up') ? 1 : -1, + b + ) + ) + }, + 'mouseleave .ui-spinner-button': '_stop', + }, + _draw: function () { + var a = (this.uiSpinner = this.element + .addClass('ui-spinner-input') + .attr('autocomplete', 'off') + .wrap(this._uiSpinnerHtml()) + .parent() + .append(this._buttonHtml())) + this.element.attr('role', 'spinbutton'), + (this.buttons = a + .find('.ui-spinner-button') + .attr('tabIndex', -1) + .button() + .removeClass('ui-corner-all')), + this.buttons.height() > Math.ceil(0.5 * a.height()) && + a.height() > 0 && + a.height(a.height()), + this.options.disabled && this.disable() + }, + _keydown: function (b) { + var c = this.options, + d = a.ui.keyCode + switch (b.keyCode) { + case d.UP: + return this._repeat(null, 1, b), !0 + case d.DOWN: + return this._repeat(null, -1, b), !0 + case d.PAGE_UP: + return this._repeat(null, c.page, b), !0 + case d.PAGE_DOWN: + return this._repeat(null, -c.page, b), !0 + } + return !1 + }, + _uiSpinnerHtml: function () { + return "" + }, + _buttonHtml: function () { + return ( + "" + ) + }, + _start: function (a) { + return ( + !(!this.spinning && this._trigger('start', a) === !1) && + (this.counter || (this.counter = 1), (this.spinning = !0), !0) + ) + }, + _repeat: function (a, b, c) { + ;(a = a || 500), + clearTimeout(this.timer), + (this.timer = this._delay(function () { + this._repeat(40, b, c) + }, a)), + this._spin(b * this.options.step, c) + }, + _spin: function (a, b) { + var c = this.value() || 0 + this.counter || (this.counter = 1), + (c = this._adjustValue(c + a * this._increment(this.counter))), + (this.spinning && this._trigger('spin', b, { value: c }) === !1) || + (this._value(c), this.counter++) + }, + _increment: function (b) { + var c = this.options.incremental + return c + ? a.isFunction(c) + ? c(b) + : Math.floor((b * b * b) / 5e4 - (b * b) / 500 + (17 * b) / 200 + 1) + : 1 + }, + _precision: function () { + var a = this._precisionOf(this.options.step) + return ( + null !== this.options.min && + (a = Math.max(a, this._precisionOf(this.options.min))), + a + ) + }, + _precisionOf: function (a) { + var b = a.toString(), + c = b.indexOf('.') + return c === -1 ? 0 : b.length - c - 1 + }, + _adjustValue: function (a) { + var b, + c, + d = this.options + return ( + (b = null !== d.min ? d.min : 0), + (c = a - b), + (c = Math.round(c / d.step) * d.step), + (a = b + c), + (a = parseFloat(a.toFixed(this._precision()))), + null !== d.max && a > d.max + ? d.max + : null !== d.min && a < d.min + ? d.min + : a + ) + }, + _stop: function (a) { + this.spinning && + (clearTimeout(this.timer), + clearTimeout(this.mousewheelTimer), + (this.counter = 0), + (this.spinning = !1), + this._trigger('stop', a)) + }, + _setOption: function (a, b) { + if ('culture' === a || 'numberFormat' === a) { + var c = this._parse(this.element.val()) + return (this.options[a] = b), void this.element.val(this._format(c)) + } + ;('max' !== a && 'min' !== a && 'step' !== a) || + ('string' == typeof b && (b = this._parse(b))), + 'icons' === a && + (this.buttons + .first() + .find('.ui-icon') + .removeClass(this.options.icons.up) + .addClass(b.up), + this.buttons + .last() + .find('.ui-icon') + .removeClass(this.options.icons.down) + .addClass(b.down)), + this._super(a, b), + 'disabled' === a && + (b + ? (this.element.prop('disabled', !0), + this.buttons.button('disable')) + : (this.element.prop('disabled', !1), + this.buttons.button('enable'))) + }, + _setOptions: b(function (a) { + this._super(a), this._value(this.element.val()) + }), + _parse: function (a) { + return ( + 'string' == typeof a && + '' !== a && + (a = + window.Globalize && this.options.numberFormat + ? Globalize.parseFloat(a, 10, this.options.culture) + : +a), + '' === a || isNaN(a) ? null : a + ) + }, + _format: function (a) { + return '' === a + ? '' + : window.Globalize && this.options.numberFormat + ? Globalize.format(a, this.options.numberFormat, this.options.culture) + : a + }, + _refresh: function () { + this.element.attr({ + 'aria-valuemin': this.options.min, + 'aria-valuemax': this.options.max, + 'aria-valuenow': this._parse(this.element.val()), + }) + }, + _value: function (a, b) { + var c + '' !== a && + ((c = this._parse(a)), + null !== c && + (b || (c = this._adjustValue(c)), (a = this._format(c)))), + this.element.val(a), + this._refresh() + }, + _destroy: function () { + this.element + .removeClass('ui-spinner-input') + .prop('disabled', !1) + .removeAttr('autocomplete') + .removeAttr('role') + .removeAttr('aria-valuemin') + .removeAttr('aria-valuemax') + .removeAttr('aria-valuenow'), + this.uiSpinner.replaceWith(this.element) + }, + stepUp: b(function (a) { + this._stepUp(a) + }), + _stepUp: function (a) { + this._start() && + (this._spin((a || 1) * this.options.step), this._stop()) + }, + stepDown: b(function (a) { + this._stepDown(a) + }), + _stepDown: function (a) { + this._start() && + (this._spin((a || 1) * -this.options.step), this._stop()) + }, + pageUp: b(function (a) { + this._stepUp((a || 1) * this.options.page) + }), + pageDown: b(function (a) { + this._stepDown((a || 1) * this.options.page) + }), + value: function (a) { + return arguments.length + ? void b(this._value).call(this, a) + : this._parse(this.element.val()) + }, + widget: function () { + return this.uiSpinner + }, + }) + })(jQuery), + (function (a, b) { + function e() { + return ++c + } + function f(a) { + return ( + a.hash.length > 1 && + decodeURIComponent(a.href.replace(d, '')) === + decodeURIComponent(location.href.replace(d, '')) + ) + } + var c = 0, + d = /#.*$/ + a.widget('ui.tabs', { + version: '1.10.3', + delay: 300, + options: { + active: null, + collapsible: !1, + event: 'click', + heightStyle: 'content', + hide: null, + show: null, + activate: null, + beforeActivate: null, + beforeLoad: null, + load: null, + }, + _create: function () { + var b = this, + c = this.options + ;(this.running = !1), + this.element + .addClass('ui-tabs ui-widget ui-widget-content ui-corner-all') + .toggleClass('ui-tabs-collapsible', c.collapsible) + .delegate( + '.ui-tabs-nav > li', + 'mousedown' + this.eventNamespace, + function (b) { + a(this).is('.ui-state-disabled') && b.preventDefault() + } + ) + .delegate( + '.ui-tabs-anchor', + 'focus' + this.eventNamespace, + function () { + a(this).closest('li').is('.ui-state-disabled') && this.blur() + } + ), + this._processTabs(), + (c.active = this._initialActive()), + a.isArray(c.disabled) && + (c.disabled = a + .unique( + c.disabled.concat( + a.map(this.tabs.filter('.ui-state-disabled'), function (a) { + return b.tabs.index(a) + }) + ) + ) + .sort()), + this.options.active !== !1 && this.anchors.length + ? (this.active = this._findActive(c.active)) + : (this.active = a()), + this._refresh(), + this.active.length && this.load(c.active) + }, + _initialActive: function () { + var b = this.options.active, + c = this.options.collapsible, + d = location.hash.substring(1) + return ( + null === b && + (d && + this.tabs.each(function (c, e) { + if (a(e).attr('aria-controls') === d) return (b = c), !1 + }), + null === b && + (b = this.tabs.index(this.tabs.filter('.ui-tabs-active'))), + (null !== b && b !== -1) || (b = !!this.tabs.length && 0)), + b !== !1 && + ((b = this.tabs.index(this.tabs.eq(b))), b === -1 && (b = !c && 0)), + !c && b === !1 && this.anchors.length && (b = 0), + b + ) + }, + _getCreateEventData: function () { + return { + tab: this.active, + panel: this.active.length ? this._getPanelForTab(this.active) : a(), + } + }, + _tabKeydown: function (b) { + var c = a(this.document[0].activeElement).closest('li'), + d = this.tabs.index(c), + e = !0 + if (!this._handlePageNav(b)) { + switch (b.keyCode) { + case a.ui.keyCode.RIGHT: + case a.ui.keyCode.DOWN: + d++ + break + case a.ui.keyCode.UP: + case a.ui.keyCode.LEFT: + ;(e = !1), d-- + break + case a.ui.keyCode.END: + d = this.anchors.length - 1 + break + case a.ui.keyCode.HOME: + d = 0 + break + case a.ui.keyCode.SPACE: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d) + ) + case a.ui.keyCode.ENTER: + return ( + b.preventDefault(), + clearTimeout(this.activating), + void this._activate(d !== this.options.active && d) + ) + default: + return + } + b.preventDefault(), + clearTimeout(this.activating), + (d = this._focusNextTab(d, e)), + b.ctrlKey || + (c.attr('aria-selected', 'false'), + this.tabs.eq(d).attr('aria-selected', 'true'), + (this.activating = this._delay(function () { + this.option('active', d) + }, this.delay))) + } + }, + _panelKeydown: function (b) { + this._handlePageNav(b) || + (b.ctrlKey && + b.keyCode === a.ui.keyCode.UP && + (b.preventDefault(), this.active.focus())) + }, + _handlePageNav: function (b) { + return b.altKey && b.keyCode === a.ui.keyCode.PAGE_UP + ? (this._activate(this._focusNextTab(this.options.active - 1, !1)), + !0) + : b.altKey && b.keyCode === a.ui.keyCode.PAGE_DOWN + ? (this._activate(this._focusNextTab(this.options.active + 1, !0)), + !0) + : void 0 + }, + _findNextTab: function (b, c) { + function e() { + return b > d && (b = 0), b < 0 && (b = d), b + } + for ( + var d = this.tabs.length - 1; + a.inArray(e(), this.options.disabled) !== -1; + + ) + b = c ? b + 1 : b - 1 + return b + }, + _focusNextTab: function (a, b) { + return (a = this._findNextTab(a, b)), this.tabs.eq(a).focus(), a + }, + _setOption: function (a, b) { + return 'active' === a + ? void this._activate(b) + : 'disabled' === a + ? void this._setupDisabled(b) + : (this._super(a, b), + 'collapsible' === a && + (this.element.toggleClass('ui-tabs-collapsible', b), + b || this.options.active !== !1 || this._activate(0)), + 'event' === a && this._setupEvents(b), + void ('heightStyle' === a && this._setupHeightStyle(b))) + }, + _tabId: function (a) { + return a.attr('aria-controls') || 'ui-tabs-' + e() + }, + _sanitizeSelector: function (a) { + return a ? a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, '\\$&') : '' + }, + refresh: function () { + var b = this.options, + c = this.tablist.children(':has(a[href])') + ;(b.disabled = a.map(c.filter('.ui-state-disabled'), function (a) { + return c.index(a) + })), + this._processTabs(), + b.active !== !1 && this.anchors.length + ? this.active.length && !a.contains(this.tablist[0], this.active[0]) + ? this.tabs.length === b.disabled.length + ? ((b.active = !1), (this.active = a())) + : this._activate( + this._findNextTab(Math.max(0, b.active - 1), !1) + ) + : (b.active = this.tabs.index(this.active)) + : ((b.active = !1), (this.active = a())), + this._refresh() + }, + _refresh: function () { + this._setupDisabled(this.options.disabled), + this._setupEvents(this.options.event), + this._setupHeightStyle(this.options.heightStyle), + this.tabs + .not(this.active) + .attr({ 'aria-selected': 'false', tabIndex: -1 }), + this.panels + .not(this._getPanelForTab(this.active)) + .hide() + .attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + this.active.length + ? (this.active + .addClass('ui-tabs-active ui-state-active') + .attr({ 'aria-selected': 'true', tabIndex: 0 }), + this._getPanelForTab(this.active) + .show() + .attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' })) + : this.tabs.eq(0).attr('tabIndex', 0) + }, + _processTabs: function () { + var b = this + ;(this.tablist = this._getList() + .addClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .attr('role', 'tablist')), + (this.tabs = this.tablist + .find('> li:has(a[href])') + .addClass('ui-state-default ui-corner-top') + .attr({ role: 'tab', tabIndex: -1 })), + (this.anchors = this.tabs + .map(function () { + return a('a', this)[0] + }) + .addClass('ui-tabs-anchor') + .attr({ role: 'presentation', tabIndex: -1 })), + (this.panels = a()), + this.anchors.each(function (c, d) { + var e, + g, + h, + i = a(d).uniqueId().attr('id'), + j = a(d).closest('li'), + k = j.attr('aria-controls') + f(d) + ? ((e = d.hash), (g = b.element.find(b._sanitizeSelector(e)))) + : ((h = b._tabId(j)), + (e = '#' + h), + (g = b.element.find(e)), + g.length || + ((g = b._createPanel(h)), + g.insertAfter(b.panels[c - 1] || b.tablist)), + g.attr('aria-live', 'polite')), + g.length && (b.panels = b.panels.add(g)), + k && j.data('ui-tabs-aria-controls', k), + j.attr({ 'aria-controls': e.substring(1), 'aria-labelledby': i }), + g.attr('aria-labelledby', i) + }), + this.panels + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .attr('role', 'tabpanel') + }, + _getList: function () { + return this.element.find('ol,ul').eq(0) + }, + _createPanel: function (b) { + return a('
            ') + .attr('id', b) + .addClass('ui-tabs-panel ui-widget-content ui-corner-bottom') + .data('ui-tabs-destroy', !0) + }, + _setupDisabled: function (b) { + a.isArray(b) && + (b.length ? b.length === this.anchors.length && (b = !0) : (b = !1)) + for (var d, c = 0; (d = this.tabs[c]); c++) + b === !0 || a.inArray(c, b) !== -1 + ? a(d).addClass('ui-state-disabled').attr('aria-disabled', 'true') + : a(d).removeClass('ui-state-disabled').removeAttr('aria-disabled') + this.options.disabled = b + }, + _setupEvents: function (b) { + var c = { + click: function (a) { + a.preventDefault() + }, + } + b && + a.each(b.split(' '), function (a, b) { + c[b] = '_eventHandler' + }), + this._off(this.anchors.add(this.tabs).add(this.panels)), + this._on(this.anchors, c), + this._on(this.tabs, { keydown: '_tabKeydown' }), + this._on(this.panels, { keydown: '_panelKeydown' }), + this._focusable(this.tabs), + this._hoverable(this.tabs) + }, + _setupHeightStyle: function (b) { + var c, + d = this.element.parent() + 'fill' === b + ? ((c = d.height()), + (c -= this.element.outerHeight() - this.element.height()), + this.element.siblings(':visible').each(function () { + var b = a(this), + d = b.css('position') + 'absolute' !== d && 'fixed' !== d && (c -= b.outerHeight(!0)) + }), + this.element + .children() + .not(this.panels) + .each(function () { + c -= a(this).outerHeight(!0) + }), + this.panels + .each(function () { + a(this).height( + Math.max(0, c - a(this).innerHeight() + a(this).height()) + ) + }) + .css('overflow', 'auto')) + : 'auto' === b && + ((c = 0), + this.panels + .each(function () { + c = Math.max(c, a(this).height('').height()) + }) + .height(c)) + }, + _eventHandler: function (b) { + var c = this.options, + d = this.active, + e = a(b.currentTarget), + f = e.closest('li'), + g = f[0] === d[0], + h = g && c.collapsible, + i = h ? a() : this._getPanelForTab(f), + j = d.length ? this._getPanelForTab(d) : a(), + k = { oldTab: d, oldPanel: j, newTab: h ? a() : f, newPanel: i } + b.preventDefault(), + f.hasClass('ui-state-disabled') || + f.hasClass('ui-tabs-loading') || + this.running || + (g && !c.collapsible) || + this._trigger('beforeActivate', b, k) === !1 || + ((c.active = !h && this.tabs.index(f)), + (this.active = g ? a() : f), + this.xhr && this.xhr.abort(), + j.length || + i.length || + a.error('jQuery UI Tabs: Mismatching fragment identifier.'), + i.length && this.load(this.tabs.index(f), b), + this._toggle(b, k)) + }, + _toggle: function (b, c) { + function g() { + ;(d.running = !1), d._trigger('activate', b, c) + } + function h() { + c.newTab.closest('li').addClass('ui-tabs-active ui-state-active'), + e.length && d.options.show + ? d._show(e, d.options.show, g) + : (e.show(), g()) + } + var d = this, + e = c.newPanel, + f = c.oldPanel + ;(this.running = !0), + f.length && this.options.hide + ? this._hide(f, this.options.hide, function () { + c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + h() + }) + : (c.oldTab + .closest('li') + .removeClass('ui-tabs-active ui-state-active'), + f.hide(), + h()), + f.attr({ 'aria-expanded': 'false', 'aria-hidden': 'true' }), + c.oldTab.attr('aria-selected', 'false'), + e.length && f.length + ? c.oldTab.attr('tabIndex', -1) + : e.length && + this.tabs + .filter(function () { + return 0 === a(this).attr('tabIndex') + }) + .attr('tabIndex', -1), + e.attr({ 'aria-expanded': 'true', 'aria-hidden': 'false' }), + c.newTab.attr({ 'aria-selected': 'true', tabIndex: 0 }) + }, + _activate: function (b) { + var c, + d = this._findActive(b) + d[0] !== this.active[0] && + (d.length || (d = this.active), + (c = d.find('.ui-tabs-anchor')[0]), + this._eventHandler({ + target: c, + currentTarget: c, + preventDefault: a.noop, + })) + }, + _findActive: function (b) { + return b === !1 ? a() : this.tabs.eq(b) + }, + _getIndex: function (a) { + return ( + 'string' == typeof a && + (a = this.anchors.index( + this.anchors.filter("[href$='" + a + "']") + )), + a + ) + }, + _destroy: function () { + this.xhr && this.xhr.abort(), + this.element.removeClass( + 'ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible' + ), + this.tablist + .removeClass( + 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' + ) + .removeAttr('role'), + this.anchors + .removeClass('ui-tabs-anchor') + .removeAttr('role') + .removeAttr('tabIndex') + .removeUniqueId(), + this.tabs.add(this.panels).each(function () { + a.data(this, 'ui-tabs-destroy') + ? a(this).remove() + : a(this) + .removeClass( + 'ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel' + ) + .removeAttr('tabIndex') + .removeAttr('aria-live') + .removeAttr('aria-busy') + .removeAttr('aria-selected') + .removeAttr('aria-labelledby') + .removeAttr('aria-hidden') + .removeAttr('aria-expanded') + .removeAttr('role') + }), + this.tabs.each(function () { + var b = a(this), + c = b.data('ui-tabs-aria-controls') + c + ? b.attr('aria-controls', c).removeData('ui-tabs-aria-controls') + : b.removeAttr('aria-controls') + }), + this.panels.show(), + 'content' !== this.options.heightStyle && + this.panels.css('height', '') + }, + enable: function (c) { + var d = this.options.disabled + d !== !1 && + (c === b + ? (d = !1) + : ((c = this._getIndex(c)), + (d = a.isArray(d) + ? a.map(d, function (a) { + return a !== c ? a : null + }) + : a.map(this.tabs, function (a, b) { + return b !== c ? b : null + }))), + this._setupDisabled(d)) + }, + disable: function (c) { + var d = this.options.disabled + if (d !== !0) { + if (c === b) d = !0 + else { + if (((c = this._getIndex(c)), a.inArray(c, d) !== -1)) return + d = a.isArray(d) ? a.merge([c], d).sort() : [c] + } + this._setupDisabled(d) + } + }, + load: function (b, c) { + b = this._getIndex(b) + var d = this, + e = this.tabs.eq(b), + g = e.find('.ui-tabs-anchor'), + h = this._getPanelForTab(e), + i = { tab: e, panel: h } + f(g[0]) || + ((this.xhr = a.ajax(this._ajaxSettings(g, c, i))), + this.xhr && + 'canceled' !== this.xhr.statusText && + (e.addClass('ui-tabs-loading'), + h.attr('aria-busy', 'true'), + this.xhr + .success(function (a) { + setTimeout(function () { + h.html(a), d._trigger('load', c, i) + }, 1) + }) + .complete(function (a, b) { + setTimeout(function () { + 'abort' === b && d.panels.stop(!1, !0), + e.removeClass('ui-tabs-loading'), + h.removeAttr('aria-busy'), + a === d.xhr && delete d.xhr + }, 1) + }))) + }, + _ajaxSettings: function (b, c, d) { + var e = this + return { + url: b.attr('href'), + beforeSend: function (b, f) { + return e._trigger( + 'beforeLoad', + c, + a.extend({ jqXHR: b, ajaxSettings: f }, d) + ) + }, + } + }, + _getPanelForTab: function (b) { + var c = a(b).attr('aria-controls') + return this.element.find(this._sanitizeSelector('#' + c)) + }, + }) + })(jQuery), + (function (a) { + function c(b, c) { + var d = (b.attr('aria-describedby') || '').split(/\s+/) + d.push(c), + b.data('ui-tooltip-id', c).attr('aria-describedby', a.trim(d.join(' '))) + } + function d(b) { + var c = b.data('ui-tooltip-id'), + d = (b.attr('aria-describedby') || '').split(/\s+/), + e = a.inArray(c, d) + e !== -1 && d.splice(e, 1), + b.removeData('ui-tooltip-id'), + (d = a.trim(d.join(' '))), + d ? b.attr('aria-describedby', d) : b.removeAttr('aria-describedby') + } + var b = 0 + a.widget('ui.tooltip', { + version: '1.10.3', + options: { + content: function () { + var b = a(this).attr('title') || '' + return a('').text(b).html() + }, + hide: !0, + items: '[title]:not([disabled])', + position: { + my: 'left top+15', + at: 'left bottom', + collision: 'flipfit flip', + }, + show: !0, + tooltipClass: null, + track: !1, + close: null, + open: null, + }, + _create: function () { + this._on({ mouseover: 'open', focusin: 'open' }), + (this.tooltips = {}), + (this.parents = {}), + this.options.disabled && this._disable() + }, + _setOption: function (b, c) { + var d = this + return 'disabled' === b + ? (this[c ? '_disable' : '_enable'](), void (this.options[b] = c)) + : (this._super(b, c), + void ( + 'content' === b && + a.each(this.tooltips, function (a, b) { + d._updateContent(b) + }) + )) + }, + _disable: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), b.close(e, !0) + }), + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.is('[title]') && + b.data('ui-tooltip-title', b.attr('title')).attr('title', '') + }) + }, + _enable: function () { + this.element + .find(this.options.items) + .addBack() + .each(function () { + var b = a(this) + b.data('ui-tooltip-title') && + b.attr('title', b.data('ui-tooltip-title')) + }) + }, + open: function (b) { + var c = this, + d = a(b ? b.target : this.element).closest(this.options.items) + d.length && + !d.data('ui-tooltip-id') && + (d.attr('title') && d.data('ui-tooltip-title', d.attr('title')), + d.data('ui-tooltip-open', !0), + b && + 'mouseover' === b.type && + d.parents().each(function () { + var d, + b = a(this) + b.data('ui-tooltip-open') && + ((d = a.Event('blur')), + (d.target = d.currentTarget = this), + c.close(d, !0)), + b.attr('title') && + (b.uniqueId(), + (c.parents[this.id] = { + element: this, + title: b.attr('title'), + }), + b.attr('title', '')) + }), + this._updateContent(d, b)) + }, + _updateContent: function (a, b) { + var c, + d = this.options.content, + e = this, + f = b ? b.type : null + return 'string' == typeof d + ? this._open(b, a, d) + : ((c = d.call(a[0], function (c) { + a.data('ui-tooltip-open') && + e._delay(function () { + b && (b.type = f), this._open(b, a, c) + }) + })), + void (c && this._open(b, a, c))) + }, + _open: function (b, d, e) { + function j(a) { + ;(i.of = a), f.is(':hidden') || f.position(i) + } + var f, + g, + h, + i = a.extend({}, this.options.position) + if (e) { + if (((f = this._find(d)), f.length)) + return void f.find('.ui-tooltip-content').html(e) + d.is('[title]') && + (b && 'mouseover' === b.type + ? d.attr('title', '') + : d.removeAttr('title')), + (f = this._tooltip(d)), + c(d, f.attr('id')), + f.find('.ui-tooltip-content').html(e), + this.options.track && b && /^mouse/.test(b.type) + ? (this._on(this.document, { mousemove: j }), j(b)) + : f.position(a.extend({ of: d }, this.options.position)), + f.hide(), + this._show(f, this.options.show), + this.options.show && + this.options.show.delay && + (h = this.delayedShow = + setInterval(function () { + f.is(':visible') && (j(i.of), clearInterval(h)) + }, a.fx.interval)), + this._trigger('open', b, { tooltip: f }), + (g = { + keyup: function (b) { + if (b.keyCode === a.ui.keyCode.ESCAPE) { + var c = a.Event(b) + ;(c.currentTarget = d[0]), this.close(c, !0) + } + }, + remove: function () { + this._removeTooltip(f) + }, + }), + (b && 'mouseover' !== b.type) || (g.mouseleave = 'close'), + (b && 'focusin' !== b.type) || (g.focusout = 'close'), + this._on(!0, d, g) + } + }, + close: function (b) { + var c = this, + e = a(b ? b.currentTarget : this.element), + f = this._find(e) + this.closing || + (clearInterval(this.delayedShow), + e.data('ui-tooltip-title') && + e.attr('title', e.data('ui-tooltip-title')), + d(e), + f.stop(!0), + this._hide(f, this.options.hide, function () { + c._removeTooltip(a(this)) + }), + e.removeData('ui-tooltip-open'), + this._off(e, 'mouseleave focusout keyup'), + e[0] !== this.element[0] && this._off(e, 'remove'), + this._off(this.document, 'mousemove'), + b && + 'mouseleave' === b.type && + a.each(this.parents, function (b, d) { + a(d.element).attr('title', d.title), delete c.parents[b] + }), + (this.closing = !0), + this._trigger('close', b, { tooltip: f }), + (this.closing = !1)) + }, + _tooltip: function (c) { + var d = 'ui-tooltip-' + b++, + e = a('
            ') + .attr({ id: d, role: 'tooltip' }) + .addClass( + 'ui-tooltip ui-widget ui-corner-all ui-widget-content ' + + (this.options.tooltipClass || '') + ) + return ( + a('
            ').addClass('ui-tooltip-content').appendTo(e), + e.appendTo(this.document[0].body), + (this.tooltips[d] = c), + e + ) + }, + _find: function (b) { + var c = b.data('ui-tooltip-id') + return c ? a('#' + c) : a() + }, + _removeTooltip: function (a) { + a.remove(), delete this.tooltips[a.attr('id')] + }, + _destroy: function () { + var b = this + a.each(this.tooltips, function (c, d) { + var e = a.Event('blur') + ;(e.target = e.currentTarget = d[0]), + b.close(e, !0), + a('#' + c).remove(), + d.data('ui-tooltip-title') && + (d.attr('title', d.data('ui-tooltip-title')), + d.removeData('ui-tooltip-title')) + }) + }, + }) + })( + jQuery + ) /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +;(function (r, G, f, v) { + var J = f('html'), + n = f(r), + p = f(G), + b = (f.fancybox = function () { + b.open.apply(this, arguments) + }), + I = navigator.userAgent.match(/msie/i), + B = null, + s = G.createTouch !== v, + t = function (a) { + return a && a.hasOwnProperty && a instanceof f + }, + q = function (a) { + return a && 'string' === f.type(a) + }, + E = function (a) { + return q(a) && 0 < a.indexOf('%') + }, + l = function (a, d) { + var e = parseInt(a, 10) || 0 + d && E(a) && (e *= b.getViewport()[d] / 100) + return Math.ceil(e) + }, + w = function (a, b) { + return l(a, b) + 'px' + } + f.extend(b, { + version: '2.1.5', + defaults: { + padding: 15, + margin: 20, + width: 800, + height: 600, + minWidth: 100, + minHeight: 100, + maxWidth: 9999, + maxHeight: 9999, + pixelRatio: 1, + autoSize: !0, + autoHeight: !1, + autoWidth: !1, + autoResize: !0, + autoCenter: !s, + fitToView: !0, + aspectRatio: !1, + topRatio: 0.5, + leftRatio: 0.5, + scrolling: 'auto', + wrapCSS: '', + arrows: !0, + closeBtn: !0, + closeClick: !1, + nextClick: !1, + mouseWheel: !0, + autoPlay: !1, + playSpeed: 3e3, + preload: 3, + modal: !1, + loop: !0, + ajax: { dataType: 'html', headers: { 'X-fancyBox': !0 } }, + iframe: { scrolling: 'auto', preload: !0 }, + swf: { + wmode: 'transparent', + allowfullscreen: 'true', + allowscriptaccess: 'always', + }, + keys: { + next: { 13: 'left', 34: 'up', 39: 'left', 40: 'up' }, + prev: { 8: 'right', 33: 'down', 37: 'right', 38: 'down' }, + close: [27], + play: [32], + toggle: [70], + }, + direction: { next: 'left', prev: 'right' }, + scrollOutside: !0, + index: 0, + type: null, + href: null, + content: null, + title: null, + tpl: { + wrap: '
            ', + image: '', + iframe: + '', + error: + '

            The requested content cannot be loaded.
            Please try again later.

            ', + closeBtn: + '
            ', + next: '', + prev: '', + }, + openEffect: 'fade', + openSpeed: 250, + openEasing: 'swing', + openOpacity: !0, + openMethod: 'zoomIn', + closeEffect: 'fade', + closeSpeed: 250, + closeEasing: 'swing', + closeOpacity: !0, + closeMethod: 'zoomOut', + nextEffect: 'elastic', + nextSpeed: 250, + nextEasing: 'swing', + nextMethod: 'changeIn', + prevEffect: 'elastic', + prevSpeed: 250, + prevEasing: 'swing', + prevMethod: 'changeOut', + helpers: { overlay: !0, title: !0 }, + onCancel: f.noop, + beforeLoad: f.noop, + afterLoad: f.noop, + beforeShow: f.noop, + afterShow: f.noop, + beforeChange: f.noop, + beforeClose: f.noop, + afterClose: f.noop, + }, + group: {}, + opts: {}, + previous: null, + coming: null, + current: null, + isActive: !1, + isOpen: !1, + isOpened: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + player: { timer: null, isActive: !1 }, + ajaxLoad: null, + imgPreload: null, + transitions: {}, + helpers: {}, + open: function (a, d) { + if (a && (f.isPlainObject(d) || (d = {}), !1 !== b.close(!0))) + return ( + f.isArray(a) || (a = t(a) ? f(a).get() : [a]), + f.each(a, function (e, c) { + var k = {}, + g, + h, + j, + m, + l + 'object' === f.type(c) && + (c.nodeType && (c = f(c)), + t(c) + ? ((k = { + href: c.data('fancybox-href') || c.attr('href'), + title: c.data('fancybox-title') || c.attr('title'), + isDom: !0, + element: c, + }), + f.metadata && f.extend(!0, k, c.metadata())) + : (k = c)) + g = d.href || k.href || (q(c) ? c : null) + h = d.title !== v ? d.title : k.title || '' + m = (j = d.content || k.content) ? 'html' : d.type || k.type + !m && + k.isDom && + ((m = c.data('fancybox-type')), + m || + (m = (m = c.prop('class').match(/fancybox\.(\w+)/)) + ? m[1] + : null)) + q(g) && + (m || + (b.isImage(g) + ? (m = 'image') + : b.isSWF(g) + ? (m = 'swf') + : '#' === g.charAt(0) + ? (m = 'inline') + : q(c) && ((m = 'html'), (j = c))), + 'ajax' === m && + ((l = g.split(/\s+/, 2)), (g = l.shift()), (l = l.shift()))) + j || + ('inline' === m + ? g + ? (j = f(q(g) ? g.replace(/.*(?=#[^\s]+$)/, '') : g)) + : k.isDom && (j = c) + : 'html' === m + ? (j = g) + : !m && !g && k.isDom && ((m = 'inline'), (j = c))) + f.extend(k, { href: g, type: m, content: j, title: h, selector: l }) + a[e] = k + }), + (b.opts = f.extend(!0, {}, b.defaults, d)), + d.keys !== v && + (b.opts.keys = d.keys ? f.extend({}, b.defaults.keys, d.keys) : !1), + (b.group = a), + b._start(b.opts.index) + ) + }, + cancel: function () { + var a = b.coming + a && + !1 !== b.trigger('onCancel') && + (b.hideLoading(), + b.ajaxLoad && b.ajaxLoad.abort(), + (b.ajaxLoad = null), + b.imgPreload && (b.imgPreload.onload = b.imgPreload.onerror = null), + a.wrap && a.wrap.stop(!0, !0).trigger('onReset').remove(), + (b.coming = null), + b.current || b._afterZoomOut(a)) + }, + close: function (a) { + b.cancel() + !1 !== b.trigger('beforeClose') && + (b.unbindEvents(), + b.isActive && + (!b.isOpen || !0 === a + ? (f('.fancybox-wrap').stop(!0).trigger('onReset').remove(), + b._afterZoomOut()) + : ((b.isOpen = b.isOpened = !1), + (b.isClosing = !0), + f('.fancybox-item, .fancybox-nav').remove(), + b.wrap.stop(!0, !0).removeClass('fancybox-opened'), + b.transitions[b.current.closeMethod]()))) + }, + play: function (a) { + var d = function () { + clearTimeout(b.player.timer) + }, + e = function () { + d() + b.current && + b.player.isActive && + (b.player.timer = setTimeout(b.next, b.current.playSpeed)) + }, + c = function () { + d() + p.unbind('.player') + b.player.isActive = !1 + b.trigger('onPlayEnd') + } + if (!0 === a || (!b.player.isActive && !1 !== a)) { + if ( + b.current && + (b.current.loop || b.current.index < b.group.length - 1) + ) + (b.player.isActive = !0), + p.bind({ + 'onCancel.player beforeClose.player': c, + 'onUpdate.player': e, + 'beforeLoad.player': d, + }), + e(), + b.trigger('onPlayStart') + } else c() + }, + next: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.next), b.jumpto(d.index + 1, a, 'next')) + }, + prev: function (a) { + var d = b.current + d && (q(a) || (a = d.direction.prev), b.jumpto(d.index - 1, a, 'prev')) + }, + jumpto: function (a, d, e) { + var c = b.current + c && + ((a = l(a)), + (b.direction = d || c.direction[a >= c.index ? 'next' : 'prev']), + (b.router = e || 'jumpto'), + c.loop && + (0 > a && (a = c.group.length + (a % c.group.length)), + (a %= c.group.length)), + c.group[a] !== v && (b.cancel(), b._start(a))) + }, + reposition: function (a, d) { + var e = b.current, + c = e ? e.wrap : null, + k + c && + ((k = b._getPosition(d)), + a && 'scroll' === a.type + ? (delete k.position, c.stop(!0, !0).animate(k, 200)) + : (c.css(k), (e.pos = f.extend({}, e.dim, k)))) + }, + update: function (a) { + var d = a && a.type, + e = !d || 'orientationchange' === d + e && (clearTimeout(B), (B = null)) + b.isOpen && + !B && + (B = setTimeout( + function () { + var c = b.current + c && + !b.isClosing && + (b.wrap.removeClass('fancybox-tmp'), + (e || 'load' === d || ('resize' === d && c.autoResize)) && + b._setDimension(), + ('scroll' === d && c.canShrink) || b.reposition(a), + b.trigger('onUpdate'), + (B = null)) + }, + e && !s ? 0 : 300 + )) + }, + toggle: function (a) { + b.isOpen && + ((b.current.fitToView = + 'boolean' === f.type(a) ? a : !b.current.fitToView), + s && + (b.wrap.removeAttr('style').addClass('fancybox-tmp'), + b.trigger('onUpdate')), + b.update()) + }, + hideLoading: function () { + p.unbind('.loading') + f('#fancybox-loading').remove() + }, + showLoading: function () { + var a, d + b.hideLoading() + a = f('
            ') + .click(b.cancel) + .appendTo('body') + p.bind('keydown.loading', function (a) { + if (27 === (a.which || a.keyCode)) a.preventDefault(), b.cancel() + }) + b.defaults.fixed || + ((d = b.getViewport()), + a.css({ + position: 'absolute', + top: 0.5 * d.h + d.y, + left: 0.5 * d.w + d.x, + })) + }, + getViewport: function () { + var a = (b.current && b.current.locked) || !1, + d = { x: n.scrollLeft(), y: n.scrollTop() } + a + ? ((d.w = a[0].clientWidth), (d.h = a[0].clientHeight)) + : ((d.w = s && r.innerWidth ? r.innerWidth : n.width()), + (d.h = s && r.innerHeight ? r.innerHeight : n.height())) + return d + }, + unbindEvents: function () { + b.wrap && t(b.wrap) && b.wrap.unbind('.fb') + p.unbind('.fb') + n.unbind('.fb') + }, + bindEvents: function () { + var a = b.current, + d + a && + (n.bind( + 'orientationchange.fb' + + (s ? '' : ' resize.fb') + + (a.autoCenter && !a.locked ? ' scroll.fb' : ''), + b.update + ), + (d = a.keys) && + p.bind('keydown.fb', function (e) { + var c = e.which || e.keyCode, + k = e.target || e.srcElement + if (27 === c && b.coming) return !1 + !e.ctrlKey && + !e.altKey && + !e.shiftKey && + !e.metaKey && + (!k || (!k.type && !f(k).is('[contenteditable]'))) && + f.each(d, function (d, k) { + if (1 < a.group.length && k[c] !== v) + return b[d](k[c]), e.preventDefault(), !1 + if (-1 < f.inArray(c, k)) return b[d](), e.preventDefault(), !1 + }) + }), + f.fn.mousewheel && + a.mouseWheel && + b.wrap.bind('mousewheel.fb', function (d, c, k, g) { + for ( + var h = f(d.target || null), j = !1; + h.length && + !j && + !h.is('.fancybox-skin') && + !h.is('.fancybox-wrap'); + + ) + (j = + h[0] && + !(h[0].style.overflow && 'hidden' === h[0].style.overflow) && + ((h[0].clientWidth && h[0].scrollWidth > h[0].clientWidth) || + (h[0].clientHeight && + h[0].scrollHeight > h[0].clientHeight))), + (h = f(h).parent()) + if (0 !== c && !j && 1 < b.group.length && !a.canShrink) { + if (0 < g || 0 < k) b.prev(0 < g ? 'down' : 'left') + else if (0 > g || 0 > k) b.next(0 > g ? 'up' : 'right') + d.preventDefault() + } + })) + }, + trigger: function (a, d) { + var e, + c = d || b.coming || b.current + if (c) { + f.isFunction(c[a]) && + (e = c[a].apply(c, Array.prototype.slice.call(arguments, 1))) + if (!1 === e) return !1 + c.helpers && + f.each(c.helpers, function (d, e) { + if (e && b.helpers[d] && f.isFunction(b.helpers[d][a])) + b.helpers[d][a](f.extend(!0, {}, b.helpers[d].defaults, e), c) + }) + p.trigger(a) + } + }, + isImage: function (a) { + return ( + q(a) && + a.match( + /(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i + ) + ) + }, + isSWF: function (a) { + return q(a) && a.match(/\.(swf)((\?|#).*)?$/i) + }, + _start: function (a) { + var d = {}, + e, + c + a = l(a) + e = b.group[a] || null + if (!e) return !1 + d = f.extend(!0, {}, b.opts, e) + e = d.margin + c = d.padding + 'number' === f.type(e) && (d.margin = [e, e, e, e]) + 'number' === f.type(c) && (d.padding = [c, c, c, c]) + d.modal && + f.extend(!0, d, { + closeBtn: !1, + closeClick: !1, + nextClick: !1, + arrows: !1, + mouseWheel: !1, + keys: null, + helpers: { overlay: { closeClick: !1 } }, + }) + d.autoSize && (d.autoWidth = d.autoHeight = !0) + 'auto' === d.width && (d.autoWidth = !0) + 'auto' === d.height && (d.autoHeight = !0) + d.group = b.group + d.index = a + b.coming = d + if (!1 === b.trigger('beforeLoad')) b.coming = null + else { + c = d.type + e = d.href + if (!c) + return ( + (b.coming = null), + b.current && b.router && 'jumpto' !== b.router + ? ((b.current.index = a), b[b.router](b.direction)) + : !1 + ) + b.isActive = !0 + if ('image' === c || 'swf' === c) + (d.autoHeight = d.autoWidth = !1), (d.scrolling = 'visible') + 'image' === c && (d.aspectRatio = !0) + 'iframe' === c && s && (d.scrolling = 'scroll') + d.wrap = f(d.tpl.wrap) + .addClass( + 'fancybox-' + + (s ? 'mobile' : 'desktop') + + ' fancybox-type-' + + c + + ' fancybox-tmp ' + + d.wrapCSS + ) + .appendTo(d.parent || 'body') + f.extend(d, { + skin: f('.fancybox-skin', d.wrap), + outer: f('.fancybox-outer', d.wrap), + inner: f('.fancybox-inner', d.wrap), + }) + f.each(['Top', 'Right', 'Bottom', 'Left'], function (a, b) { + d.skin.css('padding' + b, w(d.padding[a])) + }) + b.trigger('onReady') + if ('inline' === c || 'html' === c) { + if (!d.content || !d.content.length) return b._error('content') + } else if (!e) return b._error('href') + 'image' === c + ? b._loadImage() + : 'ajax' === c + ? b._loadAjax() + : 'iframe' === c + ? b._loadIframe() + : b._afterLoad() + } + }, + _error: function (a) { + f.extend(b.coming, { + type: 'html', + autoWidth: !0, + autoHeight: !0, + minWidth: 0, + minHeight: 0, + scrolling: 'no', + hasError: a, + content: b.coming.tpl.error, + }) + b._afterLoad() + }, + _loadImage: function () { + var a = (b.imgPreload = new Image()) + a.onload = function () { + this.onload = this.onerror = null + b.coming.width = this.width / b.opts.pixelRatio + b.coming.height = this.height / b.opts.pixelRatio + b._afterLoad() + } + a.onerror = function () { + this.onload = this.onerror = null + b._error('image') + } + a.src = b.coming.href + !0 !== a.complete && b.showLoading() + }, + _loadAjax: function () { + var a = b.coming + b.showLoading() + b.ajaxLoad = f.ajax( + f.extend({}, a.ajax, { + url: a.href, + error: function (a, e) { + b.coming && 'abort' !== e ? b._error('ajax', a) : b.hideLoading() + }, + success: function (d, e) { + 'success' === e && ((a.content = d), b._afterLoad()) + }, + }) + ) + }, + _loadIframe: function () { + var a = b.coming, + d = f(a.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())) + .attr('scrolling', s ? 'auto' : a.iframe.scrolling) + .attr('src', a.href) + f(a.wrap).bind('onReset', function () { + try { + f(this) + .find('iframe') + .hide() + .attr('src', '//about:blank') + .end() + .empty() + } catch (a) {} + }) + a.iframe.preload && + (b.showLoading(), + d.one('load', function () { + f(this).data('ready', 1) + s || f(this).bind('load.fb', b.update) + f(this) + .parents('.fancybox-wrap') + .width('100%') + .removeClass('fancybox-tmp') + .show() + b._afterLoad() + })) + a.content = d.appendTo(a.inner) + a.iframe.preload || b._afterLoad() + }, + _preloadImages: function () { + var a = b.group, + d = b.current, + e = a.length, + c = d.preload ? Math.min(d.preload, e - 1) : 0, + f, + g + for (g = 1; g <= c; g += 1) + (f = a[(d.index + g) % e]), + 'image' === f.type && f.href && (new Image().src = f.href) + }, + _afterLoad: function () { + var a = b.coming, + d = b.current, + e, + c, + k, + g, + h + b.hideLoading() + if (a && !1 !== b.isActive) + if (!1 === b.trigger('afterLoad', a, d)) + a.wrap.stop(!0).trigger('onReset').remove(), (b.coming = null) + else { + d && + (b.trigger('beforeChange', d), + d.wrap + .stop(!0) + .removeClass('fancybox-opened') + .find('.fancybox-item, .fancybox-nav') + .remove()) + b.unbindEvents() + e = a.content + c = a.type + k = a.scrolling + f.extend(b, { + wrap: a.wrap, + skin: a.skin, + outer: a.outer, + inner: a.inner, + current: a, + previous: d, + }) + g = a.href + switch (c) { + case 'inline': + case 'ajax': + case 'html': + a.selector + ? (e = f('
            ').html(e).find(a.selector)) + : t(e) && + (e.data('fancybox-placeholder') || + e.data( + 'fancybox-placeholder', + f('
            ') + .insertAfter(e) + .hide() + ), + (e = e.show().detach()), + a.wrap.bind('onReset', function () { + f(this).find(e).length && + e + .hide() + .replaceAll(e.data('fancybox-placeholder')) + .data('fancybox-placeholder', !1) + })) + break + case 'image': + e = a.tpl.image.replace('{href}', g) + break + case 'swf': + ;(e = + ''), + (h = ''), + f.each(a.swf, function (a, b) { + e += '' + h += ' ' + a + '="' + b + '"' + }), + (e += + '') + } + ;(!t(e) || !e.parent().is(a.inner)) && a.inner.append(e) + b.trigger('beforeShow') + a.inner.css( + 'overflow', + 'yes' === k ? 'scroll' : 'no' === k ? 'hidden' : k + ) + b._setDimension() + b.reposition() + b.isOpen = !1 + b.coming = null + b.bindEvents() + if (b.isOpened) { + if (d.prevMethod) b.transitions[d.prevMethod]() + } else + f('.fancybox-wrap').not(a.wrap).stop(!0).trigger('onReset').remove() + b.transitions[b.isOpened ? a.nextMethod : a.openMethod]() + b._preloadImages() + } + }, + _setDimension: function () { + var a = b.getViewport(), + d = 0, + e = !1, + c = !1, + e = b.wrap, + k = b.skin, + g = b.inner, + h = b.current, + c = h.width, + j = h.height, + m = h.minWidth, + u = h.minHeight, + n = h.maxWidth, + p = h.maxHeight, + s = h.scrolling, + q = h.scrollOutside ? h.scrollbarWidth : 0, + x = h.margin, + y = l(x[1] + x[3]), + r = l(x[0] + x[2]), + v, + z, + t, + C, + A, + F, + B, + D, + H + e.add(k).add(g).width('auto').height('auto').removeClass('fancybox-tmp') + x = l(k.outerWidth(!0) - k.width()) + v = l(k.outerHeight(!0) - k.height()) + z = y + x + t = r + v + C = E(c) ? ((a.w - z) * l(c)) / 100 : c + A = E(j) ? ((a.h - t) * l(j)) / 100 : j + if ('iframe' === h.type) { + if (((H = h.content), h.autoHeight && 1 === H.data('ready'))) + try { + H[0].contentWindow.document.location && + (g.width(C).height(9999), + (F = H.contents().find('body')), + q && F.css('overflow-x', 'hidden'), + (A = F.outerHeight(!0))) + } catch (G) {} + } else if (h.autoWidth || h.autoHeight) + g.addClass('fancybox-tmp'), + h.autoWidth || g.width(C), + h.autoHeight || g.height(A), + h.autoWidth && (C = g.width()), + h.autoHeight && (A = g.height()), + g.removeClass('fancybox-tmp') + c = l(C) + j = l(A) + D = C / A + m = l(E(m) ? l(m, 'w') - z : m) + n = l(E(n) ? l(n, 'w') - z : n) + u = l(E(u) ? l(u, 'h') - t : u) + p = l(E(p) ? l(p, 'h') - t : p) + F = n + B = p + h.fitToView && ((n = Math.min(a.w - z, n)), (p = Math.min(a.h - t, p))) + z = a.w - y + r = a.h - r + h.aspectRatio + ? (c > n && ((c = n), (j = l(c / D))), + j > p && ((j = p), (c = l(j * D))), + c < m && ((c = m), (j = l(c / D))), + j < u && ((j = u), (c = l(j * D)))) + : ((c = Math.max(m, Math.min(c, n))), + h.autoHeight && 'iframe' !== h.type && (g.width(c), (j = g.height())), + (j = Math.max(u, Math.min(j, p)))) + if (h.fitToView) + if ( + (g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()), + h.aspectRatio) + ) + for (; (a > z || y > r) && c > m && j > u && !(19 < d++); ) + (j = Math.max(u, Math.min(p, j - 10))), + (c = l(j * D)), + c < m && ((c = m), (j = l(c / D))), + c > n && ((c = n), (j = l(c / D))), + g.width(c).height(j), + e.width(c + x), + (a = e.width()), + (y = e.height()) + else + (c = Math.max(m, Math.min(c, c - (a - z)))), + (j = Math.max(u, Math.min(j, j - (y - r)))) + q && 'auto' === s && j < A && c + x + q < z && (c += q) + g.width(c).height(j) + e.width(c + x) + a = e.width() + y = e.height() + e = (a > z || y > r) && c > m && j > u + c = h.aspectRatio + ? c < F && j < B && c < C && j < A + : (c < F || j < B) && (c < C || j < A) + f.extend(h, { + dim: { width: w(a), height: w(y) }, + origWidth: C, + origHeight: A, + canShrink: e, + canExpand: c, + wPadding: x, + hPadding: v, + wrapSpace: y - k.outerHeight(!0), + skinSpace: k.height() - j, + }) + !H && h.autoHeight && j > u && j < p && !c && g.height('auto') + }, + _getPosition: function (a) { + var d = b.current, + e = b.getViewport(), + c = d.margin, + f = b.wrap.width() + c[1] + c[3], + g = b.wrap.height() + c[0] + c[2], + c = { position: 'absolute', top: c[0], left: c[3] } + d.autoCenter && d.fixed && !a && g <= e.h && f <= e.w + ? (c.position = 'fixed') + : d.locked || ((c.top += e.y), (c.left += e.x)) + c.top = w(Math.max(c.top, c.top + (e.h - g) * d.topRatio)) + c.left = w(Math.max(c.left, c.left + (e.w - f) * d.leftRatio)) + return c + }, + _afterZoomIn: function () { + var a = b.current + a && + ((b.isOpen = b.isOpened = !0), + b.wrap.css('overflow', 'visible').addClass('fancybox-opened'), + b.update(), + (a.closeClick || (a.nextClick && 1 < b.group.length)) && + b.inner.css('cursor', 'pointer').bind('click.fb', function (d) { + !f(d.target).is('a') && + !f(d.target).parent().is('a') && + (d.preventDefault(), b[a.closeClick ? 'close' : 'next']()) + }), + a.closeBtn && + f(a.tpl.closeBtn) + .appendTo(b.skin) + .bind('click.fb', function (a) { + a.preventDefault() + b.close() + }), + a.arrows && + 1 < b.group.length && + ((a.loop || 0 < a.index) && + f(a.tpl.prev).appendTo(b.outer).bind('click.fb', b.prev), + (a.loop || a.index < b.group.length - 1) && + f(a.tpl.next).appendTo(b.outer).bind('click.fb', b.next)), + b.trigger('afterShow'), + !a.loop && a.index === a.group.length - 1 + ? b.play(!1) + : b.opts.autoPlay && + !b.player.isActive && + ((b.opts.autoPlay = !1), b.play())) + }, + _afterZoomOut: function (a) { + a = a || b.current + f('.fancybox-wrap').trigger('onReset').remove() + f.extend(b, { + group: {}, + opts: {}, + router: !1, + current: null, + isActive: !1, + isOpened: !1, + isOpen: !1, + isClosing: !1, + wrap: null, + skin: null, + outer: null, + inner: null, + }) + b.trigger('afterClose', a) + }, + }) + b.transitions = { + getOrigPosition: function () { + var a = b.current, + d = a.element, + e = a.orig, + c = {}, + f = 50, + g = 50, + h = a.hPadding, + j = a.wPadding, + m = b.getViewport() + !e && + a.isDom && + d.is(':visible') && + ((e = d.find('img:first')), e.length || (e = d)) + t(e) + ? ((c = e.offset()), + e.is('img') && ((f = e.outerWidth()), (g = e.outerHeight()))) + : ((c.top = m.y + (m.h - g) * a.topRatio), + (c.left = m.x + (m.w - f) * a.leftRatio)) + if ('fixed' === b.wrap.css('position') || a.locked) + (c.top -= m.y), (c.left -= m.x) + return (c = { + top: w(c.top - h * a.topRatio), + left: w(c.left - j * a.leftRatio), + width: w(f + j), + height: w(g + h), + }) + }, + step: function (a, d) { + var e, + c, + f = d.prop + c = b.current + var g = c.wrapSpace, + h = c.skinSpace + if ('width' === f || 'height' === f) + (e = d.end === d.start ? 1 : (a - d.start) / (d.end - d.start)), + b.isClosing && (e = 1 - e), + (c = 'width' === f ? c.wPadding : c.hPadding), + (c = a - c), + b.skin[f](l('width' === f ? c : c - g * e)), + b.inner[f](l('width' === f ? c : c - g * e - h * e)) + }, + zoomIn: function () { + var a = b.current, + d = a.pos, + e = a.openEffect, + c = 'elastic' === e, + k = f.extend({ opacity: 1 }, d) + delete k.position + c + ? ((d = this.getOrigPosition()), a.openOpacity && (d.opacity = 0.1)) + : 'fade' === e && (d.opacity = 0.1) + b.wrap + .css(d) + .animate(k, { + duration: 'none' === e ? 0 : a.openSpeed, + easing: a.openEasing, + step: c ? this.step : null, + complete: b._afterZoomIn, + }) + }, + zoomOut: function () { + var a = b.current, + d = a.closeEffect, + e = 'elastic' === d, + c = { opacity: 0.1 } + e && ((c = this.getOrigPosition()), a.closeOpacity && (c.opacity = 0.1)) + b.wrap.animate(c, { + duration: 'none' === d ? 0 : a.closeSpeed, + easing: a.closeEasing, + step: e ? this.step : null, + complete: b._afterZoomOut, + }) + }, + changeIn: function () { + var a = b.current, + d = a.nextEffect, + e = a.pos, + c = { opacity: 1 }, + f = b.direction, + g + e.opacity = 0.1 + 'elastic' === d && + ((g = 'down' === f || 'up' === f ? 'top' : 'left'), + 'down' === f || 'right' === f + ? ((e[g] = w(l(e[g]) - 200)), (c[g] = '+=200px')) + : ((e[g] = w(l(e[g]) + 200)), (c[g] = '-=200px'))) + 'none' === d + ? b._afterZoomIn() + : b.wrap + .css(e) + .animate(c, { + duration: a.nextSpeed, + easing: a.nextEasing, + complete: b._afterZoomIn, + }) + }, + changeOut: function () { + var a = b.previous, + d = a.prevEffect, + e = { opacity: 0.1 }, + c = b.direction + 'elastic' === d && + (e['down' === c || 'up' === c ? 'top' : 'left'] = + ('up' === c || 'left' === c ? '-' : '+') + '=200px') + a.wrap.animate(e, { + duration: 'none' === d ? 0 : a.prevSpeed, + easing: a.prevEasing, + complete: function () { + f(this).trigger('onReset').remove() + }, + }) + }, + } + b.helpers.overlay = { + defaults: { + closeClick: !0, + speedOut: 200, + showEarly: !0, + css: {}, + locked: !s, + fixed: !0, + }, + overlay: null, + fixed: !1, + el: f('html'), + create: function (a) { + a = f.extend({}, this.defaults, a) + this.overlay && this.close() + this.overlay = f('
            ').appendTo( + b.coming ? b.coming.parent : a.parent + ) + this.fixed = !1 + a.fixed && + b.defaults.fixed && + (this.overlay.addClass('fancybox-overlay-fixed'), (this.fixed = !0)) + }, + open: function (a) { + var d = this + a = f.extend({}, this.defaults, a) + this.overlay + ? this.overlay.unbind('.overlay').width('auto').height('auto') + : this.create(a) + this.fixed || + (n.bind('resize.overlay', f.proxy(this.update, this)), this.update()) + a.closeClick && + this.overlay.bind('click.overlay', function (a) { + if (f(a.target).hasClass('fancybox-overlay')) + return b.isActive ? b.close() : d.close(), !1 + }) + this.overlay.css(a.css).show() + }, + close: function () { + var a, b + n.unbind('resize.overlay') + this.el.hasClass('fancybox-lock') && + (f('.fancybox-margin').removeClass('fancybox-margin'), + (a = n.scrollTop()), + (b = n.scrollLeft()), + this.el.removeClass('fancybox-lock'), + n.scrollTop(a).scrollLeft(b)) + f('.fancybox-overlay').remove().hide() + f.extend(this, { overlay: null, fixed: !1 }) + }, + update: function () { + var a = '100%', + b + this.overlay.width(a).height('100%') + I + ? ((b = Math.max(G.documentElement.offsetWidth, G.body.offsetWidth)), + p.width() > b && (a = p.width())) + : p.width() > n.width() && (a = p.width()) + this.overlay.width(a).height(p.height()) + }, + onReady: function (a, b) { + var e = this.overlay + f('.fancybox-overlay').stop(!0, !0) + e || this.create(a) + a.locked && + this.fixed && + b.fixed && + (e || + (this.margin = + p.height() > n.height() + ? f('html').css('margin-right').replace('px', '') + : !1), + (b.locked = this.overlay.append(b.wrap)), + (b.fixed = !1)) + !0 === a.showEarly && this.beforeShow.apply(this, arguments) + }, + beforeShow: function (a, b) { + var e, c + b.locked && + (!1 !== this.margin && + (f('*') + .filter(function () { + return ( + 'fixed' === f(this).css('position') && + !f(this).hasClass('fancybox-overlay') && + !f(this).hasClass('fancybox-wrap') + ) + }) + .addClass('fancybox-margin'), + this.el.addClass('fancybox-margin')), + (e = n.scrollTop()), + (c = n.scrollLeft()), + this.el.addClass('fancybox-lock'), + n.scrollTop(e).scrollLeft(c)) + this.open(a) + }, + onUpdate: function () { + this.fixed || this.update() + }, + afterClose: function (a) { + this.overlay && + !b.coming && + this.overlay.fadeOut(a.speedOut, f.proxy(this.close, this)) + }, + } + b.helpers.title = { + defaults: { type: 'float', position: 'bottom' }, + beforeShow: function (a) { + var d = b.current, + e = d.title, + c = a.type + f.isFunction(e) && (e = e.call(d.element, d)) + if (q(e) && '' !== f.trim(e)) { + d = f( + '
            ' + + e + + '
            ' + ) + switch (c) { + case 'inside': + c = b.skin + break + case 'outside': + c = b.wrap + break + case 'over': + c = b.inner + break + default: + ;(c = b.skin), + d.appendTo('body'), + I && d.width(d.width()), + d.wrapInner(''), + (b.current.margin[2] += Math.abs(l(d.css('margin-bottom')))) + } + d['top' === a.position ? 'prependTo' : 'appendTo'](c) + } + }, + } + f.fn.fancybox = function (a) { + var d, + e = f(this), + c = this.selector || '', + k = function (g) { + var h = f(this).blur(), + j = d, + k, + l + !g.ctrlKey && + !g.altKey && + !g.shiftKey && + !g.metaKey && + !h.is('.fancybox-wrap') && + ((k = a.groupAttr || 'data-fancybox-group'), + (l = h.attr(k)), + l || ((k = 'rel'), (l = h.get(0)[k])), + l && + '' !== l && + 'nofollow' !== l && + ((h = c.length ? f(c) : e), + (h = h.filter('[' + k + '="' + l + '"]')), + (j = h.index(this))), + (a.index = j), + !1 !== b.open(h, a) && g.preventDefault()) + } + a = a || {} + d = a.index || 0 + !c || !1 === a.live + ? e.unbind('click.fb-start').bind('click.fb-start', k) + : p + .undelegate(c, 'click.fb-start') + .delegate( + c + ":not('.fancybox-item, .fancybox-nav')", + 'click.fb-start', + k + ) + this.filter('[data-fancybox-start=1]').trigger('click') + return this + } + p.ready(function () { + var a, d + f.scrollbarWidth === v && + (f.scrollbarWidth = function () { + var a = f( + '
            ' + ).appendTo('body'), + b = a.children(), + b = b.innerWidth() - b.height(99).innerWidth() + a.remove() + return b + }) + if (f.support.fixedPosition === v) { + a = f.support + d = f('
            ').appendTo('body') + var e = 20 === d[0].offsetTop || 15 === d[0].offsetTop + d.remove() + a.fixedPosition = e + } + f.extend(b.defaults, { + scrollbarWidth: f.scrollbarWidth(), + fixed: f.support.fixedPosition, + parent: f('body'), + }) + a = f(r).width() + J.addClass('fancybox-lock-test') + d = f(r).width() + J.removeClass('fancybox-lock-test') + f( + "' + ).appendTo('head') + }) +})(window, document, jQuery) +;(function () { + 'use strict' + var $, + Animation, + Growl, + __bind = function (fn, me) { + return function () { + return fn.apply(me, arguments) + } + } + $ = jQuery + Animation = (function () { + function Animation() {} + Animation.transitions = { + webkitTransition: 'webkitTransitionEnd', + mozTransition: 'mozTransitionEnd', + oTransition: 'oTransitionEnd', + transition: 'transitionend', + } + Animation.transition = function ($el) { + var el, result, type, _ref + el = $el[0] + _ref = this.transitions + for (type in _ref) { + result = _ref[type] + if (el.style[type] != null) { + return result + } + } + } + return Animation + })() + Growl = (function () { + Growl.settings = { + namespace: 'growl', + duration: 1000, + close: '×', + location: 'default', + style: 'default', + size: 'medium', + } + Growl.growl = function (settings) { + if (settings == null) { + settings = {} + } + this.initialize() + return new Growl(settings) + } + Growl.initialize = function () { + return $('body:not(:has(#growls))').append('
            ') + } + function Growl(settings) { + if (settings == null) { + settings = {} + } + this.html = __bind(this.html, this) + this.$growl = __bind(this.$growl, this) + this.$growls = __bind(this.$growls, this) + this.animate = __bind(this.animate, this) + this.remove = __bind(this.remove, this) + this.dismiss = __bind(this.dismiss, this) + this.present = __bind(this.present, this) + this.close = __bind(this.close, this) + this.cycle = __bind(this.cycle, this) + this.unbind = __bind(this.unbind, this) + this.bind = __bind(this.bind, this) + this.render = __bind(this.render, this) + this.settings = $.extend({}, Growl.settings, settings) + this.$growls().attr('class', this.settings.location) + this.render() + } + Growl.prototype.render = function () { + var $growl + $growl = this.$growl() + this.$growls().append($growl) + this.cycle($growl) + } + Growl.prototype.bind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + this.settings.namespace + '-close') + .on('click', this.close) + } + Growl.prototype.unbind = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .find('.' + (this.settings.namespace - close)) + .off('click', this.close) + } + Growl.prototype.cycle = function ($growl) { + if ($growl == null) { + $growl = this.$growl() + } + return $growl + .queue(this.present) + .delay(this.settings.duration) + .queue(this.dismiss) + .queue(this.remove) + } + Growl.prototype.close = function (event) { + var $growl + event.preventDefault() + event.stopPropagation() + $growl = this.$growl() + return $growl.stop().queue(this.dismiss).queue(this.remove) + } + Growl.prototype.present = function (callback) { + var $growl + $growl = this.$growl() + this.bind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-incoming', + 'out', + callback + ) + } + Growl.prototype.dismiss = function (callback) { + var $growl + $growl = this.$growl() + this.unbind($growl) + return this.animate( + $growl, + '' + this.settings.namespace + '-outgoing', + 'in', + callback + ) + } + Growl.prototype.remove = function (callback) { + this.$growl().remove() + return callback() + } + Growl.prototype.animate = function ($element, name, direction, callback) { + var transition + if (direction == null) { + direction = 'in' + } + transition = Animation.transition($element) + $element[direction === 'in' ? 'removeClass' : 'addClass'](name) + $element.offset().position + $element[direction === 'in' ? 'addClass' : 'removeClass'](name) + if (callback == null) { + return + } + if (transition != null) { + $element.one(transition, callback) + } else { + callback() + } + } + Growl.prototype.$growls = function () { + return this.$_growls != null + ? this.$_growls + : (this.$_growls = $('#growls')) + } + Growl.prototype.$growl = function () { + return this.$_growl != null + ? this.$_growl + : (this.$_growl = $(this.html())) + } + Growl.prototype.html = function () { + return ( + "
            \n
            " + + this.settings.close + + "
            \n
            " + + this.settings.title + + "
            \n
            " + + this.settings.message + + '
            \n
            ' + ) + } + return Growl + })() + $.growl = function (options) { + if (options == null) { + options = {} + } + return Growl.growl(options) + } + $.growl.error = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Error!', style: 'error' } + return $.growl($.extend(settings, options)) + } + $.growl.notice = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Notice!', style: 'notice' } + return $.growl($.extend(settings, options)) + } + $.growl.warning = function (options) { + var settings + if (options == null) { + options = {} + } + settings = { title: 'Warning!', style: 'warning' } + return $.growl($.extend(settings, options)) + } +}).call(this) +;(function (k) { + 'use strict' + k(['jquery'], function ($) { + var j = ($.scrollTo = function (a, b, c) { + return $(window).scrollTo(a, b, c) + }) + j.defaults = { axis: 'xy', duration: 0, limit: !0 } + j.window = function (a) { + return $(window)._scrollable() + } + $.fn._scrollable = function () { + return this.map(function () { + var a = this, + isWin = + !a.nodeName || + $.inArray(a.nodeName.toLowerCase(), [ + 'iframe', + '#document', + 'html', + 'body', + ]) != -1 + if (!isWin) return a + var b = (a.contentWindow || a).document || a.ownerDocument || a + return /webkit/i.test(navigator.userAgent) || + b.compatMode == 'BackCompat' + ? b.body + : b.documentElement + }) + } + $.fn.scrollTo = function (f, g, h) { + if (typeof g == 'object') { + h = g + g = 0 + } + if (typeof h == 'function') h = { onAfter: h } + if (f == 'max') f = 9e9 + h = $.extend({}, j.defaults, h) + g = g || h.duration + h.queue = h.queue && h.axis.length > 1 + if (h.queue) g /= 2 + h.offset = both(h.offset) + h.over = both(h.over) + return this._scrollable() + .each(function () { + if (f == null) return + var d = this, + $elem = $(d), + targ = f, + toff, + attr = {}, + win = $elem.is('html,body') + switch (typeof targ) { + case 'number': + case 'string': + if (/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)) { + targ = both(targ) + break + } + targ = win ? $(targ) : $(targ, this) + if (!targ.length) return + case 'object': + if (targ.is || targ.style) toff = (targ = $(targ)).offset() + } + var e = ($.isFunction(h.offset) && h.offset(d, targ)) || h.offset + $.each(h.axis.split(''), function (i, a) { + var b = a == 'x' ? 'Left' : 'Top', + pos = b.toLowerCase(), + key = 'scroll' + b, + old = d[key], + max = j.max(d, a) + if (toff) { + attr[key] = toff[pos] + (win ? 0 : old - $elem.offset()[pos]) + if (h.margin) { + attr[key] -= parseInt(targ.css('margin' + b)) || 0 + attr[key] -= parseInt(targ.css('border' + b + 'Width')) || 0 + } + attr[key] += e[pos] || 0 + if (h.over[pos]) + attr[key] += targ[a == 'x' ? 'width' : 'height']() * h.over[pos] + } else { + var c = targ[pos] + attr[key] = + c.slice && c.slice(-1) == '%' ? (parseFloat(c) / 100) * max : c + } + if (h.limit && /^\d+$/.test(attr[key])) + attr[key] = attr[key] <= 0 ? 0 : Math.min(attr[key], max) + if (!i && h.queue) { + if (old != attr[key]) animate(h.onAfterFirst) + delete attr[key] + } + }) + animate(h.onAfter) + function animate(a) { + $elem.animate( + attr, + g, + h.easing, + a && + function () { + a.call(this, targ, h) + } + ) + } + }) + .end() + } + j.max = function (a, b) { + var c = b == 'x' ? 'Width' : 'Height', + scroll = 'scroll' + c + if (!$(a).is('html,body')) return a[scroll] - $(a)[c.toLowerCase()]() + var d = 'client' + c, + html = a.ownerDocument.documentElement, + body = a.ownerDocument.body + return Math.max(html[scroll], body[scroll]) - Math.min(html[d], body[d]) + } + function both(a) { + return $.isFunction(a) || $.isPlainObject(a) ? a : { top: a, left: a } + } + return j + }) +})( + typeof define === 'function' && define.amd + ? define + : function (a, b) { + if (typeof module !== 'undefined' && module.exports) { + module.exports = b(require('jquery')) + } else { + b(jQuery) + } + } +) +;(function (a) { + var b = (a.serialScroll = function (c) { + return a(window).serialScroll(c) + }) + b.defaults = { + duration: 1e3, + axis: 'x', + event: 'click', + start: 0, + step: 1, + lock: !0, + cycle: !0, + constant: !0, + } + a.fn.serialScroll = function (c) { + return this.each(function () { + var t = a.extend({}, b.defaults, c), + s = t.event, + i = t.step, + r = t.lazy, + e = t.target ? this : document, + u = a(t.target || this, e), + p = u[0], + m = t.items, + h = t.start, + g = t.interval, + k = t.navigation, + l + if (!r) { + m = d() + } + if (t.force) { + f({}, h) + } + a(t.prev || [], e).bind(s, -i, q) + a(t.next || [], e).bind(s, i, q) + if (!p.ssbound) { + u.bind('prev.serialScroll', -i, q) + .bind('next.serialScroll', i, q) + .bind('goto.serialScroll', f) + } + if (g) { + u.bind('start.serialScroll', function (v) { + if (!g) { + o() + g = !0 + n() + } + }).bind('stop.serialScroll', function () { + o() + g = !1 + }) + } + u.bind('notify.serialScroll', function (x, w) { + var v = j(w) + if (v > -1) { + h = v + } + }) + p.ssbound = !0 + if (t.jump) { + ;(r ? u : d()).bind(s, function (v) { + f(v, j(v.target)) + }) + } + if (k) { + k = a(k, e).bind(s, function (v) { + v.data = Math.round(d().length / k.length) * k.index(this) + f(v, this) + }) + } + function q(v) { + v.data += h + f(v, this) + } + function f(B, z) { + if (!isNaN(z)) { + B.data = z + z = p + } + var C = B.data, + v, + D = B.type, + A = t.exclude ? d().slice(0, -t.exclude) : d(), + y = A.length, + w = A[C], + x = t.duration + if (D) { + B.preventDefault() + } + if (g) { + o() + l = setTimeout(n, t.interval) + } + if (!w) { + v = C < 0 ? 0 : y - 1 + if (h != v) { + C = v + } else { + if (!t.cycle) { + return + } else { + C = y - v - 1 + } + } + w = A[C] + } + if ( + !w || + (t.lock && u.is(':animated')) || + (D && t.onBefore && t.onBefore(B, w, u, d(), C) === !1) + ) { + return + } + if (t.stop) { + u.queue('fx', []).stop() + } + if (t.constant) { + x = Math.abs((x / i) * (h - C)) + } + u.scrollTo(w, x, t).trigger('notify.serialScroll', [C]) + } + function n() { + u.trigger('next.serialScroll') + } + function o() { + clearTimeout(l) + } + function d() { + return a(m, p) + } + function j(w) { + if (!isNaN(w)) { + return w + } + var x = d(), + v + while ((v = x.index(w)) == -1 && w != p) { + w = w.parentNode + } + return v + } + }) + } +})(jQuery) +/*! * jQuery Cookie Plugin * https://github.com/carhartl/jquery-cookie * @@ -1833,12 +96332,1200 @@ settings={title:"Warning!",style:"warning"};return $.growl($.extend(settings,opt * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ -(function($){$.cookie=function(key,value,options){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(value))||value===null||value===undefined)){options=$.extend({},options);if(value===null||value===undefined){options.expires=-1} -if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days)} -value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))} -options=value||{};var decode=options.raw?function(s){return s}:decodeURIComponent;var pairs=document.cookie.split('; ');for(var i=0,pair;pair=pairs[i]&&pairs[i].split('=');i++){if(decode(pair[0])===key)return decode(pair[1]||'')} -return null}})(jQuery);/*! For license information please see front.js.LICENSE.txt */ -(()=>{var t={557:()=>{!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(jQuery)},658:(t,e,n)=>{var r=/[\\^$.*+?()[\]{}|]/g,i=RegExp(r.source),o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,a="object"==typeof self&&self&&self.Object===Object&&self,u=o||a||Function("return this")(),c=Object.prototype.toString,s=u.Symbol,l=s?s.prototype:void 0,f=l?l.toString:void 0;t.exports=function(t){var e;return(t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return f?f.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e))&&i.test(t)?t.replace(r,"\\$&"):t}},741:()=>{},580:()=>{},765:()=>{},379:(t,e,n)=>{"use strict";var r,i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function a(t){for(var e=-1,n=0;n{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.numberSpecification.getMaxFractionDigits()&&(e=e.replace(/0+$/,"")),e.length1&&(o=e(i[1]));var a=!1;o.forEach((function(t){"q"===t.name&&(a=!0)})),a||o.push({name:"q",value:""}),o.forEach((function(e){"q"===e.name&&(e.value+=[e.value.length>0?"/":"",t.data("slider-label"),"-",t.data("slider-unit"),"-",r.values[0],"-",r.values[1]].join(""))}));var u=[i[0],"?",$.param(o)].join("");prestashop.emit("updateFacets",u)},slide:function(e,n){P(t.data("slider-id"),$("#facet_label_".concat(t.data("slider-id"))),n.values[0],n.values[1])}})}))};var M=n(379),I=n.n(M),_=n(580),E=n.n(_);I()(E(),{insert:"head",singleton:!1}),E().locals,$(document).ready((function(){prestashop.on("updateProductList",(function(){$(".faceted-overlay").remove(),k()})),k(),prestashop.on("updateFacets",(function(){1!==$(".faceted-overlay").length&&$("body").append('
            \n
            \n
            \n
            \n
            ')}))}));var D=n(765),O=n.n(D);I()(O(),{insert:"head",singleton:!1}),O().locals;var C=n(741),F=n.n(C);I()(F(),{insert:"head",singleton:!1}),F().locals})()})();/* +;(function ($) { + $.cookie = function (key, value, options) { + if ( + arguments.length > 1 && + (!/Object/.test(Object.prototype.toString.call(value)) || + value === null || + value === undefined) + ) { + options = $.extend({}, options) + if (value === null || value === undefined) { + options.expires = -1 + } + if (typeof options.expires === 'number') { + var days = options.expires, + t = (options.expires = new Date()) + t.setDate(t.getDate() + days) + } + value = String(value) + return (document.cookie = [ + encodeURIComponent(key), + '=', + options.raw ? value : encodeURIComponent(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '', + ].join('')) + } + options = value || {} + var decode = options.raw + ? function (s) { + return s + } + : decodeURIComponent + var pairs = document.cookie.split('; ') + for (var i = 0, pair; (pair = pairs[i] && pairs[i].split('=')); i++) { + if (decode(pair[0]) === key) return decode(pair[1] || '') + } + return null + } +})(jQuery) /*! For license information please see front.js.LICENSE.txt */ +;(() => { + var t = { + 557: () => { + !(function (t) { + if (((t.support.touch = 'ontouchend' in document), t.support.touch)) { + var e, + n = t.ui.mouse.prototype, + r = n._mouseInit, + i = n._mouseDestroy + ;(n._touchStart = function (t) { + !e && + this._mouseCapture(t.originalEvent.changedTouches[0]) && + ((e = !0), + (this._touchMoved = !1), + o(t, 'mouseover'), + o(t, 'mousemove'), + o(t, 'mousedown')) + }), + (n._touchMove = function (t) { + e && ((this._touchMoved = !0), o(t, 'mousemove')) + }), + (n._touchEnd = function (t) { + e && + (o(t, 'mouseup'), + o(t, 'mouseout'), + this._touchMoved || o(t, 'click'), + (e = !1)) + }), + (n._mouseInit = function () { + var e = this + e.element.bind({ + touchstart: t.proxy(e, '_touchStart'), + touchmove: t.proxy(e, '_touchMove'), + touchend: t.proxy(e, '_touchEnd'), + }), + r.call(e) + }), + (n._mouseDestroy = function () { + var e = this + e.element.unbind({ + touchstart: t.proxy(e, '_touchStart'), + touchmove: t.proxy(e, '_touchMove'), + touchend: t.proxy(e, '_touchEnd'), + }), + i.call(e) + }) + } + function o(t, e) { + if (!(t.originalEvent.touches.length > 1)) { + t.preventDefault() + var n = t.originalEvent.changedTouches[0], + r = document.createEvent('MouseEvents') + r.initMouseEvent( + e, + !0, + !0, + window, + 1, + n.screenX, + n.screenY, + n.clientX, + n.clientY, + !1, + !1, + !1, + !1, + 0, + null + ), + t.target.dispatchEvent(r) + } + } + })(jQuery) + }, + 658: (t, e, n) => { + var r = /[\\^$.*+?()[\]{}|]/g, + i = RegExp(r.source), + o = 'object' == typeof n.g && n.g && n.g.Object === Object && n.g, + a = 'object' == typeof self && self && self.Object === Object && self, + u = o || a || Function('return this')(), + c = Object.prototype.toString, + s = u.Symbol, + l = s ? s.prototype : void 0, + f = l ? l.toString : void 0 + t.exports = function (t) { + var e + return (t = + null == (e = t) + ? '' + : (function (t) { + if ('string' == typeof t) return t + if ( + (function (t) { + return ( + 'symbol' == typeof t || + ((function (t) { + return !!t && 'object' == typeof t + })(t) && + '[object Symbol]' == c.call(t)) + ) + })(t) + ) + return f ? f.call(t) : '' + var e = t + '' + return '0' == e && 1 / t == -1 / 0 ? '-0' : e + })(e)) && i.test(t) + ? t.replace(r, '\\$&') + : t + } + }, + 741: () => {}, + 580: () => {}, + 765: () => {}, + 379: (t, e, n) => { + 'use strict' + var r, + i = (function () { + var t = {} + return function (e) { + if (void 0 === t[e]) { + var n = document.querySelector(e) + if ( + window.HTMLIFrameElement && + n instanceof window.HTMLIFrameElement + ) + try { + n = n.contentDocument.head + } catch (t) { + n = null + } + t[e] = n + } + return t[e] + } + })(), + o = [] + function a(t) { + for (var e = -1, n = 0; n < o.length; n++) + if (o[n].identifier === t) { + e = n + break + } + return e + } + function u(t, e) { + for (var n = {}, r = [], i = 0; i < t.length; i++) { + var u = t[i], + c = e.base ? u[0] + e.base : u[0], + s = n[c] || 0, + l = ''.concat(c, ' ').concat(s) + n[c] = s + 1 + var f = a(l), + p = { css: u[1], media: u[2], sourceMap: u[3] } + ;-1 !== f + ? (o[f].references++, o[f].updater(p)) + : o.push({ identifier: l, updater: h(p, e), references: 1 }), + r.push(l) + } + return r + } + function c(t) { + var e = document.createElement('style'), + r = t.attributes || {} + if (void 0 === r.nonce) { + var o = n.nc + o && (r.nonce = o) + } + if ( + (Object.keys(r).forEach(function (t) { + e.setAttribute(t, r[t]) + }), + 'function' == typeof t.insert) + ) + t.insert(e) + else { + var a = i(t.insert || 'head') + if (!a) + throw new Error( + "Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid." + ) + a.appendChild(e) + } + return e + } + var s, + l = + ((s = []), + function (t, e) { + return (s[t] = e), s.filter(Boolean).join('\n') + }) + function f(t, e, n, r) { + var i = n + ? '' + : r.media + ? '@media '.concat(r.media, ' {').concat(r.css, '}') + : r.css + if (t.styleSheet) t.styleSheet.cssText = l(e, i) + else { + var o = document.createTextNode(i), + a = t.childNodes + a[e] && t.removeChild(a[e]), + a.length ? t.insertBefore(o, a[e]) : t.appendChild(o) + } + } + function p(t, e, n) { + var r = n.css, + i = n.media, + o = n.sourceMap + if ( + (i ? t.setAttribute('media', i) : t.removeAttribute('media'), + o && + 'undefined' != typeof btoa && + (r += + '\n/*# sourceMappingURL=data:application/json;base64,'.concat( + btoa(unescape(encodeURIComponent(JSON.stringify(o)))), + ' */' + )), + t.styleSheet) + ) + t.styleSheet.cssText = r + else { + for (; t.firstChild; ) t.removeChild(t.firstChild) + t.appendChild(document.createTextNode(r)) + } + } + var y = null, + d = 0 + function h(t, e) { + var n, r, i + if (e.singleton) { + var o = d++ + ;(n = y || (y = c(e))), + (r = f.bind(null, n, o, !1)), + (i = f.bind(null, n, o, !0)) + } else + (n = c(e)), + (r = p.bind(null, n, e)), + (i = function () { + !(function (t) { + if (null === t.parentNode) return !1 + t.parentNode.removeChild(t) + })(n) + }) + return ( + r(t), + function (e) { + if (e) { + if ( + e.css === t.css && + e.media === t.media && + e.sourceMap === t.sourceMap + ) + return + r((t = e)) + } else i() + } + ) + } + t.exports = function (t, e) { + ;(e = e || {}).singleton || + 'boolean' == typeof e.singleton || + (e.singleton = + (void 0 === r && + (r = Boolean( + window && document && document.all && !window.atob + )), + r)) + var n = u((t = t || []), e) + return function (t) { + if ( + ((t = t || []), + '[object Array]' === Object.prototype.toString.call(t)) + ) { + for (var r = 0; r < n.length; r++) { + var i = a(n[r]) + o[i].references-- + } + for (var c = u(t, e), s = 0; s < n.length; s++) { + var l = a(n[s]) + 0 === o[l].references && (o[l].updater(), o.splice(l, 1)) + } + n = c + } + } + } + }, + }, + e = {} + function n(r) { + if (e[r]) return e[r].exports + var i = (e[r] = { exports: {} }) + return t[r](i, i.exports, n), i.exports + } + ;(n.n = (t) => { + var e = t && t.__esModule ? () => t.default : () => t + return n.d(e, { a: e }), e + }), + (n.d = (t, e) => { + for (var r in e) + n.o(e, r) && + !n.o(t, r) && + Object.defineProperty(t, r, { enumerable: !0, get: e[r] }) + }), + (n.g = (function () { + if ('object' == typeof globalThis) return globalThis + try { + return this || new Function('return this')() + } catch (t) { + if ('object' == typeof window) return window + } + })()), + (n.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e)), + (() => { + 'use strict' + function t(t, e) { + ;(null == e || e > t.length) && (e = t.length) + for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n] + return r + } + n(557) + const e = function (e) { + return e.split('&').map(function (e) { + var n, + r, + i = + ((n = e.split('=')), + (r = 2), + (function (t) { + if (Array.isArray(t)) return t + })(n) || + (function (t, e) { + if ( + 'undefined' != typeof Symbol && + Symbol.iterator in Object(t) + ) { + var n = [], + r = !0, + i = !1, + o = void 0 + try { + for ( + var a, u = t[Symbol.iterator](); + !(r = (a = u.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + ;(i = !0), (o = t) + } finally { + try { + r || null == u.return || u.return() + } finally { + if (i) throw o + } + } + return n + } + })(n, r) || + (function (e, n) { + if (e) { + if ('string' == typeof e) return t(e, n) + var r = Object.prototype.toString.call(e).slice(8, -1) + return ( + 'Object' === r && + e.constructor && + (r = e.constructor.name), + 'Map' === r || 'Set' === r + ? Array.from(e) + : 'Arguments' === r || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) + ? t(e, n) + : void 0 + ) + } + })(n, r) || + (function () { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })()), + o = i[0], + a = i[1] + return { name: o, value: decodeURIComponent(a).replace(/\+/g, ' ') } + }) + }, + r = function t(e) { + !(function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.message = e), + (this.name = 'LocalizationException') + } + function i(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + const o = (function () { + function t(e, n, r, i, o, a, u, c, s, l, f) { + !(function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.decimal = e), + (this.group = n), + (this.list = r), + (this.percentSign = i), + (this.minusSign = o), + (this.plusSign = a), + (this.exponential = u), + (this.superscriptingExponent = c), + (this.perMille = s), + (this.infinity = l), + (this.nan = f), + this.validateData() + } + var e, n + return ( + (e = t), + (n = [ + { + key: 'getDecimal', + value: function () { + return this.decimal + }, + }, + { + key: 'getGroup', + value: function () { + return this.group + }, + }, + { + key: 'getList', + value: function () { + return this.list + }, + }, + { + key: 'getPercentSign', + value: function () { + return this.percentSign + }, + }, + { + key: 'getMinusSign', + value: function () { + return this.minusSign + }, + }, + { + key: 'getPlusSign', + value: function () { + return this.plusSign + }, + }, + { + key: 'getExponential', + value: function () { + return this.exponential + }, + }, + { + key: 'getSuperscriptingExponent', + value: function () { + return this.superscriptingExponent + }, + }, + { + key: 'getPerMille', + value: function () { + return this.perMille + }, + }, + { + key: 'getInfinity', + value: function () { + return this.infinity + }, + }, + { + key: 'getNan', + value: function () { + return this.nan + }, + }, + { + key: 'validateData', + value: function () { + if (!this.decimal || 'string' != typeof this.decimal) + throw new r('Invalid decimal') + if (!this.group || 'string' != typeof this.group) + throw new r('Invalid group') + if (!this.list || 'string' != typeof this.list) + throw new r('Invalid symbol list') + if (!this.percentSign || 'string' != typeof this.percentSign) + throw new r('Invalid percentSign') + if (!this.minusSign || 'string' != typeof this.minusSign) + throw new r('Invalid minusSign') + if (!this.plusSign || 'string' != typeof this.plusSign) + throw new r('Invalid plusSign') + if (!this.exponential || 'string' != typeof this.exponential) + throw new r('Invalid exponential') + if ( + !this.superscriptingExponent || + 'string' != typeof this.superscriptingExponent + ) + throw new r('Invalid superscriptingExponent') + if (!this.perMille || 'string' != typeof this.perMille) + throw new r('Invalid perMille') + if (!this.infinity || 'string' != typeof this.infinity) + throw new r('Invalid infinity') + if (!this.nan || 'string' != typeof this.nan) + throw new r('Invalid nan') + }, + }, + ]) && i(e.prototype, n), + t + ) + })() + function a(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + const u = (function () { + function t(e, n, i, a, u, c, s, l) { + if ( + ((function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.positivePattern = e), + (this.negativePattern = n), + (this.symbol = i), + (this.maxFractionDigits = a), + (this.minFractionDigits = a < u ? a : u), + (this.groupingUsed = c), + (this.primaryGroupSize = s), + (this.secondaryGroupSize = l), + !this.positivePattern || 'string' != typeof this.positivePattern) + ) + throw new r('Invalid positivePattern') + if (!this.negativePattern || 'string' != typeof this.negativePattern) + throw new r('Invalid negativePattern') + if (!(this.symbol && this.symbol instanceof o)) + throw new r('Invalid symbol') + if ('number' != typeof this.maxFractionDigits) + throw new r('Invalid maxFractionDigits') + if ('number' != typeof this.minFractionDigits) + throw new r('Invalid minFractionDigits') + if ('boolean' != typeof this.groupingUsed) + throw new r('Invalid groupingUsed') + if ('number' != typeof this.primaryGroupSize) + throw new r('Invalid primaryGroupSize') + if ('number' != typeof this.secondaryGroupSize) + throw new r('Invalid secondaryGroupSize') + } + var e, n + return ( + (e = t), + (n = [ + { + key: 'getSymbol', + value: function () { + return this.symbol + }, + }, + { + key: 'getPositivePattern', + value: function () { + return this.positivePattern + }, + }, + { + key: 'getNegativePattern', + value: function () { + return this.negativePattern + }, + }, + { + key: 'getMaxFractionDigits', + value: function () { + return this.maxFractionDigits + }, + }, + { + key: 'getMinFractionDigits', + value: function () { + return this.minFractionDigits + }, + }, + { + key: 'isGroupingUsed', + value: function () { + return this.groupingUsed + }, + }, + { + key: 'getPrimaryGroupSize', + value: function () { + return this.primaryGroupSize + }, + }, + { + key: 'getSecondaryGroupSize', + value: function () { + return this.secondaryGroupSize + }, + }, + ]) && a(e.prototype, n), + t + ) + })() + function c(t) { + return (c = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function (t) { + return typeof t + } + : function (t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t + })(t) + } + function s(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + function l(t, e) { + return (l = + Object.setPrototypeOf || + function (t, e) { + return (t.__proto__ = e), t + })(t, e) + } + function f(t, e) { + return !e || ('object' !== c(e) && 'function' != typeof e) + ? (function (t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ) + return t + })(t) + : e + } + function p(t) { + return (p = Object.setPrototypeOf + ? Object.getPrototypeOf + : function (t) { + return t.__proto__ || Object.getPrototypeOf(t) + })(t) + } + const y = (function (t) { + !(function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ) + ;(t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 }, + })), + e && l(t, e) + })(c, t) + var e, + n, + i, + o, + a, + u = + ((o = c), + (a = (function () { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1 + if (Reflect.construct.sham) return !1 + if ('function' == typeof Proxy) return !0 + try { + return ( + Date.prototype.toString.call( + Reflect.construct(Date, [], function () {}) + ), + !0 + ) + } catch (t) { + return !1 + } + })()), + function () { + var t, + e = p(o) + if (a) { + var n = p(this).constructor + t = Reflect.construct(e, arguments, n) + } else t = e.apply(this, arguments) + return f(this, t) + }) + function c(t, e, n, i, o, a, s, l, f, p) { + var y + if ( + ((function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, c), + ((y = u.call(this, t, e, n, i, o, a, s, l)).currencySymbol = f), + (y.currencyCode = p), + !y.currencySymbol || 'string' != typeof y.currencySymbol) + ) + throw new r('Invalid currencySymbol') + if (!y.currencyCode || 'string' != typeof y.currencyCode) + throw new r('Invalid currencyCode') + return y + } + return ( + (e = c), + (i = [ + { + key: 'getCurrencyDisplay', + value: function () { + return 'symbol' + }, + }, + ]), + (n = [ + { + key: 'getCurrencySymbol', + value: function () { + return this.currencySymbol + }, + }, + { + key: 'getCurrencyCode', + value: function () { + return this.currencyCode + }, + }, + ]) && s(e.prototype, n), + i && s(e, i), + c + ) + })(u) + function d(t, e, n) { + return (d = h() + ? Reflect.construct + : function (t, e, n) { + var r = [null] + r.push.apply(r, e) + var i = new (Function.bind.apply(t, r))() + return n && v(i, n.prototype), i + }).apply(null, arguments) + } + function h() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1 + if (Reflect.construct.sham) return !1 + if ('function' == typeof Proxy) return !0 + try { + return ( + Date.prototype.toString.call( + Reflect.construct(Date, [], function () {}) + ), + !0 + ) + } catch (t) { + return !1 + } + } + function v(t, e) { + return (v = + Object.setPrototypeOf || + function (t, e) { + return (t.__proto__ = e), t + })(t, e) + } + function g(t) { + return ( + (function (t) { + if (Array.isArray(t)) return b(t) + })(t) || + (function (t) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(t)) + return Array.from(t) + })(t) || + m(t) || + (function () { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })() + ) + } + function m(t, e) { + if (t) { + if ('string' == typeof t) return b(t, e) + var n = Object.prototype.toString.call(t).slice(8, -1) + return ( + 'Object' === n && t.constructor && (n = t.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(t) + : 'Arguments' === n || + /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? b(t, e) + : void 0 + ) + } + } + function b(t, e) { + ;(null == e || e > t.length) && (e = t.length) + for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n] + return r + } + function S(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n] + ;(r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r) + } + } + var w = n(658) + const x = (function () { + function t(e) { + !(function (t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function') + })(this, t), + (this.numberSpecification = e) + } + var e, n, r + return ( + (e = t), + (r = [ + { + key: 'build', + value: function (e) { + var n + return ( + (n = + void 0 !== e.numberSymbols + ? d(o, g(e.numberSymbols)) + : d(o, g(e.symbol))), + new t( + e.currencySymbol + ? new y( + e.positivePattern, + e.negativePattern, + n, + parseInt(e.maxFractionDigits, 10), + parseInt(e.minFractionDigits, 10), + e.groupingUsed, + e.primaryGroupSize, + e.secondaryGroupSize, + e.currencySymbol, + e.currencyCode + ) + : new u( + e.positivePattern, + e.negativePattern, + n, + parseInt(e.maxFractionDigits, 10), + parseInt(e.minFractionDigits, 10), + e.groupingUsed, + e.primaryGroupSize, + e.secondaryGroupSize + ) + ) + ) + }, + }, + ]), + (n = [ + { + key: 'format', + value: function (t, e) { + void 0 !== e && (this.numberSpecification = e) + var n, + r, + i = Math.abs(t).toFixed( + this.numberSpecification.getMaxFractionDigits() + ), + o = + ((n = this.extractMajorMinorDigits(i)), + (r = 2), + (function (t) { + if (Array.isArray(t)) return t + })(n) || + (function (t, e) { + if ( + 'undefined' != typeof Symbol && + Symbol.iterator in Object(t) + ) { + var n = [], + r = !0, + i = !1, + o = void 0 + try { + for ( + var a, u = t[Symbol.iterator](); + !(r = (a = u.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + ;(i = !0), (o = t) + } finally { + try { + r || null == u.return || u.return() + } finally { + if (i) throw o + } + } + return n + } + })(n, r) || + m(n, r) || + (function () { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + ) + })()), + a = o[0], + u = o[1], + c = (a = this.splitMajorGroups(a)) + ;(u = this.adjustMinorDigitsZeroes(u)) && (c += '.' + u) + var s = this.getCldrPattern(t < 0) + return ( + (c = this.addPlaceholders(c, s)), + (c = this.replaceSymbols(c)), + this.performSpecificReplacements(c) + ) + }, + }, + { + key: 'extractMajorMinorDigits', + value: function (t) { + var e = t.toString().split('.') + return [e[0], void 0 === e[1] ? '' : e[1]] + }, + }, + { + key: 'splitMajorGroups', + value: function (t) { + if (!this.numberSpecification.isGroupingUsed()) return t + var e = t.split('').reverse(), + n = [] + for ( + n.push( + e.splice(0, this.numberSpecification.getPrimaryGroupSize()) + ); + e.length; + + ) + n.push( + e.splice( + 0, + this.numberSpecification.getSecondaryGroupSize() + ) + ) + n = n.reverse() + var r = [] + return ( + n.forEach(function (t) { + r.push(t.reverse().join('')) + }), + r.join(',') + ) + }, + }, + { + key: 'adjustMinorDigitsZeroes', + value: function (t) { + var e = t + return ( + e.length > this.numberSpecification.getMaxFractionDigits() && + (e = e.replace(/0+$/, '')), + e.length < this.numberSpecification.getMinFractionDigits() && + (e = e.padEnd( + this.numberSpecification.getMinFractionDigits(), + '0' + )), + e + ) + }, + }, + { + key: 'getCldrPattern', + value: function (t) { + return t + ? this.numberSpecification.getNegativePattern() + : this.numberSpecification.getPositivePattern() + }, + }, + { + key: 'replaceSymbols', + value: function (t) { + var e = this.numberSpecification.getSymbol(), + n = {} + return ( + (n['.'] = e.getDecimal()), + (n[','] = e.getGroup()), + (n['-'] = e.getMinusSign()), + (n['%'] = e.getPercentSign()), + (n['+'] = e.getPlusSign()), + this.strtr(t, n) + ) + }, + }, + { + key: 'strtr', + value: function (t, e) { + var n = Object.keys(e).map(w) + return t + .split(RegExp('('.concat(n.join('|'), ')'))) + .map(function (t) { + return e[t] || t + }) + .join('') + }, + }, + { + key: 'addPlaceholders', + value: function (t, e) { + return e.replace(/#?(,#+)*0(\.[0#]+)*/, t) + }, + }, + { + key: 'performSpecificReplacements', + value: function (t) { + return this.numberSpecification instanceof y + ? t + .split('¤') + .join(this.numberSpecification.getCurrencySymbol()) + : t + }, + }, + ]) && S(e.prototype, n), + r && S(e, r), + t + ) + })() + var j = {}, + P = function (t, e, n, r) { + void 0 === j[t] + ? e.text( + e + .text() + .replace( + /([^\d]*)(?:[\d\s.,]+)([^\d]+)(?:[\d\s.,]+)(.*)/, + '$1'.concat(n, '$2').concat(r, '$3') + ) + ) + : e.text(''.concat(j[t].format(n), ' - ').concat(j[t].format(r))) + } + const k = function () { + $('.faceted-slider').each(function () { + var t = $(this), + n = t.data('slider-values'), + r = t.data('slider-specifications') + null != r && (j[t.data('slider-id')] = x.build(r)), + P( + t.data('slider-id'), + $('#facet_label_'.concat(t.data('slider-id'))), + null === n ? t.data('slider-min') : n[0], + null === n ? t.data('slider-max') : n[1] + ), + $('#slider-range_'.concat(t.data('slider-id'))).slider({ + range: !0, + min: t.data('slider-min'), + max: t.data('slider-max'), + values: [ + null === n ? t.data('slider-min') : n[0], + null === n ? t.data('slider-max') : n[1], + ], + stop: function (n, r) { + var i = t.data('slider-encoded-url').split('?'), + o = [] + i.length > 1 && (o = e(i[1])) + var a = !1 + o.forEach(function (t) { + 'q' === t.name && (a = !0) + }), + a || o.push({ name: 'q', value: '' }), + o.forEach(function (e) { + 'q' === e.name && + (e.value += [ + e.value.length > 0 ? '/' : '', + t.data('slider-label'), + '-', + t.data('slider-unit'), + '-', + r.values[0], + '-', + r.values[1], + ].join('')) + }) + var u = [i[0], '?', $.param(o)].join('') + prestashop.emit('updateFacets', u) + }, + slide: function (e, n) { + P( + t.data('slider-id'), + $('#facet_label_'.concat(t.data('slider-id'))), + n.values[0], + n.values[1] + ) + }, + }) + }) + } + var M = n(379), + I = n.n(M), + _ = n(580), + E = n.n(_) + I()(E(), { insert: 'head', singleton: !1 }), + E().locals, + $(document).ready(function () { + prestashop.on('updateProductList', function () { + $('.faceted-overlay').remove(), k() + }), + k(), + prestashop.on('updateFacets', function () { + 1 !== $('.faceted-overlay').length && + $('body').append( + '
            \n
            \n
            \n
            \n
            ' + ) + }) + }) + var D = n(765), + O = n.n(D) + I()(O(), { insert: 'head', singleton: !1 }), O().locals + var C = n(741), + F = n.n(C) + I()(F(), { insert: 'head', singleton: !1 }), F().locals + })() +})() +/* * NOTICE OF LICENSE * * This product is licensed for one customer to use on one installation (test stores and multishop included). @@ -1857,371 +97544,11180 @@ return null}})(jQuery);/*! For license information please see front.js.LICENSE.t * @copyright 2022 idnovate.com * @license See above */ -(function($,F){F.transitions.dropIn=function(){var endPos=F._getPosition(!0);endPos.top=(parseInt(endPos.top,10)-200)+'px';endPos.opacity=0;F.wrap.css(endPos).show().animate({top:'+=200px',opacity:1},{duration:F.current.openSpeed,complete:F._afterZoomIn})};F.transitions.dropOut=function(){F.wrap.removeClass('fancybox-opened').animate({top:'-=200px',opacity:0},{duration:F.current.closeSpeed,complete:F._afterZoomOut})};F.transitions.superscaleIn=function(){F.wrap.addClass('superscale');setTimeout(function(){F.wrap.addClass('superscale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.superscaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('superscale superscale-transitions');F._afterZoomOut()},300)} -F.transitions.fadescaleIn=function(){F.wrap.addClass('fadescale');setTimeout(function(){F.wrap.addClass('fadescale-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fadescaleOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fadescale fadescale-transitions');F._afterZoomOut()},300)} -F.transitions.sliderightIn=function(){F.wrap.addClass('slideright');setTimeout(function(){F.wrap.addClass('slideright-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sliderightOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slideright slideright-transitions');F._afterZoomOut()},300)} -F.transitions.slidebottomIn=function(){F.wrap.addClass('slidebottom');setTimeout(function(){F.wrap.addClass('slidebottom-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slidebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slidebottom slidebottom-transitions');F._afterZoomOut()},300)} -F.transitions.newspaperIn=function(){F.wrap.addClass('newspaper');setTimeout(function(){F.wrap.addClass('newspaper-transitions');F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.newspaperOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('newspaper newspaper-transitions');F._afterZoomOut()},300)} -F.transitions.fallIn=function(){F.wrap.addClass('fall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.fallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('fall');F._afterZoomOut()},300)} -F.transitions.sidefallIn=function(){F.wrap.addClass('sidefall');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.sidefallOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sidefall');F._afterZoomOut()},300)} -F.transitions.stickyupIn=function(){F.wrap.addClass('stickyup');setTimeout(function(){F.wrap.addClass('show stickyup-transitions');F._afterZoomIn()})} -F.transitions.stickyupOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('stickyup stickyup-transitions');F._afterZoomOut()},300)} -F.transitions.horizontalflipIn=function(){F.wrap.addClass('horizflip');setTimeout(function(){F.wrap.addClass('show horizflip-transitions');F._afterZoomIn()})} -F.transitions.horizontalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('horizflip horizflip-transitions');F._afterZoomOut()},300)} -F.transitions.verticalflipIn=function(){F.wrap.addClass('vertflip');setTimeout(function(){F.wrap.addClass('show vertflip-transitions');F._afterZoomIn()})} -F.transitions.verticalflipOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('vertflip vertflip-transitions');F._afterZoomOut()},300)} -F.transitions.signIn=function(){F.wrap.addClass('sign');setTimeout(function(){F.wrap.addClass('show sign-transitions');F._afterZoomIn()})} -F.transitions.signOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('sign sign-transitions');F._afterZoomOut()},300)} -F.transitions.slitIn=function(){F.wrap.addClass('slit');setTimeout(function(){F.wrap.addClass('show');F._afterZoomIn()})} -F.transitions.slitOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('slit');F._afterZoomOut()},300)} -F.transitions.rotatebottomIn=function(){F.wrap.addClass('rotatebottom');setTimeout(function(){F.wrap.addClass('show rotatebottom-transitions');F._afterZoomIn()})} -F.transitions.rotatebottomOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotatebottom-transitions rotatebottom');F._afterZoomOut()},300)} -F.transitions.rotateleftIn=function(){F.wrap.addClass('rotateleft');setTimeout(function(){F.wrap.addClass('show rotateleft-transitions');F._afterZoomIn()})} -F.transitions.rotateleftOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('rotateleft-transitions rotateleft');F._afterZoomOut()},300)} -F.transitions.blurIn=function(){F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').addClass('blur-overlay');F.wrap.addClass('blur');setTimeout(function(){F.wrap.addClass('blur-transitions show');F._afterZoomIn()})} -F.transitions.blurOut=function(){F.wrap.removeClass('show');setTimeout(function(){F.wrap.removeClass('blur-transitions blur');F.wrap.siblings().not('.fancybox-wrap').not('.fancybox-overlay').removeClass('blur-overlay');F._afterZoomOut()},300)}})(jQuery,jQuery.fancybox);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){return function(A){"use strict";var L=A.tablesorter={version:"2.32.0",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:null,ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssIconDisabled:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(t,r){var e,o,s,a;t&&t.tHead&&0!==t.tBodies.length&&!0!==t.hasInitialized?(e="",o=A(t),s=A.metadata,t.hasInitialized=!1,t.isProcessing=!0,t.config=r,A.data(t,"tablesorter",r),L.debug(r,"core")&&(console[console.group?"group":"log"]("Initializing tablesorter v"+L.version),A.data(t,"startoveralltimer",new Date)),r.supportsDataObject=((a=A.fn.jquery.split("."))[0]=parseInt(a[0],10),1':"",i.$headers=A(A.map(i.$table.find(i.selectorHeaders),function(e,t){var r,o,s,a,n=A(e);if(!L.getClosest(n,"tr").hasClass(i.cssIgnoreRow))return/(th|td)/i.test(e.nodeName)||(a=L.getClosest(n,"th, td"),n.attr("data-column",a.attr("data-column"))),r=L.getColumnData(i.table,i.headers,t,!0),i.headerContent[t]=n.html(),""===i.headerTemplate||n.find("."+L.css.headerIn).length||(s=i.headerTemplate.replace(L.regex.templateContent,n.html()).replace(L.regex.templateIcon,n.find("."+L.css.icon).length?"":l),i.onRenderTemplate&&(o=i.onRenderTemplate.apply(n,[t,s]))&&"string"==typeof o&&(s=o),n.html('
            '+s+"
            ")),i.onRenderHeader&&i.onRenderHeader.apply(n,[t,i,i.$table]),o=parseInt(n.attr("data-column"),10),e.column=o,a=L.getOrder(L.getData(n,r,"sortInitialOrder")||i.sortInitialOrder),i.sortVars[o]={count:-1,order:a?i.sortReset?[1,0,2]:[1,0]:i.sortReset?[0,1,2]:[0,1],lockedOrder:!1,sortedBy:""},void 0!==(a=L.getData(n,r,"lockedOrder")||!1)&&!1!==a&&(i.sortVars[o].lockedOrder=!0,i.sortVars[o].order=L.getOrder(a)?[1,1]:[0,0]),i.headerList[t]=e,n.addClass(L.css.header+" "+i.cssHeader),L.getClosest(n,"tr").addClass(L.css.headerRow+" "+i.cssHeaderRow).attr("role","row"),i.tabIndex&&n.attr("tabindex",0),e})),i.$headerIndexed=[],r=0;r'),t=e.$table.width(),s=(o=e.$tbodies.find("tr:first").children(":visible")).length,a=0;a").css("width",r));e.$table.prepend(n)}},getData:function(e,t,r){var o,s,a="",e=A(e);return e.length?(o=!!A.metadata&&e.metadata(),s=" "+(e.attr("class")||""),void 0!==e.data(r)||void 0!==e.data(r.toLowerCase())?a+=e.data(r)||e.data(r.toLowerCase()):o&&void 0!==o[r]?a+=o[r]:t&&void 0!==t[r]?a+=t[r]:" "!==s&&s.match(" "+r+"-")&&(a=s.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),A.trim(a)):""},getColumnData:function(e,t,r,o,s){if("object"!=typeof t||null===t)return t;var a,e=(e=A(e)[0]).config,s=s||e.$headers,n=e.$headerIndexed&&e.$headerIndexed[r]||s.find('[data-column="'+r+'"]:last');if(void 0!==t[r])return o?t[r]:t[s.index(n)];for(a in t)if("string"==typeof a&&n.filter(a).add(n.find(a)).length)return t[a]},isProcessing:function(e,t,r){var o=(e=A(e))[0].config,s=r||e.find("."+L.css.header);t?(void 0!==r&&0'),A.fn.detach?t.detach():t.remove();r=A(e).find("colgroup.tablesorter-savemyplace");t.insertAfter(r),r.remove(),e.isProcessing=!1},clearTableBody:function(e){A(e)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(e){var t,r="[",o=L.characterEquivalents;if(!L.characterRegex){for(t in L.characterRegexArray={},o)"string"==typeof t&&(r+=o[t],L.characterRegexArray[t]=new RegExp("["+o[t]+"]","g"));L.characterRegex=new RegExp(r+"]")}if(L.characterRegex.test(e))for(t in o)"string"==typeof t&&(e=e.replace(L.characterRegexArray[t],t));return e},validateOptions:function(e){var t,r,o,s,a="headers sortForce sortList sortAppend widgets".split(" "),n=e.originalSettings;if(n){for(t in L.debug(e,"core")&&(s=new Date),n)if("undefined"===(o=typeof L.defaults[t]))console.warn('Tablesorter Warning! "table.config.'+t+'" option not recognized');else if("object"===o)for(r in n[t])o=L.defaults[t]&&typeof L.defaults[t][r],A.inArray(t,a)<0&&"undefined"===o&&console.warn('Tablesorter Warning! "table.config.'+t+"."+r+'" option not recognized');L.debug(e,"core")&&console.log("validate options time:"+L.benchmark(s))}},restoreHeaders:function(e){for(var t,r=A(e)[0].config,o=r.$table.find(r.selectorHeaders),s=o.length,a=0;a tr").children("th, td"),!1===t&&0<=A.inArray("uitheme",s.widgets)&&(o.triggerHandler("applyWidgetId",["uitheme"]),o.triggerHandler("applyWidgetId",["zebra"])),a.find("tr").not(n).remove(),a="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(s.namespace+" "),o.removeData("tablesorter").unbind(a.replace(L.regex.spaces," ")),s.$headers.add(i).removeClass([L.css.header,s.cssHeader,s.cssAsc,s.cssDesc,L.css.sortAsc,L.css.sortDesc,L.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),n.find(s.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(s.namespace+" ").replace(L.regex.spaces," ")),L.restoreHeaders(e),o.toggleClass(L.css.table+" "+s.tableClass+" tablesorter-"+s.theme,!1===t),o.removeClass(s.namespace.slice(1)),e.hasInitialized=!1,delete e.config.cache,"function"==typeof r&&r(e),L.debug(s,"core"))&&console.log("tablesorter has been removed")}};A.fn.tablesorter=function(t){return this.each(function(){var e=A.extend(!0,{},L.defaults,t,L.instanceMethods);e.originalSettings=t,!this.hasInitialized&&L.buildTable&&"TABLE"!==this.nodeName?L.buildTable(this,e):L.setup(this,e)})},window.console&&window.console.log||(L.logs=[],(console={}).log=console.warn=console.error=console.table=function(){var e=1> Using",a?c:"cookies"),h.parseJSON&&(l=a?h.parseJSON(u[c][t]||"null")||{}:(i=p.cookie.split(/[;\s|=]/),0!==(n=h.inArray(t,i)+1)&&h.parseJSON(i[n]||"null")||{})),void 0===r||!u.JSON||!JSON.hasOwnProperty("stringify"))return l&&l[f]?l[f][e]:"";l[f]||(l[f]={}),l[f][e]=r,a?u[c][t]=JSON.stringify(l):((s=new Date).setTime(s.getTime()+31536e6),p.cookie=t+"="+JSON.stringify(l).replace(/\"/g,'"')+"; expires="+s.toGMTString()+"; path=/")}}(e,window,document),function(S){"use strict";var C=S.tablesorter||{};C.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"glyphicon glyphicon-chevron-up",iconSortDesc:"glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},S.extend(C.css,{wrapper:"tablesorter-wrapper"}),C.addWidget({id:"uitheme",priority:10,format:function(e,t,r){var i,a,l,s,n,o,c,d,f,h,u,p,g=C.themes,m=t.$table.add(S(t.namespace+"_extra_table")),b=t.$headers.add(S(t.namespace+"_extra_headers")),y=t.theme||"jui",_=g[y]||{},v=S.trim([_.sortNone,_.sortDesc,_.sortAsc,_.active].join(" ")),w=S.trim([_.iconSortNone,_.iconSortDesc,_.iconSortAsc].join(" ")),x=C.debug(t,"uitheme");for(x&&(n=new Date),m.hasClass("tablesorter-"+y)&&t.theme===t.appliedTheme&&r.uitheme_applied||(r.uitheme_applied=!0,h=g[t.appliedTheme]||{},g=(p=!S.isEmptyObject(h))?[h.sortNone,h.sortDesc,h.sortAsc,h.active].join(" "):"",u=p?[h.iconSortNone,h.iconSortDesc,h.iconSortAsc].join(" "):"",p&&(r.zebra[0]=S.trim(" "+r.zebra[0].replace(" "+h.even,"")),r.zebra[1]=S.trim(" "+r.zebra[1].replace(" "+h.odd,"")),t.$tbodies.children().removeClass([h.even,h.odd].join(" "))),_.even&&(r.zebra[0]+=" "+_.even),_.odd&&(r.zebra[1]+=" "+_.odd),m.children("caption").removeClass(h.caption||"").addClass(_.caption),d=m.removeClass((t.appliedTheme?"tablesorter-"+(t.appliedTheme||""):"")+" "+(h.table||"")).addClass("tablesorter-"+y+" "+(_.table||"")).children("tfoot"),t.appliedTheme=t.theme,d.length&&d.children("tr").removeClass(h.footerRow||"").addClass(_.footerRow).children("th, td").removeClass(h.footerCells||"").addClass(_.footerCells),b.removeClass((p?[h.header,h.hover,g].join(" "):"")||"").addClass(_.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(e){S(this)["mouseenter"===e.type?"addClass":"removeClass"](_.hover||"")}),b.each(function(){var e=S(this);e.find("."+C.css.wrapper).length||e.wrapInner('
            ')}),t.cssIcon&&b.find("."+C.css.icon).removeClass(p?[h.icons,u].join(" "):"").addClass(_.icons||""),C.hasWidget(t.table,"filter")&&(a=function(){m.children("thead").children("."+C.css.filterRow).removeClass(p&&h.filterRow||"").addClass(_.filterRow||"")},r.filter_initialized?a():m.one("filterInit",function(){a()}))),i=0;i> Applied "+y+" theme"+C.benchmark(n))},remove:function(e,t,r,i){var a,l,s,n,o;r.uitheme_applied&&(a=t.$table,t=t.appliedTheme||"jui",l=C.themes[t]||C.themes.jui,s=a.children("thead").children(),n=l.sortNone+" "+l.sortDesc+" "+l.sortAsc,o=l.iconSortNone+" "+l.iconSortDesc+" "+l.iconSortAsc,a.removeClass("tablesorter-"+t+" "+l.table),r.uitheme_applied=!1,i||(a.find(C.css.header).removeClass(l.header),s.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(l.hover+" "+n+" "+l.active).filter("."+C.css.filterRow).removeClass(l.filterRow),s.find("."+C.css.icon).removeClass(l.icons+" "+o)))}})}(e),function(m){"use strict";var b=m.tablesorter||{};b.addWidget({id:"columns",priority:65,options:{columns:["primary","secondary","tertiary"]},format:function(e,t,r){for(var i,a,l,s,n,o=t.$table,c=t.$tbodies,d=t.sortList,f=d.length,h=r&&r.columns||["primary","secondary","tertiary"],u=h.length-1,p=h.join(" "),g=0;g=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(e,t,r){if(!O.orTest.test(t.iFilter)&&!O.orSplit.test(t.filter)||O.regex.test(t.filter))return null;for(var i,a,l=A.extend({},t),s=t.filter.split(O.orSplit),n=t.iFilter.split(O.orSplit),o=s.length,c=0;c]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(l.data("placeholder")||l.attr("data-placeholder")||f.filter_placeholder.select||"")+"":"",0<=(a=n=i).indexOf(f.filter_selectSourceSeparator)&&(a=(n=i.split(f.filter_selectSourceSeparator))[1],n=n[0]),t+="");d.$table.find("thead").find("select."+g.filter+'[data-column="'+s+'"]').append(t),("function"==typeof(a=f.filter_selectSource)||E.getColumnData(r,a,s))&&I.buildSelect(d.table,s,"",!0,l.hasClass(f.filter_onlyAvail))}I.buildDefault(r,!0),I.bindSearch(r,d.$table.find("."+g.filter),!0),f.filter_external&&I.bindSearch(r,f.filter_external),f.filter_hideFilters&&I.hideFilters(d),d.showProcessing&&(a="filterStart filterEnd ".split(" ").join(d.namespace+"filter-sp "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(e,t){l=t?d.$table.find("."+g.header).filter("[data-column]").filter(function(){return""!==t[A(this).data("column")]}):"",E.isProcessing(r,"filterStart"===e.type,t?l:"")})),d.filteredRows=d.totalRows,a="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(d.namespace+"filter "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(){I.completeInit(this)}),d.pager&&d.pager.initialized&&!f.filter_initialized?(d.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){I.filterInitComplete(d)},100)):f.filter_initialized||I.completeInit(r)},completeInit:function(e){var t=e.config,r=t.widgetOptions,i=I.setDefaults(e,t,r)||[];!i.length||t.delayInit&&""===i.join("")||E.setFilters(e,i,!0),t.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){r.filter_initialized||I.filterInitComplete(t)},100)},formatterUpdated:function(e,t){e=e&&e.closest("table"),e=e.length&&e[0].config,e=e&&e.widgetOptions;e&&!e.filter_initialized&&(e.filter_formatterInit[t]=1)},filterInitComplete:function(e){function t(){a.filter_initialized=!0,e.lastSearch=e.$table.data("lastSearch"),e.$table.triggerHandler("filterInit",e),I.findRows(e.table,e.lastSearch||[]),E.debug(e,"filter")&&console.log("Filter >> Widget initialized")}var r,i,a=e.widgetOptions,l=0;if(A.isEmptyObject(a.filter_formatter))t();else{for(i=a.filter_formatterInit.length,r=0;r',p=0;p");for(t.$filters=A(u+="").appendTo(t.$table.children("thead").eq(0)).children("td"),p=0;p").appendTo(i):((o=E.getColumnData(e,r.filter_formatter,p))?(r.filter_formatterCount++,(u=(u=o(i,p))&&0===u.length?i.children("input"):u)&&(0===u.parent().length||u.parent().length&&u.parent()[0]!==i[0])&&i.append(u)):u=A('').appendTo(i),u&&(c=a.data("placeholder")||a.attr("data-placeholder")||r.filter_placeholder.search||"",u.attr("placeholder",c))),u)&&(n=(A.isArray(r.filter_cssFilter)?void 0!==r.filter_cssFilter[p]&&r.filter_cssFilter[p]||"":r.filter_cssFilter)||"",u.addClass(g.filter+" "+n),c=(n=r.filter_filterLabel).match(/{{([^}]+?)}}/g),A.each(c=c||["{{label}}"],function(e,t){var r=new RegExp(t,"g"),t=a.attr("data-"+t.replace(/{{|}}/g,"")),t=void 0===t?a.text():t;n=n.replace(r,A.trim(t))}),u.attr({"data-column":i.attr("data-column"),"aria-label":n}),s)&&(u.attr("placeholder","").addClass(g.filterDisabled)[0].disabled=!0)},bindSearch:function(a,e,t){var r,l,s,i,n;a=A(a)[0],(e=A(e)).length&&(l=a.config,s=l.widgetOptions,i=l.namespace+"filter",n=s.filter_$externalFilters,!0!==t&&(r=s.filter_anyColumnSelector+","+s.filter_multipleColumnSelector,s.filter_$anyMatch=e.filter(r),n&&n.length?s.filter_$externalFilters=s.filter_$externalFilters.add(e):s.filter_$externalFilters=e,E.setFilters(a,l.$table.data("lastSearch")||[],!1===t)),r="keypress keyup keydown search change input ".split(" ").join(i+" "),e.attr("data-lastSearchTime",(new Date).getTime()).unbind(r.replace(E.regex.spaces," ")).bind("keydown"+i,function(e){if(e.which===o.escape&&!a.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+i,function(e){s=a.config.widgetOptions;var t=parseInt(A(this).attr("data-column"),10),r="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);if(void 0===r&&(r=s.filter_liveSearch.fallback||!1),A(this).attr("data-lastSearchTime",(new Date).getTime()),e.which===o.escape)this.value=s.filter_resetOnEsc?"":l.lastSearch[t];else{if(""!==this.value&&("number"==typeof r&&this.value.length=o.left&&e.which<=o.down)))return;if(!1===r&&""!==this.value&&e.which!==o.enter)return}I.searching(a,!0,!0,t)}).bind("search change keypress input blur ".split(" ").join(i+" "),function(e){var t=parseInt(A(this).attr("data-column"),10),r=e.type,i="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);!a.config.widgetOptions.filter_initialized||e.which!==o.enter&&"search"!==r&&"blur"!==r&&("change"!==r&&"input"!==r||!0!==i&&(!0===i||"INPUT"===e.target.nodeName)||this.value===l.lastSearch[t])||(e.preventDefault(),A(this).attr("data-lastSearchTime",(new Date).getTime()),I.searching(a,"keypress"!==r||e.which===o.enter,!0,t))}))},searching:function(e,t,r,i){var a,l=e.config.widgetOptions;void 0===i?a=!1:void 0===(a="boolean"==typeof l.filter_liveSearch?l.filter_liveSearch:E.getColumnData(e,l.filter_liveSearch,i))&&(a=l.filter_liveSearch.fallback||!1),clearTimeout(l.filter_searchTimer),void 0===t||!0===t?l.filter_searchTimer=setTimeout(function(){I.checkFilters(e,t,r)},a?l.filter_searchDelay:10):I.checkFilters(e,t,r)},equalFilters:function(e,t,r){var i,a=[],l=[],s=e.columns+1;for(t=A.isArray(t)?t:[],r=A.isArray(r)?r:[],i=0;i=e.columns&&(s=e.columns-1);l<=s;l++)f[f.length]=l;t=t.replace(i[c],"")}if(!r&&/,/.test(t))for(d=(n=t.split(/\s*,\s*/)).length,o=0;o> Starting filter widget search",r),m=new Date),F.filteredRows=0,t=$||[],c=F.totalRows=0;c> Searching through "+(v&&_> Completed search"+E.benchmark(m)),R.filter_initialized&&(F.$table.triggerHandler("filterBeforeEnd",F),F.$table.triggerHandler("filterEnd",F)),setTimeout(function(){E.applyWidget(F.table)},0)}},getOptionSource:function(e,t,r){var i=(e=A(e)[0]).config,a=!1,l=i.widgetOptions.filter_selectSource,i=i.$table.data("lastSearch")||[],s="function"==typeof l||E.getColumnData(e,l,t);if(r&&""!==i[t]&&(r=!1),!0===s)a=l(e,t,r);else{if(s instanceof A||"string"===A.type(s)&&0<=s.indexOf(""))return s;if(A.isArray(s))a=s;else if("object"===A.type(l)&&s&&null===(a=s(e,t,r)))return null}return!1===a&&(a=I.getOptions(e,t,r)),I.processOptions(e,t,a)},processOptions:function(i,a,r){if(!A.isArray(r))return!1;var l,e,t,s,n,o=(i=A(i)[0]).config,c=null!=a&&0<=a&&a'+(h.data("placeholder")||h.attr("data-placeholder")||f.filter_placeholder.select||"")+"",h=d.$table.find("thead").find("select."+g.filter+'[data-column="'+t+'"]').val();if(void 0!==r&&""!==r||null!==(r=I.getOptionSource(e,t,a))){if(A.isArray(r)){for(l=0;l"}else""+c!="[object Object]"&&(0<=(s=n=c=(""+c).replace(O.quote,""")).indexOf(f.filter_selectSourceSeparator)&&(s=(o=n.split(f.filter_selectSourceSeparator))[0],n=o[1]),u+=""!==c?"":"");r=[]}e=(d.$filters||d.$table.children("thead")).find("."+g.filter),(a=(e=f.filter_$externalFilters?e&&e.length?e.add(f.filter_$externalFilters):f.filter_$externalFilters:e).filter('select[data-column="'+t+'"]')).length&&(a[i?"html":"append"](u),A.isArray(r)||a.append(r).val(h),a.val(h))}}},buildDefault:function(e,t){for(var r,i,a=e.config,l=a.widgetOptions,s=a.columns,n=0;n'),y=b.parent().addClass($.css.stickyHide).css({position:d.length?"absolute":"fixed",padding:parseInt(b.parent().parent().css("padding-left"),10),top:p+m,left:0,visibility:"hidden",zIndex:o.stickyHeaders_zIndex||2}),p=b.children("thead:first"),_="",v=function(e,t){for(var r,i,a,l=e.filter(":visible"),s=l.length,n=0;na.top&&i thead:gt(0), tr.sticky-false").hide(),b.find("> tbody, > tfoot").remove(),b.find("caption").toggle(o.stickyHeaders_includeCaption),l=p.children().children(),b.css({height:0,width:0,margin:0}),l.find("."+$.css.resizer).remove(),c.addClass("hasStickyHeaders").bind("pagerComplete"+s,function(){x()}),$.bindEvents(e,p.children().children("."+$.css.header)),o.stickyHeaders_appendTo?C(o.stickyHeaders_appendTo).append(y):c.after(y),t.onRenderHeader)for(i=(a=p.children("tr").children()).length,r=0;r";c("head").append(e)}),d.resizable={init:function(e,t){if(!e.$table.hasClass("hasResizable")){e.$table.addClass("hasResizable");var r,i,a,l=e.$table,s=l.parent(),n=parseInt(l.css("margin-top"),10),o=t.resizable_vars={useStorage:d.storage&&!1!==t.resizable,$wrap:s,mouseXPosition:0,$target:null,$next:null,overflow:"auto"===s.css("overflow")||"scroll"===s.css("overflow")||"auto"===s.css("overflow-x")||"scroll"===s.css("overflow-x"),storedSizes:[]};for(d.resizableReset(e.table,!0),o.tableWidth=l.width(),o.fullWidth=Math.abs(s.width()-o.tableWidth)<20,o.useStorage&&o.overflow&&(d.storage(e.table,"tablesorter-table-original-css-width",o.tableWidth),a=d.storage(e.table,"tablesorter-table-resized-width")||"auto",d.resizable.setWidth(l,a,!0)),t.resizable_vars.storedSizes=s=(o.useStorage?d.storage(e.table,d.css.resizableStorage):[])||[],d.resizable.setWidths(e,t,s),d.resizable.updateStoredSizes(e,t),t.$resizable_container=c('
            ').css({top:n}).insertBefore(l),i=0;i').appendTo(t.$resizable_container).attr({"data-column":i,unselectable:"on"}).data("header",r).bind("selectstart",!1);d.resizable.bindings(e,t)}},updateStoredSizes:function(e,t){var r,i,a=e.columns,l=t.resizable_vars;for(l.storedSizes=[],r=0;r> Saving last sort: "+e.sortList+o.benchmark(a)):(l.addClass("hasSaveSort"),s="",o.storage&&(s=c(e),n&&console.log('saveSort >> Last sort loaded: "'+s+'"'+o.benchmark(a)),l.bind("saveSortReset",function(e){e.stopPropagation(),o.storage(t,"tablesorter-savesort","")})),i&&s&&0 -* @copyright 2007-2014 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ -$(document).ready(function(){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons();$("#pdproductattributeslist table.table").tablesorter({theme:'default',headerTemplate:'{content} {icon}',widgets:["uitheme","columns"],});prestashop.on('updateProductList',function(params){if(typeof(params)!=='undefined'){PdProductAttributesList.initFancyboxOnProductImages();PdProductAttributesList.initTouchSpinOnProductQtyInputs();PdProductAttributesList.initEventAddToCartToButtons()}})});let PdProductAttributesList={initFancyboxOnProductImages(){if(!!$.prototype.fancybox){$('.option_image a.fancybox').fancybox({'hideOnContentClick':!0,'openEffect':'elastic','closeEffect':'elastic','helpers':{overlay:{locked:!1}}})}},initTouchSpinOnProductQtyInputs(){if(!!$.prototype.TouchSpin){var max=parseInt($("#pdproductattributeslist input[name='qty']").data('max'));$("#pdproductattributeslist input[name='qty']").TouchSpin({min:0,max:max,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '});$("#pdproductattributeslist_grid input[name='qty']").TouchSpin({min:0,max:9999999999,step:1,decimals:0,verticalbuttons:!0,verticaldownclass:'fa fa-minus touchspin-down bootstrap-touchspin-down material-icons touchspin-down',verticalupclass:'fa fa-plus touchspin-up bootstrap-touchspin-up material-icons touchspin-up',buttondown_class:'btn btn-touchspin js-touchspin ',buttonup_class:'btn btn-touchspin js-touchspin '})}},executeAddProductsToCart(products){$.ajax({type:'POST',url:pdproductattributeslist_ajax_link,dataType:"json",data:{'action':'addProductsToCart','products':products,'secure_key':pdproductattributeslist_secure_key,'ajax':1},success:function(resp){if(resp){prestashop.emit('updateCart',{reason:{cart:[]},resp:resp});Object.entries(resp).forEach(([k,v])=>{if(v.response){if(v.id_product_attribute>0){message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+' '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}else{message_ok=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_add_ok;$.growl({title:pdproductattributeslist_title_ok,message:message_ok,duration:7000})}}else if(v.response==!1){if(v.id_product_attribute>0){message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_variant+' '+v.combination_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}else{message_error=pdproductattributeslist_product+' '+v.product_name+', '+pdproductattributeslist_max_qty+' '+v.max_quantity+' '+pdproductattributeslist_pcs;$.growl.error({title:pdproductattributeslist_title_error,message:message_error,duration:15000})}}})}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error,duration:15000})}}})},initEventAddToCartToButtons(){$('body').on('click','button.add-to-cart-pdproductattributeslist',function(){var products_array=[];var tr_colection=$(this).parent().parent().parent().find('tr');$(tr_colection).each(function(index){elem=$(this).find('td.option_gty');qty=parseInt(elem.find('input.quantity').val());if(elem.length>0&&qty>0){var product={'id_product':parseInt(elem.data('id-product')),'id_product_attribute':parseInt(elem.data('id-product-attribute')),'quantity':qty,'id_customization':0};products_array.push(product)}});if(products_array.length>0){PdProductAttributesList.executeAddProductsToCart(products_array)}else{$.growl.error({title:pdproductattributeslist_title_error,message:pdproductattributeslist_add_error})}})}};;$(document).ready(function(){$.each(list_menu,function(index,value){if(value.type=="horizontal"){var megamenu_element=$('.cavas_menu[data-megamenu-id='+value.id+']');if($("body").attr("id")=="index")isHomeMenu=1;megamenu_element.find(".megamenu > li > a").each(function(){menuURL=$(this).attr("href").replace("https://","").replace("http://","").replace("www.","").replace(/#\w*/,"");if((currentURL==menuURL)||(currentURL.replace(current_link,"")==menuURL)||isHomeMenu){$(this).parent().addClass("active");return!1}});if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)} -if(value.show_cavas==1){$.fn.OffCavasmenu=function(opts){var config=$.extend({},{opt1:null,text_warning_select:text_warning_select_txt,text_confirm_remove:text_confirm_remove_txt,JSON:null},opts);this.each(function(){var $btn=megamenu_element.find('.navbar-toggler');var $nav=null;if(!$btn.length) -return;var $nav=$("
            ");var $menucontent=$($btn.data('target')).find('.megamenu').clone();$("body").append($nav);$('body main').append("
            ");$(".megamenu-overlay[data-megamenu-id="+value.id+"]").click(function(){$btn.trigger('click')});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").append($menucontent);$("html").addClass("off-canvas");$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find(".off-canvas-button-megamenu").click(function(){off_canvas_active()});if($btn.is(':visible')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")} -$btn.click(function(){off_canvas_active();$('.off-canvas-nav-megamenu').removeClass('active');if(!$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").hasClass('active')&&$('body').hasClass('off-canvas-active')){$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").addClass('active');auto_height(value.id)}})});return this} -megamenu_element.OffCavasmenu();megamenu_element.find('.navbar-toggler').click(function(){$('body,html').animate({scrollTop:0},0);return!1});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('.offcanvas-mainnav .caret').click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height(value.id)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height(value.id)});$(this).parent('li').addClass('open-sub')}});$(window).resize(function(){if($(window).width()>991){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else{auto_height(value.id)}})}else{var $bt=megamenu_element.find('.navbar-toggler');var $menu=megamenu_element.find('.leo-top-menu');$bt.click(function(){if($menu.hasClass('in')){megamenu_element.removeClass('active')}else{if(!megamenu_element.hasClass('active')){megamenu_element.addClass('active')}}});megamenu_element.find('.leo-top-menu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find(".leo-top-menu li a").each(function(){if((this).hasAttribute('data-toggle')){$(this).removeAttr('data-toggle')}});megamenu_element.find(".leo-top-menu li a.dropdown-toggle").click(function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}}) -megamenu_element.find(".leo-top-menu .caret").click(function(){if($(this).parent('li').hasClass('open-sub')){$(this).parent('li').find('.dropdown-menu').first().slideUp('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').removeClass('open-sub')}else{$(this).parent('li').siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast');$(this).parent('li').siblings().removeClass('open-sub');$(this).parent('li').find('.dropdown-menu').first().slideDown('fast',function(){auto_height_off(megamenu_element)});$(this).parent('li').addClass('open-sub')}});if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')} -auto_height_off(megamenu_element);$(window).resize(function(){auto_height_off(megamenu_element);if($(document).width()>543){megamenu_element.find('.leo-top-menu .dropdown').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.leo-top-menu .dropdown-menu').css('display','')}})}}else{var megamenu_element=$('.leo-verticalmenu[data-megamenu-id='+value.id+']');megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr("disabled");megamenu_element.find(".verticalmenu .dropdown-toggle").click(function(){if($(window).width()<=767){if($(this).parent("li").find("div:first").hasClass("level2")) -return!1;else return!0}});megamenu_element.find('.verticalmenu .dropdown-toggle').removeAttr('data-toggle');megamenu_element.find(".verticalmenu .caret").click(function(){if($(this).parents('.verticalmenu').hasClass('active-button')){var $parent=$(this).parent('li');if($parent.hasClass('open-sub')){$parent.find('.dropdown-menu').first().slideUp('fast',function(){$parent.removeClass('open-sub')})}else{if($parent.siblings('.open-sub').length>0){$parent.siblings('.open-sub').find('.dropdown-menu').first().slideUp('fast',function(){$parent.siblings('.open-sub').removeClass('open-sub')});$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}else{$parent.find('.dropdown-menu').first().slideDown('fast',function(){$parent.addClass('open-sub')})}} -return!1}});if($(window).width()>991){megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.find('.leo-verticalmenu').removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')} -$(window).resize(function(){if($(window).width()>991){megamenu_element.find('.verticalmenu .dropdown').removeClass('open-sub');megamenu_element.find('.verticalmenu .dropdown-submenu').removeClass('open-sub');megamenu_element.find('.verticalmenu').addClass('active-hover');megamenu_element.find('.verticalmenu').removeClass('active-button');megamenu_element.find('.verticalmenu .dropdown-menu').css('display','');megamenu_element.removeClass('active')}else{megamenu_element.find('.verticalmenu').removeClass('active-hover');megamenu_element.find('.verticalmenu').addClass('active-button')}});scrollSliderBarMenu(megamenu_element)} -if(typeof value.list_tab!=='undefined'&&value.list_tab.length>0){$.each(value.list_tab,function(key,val){megamenu_element.find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();$(this).tab('show')}) -$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"]").find('#tabhtml'+val+' .nav a').click(function(e){e.preventDefault();if(!$(this).hasClass('active')){var wrapper_tab=$(this).closest('.panel-group');var tab_href=$(this).attr('href');wrapper_tab.find('.nav-link').removeClass('active');wrapper_tab.find('.nav-item').removeClass('active');wrapper_tab.find('.tab-pane').removeClass('active');$(this).addClass('active');$(this).parents('.nav-item').addClass('active');wrapper_tab.find(tab_href).addClass('active')}})})} -if(typeof value.level!=='undefined'&&typeof value.limit!=='undefined'){megamenu_element.find('.widget-category_image ul.level0').each(function(){$(this).find('ul').removeClass('dropdown-sub dropdown-menu')});megamenu_element.find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}});$(".off-canvas-nav-megamenu[data-megamenu-id="+value.id+"] .offcanvas-mainnav").find(".widget-category_image ul.level0").each(function(){var check_level=$(this).parents('.widget-category_image').data('level');var check_limit=$(this).parents('.widget-category_image').data('limit');$(this).find("ul.level"+check_level).parent().find('.caret').remove();$(this).find("ul.level"+check_level+" li").remove();var element=$(this).find("ul.level"+(check_level-1)+" li").length;var count=0;if(check_level>0){$(this).find("ul.level"+(check_level-1)+" >li").each(function(){count=count+1;if(count>check_limit){$(this).remove()}})}})} -if(value.type=="horizontal"){$(window).resize(function(){if($(window).width()<=767){set_target_blank(!1,megamenu_element)}else{set_target_blank(!0,megamenu_element)}})} -if(value.type=="horizontal"&&value.show_cavas==1){$(document.body).on('click','[data-toggle="dropdown"]',function(){if(!$(this).parent().hasClass('open')&&this.href&&this.href!='#'){window.location.href=this.href}})}}) -$('.dropdown-menu.level1').parent().removeClass('aligned-fullwidth');$(".fancybox").fancybox({openEffect:'none',closeEffect:'none'})}) -function auto_height_off(menu_object){wrapper_height=$("#page").innerHeight();ul_height=menu_object.find(".leo-top-menu ul").innerHeight();ul_offset_top=menu_object.find(".leo-top-menu ul").offset().top;if(ul_offset_top+ul_height>wrapper_height){if(!$("#page").hasClass('megamenu-autoheight')){$("#page").addClass('megamenu-autoheight')}}else{$("#page").removeClass('megamenu-autoheight')}} -function auto_height(menu_id){windowHeight=$(window).innerHeight();$(".off-canvas-nav-megamenu[data-megamenu-id="+menu_id+"] .offcanvas-mainnav").css('min-height',windowHeight)} -function off_canvas_active(){if($('body').hasClass('off-canvas-active')){$("body").removeClass("off-canvas-active").addClass("off-canvas-inactive")}else if($('body').hasClass('off-canvas-inactive')){$("body").removeClass("off-canvas-inactive").addClass("off-canvas-active")}else{$("body").addClass("off-canvas-active")}} -function set_target_blank(show,megamenu_element){if(show){megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('data-toggle');$(this).removeAttr('data-toggle');$(this).attr('remove-data-toggle',value)}})}else{megamenu_element.find(".leo-top-menu li a").each(function(){if($(this).hasClass('has-category')&&(this).hasAttribute('remove-data-toggle')&&$(this).attr('target')=='_blank'){var value=$(this).attr('remove-data-toggle');$(this).removeAttr('remove-data-toggle');$(this).attr('data-toggle',value)}})}} -function scrollSliderBarMenu(megamenu_element){var menuElement=megamenu_element;var columnElement=null;var maxWindowSize=991;if($(columnElement).length&&$(window).width()>=maxWindowSize)showOrHideSliderBarMenu(columnElement,menuElement,1);megamenu_element.find(".verticalmenu-button").click(function(){if($(menuElement).hasClass('active')){showOrHideSliderBarMenu(columnElement,menuElement,0)}else{showOrHideSliderBarMenu(columnElement,menuElement,1)}});var lastWidth=$(window).width();$(window).resize(function(){if($(window).width()!=lastWidth){if($(window).width()=991) -columnElement.css('padding-top',($('.block_content',$(menuElement)).height())+'px')}else{$(menuElement).removeClass('active');if($(columnElement).length)columnElement.css('padding-top','')}};$(document).ready(function(){if(typeof enable_js_lang!='undefined'){$('ul#first-currencies li:not(.selected)').css('opacity',0.3);$('ul#first-currencies li:not(.selected)').hover(function(){$(this).css('opacity',1)},function(){$(this).css('opacity',0.3)})} -if(typeof enable_js_currency!='undefined'){$("#setCurrency").mouseover(function(){$(this).addClass("countries_hover");$(".currencies_ul").addClass("currencies_ul_hover")});$("#setCurrency").mouseout(function(){$(this).removeClass("countries_hover");$(".currencies_ul").removeClass("currencies_ul_hover")})} -if(typeof js_country!='undefined'){$("#countries").mouseover(function(){$(this).addClass("countries_hover");$(".countries_ul").addClass("countries_ul_hover")});$("#countries").mouseout(function(){$(this).removeClass("countries_hover");$(".countries_ul").removeClass("countries_ul_hover")})}}) -function setCurrency(id_currency){$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:prestashop.urls.base_url+'index.php'+'?rand='+new Date().getTime(),data:'controller=change-currency&id_currency='+parseInt(id_currency),success:function(msg){location.reload(!0)}})};var matched,browser;jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=!0;browser.version=matched.version} -if(browser.chrome){browser.webkit=!0}else if(browser.webkit){browser.safari=!0} -jQuery.browser=browser;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options)})},result:function(handler){return this.bind("result",handler)},search:function(handler){return this.trigger("search",[handler])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(options){return this.trigger("setOptions",[options])},unautocomplete:function(){return this.trigger("unautocomplete")}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var $loading=$input.parent().find('.leoproductsearch-loading');var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:!1};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=!1;return!1}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev()}else{onChange(0,!0)} -break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next()}else{onChange(0,!0)} -break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp()}else{onChange(0,!0)} -break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown()}else{onChange(0,!0)} -break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=!0;return!1} -break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break}}).focus(function(){hasFocus++}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults()}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,!0)}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i1){v=words.slice(0,words.length-1).join(options.multipleSeparator)+options.multipleSeparator+v} -v+=options.multipleSeparator} -$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return!0} -function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return} -var currentValue=$input.val();if(!skipPrevCheck&¤tValue==previousValue) -return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase) -currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow)}else{stopLoading();select.hide()}};function trimWords(value){if(!value){return[""]} -var words=value.split(options.multipleSeparator);var result=[];$.each(words,function(i,value){if($.trim(value)) -result[i]=$.trim(value)});return result} -function lastWord(value){if(!options.multiple) -return value;var words=trimWords(value);return words[words.length-1]} -function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$.Autocompleter.Selection(input,previousValue.length,previousValue.length+sValue.length)}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200)};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""))}else $input.val("")}})} -if(wasVisible) -$.Autocompleter.Selection(input,input.value.length,input.value.length)};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show()}else{hideResultsNow()}};function request(term,success,failure){$loading.show();if(!options.matchCase) -term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data)}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({cate:$('input[name="cate"]').val(),q:lastWord(term),limit:options.max},extraParams),success:function(data){var str='
            ';if(data.suggest.length){str+='
            ';str+='
            '+$("#leosearchtopbox").data('label-suggestion')+'
            ';str+='';str+='
            '} -if(data.category.length){str+='
            ';str+='
            '+$("#leosearchtopbox").data('search-for')+' "'+$("#leo_search_query_top").val()+'"
            ';if(data.category.length){str+=''} -str+='
            '} -if(data.products.length){str+='
            ';str+='
            '+$("#leosearchtopbox").data('products-for')+' "'+$("#leo_search_query_top").val()+'"
            ';str+='';str+='
            ';str+='
            ';str+=''}else{str+="
            Nie znaleziono żadnego produktu
            ";str+='
            '} -$(".leoproductsearch-result .ac_results").html(str);$(".leoproductsearch-result .ac_results").show();$(".suggest-item").click(function(){$("#leo_search_query_top").val($(this).attr('href'));onChange(0,!0);return!1});$loading.hide()}})}else{select.emptyList();failure(term)}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")},scroll:!0,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase) -s=s.toLowerCase();var i=s.indexOf(sub);if(i==-1)return!1;return i==0||options.matchContains};function add(q,cate,value){if(length>options.cacheLength){flush()} -if(!data[q]){length++} -data[q]=value} -function populate(){if(!options.data)return!1;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x)}})}} -return csub}else if(data[q]){return data[q]}else if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x}});return csub}}} -return null}}};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=!0,element,list;function init(){if(!needsInit) -return;element=$("
            ").hide().addClass(options.resultsClass).css("position","absolute").appendTo('.leoproductsearch-result');list=$("
            ").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE)}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return!1}).mousedown(function(){config.mouseDownOnSelect=!0}).mouseup(function(){config.mouseDownOnSelect=!1});if(options.width>0) -element.css("width",options.width);needsInit=!1} -function target(event){var element=event.target;while(element&&element.tagName!="LI") -element=element.parentNode;if(!element) -return[];return element} -function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight())}else if(offset=listItems.size()){active=0}} -function limitNumberOfItems(available){return options.max&&options.max").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i])} -listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0} -if($.fn.bgiframe) -list.bgiframe()} -return{display:function(d,q){init();data=d;term=q;fillList()},next:function(){moveSelect(1)},prev:function(){moveSelect(-1)},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active)}else{moveSelect(-8)}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active)}else{moveSelect(8)}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1},visible:function(){return element&&element.is(":visible")},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0])},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:($(input).width()+parseInt($(input).css('padding-left'))+parseInt($(input).css('padding-right'))+parseInt($(input).css('margin-left'))+parseInt($(input).css('margin-right'))),top:"100%",left:0}).show();if(options.scroll){list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")))}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data")},emptyList:function(){list&&list.empty()},unbind:function(){element&&element.remove()}}};$.Autocompleter.Selection=function(field,start,end){if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(!0);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select()}else if(field.setSelectionRange){field.setSelectionRange(start,end)}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end}} -field.focus()}})(jQuery);var instantSearchQueries=[];$(document).click(function(event){var $target=$(event.target);if(!$target.closest('.leoproductsearch-content').length){$(".leoproductsearch-result .ac_results").hide()}});$(document).ready(function(){$('#leo_search_query_top').click(function(){if($(this).val().length>2){$(".leoproductsearch-result .ac_results").show()}});if(typeof ajaxsearch!='undefined'&&ajaxsearch&&typeof blocksearch_type!=='undefined'&&blocksearch_type){var width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).autocomplete(leo_search_url,{minChars:3,max:numpro_display,width:(width_ac_results>0?width_ac_results:500),selectFirst:!1,scroll:!1,dataType:"json",formatItem:function(data,i,max,value,term){return value},extraParams:{ajaxSearch:1,id_lang:prestashop.language.id,leoproductsearch_static_token:leoproductsearch_static_token,leoproductsearch_token:leoproductsearch_token}}).result(function(event,data,formatted){$('#leo_search_query_'+blocksearch_type).val(data.name);document.location.href=data.url});$("#leo_search_query_"+blocksearch_type).click(function(){width_ac_results=$(this).outerWidth();$(this).setOptions({width:width_ac_results})})} -$('.cate-item').click(function(){if(!$(this).hasClass('active')){$('.cate-item.active').removeClass('active');var cate_id=$(this).data('cate-id');var cate_name=$(this).data('cate-name');$('#leosearch-cate-id').val(cate_id);$('#leosearchtop-cate-id').val(cate_id);$('#dropdownListCate span').text(cate_name);$('#dropdownListCateTop span').text(cate_name);$(this).addClass('active')} -$('#dropdownListCate').trigger('click');$('#dropdownListCateTop').trigger('click');var e=jQuery.Event("keydown");e.keyCode=40;$(this).parents('form').find('.search_query').focus().trigger(e);return!1});$('.search_query').click(function(){if($(this).val()!=''){}});$('.search_query').change(function(){if($(this).val()!=''){var e=jQuery.Event("keydown");e.keyCode=40;$(this).trigger(e)}})});$(window).resize(function(){updatePositionOfResult()});function updatePositionOfResult(){if($('.ac_results').length){width_ac_results=$("#leo_search_query_"+blocksearch_type).outerWidth();$("#leo_search_query_"+blocksearch_type).setOptions({width:width_ac_results});$('.ac_results').width(width_ac_results)}} -function tryToCloseInstantSearch(){if($('#old_center_column').length>0){$('#center_column').remove();$('#old_center_column').attr('id','center_column');$('#center_column').show();return!1}} -function stopInstantSearchQueries(){for(i=0;iPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3000,centerMode:!1,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('', + nextArrow: + '', + autoplay: !1, + autoplaySpeed: 3000, + centerMode: !1, + centerPadding: '50px', + cssEase: 'ease', + customPaging: function (slider, i) { + return $('").addClass(this._triggerClass).html(f?a("").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;ec&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,d){var e=a(b);e.hasClass(this.markerClassName)||(e.addClass(this.markerClassName).append(d.dpDiv),a.data(b,c,d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.settings.disabled&&this._disableDatepicker(b),d.dpDiv.css("display","block"))},_dialogDatepicker:function(b,d,e,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a(""),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],c,n)),g(n.settings,f||{}),d=d&&d.constructor===Date?this._formatDate(n,d):d,this._dialogInput.val(d),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=e,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],c,n),this},_destroyDatepicker:function(b){var d,e=a(b),f=a.data(b,c);e.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),a.removeData(b,c),"input"===d?(f.append.remove(),f.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==d&&"span"!==d||e.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!1,g.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!0,g.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(a){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,e,f,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),e=d?d.apply(b,[b,c]):{},e!==!1&&(g(c.settings,e),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),f=!1,a(b).parents().each(function(){return f|="fixed"===a(this).css("position"),!f}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,f),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,d=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,e=this._getNumberOfMonths(b),f=e[1],g=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),b.dpDiv[(1!==e[0]||1!==e[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var d,e,f,g,h=this._curInst;!h||b&&h!==a.data(b,c)||this._datepickerShowing&&(d=this._get(h,"showAnim"),e=this._get(h,"duration"),f=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[d]||a.effects[d])?h.dpDiv.hide(d,a.datepicker._get(h,"showOptions"),e,f):h.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?e:null,f),d||f(),this._datepickerShowing=!1,g=this._get(h,"onClose"),g&&g.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,t,h=0,i=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,j="string"!=typeof i?i:(new Date).getFullYear()%100+parseInt(i,10),k=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,n=(d?d.monthNames:null)||this._defaults.monthNames,o=-1,p=-1,q=-1,r=-1,s=!1,u=function(a){var c=e+1-1)for(p=1,q=r;;){if(f=this._getDaysInMonth(o,p-1),q<=f)break;p++,q-=f}if(t=this._daylightSavingAdjust(new Date(o,p-1,q)),t.getFullYear()!==o||t.getMonth()+1!==p||t.getDate()!==q)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+112?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&bb;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?""+c+"":S?"":""+c+"",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?""+e+"":S?"":""+e+"",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"",j=R?"
            "+(Q?i:"")+(this._isInRange(a,h)?"":"")+(Q?"":i)+"
            ":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="
            "+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"
            ",C=l?"":"",v=0;v<7;v++)D=(v+k)%7,C+="=5?" class='ui-datepicker-week-end'":"")+">"+n[D]+"";for(B+=C+"",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J",K=l?"":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I$,K+="",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+""}_++,_>11&&(_=0,aa++),B+="
            "+this._get(a,"weekHeader")+"
            "+this._get(a,"calculateWeek")(I)+""+(M&&!r?" ":N?""+I.getDate()+"":""+I.getDate()+"")+"
            "+(X?"
            "+(U[0]>0&&y===U[1]-1?"
            ":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="
            ",u="";if(f||!q)u+=""+g[b]+"";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+=""}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+=""+c+"";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="
            "},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&bd?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new e,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.3"}(jQuery),function(a,b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},d={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&this._trigger("beforeClose",b)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,b){var c=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return c&&!b&&this._trigger("focus",a),c},open:function(){var b=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).focus()},_keepFocus:function(b){function c(){var b=this.document[0].activeElement,c=this.uiDialog[0]===b||a.contains(this.uiDialog[0],b);c||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("
            ").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(e.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("
            ").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(b),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html(" "),a.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("
            ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("
            ").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,d.click=function(){e.apply(b.element[0],arguments)},f={icons:d.icons,text:d.showText},delete d.icons,delete d.showText,a("",d).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function d(a){return{position:a.position,offset:a.offset}}var b=this,c=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,e){a(this).addClass("ui-dialog-dragging"),b._blockFrames(),b._trigger("dragStart",c,d(e))},drag:function(a,c){b._trigger("drag",a,d(c))},stop:function(e,f){c.position=[f.position.left-b.document.scrollLeft(),f.position.top-b.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),b._unblockFrames(),b._trigger("dragStop",e,d(f))}})},_makeResizable:function(){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var b=this,c=this.options,d=c.resizable,e=this.uiDialog.css("position"),f="string"==typeof d?d:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:f,start:function(c,d){a(this).addClass("ui-dialog-resizing"),b._blockFrames(),b._trigger("resizeStart",c,g(d))},resize:function(a,c){b._trigger("resize",a,g(c))},stop:function(d,e){c.height=a(this).height(),c.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),b._unblockFrames(),b._trigger("resizeStop",d,g(e))}}).css("position",e)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var e=this,f=!1,g={};a.each(b,function(a,b){e._setOption(a,b),a in c&&(f=!0),a in d&&(g[a]=b)}),f&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(a,b){var c,d,e=this.uiDialog;"dialogClass"===a&&e.removeClass(this.options.dialogClass).addClass(b),"disabled"!==a&&(this._super(a,b),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+b}),"draggable"===a&&(c=e.is(":data(ui-draggable)"),c&&!b&&e.draggable("destroy"),!c&&b&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&(d=e.is(":data(ui-resizable)"),d&&!b&&e.resizable("destroy"),d&&"string"==typeof b&&e.resizable("option","handles",b),d||b===!1||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("
            ").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})}),this.overlay=a("
            ").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,a.uiBackCompat!==!1&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var e,b=this.options.position,c=[],d=[0,0];b?(("string"==typeof b||"object"==typeof b&&"0"in b)&&(c=b.split?b.split(" "):[b[0],b[1]],1===c.length&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c[0]+(d[0]<0?d[0]:"+"+d[0])+" "+c[1]+(d[1]<0?d[1]:"+"+d[1]),at:c.join(" ")}),b=a.extend({},a.ui.dialog.prototype.options.position,b)):b=a.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(b),e||this.uiDialog.hide()}})}(jQuery),function(a,b){var c=/up|down|vertical/,d=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var p,q,r,f=a(this),g=["position","top","bottom","left","right","height","width"],h=a.effects.setMode(f,b.mode||"hide"),i=b.direction||"up",j=c.test(i),k=j?"height":"width",l=j?"top":"left",m=d.test(i),n={},o="show"===h;f.parent().is(".ui-effects-wrapper")?a.effects.save(f.parent(),g):a.effects.save(f,g),f.show(),p=a.effects.createWrapper(f).css({overflow:"hidden"}),q=p[k](),r=parseFloat(p.css(l))||0,n[k]=o?q:0,m||(f.css(j?"bottom":"right",0).css(j?"top":"left","auto").css({position:"absolute"}),n[l]=o?r:q+r),o&&(p.css(k,0),m||p.css(l,r+q)),p.animate(n,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===h&&f.hide(),a.effects.restore(f,g),a.effects.removeWrapper(f),e()}})}}(jQuery),function(a,b){a.effects.effect.bounce=function(b,c){var q,r,s,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g="hide"===f,h="show"===f,i=b.direction||"up",j=b.distance,k=b.times||5,l=2*k+(h||g?1:0),m=b.duration/l,n=b.easing,o="up"===i||"down"===i?"top":"left",p="up"===i||"left"===i,t=d.queue(),u=t.length;for((h||g)&&e.push("opacity"),a.effects.save(d,e),d.show(),a.effects.createWrapper(d),j||(j=d["top"===o?"outerHeight":"outerWidth"]()/3),h&&(s={opacity:1},s[o]=0,d.css("opacity",0).css(o,p?2*-j:2*j).animate(s,m,n)),g&&(j/=Math.pow(2,k-1)),s={},s[o]=0,q=0;q1&&t.splice.apply(t,[1,0].concat(t.splice(u,l+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.clip=function(b,c){var m,n,o,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"vertical",i="vertical"===h,j=i?"height":"width",k=i?"top":"left",l={};a.effects.save(d,e),d.show(),m=a.effects.createWrapper(d).css({overflow:"hidden"}),n="IMG"===d[0].tagName?m:d,o=n[j](),g&&(n.css(j,0),n.css(k,o/2)),l[j]=g?o:0,l[k]=g?0:o/2,n.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){g||d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.drop=function(b,c){var l,d=a(this),e=["position","top","bottom","left","right","opacity","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h?"pos":"neg",k={opacity:g?1:0};a.effects.save(d,e),d.show(),a.effects.createWrapper(d),l=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0)/2,g&&d.css("opacity",0).css(i,"pos"===j?-l:l),k[i]=(g?"pos"===j?"+=":"-=":"pos"===j?"-=":"+=")+l,d.animate(k,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.explode=function(b,c){function s(){l.push(this),l.length===d*e&&t()}function t(){f.css({visibility:"visible"}),a(l).remove(),h||f.hide(),c()}var m,n,o,p,q,r,d=b.pieces?Math.round(Math.sqrt(b.pieces)):3,e=d,f=a(this),g=a.effects.setMode(f,b.mode||"hide"),h="show"===g,i=f.show().css("visibility","hidden").offset(),j=Math.ceil(f.outerWidth()/e),k=Math.ceil(f.outerHeight()/d),l=[];for(m=0;m
            ").css({position:"absolute",visibility:"visible",left:-n*j,top:-m*k}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:k,left:o+(h?q*j:0),top:p+(h?r*k:0),opacity:h?0:1}).animate({left:o+(h?0:q*j),top:p+(h?0:r*k),opacity:h?1:0},b.duration||500,b.easing,s)}}(jQuery),function(a,b){a.effects.effect.fade=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"toggle");d.animate({opacity:e},{queue:!1,duration:b.duration,easing:b.easing,complete:c})}}(jQuery),function(a,b){a.effects.effect.fold=function(b,c){var o,p,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h="hide"===f,i=b.size||15,j=/([0-9]+)%/.exec(i),k=!!b.horizFirst,l=g!==k,m=l?["width","height"]:["height","width"],n=b.duration/2,q={},r={};a.effects.save(d,e),d.show(),o=a.effects.createWrapper(d).css({overflow:"hidden"}),p=l?[o.width(),o.height()]:[o.height(),o.width()],j&&(i=parseInt(j[1],10)/100*p[h?0:1]),g&&o.css(k?{height:0,width:i}:{height:i,width:0}),q[m[0]]=g?p[0]:i,r[m[1]]=g?p[1]:0,o.animate(q,n,b.easing).animate(r,n,b.easing,function(){h&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()})}}(jQuery),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),function(a,b){a.effects.effect.pulsate=function(b,c){var n,d=a(this),e=a.effects.setMode(d,b.mode||"show"),f="show"===e,g="hide"===e,h=f||"hide"===e,i=2*(b.times||5)+(h?1:0),j=b.duration/i,k=0,l=d.queue(),m=l.length;for(!f&&d.is(":visible")||(d.css("opacity",0).show(),k=1),n=1;n1&&l.splice.apply(l,[1,0].concat(l.splice(m,i+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.puff=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"hide"),f="hide"===e,g=parseInt(b.percent,10)||150,h=g/100,i={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:f?g:100,from:f?i:{height:i.height*h,width:i.width*h,outerHeight:i.outerHeight*h,outerWidth:i.outerWidth*h}}),d.effect(b)},a.effects.effect.scale=function(b,c){var d=a(this),e=a.extend(!0,{},b),f=a.effects.setMode(d,b.mode||"effect"),g=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===f?0:100),h=b.direction||"both",i=b.origin,j={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()},k={y:"horizontal"!==h?g/100:1,x:"vertical"!==h?g/100:1};e.effect="size",e.queue=!1,e.complete=c,"effect"!==f&&(e.origin=i||["middle","center"],e.restore=!0),e.from=b.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:j),e.to={height:j.height*k.y,width:j.width*k.x,outerHeight:j.outerHeight*k.y,outerWidth:j.outerWidth*k.x},e.fade&&("show"===f&&(e.from.opacity=0,e.to.opacity=1),"hide"===f&&(e.from.opacity=1,e.to.opacity=0)),d.effect(e)},a.effects.effect.size=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],i=["position","top","bottom","left","right","overflow","opacity"],j=["width","height","overflow"],k=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=a.effects.setMode(g,b.mode||"effect"),o=b.restore||"effect"!==n,p=b.scale||"both",q=b.origin||["middle","center"],r=g.css("position"),s=o?h:i,t={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&g.show(),d={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===b.mode&&"show"===n?(g.from=b.to||t,g.to=b.from||d):(g.from=b.from||("show"===n?t:d),g.to=b.to||("hide"===n?t:d)),f={from:{y:g.from.height/d.height,x:g.from.width/d.width},to:{y:g.to.height/d.height,x:g.to.width/d.width}},"box"!==p&&"both"!==p||(f.from.y!==f.to.y&&(s=s.concat(l),g.from=a.effects.setTransition(g,l,f.from.y,g.from),g.to=a.effects.setTransition(g,l,f.to.y,g.to)),f.from.x!==f.to.x&&(s=s.concat(m),g.from=a.effects.setTransition(g,m,f.from.x,g.from),g.to=a.effects.setTransition(g,m,f.to.x,g.to))),"content"!==p&&"both"!==p||f.from.y!==f.to.y&&(s=s.concat(k).concat(j),g.from=a.effects.setTransition(g,k,f.from.y,g.from),g.to=a.effects.setTransition(g,k,f.to.y,g.to)),a.effects.save(g,s),g.show(),a.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),q&&(e=a.effects.getBaseline(q,d),g.from.top=(d.outerHeight-g.outerHeight())*e.y,g.from.left=(d.outerWidth-g.outerWidth())*e.x,g.to.top=(d.outerHeight-g.to.outerHeight)*e.y,g.to.left=(d.outerWidth-g.to.outerWidth)*e.x),g.css(g.from),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(k),m=m.concat(["marginLeft","marginRight"]),j=h.concat(l).concat(m),g.find("*[width]").each(function(){var c=a(this),d={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()};o&&a.effects.save(c,j),c.from={height:d.height*f.from.y,width:d.width*f.from.x,outerHeight:d.outerHeight*f.from.y,outerWidth:d.outerWidth*f.from.x},c.to={height:d.height*f.to.y,width:d.width*f.to.x,outerHeight:d.height*f.to.y,outerWidth:d.width*f.to.x},f.from.y!==f.to.y&&(c.from=a.effects.setTransition(c,l,f.from.y,c.from),c.to=a.effects.setTransition(c,l,f.to.y,c.to)),f.from.x!==f.to.x&&(c.from=a.effects.setTransition(c,m,f.from.x,c.from),c.to=a.effects.setTransition(c,m,f.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.easing,function(){o&&a.effects.restore(c,j)})})),g.animate(g.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===n&&g.hide(),a.effects.restore(g,s),o||("static"===r?g.css({position:"relative",top:g.to.top,left:g.to.left}):a.each(["top","left"],function(a,b){g.css(b,function(b,c){var d=parseInt(c,10),e=a?g.to.left:g.to.top;return"auto"===c?e+"px":d+e+"px"})})),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.shake=function(b,c){var q,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g=b.direction||"left",h=b.distance||20,i=b.times||3,j=2*i+1,k=Math.round(b.duration/j),l="up"===g||"down"===g?"top":"left",m="up"===g||"left"===g,n={},o={},p={},r=d.queue(),s=r.length;for(a.effects.save(d,e),d.show(),a.effects.createWrapper(d),n[l]=(m?"-=":"+=")+h,o[l]=(m?"+=":"-=")+2*h,p[l]=(m?"-=":"+=")+2*h,d.animate(n,k,b.easing),q=1;q1&&r.splice.apply(r,[1,0].concat(r.splice(s,j+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.slide=function(b,c){var k,d=a(this),e=["position","top","bottom","left","right","width","height"],f=a.effects.setMode(d,b.mode||"show"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h,l={};a.effects.save(d,e),d.show(),k=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(d).css({overflow:"hidden"}),g&&d.css(i,j?isNaN(k)?"-"+k:-k:k),l[i]=(g?j?"+=":"-=":j?"-=":"+=")+k,d.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.transfer=function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("
            ").appendTo(document.body).addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),c()})}}(jQuery),function(a,b){a.widget("ui.menu",{version:"1.10.3",defaultElement:"
              ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(b),c.has(".ui-menu").length?this.expand(b):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function i(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var c,d,e,f,g,h=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:h=!1,d=this.previousFilter||"",e=String.fromCharCode(b.keyCode),f=!1,clearTimeout(this.filterTimer),e===d?f=!0:e=d+e,g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),c=f&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c,c.length||(e=String.fromCharCode(b.keyCode),g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),c.length?(this.focus(b,c),c.length>1?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&b.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var b=a(this),d=b.prev("a"),e=a("").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e),b.attr("aria-labelledby",d.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(a,b)},focus:function(a,b){var c,d;this.blur(a,a&&"focus"===a.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&/^mouse/.test(a.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var c,d,e,f,g,h;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=b.offset().top-this.activeMenu.offset().top-c-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=b.height(),e<0?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,d,e;return this.active?void(this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d-e<0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(b)},previousPage:function(b){var c,d,e;return this.active?void(this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d+e>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first()))):void this.next(b)},_hasScroll:function(){return this.element.outerHeight()
            "),g=f.children()[0];return a("body").append(f),d=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,d===e&&(e=f[0].clientWidth),f.remove(),c=d-e},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width0?"right":"center",vertical:h<0?"top":g>0?"bottom":"middle"};kd(e(g),e(h))?m.important="horizontal":m.important="vertical",b.using.call(this,a,m)}),i.offset(a.extend(A,{using:h}))})},a.ui.position={fit:{left:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollLeft:c.offset.left,f=c.width,g=a.left-b.collisionPosition.marginLeft,h=e-g,i=g+b.collisionWidth-f-e;b.collisionWidth>f?h>0&&i<=0?(j=a.left+h+b.collisionWidth-f-e,a.left+=h-j):i>0&&h<=0?a.left=e:h>i?a.left=e+f-b.collisionWidth:a.left=e:h>0?a.left+=h:i>0?a.left-=i:a.left=d(a.left-g,a.left)},top:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollTop:c.offset.top,f=b.within.height,g=a.top-b.collisionPosition.marginTop,h=e-g,i=g+b.collisionHeight-f-e;b.collisionHeight>f?h>0&&i<=0?(j=a.top+h+b.collisionHeight-f-e,a.top+=h-j):i>0&&h<=0?a.top=e:h>i?a.top=e+f-b.collisionHeight:a.top=e:h>0?a.top+=h:i>0?a.top-=i:a.top=d(a.top-g,a.top)}},flip:{left:function(a,b){var n,o,c=b.within,d=c.offset.left+c.scrollLeft,f=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,i=h-g,j=h+b.collisionWidth-f-g,k="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,l="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*b.offset[0];i<0?(n=a.left+k+l+m+b.collisionWidth-f-d,(n<0||n0&&(o=a.left-b.collisionPosition.marginLeft+k+l+m-g,(o>0||e(o)i&&(p<0||p0&&(o=a.top-b.collisionPosition.marginTop+l+m+n-g,a.top+l+m+n>j&&(o>0||e(o)10&&e<11,b.innerHTML="",c.removeChild(b)}()}(jQuery),function(a,b){a.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=a("
            ").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(a){return a===b?this.options.value:(this.options.value=this._constrainedValue(a),void this._refreshValue())},_constrainedValue:function(a){return a===b&&(a=this.options.value),this.indeterminate=a===!1,"number"!=typeof a&&(a=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(b),this._refreshValue()},_setOption:function(a,b){"max"===a&&(b=Math.max(this.min,b)),this._super(a,b)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var b=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("
            ").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":b}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==b&&(this.oldValue=b,this._trigger("change")),b===this.options.max&&this._trigger("complete")}})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="",g=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b
            ").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):this.range=a([])},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a),this._on(a,this._handleEvents),this._hoverable(a),this._focusable(a)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));(e>c||e===c&&(b===k._lastChangedValue||k.values(b)===l.min))&&(e=c,f=a(this),g=b)}),h=this._start(b,g),h!==!1&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&c1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var d,e,f,g,h=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,h),d===!1))return}switch(g=this.options.step,e=f=this.options.values&&this.options.values.length?this.values(h):this.value(),b.keyCode){case a.ui.keyCode.HOME:f=this._valueMin();break;case a.ui.keyCode.END:f=this._valueMax();break;case a.ui.keyCode.PAGE_UP:f=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:f=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===this._valueMax())return;f=this._trimAlignValue(e+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===this._valueMin())return;f=this._trimAlignValue(e-g)}this._slide(b,h,f)},click:function(a){a.preventDefault()},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})}(jQuery),function(a){function b(a){return function(){var b=this.element.val();a.apply(this,arguments),this._refresh(),b!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var b={},c=this.element;return a.each(["min","max","step"],function(a,d){var e=c.attr(d);void 0!==e&&e.length&&(b[d]=e)}),b},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",a)))},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return!1;this._spin((b>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(b){function d(){var a=this.element[0]===this.document[0].activeElement;a||(this.element.focus(),this.previous=c,this._delay(function(){this.previous=c}))}var c;c=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),b.preventDefault(),d.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,d.call(this)}),this._start(b)!==!1&&this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(b){if(a(b.currentTarget).hasClass("ui-state-active"))return this._start(b)!==!1&&void this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*a.height())&&a.height()>0&&a.height(a.height()),this.options.disabled&&this.disable()},_keydown:function(b){var c=this.options,d=a.ui.keyCode;switch(b.keyCode){case d.UP:return this._repeat(null,1,b),!0;case d.DOWN:return this._repeat(null,-1,b),!0;case d.PAGE_UP:return this._repeat(null,c.page,b),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,b),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""},_start:function(a){return!(!this.spinning&&this._trigger("start",a)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(a,b,c){a=a||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,b,c)},a),this._spin(b*this.options.step,c)},_spin:function(a,b){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+a*this._increment(this.counter)),this.spinning&&this._trigger("spin",b,{value:c})===!1||(this._value(c),this.counter++)},_increment:function(b){var c=this.options.incremental;return c?a.isFunction(c)?c(b):Math.floor(b*b*b/5e4-b*b/500+17*b/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return c===-1?0:b.length-c-1},_adjustValue:function(a){var b,c,d=this.options;return b=null!==d.min?d.min:0,c=a-b,c=Math.round(c/d.step)*d.step,a=b+c,a=parseFloat(a.toFixed(this._precision())),null!==d.max&&a>d.max?d.max:null!==d.min&&a1&&decodeURIComponent(a.href.replace(d,""))===decodeURIComponent(location.href.replace(d,""))}var c=0,d=/#.*$/;a.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&b!==-1||(b=!!this.tabs.length&&0)),b!==!1&&(b=this.tabs.index(this.tabs.eq(b)),b===-1&&(b=!c&&0)),!c&&b===!1&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function e(){return b>d&&(b=0),b<0&&(b=d),b}for(var d=this.tabs.length-1;a.inArray(e(),this.options.disabled)!==-1;)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+e()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),b.active!==!1&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,d){var e,g,h,i=a(d).uniqueId().attr("id"),j=a(d).closest("li"),k=j.attr("aria-controls");f(d)?(e=d.hash,g=b.element.find(b._sanitizeSelector(e))):(h=b._tabId(j),e="#"+h,g=b.element.find(e),g.length||(g=b._createPanel(h),g.insertAfter(b.panels[c-1]||b.tablist)),g.attr("aria-live","polite")),g.length&&(b.panels=b.panels.add(g)),k&&j.data("ui-tabs-aria-controls",k),j.attr({"aria-controls":e.substring(1),"aria-labelledby":i}),g.attr("aria-labelledby",i)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("
            ").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var d,c=0;d=this.tabs[c];c++)b===!0||a.inArray(c,b)!==-1?a(d).addClass("ui-state-disabled").attr("aria-disabled","true"):a(d).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function g(){d.running=!1,d._trigger("activate",b,c)}function h(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),e.length&&d.options.show?d._show(e,d.options.show,g):(e.show(),g())}var d=this,e=c.newPanel,f=c.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),h()),f.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),e.length&&f.length?c.oldTab.attr("tabIndex",-1):e.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;d!==!1&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(d!==!0){if(c===b)d=!0;else{if(c=this._getIndex(c),a.inArray(c,d)!==-1)return;d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),g=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),i={tab:e,panel:h};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),d._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function c(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function d(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var b=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||"";return a("").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;return"disabled"===b?(this[c?"_disable":"_enable"](),void(this.options[b]=c)):(this._super(b,c),void("content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d,b=a(this);b.data("ui-tooltip-open")&&(d=a.Event("blur"),d.target=d.currentTarget=this,c.close(d,!0)),b.attr("title")&&(b.uniqueId(),c.parents[this.id]={element:this,title:b.attr("title")},b.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d?this._open(b,a,d):(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}),void(c&&this._open(b,a,c)))},_open:function(b,d,e){function j(a){i.of=a,f.is(":hidden")||f.position(i)}var f,g,h,i=a.extend({},this.options.position);if(e){if(f=this._find(d),f.length)return void f.find(".ui-tooltip-content").html(e);d.is("[title]")&&(b&&"mouseover"===b.type?d.attr("title",""):d.removeAttr("title")),f=this._tooltip(d),c(d,f.attr("id")),f.find(".ui-tooltip-content").html(e),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:j}),j(b)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(j(i.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:f}),g={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(f)}},b&&"mouseover"!==b.type||(g.mouseleave="close"),b&&"focusin"!==b.type||(g.focusout="close"),this._on(!0,d,g)}},close:function(b){var c=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),d(e),f.stop(!0),this._hide(f,this.options.hide,function(){c._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,d){a(d.element).attr("title",d.title),delete c.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(c){var d="ui-tooltip-"+b++,e=a("
            ").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("
            ").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[d]=c,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery);/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ (function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0
            ',image:'',iframe:'",error:'

            The requested content cannot be loaded.
            Please try again later.

            ',closeBtn:'
            ',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('
            ').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
            ").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
            ').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),cz||y>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectRatio?cu&&j
            ').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('
            '+e+"
            ");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('
            ').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('
            ').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery);(function(){"use strict";var $,Animation,Growl,__bind=function(fn,me){return function(){return fn.apply(me,arguments)}};$=jQuery;Animation=(function(){function Animation(){} -Animation.transitions={"webkitTransition":"webkitTransitionEnd","mozTransition":"mozTransitionEnd","oTransition":"oTransitionEnd","transition":"transitionend"};Animation.transition=function($el){var el,result,type,_ref;el=$el[0];_ref=this.transitions;for(type in _ref){result=_ref[type];if(el.style[type]!=null){return result}}};return Animation})();Growl=(function(){Growl.settings={namespace:'growl',duration:3200,close:"×",location:"default",style:"default",size:"medium"};Growl.growl=function(settings){if(settings==null){settings={}} +Animation.transitions={"webkitTransition":"webkitTransitionEnd","mozTransition":"mozTransitionEnd","oTransition":"oTransitionEnd","transition":"transitionend"};Animation.transition=function($el){var el,result,type,_ref;el=$el[0];_ref=this.transitions;for(type in _ref){result=_ref[type];if(el.style[type]!=null){return result}}};return Animation})();Growl=(function(){Growl.settings={namespace:'growl',duration:1000,close:"×",location:"default",style:"default",size:"medium"};Growl.growl=function(settings){if(settings==null){settings={}} this.initialize();return new Growl(settings)};Growl.initialize=function(){return $("body:not(:has(#growls))").append('
            ')};function Growl(settings){if(settings==null){settings={}} this.html=__bind(this.html,this);this.$growl=__bind(this.$growl,this);this.$growls=__bind(this.$growls,this);this.animate=__bind(this.animate,this);this.remove=__bind(this.remove,this);this.dismiss=__bind(this.dismiss,this);this.present=__bind(this.present,this);this.close=__bind(this.close,this);this.cycle=__bind(this.cycle,this);this.unbind=__bind(this.unbind,this);this.bind=__bind(this.bind,this);this.render=__bind(this.render,this);this.settings=$.extend({},Growl.settings,settings);this.$growls().attr('class',this.settings.location);this.render()} Growl.prototype.render=function(){var $growl;$growl=this.$growl();this.$growls().append($growl);this.cycle($growl)};Growl.prototype.bind=function($growl){if($growl==null){$growl=this.$growl()}